zoaoo

博客园 首页 新随笔 联系 订阅 管理
for (custInvoiceJourLocal = custInvoiceJour_ds.getFirst(true) ? custInvoiceJour_ds.getFirst(true) : custInvoiceJour; 
     custInvoiceJourLocal; 
     custInvoiceJourLocal = custInvoiceJour_ds.getNext()) 
{ 
    info(custInvoiceJourLocal.recid); 
custInvoiceJourLocal.reread();   } 
custInvoiceJour_ds.reread();
custInvoiceJour_ds.refresh();

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    AifService service = element.args().record();  aifAction_DS.query().dataSourceTable(tablenum(AifAction)).addRange(fieldnum(AifAction,ClassId)).value(int2str(service.ClassId));    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    assetBookTable_ds.object(fieldnum(AssetBookTable, WorkingDays_IN)).visible(false);    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    if (element.args().dataset() != tablenum(BankCodaTrans))  {      throw error("@SYS22996");  }    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    Init methods  Query                   q new Query();  QueryBuildDataSource    qB;  ;    qB = q.addDataSource(tablenum(BOMCalcTable));  qB.addRange(fieldnum(BOMCalcTable,ItemId)).value(queryValue(bomDesignerBOMCalc.parmItemId()));  this.query(q);    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    this.query().dataSourceNo(1).addSortField(fieldnum(BOMCalcTable,PriceCalcId),SortOrder::Ascending);    this.query().dataSourceTable(tablenum(ExciseRG23ARegister_IN)).addSelectionField(fieldnum(ExciseRG23ARegister_IN, rg23aRecoverable), SelectionField::Sum);    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    custInvoiceJourLocal  object fieldNameRef;  ;  fieldNumRef = tableName_ds.object(fieldNum(tableName,fieldName));  fieldNumRef.methodName();    THK_InventAFormLine.dataSource().reread();  THK_InventAFormLine.dataSource().refresh();  THK_InventAFormLine.dataSource().active();    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////      multiselectionHelper    _multiselectionHelper;  THK_InventAFormLine     inventAFormLine;  ;  _multiselectionHelper = multiselectionHelper::createFromCaller(element);  for(inventAFormLine  = _multiselectionHelper.getFirst();      inventAFormLine;      inventAFormLine  =  _multiselectionHelper.getNext())  {      tmpAFLineTable.clear();      tmpAFLineTable.THK_InventAFormId  = inventAFormLine.THK_InventAFormId;      tmpAFLineTable.LineNum            = inventAFormLine.LineNum;      tmpAFLineTable.insert();  }    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    THK_ProdPMCInquiryDataUpdate_new     THK_ProdPMCInquiryUpate new THK_ProdPMCInquiryDataUpdate_new();  Queryrun                            localQueryrun;  THK_PMCInquiryTable_Prod            localPMCInquiryTable_Prod;  ProdTable                           localProdTable;  ;    super();    //THK_ProdPMCInquiryUpate.refreshProdTable(THK_PMCInquiryTable_Prod_ds.queryRun().query());  localQueryrun = new SysQueryRun(THK_PMCInquiryTable_Prod_ds.queryRun().query());  while (localQueryrun.next())  {      if (localQueryrun.changed(tableNum(THK_PMCInquiryTable_Prod)))      {          localPMCInquiryTable_Prod = localQueryrun.get(tableNum(THK_PMCInquiryTable_Prod));          //localProdTable = ProdTable::find(localPMCInquiryTable_Prod.ProdTable_ProdId);          // <junwa> VAR-Modification on 23 四月 2013 at 11:06:58 by KTL junwa - Begin          changecompany(localPMCInquiryTable_Prod.SourceDataAreaId)          {              localProdTable = ProdTable::find(localPMCInquiryTable_Prod.ProdTable_ProdId);              THK_ProdPMCInquiryUpate.updateProdTable(localProdTable);          }          // </junwa> VAR-Modification on 23 四月 2013 at 11:06:58 by KTL junwa - End      }  }    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    THK_PMCInquiryTable_Prod_ds.research();  THK_PMCInquiryTable_Prod_ds.refresh();  THK_PMCInquiryTable_Prod_ds.active();    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////    formRun = element.args().caller();  for(intDsCount =1 ;intDsCount<= formRun.dataSourceCount();intDsCount++)  {      i++;      if(formRun.dataSource(intDsCount).name() == tableStr(QuotLine))      {          fdsSalesQuotationLine = formRun.dataSource(intDsCount);          fdsSalesQuotationLine.executeQuery();      }  }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

posted on 2017-04-25 15:14  zoaoo  阅读(339)  评论(0编辑  收藏  举报