| | |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public WebServer webserver = new WebServer(); |
| | | public SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | public SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | |
| | | public DAL.ClsSc_MouldScrapInBill BillNew0 = new DAL.ClsSc_MouldScrapInBill(); //模å
·æ¥åºå
¥åºå¯¹åºåæ®ç±» |
| | | public DAL.ClsSc_MouldScrapInBill BillOld0 = new DAL.ClsSc_MouldScrapInBill(); //模å
·æ¥åºå
¥åºå¯¹åºåæ®ç±» |
| | |
| | | private json objJsonResult = new json(); |
| | | public DataSet ds = new DataSet(); |
| | | public WebServer webserver = new WebServer(); |
| | | |
| | | public SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | public DAL.ClsSc_MouldScrapInBill BillNew0 = new DAL.ClsSc_MouldScrapInBill(); //模å
·æ¥åºå
¥åºå¯¹åºåæ®ç±» |
| | | public DAL.ClsSc_MouldScrapInBill BillOld0 = new DAL.ClsSc_MouldScrapInBill(); //模å
·æ¥åºå
¥åºå¯¹åºåæ®ç±» |
| | | |
| | |
| | | if (bResult) |
| | | { |
| | | string sql = $"exec h_p_Sc_MouldChangeFileStatus 'in','{oBill.omodel.HInterID.ToString()}' "; |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | oCN.RunProc(sql); |
| | | oCn.RunProc(sql); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä¿åæåï¼"; |
File was renamed from WebAPI/Controllers/Pay_GroupBalBillController.cs |
| | |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Pay_GroupBalBill/GetGroupBalBill")] |
| | | [Route("Pay_GroupBalBill/GetGroupBalBill")] |
| | | [HttpGet] |
| | | public object GetGroupBalBill(string sWhere) |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | #region[å·¥èµç»ç®éä½åç¼è¾æ¶è·åè¡¨å¤´æ°æ®] |
| | | [Route("Pay_GroupBalBill/Pay_GroupBalBillListCheckDetail")] |
| | | [HttpGet] |
| | |
| | | public object Pay_GroupBalBillListProjectDetai(string sqlWhere) |
| | | { |
| | | DataSet ds; |
| | | DataSet ds1; |
| | | List<object> list = new List<object>(); |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | string sql1 = "SELECT HMaterID,HMaterCode,HMaterName, HDeptID,é¨é¨ä»£ç ,é¨é¨" + |
| | | ",HGroupID,çç»ä»£ç ,çç»,æè¦,å
é¨åæ®å·,è¡¨å¤´å¤æ³¨,å¶å人,å¶åæ¥æ" + |
| | | ",å®¡æ ¸äºº,å®¡æ ¸æ¥æ,ä¿®æ¹äºº,ä¿®æ¹æ¥æ,å
³é人, å
³éæ¥æ,HProcID,HProcNumber,HProcName" + |
| | | ",æ°é,éé¢ FROM h_v_Pay_GroupBalBillList where 1 = 1 "; |
| | | string sql = sql1 + sqlWhere; |
| | | string sql = @"SELECT HMaterID,HMaterCode,HMaterName,è§æ ¼åå· HMaterSpec,HUnitID,HUnitNumber,HUnitName |
| | | HProcID,HProcNumber,HProcName,HSourceID,HSourceNumber,HSourceName,å·¥æ¶ HTimes,æ°é HQty,工价 HPrice,éé¢ HMoney, HSumMoney,HOtherSubsidy,HOtherDeduct,HPayMoney FROM h_v_Pay_GroupBalBillList where 1 = 1 " + sqlWhere; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Pay_GroupBalBillList"); |
| | | string sql1 = @"select |
| | | HEmpID ,b.HNumber HEmpNumber, b.HName HEmpName, b.HEmpRate HEmpRate, HBaseTimes, HMoney, HOtherSubsidy, HOtherSubsidy, HYF,'' HISZF ,'' HISFT , a.HRemark |
| | | from Pay_GroupBalBillEmp a |
| | | left join Gy_Employee b on a.HEmpID = b.HItemID " + sqlWhere.Replace("hmainid", "HInterID"); |
| | | ds1 = oCN.RunProcReturn(sql1, "Pay_GroupBalBillEmp"); |
| | | list.Add(ds.Tables[0]); |
| | | list.Add(ds1.Tables[0]); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = list; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | /// <summary> |
| | | ///å·¥èµç»ç®ä¸ªäººåå é¤åè½ |
| | | /// </summary> |
| | |
| | | |
| | | [Route("Pay_GroupBalBill/getGroupBalBillPrice")] |
| | | [HttpGet] |
| | | public object getGroupBalBillPrice(string HMaterID,string HProcID) |
| | | public object getGroupBalBillPrice(string HMaterID, string HProcID) |
| | | { |
| | | try |
| | | { |
| | |
| | | { |
| | | public class ClsPay_GroupBalBill : DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Model.ClsPay_GroupBalBillMain omodel = new Model.ClsPay_GroupBalBillMain(); |
| | | public List<Model.ClsPay_GroupBalBillSub> DetailColl = new List<Model.ClsPay_GroupBalBillSub>(); |
| | | public List<Model.ClsPay_GroupBalBillEmp> DetailEmpColl = new List<Model.ClsPay_GroupBalBillEmp>(); |
| | | public Models.ClsPay_GroupBalBillMain omodel = new Models.ClsPay_GroupBalBillMain(); |
| | | public List<Models.ClsPay_GroupBalBillSub> DetailColl = new List<Models.ClsPay_GroupBalBillSub>(); |
| | | public List<Models.ClsPay_GroupBalBillEmp> DetailEmpColl = new List<Models.ClsPay_GroupBalBillEmp>(); |
| | | |
| | | public ClsPay_GroupBalBill() |
| | | { |
| | |
| | | DeleteBillSub2(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillSub " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | } |
| | | // |
| | | //æå
¥å表2 |
| | | foreach (Model.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | foreach (Models.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillEmp " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | "," + oSubSec.HBaseDays.ToString() + "," + oSubSec.HOverDays.ToString() + "," + oSubSec.HLeaveDays.ToString() + "," + oSubSec.HYf.ToString() + |
| | | "," + oSubSec.HMoney.ToString() + "," + oSubSec.HOtherSubsidy.ToString() + "," + oSubSec.HOtherDeduct.ToString() + "," + Convert.ToString(oSubSec.HIsPay ? 1 : 0) + "," + Convert.ToString(oSubSec.HAvgFlag ? 1 : 0) + ") "); |
| | | } |
| | | //foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //{ |
| | | // Ds = oCn.RunProcReturn("exec h_p_Pay_GroupBalBill_Qty " + oSub.HICMOInterID, ""); |
| | | // if (Ds.Tables[0].Rows.Count == 0) |
| | |
| | | ") "); |
| | | // |
| | | //æå
¥å表 |
| | | foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillSub " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | } |
| | | // |
| | | //æå
¥å表2 |
| | | foreach (Model.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | foreach (Models.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillEmp " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | "," + oSubSec.HMoney.ToString() + "," + oSubSec.HOtherSubsidy.ToString() + "," + oSubSec.HOtherDeduct.ToString() + "," + Convert.ToString(oSubSec.HIsPay ? 1 : 0) + "," + Convert.ToString(oSubSec.HAvgFlag ? 1 : 0) + ") "); |
| | | } |
| | | // |
| | | //foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //{ |
| | | // Ds = oCn.RunProcReturn("exec h_p_Pay_GroupBalBill_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_GroupBalBillSub oSub = new Model.ClsPay_GroupBalBillSub(); |
| | | Models.ClsPay_GroupBalBillSub oSub = new Models.ClsPay_GroupBalBillSub(); |
| | | // åºå®èµå¼=============================================== |
| | | oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); |
| | | oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); |
| | |
| | | DetailEmpColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSubSec.Tables[0].Rows.Count; i++) |
| | | { |
| | | Model.ClsPay_GroupBalBillEmp oSubSec = new Model.ClsPay_GroupBalBillEmp(); |
| | | Models.ClsPay_GroupBalBillEmp oSubSec = new Models.ClsPay_GroupBalBillEmp(); |
| | | // åºå®èµå¼=============================================== |
| | | oSubSec.HInterID = DBUtility.ClsPub.isLong(DsSubSec.Tables[0].Rows[i]["HInterID"]); |
| | | oSubSec.HEntryID = DBUtility.ClsPub.isLong(DsSubSec.Tables[0].Rows[i]["HEntryID"]); |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsPay_GroupBalBillEmp:DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | public DateTime HEntryCloseDate;// datetime --è¡å
³é (é»è®¤ä¸º'') new |
| | | public Int64 HEmpID; |
| | | public double HEmpRate; //èåç³»æ° |
| | | public double HBaseTimes; //åºæ¬å·¥æ¶ |
| | | public double HOverTimes; //å çå·¥æ¶ |
| | | public double HLeaveTimes; //请åå·¥æ¶ |
| | | public Int64 HCTPrjID; //æ ¸ç®æ¹å¼ID |
| | | public double HBaseDays; //åºæ¬å¤©æ° |
| | | public double HOverDays; //å çå¤©æ° |
| | | public double HLeaveDays; //请åå¤©æ° |
| | | public double HMoney; //è®¡ä»¶å·¥èµ |
| | | public double HOtherSubsidy; //å
¶ä»è¡¥è´´ |
| | | public double HOtherDeduct; //å
¶ä»æ£æ¬¾ |
| | | public double HYf; //åºä»å·¥èµ |
| | | public bool HIsPay; //æ¯å¦æ¯ä» |
| | | public bool HAvgFlag; |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsPay_GroupBalBillMain:DBUtility.ClsXt_BaseBillMain |
| | | { |
| | | public Int64 HDeptID; |
| | | public Int64 HGroupID; |
| | | public Int64 HPayType; |
| | | public double HOtherDeduct; |
| | | public double HOtherSubsidy; |
| | | public double HPayMoney; |
| | | public double HSumMoney; |
| | | public string HExplanation; |
| | | public string HInnerBillNo; |
| | | } |
| | | } |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace WebAPI.Models |
| | | { |
| | | public class ClsPay_GroupBalBillSub:DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | public DateTime HEntryCloseDate;// datetime --è¡å
³é (é»è®¤ä¸º'') new |
| | | public Int64 HMaterID;// int --ç©æID |
| | | public Int64 HProcID;// int --å·¥åºID |
| | | public Int64 HUnitID;// int --åä½ID |
| | | public Int64 HSourceID;// int --èµæºID |
| | | public double HTimes;// decimal(18,8) --å·¥æ¶ |
| | | public double HQty;// decimal(18,8) --æ°é |
| | | public double HPrice;// decimal(18,8) --工价 |
| | | public double HMoney;// decimal(18,8) --éé¢ |
| | | public Int64 HICMOInterID;// int --ç产任å¡åID |
| | | public string HICMOBillNo;// varchar(50) --ç产任å¡åå· |
| | | public Int64 HProcReportInterID;// int --å·¥åºæ±æ¥åID |
| | | public Int64 HProcReportEntryID;// int --å·¥åºæ±æ¥ååID |
| | | public string HProcReportBillNo;// varchar(50) --å·¥åºæ±æ¥åå· |
| | | public Int64 HProcPlanInterID;// int --å·¥åºè®¡ååID |
| | | public Int64 HProcPlanEntryID;// int --å·¥åºè®¡åååID |
| | | public string HProcPlanBillNo;// varchar(50) --å·¥åºè®¡ååå· |
| | | public double HSqty; |
| | | } |
| | | } |
| | |
| | | <Compile Include="Controllers\Open_PrintTemController.cs" /> |
| | | <Compile Include="Controllers\ReportStepPlatFormController.cs" /> |
| | | <Compile Include="Controllers\å·¥èµç®¡ç\Pay_OtherBalBillController.cs" /> |
| | | <Compile Include="Controllers\Pay_GroupBalBillController.cs" /> |
| | | <Compile Include="Controllers\å·¥èµç®¡ç\Pay_GroupBalBillController.cs" /> |
| | | <Compile Include="Controllers\PurchaseOrderController.cs" /> |
| | | <Compile Include="Controllers\QC_POStockInCheckBillController.cs" /> |
| | | <Compile Include="Controllers\Pay_WorkTimesBillController.cs" /> |
| | |
| | | <Compile Include="DLL\ClsSc_MouldOtherInBill.cs" /> |
| | | <Compile Include="DLL\ClsSc_MouldMoveStockStepOutBill.cs" /> |
| | | <Compile Include="DLL\å·¥èµç®¡ç\ClsPay_GroupBalBill.cs" /> |
| | | <Compile Include="Models\å·¥èµç®¡ç\ClsPay_GroupBalBillEmp.cs" /> |
| | | <Compile Include="Models\å·¥èµç®¡ç\ClsPay_GroupBalBillMain.cs" /> |
| | | <Compile Include="Models\å·¥èµç®¡ç\ClsPay_GroupBalBillSub.cs" /> |
| | | <Compile Include="DLL\å·¥èµç®¡ç\ClsPay_SingleBalBill.cs" /> |
| | | <Compile Include="DLL\ClsSc_MouldProdBackBill.cs" /> |
| | | <Compile Include="DLL\å·¥èµç®¡ç\ClsPay_OtherBalBill.cs" /> |