| | |
| | | ",HPayCusID=" + omodel.HPayCusID + |
| | | ",HExplanation='" + omodel.HExplanation + "'" + |
| | | ",HLinkMan='" + omodel.HLinkMan + "'" + |
| | | ",HWHID='" + omodel.HWHID + "'" + |
| | | ",HProjectID='" + omodel.HProjectID + "'" + |
| | | ",HLinkPhone='" + omodel.HLinkPhone + "'" + |
| | | " where HInterID=" + lngBillKey.ToString(); |
| | | |
| | |
| | | string subSql = "Insert into Xs_SeOrderBillSub" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationQty_SellOutCheck,HRelationMoney_SellOutCheck,HRelationQty_ICMO,HRelationQty_SellBack,HRelationQty_SellBackCheck,HRelationMoney,HMaterID,HUnitID,HQty,HPrice,HTaxPrice,HMoney" + |
| | | ",HDiscountRate,HRelTaxPrice,HTaxRate,HTaxMoney,HlineTotal,HlineTotalBB,HDate,HOutStockQty,HInvoiceQty,HRemark,HOrderLevID" + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName,HisStockGoods) " + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName,HisStockGoods,HWHID) " + |
| | | "values(" + |
| | | "" + omodel.HInterID + |
| | | "," + oSub.HEntryID + |
| | |
| | | "','" + oSub.HCusMaterNumber + |
| | | "','" + oSub.HCusModel + |
| | | "','" + oSub.HCusMaterName + |
| | | "','" + oSub.HWhID + |
| | | "'," + (oSub.HisStockGoods?1:0) + |
| | | ")"; |
| | | oCn.RunProc(subSql); |
| | |
| | | string mainSql = "Insert Into Xs_SeOrderBillMain" + |
| | | "(HYear,HPeriod,HBillType,HBillSubType,HBillStatus,HExplanation" + |
| | | ",HInterID,HBillNo,HDate,HInnerBillNo,HAddress,HDeptID,HCusID,HEmpID,HCurID,HExRate,HEarnestRate,HManagerID,HSellSID,HSSID,HSSDate,HPayCusID,HRemark,HOrgID,HMaker,HMakeDate,HLinkMan,HLinkPhone" + |
| | | ",HERPInterID,HERPBillType,HSALEORGID,HSALEGROUPID,HRECEIVEID,HSETTLEID,HCHARGEID,HHEADLOCID,HRECCONTACTID,HCORRESPONDORGID,HBUSINESSTYPE) " + |
| | | ",HERPInterID,HERPBillType,HSALEORGID,HSALEGROUPID,HRECEIVEID,HSETTLEID,HCHARGEID,HHEADLOCID,HRECCONTACTID,HCORRESPONDORGID,HBUSINESSTYPE,HProjectID,HWHID) " + |
| | | "values(" + |
| | | "" + omodel.HYear + |
| | | "," + omodel.HPeriod + |
| | |
| | | "," + omodel.HRECCONTACTID + |
| | | "," + omodel.HCORRESPONDORGID + |
| | | ",'" + omodel.HBUSINESSTYPE + |
| | | |
| | | "','" + omodel.HProjectID + |
| | | "','" + omodel.HWHID + |
| | | "')"; |
| | | |
| | | oCn.RunProc(mainSql); |
| | |
| | | string subSql = "Insert into Xs_SeOrderBillSub" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationQty_SellOutCheck,HRelationMoney_SellOutCheck,HRelationQty_ICMO,HRelationQty_SellBack,HRelationQty_SellBackCheck,HRelationMoney,HMaterID,HUnitID,HQty,HPrice,HTaxPrice,HMoney" + |
| | | ",HDiscountRate,HRelTaxPrice,HTaxRate,HTaxMoney,HlineTotal,HlineTotalBB,HDate,HOutStockQty,HInvoiceQty,HRemark,HOrderLevID" + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName,HisStockGoods) " + |
| | | ",HCusMaterNumber,HCusModel,HCusMaterName,HisStockGoods,HWHID) " + |
| | | "values(" + |
| | | "" + omodel.HInterID + |
| | | "," + oSub.HEntryID + |
| | |
| | | "','" + oSub.HCusMaterNumber + |
| | | "','" + oSub.HCusModel + |
| | | "','" + oSub.HCusMaterName + |
| | | "','" + oSub.HWhID + |
| | | "'," + (oSub.HisStockGoods?1:0) + |
| | | ")"; |
| | | oCn.RunProc(subSql); |