| | |
| | | foreach (Model.ClsYS_ReceiveOtherBillSub oSub in DetailColl) |
| | | { |
| | | string subSql = "insert into YS_ReceiveOtherBillSub" + |
| | | "" + |
| | | "" + |
| | | "" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HProjectMoneyID,HTypeSub,HMoney,HTaxRate,HSumMoney) " + |
| | | " values(" + |
| | | "" + omodel.HInterID.ToString() + |
| | | "," + oSub.HEntryID.ToString() + |
| | | "," + oSub.HSourceInterID + |
| | | "," + oSub.HSourceEntryID + |
| | | ",'" + oSub.HSourceBillNo + |
| | | "','" + oSub.HSourceBillType + |
| | | "','" + oSub.HProjectMoneyID + |
| | | "','" + oSub.HTypeSub + |
| | | "','" + oSub.HMoney + |
| | | "','" + oSub.HTaxRate + |
| | | "','" + oSub.HSumMoney + |
| | | "')"; |
| | | "" + |
| | | "" + |
| | | "" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HProjectMoneyID,HTypeSub,HMoney,HTaxRate,HSumMoney,HQty,HPrice,HRemark) " + |
| | | " values(" + |
| | | "" + omodel.HInterID.ToString() + |
| | | "," + oSub.HEntryID.ToString() + |
| | | "," + oSub.HSourceInterID + |
| | | "," + oSub.HSourceEntryID + |
| | | ",'" + oSub.HSourceBillNo + |
| | | "','" + oSub.HSourceBillType + |
| | | "','" + oSub.HProjectMoneyID + |
| | | "','" + oSub.HTypeSub + |
| | | "','" + oSub.HMoney + |
| | | "','" + oSub.HTaxRate + |
| | | "','" + oSub.HSumMoney + |
| | | "','" + oSub.HQty + |
| | | "','" + oSub.HPrice + |
| | | "','" + oSub.HRemark + |
| | | "')"; |
| | | oCn.RunProc(subSql); |
| | | } |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | |
| | | try |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | oCn.BeginTran(); |
| | | //主表 |
| | |
| | | "" + |
| | | "" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HProjectMoneyID,HTypeSub,HMoney,HTaxRate,HSumMoney) " + |
| | | ",HProjectMoneyID,HTypeSub,HMoney,HTaxRate,HSumMoney,HQty,HPrice,HRemark) " + |
| | | " values(" + |
| | | "" + omodel.HInterID.ToString() + |
| | | "," + oSub.HEntryID.ToString() + |
| | |
| | | "','" + oSub.HMoney + |
| | | "','" + oSub.HTaxRate + |
| | | "','" + oSub.HSumMoney + |
| | | "','" + oSub.HQty + |
| | | "','" + oSub.HPrice + |
| | | "','" + oSub.HRemark + |
| | | "')"; |
| | | oCn.RunProc(subSql); |
| | | } |