| | |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | |
| | | //æå
¥å表 |
| | | foreach (Model.ClsQC_MonthTarGetBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into QC_MonthTarGetBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HSupID,HSupQty" + |
| | | |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | ",'" + oSub.HSupID.ToString() + "','" + oSub.HSupQty.ToString() + |
| | | "') "); |
| | | } |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | //DataSet ds2 = oCn.RunProcReturn("Exec h_p_QC_MonthTarGetBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "',1 ", "h_p_QC_MonthTarGetBill_AfterSaveCtrl"); |
| | | //if (ds2 == null) |
| | |
| | | ")"; |
| | | oCn.RunProc(mainSql); |
| | | |
| | | //æå
¥å表 |
| | | foreach (Model.ClsQC_MonthTarGetBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into QC_MonthTarGetBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HSupID,HSupQty" + |
| | | |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | ",'" + oSub.HSupID.ToString() + "','" + oSub.HSupQty.ToString() + |
| | | "') "); |
| | | } |
| | | |
| | | //=========================ä¿ååæ§å¶ |
| | | //DataSet ds2 = oCn.RunProcReturn("Exec h_p_QC_MonthTarGetBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ", '" + omodel.HBillNo + "',1 ", "h_p_QC_MonthTarGetBill_AfterSaveCtrl"); |
| | | //if (ds2 == null) |