|  |  |  | 
|---|
|  |  |  | ",HUpDater='" + omodel.HMaker + "'" + | 
|---|
|  |  |  | ",HUpDateDate=getdate()" + | 
|---|
|  |  |  | //======================================== | 
|---|
|  |  |  | ",HMainSourceBillNo='" + omodel.HMainSourceBillNo + "'" + | 
|---|
|  |  |  | ",HMainSourceInterID=" + omodel.HMainSourceInterID.ToString() + | 
|---|
|  |  |  | ",HMainSourceEntryID=" + omodel.HMainSourceEntryID.ToString() + | 
|---|
|  |  |  | ",HMainSourceBillType=" + omodel.HMainSourceBillType.ToString() + | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ",HDeptID=" + omodel.HDeptID.ToString() + | 
|---|
|  |  |  | ",HDeptNumber='" + omodel.HDeptNumber +"'"+ | 
|---|
|  |  |  | ",HEmpID=" + omodel.HEmpID.ToString() + | 
|---|
|  |  |  | 
|---|
|  |  |  | "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HMaker,HMakeDate" + | 
|---|
|  |  |  | ",HYear,HPeriod,HRemark,HEmpID,HEmpNumber" + | 
|---|
|  |  |  | ",HGroupID,HDeptID,HDeptNumber" + | 
|---|
|  |  |  | ",HMainSourceBillNo,HMainSourceInterID,HMainSourceEntryID,HMainSourceBillType" + | 
|---|
|  |  |  | ") " + | 
|---|
|  |  |  | " values('" + this.BillType + "','"  + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker+ "',getdate()" + | 
|---|
|  |  |  | "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HEmpID.ToString() + "','" + omodel.HEmpNumber + | 
|---|
|  |  |  | "','" + omodel.HGroupID.ToString() + "'," + omodel.HDeptID.ToString() + ",'" + omodel.HDeptNumber + "'"+ | 
|---|
|  |  |  | "','" + omodel.HMainSourceBillNo.ToString() + "'," + omodel.HMainSourceInterID.ToString() + ",'" + omodel.HMainSourceEntryID + "','" + omodel.HMainSourceBillType + "'" + | 
|---|
|  |  |  | ") "); | 
|---|
|  |  |  | //插入子表 | 
|---|
|  |  |  | foreach (Models.ClsSc_ICMOReportBillSub oSub in DetailColl) | 
|---|