| | |
| | | ",HExplanation = '" + omodel.HExplanation + "'" + |
| | | ",HInnerBillNo = '" + omodel.HInnerBillNo + "'" + |
| | | ",HRemark = '" + omodel.HRemark + "'" + |
| | | ",HProjectID = " + omodel.HProjectID + |
| | | ",HInvoiceBillNo = '" + omodel.HInvoiceBillNo + "'" + |
| | | " where HInterID = " + omodel.HInterID; |
| | | oCn.RunProc(mainSql); |
| | | |
| | |
| | | string mainSql = "insert into Cg_PayableBillMain" + |
| | | "(HInterID,HBillNo,HDate,HYear,HPeriod,HBillType,HBillSubType" + |
| | | ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HMainSourceBillType" + |
| | | ",HMaker,HMakeDate,HSSID,HPSStyleID,HReceiveDate,HSupID,HCurID,HExRate,HEmpID,HMangerID,HDeptID,HExplanation,HInnerBillNo,HRemark) " + |
| | | ",HMaker,HMakeDate,HSSID,HPSStyleID,HReceiveDate,HSupID,HCurID,HExRate,HEmpID,HMangerID,HDeptID,HExplanation,HInnerBillNo,HRemark,HProjectID,HInvoiceBillNo) " + |
| | | "values(" + |
| | | "" + omodel.HInterID + "" + |
| | | ",'" + omodel.HBillNo + "'" + |
| | |
| | | ",'" + omodel.HExplanation + "'" + |
| | | ",'" + omodel.HInnerBillNo + "'" + |
| | | ",'" + omodel.HRemark + "'" + |
| | | "," + omodel.HProjectID + |
| | | ",'" + omodel.HInvoiceBillNo + "'" + |
| | | ")"; |
| | | |
| | | oCn.RunProc(mainSql); |