File was renamed from WebAPI/DLL/ClsPay_OtherBalBill.cs |
| | |
| | | using System.Text; |
| | | using System.Data; |
| | | |
| | | namespace DAL |
| | | namespace WebAPI.DLL |
| | | { |
| | | public class ClsPay_OtherBalBill : DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Model.ClsPay_OtherBalBillMain omodel = new Model.ClsPay_OtherBalBillMain(); |
| | | public List<Model.ClsPay_OtherBalBillSub> DetailColl = new List<Model.ClsPay_OtherBalBillSub>(); |
| | | public Models.ClsPay_OtherBalBillMain omodel = new Models.ClsPay_OtherBalBillMain(); |
| | | public List<Models.ClsPay_OtherBalBillSub> DetailColl = new List<Models.ClsPay_OtherBalBillSub>(); |
| | | |
| | | public ClsPay_OtherBalBill() |
| | | { |
| | |
| | | DeleteBillSub(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Model.ClsPay_OtherBalBillSub oSub in DetailColl) |
| | | foreach (Models.ClsPay_OtherBalBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_OtherBalBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | |
| | | ") "); |
| | | } |
| | | // |
| | | //foreach (Model.ClsPay_SingleBalBillSub oSub in DetailColl) |
| | | //foreach (Models.ClsPay_SingleBalBillSub oSub in DetailColl) |
| | | //{ |
| | | // Ds = oCn.RunProcReturn("exec h_p_Pay_SingleBalBill_Qty " + oSub.HICMOInterID, ""); |
| | | // if (Ds.Tables[0].Rows.Count == 0) |
| | |
| | | //主表 |
| | | oCn.RunProc("Insert Into Pay_OtherBalBillMain " + |
| | | "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HSaveFlag" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + |
| | | ",HGroupID,HDeptID,HEmpID,HPayType,HExplanation,HInnerBillNo" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()," + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HGroupID.ToString() + "," + omodel.HDeptID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HPayType.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'" + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsPay_OtherBalBillSub oSub in DetailColl) |
| | | foreach (Models.ClsPay_OtherBalBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_OtherBalBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | |
| | | ") "); |
| | | } |
| | | // |
| | | //foreach (Model.ClsPay_SingleBalBillSub oSub in DetailColl) |
| | | //foreach (Models.ClsPay_SingleBalBillSub oSub in DetailColl) |
| | | //{ |
| | | // Ds = oCn.RunProcReturn("exec h_p_Pay_SingleBalBill_Qty " + oSub.HICMOInterID, ""); |
| | | // if (Ds.Tables[0].Rows.Count == 0) |
| | |
| | | DetailColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) |
| | | { |
| | | Model.ClsPay_OtherBalBillSub oSub = new Model.ClsPay_OtherBalBillSub(); |
| | | Models.ClsPay_OtherBalBillSub oSub = new Models.ClsPay_OtherBalBillSub(); |
| | | // åºå®èµå¼=============================================== |
| | | oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); |
| | | oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); |