BLL/bin/Release/BLL.dllBinary files differ
BLL/bin/Release/BLL.pdbBinary files differ
BLL/bin/Release/DAL.dllBinary files differ
BLL/bin/Release/DAL.pdbBinary files differ
BLL/bin/Release/DBUtility.dllBinary files differ
BLL/bin/Release/DBUtility.pdbBinary files differ
BLL/bin/Release/Model.dllBinary files differ
BLL/bin/Release/Model.pdbBinary files differ
BLL/bin/Release/Pub_Class.dllBinary files differ
BLL/bin/Release/Pub_Class.pdbBinary files differ
BLL/bin/Release/Pub_Control.dllBinary files differ
BLL/bin/Release/Pub_Control.pdbBinary files differ
BLL/bin/Release/SQLHelper.dllBinary files differ
BLL/bin/Release/SQLHelper.pdbBinary files differ
DAL/DAL.csproj
@@ -101,6 +101,7 @@ <Compile Include="ä»åºç®¡ç\ClsKf_ProductReceiveMaterialBill.cs" /> <Compile Include="åºç¡èµæ\å ¶ä»åºç¡èµæ\ClsGy_MatePrice_Ctl.cs" /> <Compile Include="å·¥èµç®¡ç\ClsGy_SteppedPriceCoefficientBill .cs" /> <Compile Include="ææ¬ç®¡ç\ClsCB_ItemMoneyBillMain .cs" /> <Compile Include="æºå\InterFaceæºå\Cls_S_IF_ICMOBillList_CusBarCodeBill_KaiBei.cs" /> <Compile Include="æºå\InterFaceæºå\Cls_S_IF_MoveStockRequestBillList.cs" /> <Compile Include="ç产管ç\ClsSc_ShiftsBeginInfoBill.cs" /> DAL/bin/Release/DAL.dllBinary files differ
DAL/bin/Release/DAL.pdbBinary files differ
DAL/bin/Release/DBUtility.dllBinary files differ
DAL/bin/Release/DBUtility.pdbBinary files differ
DAL/bin/Release/Model.dllBinary files differ
DAL/bin/Release/Model.pdbBinary files differ
DAL/bin/Release/Pub_Class.dllBinary files differ
DAL/bin/Release/Pub_Class.pdbBinary files differ
DAL/bin/Release/Pub_Control.dllBinary files differ
DAL/bin/Release/Pub_Control.pdbBinary files differ
DAL/bin/Release/SQLHelper.dllBinary files differ
DAL/bin/Release/SQLHelper.pdbBinary files differ
DAL/²Ö¿â¹ÜÀí/ClsKf_ProductReceiveMaterialBill.cs
@@ -77,6 +77,7 @@ oCn.RunProc("UpDate Kf_ProductReceiveMaterialBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //åºå®èµå¼=============== ",HDate='" + omodel.HDate + "'" + ",HBillSubType='" + omodel.HBillSubType + "'" + ",HYear='" + omodel.HYear + "'" + ",HPeriod='" + omodel.HPeriod + "'" + ",HRemark='" + omodel.HRemark + "'" + @@ -195,7 +196,7 @@ ",HEmpID,HDeptID,HKeeperID,HOrgID) " + " values(" + "'" + this.BillType + "'" + ",'" + this.HBillSubType + "'" + ",'" + omodel.HBillSubType.ToString() + "'" + "," + omodel.HInterID.ToString() + "" + ",'" + omodel.HBillNo + "'" + ",'" + omodel.HDate + "'" + DAL/³É±¾¹ÜÀí/ClsCB_ItemMoneyBillMain .cs
New file @@ -0,0 +1,276 @@ using System; using System.Collections.Generic; using System.Text; using System.Data; namespace DAL { public class ClsCB_ItemMoneyBillMain : DBUtility.ClsXt_BaseBill { public Model.ClsCB_ItemMoneyBillMain_1 omodel = new Model.ClsCB_ItemMoneyBillMain_1(); public List<Model.ClsCB_ItemMoneyBillSub_1> DetailColl = new List<Model.ClsCB_ItemMoneyBillSub_1>(); public ClsCB_ItemMoneyBillMain() { base.MvarItemKeySub = "CB_ItemMoneyBillSub"; base.MvarItemKeySub2 = ""; base.MvarItemKeySub3 = ""; base.MvarItemKeySub4 = ""; base.MvarItemKey = "CB_ItemMoneyBillMain"; base.MvarReportTitle = "ææ¬è´¹ç¨å"; base.BillType = "1802"; } #region åºå®ä»£ç ~ClsCB_ItemMoneyBillMain() { DetailColl = null; } #endregion èªå®ä¹æ¹æ³ //ä¿®æ¹åæ® //ä¿®æ¹åæ® public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) { try { string HBillSubType = string.IsNullOrEmpty(omodel.HBillSubType) ? "1802" : omodel.HBillSubType; oCn.BeginTran(); //æ´æ°ä¸»è¡¨ string mainSql = "Update CB_ItemMoneyBillMain set " + "HBillNo = '" + omodel.HBillNo + "'" + ",HDate = '" + omodel.HDate + "'" + ",HYear = " + omodel.HYear.ToString() + ",HPeriod = " + omodel.HPeriod.ToString() + ",HRemark = '" + (omodel.HRemark ?? "") + "'" + ",HUpDater = '" + DBUtility.ClsPub.CurUserName + "'" + ",HUpDateDate = getdate()" + ",HDeptID = " + omodel.HDeptID.ToString() + ",HEmpID = " + omodel.HEmpID.ToString() + ",HExplanation = '" + (omodel.HExplanation ?? "") + "'" + ",HInnerBillNo = '" + (omodel.HInnerBillNo ?? "") + "'" + ",HICMOBillNo = '" + (omodel.HICMOBillNo ?? "") + "'" + ",HBillSubType = '" + HBillSubType + "'" + ",HBeginDate = '" + (omodel.HBeginDate == DateTime.MinValue ? DateTime.Now : omodel.HBeginDate) + "'" + ",HEndDate = '" + (omodel.HEndDate == DateTime.MinValue ? DateTime.Now : omodel.HEndDate) + "'" + " where HInterID = " + lngBillKey.ToString(); oCn.RunProc(mainSql); //å é¤å ³è DeleteRelation(ref sReturn, lngBillKey); //å é¤å表 DeleteBillSub(lngBillKey); //æå ¥å表 if (DetailColl != null && DetailColl.Count > 0) { foreach (Model.ClsCB_ItemMoneyBillSub_1 oSub in DetailColl) { if (oSub == null) continue; string subSql = "insert into CB_ItemMoneyBillSub" + "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + ",HMoney,HRemark" + ",HCostItemID,HDeptID,HQty,HPrice,HMaterID,HWaster,HDate,HBeginBalance,HEndBalance,HTimes) " + " values(" + lngBillKey.ToString() + "," + (oSub.HEntryID != null ? oSub.HEntryID.ToString() : "0") + "," + (oSub.HSourceInterID != null && oSub.HSourceInterID != 0 ? oSub.HSourceInterID.ToString() : "0") + "," + (oSub.HSourceEntryID != null && oSub.HSourceEntryID != 0 ? oSub.HSourceEntryID.ToString() : "0") + ",'" + (oSub.HSourceBillNo ?? "") + "','" + (oSub.HSourceBillType ?? "") + "'," + (oSub.HMoney != null && oSub.HMoney != 0 ? oSub.HMoney.ToString() : "0") + ",'" + (oSub.HRemark ?? "") + "'," + (oSub.HCostItemID != null && oSub.HCostItemID != 0 ? oSub.HCostItemID.ToString() : "0") + "," + (oSub.HDeptID != null && oSub.HDeptID != 0 ? oSub.HDeptID.ToString() : "0") + "," + (oSub.HQty != null && oSub.HQty != 0 ? oSub.HQty.ToString() : "0") + "," + (oSub.HPrice != null && oSub.HPrice != 0 ? oSub.HPrice.ToString() : "0") + "," + (oSub.HMaterID != null && oSub.HMaterID != 0 ? oSub.HMaterID.ToString() : "0") + "," + (oSub.HWaster != null && oSub.HWaster != 0 ? oSub.HWaster.ToString() : "0") + ",'" + (oSub.HDate != null && oSub.HDate != DateTime.MinValue ? oSub.HDate.ToString() : DateTime.Now.ToString()) + "'," + (oSub.HBeginBalance != null && oSub.HBeginBalance != 0 ? oSub.HBeginBalance.ToString() : "0") + "," + (oSub.HEndBalance != null && oSub.HEndBalance != 0 ? oSub.HEndBalance.ToString() : "0") + "," + (oSub.HTimes != null && oSub.HTimes != 0 ? oSub.HTimes.ToString() : "0") + ")"; oCn.RunProc(subSql); } } sReturn = "ä¿®æ¹åæ®æåï¼"; oCn.Commit(); return true; } catch (Exception e) { sReturn = e.Message; oCn.RollBack(); throw (e); } } //æ¾ç¤ºåæ® //æ°å¢åæ® public override bool AddBill(ref string sReturn) { try { // å¾å°mainid omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); string HBillSubType = string.IsNullOrEmpty(omodel.HBillSubType) ? "1802" : omodel.HBillSubType; oCn.BeginTran(); // æå ¥ä¸»è¡¨ string mainSql = "Insert Into CB_ItemMoneyBillMain" + "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + ",HDeptID,HEmpID,HExplanation,HInnerBillNo" + ",HICMOBillNo,HBeginDate,HEndDate,HOrgID,HMaterID) " + " values('" + this.BillType + "','" + HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + (omodel.HRemark ?? "") + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + ", " + omodel.HDeptID.ToString() + "," + omodel.HEmpID.ToString() + ",'" + (omodel.HExplanation ?? "") + "','" + (omodel.HInnerBillNo ?? "") + "'" + ",'" + (omodel.HICMOBillNo ?? "") + "'" + ",'" + (omodel.HBeginDate == DateTime.MinValue ? DateTime.Now : omodel.HBeginDate) + "'" + ",'" + (omodel.HEndDate == DateTime.MinValue ? DateTime.Now : omodel.HEndDate) + "'," + omodel.HOrgID.ToString() + ",0) "; oCn.RunProc(mainSql); // æå ¥å表 if (DetailColl != null && DetailColl.Count > 0) { foreach (Model.ClsCB_ItemMoneyBillSub_1 oSub in DetailColl) { if (oSub == null) continue; string subSql = "insert into CB_ItemMoneyBillSub" + "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + ",HMoney,HRemark" + ",HCostItemID,HDeptID,HQty,HPrice,HMaterID,HWaster,HDate,HBeginBalance,HEndBalance,HTimes) " + " values(" + omodel.HInterID.ToString() + "," + (oSub.HEntryID != null ? oSub.HEntryID.ToString() : "0") + "," + (oSub.HSourceInterID != null && oSub.HSourceInterID != 0 ? oSub.HSourceInterID.ToString() : "0") + "," + (oSub.HSourceEntryID != null && oSub.HSourceEntryID != 0 ? oSub.HSourceEntryID.ToString() : "0") + ",'" + (oSub.HSourceBillNo ?? "") + "','" + (oSub.HSourceBillType ?? "") + "'," + (oSub.HMoney != null && oSub.HMoney != 0 ? oSub.HMoney.ToString() : "0") + ",'" + (oSub.HRemark ?? "") + "'," + (oSub.HCostItemID != null && oSub.HCostItemID != 0 ? oSub.HCostItemID.ToString() : "0") + "," + (oSub.HDeptID != null && oSub.HDeptID != 0 ? oSub.HDeptID.ToString() : "0") + "," + (oSub.HQty != null && oSub.HQty != 0 ? oSub.HQty.ToString() : "0") + "," + (oSub.HPrice != null && oSub.HPrice != 0 ? oSub.HPrice.ToString() : "0") + "," + (oSub.HMaterID != null && oSub.HMaterID != 0 ? oSub.HMaterID.ToString() : "0") + "," + (oSub.HWaster != null && oSub.HWaster != 0 ? oSub.HWaster.ToString() : "0") + ",'" + (oSub.HDate != null && oSub.HDate != DateTime.MinValue ? oSub.HDate.ToString() : DateTime.Now.ToString()) + "'," + (oSub.HBeginBalance != null && oSub.HBeginBalance != 0 ? oSub.HBeginBalance.ToString() : "0") + "," + (oSub.HEndBalance != null && oSub.HEndBalance != 0 ? oSub.HEndBalance.ToString() : "0") + "," + (oSub.HTimes != null && oSub.HTimes != 0 ? oSub.HTimes.ToString() : "0") + ")"; oCn.RunProc(subSql); } } sReturn = "æ°å¢åæ®æåï¼"; oCn.Commit(); return true; } catch (Exception e) { sReturn = e.Message; if (oCn != null) { oCn.RollBack(); } throw (e); } } public override bool ShowBill(Int64 lngBillKey, ref string sReturn) { try { //æ¥è¯¢ä¸»è¡¨ DataSet Ds; Ds = oCn.RunProcReturn("Select * from CB_ItemMoneyBillMain Where HInterID=" + lngBillKey.ToString(), "CB_ItemMoneyBillMain"); if (Ds.Tables[0].Rows.Count == 0) { sReturn = "åæ®æªæ¾å°ï¼"; return false; } //åºå®èµå¼=========================================== omodel.HYear = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HYear"]); omodel.HPeriod = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPeriod"]); omodel.HBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillType"]); omodel.HBillSubType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillSubType"]); omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]); omodel.HDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HDate"]); omodel.HBillNo = Ds.Tables[0].Rows[0]["HBillNo"].ToString().Trim(); omodel.HBillStatus = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HBillStatus"]); omodel.HCheckItemNowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNowID"]); omodel.HCheckItemNextID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNextID"]); omodel.HCheckFlowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckFlowID"]); omodel.HRemark = Ds.Tables[0].Rows[0]["HRemark"].ToString().Trim(); omodel.HBackDate = Ds.Tables[0].Rows[0]["HBackDate"].ToString().Trim(); omodel.HBacker = Ds.Tables[0].Rows[0]["HBacker"].ToString().Trim(); omodel.HCheckDate = Ds.Tables[0].Rows[0]["HCheckDate"].ToString().Trim(); omodel.HChecker = Ds.Tables[0].Rows[0]["HChecker"].ToString().Trim(); omodel.HMaker = Ds.Tables[0].Rows[0]["HMaker"].ToString().Trim(); omodel.HMakeDate = Ds.Tables[0].Rows[0]["HMakeDate"].ToString().Trim(); omodel.HUpDateDate = Ds.Tables[0].Rows[0]["HUpDateDate"].ToString().Trim(); omodel.HUpDater = Ds.Tables[0].Rows[0]["HUpDater"].ToString().Trim(); omodel.HCloseDate = Ds.Tables[0].Rows[0]["HCloseDate"].ToString().Trim(); omodel.HCloseMan = Ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim(); omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); omodel.HDeleteDate = Ds.Tables[0].Rows[0]["HDeleteDate"].ToString().Trim(); omodel.HDeleteMan = Ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim(); //======================================================== omodel.HExplanation = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HExplanation"]); omodel.HInnerBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HInnerBillNo"]); // //å¾ªç¯ DataSet DsSub; DsSub = oCn.RunProcReturn("Select * from CB_ItemMoneyBillSub Where HInterID=" + lngBillKey.ToString() + " order by HEntryID ", "CB_ItemMoneyBillSub"); DetailColl.Clear();//æ¸ ç©º for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) { Model.ClsCB_ItemMoneyBillSub_1 oSub = new Model.ClsCB_ItemMoneyBillSub_1(); // åºå®èµå¼=============================================== oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); oSub.HSourceInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceInterID"]); oSub.HSourceEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceEntryID"]); oSub.HSourceBillType = DsSub.Tables[0].Rows[i]["HSourceBillType"].ToString().Trim(); oSub.HSourceBillNo = DsSub.Tables[0].Rows[i]["HSourceBillNo"].ToString().Trim(); oSub.HRelationQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationQty"]); oSub.HRelationMoney = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationMoney"]); oSub.HCloseMan = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HCloseMan"]); oSub.HCloseType = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HCloseType"]); oSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HEntryCloseDate"]); oSub.HRemark = DsSub.Tables[0].Rows[i]["HRemark"].ToString().Trim(); //=================================================== DetailColl.Add(oSub); } sReturn = "æ¾ç¤ºåæ®æåï¼"; return true; } catch (Exception e) { sReturn = e.Message; throw (e); } } } } DBUtility/bin/Release/DBUtility.dllBinary files differ
DBUtility/bin/Release/DBUtility.pdbBinary files differ
DBUtility/bin/Release/Pub_Class.dllBinary files differ
DBUtility/bin/Release/Pub_Class.pdbBinary files differ
DBUtility/bin/Release/Pub_Control.dllBinary files differ
DBUtility/bin/Release/Pub_Control.pdbBinary files differ
DBUtility/bin/Release/SQLHelper.dllBinary files differ
DBUtility/bin/Release/SQLHelper.pdbBinary files differ
DBUtility/obj/Release/DBUtility.csproj.AssemblyReference.cacheBinary files differ
DBUtility/obj/Release/DBUtility.csproj.GenerateResource.CacheBinary files differ
DBUtility/obj/Release/DBUtility.dllBinary files differ
DBUtility/obj/Release/DBUtility.pdbBinary files differ
Model/Model.csproj
@@ -128,6 +128,8 @@ <Compile Include="åºç¡èµæ\åºç¡èµæ\ClsGy_ProjectMoneyClass_Model.cs" /> <Compile Include="åºç¡èµæ\åºç¡èµæ\ClsGy_RepairClass_Model.cs" /> <Compile Include="åºç¡èµæ\åºç¡èµæ\ClsGy_RepairCheckClass_Model.cs" /> <Compile Include="ææ¬ç®¡ç\ClsCB_ItemMoneyBillMain_1.cs" /> <Compile Include="ææ¬ç®¡ç\ClsCB_ItemMoneyBillSub_1.cs" /> <Compile Include="ç©æµç®¡ç\ClsCg_CarTrajectoryBillMain.cs" /> <Compile Include="ç©æµç®¡ç\ClsCg_CarTrajectoryBillSub.cs" /> <Compile Include="ç©æµç®¡ç\ClsPay_WayBillPaymentBillMain.cs" /> Model/bin/Release/DBUtility.dllBinary files differ
Model/bin/Release/DBUtility.pdbBinary files differ
Model/bin/Release/Model.dllBinary files differ
Model/bin/Release/Model.pdbBinary files differ
Model/bin/Release/Pub_Class.dllBinary files differ
Model/bin/Release/Pub_Class.pdbBinary files differ
Model/bin/Release/Pub_Control.dllBinary files differ
Model/bin/Release/Pub_Control.pdbBinary files differ
Model/bin/Release/SQLHelper.dllBinary files differ
Model/bin/Release/SQLHelper.pdbBinary files differ
Model/obj/Release/Model.csproj.AssemblyReference.cacheBinary files differ
Model/obj/Release/Model.dllBinary files differ
Model/obj/Release/Model.pdbBinary files differ
Model/obj/x86/Release/Model.csproj.AssemblyReference.cacheBinary files differ
Model/³É±¾¹ÜÀí/ClsCB_ItemMoneyBillMain_1.cs
New file @@ -0,0 +1,29 @@ using System; using System.Collections.Generic; using System.Text; namespace Model { public class ClsCB_ItemMoneyBillMain_1 : DBUtility.ClsXt_BaseBillMain { public int HEmpID; // --èå public int HDeptID;// --é¨é¨ public string HICMOBillNo; // --ä»»å¡åå· public string HExplanation; // --æè¦ public string HInnerBillNo; // --å é¨åæ®å· public DateTime HBeginDate; // --å¼å§æ¥æ public DateTime HEndDate; // --ç»ææ¥æ public Int64 HOrgID; //ç»ç» } } Model/³É±¾¹ÜÀí/ClsCB_ItemMoneyBillSub_1.cs
New file @@ -0,0 +1,22 @@ using System; using System.Collections.Generic; using System.Text; namespace Model { public class ClsCB_ItemMoneyBillSub_1: DBUtility.ClsXt_BaseBillSub { public int HCostItemID; // ææ¬é¡¹ç®ï¼éè´¹ç¨é¡¹ç®ï¼ public int HDeptID; // é¨é¨ public double HQty; // æ°é public double HPrice; // åä»· public double HMoney; // éé¢ public int HMaterID; // ç©æå ç public double HWaster; // æè public DateTime HDate; // æ¥æ public decimal HBeginBalance; // å¼å§æ°å¼ public decimal HEndBalance; // ç»ææ°å¼ public decimal HTimes; // æ¶é´å¨æ } } Pub_Class/bin/Release/Pub_Class.dllBinary files differ
Pub_Class/bin/Release/Pub_Class.pdbBinary files differ
Pub_Control/bin/Release/Pub_Class.dllBinary files differ
Pub_Control/bin/Release/Pub_Class.pdbBinary files differ
Pub_Control/bin/Release/Pub_Control.dllBinary files differ
Pub_Control/bin/Release/Pub_Control.pdbBinary files differ
SQLHelper/bin/Release/Pub_Class.dllBinary files differ
SQLHelper/bin/Release/Pub_Class.pdbBinary files differ
SQLHelper/bin/Release/SQLHelper.dllBinary files differ
SQLHelper/bin/Release/SQLHelper.pdbBinary files differ
SQLHelper/obj/Release/SQLHelper.csproj.AssemblyReference.cacheBinary files differ
SQLHelper/obj/Release/SQLHelper.dllBinary files differ
SQLHelper/obj/Release/SQLHelper.pdbBinary files differ
SyntacticSugar/bin/Debug/SyntacticSugar.dllBinary files differ
SyntacticSugar/bin/Debug/SyntacticSugar.pdbBinary files differ
SyntacticSugar/obj/Debug/SyntacticSugar.csproj.AssemblyReference.cacheBinary files differ
SyntacticSugar/obj/Debug/SyntacticSugar.csproj.FileListAbsolute.txt
@@ -24,3 +24,4 @@ D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.CoreCompileInputs.cache D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.dll D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.pdb D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\SyntacticSugar\obj\Debug\SyntacticSugar.csproj.AssemblyReference.cache SyntacticSugar/obj/Debug/SyntacticSugar.dllBinary files differ
SyntacticSugar/obj/Debug/SyntacticSugar.pdbBinary files differ
WebAPI/Controllers/BaseSet/Gy_MaterialController.cs
@@ -4834,7 +4834,7 @@ "," + HPrintQty + ",'" + HMouldStatus + "'," + HWHID + "," + HRoutingID + "," + HCaveQty + "," + HBOMID + ",'" + HVersion + "'," + HSPGroupID + "," + HSPID + ",'" + HDesignLife + "','" + HNowSupID + "','" + HNowSupTypeID + "'" + ",'" + HUseLife + "','" + HLeaveLife + "','" + HProdQty + "','" + HProdWeight + "','" + HMouldOWNER + "','" + HSaveLife + "','" + HMouldDotCheckRuleInterID + "','" + HMouldMaintainRuleInterID + "','" + HBarCode + "'," + HMadeSupID + ",'" + HMouldClass + "'," + HNowWHID + "," + HNowSPID + ",'" + HInitLife + " ) "); ",'" + HMouldClass + "'," + HNowWHID + "," + HNowSPID + ",'" + HInitLife + "' ) "); } else { WebAPI/Controllers/CJGL/Cj_CheckBarcodeController.cs
@@ -22,7 +22,7 @@ #region ä¸ç åä¸ï¼å¤ææ«æç©ææ¡ç ç»å®ä¿¡æ¯æ¯å¦ä¸è´ [Route("CheckBarcodeController/Get_BarCode_BarcodeCheck")] [HttpGet] public object CheckBarcode(string HBarCode_Pallet, string HBarCode_Destination, string HBarCode_MiddleBox, string HBarCode_SN, int HBarCodeType,int HInterID, string HBillNo,string HMaker,string HBillType) public object CheckBarcode(string HBarCode_Pallet, string HBarCode_Destination, string HBarCode_MiddleBox, string HBarCode_SN, int HBarCodeType, int HInterID, string HBillNo, string HMaker, string HBillType) { try { @@ -68,7 +68,7 @@ [Route("CheckBarcodeController/Save_BarCode_BarcodeCheck")] [HttpGet] public object Save_BarCode_BarcodeCheck(Int64 HInterID, string HBillNo,string HBillType) public object Save_BarCode_BarcodeCheck(Int64 HInterID, string HBillNo, string HBillType) { try { @@ -76,7 +76,7 @@ DataSet ds = oCn.RunProcReturn("exec h_p_WMS_BarCodeBingCheckBill_Insert " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "'", "h_p_WMS_BarCodeBingCheckBill_Insert"); if (ds == null || ds.Tables[0].Rows.Count == 0) { { oCn.RollBack(); objJsonResult.code = "0"; @@ -122,5 +122,140 @@ } #endregion #region æç®±å°å« [Route("CheckBarcodeController/UnpackMiddleBox")] [HttpGet] public object UnpackMiddleBox(string HBarCode_Middle, int signal, string HMaker, string HDate) { try { if (signal == 1)//æ«ç { DataSet ds = oCn.RunProcReturn("select a.HCaseCode ä¸ç®±ç ,a.HBarCode 对åºçSNç ,b.HNumber ç©æä»£ç ,b.HName ç©æåç§° from Gy_CaseCodeRelation a left join Gy_Material b on a.HMaterID=b.HItemID where HCaseCode='" + HBarCode_Middle + "'", "Gy_CaseCodeRelation"); if (ds.Tables[0].Rows[0]["ä¸ç®±ç "].ToString() == "" || ds == null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¡ç ä¸åå¨ï¼è¯·æ£æ¥æ¯å¦è£ ç®±"; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } else { oCn.BeginTran(); oCn.RunProc("delete from Gy_CaseCodeRelation where HCaseCode='" + HBarCode_Middle + "'"); DataSet dss = oCn.RunProcReturn("select * from Gy_BarCodeBill where HBarCode=' " + HBarCode_Middle + "'", "Gy_BarCodeBill"); if (dss != null && dss.Tables.Count > 0) { oCn.RunProc("delete from Gy_BarCodeBill where HBarCode='" + HBarCode_Middle + "'"); } oCn.RunProc("insert into System_log VALUES('" + HDate + "','" + HMaker + "',''," + "'å°å«æç®±æ¡ç " + HBarCode_Middle + "'," + "'APP-ä¸ç®±ç æç®±'" + ",''," + "'å 餿¡ç ')"); oCn.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = null; return objJsonResult; } } catch (Exception) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "é误请è系管çå"; objJsonResult.data = null; return objJsonResult; } } #endregion #region snè£ ç®±å°å« [Route("CheckBarcodeController/PackedBoxSn")] [HttpGet] public object PackedBoxSn(string HBarCode, string HMaker, string HDate) { try { DataSet ds = oCn.RunProcReturn("select a.HBarCode snç ,a.HItemID,b.Hname ç©æåç§°,b.hnumber ç©æä»£ç from Gy_BarCodeBill a LEFT JOIN Gy_Material b on a.hmaterid=b.hitemid where HBarCode='" + HBarCode + "'", "Gy_BarCodeBill"); if(ds.Tables[0].Rows.Count==0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "该snç ä¸åå¨ï¼è¯·æ£æ¥ï¼ï¼"; objJsonResult.data = null; return objJsonResult; } DataSet dss = oCn.RunProcReturn("select * from Gy_CaseCodeRelation where HBarCode='" + HBarCode + "'", "Gy_CaseCodeRelation"); int counts=dss.Tables[0].Rows.Count; if (counts > 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "该snç å·²ç»è£ ç®±ï¼è¯·æ£æ¥ï¼ï¼"; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region snè£ ç®±å°å«æäº¤ [Route("CheckBarcodeController/submitPackedBoxSn")] [HttpGet] public object submitPackedBoxSn(string HItemIDs, string HMaker, string HDate) { try { DataSet ds = oCn.RunProcReturn("exec h_p_Gy_CaseCodeBySN '"+ HItemIDs+ "'", "h_p_Gy_CaseCodeBySN"); if (ds.Tables[0].Rows[0]["HBack"] == "2") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä¸ç®±ç å·²åå¨è¯·éæ°çæ"; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion } } WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
@@ -3777,6 +3777,122 @@ } #endregion #region å°å«ç»æç¼å æ¥è¯¢ [Route("Cj_SingleStation/xiaoweizutuo_CacheList")] [HttpGet] public object xiaoweizutuo_CacheList(string sWhere, string user, string gnsy) { try { List<object> columnNameList = new List<object>(); if (gnsy != "" && gnsy != null) { //æ¥çæé if (!DBUtility.ClsPub.Security_Log(gnsy, 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ æ¥çæéï¼"; objJsonResult.data = null; return objJsonResult; } } if (sWhere == null || sWhere.Equals("")) { ds = oCN.RunProcReturn("select * from h_v_Sc_PackUnionBill_Temp" + " order by æ æ¿ç desc,ä¸ç®±ç ,SNç ", "h_v_Sc_PackUnionBill_Temp"); } else { string sql1 = "select * from h_v_Sc_PackUnionBill_Temp where 1 = 1 "; string sql = sql1 + sWhere + " order by æ æ¿ç desc,ä¸ç®±ç ,SNç "; ds = oCN.RunProcReturn(sql, "h_v_Sc_PackUnionBill_Temp"); } //æ·»å åå foreach (DataColumn col in ds.Tables[0].Columns) { Type dataType = col.DataType; string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region å°å«ç»æç¼å å é¤ /// <summary> ///åæ°ï¼string HInterIDã ///è¿åå¼ï¼objectã /// </summary> [Route("Cj_SingleStation/deleteBill")] [HttpGet] public object deleteBill(string HInterID, string user,string gnsy) { try { if (gnsy != "" && gnsy != null) { //æ¥çæé if (!DBUtility.ClsPub.Security_Log(gnsy, 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ æ¥çæéï¼"; objJsonResult.data = null; return objJsonResult; } } if (HInterID == null || HInterID.Equals("")) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HInterIDä¸è½ä¸ºç©ºï¼"; objJsonResult.data = null; return objJsonResult; } oCN.BeginTran(); oCN.RunProc("delete from Sc_PackUnionBill_Temp where HInterID = " + HInterID); oCN.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #endregion } WebAPI/Controllers/³É±¾¹ÜÀí/CB_ItemMoneyBillController.cs
New file @@ -0,0 +1,1362 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Web; using System.Web.Http; using WebAPI.Models; using WebAPI.Controllers.SCGL.æ¥è®¡å管ç; using System.IO; using System.Linq; using System.Text; namespace WebAPI.Controllers { //ææ¬è´¹ç¨åController public class CB_ItemMoneyBillController : ApiController { //ææ¬è´¹ç¨å //è·åç³»ç»åæ° CB_ItemMoneyBillMain CB_ItemMoneyBill public DBUtility.ClsPub.Enum_BillStatus BillStatus; public DAL.ClsCB_ItemMoneyBillMain BillOld = new DAL.ClsCB_ItemMoneyBillMain(); public DAL.ClsCB_ItemMoneyBillMain BillNew0 = new DAL.ClsCB_ItemMoneyBillMain(); private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; #region ææ¬è´¹ç¨åå表 æ¥è¯¢ /// <summary> /// è¿å项ç®é¶æ®µå表 ///åæ°ï¼string sqlã ///è¿åå¼ï¼objectã /// </summary> [Route("CB_ItemMoneyBillTran/CB_ItemMoneyBillMainList")] [HttpGet] public object CB_ItemMoneyBillMainList(string sWhere, string user) { try { List<object> columnNameList = new List<object>(); //æ¥çæé if (!DBUtility.ClsPub.Security_Log("CB_ItemMoney_Query", 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ æ¥çæéï¼"; objJsonResult.data = null; return objJsonResult; } if (sWhere == null || sWhere.Equals("")) { ds = oCN.RunProcReturn("select * from h_v_CB_ItemMoneyBillMainList order by åæ®å· desc", "h_v_CB_ItemMoneyBillMainList"); } else { string sql1 = "select * from h_v_CB_ItemMoneyBillMainList where 1 = 1 "; string sql = sql1 + sWhere + " order by åæ®å· desc"; ds = oCN.RunProcReturn(sql, "h_v_CB_ItemMoneyBillMainList"); } //æ·»å åå foreach (DataColumn col in ds.Tables[0].Columns) { Type dataType = col.DataType; string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ææ¬è´¹ç¨åä¿åææ¬è´¹ç¨åä¿å æ°å¢/ç¼è¾ [Route("CB_ItemMoneyBillTran/SaveCB_ItemMoneyBillMain")] [HttpPost] public object SaveCB_ItemMoneyBillMain ([FromBody] JObject msg) { var _value = msg["msg"].ToString(); string msg1 = _value.ToString(); string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); //å表 string refSav = sArray[2].ToString();//æä½æ¹å¼æ°æ®ç±»å 1æ·»å 3ä¿®æ¹ 2 å¤å¶ string msg4 = sArray[3].ToString();//ç¨æ·å DBUtility.ClsPub.CurUserName = msg4; string UserName = ""; string s = ""; ListModels oListModels = new ListModels(); try { //ç¼è¾æé if (!DBUtility.ClsPub.Security_Log_second("CB_ItemMoney_Edit", 1, false, msg4)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ ä¿åæéï¼"; objJsonResult.data = null; return objJsonResult; } DAL.ClsCB_ItemMoneyBillMain oBill = new DAL.ClsCB_ItemMoneyBillMain(); List<Model.ClsCB_ItemMoneyBillMain_1> lsmain = new List<Model.ClsCB_ItemMoneyBillMain_1>(); msg2 = msg2.Replace("\\", ""); msg2 = msg2.Replace("\n", ""); //\n lsmain = oListModels.getObjectByJson_CB_ItemMoneyBillMain(msg2); foreach (Model.ClsCB_ItemMoneyBillMain_1 oItem in lsmain) { if (refSav == "Add") { //忮巿¯å¦éå¤ if (BillNew0.IsExistBillNo(ref ClsPub.sExeReturnInfo, oItem.HBillNo, BillStatus, BillOld.omodel.HInterID)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å 许ä¿åï¼"; objJsonResult.data = 1; return objJsonResult; } } if (refSav == "Update") { if (BillOld.ShowBill(oItem.HInterID, ref s) == false) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤åæ®æè¯¯ï¼"; objJsonResult.data = 1; return objJsonResult; } //夿æ¯å¦å¯ç¼è¾ if (BillOld.omodel.HChecker != "" && BillOld.omodel.HChecker != null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤åæ®å·²ç»è¢«å®¡æ ¸ï¼ä¸å 许修æ¹ï¼"; objJsonResult.data = 1; return objJsonResult; } if (BillOld.omodel.HBillStatus > 1) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤åæ®å¤äºä¸å¯ç¼è¾ç¶æï¼ä¸å 许修æ¹ï¼"; objJsonResult.data = 1; return objJsonResult; } if (!DBUtility.Xt_BaseBillFun.Fun_AllowEditBill(BillOld, ref s)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = s + "ï¼ä¸å 许修æ¹"; objJsonResult.data = 1; return objJsonResult; } } UserName = oItem.HMaker; //å¶å人 oItem.HBillType = "1802"; oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); oItem.HPeriod = DBUtility.ClsPub.isLong(DateTime.Now.Month); oItem.HMakeDate = DBUtility.ClsPub.isStrNull(DateTime.Now.ToString("yyyy-MM-dd")); if (DBUtility.ClsPub.isStrNull(oItem.HDate) == "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä¿åå¤±è´¥ï¼æ²¡æåæ®æ¥æï¼æ æ³ä¿åï¼"; objJsonResult.data = 1; return objJsonResult; } oBill.omodel = oItem; } // è¡¨ä½æ°æ® //æ },{æ¥æåæ°ç» //廿ãåã msg3 = msg3.Substring(1, msg3.Length - 2); msg3 = msg3.Replace("\\", ""); msg3 = msg3.Replace("\n", ""); //\n List<Model.ClsCB_ItemMoneyBillSub_1> ls = new List<Model.ClsCB_ItemMoneyBillSub_1>(); ls = oListModels.getObjectByJson_CB_ItemMoneyBillSub(msg3); int i = 0; foreach (Model.ClsCB_ItemMoneyBillSub_1 oItemSub in ls) { i++; oItemSub.HEntryID = i; oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); oItemSub.HCloseType = false; //å ³éç±»å oBill.DetailColl.Add(oItemSub); } //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ int sYear = 0; int sPeriod = 0; DateTime HDate = DateTime.Now; if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) { objJsonResult.Message = s; return objJsonResult; } //ä¿å //ä¿å宿¯åå¤ç bool bResult; if (refSav == "Add") { bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); } else if (refSav == "Update") { bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); } else { bResult = false; } if (bResult) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "ä¿åæåï¼"; objJsonResult.data = 1; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = 1; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä¿å失败ï¼" + e.ToString(); objJsonResult.data = 1; return objJsonResult; } } #endregion #region ææ¬è´¹ç¨å ç¼è¾é¡µé¢åå§å [Route("CB_ItemMoneyBillTran/CB_ItemMoneyBillMainEditList")] [HttpGet] public object CB_ItemMoneyBillMainEditList(long HInterID) { try { List<DataTable> tableList = new List<DataTable>(); ds = oCN.RunProcReturn("exec h_p_CB_ItemMoneyBillMain_Edit @HInterID = " + HInterID, "h_p_CB_ItemMoneyBillMain_Edit"); tableList.Add(ds.Tables[0]); tableList.Add(ds.Tables[1]); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "falseï¼"; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = tableList; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ææ¬è´¹ç¨å å é¤ /// <summary> ///åæ°ï¼string HInterIDã ///è¿åå¼ï¼objectã /// </summary> [Route("CB_ItemMoneyBillTran/DeleteCB_ItemMoneyBillMain")] [HttpGet] public object DeleteCB_ItemMoneyBillMain (string HInterID, string user) { try { string s = ""; //æ¥çæé if (!DBUtility.ClsPub.Security_Log("CB_ItemMoney_Drop", 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ å 餿éï¼"; objJsonResult.data = null; return objJsonResult; } if (HInterID == null || HInterID.Equals("")) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HInterIDä¸è½ä¸ºç©ºï¼"; objJsonResult.data = null; return objJsonResult; } if (BillOld.ShowBill(long.Parse(HInterID), ref s) == false) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤åæ®æè¯¯ï¼"; objJsonResult.data = 1; return objJsonResult; } //夿æ¯å¦å¯ç¼è¾ if (BillOld.omodel.HChecker != "" && BillOld.omodel.HChecker != null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤åæ®å·²ç»è¢«å®¡æ ¸ï¼ä¸å 许å é¤ï¼"; objJsonResult.data = 1; return objJsonResult; } //å é¤åæ§å¶========================================= string sql1 = "exec h_p_CB_ItemMoneyBill_BeforeDelCtrl " + BillOld.omodel.HInterID + ",'" + BillOld.omodel.HBillNo + "','" + user + "'"; ds = oCN.RunProcReturn(sql1, "h_p_CB_ItemMoneyBill _BeforeDelCtrl"); if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å é¤å¤±è´¥!åå :å é¤åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; objJsonResult.data = null; return objJsonResult; } if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å é¤å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; objJsonResult.data = null; return objJsonResult; } //================================================================================== //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ int sYear = 0; int sPeriod = 0; DateTime HDate = DateTime.Now; if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) { objJsonResult.Message = s; return objJsonResult; } oCN.BeginTran(); oCN.RunProc("delete from CB_ItemMoneyBillMain where HInterID = " + HInterID); oCN.RunProc("delete from CB_ItemMoneyBillSub where HInterID= " + HInterID); //å é¤åæ§å¶================================================================================== string sql2 = "exec h_p_CB_ItemMoneyBill_AfterDelCtrl " + BillOld.omodel.HInterID + ",'" + BillOld.omodel.HBillNo + "','" + user + "'"; ds = oCN.RunProcReturn(sql2, "h_p_CB_ItemMoneyBill _AfterDelCtrl"); if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) { s = "å é¤åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å é¤å¤±è´¥!åå :" + s; objJsonResult.data = null; oCN.RollBack(); return objJsonResult; } if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") { s = ds.Tables[0].Rows[0]["HRemark"].ToString(); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å é¤å¤±è´¥!åå :" + s; objJsonResult.data = null; oCN.RollBack(); return objJsonResult; } //============================================================================================== oCN.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "å 餿å"; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ææ¬è´¹ç¨å å®¡æ ¸/åå®¡æ ¸ /// <summary> /// </summary> /// <param name="HInterID">åæ®ID</param> /// <param name="IsAudit">å®¡æ ¸(0),åå®¡æ ¸(1)</param> /// <param name="CurUserName">å®¡æ ¸äºº</param> /// <returns></returns> [Route("CB_ItemMoneyBillTran/AuditCB_ItemMoneyBillMain")] [HttpGet] public object AuditCB_ItemMoneyBillMain (int HInterID, int IsAudit, string CurUserName) { string ModRightNameCheck = "CB_ItemMoney_Check"; DBUtility.ClsPub.CurUserName = CurUserName; try { //å®¡æ ¸æé if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; objJsonResult.data = null; return objJsonResult; } //HInterIDæ°æ®å¤æ if (HInterID <= 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HInterIDå°äº0ï¼"; objJsonResult.data = null; return objJsonResult; } Int64 lngBillKey = 0; lngBillKey = DBUtility.ClsPub.isLong(HInterID); //对HInterIDè¿è¡ç±»åçè½¬æ¢ DAL.ClsCB_ItemMoneyBillMain oBill = new DAL.ClsCB_ItemMoneyBillMain(); //å®ä¾ååæ®æä½ç±»ï¼ç¨äºè¿è¡ç¸å ³æä½ //é对éè¦è¿è¡çæä½ï¼æ£éªå½ååæ®çç¶ææ¯å¦æ¯æéè¦è¿è¡çæä½ if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) //æ ¹æ®HInterIDè·åè¯¥åæ®çæ°æ® { if (oBill.omodel.HCloseMan.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®å·²å ³é!ä¸è½åæ¬¡å®¡æ ¸ï¼"; objJsonResult.data = null; return objJsonResult; } if (oBill.omodel.HDeleteMan.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "忮已ä½åº!ä¸è½åæ¬¡å®¡æ ¸ï¼"; objJsonResult.data = null; return objJsonResult; } if (IsAudit == 0) //å®¡æ ¸å¤æ { if (oBill.omodel.HChecker.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®å·²å®¡æ ¸!ä¸è½åæ¬¡å®¡æ ¸ï¼"; objJsonResult.data = null; return objJsonResult; } } if (IsAudit == 1) //åå®¡æ ¸å¤æ { if (oBill.omodel.HChecker.Trim() == "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®æªå®¡æ ¸!ä¸éè¦åå®¡æ ¸!"; objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } //è¿è¡éè¦è¿è¡çå®¡æ ¸/åå®¡æ ¸æä½ if (IsAudit == 0) //å®¡æ ¸æäº¤ { //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ string s = ""; int sYear = 0; int sPeriod = 0; DateTime HDate = DateTime.Now; if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) { objJsonResult.Message = s; return objJsonResult; } oCN.BeginTran(); //è®°å½è¿åä¿¡æ¯ string msg = ""; //å®¡æ ¸åæ§å¶========================================= string sql1 = "exec h_p_CB_ItemMoneyBill_BeforeCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'"; ds = oCN.RunProcReturn(sql1, "h_p_CB_ItemMoneyBill_BeforeCheckCtrl"); if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :å®¡æ ¸åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; objJsonResult.data = null; oCN.RollBack(); return objJsonResult; } if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; objJsonResult.data = null; oCN.RollBack(); return objJsonResult; } //================================================================================== //å®¡æ ¸æäº¤ if (oBill.CheckBill(oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_CB_ItemMoneyBill_AfterCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true) { oCN.Commit(); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "å®¡æ ¸æåï¼" + msg; objJsonResult.data = null; return objJsonResult; } else { oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } } if (IsAudit == 1) //åå®¡æ ¸æäº¤ { //åå®¡æ ¸åæ§å¶========================================= string sql1 = "exec h_p_CB_ItemMoneyBill_BeforeUnCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'"; ds = oCN.RunProcReturn(sql1, "h_p_CB_ItemMoneyBill_BeforeUnCheckCtrl"); if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :åå®¡æ ¸åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; objJsonResult.data = null; return objJsonResult; } if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; objJsonResult.data = null; return objJsonResult; } //=========================================================== //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ string s = ""; int sYear = 0; int sPeriod = 0; DateTime HDate = DateTime.Now; if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) { objJsonResult.Message = s; return objJsonResult; } //åå®¡æ ¸æäº¤AbandonCheck if (oBill.AbandonCheck(oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_CB_ItemMoneyBill_AfterUnCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true) { objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "åå®¡æ ¸æå"; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } } return objJsonResult; } catch (Exception e) { oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å®¡æ ¸å¤±è´¥æè åå®¡æ ¸å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ææ¬è´¹ç¨å å ³é/åå ³é /// <summary> /// </summary> /// <param name="HInterID">åæ®ID</param> /// <param name="IsAudit">å ³é(0),åå ³é(1)</param> /// <param name="CurUserName">å ³é人</param> /// <returns></returns> [Route("CB_ItemMoneyBillTran/CloseCB_ItemMoneyBill")] [HttpGet] public object CloseCB_ItemMoneyBill (int HInterID, int IsAudit, string CurUserName) { string ModRightNameCheck = "CB_ItemMoney_Close"; DBUtility.ClsPub.CurUserName = CurUserName; try { //æ£æ¥æé if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å ³éå¤±è´¥ï¼æ æéï¼"; objJsonResult.data = null; return objJsonResult; } //HInterIDæ°æ®å¤æ if (HInterID <= 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HInterIDå°äº0ï¼"; objJsonResult.data = null; return objJsonResult; } Int64 lngBillKey = 0; lngBillKey = DBUtility.ClsPub.isLong(HInterID); //对HInterIDè¿è¡ç±»åçè½¬æ¢ DAL.ClsCB_ItemMoneyBillMain oBill = new DAL.ClsCB_ItemMoneyBillMain(); //å®ä¾ååæ®æä½ç±»ï¼ç¨äºè¿è¡ç¸å ³æä½ //é对éè¦è¿è¡çæä½ï¼æ£éªå½ååæ®çç¶ææ¯å¦æ¯æéè¦è¿è¡çæä½ if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) //æ ¹æ®HInterIDè·åè¯¥åæ®çæ°æ® { if (oBill.omodel.HDeleteMan.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "忮已ä½åº!ä¸è½è¿è¡å ³éï¼"; objJsonResult.data = null; return objJsonResult; } if (oBill.omodel.HChecker.Trim() == "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®æªå®¡æ ¸!ä¸è½è¿è¡å ³éï¼"; objJsonResult.data = null; return objJsonResult; } if (IsAudit == 0) //å ³é夿 { if (oBill.omodel.HCloseMan.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®å·²å ³é!ä¸è½åæ¬¡å ³éï¼"; objJsonResult.data = null; return objJsonResult; } } if (IsAudit == 1) //åå ³é夿 { if (oBill.omodel.HCloseMan.Trim() == "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®æªå ³é!ä¸éè¦åå ³éï¼"; objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } //è¿è¡éè¦è¿è¡çå ³é/åå ³éæä½ if (IsAudit == 0) //å ³éæäº¤ { //å ³éæäº¤ if (oBill.CloseBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) { objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "å ³éæå"; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å ³é失败!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } } if (IsAudit == 1) //åå ³éæäº¤ { //åå ³éæäº¤ if (oBill.CancelClose(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) { objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "åå ³éæå"; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åå ³é失败!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } } return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å ³é失败æè åå ³é失败ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region ææ¬è´¹ç¨å ä½åº/åä½åº /// <summary> /// </summary> /// <param name="HInterID">åæ®ID</param> /// <param name="IsAudit">ä½åº(0),åä½åº(1)</param> /// <param name="CurUserName">ä½åºäºº</param> /// <returns></returns> [Route("CB_ItemMoneyBillTran/DeleteCB_ItemMoneyBill")] [HttpGet] public object DeleteCB_ItemMoneyBill (int HInterID, int IsAudit, string CurUserName) { string ModRightNameCheck = "CB_ItemMoney_Delete"; DBUtility.ClsPub.CurUserName = CurUserName; try { //æ£æ¥æé if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä½åºå¤±è´¥ï¼æ æéï¼"; objJsonResult.data = null; return objJsonResult; } //HInterIDæ°æ®å¤æ if (HInterID <= 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "HInterIDå°äº0ï¼"; objJsonResult.data = null; return objJsonResult; } Int64 lngBillKey = 0; lngBillKey = DBUtility.ClsPub.isLong(HInterID); //对HInterIDè¿è¡ç±»åçè½¬æ¢ DAL.ClsCB_ItemMoneyBillMain oBill = new DAL.ClsCB_ItemMoneyBillMain(); //å®ä¾ååæ®æä½ç±»ï¼ç¨äºè¿è¡ç¸å ³æä½ //é对éè¦è¿è¡çæä½ï¼æ£éªå½ååæ®çç¶ææ¯å¦æ¯æéè¦è¿è¡çæä½ if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) //æ ¹æ®HInterIDè·åè¯¥åæ®çæ°æ® { if (oBill.omodel.HChecker.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®å·²å®¡æ ¸!ä¸è½è¿è¡ä½åºï¼"; objJsonResult.data = null; return objJsonResult; } if (IsAudit == 0) //ä½åºå¤æ { if (oBill.omodel.HDeleteMan.Trim() != "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "忮已ä½åº!ä¸è½åä½åºï¼"; objJsonResult.data = null; return objJsonResult; } } if (IsAudit == 1) //åä½åºå¤æ { if (oBill.omodel.HDeleteMan.Trim() == "") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®æªä½åº!ä¸éè¦åä½åºï¼"; objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } //è¿è¡éè¦è¿è¡çä½åº/åä½åºæä½ if (IsAudit == 0) //ä½åºæäº¤ { //ä½åºæäº¤ if (oBill.Cancelltion(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) { objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "ä½åºæå"; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä½åºå¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } } if (IsAudit == 1) //åå ³éæäº¤ { //åå ³éæäº¤ if (oBill.AbandonCancelltion(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) { objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "åä½åºæå"; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åä½åºå¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; objJsonResult.data = null; return objJsonResult; } } return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ä½åºå¤±è´¥æè åä½åºå¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region æä»¶ä¸ä¼ [Route("CB_ItemMoneyBillController/CB_ItemMoneyBill_Excel")] [HttpPost] public json CB_ItemMoneyBill_Excel() { json res = new json(); try { //è·åæä»¶åç§° var file = HttpContext.Current.Request.Files[0]; //è·åæä»¶ç©çè·¯å¾ string ExcelPath = HttpContext.Current.Server.MapPath("~/" + file.FileName); //ä¿åæä»¶ file.SaveAs(ExcelPath); SCGL.æ¥è®¡å管ç.NpoiHelper np = new NpoiHelper(); DataSet ExcelDs = np.ReadExcel(ExcelPath, 1, 1, "0"); //å 餿件 File.Delete(ExcelPath); //å建临æ¶è¡¨ DataTable provisional = new DataTable("dt2"); //æ·»å åå for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++) { provisional.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); } provisional.Columns.Add("åæ®å·", typeof(string)); //æ·»å æ°æ® for (int i = 1; i < ExcelDs.Tables[0].Rows.Count; i++) { DataRow row = provisional.NewRow(); for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) { row[j] = ExcelDs.Tables[0].Rows[i][j].ToString(); } provisional.Rows.Add(row); } //夿å string error = JudgmentColumns(provisional); if (error.Length > 0) { res.code = "0"; res.count = 0; res.Message = $"Excel模æ¿åå¨é误,{error}\r\n"; res.data = null; return res; } for (int i = 0; i <= provisional.Rows.Count - 1; i++) { //string HBillNo= DBUtility.ClsPub.CreateBillCode("1802", ref DBUtility.ClsPub.sExeReturnInfo, true); //provisional.Rows[i]["åæ®å·"] = HBillNo; string HDepNumber = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["é¨é¨ä»£ç "].ToString()); string HDepName = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["é¨é¨"].ToString()); string HEmpNumber = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["èå代ç "].ToString()); string HEmpName = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["èå"].ToString()); string HICMOBillNo = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ç产订åå·"].ToString()); string HCostItemNumber = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ææ¬é¡¹ç®ä»£ç "].ToString()); string HCostItemName = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ææ¬é¡¹ç®"].ToString()); //string HEntryID = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["å表å ç "].ToString()); string HDepNumber_sub = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["åé¨é¨ä»£ç "].ToString()); string HDepName_sub = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["åé¨é¨"].ToString()); string HMaterNumber = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ç©æç¼ç "].ToString()); string HMaterName = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ç©æåç§°"].ToString()); string HQty = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["æ°é"].ToString()); string HPrice = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["åä»·"].ToString()); string HMoney = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["éé¢"].ToString()); string HWaster = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["æèé"].ToString()); //string HRelationQty = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["å ³èæ°é"].ToString()); //string HRelationMoney = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["å ³èéé¢"].ToString()); string remark = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["夿³¨"].ToString()); //è·åçå®è¡æ° int line = i + 1; } res.code = "1"; res.count = 1; res.Message = error; res.data = provisional; return res; } catch (Exception e) { res.code = "0"; res.count = 0; res.Message = "Exceptionï¼" + e.ToString(); res.data = null; return res; } } /// <summary> /// 夿å /// </summary> /// <param name="provisional"></param> /// <returns></returns> private static string JudgmentColumns(DataTable provisional) { var error = ""; //æ¥è¯¢æ²¡æçå //if (!provisional.Columns.Contains("å表å ç ")) // error += "æ²¡ææ¾å°ãå表å ç ãçæ é¢,"; if (!provisional.Columns.Contains("ç©æç¼ç ")) error += "æ²¡ææ¾å°ãç©æç¼ç ãçæ é¢,"; return error; } #endregion #region ä¸ä¼ ä¿å [Route("CB_ItemMoneyBillController/Excel_btnSave")] [HttpPost] public object Excel_btnSave([FromBody] JObject sMainSub) { var _value = sMainSub["sMainSub"].ToString(); string msg1 = _value.ToString(); string[] sArray = msg1.Split(new string[] { "&å" }, StringSplitOptions.RemoveEmptyEntries); string msg2 = sArray[0].ToString(); string user = sArray[1].ToString(); string organ = sArray[2].ToString(); json res = new json(); try { oCN.BeginTran(); List<object> Excel = Newtonsoft.Json.JsonConvert.DeserializeObject<List<object>>(msg2); List<Dictionary<string, string>> list = new List<Dictionary<string, string>>(); foreach (JObject item in Excel) { Dictionary<string, string> dic = new Dictionary<string, string>(); foreach (var itm in item.Properties()) { dic.Add(itm.Name, itm.Value.ToString()); } list.Add(dic); } // 1. æ¶éææéè¦æ¥è¯¢çæ°æ® var HBillnos = list.Select(x => x["åæ®å·"].ToString()).Distinct().ToList(); var HDeptNames = list.Select(x => x["é¨é¨"].ToString()).Distinct().ToList(); var HDeptNumbers = list.Select(x => x["é¨é¨ä»£ç "].ToString()).Distinct().ToList(); var HDeptNames_sub = list.Select(x => x["åé¨é¨"].ToString()).Distinct().ToList(); var HDeptNumbers_sub = list.Select(x => x["åé¨é¨ä»£ç "].ToString()).Distinct().ToList(); var materialNumbers = list.Select(x => x["ç©æç¼ç "].ToString()).Distinct().ToList(); var materialNames = list.Select(x => x["ç©æåç§°"].ToString()).Distinct().ToList(); var EmpNumbers = list.Select(x => x["èå代ç "].ToString()).Distinct().ToList(); var EmpNames = list.Select(x => x["èå"].ToString()).Distinct().ToList(); var CostNumbers = list.Select(x => x["ææ¬é¡¹ç®ä»£ç "].ToString()).Distinct().ToList(); var CostNames = list.Select(x => x["ææ¬é¡¹ç®"].ToString()).Distinct().ToList(); var ICMONumbers = list.Select(x => x["ç产订åå·"].ToString()).Distinct().ToList(); // 2. æ¹éæ¥è¯¢ç产订åå ç string ICMOQuery = $"SELECT HInterID,HBillNo FROM Sc_ICMOBillMain WHERE HBillNo IN ({string.Join(",", ICMONumbers.Select(s => $"'{s.Replace("'", "''")}'"))})"; DataSet icmoData = oCN.RunProcReturn(ICMOQuery, "Sc_ICMOBillMain"); Dictionary<string, int> ICMODict = new Dictionary<string, int>(); foreach (DataRow row in icmoData.Tables[0].Rows) { ICMODict[row["HBillNo"].ToString()] = (int)row["HInterID"]; } // 2. æ¹éæ¥è¯¢ä¸»å表é¨é¨ä¿¡æ¯ string supplierQuery = $"SELECT HItemID, HName FROM Gy_Department WHERE HName IN ({string.Join(",", HDeptNames.Select(s => $"'{s.Replace("'", "''")}'"))})"; DataSet supData = oCN.RunProcReturn(supplierQuery, "Gy_Department"); Dictionary<string, int> supplierDict = new Dictionary<string, int>(); foreach (DataRow row in supData.Tables[0].Rows) { supplierDict[row["HName"].ToString()] = (int)row["HItemID"]; } // 2.1 æ¹éæ¥è¯¢ä¸»å表é¨é¨ä¿¡æ¯ string supplierQuery_sub = $"SELECT HItemID, HName FROM Gy_Department WHERE HName IN ({string.Join(",", HDeptNames_sub.Select(s => $"'{s.Replace("'", "''")}'"))})"; DataSet supData_sub = oCN.RunProcReturn(supplierQuery_sub, "Gy_Department"); Dictionary<string, int> supplierDict_sub = new Dictionary<string, int>(); foreach (DataRow row in supData_sub.Tables[0].Rows) { supplierDict_sub[row["HName"].ToString()] = (int)row["HItemID"]; } // 3. æ¹éæ¥è¯¢ç©æä¿¡æ¯ string materialQuery = $"SELECT HItemID, HNumber, HName FROM Gy_Material WHERE HNumber IN ({string.Join(",", materialNumbers.Select(m => $"'{m.Replace("'", "''")}'"))}) AND HName IN ({string.Join(",", materialNames.Select(m => $"'{m.Replace("'", "''")}'"))})"; DataSet materData = oCN.RunProcReturn(materialQuery, "Gy_Material"); Dictionary<string, int> materialDict = new Dictionary<string, int>(); foreach (DataRow row in materData.Tables[0].Rows) { string key = $"{row["HNumber"]}_{row["HName"]}"; materialDict[key] = (int)row["HItemID"]; } // 3. æ¹éæ¥è¯¢èåä¿¡æ¯ string EmployeeQuery = $"SELECT HItemID, HNumber, HName FROM Gy_Employee WHERE HNumber IN ({string.Join(",", EmpNumbers.Select(m => $"'{m.Replace("'", "''")}'"))}) AND HName IN ({string.Join(",", EmpNames.Select(m => $"'{m.Replace("'", "''")}'"))})"; DataSet EmpData = oCN.RunProcReturn(EmployeeQuery, "Gy_Employee"); Dictionary<string, int> EmpDict = new Dictionary<string, int>(); foreach (DataRow row in EmpData.Tables[0].Rows) { string key = $"{row["HName"].ToString()}"; EmpDict[key] = (int)row["HItemID"]; } // 3. æ¹éæ¥è¯¢chengbenxiangmuä¿¡æ¯ string CostQuery = $"SELECT HItemID, HNumber, HName FROM Gy_ItemMoney_1 WHERE HNumber IN ({string.Join(",", CostNumbers.Select(m => $"'{m.Replace("'", "''")}'"))}) AND HName IN ({string.Join(",", CostNames.Select(m => $"'{m.Replace("'", "''")}'"))})"; DataSet CostData = oCN.RunProcReturn(CostQuery, "Gy_ItemMoney_1"); Dictionary<string, int> CostDict = new Dictionary<string, int>(); foreach (DataRow row in CostData.Tables[0].Rows) { string key = $"{row["HName"].ToString()}"; CostDict[key] = (int)row["HItemID"]; } // 4. æ¥è¯¢ç¨æ·ä¿¡æ¯ DataSet emp = oCN.RunProcReturn($"SELECT Czybm FROM Gy_Czygl WHERE Czymc = '{user.Replace("'", "''")}'", "Gy_Czygl"); if (emp.Tables[0].Rows.Count == 0) { res.code = "0"; res.count = 0; res.Message = "ç¨æ·ä¸åå¨ï¼"; res.data = null; return res; } string HUserID = emp.Tables[0].Rows[0]["Czybm"].ToString(); // 5. æ£æ¥ç¼ºå¤±çé¨é¨åç©æï¼å¹¶è®°å½è¡å· List<string> missingSupplierMessages = new List<string>(); List<string> missingMaterialMessages = new List<string>(); // é忝ä¸è¡æ°æ®ï¼è®°å½è¡å·ï¼ä»1å¼å§ï¼ for (int i = 0; i < list.Count; i++) { var item = list[i]; int lineNumber = i + 1; // è¡å·ä»1å¼å§ string ICMOcheck = item["ç产订åå·"]; string supplier = item["é¨é¨"]; string materialNumber = item["ç©æç¼ç "]; string materialName = item["ç©æåç§°"]; string materialKey = $"{materialNumber}_{materialName}"; // æ£æ¥ä¾åºå if (!supplierDict.ContainsKey(supplier)) { missingSupplierMessages.Add($"第{lineNumber}è¡çé¨é¨ã{supplier}ã"); } // æ£æ¥ç©æ if (!materialDict.ContainsKey(materialKey)) { missingMaterialMessages.Add($"第{lineNumber}è¡çç©æã{materialName}(ç¼ç :{materialNumber})ã"); } // æ£æ¥ç产订å if (!string.IsNullOrEmpty(ICMOcheck) && !ICMODict.ContainsKey(ICMOcheck)) { missingMaterialMessages.Add($"第{lineNumber}è¡çç产订åã{ICMOcheck}ã"); } } StringBuilder errorMessage = new StringBuilder(); if (missingSupplierMessages.Any()) { errorMessage.Append("以ä¸é¨é¨æªç»´æ¤ï¼"); errorMessage.Append(string.Join("ã", missingSupplierMessages)); errorMessage.Append("ï¼"); } if (missingMaterialMessages.Any()) { errorMessage.Append("以ä¸ç©ææªç»´æ¤ï¼"); errorMessage.Append(string.Join("ã", missingMaterialMessages)); errorMessage.Append("ï¼"); } if (errorMessage.Length > 0) { res.code = "0"; res.count = 0; res.Message = errorMessage.ToString(); res.data = null; return res; } // 6. æ¹éæ¥è¯¢å·²åå¨çè®°å½ var materialIds = list.Select(x => materialDict[$"{x["ç©æç¼ç "]}_{x["ç©æåç§°"]}"]).Distinct().ToList(); var supplierIds = list.Select(x => supplierDict_sub[x["é¨é¨"]]).Distinct().ToList(); string existQuery = $"select * from h_v_CB_ItemMoneyBillMain_Edit_excel WHERE HMaterID IN ({string.Join(",", materialIds)}) AND HDeptID_sub IN ({string.Join(",", supplierIds)})"; DataSet existData = oCN.RunProcReturn(existQuery, "h_v_CB_ItemMoneyBillMain_Edit_excel"); HashSet<string> existRecords = new HashSet<string>(); foreach (DataRow row in existData.Tables[0].Rows) { existRecords.Add($"{row["HMaterID"]}_{row["HDeptID_sub"]}"); } // 7. æç §é¨é¨ä»£ç ãé¨é¨ãèå代ç ãèåãç产订åå·è¿è¡åç» var groupedData = list.GroupBy(item => new { é¨é¨ä»£ç = item["é¨é¨ä»£ç "], é¨é¨ = item["é¨é¨"], èå代ç = item["èå代ç "], èå = item["èå"], ç产订åå· = item["ç产订åå·"] }).ToList(); StringBuilder insertSql = new StringBuilder(); StringBuilder insertSql_sub = new StringBuilder(); string currentDate = DateTime.Today.ToString("yyyy-MM-dd"); foreach (var group in groupedData) { var firstItem = group.First(); // è·åç»ä¿¡æ¯ int HSupplierID = supplierDict_sub[firstItem["é¨é¨"]]; int EmpID = EmpDict[firstItem["èå"]]; string ICMO = firstItem["ç产订åå·"]; int ICMOInterID = !string.IsNullOrEmpty(ICMO) && ICMODict.ContainsKey(ICMO) ? ICMODict[ICMO] : 0; // çæä¸»è¡¨IDååæ®å·ï¼æ¯ç»çæä¸ä¸ªï¼ string HBillNo = DBUtility.ClsPub.CreateBillCode("1802", ref DBUtility.ClsPub.sExeReturnInfo, true); long HInterID = DBUtility.ClsPub.CreateBillID("1802", ref DBUtility.ClsPub.sExeReturnInfo); // æ£æ¥è¯¥ç»æ¯å¦å·²åå¨ï¼æ ¹æ®é¨é¨IDåç©æIDç»åï¼ bool groupExists = false; foreach (var item in group) { int HMaterID = materialDict[$"{item["ç©æç¼ç "]}_{item["ç©æåç§°"]}"]; string recordKey = $"{HMaterID}_{HSupplierID}"; if (existRecords.Contains(recordKey)) { groupExists = true; break; } } if (!groupExists) { // æå ¥ä¸»è¡¨ï¼æ¯ç»æå ¥ä¸æ¬¡ï¼ insertSql.AppendLine($"INSERT INTO CB_ItemMoneyBillMain ([HInterID], [HBillNo], [HDate], [HYear], [HPeriod], [HBillType], [HBillSubType], [HBillStatus], [HCheckItemNowID], [HCheckItemNextID], [HCheckFlowID], [HRemark], [HBacker], [HBackDate], [HBackRemark], [HChecker], [HCheckDate], [HMaker], [HMakeDate], [HUpDater], [HUpDateDate], [HCloseMan], [HCloseDate], [HCloseType], [HDeleteMan], [HDeleteDate], [HMainSourceBillType], [HMainSourceInterID], [HMainSourceEntryID], [HMainSourceBillNo], [HPrintQty], [HEmpID], [HDeptID], [HICMOInterID], [HMaterID], [HICMOBillNo], [HExplanation], [HInnerBillNo], [HBeginDate], [HEndDate], [HOrgID]) VALUES ("); insertSql.AppendLine($"'{HInterID}', '{HBillNo}', '{DateTime.Now}', {DateTime.Now.Year}, {DateTime.Now.Month}, {"1802"}, '{"1802"}', '{"1"}', '{"0"}', '{"0"}', '{"0"}', '{"excelå¯¼å ¥"}', '{""}', '{DateTime.Now}', '{""}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{"0"}', '{""}', '{DateTime.Now}', '{""}', '{"0"}', '{"0"}', '{""}', '{"0"}', '{EmpID}', '{HSupplierID}', '{ICMOInterID}','{0}','{ICMO}','{""}','{"0"}','{DateTime.Now}','{DateTime.Now}','{"100038"}');"); // æå ¥å表ï¼ç»å æ¯ä¸ªç©ææå ¥ä¸æ¬¡ï¼ int HEntryID = 1; foreach (var item in group) { int HMaterID = materialDict[$"{item["ç©æç¼ç "]}_{item["ç©æåç§°"]}"]; int HCostID = CostDict[item["ææ¬é¡¹ç®"]]; insertSql_sub.AppendLine($"INSERT INTO [CB_ItemMoneyBillSub] ([HInterID], [HEntryID], [HCloseMan], [HEntryCloseDate], [HCloseType], [HRemark],[HSourceInterID], [HSourceEntryID], [HSourceBillNo], [HSourceBillType],[HRelationQty], [HRelationMoney], [HBillNo_bak], [HCostItemID],[HDeptID], [HQty], [HPrice], [HMoney],[HMaterID], [HWaster], [HDate], [HBeginBalance], [HEndBalance], [HTimes]) VALUES ("); insertSql_sub.AppendLine($"'{HInterID}', '{HEntryID}', '{""}', '{DateTime.Now}', '{"0"}', '{"excelå¯¼å ¥"}','{"0"}', '{"0"}', '{"0"}', '{"0"}','{"0"}', '{"0"}', '{""}', '{HCostID}', '{HSupplierID}', '{item["æ°é"]}', '{item["åä»·"]}', '{item["éé¢"]}','{HMaterID}', '{item["æèé"] ?? "0"}', '{DateTime.Now}', '{"0"}', '{"0"}', '{"0"}');"); HEntryID++; } } } // æ§è¡æ¹éæä½ if (insertSql.Length > 0) { oCN.RunProc(insertSql.ToString()); } if (insertSql_sub.Length > 0) { oCN.RunProc(insertSql_sub.ToString()); } oCN.Commit(); res.code = "1"; res.count = groupedData.Count; res.Message = $"å¯¼å ¥æå! å ±å¤ç{groupedData.Count}ç»æ°æ®"; res.data = null; return res; } catch (Exception e) { //oCN.Rollback(); LogService.Write(e); res.code = "0"; res.count = 0; res.Message = "Exceptionï¼" + e.ToString(); res.data = null; return res; } } #endregion } } WebAPI/Controllers/³É±¾¹ÜÀí/CB_WipProcessTableController.cs
New file @@ -0,0 +1,287 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Web; using System.Web.Http; using WebAPI.Models; using WebAPI.Controllers.SCGL.æ¥è®¡å管ç; using System.IO; using System.Linq; using System.Text; namespace WebAPI.Controllers.ææ¬ç®¡ç { public class CB_WipProcessTableController : ApiController { public DBUtility.ClsPub.Enum_BillStatus BillStatus; public DAL.ClsCB_ItemMoneyBillMain BillOld = new DAL.ClsCB_ItemMoneyBillMain(); public DAL.ClsCB_ItemMoneyBillMain BillNew0 = new DAL.ClsCB_ItemMoneyBillMain(); private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; #region æä»¶ä¸ä¼ [Route("CB_WipProcessTableController/CB_WipProcessTable_Excel")] [HttpPost] public json CB_WipProcessTable_Excel() { json res = new json(); try { //è·åæä»¶åç§° var file = HttpContext.Current.Request.Files[0]; //è·åæä»¶ç©çè·¯å¾ string ExcelPath = HttpContext.Current.Server.MapPath("~/" + file.FileName); //ä¿åæä»¶ file.SaveAs(ExcelPath); SCGL.æ¥è®¡å管ç.NpoiHelper np = new NpoiHelper(); DataSet ExcelDs = np.ReadExcel(ExcelPath, 1, 1, "0"); //å 餿件 File.Delete(ExcelPath); //å建临æ¶è¡¨ DataTable provisional = new DataTable("dt2"); //æ·»å åå for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++) { provisional.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); } //provisional.Columns.Add("åæ®å·", typeof(string)); //æ·»å æ°æ® for (int i = 1; i < ExcelDs.Tables[0].Rows.Count; i++) { DataRow row = provisional.NewRow(); for (int j = 0; j < ExcelDs.Tables[0].Columns.Count; j++) { row[j] = ExcelDs.Tables[0].Rows[i][j].ToString(); } provisional.Rows.Add(row); } //夿å string error = JudgmentColumns(provisional); if (error.Length > 0) { res.code = "0"; res.count = 0; res.Message = $"Excel模æ¿åå¨é误,{error}\r\n"; res.data = null; return res; } for (int i = 0; i <= provisional.Rows.Count - 1; i++) { string HProcName = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["产åºå·¥åº"].ToString()); string HCusName = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["客æ·"].ToString()); string HPartNumber = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["æåæå·"].ToString()); string HWIPQty = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["WIPæ°é"].ToString()); string HInProcessWIPQty = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["å¨å¶WIPæ°é"].ToString()); string HPanelQty = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["æ¼çæ°"].ToString()); string HLot = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["LOT"].ToString()); string HOrderTime = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ä¸åæ¶é´"].ToString()); string HStartTime = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["æäº§æ¶é´"].ToString()); string HOutputTime = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["äº§åºæ¶é´"].ToString()); string HProductionTime = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ç产æ¶é´"].ToString()); string HStatus = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["ç¶æ"].ToString()); string HStayTime = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["åçæ¶é´(åé)"].ToString()); //string remark = DBUtility.ClsPub.isStrNull(provisional.Rows[i]["夿³¨"].ToString()); //è·åçå®è¡æ° int line = i + 1; } res.code = "1"; res.count = 1; res.Message = error; res.data = provisional; return res; } catch (Exception e) { res.code = "0"; res.count = 0; res.Message = "Exceptionï¼" + e.ToString(); res.data = null; return res; } } /// <summary> /// 夿å /// </summary> /// <param name="provisional"></param> /// <returns></returns> private static string JudgmentColumns(DataTable provisional) { var error = ""; //æ¥è¯¢æ²¡æçå if (!provisional.Columns.Contains("客æ·")) error += "æ²¡ææ¾å°ã客æ·ãçæ é¢,"; if (!provisional.Columns.Contains("æåæå·")) error += "æ²¡ææ¾å°ãæåæå·ãçæ é¢,"; return error; } #endregion #region ä¸ä¼ ä¿å [Route("CB_WipProcessTableController/Excel_btnSave")] [HttpPost] public object Excel_btnSave([FromBody] JObject sMainSub) { var _value = sMainSub["sMainSub"].ToString(); string msg1 = _value.ToString(); string[] sArray = msg1.Split(new string[] { "&å" }, StringSplitOptions.RemoveEmptyEntries); string msg2 = sArray[0].ToString(); string user = sArray[1].ToString(); string organ = sArray[2].ToString(); json res = new json(); try { oCN.BeginTran(); List<object> Excel = Newtonsoft.Json.JsonConvert.DeserializeObject<List<object>>(msg2); List<Dictionary<string, string>> list = new List<Dictionary<string, string>>(); foreach (JObject item in Excel) { Dictionary<string, string> dic = new Dictionary<string, string>(); foreach (var itm in item.Properties()) { dic.Add(itm.Name, itm.Value.ToString()); } list.Add(dic); } // 4. æ¥è¯¢ç¨æ·ä¿¡æ¯ DataSet emp = oCN.RunProcReturn($"SELECT Czybm FROM Gy_Czygl WHERE Czymc = '{user.Replace("'", "''")}'", "Gy_Czygl"); if (emp.Tables[0].Rows.Count == 0) { res.code = "0"; res.count = 0; res.Message = "ç¨æ·ä¸åå¨ï¼"; res.data = null; return res; } string HUserID = emp.Tables[0].Rows[0]["Czybm"].ToString(); StringBuilder errorMessage = new StringBuilder(); StringBuilder insertSql = new StringBuilder(); StringBuilder updateSql = new StringBuilder(); string currentDate = DateTime.Today.ToString("yyyy-MM-dd"); int HEntryID = 1; // éåæ°æ®å¹¶éªè¯ for (int i = 0; i < list.Count; i++) { var item = list[i]; List<string> intFields = new List<string> { "WIPæ°é", "å¨å¶WIPæ°é", "æ¼çæ°" }; bool hasError = false; foreach (var field in intFields) { if (item.ContainsKey(field)) { string value = item[field]; // æ£æ¥æ¯å¦ä¸ºæ´æ° if (!string.IsNullOrWhiteSpace(value)) { if (!int.TryParse(value, out _)) { errorMessage.AppendLine($"第{i + 1}è¡æ°æ®é误ï¼å段 '{field}' çå¼ '{value}' 䏿¯ææçæ´æ°"); hasError = true; } } } } // 妿æé误ï¼è·³è¿æå ¥ if (hasError) { continue; } insertSql.AppendLine($"INSERT INTO CB_WipProcessTable ([HYear], [HPeriod], [HDay], [HProcName], [HCusName], [HPartNumber], [HWIPQty], [HInProcessWIPQty], [HPanelQty], [HLot], [HOrderTime], [HStartTime], [HOutputTime], [HProductionTime], [HStatus], [HStayTime], [HChecker], [HCheckDate], [HMaker], [HMakeDate], [HUpDater], [HUpDateDate], [HCloseMan], [HCloseDate], [HCloseType], [HDeleteMan], [HDeleteDate], [HReamrk]) VALUES ("); insertSql.AppendLine($" {DateTime.Now.Year}, {DateTime.Now.Month}, {DateTime.Now.Day}, '{item["产åºå·¥åº"]}', '{item["客æ·"]}', '{item["æåæå·"]}', '{item["WIPæ°é"]}', '{item["å¨å¶WIPæ°é"]}', '{item["æ¼çæ°"]}', '{item["LOT"]}', '{item["ä¸åæ¶é´"]}', '{item["æäº§æ¶é´"]}', '{item["äº§åºæ¶é´"]}', '{item["ç产æ¶é´"]}', '{item["ç¶æ"]}', '{item["åçæ¶é´(åé)"]}', '{""}', '{""}', '{user}', '{DateTime.Now}', '{""}', '{DateTime.Now}', '{""}', '{""}', '{"0"}', '{""}', '{""}', '{"excelå¯¼å ¥"}');"); } if (errorMessage.Length > 0) { //oCN.Rollback(); res.code = "0"; res.count = 0; res.Message = "æ°æ®éªè¯å¤±è´¥ï¼\n" + errorMessage.ToString(); res.data = null; return res; } if (insertSql.Length == 0) { // oCN.Rollback(); res.code = "0"; res.count = 0; res.Message = "æ²¡æææçæ´æ°æ°æ®å¯ä»¥å¯¼å ¥"; res.data = null; return res; } // æ§è¡æ¹éæä½ if (insertSql.Length > 0) { oCN.RunProc(insertSql.ToString()); } //if (updateSql.Length > 0) //{ // oCN.RunProc(updateSql.ToString()); // oCN.RunProc(updateSql_sub.ToString()); //} oCN.Commit(); res.code = "1"; res.count = 1; res.Message = "å¯¼å ¥æå!"; res.data = null; return res; } catch (Exception e) { //oCN.Rollback(); LogService.Write(e); res.code = "0"; res.count = 0; res.Message = "Exceptionï¼" + e.ToString(); res.data = null; return res; } } #endregion } } WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -4696,6 +4696,66 @@ #endregion #region ç产éåº ä¸ä¼ çå #region ç产éåº æ ¡éªæ¨¡å¼ /// <summary> /// ç产éåºæ ¡éªä¸ä¼ /// </summary> /// <returns></returns> [Route("WEBSController/set_SaveProductInBackBill_BillCheck_Json")] [HttpPost] public object set_SaveProductInBackBill_BillCheck_Json([FromBody] JObject oMain) { var _value = oMain["oMain"].ToString(); string msg1 = _value.ToString(); try { List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getICStockBillMainByJson(msg1); WebAPI.WebS.ClsKf_ICStockBillMain websLsmain = new WebS.ClsKf_ICStockBillMain(); websLsmain.HInterID = lsmain[0].HInterID; websLsmain.HBillNo = lsmain[0].HBillNo; websLsmain.HBillType = "1245"; websLsmain.HMaker = lsmain[0].HMaker; websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; if (oWebs.set_SaveProductInBackBill_BillCheck(websLsmain, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //æåï¼ objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //å¤±è´¥ï¼ objJsonResult.data = null; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "ç产éåºæ ¡éªå¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #endregion #region éè´éæ ä¸ä¼ çå #region éè´éæ æ°å¢æ¨¡å¼ @@ -4777,6 +4837,62 @@ objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "éè´éæåä¸ä¼ 失败ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region éè´éæ æ ¡éªæ¨¡å¼ /// <summary> /// éè´éææ ¡éªä¸ä¼ /// </summary> /// <returns></returns> [Route("WEBSController/set_SavePOStockInBackBill_BillCheck_Json")] [HttpPost] public object set_SavePOStockInBackBill_BillCheck_Json([FromBody] JObject oMain) { var _value = oMain["oMain"].ToString(); string msg1 = _value.ToString(); try { List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getICStockBillMainByJson(msg1); WebAPI.WebS.ClsKf_ICStockBillMain websLsmain = new WebS.ClsKf_ICStockBillMain(); websLsmain.HInterID = lsmain[0].HInterID; websLsmain.HBillNo = lsmain[0].HBillNo; websLsmain.HBillType = "1239"; websLsmain.HMaker = lsmain[0].HMaker; websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; if (oWebs.set_SavePOStockInBackBill_BillCheck(websLsmain, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //æåï¼ objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //å¤±è´¥ï¼ objJsonResult.data = null; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "éè´éææ ¡éªå¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -5005,6 +5121,122 @@ objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "éå®éè´§åä¸ä¼ 失败ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region éå®éè´§ æ ¡éªæ¨¡å¼ /// <summary> /// éå®éè´§æ ¡éªä¸ä¼ /// </summary> /// <returns></returns> [Route("WEBSController/set_SaveSellOutBackBill_BillCheck_Json")] [HttpPost] public object set_SaveSellOutBackBill_BillCheck_Json([FromBody] JObject oMain) { var _value = oMain["oMain"].ToString(); string msg1 = _value.ToString(); try { List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getICStockBillMainByJson(msg1); WebAPI.WebS.ClsKf_ICStockBillMain websLsmain = new WebS.ClsKf_ICStockBillMain(); websLsmain.HInterID = lsmain[0].HInterID; websLsmain.HBillNo = lsmain[0].HBillNo; websLsmain.HBillType = "1247"; websLsmain.HMaker = lsmain[0].HMaker; websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; if (oWebs.set_SaveSellOutBackBill_BillCheck(websLsmain, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //æåï¼ objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //å¤±è´¥ï¼ objJsonResult.data = null; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "éå®éè´§æ ¡éªå¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #endregion #region å§å¤éæ ä¸ä¼ çå #region å§å¤éæ æ ¡éªæ¨¡å¼ /// <summary> /// å§å¤éææ ¡éªä¸ä¼ /// </summary> /// <returns></returns> [Route("WEBSController/set_SaveEntrustOutBackBill_BillCheck_Json")] [HttpPost] public object set_SaveEntrustOutBackBill_BillCheck_Json([FromBody] JObject oMain) { var _value = oMain["oMain"].ToString(); string msg1 = _value.ToString(); try { List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getICStockBillMainByJson(msg1); WebAPI.WebS.ClsKf_ICStockBillMain websLsmain = new WebS.ClsKf_ICStockBillMain(); websLsmain.HInterID = lsmain[0].HInterID; websLsmain.HBillNo = lsmain[0].HBillNo; websLsmain.HBillType = "1238"; websLsmain.HMaker = lsmain[0].HMaker; websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; if (oWebs.set_SaveEntrustOutBackBill_BillCheck(websLsmain, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //æåï¼ objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //å¤±è´¥ï¼ objJsonResult.data = null; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å§å¤éææ ¡éªå¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -9066,6 +9298,29 @@ #endregion #endregion #region æ ¹æ®snç 寻æ¾å¯¹åºçä¸ç®±ç [Route("WEBSController/getMiddleCodeBySn")] [HttpGet] public object getMiddleCodeBySn(string HBarCode,int HStockOrgID) { DataSet dss = oCn.RunProcReturn("select * from Gy_CaseCodeRelation where HBarCode='"+ HBarCode + "'", "Gy_CaseCodeRelation"); if (dss.Tables[0].Rows[0]["HCaseCode"].ToString() == "" || dss == null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æªæ¾å°snç æå¯¹åºçä¸ç®±ç "; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = dss.Tables[0]; return objJsonResult; } #endregion #endregion @@ -13953,7 +14208,7 @@ { try { ds = oCn.RunProcReturn("select * from GetMaterMesByCarBarCode where å°è½¦='" + CarBarCode.ToString() + "'" , "GetMaterMesByCarBarCode"); ds = oCn.RunProcReturn("select * from GetMaterMesByCarBarCode where HQty>=0 and å°è½¦='" + CarBarCode.ToString() + "'" , "GetMaterMesByCarBarCode"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; WebAPI/DLL/ClsKf_MateOutBackBill.cs
@@ -46,6 +46,7 @@ ",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + ",HBillSubType='" + omodel.HBillSubType.ToString() + "'" + ",HRemark='" + omodel.HRemark + "'" + ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + ",HUpDateDate=getdate()" + @@ -124,7 +125,7 @@ ",HSupID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" + ",HKeeperID,HDeptID,HExplanation,HInnerBillNo,HRedBlueFlag" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + " values('" + this.BillType + "','" + omodel.HBillSubType.ToString() + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + ", " + omodel.HSupID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HSCWHID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() + ", " + omodel.HKeeperID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + DBUtility.ClsPub.BoolToString(omodel.HRedBlueFlag) + WebAPI/ListModels.cs
@@ -1991,6 +1991,30 @@ return list; } /// <summary> /// å¤çææ¬è´¹ç¨åjson /// </summary> /// <param name="jsonString"></param> /// <returns></returns> public List<Model.ClsCB_ItemMoneyBillMain_1> getObjectByJson_CB_ItemMoneyBillMain(string jsonString) { jsonString = "[" + jsonString.ToString() + "]"; List<Model.ClsCB_ItemMoneyBillMain_1> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsCB_ItemMoneyBillMain_1>>(jsonString); return list; } /// <summary> /// å¤çæ°å¢å ¶ä»åºæ¶åå表çjson /// </summary> /// <param name="jsonString"></param> /// <returns></returns> public List<Model.ClsCB_ItemMoneyBillSub_1> getObjectByJson_CB_ItemMoneyBillSub(string jsonString) { jsonString = "[" + jsonString.ToString() + "]"; List<Model.ClsCB_ItemMoneyBillSub_1> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsCB_ItemMoneyBillSub_1>>(jsonString); return list; } /// <summary> /// å¤çæ°å¢å ¶ä»åºä»å表çjson WebAPI/Properties/PublishProfiles/FolderProfile8.pubxml.user
@@ -5,7 +5,7 @@ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <_PublishTargetUrl>D:\gz\wy\MES-WEB-API</_PublishTargetUrl> <History>True|2026-01-27T06:38:42.1847305Z;True|2026-01-27T14:35:31.4859936+08:00;True|2026-01-27T14:18:36.2122726+08:00;True|2026-01-27T14:03:03.8424130+08:00;True|2026-01-27T13:14:23.0197795+08:00;True|2026-01-27T11:26:12.7603302+08:00;True|2026-01-27T11:23:11.2980950+08:00;True|2026-01-27T11:17:42.7742881+08:00;True|2026-01-27T10:27:13.8894331+08:00;True|2026-01-27T10:22:33.6468907+08:00;True|2026-01-27T10:13:18.5553398+08:00;False|2026-01-27T10:10:23.9320618+08:00;True|2026-01-27T10:00:58.3355300+08:00;False|2026-01-27T10:00:37.4820904+08:00;True|2026-01-27T09:45:12.8813559+08:00;True|2026-01-27T09:41:43.1787804+08:00;True|2026-01-27T09:40:22.3478291+08:00;True|2026-01-27T09:39:19.6165154+08:00;True|2026-01-27T09:37:31.7523727+08:00;True|2026-01-27T08:33:15.6345855+08:00;True|2026-01-27T08:25:27.8955175+08:00;False|2026-01-27T08:24:59.4512268+08:00;True|2026-01-26T16:40:38.8412768+08:00;True|2026-01-26T16:16:41.7932895+08:00;True|2026-01-26T16:15:35.4808695+08:00;True|2026-01-26T16:08:19.1707669+08:00;True|2026-01-26T16:07:38.4808637+08:00;True|2026-01-26T16:00:28.5139031+08:00;True|2026-01-26T15:56:20.5415856+08:00;True|2026-01-26T15:47:55.9662192+08:00;True|2026-01-26T15:40:45.2534281+08:00;True|2026-01-26T15:39:09.6931174+08:00;True|2026-01-26T15:37:51.9154771+08:00;True|2026-01-26T15:33:35.6039826+08:00;True|2026-01-26T15:31:52.9425047+08:00;True|2026-01-26T15:30:45.3923302+08:00;True|2026-01-26T15:29:05.0429905+08:00;True|2026-01-26T15:27:05.4558977+08:00;True|2026-01-26T15:26:29.2629885+08:00;True|2026-01-26T15:25:43.3181913+08:00;True|2026-01-26T15:25:14.6706698+08:00;True|2026-01-26T15:24:20.6134253+08:00;True|2026-01-26T15:23:57.0303408+08:00;True|2026-01-26T15:20:06.4088432+08:00;True|2026-01-26T15:19:31.8076951+08:00;True|2026-01-26T15:14:49.8542368+08:00;</History> <History>True|2026-02-04T06:14:08.6815293Z;True|2026-02-04T14:12:55.3426756+08:00;True|2026-02-04T14:06:04.8563633+08:00;True|2026-02-04T13:59:45.8674762+08:00;True|2026-02-04T13:59:40.8476722+08:00;True|2026-02-04T13:49:27.8178193+08:00;True|2026-02-04T13:47:17.9531917+08:00;True|2026-02-04T13:33:13.4905042+08:00;True|2026-02-04T11:13:26.7587124+08:00;True|2026-02-04T10:44:11.8398866+08:00;True|2026-02-04T10:37:30.4140022+08:00;True|2026-02-04T10:10:15.2756301+08:00;True|2026-02-04T10:06:43.8401980+08:00;True|2026-02-04T09:43:16.4168165+08:00;True|2026-02-04T09:38:57.6155453+08:00;True|2026-02-04T09:36:23.7275649+08:00;True|2026-02-04T09:18:39.5157535+08:00;True|2026-02-04T08:55:39.8422012+08:00;True|2026-02-04T08:50:53.2493857+08:00;True|2026-02-04T08:49:13.6401738+08:00;True|2026-02-04T08:47:44.4063649+08:00;True|2026-02-04T08:27:35.3397920+08:00;True|2026-02-04T08:11:10.8455212+08:00;False|2026-02-04T08:10:46.8065171+08:00;True|2026-02-03T11:17:54.1264839+08:00;True|2026-02-03T11:13:07.3503801+08:00;True|2026-02-03T10:57:22.0499756+08:00;True|2026-02-03T10:49:51.5729577+08:00;False|2026-02-03T10:49:34.3419439+08:00;True|2026-02-02T16:46:50.4584549+08:00;True|2026-02-02T16:42:58.9718820+08:00;True|2026-02-02T16:37:04.3367393+08:00;True|2026-02-02T16:25:15.8758401+08:00;True|2026-02-02T16:23:39.5355352+08:00;False|2026-02-02T16:22:23.6470725+08:00;True|2026-01-27T14:38:42.1847305+08:00;True|2026-01-27T14:35:31.4859936+08:00;True|2026-01-27T14:18:36.2122726+08:00;True|2026-01-27T14:03:03.8424130+08:00;True|2026-01-27T13:14:23.0197795+08:00;True|2026-01-27T11:26:12.7603302+08:00;True|2026-01-27T11:23:11.2980950+08:00;True|2026-01-27T11:17:42.7742881+08:00;True|2026-01-27T10:27:13.8894331+08:00;True|2026-01-27T10:22:33.6468907+08:00;True|2026-01-27T10:13:18.5553398+08:00;False|2026-01-27T10:10:23.9320618+08:00;True|2026-01-27T10:00:58.3355300+08:00;False|2026-01-27T10:00:37.4820904+08:00;True|2026-01-27T09:45:12.8813559+08:00;True|2026-01-27T09:41:43.1787804+08:00;True|2026-01-27T09:40:22.3478291+08:00;True|2026-01-27T09:39:19.6165154+08:00;True|2026-01-27T09:37:31.7523727+08:00;True|2026-01-27T08:33:15.6345855+08:00;True|2026-01-27T08:25:27.8955175+08:00;False|2026-01-27T08:24:59.4512268+08:00;True|2026-01-26T16:40:38.8412768+08:00;True|2026-01-26T16:16:41.7932895+08:00;True|2026-01-26T16:15:35.4808695+08:00;True|2026-01-26T16:08:19.1707669+08:00;True|2026-01-26T16:07:38.4808637+08:00;True|2026-01-26T16:00:28.5139031+08:00;True|2026-01-26T15:56:20.5415856+08:00;True|2026-01-26T15:47:55.9662192+08:00;True|2026-01-26T15:40:45.2534281+08:00;True|2026-01-26T15:39:09.6931174+08:00;True|2026-01-26T15:37:51.9154771+08:00;True|2026-01-26T15:33:35.6039826+08:00;True|2026-01-26T15:31:52.9425047+08:00;True|2026-01-26T15:30:45.3923302+08:00;True|2026-01-26T15:29:05.0429905+08:00;True|2026-01-26T15:27:05.4558977+08:00;True|2026-01-26T15:26:29.2629885+08:00;True|2026-01-26T15:25:43.3181913+08:00;True|2026-01-26T15:25:14.6706698+08:00;True|2026-01-26T15:24:20.6134253+08:00;True|2026-01-26T15:23:57.0303408+08:00;True|2026-01-26T15:20:06.4088432+08:00;True|2026-01-26T15:19:31.8076951+08:00;True|2026-01-26T15:14:49.8542368+08:00;</History> </PropertyGroup> <ItemGroup> <File Include="apiapp.json"> @@ -45,28 +45,28 @@ <publishTime>02/22/2013 16:43:40</publishTime> </File> <File Include="bin/BLL.dll"> <publishTime>01/27/2026 14:18:22</publishTime> <publishTime>02/04/2026 14:05:56</publishTime> </File> <File Include="bin/BLL.pdb"> <publishTime>01/27/2026 14:18:22</publishTime> <publishTime>02/04/2026 14:05:56</publishTime> </File> <File Include="bin/BouncyCastle.Crypto.dll"> <publishTime>12/18/2020 05:32:28</publishTime> </File> <File Include="bin/DAL.dll"> <publishTime>01/27/2026 14:18:20</publishTime> <publishTime>02/04/2026 14:05:54</publishTime> </File> <File Include="bin/DAL.pdb"> <publishTime>01/27/2026 14:18:20</publishTime> <publishTime>02/04/2026 14:05:54</publishTime> </File> <File Include="bin/Dapper.dll"> <publishTime>07/22/2016 22:52:40</publishTime> </File> <File Include="bin/DBUtility.dll"> <publishTime>01/26/2026 09:55:44</publishTime> <publishTime>02/02/2026 16:23:19</publishTime> </File> <File Include="bin/DBUtility.pdb"> <publishTime>01/26/2026 09:55:44</publishTime> <publishTime>02/02/2026 16:23:19</publishTime> </File> <File Include="bin/Fleck.dll"> <publishTime>04/22/2021 11:48:12</publishTime> @@ -138,10 +138,10 @@ <publishTime>07/25/2012 19:48:56</publishTime> </File> <File Include="bin/Model.dll"> <publishTime>01/27/2026 14:02:44</publishTime> <publishTime>02/03/2026 10:57:09</publishTime> </File> <File Include="bin/Model.pdb"> <publishTime>01/27/2026 14:02:44</publishTime> <publishTime>02/03/2026 10:57:09</publishTime> </File> <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> <publishTime>11/12/2025 10:43:47</publishTime> @@ -177,25 +177,25 @@ <publishTime>11/13/2012 12:19:34</publishTime> </File> <File Include="bin/Pub_Class.dll"> <publishTime>01/26/2026 09:55:42</publishTime> <publishTime>02/02/2026 16:23:17</publishTime> </File> <File Include="bin/Pub_Class.pdb"> <publishTime>01/26/2026 09:55:42</publishTime> <publishTime>02/02/2026 16:23:17</publishTime> </File> <File Include="bin/Pub_Control.dll"> <publishTime>01/26/2026 09:55:43</publishTime> <publishTime>02/02/2026 16:23:18</publishTime> </File> <File Include="bin/Pub_Control.pdb"> <publishTime>01/26/2026 09:55:43</publishTime> <publishTime>02/02/2026 16:23:18</publishTime> </File> <File Include="bin/RestSharp.dll"> <publishTime>08/31/2012 06:22:50</publishTime> </File> <File Include="bin/SQLHelper.dll"> <publishTime>01/26/2026 09:55:43</publishTime> <publishTime>02/02/2026 16:23:18</publishTime> </File> <File Include="bin/SQLHelper.pdb"> <publishTime>01/26/2026 09:55:43</publishTime> <publishTime>02/02/2026 16:23:18</publishTime> </File> <File Include="bin/Swashbuckle.Core.dll"> <publishTime>02/16/2015 01:57:08</publishTime> @@ -315,22 +315,22 @@ <publishTime>05/09/2023 10:43:40</publishTime> </File> <File Include="bin/TopSdk.dll"> <publishTime>01/22/2026 16:36:48</publishTime> <publishTime>01/27/2026 14:47:22</publishTime> </File> <File Include="bin/TopSdk.pdb"> <publishTime>01/22/2026 16:36:48</publishTime> <publishTime>01/27/2026 14:47:22</publishTime> </File> <File Include="bin/WebActivatorEx.dll"> <publishTime>11/24/2014 19:18:48</publishTime> </File> <File Include="bin/WebAPI.dll"> <publishTime>01/27/2026 14:38:37</publishTime> <publishTime>02/04/2026 14:14:04</publishTime> </File> <File Include="bin/WebAPI.pdb"> <publishTime>01/27/2026 14:38:37</publishTime> <publishTime>02/04/2026 14:14:04</publishTime> </File> <File Include="bin/WebAPI.XmlSerializers.dll"> <publishTime>01/27/2026 14:38:41</publishTime> <publishTime>02/04/2026 14:14:07</publishTime> </File> <File Include="bin/WebGrease.dll"> <publishTime>07/18/2013 01:03:52</publishTime> @@ -555,7 +555,7 @@ <publishTime>11/12/2025 10:43:47</publishTime> </File> <File Include="Web.config"> <publishTime>01/27/2026 10:27:13</publishTime> <publishTime>02/02/2026 16:23:36</publishTime> </File> </ItemGroup> </Project> WebAPI/Web References/WebS/Reference.cs
Diff too large WebAPI/Web References/WebS/WebService1.wsdl
Diff too large WebAPI/WebAPI.csproj
@@ -705,6 +705,8 @@ <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_CostCenterController.cs" /> <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_CostItemFixRateController.cs" /> <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_CostItemAverageTypeController.cs" /> <Compile Include="Controllers\ææ¬ç®¡ç\CB_ItemMoneyBillController.cs" /> <Compile Include="Controllers\ææ¬ç®¡ç\CB_WipProcessTableController.cs" /> <Compile Include="Controllers\æ£éªç³è¯·å\QC_RequestCheckBillController.cs" /> <Compile Include="Controllers\ç©æµç®¡ç\å ¶ä»ç»ç®å\YF_PayMentOtherBillTranController.cs" /> <Compile Include="Controllers\ç©æµç®¡ç\åºè¿å\WLYayBillController.cs" /> @@ -1293,6 +1295,7 @@ <Folder Include="bin\" /> <Folder Include="Controllers\项ç®ç®¡ç\åºç¡å»ºæ¨¡\" /> <Folder Include="obj\x86\Debug\" /> <Folder Include="Views\CB_WipProcessTable\" /> <Folder Include="Views\Cg_ContractTransportBillList\" /> <Folder Include="Views\Cg_PODemandPlanBill\" /> <Folder Include="Views\Cg_PurchaseReturn\" /> WebAPI/WebAPI.csproj.user
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|x86</LastActiveSolutionConfig> <UseIISExpress>true</UseIISExpress> <Use64BitIISExpress /> <IISExpressSSLPort /> @@ -9,7 +9,7 @@ <IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication> <IISExpressUseClassicPipelineMode>false</IISExpressUseClassicPipelineMode> <UseGlobalApplicationHostFile /> <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile4.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile2.pubxml</NameOfLastUsedPublishProfile> <ProjectView>ShowAllFiles</ProjectView> </PropertyGroup> <ProjectExtensions>