From 30091220a09acb060269784dbee1a3ab799bc663 Mon Sep 17 00:00:00 2001 From: ch <37327@LLOOCCY> Date: 星期二, 07 二月 2023 17:39:03 +0800 Subject: [PATCH] 1 --- Model/生产管理/设备管理/ClsSb_EquipStatusChangeBillMain.cs | 16 WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs | 11 DAL/生产管理/设备管理/设备投产/ClsSb_EquipStockInCheckBill.cs | 233 + DAL/基础资料/公用基础资料/ClsGy_MouldStatus_Ctl.cs | 103 Model/生产管理/模具管理/ClsSc_MouldDotCheckPlanBillMain.cs | 1 WebAPI/Controllers/BaseSet/Gy_DepartmentController.cs | 164 WebAPI/Controllers/OtherOutBillController.cs | 1 DAL/生产管理/模具管理/ClsSc_MouldDotCheckPlanBill.cs | 46 WebAPI/Models/ClsGy_Material_Model.cs | 3 DAL/生产管理/模具管理/ClsSb_MouldRepairWorkBill.cs | 34 DAL/生产管理/设备管理/ClsSb_EquipDotCheckBill.cs | 2 DAL/生产管理/设备管理/ClsSb_EquipMaintainPlanBill.cs | 6 SQLHelper/obj/x86/Release/SQLHelper.csproj.AssemblyReference.cache | 0 WebAPI/Controllers/基础资料/基础资料/Gy_StockCheckItemBillController.cs | 14 WebAPI/Controllers/MJGL/Sc_MouldRepairChangeBillController.cs | 2 WebAPI/Controllers/XSGL/Xs_SeOutStockBackBillController.cs | 325 + WebAPI/Controllers/CJGL/Sc_ProcessExchangeBillController.cs | 214 DAL/生产管理/设备管理/设备投产/ClsSb_EquipWorkBeforeCheckBill.cs | 233 + WebAPI/Controllers/BLL/Xt_BillSubTypeController.cs | 336 + Model/生产管理/设备管理/ClsSb_EquipStatusChangeBillSub.cs | 18 PayM/obj/x86/Debug/PayM.csproj.AssemblyReference.cache | 0 WebAPI/Controllers/生产管理/生产任务单/Sc_ICMOBillController.cs | 376 + WebAPI/Controllers/SCGL/Sc_PPBomBillController.cs | 281 + DAL/基础资料/公用基础资料/ClsGy_EquipStatus_Ctl.cs | 103 WebAPI/ListModels.cs | 154 DAL/生产管理/设备管理/ClsSb_EquipWorkBeforeCheckBill.cs | 132 Model/生产管理/模具管理/ClsSc_MouldStatusChangeBillSub.cs | 18 WebAPI/WebAPI.csproj | 24 WebAPI/Web References/WebS/WebService1.wsdl | 1255 ++--- LMES/obj/x86/Release/LMES.csproj.AssemblyReference.cache | 0 NETERPNoWin/obj/x86/Debug/NETERPNoWin.csproj.AssemblyReference.cache | 0 WebAPI/Controllers/条码管理/WEBSController.cs | 46 WebAPI/Controllers/MJGL/Sc_MouldLifeUseBillController.cs | 286 + WebAPI/Controllers/基础资料/基础资料/Gy_StaffController.cs | 174 Model/Model.csproj | 21 WebAPI/Models/Gy_RoutingBill.cs | 1 WebAPI/Controllers/ProductInController.cs | 4 Model/生产管理/模具管理/ClsSc_MouldRepairCheckBillMain.cs | 2 WebAPI/Controllers/MJGL/Sc_MouldMaintainRuleBillController.cs | 12 Model/生产管理/模具管理/ClsSb_MouldRepairWorkBillSub_Item.cs | 14 WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs | 13 WebAPI/Web References/WebS/Reference.cs | 426 - DBUtility/obj/Release/DBUtility.csproj.ResolveComReference.cache | 0 Model/系统公用/ClsXt_BillSubType_Model.cs | 22 WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs | 6 DAL/生产管理/设备管理/ClsSb_EquipStatusChangeBill.cs | 232 + Model/生产管理/设备管理/ClsSb_EquipStockInCheckBillSub.cs | 20 Model/生产管理/设备管理/ClsSb_EquipWorkBeforeCheckBillMain.cs | 15 WebAPI/Controllers/BaseSet/Gy_UnitController.cs | 164 Model/基础资料/基础资料/ClsGy_EquipStatus_Model.cs | 20 WebAPI/Controllers/MJGL/Sc_MouldStatusChangeBillController.cs | 286 + DAL/生产管理/设备管理/ClsSb_EquipDotCheckPlanBill.cs | 6 WebAPI/Controllers/基础资料/基础资料/Gy_StockPlace_Controller.cs | 270 + WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs | 319 + Model/生产管理/设备管理/ClsSb_EquipDotCheckPlanBillMain.cs | 1 WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs | 4 WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs | 28 WebAPI/Controllers/基础资料/基础资料/Gy_MouldStatusController.cs | 313 + WebAPI/Controllers/CGGL/Cg_POInStockBackBillController.cs | 341 + DAL/生产管理/模具管理/ClsSc_MouldMaintainPlanBill.cs | 10 DAL/生产管理/模具管理/ClsSc_MouldLifeUseBill.cs | 232 + Model/基础资料/基础资料/ClsGy_MouldStatus_Model.cs | 20 WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs | 166 DAL/生产管理/模具管理/ClsSc_MouldDotCheckRuleBill.cs | 36 WebAPI/Controllers/MJGL/Sc_MouldScrapRequestBillController.cs | 293 + DAL/生产管理/模具管理/ClsSc_MouldDotCheckBill.cs | 46 Model/生产管理/ClsSc_PPBomBillSub.cs | 1 Model/生产管理/模具管理/ClsSc_MouldLifeUseBillMain.cs | 16 WebAPI/Controllers/SBGL/SBTC/Sb_EquipWorkBeforeCheckBillController.cs | 286 + WebAPI/DLL/ClsSb_EquipRepairCheckBill.cs | 7 WebAPI/Controllers/SCGL/Sc_ICMOReportBillController.cs | 295 + Model/生产管理/模具管理/ClsSc_MouldStatusChangeBillMain.cs | 16 WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs | 382 + Model/基础资料/基础资料/ClsGy_StockPlace_Model.cs | 2 Model/生产管理/模具管理/ClsSc_MouldDotCheckPlanBillSub.cs | 1 WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 6 WebAPI/Controllers/OtherInStockController.cs | 1 WebAPI/Controllers/Sc_MouldRepairInBillListController.cs | 257 Model/生产管理/模具管理/ClsSc_MouldDotCheckRuleBillSub_Item.cs | 18 Model/生产管理/设备管理/ClsSb_EquipStockInCheckBillMain.cs | 15 WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs | 5 WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs | 322 + WebAPI/Controllers/BaseSet/Gy_CustomerController.cs | 165 DAL/DAL.csproj | 10 Model/生产管理/模具管理/ClsSc_MouldMaintainPlanBillMain.cs | 2 WebAPI/Controllers/MJGL/Sc_MouldDotCheckRuleBillController.cs | 345 + WebAPI/Controllers/SBGL/Sb_EquipStatusChangeBillController.cs | 287 + WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs | 330 + WebAPI/Controllers/SBGL/Sb_EquipWorkBeforeCheckSBillController.cs | 421 + .gitignore | 4 WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user | 76 WebAPI/Controllers/基础资料/基础资料/Gy_EquipStatusController.cs | 311 + WebAPI/Controllers/BaseSet/Gy_MaterialController.cs | 200 PayM/obj/Release/PayM.csproj.ResolveComReference.cache | 0 Model/生产管理/模具管理/ClsSc_MouldDotCheckBillMain.cs | 1 DAL/生产管理/模具管理/ClsSc_MouldStatusChangeBill.cs | 231 + WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs | 6 WebAPI/Controllers/BaseSet/Gy_SupplierController.cs | 168 DAL/生产管理/设备管理/ClsSb_EquipStockInCheckBill.cs | 132 DAL/系统公用/ClsXt_BillSubType_Ctl.cs | 104 DAL/车间管理/ClsSc_StationOutBill.cs | 4 Model/生产管理/设备管理/ClsSb_EquipMaintainPlanBillMain.cs | 1 Model/生产管理/设备管理/ClsSb_EquipRepairCheckBillMain.cs | 1 WebAPI/Controllers/SBGL/SBTC/Sb_EquipStockInCheckBillController.cs | 287 + Model/生产管理/模具管理/ClsSc_MouldDotCheckPlanBillSub_Item.cs | 19 Pub_Class/CustomerCls/ClsXt_SystemParameter.cs | 22 Model/生产管理/模具管理/ClsSc_MouldDotCheckBillSub_Item.cs | 19 Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs | 3 Model/生产管理/设备管理/ClsSb_EquipWorkBeforeCheckBillSub.cs | 20 WebAPI/Controllers/PublicPageMethodController.cs | 24 /dev/null | 0 Model/车间管理/ClsSc_StationOutBillMain.cs | 2 WebAPI/Controllers/SBGL/Sb_EquipStockInCheckBillSController.cs | 421 + WebAPI/Controllers/SellOutController.cs | 4 WebAPI/Controllers/MoveStockBillController.cs | 1 WebAPI/Controllers/SBGL/Sb_EquipDotCheckRuleBillController.cs | 28 WebAPI/Controllers/Sc_ProcessMangementController.cs | 278 + Model/生产管理/模具管理/ClsSc_MouldLifeUseBillSub.cs | 18 WebAPI/Controllers/BaseSet/Gy_WarehouseController.cs | 167 WebAPI/DLL/ClsGy_Material_Ctl.cs | 6 120 files changed, 12,482 insertions(+), 1,220 deletions(-) diff --git a/.gitignore b/.gitignore index b7fe30c..d30517f 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,7 @@ /PayM/bin/Release /SQLHelper/obj/x86/Release /Model/obj/x86/Release +/LMES/bin/x86/鏂帿灏旀闈㈢▼搴廮old/a +/LMES/bin/x86/鏂帿灏旀闈㈢▼搴廮old +/LMES/bin/x86/鏂帿灏旀闈㈢▼搴廮test +/LMES/bin/x86/鏂帿灏旀闈㈢▼搴�.7z diff --git a/DAL/DAL.csproj b/DAL/DAL.csproj index 18fd31d..d40e497 100644 --- a/DAL/DAL.csproj +++ b/DAL/DAL.csproj @@ -86,6 +86,8 @@ <Compile Include="浠撳簱绠$悊\鏉$爜绠$悊\ClsKF_BarCodeStatusChangeBill.cs" /> <Compile Include="鍩虹璧勬枡\InterFace鍩虹璧勬枡\ClsIF_ORGANIZATIONS_View.cs" /> <Compile Include="鍩虹璧勬枡\鍏敤鍩虹璧勬枡\ClsGy_CustLocation_Ctl.cs" /> + <Compile Include="鍩虹璧勬枡\鍏敤鍩虹璧勬枡\ClsGy_EquipStatus_Ctl.cs" /> + <Compile Include="鍩虹璧勬枡\鍏敤鍩虹璧勬枡\ClsGy_MouldStatus_Ctl.cs" /> <Compile Include="鍩虹璧勬枡\鍏敤鍩虹璧勬枡\ClsGy_Operator_Ctl.cs" /> <Compile Include="鍩虹璧勬枡\鍏敤鍩虹璧勬枡\ClsGy_RateType_Ctl.cs" /> <Compile Include="鍩虹璧勬枡\鍏敤鍩虹璧勬枡\ClsGy_Staff_Ctl.cs" /> @@ -594,14 +596,22 @@ <Compile Include="鐢熶骇绠$悊\妫�鍏风鐞哱ClsSc_CheckToolsOutBill.cs" /> <Compile Include="鐢熶骇绠$悊\妫�鍏风鐞哱ClsSc_CheckToolsRepairCheckBill.cs" /> <Compile Include="鐢熶骇绠$悊\妫�鍏风鐞哱ClsSc_CheckToolsRepairWorkBill.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldLifeUseBill.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldPOContractBill.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsGy_MouldProdBillofMaterBill.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsGy_MouldProdBOMChangeBill.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldProdOutInBill.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldRepairInBill.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldRepairOutBill.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldStatusChangeBill.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipWorkBeforeCheckBill.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStockInCheckBill.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipSparepartsBill.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipSparepartsChangeBill.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\璁惧鎶曚骇\ClsSb_EquipStockInCheckBill.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStatusChangeBill.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\璁惧鎶曚骇\ClsSb_EquipWorkBeforeCheckBill.cs" /> + <Compile Include="绯荤粺鍏敤\ClsXt_BillSubType_Ctl.cs" /> <Compile Include="璐ㄦ绠$悊\ClsQC_FirstPieceCheckBill.cs" /> <Compile Include="璐ㄦ绠$悊\ClsQC_LastPieceCheckBill.cs" /> <Compile Include="璐ㄦ绠$悊\ClsQC_NoPassProdCheckBill.cs" /> diff --git "a/DAL/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_EquipStatus_Ctl.cs" "b/DAL/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_EquipStatus_Ctl.cs" new file mode 100644 index 0000000..845618e --- /dev/null +++ "b/DAL/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_EquipStatus_Ctl.cs" @@ -0,0 +1,103 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; +using System.Data; + +namespace DAL +{ + public class ClsGy_EquipStatus_Ctl : DBUtility.ClsGy_Base_Ctl + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + //鍘熶唬鐮� 鐢ㄤ簬 鏇挎崲瀛愰」鐩� + public string HOldNumber; + public Model.ClsGy_EquipStatus_Model oModel = new Model.ClsGy_EquipStatus_Model(); + //鏂板 + public override bool AddNew() + { + + try + { + oCn.BeginTran(); + oCn.RunProc($@"insert into Gy_EquipStatus(HNumber,HName ,HShortNumber ,HParentID ,HLevel + ,HEndFlag ,HStopflag ,HRemark ,HHelpCode ,HUseFlag + ,HMakeTime ,HMakeEmp ,HCheckEmp ,HCheckTime ,HModifyEmp + ,HModifyTime ,HStopEmp ,HStopTime ,HUSEORGID,HCREATEORGID) + values('{oModel.HNumber}','{oModel.HName}','{oModel.HShortNumber}',{oModel.HParentID},{oModel.HLevel} + ,{(oModel.HEndFlag == true ? 1 : 0)},{(oModel.HStopflag == true ? 1 : 0)},'{oModel.HRemark}','{oModel.HHelpCode}','{oModel.HUseFlag}' + ,GETDATE(),'{oModel.HMakeEmp}','','','' + ,'','','',{oModel.HUSEORGID},{oModel.HCREATEORGID})" + , ref DBUtility.ClsPub.sExeReturnInfo); + //淇敼涓婄骇涓洪潪鏈骇浠g爜 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + oCn.Commit(); + return true; + } + catch (Exception e) + { + oCn.RollBack(); + throw (e); + } + } + + //淇敼 + public override bool ModifyByID(Int64 sItemID) + { + try + { + oCn.BeginTran(); + oCn.RunProc("Update " + MvarItemKey + " set " + + " HNumber='" + oModel.HNumber + "'" + + ",HName='" + oModel.HName + "'" + + ",HShortNumber='" + oModel.HShortNumber + "'" + + ",HParentID=" + oModel.HParentID.ToString() + + ",HLevel=" + oModel.HLevel.ToString() + + ",HEndflag=" + Convert.ToString(oModel.HEndFlag ? 1 : 0) + + ",HStopflag=" + Convert.ToString(oModel.HStopflag ? 1 : 0) + + ",HRemark= '" + oModel.HRemark + "'" + + ",HHelpCode='" + oModel.HHelpCode + "'" + + ",HModifyEmp ='" + oModel.HMakeEmp + "'" + + ",HModifyTime =getdate()" + + " Where HItemID=" + sItemID, ref DBUtility.ClsPub.sExeReturnInfo); + //淇敼瀛愰」鐩唬鐮� + //oCn.RunProc("exec h_p_Gy_UpdateNumber '" + MvarItemKey + "','" + oModel.HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); + //灏嗕笂绾� 涓洪潪鏈骇 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + // + oCn.Commit(); + return true; + } + catch (Exception e) + { + oCn.RollBack(); + throw (e); + } + } + //鏍规嵁浠g爜鍒ゆ柇淇℃伅 + public override bool HavParentCode(string sCode, Int64 sItemID) + { + DataSet DS; + try + { + DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where HStopflag=0 and HNumber='" + sCode + "' and HItemID<>" + sItemID, MvarItemKey, ref Pub_Class.ClsPub.sExeReturnInfo); + if (DS.Tables[0].Rows.Count == 0) + return false; + else + { + oModel.HItemID = Convert.ToInt64(DS.Tables[0].Rows[0]["HItemID"]); + return true; + } + } + catch (Exception e) + { + throw (e); + } + } + //鏋勯�犲嚱鏁� + public ClsGy_EquipStatus_Ctl() + { + MvarItemKey = "Gy_EquipStatus"; + MvarReportTitle = "璁惧鐘舵��"; + oModel = new Model.ClsGy_EquipStatus_Model(); + } + } +} diff --git "a/DAL/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_MouldStatus_Ctl.cs" "b/DAL/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_MouldStatus_Ctl.cs" new file mode 100644 index 0000000..5f75eb5 --- /dev/null +++ "b/DAL/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_MouldStatus_Ctl.cs" @@ -0,0 +1,103 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; +using System.Data; + +namespace DAL +{ + public class ClsGy_MouldStatus_Ctl : DBUtility.ClsGy_Base_Ctl + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + //鍘熶唬鐮� 鐢ㄤ簬 鏇挎崲瀛愰」鐩� + public string HOldNumber; + public Model.ClsGy_MouldStatus_Model oModel = new Model.ClsGy_MouldStatus_Model(); + //鏂板 + public override bool AddNew() + { + + try + { + oCn.BeginTran(); + oCn.RunProc($@"insert into Gy_MouldStatus(HNumber,HName ,HShortNumber ,HParentID ,HLevel + ,HEndFlag ,HStopflag ,HRemark ,HHelpCode ,HUseFlag + ,HMakeTime ,HMakeEmp ,HCheckEmp ,HCheckTime ,HModifyEmp + ,HModifyTime ,HStopEmp ,HStopTime ,HUSEORGID,HCREATEORGID) + values('{oModel.HNumber}','{oModel.HName}','{oModel.HShortNumber}',{oModel.HParentID},{oModel.HLevel} + ,{(oModel.HEndFlag == true ? 1 : 0)},{(oModel.HStopflag == true ? 1 : 0)},'{oModel.HRemark}','{oModel.HHelpCode}','{oModel.HUseFlag}' + ,GETDATE(),'{oModel.HMakeEmp}','','','' + ,'','','',{oModel.HUSEORGID},{oModel.HCREATEORGID})" + , ref DBUtility.ClsPub.sExeReturnInfo); + //淇敼涓婄骇涓洪潪鏈骇浠g爜 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + oCn.Commit(); + return true; + } + catch (Exception e) + { + oCn.RollBack(); + throw (e); + } + } + + //淇敼 + public override bool ModifyByID(Int64 sItemID) + { + try + { + oCn.BeginTran(); + oCn.RunProc("Update " + MvarItemKey + " set " + + " HNumber='" + oModel.HNumber + "'" + + ",HName='" + oModel.HName + "'" + + ",HShortNumber='" + oModel.HShortNumber + "'" + + ",HParentID=" + oModel.HParentID.ToString() + + ",HLevel=" + oModel.HLevel.ToString() + + ",HEndflag=" + Convert.ToString(oModel.HEndFlag ? 1 : 0) + + ",HStopflag=" + Convert.ToString(oModel.HStopflag ? 1 : 0) + + ",HRemark= '" + oModel.HRemark + "'" + + ",HHelpCode='" + oModel.HHelpCode + "'" + + ",HModifyEmp ='" + oModel.HMakeEmp + "'" + + ",HModifyTime =getdate()" + + " Where HItemID=" + sItemID, ref DBUtility.ClsPub.sExeReturnInfo); + //淇敼瀛愰」鐩唬鐮� + //oCn.RunProc("exec h_p_Gy_UpdateNumber '" + MvarItemKey + "','" + oModel.HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); + //灏嗕笂绾� 涓洪潪鏈骇 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + // + oCn.Commit(); + return true; + } + catch (Exception e) + { + oCn.RollBack(); + throw (e); + } + } + //鏍规嵁浠g爜鍒ゆ柇淇℃伅 + public override bool HavParentCode(string sCode, Int64 sItemID) + { + DataSet DS; + try + { + DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where HStopflag=0 and HNumber='" + sCode + "' and HItemID<>" + sItemID, MvarItemKey, ref Pub_Class.ClsPub.sExeReturnInfo); + if (DS.Tables[0].Rows.Count == 0) + return false; + else + { + oModel.HItemID = Convert.ToInt64(DS.Tables[0].Rows[0]["HItemID"]); + return true; + } + } + catch (Exception e) + { + throw (e); + } + } + //鏋勯�犲嚱鏁� + public ClsGy_MouldStatus_Ctl() + { + MvarItemKey = "Gy_MouldStatus"; + MvarReportTitle = "鍣ㄥ叿鐘舵��"; + oModel = new Model.ClsGy_MouldStatus_Model(); + } + } +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBill.cs" index 15d28be..1e6dc1c 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBill.cs" @@ -9,6 +9,7 @@ { public Model.ClsSb_MouldRepairWorkBillMain omodel = new Model.ClsSb_MouldRepairWorkBillMain(); public List<Model.ClsSb_MouldRepairWorkBillSub> DetailColl = new List<Model.ClsSb_MouldRepairWorkBillSub>(); + public List<Model.ClsSb_MouldRepairWorkBillSub_Item> DetailCol = new List<Model.ClsSb_MouldRepairWorkBillSub_Item>(); public ClsSb_MouldRepairWorkBill() { @@ -17,7 +18,7 @@ base.MvarItemKeySub3 = ""; base.MvarItemKeySub4 = ""; base.MvarItemKey="Sc_MouldRepairWorkBillMain"; - base.MvarReportTitle = "妯″叿缁翠慨宸ュ崟"; + base.MvarReportTitle = "妯″叿缁翠慨璁板綍宸ュ崟"; base.BillType = "3807"; base.HBillSubType = "3807"; @@ -72,6 +73,7 @@ " where HInterID=" + lngBillKey.ToString()); //鍒犻櫎鍏宠仈 DeleteRelation(ref sReturn, lngBillKey); + oCn.RunProc("delete from Sc_MouldRepairWorkBillSub_Item where HInterID=" + lngBillKey); //鍒犻櫎瀛愯〃 DeleteBillSub(lngBillKey); //鎻掑叆瀛愯〃 @@ -86,6 +88,21 @@ + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + "," + oSub.HRepairID.ToString() + ",'" + oSub.HRepairExplanation + "'," + oSub.HManagerID.ToString() + "," + oSub.HMoney.ToString() + + ") "); + } + //鎻掑叆瀛愯〃閰嶄欢淇℃伅 + foreach (Model.ClsSb_MouldRepairWorkBillSub_Item oSub in DetailCol) + { + oCn.RunProc("Insert into Sc_MouldRepairWorkBillSub_Item " + + " (HInterID,HEntryID,HMaterID" + + ",HQty,HUnitID,HQtyMust" + + ",HCloseMan,HCloseType,HRemark" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HMaterID.ToString() + + "," + oSub.HQty.ToString() + "," + oSub.HUnitID.ToString() + "," + oSub.HQtyMust.ToString() + + ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ") "); } // @@ -149,6 +166,21 @@ "," + oSub.HRepairID.ToString() + ",'" + oSub.HRepairExplanation + "'," + oSub.HManagerID.ToString() + "," + oSub.HMoney.ToString() + ") "); } + //鎻掑叆瀛愯〃閰嶄欢淇℃伅 + foreach (Model.ClsSb_MouldRepairWorkBillSub_Item oSub in DetailCol) + { + oCn.RunProc("Insert into Sc_MouldRepairWorkBillSub_Item " + + " (HInterID,HEntryID,HMaterID" + + ",HQty,HUnitID,HQtyMust" + + ",HCloseMan,HCloseType,HRemark" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HMaterID.ToString() + + "," + oSub.HQty.ToString() + "," + oSub.HUnitID.ToString() + "," + oSub.HQtyMust.ToString() + + ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + ") "); + } // //foreach (Model.ClsSb_MouldRepairWorkBillSub oSub in DetailColl) //{ diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBill.cs" index b1128a3..c6f2d8d 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBill.cs" @@ -9,11 +9,12 @@ { public Model.ClsSc_MouldDotCheckBillMain omodel = new Model.ClsSc_MouldDotCheckBillMain(); public List<Model.ClsSc_MouldDotCheckBillSub> DetailColl = new List<Model.ClsSc_MouldDotCheckBillSub>(); + public List<Model.ClsSc_MouldDotCheckBillSub_Item> DetailCol = new List<Model.ClsSc_MouldDotCheckBillSub_Item>(); public ClsSc_MouldDotCheckBill() { base.MvarItemKeySub = "Sc_MouldDotCheckBillSub"; - base.MvarItemKeySub2 = ""; + base.MvarItemKeySub2 = "Sc_MouldDotCheckBillSub_Item"; base.MvarItemKeySub3 = ""; base.MvarItemKeySub4 = ""; base.MvarItemKey="Sc_MouldDotCheckBillMain"; @@ -41,7 +42,6 @@ //鏇存柊涓昏〃 oCn.RunProc("UpDate Sc_MouldDotCheckBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== - ",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + //",HStockType='" + omodel.HStockType + "'" + @@ -51,6 +51,7 @@ //======================================== ",HPlanNo='" + omodel.HPlanNo + "'" + ",HPlanInterID=" + omodel.HPlanInterID.ToString() + + ",HMouldDotCheckRuleID=" + omodel.HMouldDotCheckRuleID.ToString() + ",HMouldID=" + omodel.HMouldID.ToString() + @@ -65,6 +66,7 @@ DeleteRelation(ref sReturn, lngBillKey); //鍒犻櫎瀛愯〃 DeleteBillSub(lngBillKey); + //DeleteBillSub2(lngBillKey); //鎻掑叆瀛愯〃 omodel.HInterID = lngBillKey; //鎻掑叆瀛愯〃 @@ -84,6 +86,22 @@ "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ") "); } + + ////閰嶄欢椤圭洰 + //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oSub in DetailCol) + //{ + // oCn.RunProc("Insert into Sc_MouldDotCheckBillSub_Item " + + // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + + // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HMaterID,HUnitID" + + // ",HQty,HQtyMust" + + // ") values(" + // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + + // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + + // ") "); + //} // //foreach (Model.ClsSc_MouldDotCheckBillSub oSub in DetailColl) //{ @@ -122,13 +140,13 @@ ",HYear,HPeriod,HRemark" + ",HMouldID,HBeginDate"+ ",HEndDate,HPlanNo,HPlanInterID" + - ",HInnerBillNo,HExplanation" + + ",HInnerBillNo,HExplanation,HMouldDotCheckRuleID" + ") " + - " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + - "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'" + "," + omodel.HMouldID.ToString() + ",'" + omodel.HBeginDate + "'" + ",'" + omodel.HEndDate + "','" + omodel.HPlanNo + "'," + omodel.HPlanInterID.ToString() + - ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + + ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'," + omodel.HMouldDotCheckRuleID + ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSc_MouldDotCheckBillSub oSub in DetailColl) @@ -147,6 +165,22 @@ "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ") "); } + + ////閰嶄欢椤圭洰 + //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oSub in DetailCol) + //{ + // oCn.RunProc("Insert into Sc_MouldDotCheckBillSub_Item " + + // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + + // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HMaterID,HUnitID" + + // ",HQty,HQtyMust" + + // ") values(" + // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + + // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + + // ") "); + //} // //foreach (Model.ClsSc_MouldDotCheckBillSub oSub in DetailColl) //{ diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBill.cs" index c540641..ccd31ec 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBill.cs" @@ -9,6 +9,7 @@ { public Model.ClsSc_MouldDotCheckPlanBillMain omodel = new Model.ClsSc_MouldDotCheckPlanBillMain(); public List<Model.ClsSc_MouldDotCheckPlanBillSub> DetailColl = new List<Model.ClsSc_MouldDotCheckPlanBillSub>(); + //public List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> DetailCol = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); public ClsSc_MouldDotCheckPlanBill() { @@ -51,6 +52,7 @@ //======================================== ",HCycleUnit='" + omodel.HCycleUnit + "'" + ",HCheckCycle=" + omodel.HCheckCycle.ToString() + + ",HMouldDotCheckRuleID=" + omodel.HMouldDotCheckRuleID + ",HMouldID=" + omodel.HMouldID.ToString() + @@ -65,6 +67,7 @@ DeleteRelation(ref sReturn, lngBillKey); //鍒犻櫎瀛愯〃 DeleteBillSub(lngBillKey); + //oCn.RunProc("delete from Sc_MouldDotCheckPlanBillSub_Item where HInterID=" + lngBillKey); //鎻掑叆瀛愯〃 omodel.HInterID = lngBillKey; foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) @@ -72,17 +75,33 @@ oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub " + " (HInterID,HEntryID" + ",HManagerID"+ - ",HDotCheckItem,HDotCheckPart,HClaim"+ + ",HDotCheckItem,HDotCheckItemID,HDotCheckPart,HClaim" + ",HCloseMan,HCloseType,HRemark" + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + ") values(" + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HManagerID.ToString() + - ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'" + + ",'" + oSub.HDotCheckItem +"'," + oSub.HDotCheckItemID + ",'" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'" + ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'"+ "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ") "); } + + ////閰嶄欢椤圭洰 + //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oSub in DetailCol) + //{ + // oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub_Item " + + // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + + // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HMaterID,HUnitID" + + // ",HQty,HQtyMust" + + // ") values(" + // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + + // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + + // ") "); + //} // //foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) //{ @@ -121,15 +140,15 @@ ",HYear,HPeriod,HRemark" + ",HMouldID,HBeginDate"+ ",HEndDate,HCycleUnit,HCheckCycle" + - ",HInnerBillNo,HExplanation" + + ",HInnerBillNo,HExplanation,HMouldDotCheckRuleID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ "," + omodel.HMouldID.ToString() + ",'" + omodel.HBeginDate + "'" + ",'" + omodel.HEndDate + "','" + omodel.HCycleUnit + "'," + omodel.HCheckCycle.ToString() + - ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + + ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "," + omodel.HMouldDotCheckRuleID + ") "); - //鎻掑叆瀛愯〃 + //鎻掑叆瀛愯〃 //鐐规椤圭洰 foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) { oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub " + @@ -146,6 +165,23 @@ "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ") "); } + + ////閰嶄欢椤圭洰 + //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oSub in DetailCol) + //{ + // oCn.RunProc("Insert into Sc_MouldDotCheckPlanBillSub_Item " + + // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + + // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HMaterID,HUnitID" + + // ",HQty,HQtyMust" + + // ") values(" + // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + + // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + + // ") "); + //} + // //foreach (Model.ClsSc_MouldDotCheckPlanBillSub oSub in DetailColl) //{ diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs" index 9f4698c..cd137ea 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs" @@ -8,12 +8,13 @@ public class ClsSc_MouldDotCheckRuleBill : DBUtility.ClsXt_BaseBill { public Model.ClsSc_MouldDotCheckRuleBillMain omodel = new Model.ClsSc_MouldDotCheckRuleBillMain(); - public List<Model.ClsSc_MouldDotCheckRuleBillSub> DetailColl = new List<Model.ClsSc_MouldDotCheckRuleBillSub>(); + public List<Model.ClsSc_MouldDotCheckRuleBillSub> DetailColl = new List<Model.ClsSc_MouldDotCheckRuleBillSub>(); + public List<Model.ClsSc_MouldDotCheckRuleBillSub_Item> DetailCol = new List<Model.ClsSc_MouldDotCheckRuleBillSub_Item>(); public ClsSc_MouldDotCheckRuleBill() { base.MvarItemKeySub = "Sc_MouldDotCheckRuleBillSub"; - base.MvarItemKeySub2 = ""; + base.MvarItemKeySub2 = "Sc_MouldDotCheckRuleBillSub_Item"; base.MvarItemKeySub3 = ""; base.MvarItemKeySub4 = ""; base.MvarItemKey = "Sc_MouldDotCheckRuleBillMain"; @@ -39,7 +40,6 @@ //鏇存柊涓昏〃 oCn.RunProc("UpDate Sc_MouldDotCheckRuleBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== - ",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + ",HRemark='" + omodel.HRemark + "'" + @@ -58,6 +58,7 @@ //DeleteRelation(ref sReturn, lngBillKey); ////鍒犻櫎瀛愯〃 DeleteBillSub(lngBillKey); + //oCn.RunProc("delete from Sc_MouldDotCheckRuleBillSub_Item where HInterID=" + lngBillKey); ////鎻掑叆瀛愯〃 omodel.HInterID = lngBillKey; foreach (Model.ClsSc_MouldDotCheckRuleBillSub oSub in DetailColl) @@ -74,6 +75,21 @@ "," + oSub.HDotCheckItemID.ToString() + ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'," + oSub.HManagerID.ToString() + ") "); } + //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl) + //{ + // oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " + + // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + + // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HMaterID,HUnitID" + + // ",HQty,HQtyMust" + + // ") values(" + // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + + // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + + // ") "); + //} + sReturn = "淇敼鍗曟嵁鎴愬姛锛�"; oCn.Commit(); return true; @@ -120,6 +136,20 @@ "," + oSub.HDotCheckItemID.ToString() + ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'," + oSub.HManagerID.ToString() + ") "); } + //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl) + //{ + // oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " + + // " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + + // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HMaterID,HUnitID" + + // ",HQty,HQtyMust" + + // ") values(" + // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + // "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + + // "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() + + // ") "); + //} sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; oCn.Commit(); return true; diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBill.cs" new file mode 100644 index 0000000..80e6cb3 --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBill.cs" @@ -0,0 +1,232 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; + +namespace DAL +{ + public class ClsSc_MouldLifeUseBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSc_MouldLifeUseBillMain omodel = new Model.ClsSc_MouldLifeUseBillMain(); + public List<Model.ClsSc_MouldLifeUseBillSub> DetailColl = new List<Model.ClsSc_MouldLifeUseBillSub>(); + + public ClsSc_MouldLifeUseBill() + { + base.MvarItemKeySub = "Sc_MouldLifeUseBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey = "Sc_MouldLifeUseBillMain"; + base.MvarReportTitle = "鍣ㄥ叿瀵垮懡鑰楃敤鍗�"; + base.BillType = "3845"; + base.HBillSubType = "3845"; + } + + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sc_MouldLifeUseBillMain set " + + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== + ",HDate='" + omodel.HDate + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HBillStatus=" + omodel.HBillStatus.ToString() + + ",HRemark='" + omodel.HRemark + "'" + + ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HMangerID=" + omodel.HMangerID.ToString() + + ",HDeptID=" + omodel.HDeptID.ToString() + + ",HExplanation='" + omodel.HExplanation.ToString() + "'" + + ",HReason ='" + omodel.HReason.ToString() + "'" + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSc_MouldLifeUseBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sc_MouldLifeUseBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HMaterID,HUnitID,HDesignLife,HLeaveLife,HUseLife,HNewLeaveLife" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + oSub.HMaterID + "," + oSub.HUnitID + "," + oSub.HDesignLife + "," + oSub.HLeaveLife + "," + oSub.HUseLife + "," + oSub.HNewLeaveLife + ") "); + } + 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); + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + if (IsExistBillNo(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HBillNo, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew, omodel.HInterID)) + { + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + } + if (IsExistMainID(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HInterID, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew)) + { + omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); + } + // + oCn.BeginTran(); + //HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + // ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + // ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HSupID,HEquipID,HFirstCheckEmp,HCheckerResult + //涓昏〃 + oCn.RunProc("Insert Into Sc_MouldLifeUseBillMain " + + "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + + ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HMangerID,HDeptID" + + ",HBillStatus,HBackRemark,HMaker,HMakeDate,HMainSourceBillType" + + ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HPrintQty" + + ",HCheckItemNowID,HCheckItemNextID,HCheckFlowID,HBacker,HChecker,HUpDater" + + ",HCloseMan,HCloseType,HDeleteMan,HReason,HExplanation,HInnerBillNo" + + ") " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + + ", " + omodel.HMangerID.ToString() + "," + omodel.HDeptID.ToString() + "," + 1 + ",'" + omodel.HBackRemark + + "','" + omodel.HMaker + "','" + omodel.HMakeDate + "','" + omodel.HMainSourceBillType + "'," + omodel.HMainSourceInterID + + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "'," + omodel.HPrintQty + ",0,0,0" + ",'" + omodel.HBacker + + "','" + omodel.HChecker + "','" + omodel.HUpDater + "','" + omodel.HCloseMan + "'," + 0 + ",'" + omodel.HDeleteMan + + "','" + omodel.HReason + "','" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'" + ") "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSc_MouldLifeUseBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sc_MouldLifeUseBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HMaterID,HUnitID,HDesignLife,HLeaveLife,HUseLife,HNewLeaveLife" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + oSub.HMaterID + "," + oSub.HUnitID + "," + oSub.HDesignLife + "," + oSub.HLeaveLife + "," + oSub.HUseLife + "," + oSub.HNewLeaveLife + ") "); + } + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + //鏄剧ず鍗曟嵁 + public override bool ShowBill(Int64 lngBillKey, ref string sReturn) + { + try + { + //鏌ヨ涓昏〃 + DataSet Ds; + Ds = oCn.RunProcReturn("Select * from Sc_MouldLifeUseBillMain Where HInterID=" + lngBillKey.ToString(), "Sc_MouldLifeUseBillMain"); + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillNo"]); + omodel.HBillStatus = 1; + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); + omodel.HBackDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackDate"]); + omodel.HBacker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBacker"]); + omodel.HCheckDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckDate"]); + omodel.HChecker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HChecker"]); + omodel.HMaker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaker"]); + omodel.HMakeDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMakeDate"]); + omodel.HUpDateDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDateDate"]); + omodel.HUpDater = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDater"]); + omodel.HCloseDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseDate"]); + omodel.HCloseMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseMan"]); + omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); + omodel.HDeleteDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteDate"]); + omodel.HDeleteMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteMan"]); + omodel.HMainSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillType"]); + omodel.HMainSourceInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceInterID"]); + omodel.HMainSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceEntryID"]); + omodel.HMainSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillNo"]); + omodel.HPrintQty = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPrintQty"]); + //======================================================== + omodel.HMangerID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMangerID"]); + omodel.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"]); + omodel.HReason = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HReason"]); + 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 Sc_MouldLifeUseBillSub Where HInterID=" + lngBillKey.ToString(), "Sc_MouldLifeUseBillSub"); + DetailColl.Clear();//娓呯┖ + for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) + { + Model.ClsSc_MouldLifeUseBillSub oSub = new Model.ClsSc_MouldLifeUseBillSub(); + // 鍥哄畾璧嬪��=============================================== + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillType"]); + oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillNo"]); + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HRemark"]); + oSub.HBillNo_bak = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBillNo_bak"]); + //=================================================== + oSub.HMaterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HMaterID"]); + oSub.HUnitID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HUnitID"]); + oSub.HDesignLife = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HDesignLife"]); + oSub.HLeaveLife = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HLeaveLife"]); + oSub.HUseLife = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HUseLife"]); + oSub.HNewLeaveLife = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HNewLeaveLife"]); + + DetailColl.Add(oSub); + } + sReturn = "鏄剧ず鍗曟嵁鎴愬姛锛�"; + return true; + } + catch (Exception e) + { + sReturn = e.Message; + throw (e); + } + } + } +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" index 266ffc0..b8529c8 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBill.cs" @@ -57,7 +57,7 @@ //",HGroupID=" + omodel.HGroupID.ToString() + //",HWHID=" + omodel.HWHID.ToString() + //",HSCWHID=" + omodel.HSCWHID.ToString() + - ",HEquipDotCheckRuleInterID='" + omodel.HEquipDotCheckRuleInterID + "'" + + ",HMouldMaintainRuleID='" + omodel.HMouldMaintainRuleID + "'" + ",HCycleUnit='" + omodel.HCycleUnit + "'" + ",HCheckCycle=" + omodel.HCheckCycle.ToString() + ",HBeginDate='" + omodel.HBeginDate + "'" + @@ -103,8 +103,8 @@ ",'" + Item.HMaintainPart.ToString() + "','" + Item.HClaim.ToString() + "'" + "," + Item.HManagerID.ToString() + ",'" + Item.HCloseMan + "'," + Convert.ToString(Item.HCloseType ? 1 : 0) + ",'" + Item.HRemark + "'" + - "," + Item.HSourceInterID.ToString() + "," + Item.HSourceEntryID.ToString() + ",'" + Item.HSourceBillNo + "','" + Item.HSourceBillType + "'," + Item.HRelationQty.ToString() + "," + Item.HRelationMoney.ToString() + "," + Item.HMaintainItem.ToString() + - ") "); + "," + Item.HSourceInterID.ToString() + "," + Item.HSourceEntryID.ToString() + ",'" + Item.HSourceBillNo + "','" + Item.HSourceBillType + "'," + Item.HRelationQty.ToString() + "," + Item.HRelationMoney.ToString() + ",'" + Item.HMaintainItem.ToString() + + "') "); } // //foreach (Model.ClsSc_MouldMaintainPlanBillSub oSub in DetailColl) @@ -143,12 +143,12 @@ "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HMaker,HMakeDate" + ",HYear,HPeriod,HRemark" + ",HCycleUnit,HCheckCycle,HBeginDate,HEndDate"+ - ",HInnerBillNo,HExplanation,HEquipDotCheckRuleInterID" + + ",HInnerBillNo,HExplanation,HMouldMaintainRuleID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ ",'" + omodel.HCycleUnit + "'," + omodel.HCheckCycle.ToString() + ",'" + omodel.HBeginDate + "','" + omodel.HEndDate + "'" + - ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "','" + omodel.HEquipDotCheckRuleInterID + "'" + + ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "','" + omodel.HMouldMaintainRuleID + "'" + ") "); //鎻掑叆瀛愯〃閰嶄欢淇℃伅 foreach (Model.ClsSc_MouldMaintainPlanBillSub oSub in DetailColl) diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBill.cs" new file mode 100644 index 0000000..7019639 --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBill.cs" @@ -0,0 +1,231 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; + + +namespace DAL +{ + public class ClsSc_MouldStatusChangeBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSc_MouldStatusChangeBillMain omodel = new Model.ClsSc_MouldStatusChangeBillMain(); + public List<Model.ClsSc_MouldStatusChangeBillSub> DetailColl = new List<Model.ClsSc_MouldStatusChangeBillSub>(); + + public ClsSc_MouldStatusChangeBill() + { + base.MvarItemKeySub = "Sc_MouldStatusChangeBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey = "Sc_MouldStatusChangeBillMain"; + base.MvarReportTitle = "鍣ㄥ叿鐘舵�佸彉鏇村崟"; + base.BillType = "3844"; + base.HBillSubType = "3844"; + } + + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sc_MouldStatusChangeBillMain set " + + " HReason='" + omodel.HReason + "'" + //鍥哄畾璧嬪��=============== + ",HExplanation='" + omodel.HExplanation + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HBillStatus=" + omodel.HBillStatus.ToString() + + ",HRemark='" + omodel.HRemark + "'" + + ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HEmpID=" + omodel.HEmpID.ToString() + + ",HDeptID=" + omodel.HDeptID.ToString() + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSc_MouldStatusChangeBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sc_MouldStatusChangeBillSub " + + " (HInterID,HEntryID,HBillNo_bak,HRemark" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HMaterID,HUnitID,HQtyMust,HQty,HStatusID_Old,HStatusID_New" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HBillNo_bak + "','" + oSub.HRemark + "'," + + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + oSub.HMaterID + "," + oSub.HUnitID + "," + 0 + "," + oSub.HQty + "," + oSub.HStatusID_Old + "," + oSub.HStatusID_New + ") "); + } + 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); + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + if (IsExistBillNo(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HBillNo, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew, omodel.HInterID)) + { + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + } + if (IsExistMainID(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HInterID, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew)) + { + omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); + } + // + oCn.BeginTran(); + //涓昏〃 + //oCN.RunProc(@"Insert Into Sc_MouldStatusChangeBillMain + // (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + // ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + // ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HEmpID,HDeptID,HReason,HExplanation,HInnerBillNo) + //",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + + + oCn.RunProc("Insert Into Sc_MouldStatusChangeBillMain " + + "(HBillType,HBillSubType,HInterID,HYear,HPeriod,HDate,HBillNo,HBillStatus" + + ",HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID" + + ",HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HEmpID,HDeptID,HReason,HExplanation,HInnerBillNo" + + ") " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HDate + "','" + omodel.HBillNo + + "'," + omodel.HBillStatus + ",'" + omodel.HRemark + "','" + omodel.HBackRemark + "','" + omodel.HMaker + + "','" + omodel.HMakeDate + "','" + omodel.HMainSourceBillType + "'," + omodel.HMainSourceInterID + + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "'," + omodel.HPrintQty + + "," + omodel.HEmpID + "," + omodel.HDeptID + ",'" + omodel.HReason + "','" + omodel.HExplanation + + "','" + omodel.HInnerBillNo + "'" + ") "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSc_MouldStatusChangeBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sc_MouldStatusChangeBillSub " + + " (HInterID,HEntryID,HBillNo_bak,HRemark" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HMaterID,HUnitID,HQtyMust,HQty,HStatusID_Old,HStatusID_New" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HBillNo_bak + "','" + oSub.HRemark + "'," + + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + oSub.HMaterID + "," + oSub.HUnitID + "," + 0 + "," + oSub.HQty + "," + oSub.HStatusID_Old + "," + oSub.HStatusID_New + ") "); + } + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + //鏄剧ず鍗曟嵁 + public override bool ShowBill(Int64 lngBillKey, ref string sReturn) + { + try + { + //鏌ヨ涓昏〃 + DataSet Ds; + Ds = oCn.RunProcReturn("Select * from Sc_MouldStatusChangeBillMain Where HInterID=" + lngBillKey.ToString(), "Sc_MouldStatusChangeBillMain"); + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillNo"]); + omodel.HBillStatus = 1; + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); + omodel.HBackDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackDate"]); + omodel.HBacker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBacker"]); + omodel.HCheckDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckDate"]); + omodel.HChecker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HChecker"]); + omodel.HMaker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaker"]); + omodel.HMakeDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMakeDate"]); + omodel.HUpDateDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDateDate"]); + omodel.HUpDater = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDater"]); + omodel.HCloseDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseDate"]); + omodel.HCloseMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseMan"]); + omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); + omodel.HDeleteDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteDate"]); + omodel.HDeleteMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteMan"]); + omodel.HMainSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillType"]); + omodel.HMainSourceInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceInterID"]); + omodel.HMainSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceEntryID"]); + omodel.HMainSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillNo"]); + omodel.HPrintQty = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPrintQty"]); + //======================================================== + omodel.HEmpID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"]); + omodel.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"]); + omodel.HReason = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HReason"]); + 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 Sc_MouldStatusChangeBillSub Where HInterID=" + lngBillKey.ToString(), "Sc_MouldStatusChangeBillSub"); + DetailColl.Clear();//娓呯┖ + for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) + { + Model.ClsSc_MouldStatusChangeBillSub oSub = new Model.ClsSc_MouldStatusChangeBillSub(); + // 鍥哄畾璧嬪��=============================================== + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillType"]); + oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillNo"]); + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HRemark"]); + oSub.HBillNo_bak = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBillNo_bak"]); + //=================================================== + oSub.HMaterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HMaterID"]); + oSub.HUnitID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HUnitID"]); + oSub.HQty = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HQty"]); + oSub.HStatusID_Old = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HStatusID_Old"]); + oSub.HStatusID_New = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HStatusID_New"]); + + DetailColl.Add(oSub); + } + sReturn = "鏄剧ず鍗曟嵁鎴愬姛锛�"; + return true; + } + catch (Exception e) + { + sReturn = e.Message; + throw (e); + } + } + } +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckBill.cs" index 49077a5..c644ef5 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckBill.cs" @@ -41,7 +41,7 @@ //鏇存柊涓昏〃 oCn.RunProc("UpDate Sb_EquipDotCheckBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== - ",HDate='" + omodel.HDate + "'" + + //",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + ",HRemark='" + omodel.HRemark + "'" + diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBill.cs" index 07b7ef0..9fc7812 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBill.cs" @@ -41,7 +41,6 @@ //鏇存柊涓昏〃 oCn.RunProc("UpDate Sb_EquipDotCheckPlanBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== - ",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + ",HRemark='" + omodel.HRemark + "'" + @@ -51,6 +50,7 @@ ",HEquipID=" + omodel.HEquipID.ToString() + ",HBeginDate='" + omodel.HBeginDate + "'" + ",HEndDate='" + omodel.HEndDate+"'" + + ",HMouldDotCheckRuleID='" + omodel.HMouldDotCheckRuleID + "'" + ",HCycleUnit='" + omodel.HCycleUnit + "'" + ",HCheckCycle=" + omodel.HCheckCycle.ToString() + ",HExplanation='" + omodel.HExplanation+"'" + @@ -114,11 +114,11 @@ oCn.RunProc("Insert Into Sb_EquipDotCheckPlanBillMain " + "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HMaker,HMakeDate" + ",HYear,HPeriod,HRemark,HEquipID" + - ",HBeginDate,HEndDate,HCheckCycle,HCycleUnit,HExplanation,HInnerBillNo" + + ",HBeginDate,HEndDate,HCheckCycle,HCycleUnit,HExplanation,HInnerBillNo,HMouldDotCheckRuleID" + ") "+ " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'," + omodel.HEquipID.ToString() + - ",'" + omodel.HBeginDate +"','" +omodel.HEndDate + "'," + omodel.HCheckCycle.ToString() +",'"+ omodel.HCycleUnit + "','" + omodel.HExplanation + "','" + omodel.HInnerBillNo +"'" + + ",'" + omodel.HBeginDate +"','" +omodel.HEndDate + "'," + omodel.HCheckCycle.ToString() +",'"+ omodel.HCycleUnit + "','" + omodel.HExplanation + "','" + omodel.HInnerBillNo +"','" + omodel.HMouldDotCheckRuleID + "'"+ ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSb_EquipDotCheckPlanBillSub oSub in DetailColl) diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBill.cs" index fa9375f..b4c6d51 100644 --- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBill.cs" +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBill.cs" @@ -41,7 +41,6 @@ //鏇存柊涓昏〃 oCn.RunProc("UpDate Sb_EquipMaintainPlanBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== - ",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + ",HRemark='" + omodel.HRemark + "'" + @@ -52,6 +51,7 @@ ",HBeginDate='" + omodel.HBeginDate + "'" + ",HEndDate='" + omodel.HEndDate+"'" + ",HCycleUnit='" + omodel.HCycleUnit + "'" + + ",HMouldMaintainRuleID='" + omodel.HMouldMaintainRuleID + "'" + ",HCheckCycle=" + omodel.HCheckCycle.ToString() + ",HExplanation='" + omodel.HExplanation+"'" + ",HInnerBillNo='" + omodel.HInnerBillNo+"'" + @@ -121,11 +121,11 @@ oCn.RunProc("Insert Into Sb_EquipMaintainPlanBillMain " + "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HMaker,HMakeDate" + ",HYear,HPeriod,HRemark,HEquipID" + - ",HBeginDate,HEndDate,HCheckCycle,HCycleUnit,HExplanation,HInnerBillNo" + + ",HBeginDate,HEndDate,HCheckCycle,HCycleUnit,HExplanation,HInnerBillNo,HMouldMaintainRuleID" + ") "+ " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'," + omodel.HEquipID.ToString() + - ",'" + omodel.HBeginDate +"','" +omodel.HEndDate + "'," + omodel.HCheckCycle.ToString() +",'"+ omodel.HCycleUnit + "','" + omodel.HExplanation + "','" + omodel.HInnerBillNo +"'" + + ",'" + omodel.HBeginDate +"','" +omodel.HEndDate + "'," + omodel.HCheckCycle.ToString() +",'"+ omodel.HCycleUnit + "','" + omodel.HExplanation + "','" + omodel.HInnerBillNo +"','" + omodel.HMouldMaintainRuleID + "'" + ") "); if (DetailColl != null) { diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBill.cs" new file mode 100644 index 0000000..0a1808d --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBill.cs" @@ -0,0 +1,232 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; + +namespace DAL +{ + public class ClsSb_EquipStatusChangeBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSb_EquipStatusChangeBillMain omodel = new Model.ClsSb_EquipStatusChangeBillMain(); + public List<Model.ClsSb_EquipStatusChangeBillSub> DetailColl = new List<Model.ClsSb_EquipStatusChangeBillSub>(); + + public ClsSb_EquipStatusChangeBill() + { + base.MvarItemKeySub = "Sb_EquipStatusChangeBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey = "Sb_EquipStatusChangeBillMain"; + base.MvarReportTitle = "璁惧鐘舵�佸彉鏇村崟"; + base.BillType = "3916"; + base.HBillSubType = "3916"; + } + + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sb_EquipStatusChangeBillMain set " + + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== + ",HDate='" + omodel.HDate + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HBillStatus=" + omodel.HBillStatus.ToString() + + ",HRemark='" + omodel.HRemark + "'" + + ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HEmpID=" + omodel.HEmpID.ToString() + + ",HDeptID=" + omodel.HDeptID.ToString() + + ",HExplanation='" + omodel.HExplanation.ToString() + "'" + + ",HReason ='" + omodel.HReason.ToString() + "'" + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSb_EquipStatusChangeBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipStatusChangeBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HEquipID,HUnitID,HQtyMust,HQty,HStatusID_Old,HStatusID_New" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + oSub.HEquipID + "," + oSub.HUnitID + "," + 0 + "," + oSub.HQty + "," + oSub.HStatusID_Old + "," + oSub.HStatusID_New + ") "); + } + 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); + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + if (IsExistBillNo(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HBillNo, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew, omodel.HInterID)) + { + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + } + if (IsExistMainID(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HInterID, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew)) + { + omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); + } + // + oCn.BeginTran(); + //HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + // ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + // ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HSupID,HEquipID,HFirstCheckEmp,HCheckerResult + //涓昏〃 + oCn.RunProc("Insert Into Sb_EquipStatusChangeBillMain " + + "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + + ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HEmpID,HDeptID" + + ",HBillStatus,HBackRemark,HMaker,HMakeDate,HMainSourceBillType" + + ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HPrintQty" + + ",HCheckItemNowID,HCheckItemNextID,HCheckFlowID,HBacker,HChecker,HUpDater" + + ",HCloseMan,HCloseType,HDeleteMan,HReason,HExplanation,HInnerBillNo" + + ") " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + + ", " + omodel.HEmpID.ToString() + "," + omodel.HDeptID.ToString() + "," + 1 + ",'" + omodel.HBackRemark + + "','" + omodel.HMaker + "','" + omodel.HMakeDate + "','" + omodel.HMainSourceBillType + "'," + omodel.HMainSourceInterID + + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "'," + omodel.HPrintQty + ",0,0,0" + ",'" + omodel.HBacker + + "','" + omodel.HChecker + "','" + omodel.HUpDater + "','" + omodel.HCloseMan + "'," + 0 + ",'" + omodel.HDeleteMan + + "','" + omodel.HReason + "','" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'" + ") "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSb_EquipStatusChangeBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipStatusChangeBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HEquipID,HUnitID,HQtyMust,HQty,HStatusID_Old,HStatusID_New" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + oSub.HEquipID + "," + oSub.HUnitID + "," + 0 + "," + oSub.HQty + "," + oSub.HStatusID_Old + "," + oSub.HStatusID_New + ") "); + } + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + //鏄剧ず鍗曟嵁 + public override bool ShowBill(Int64 lngBillKey, ref string sReturn) + { + try + { + //鏌ヨ涓昏〃 + DataSet Ds; + Ds = oCn.RunProcReturn("Select * from Sb_EquipStatusChangeBillMain Where HInterID=" + lngBillKey.ToString(), "Sb_EquipStatusChangeBillMain"); + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillNo"]); + omodel.HBillStatus = 1; + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); + omodel.HBackDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackDate"]); + omodel.HBacker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBacker"]); + omodel.HCheckDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckDate"]); + omodel.HChecker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HChecker"]); + omodel.HMaker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaker"]); + omodel.HMakeDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMakeDate"]); + omodel.HUpDateDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDateDate"]); + omodel.HUpDater = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDater"]); + omodel.HCloseDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseDate"]); + omodel.HCloseMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseMan"]); + omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); + omodel.HDeleteDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteDate"]); + omodel.HDeleteMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteMan"]); + omodel.HMainSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillType"]); + omodel.HMainSourceInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceInterID"]); + omodel.HMainSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceEntryID"]); + omodel.HMainSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillNo"]); + omodel.HPrintQty = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPrintQty"]); + //======================================================== + omodel.HEmpID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"]); + omodel.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"]); + omodel.HReason = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HReason"]); + 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 Sb_EquipStatusChangeBillSub Where HInterID=" + lngBillKey.ToString(), "Sb_EquipStatusChangeBillSub"); + DetailColl.Clear();//娓呯┖ + for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) + { + Model.ClsSb_EquipStatusChangeBillSub oSub = new Model.ClsSb_EquipStatusChangeBillSub(); + // 鍥哄畾璧嬪��=============================================== + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillType"]); + oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillNo"]); + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HRemark"]); + oSub.HBillNo_bak = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBillNo_bak"]); + //=================================================== + oSub.HEquipID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEquipID"]); + oSub.HUnitID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HUnitID"]); + oSub.HQtyMust = 0; + oSub.HQty = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HQty"]); + oSub.HStatusID_Old = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HStatusID_Old"]); + oSub.HStatusID_New = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HStatusID_New"]); + + DetailColl.Add(oSub); + } + sReturn = "鏄剧ず鍗曟嵁鎴愬姛锛�"; + return true; + } + catch (Exception e) + { + sReturn = e.Message; + throw (e); + } + } + } +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBill.cs" new file mode 100644 index 0000000..61b0eaf --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBill.cs" @@ -0,0 +1,132 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; +using System.Data; + +namespace DAL +{ + public class ClsSb_EquipStockInCheckBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSb_EquipStockInCheckBillMain omodel = new Model.ClsSb_EquipStockInCheckBillMain(); + public List<Model.ClsSb_EquipStockInCheckBillSub> DetailColl = new List<Model.ClsSb_EquipStockInCheckBillSub>(); + + public ClsSb_EquipStockInCheckBill() + { + base.MvarItemKeySub = "Sb_EquipStockInCheckBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey= "Sb_EquipStockInCheckBillMain"; + base.MvarReportTitle= "璁惧鍏ュ簱妫�楠岄獙鏀跺崟"; + base.BillType = "3914"; + base.HBillSubType = "3914"; + + } + + #region 鍥哄畾浠g爜 + + ~ClsSb_EquipStockInCheckBill() + { + DetailColl = null; + } + + #endregion 鑷畾涔夋柟娉� + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sb_EquipStockInCheckBillMain set " + + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== + //",HDate='" + omodel.HDate + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HRemark='" + omodel.HRemark + "'" + + ",HCheckerResult='" + omodel.HCheckerResult + "'" + + ",HUpDater='" + omodel.HMaker + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HEquipID=" + omodel.HEquipID.ToString() + + ",HSupID=" + omodel.HSupID.ToString() + + ",HFirstCheckEmp=" + omodel.HFirstCheckEmp.ToString() + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSb_EquipStockInCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipStockInCheckBillSub " + + " (HInterID,HEntryID,HCloseMan, HEntryCloseDate, HCloseType" + + ", HRemark, HSourceInterID, HSourceEntryID, HSourceBillNo, HSourceBillType" + + ", HRelationQty, HRelationMoney,HQCCheckClassID, HQCCheckItemID, HQCStd" + + ", HQCRelValue, HResult, HProcCheckEmp, HProcCheckTime, HBillNo_bak) values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + + ",'" + oSub.HRemark + "'" + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ",'" + oSub.HQCCheckClassID + "','" + oSub.HQCCheckItemID + "','" + oSub.HQCStd + + "','" + oSub.HQCRelValue + "','" + oSub.HResult.ToString() + "','" + oSub.HProcCheckEmp + "','" + oSub.HProcCheckTime + "','') "); + } + + 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); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + oCn.BeginTran(); + //涓昏〃 + oCn.RunProc("Insert Into Sb_EquipStockInCheckBillMain " + + "(HBillType,HBillSubType,HInterID,HBillNo , HDate, HMaker, HMakeDate" + + ", HYear, HPeriod , HRemark, HEquipID, HSupID, HFirstCheckEmp, HCheckerResult" + + ", HBackRemark, HMainSourceBillType, HMainSourceInterID, HMainSourceEntryID, HMainSourceBillNo) " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'," + omodel.HEquipID.ToString() + + ",'" + omodel.HSupID + "','" + omodel.HFirstCheckEmp + "','" + omodel.HCheckerResult + "'" + + ",'','',0,0,'') "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSb_EquipStockInCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipStockInCheckBillSub " + + " (HInterID,HEntryID,HCloseMan, HEntryCloseDate, HCloseType" + + ", HRemark, HSourceInterID, HSourceEntryID, HSourceBillNo, HSourceBillType" + + ", HRelationQty, HRelationMoney,HQCCheckClassID, HQCCheckItemID, HQCStd" + + ", HQCRelValue, HResult, HProcCheckEmp, HProcCheckTime, HBillNo_bak) values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + + ",'" + oSub.HRemark + "'" + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ",'" + oSub.HQCCheckClassID + "','" + oSub.HQCCheckItemID + "','" + oSub.HQCStd + + "','" + oSub.HQCRelValue + "','" + oSub.HResult.ToString() + "','" + oSub.HProcCheckEmp + "','" + oSub.HProcCheckTime + "','') "); + } + + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + } + +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBill.cs" new file mode 100644 index 0000000..b863c32 --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBill.cs" @@ -0,0 +1,132 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; +using System.Data; + +namespace DAL +{ + public class ClsSb_EquipWorkBeforeCheckBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSb_EquipWorkBeforeCheckBillMain omodel = new Model.ClsSb_EquipWorkBeforeCheckBillMain(); + public List<Model.ClsSb_EquipWorkBeforeCheckBillSub> DetailColl = new List<Model.ClsSb_EquipWorkBeforeCheckBillSub>(); + + public ClsSb_EquipWorkBeforeCheckBill() + { + base.MvarItemKeySub = "Sb_EquipWorkBeforeCheckBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey= "Sb_EquipWorkBeforeCheckBillMain"; + base.MvarReportTitle= "璁惧鎶曚骇妫�楠岄獙鏀跺崟"; + base.BillType = "3915"; + base.HBillSubType = "3915"; + + } + + #region 鍥哄畾浠g爜 + + ~ClsSb_EquipWorkBeforeCheckBill() + { + DetailColl = null; + } + + #endregion 鑷畾涔夋柟娉� + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sb_EquipWorkBeforeCheckBillMain set " + + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== + //",HDate='" + omodel.HDate + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HRemark='" + omodel.HRemark + "'" + + ",HCheckerResult='" + omodel.HCheckerResult + "'" + + ",HUpDater='" + omodel.HMaker + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HEquipID=" + omodel.HEquipID.ToString() + + ",HSupID=" + omodel.HSupID.ToString() + + ",HFirstCheckEmp=" + omodel.HFirstCheckEmp.ToString() + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSb_EquipWorkBeforeCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipWorkBeforeCheckBillSub " + + " (HInterID,HEntryID,HCloseMan, HEntryCloseDate, HCloseType" + + ", HRemark, HSourceInterID, HSourceEntryID, HSourceBillNo, HSourceBillType" + + ", HRelationQty, HRelationMoney,HQCCheckClassID, HQCCheckItemID, HQCStd" + + ", HQCRelValue, HResult, HProcCheckEmp, HProcCheckTime, HBillNo_bak) values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + + ",'" + oSub.HRemark + "'" + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ",'" + oSub.HQCCheckClassID + "','" + oSub.HQCCheckItemID + "','" + oSub.HQCStd + + "','" + oSub.HQCRelValue + "','" + oSub.HResult.ToString() + "','" + oSub.HProcCheckEmp + "','" + oSub.HProcCheckTime + "','') "); + } + + 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); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + oCn.BeginTran(); + //涓昏〃 + oCn.RunProc("Insert Into Sb_EquipWorkBeforeCheckBillMain " + + "(HBillType,HBillSubType,HInterID,HBillNo , HDate, HMaker, HMakeDate" + + ", HYear, HPeriod , HRemark, HEquipID, HSupID, HFirstCheckEmp, HCheckerResult" + + ", HBackRemark, HMainSourceBillType, HMainSourceInterID, HMainSourceEntryID, HMainSourceBillNo) " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'," + omodel.HEquipID.ToString() + + ",'" + omodel.HSupID + "','" + omodel.HFirstCheckEmp + "','" + omodel.HCheckerResult + "'" + + ",'','',0,0,'') "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSb_EquipWorkBeforeCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipWorkBeforeCheckBillSub " + + " (HInterID,HEntryID,HCloseMan, HEntryCloseDate, HCloseType" + + ", HRemark, HSourceInterID, HSourceEntryID, HSourceBillNo, HSourceBillType" + + ", HRelationQty, HRelationMoney,HQCCheckClassID, HQCCheckItemID, HQCStd" + + ", HQCRelValue, HResult, HProcCheckEmp, HProcCheckTime, HBillNo_bak) values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + + ",'" + oSub.HRemark + "'" + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + ",'" + oSub.HQCCheckClassID + "','" + oSub.HQCCheckItemID + "','" + oSub.HQCStd + + "','" + oSub.HQCRelValue + "','" + oSub.HResult.ToString() + "','" + oSub.HProcCheckEmp + "','" + oSub.HProcCheckTime + "','') "); + } + + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + } + +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\212\225\344\272\247/ClsSb_EquipStockInCheckBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\212\225\344\272\247/ClsSb_EquipStockInCheckBill.cs" new file mode 100644 index 0000000..80861e9 --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\212\225\344\272\247/ClsSb_EquipStockInCheckBill.cs" @@ -0,0 +1,233 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; + +namespace DAL.鐢熶骇绠$悊.璁惧绠$悊.璁惧鎶曚骇 +{ + public class ClsSb_EquipStockInCheckBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSb_EquipStockInCheckBillMain omodel = new Model.ClsSb_EquipStockInCheckBillMain(); + public List<Model.ClsSb_EquipStockInCheckBillSub> DetailColl = new List<Model.ClsSb_EquipStockInCheckBillSub>(); + + public ClsSb_EquipStockInCheckBill() + { + base.MvarItemKeySub = "Sb_EquipStockInCheckBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey = "Sb_EquipStockInCheckBillMain"; + base.MvarReportTitle = "璁惧鍏ュ簱妫�楠岄獙鏀跺崟"; + base.BillType = "3914"; + base.HBillSubType = "3914"; + } + + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sb_EquipStockInCheckBillMain set " + + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== + ",HDate='" + omodel.HDate + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HBillStatus=" + omodel.HBillStatus.ToString() + + ",HRemark='" + omodel.HRemark + "'" + + ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HSupID=" + omodel.HSupID.ToString() + + ",HEquipID=" + omodel.HEquipID.ToString() + + ",HFirstCheckEmp=" + omodel.HFirstCheckEmp.ToString() + + ",HCheckerResult ='" + omodel.HCheckerResult.ToString() + "'" + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSb_EquipStockInCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipStockInCheckBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HItemSubID,HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult,HProcCheckEmp,HProcCheckTime" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + 0 + "," + oSub.HQCCheckClassID + "," + oSub.HQCCheckItemID + ",'" + oSub.HQCStd + "','" + oSub.HQCRelValue + "','" + oSub.HResult + "'," + oSub.HProcCheckEmp + + ",'" + oSub.HProcCheckTime + "'" + ") "); + } + 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); + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + if (IsExistBillNo(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HBillNo, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew, omodel.HInterID)) + { + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + } + if (IsExistMainID(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HInterID, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew)) + { + omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); + } + // + oCn.BeginTran(); + //HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + // ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + // ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HSupID,HEquipID,HFirstCheckEmp,HCheckerResult + //涓昏〃 + oCn.RunProc("Insert Into Sb_EquipStockInCheckBillMain " + + "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + + ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HSupID,HFirstCheckEmp" + + ",HBillStatus,HBackRemark,HMaker,HMakeDate,HMainSourceBillType" + + ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HPrintQty" + + ",HCheckItemNowID,HCheckItemNextID,HCheckFlowID,HBacker,HChecker,HUpDater,HCloseMan,HCloseType,HDeleteMan,HEquipID,HCheckerResult" + + ") " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + + ", " + omodel.HSupID.ToString() + "," + omodel.HFirstCheckEmp.ToString() + "," + 1 + ",'" + omodel.HBackRemark + + "','" + omodel.HMaker + "','" + omodel.HMakeDate + "','" + omodel.HMainSourceBillType + "'," + omodel.HMainSourceInterID + + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "'," + omodel.HPrintQty + ",0,0,0" + ",'" + omodel.HBacker + + "','" + omodel.HChecker + "','" + omodel.HUpDater + "','" + omodel.HCloseMan + "'," + 0 + ",'" + omodel.HDeleteMan + + "'," + omodel.HEquipID + ",'" + omodel.HCheckerResult + "'" + ") "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSb_EquipStockInCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipStockInCheckBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HItemSubID,HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult,HProcCheckEmp,HProcCheckTime" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + 0 + "," + oSub.HQCCheckClassID + "," + oSub.HQCCheckItemID + ",'" + oSub.HQCStd + "','" + oSub.HQCRelValue + "','" + oSub.HResult + "'," + oSub.HProcCheckEmp + + ",'" + oSub.HProcCheckTime + "'" + ") "); + } + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + //鏄剧ず鍗曟嵁 + public override bool ShowBill(Int64 lngBillKey, ref string sReturn) + { + try + { + //鏌ヨ涓昏〃 + DataSet Ds; + Ds = oCn.RunProcReturn("Select * from Sb_EquipStockInCheckBillMain Where HInterID=" + lngBillKey.ToString(), "Sb_EquipStockInCheckBillMain"); + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillNo"]); + omodel.HBillStatus = 1; + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); + omodel.HBackDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackDate"]); + omodel.HBacker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBacker"]); + omodel.HCheckDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckDate"]); + omodel.HChecker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HChecker"]); + omodel.HMaker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaker"]); + omodel.HMakeDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMakeDate"]); + omodel.HUpDateDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDateDate"]); + omodel.HUpDater = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDater"]); + omodel.HCloseDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseDate"]); + omodel.HCloseMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseMan"]); + omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); + omodel.HDeleteDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteDate"]); + omodel.HDeleteMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteMan"]); + omodel.HMainSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillType"]); + omodel.HMainSourceInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceInterID"]); + omodel.HMainSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceEntryID"]); + omodel.HMainSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillNo"]); + omodel.HPrintQty = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPrintQty"]); + //======================================================== + omodel.HSupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSupID"]); + omodel.HFirstCheckEmp = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HFirstCheckEmp"]); + omodel.HEquipID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEquipID"]); + omodel.HCheckerResult = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckerResult"]); + + //寰幆 + DataSet DsSub; + DsSub = oCn.RunProcReturn("Select * from Sb_EquipStockInCheckBillSub Where HInterID=" + lngBillKey.ToString(), "Sb_EquipStockInCheckBillSub"); + DetailColl.Clear();//娓呯┖ + for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) + { + Model.ClsSb_EquipStockInCheckBillSub oSub = new Model.ClsSb_EquipStockInCheckBillSub(); + // 鍥哄畾璧嬪��=============================================== + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillType"]); + oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillNo"]); + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HRemark"]); + oSub.HBillNo_bak = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBillNo_bak"]); + //=================================================== + oSub.HQCCheckClassID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HQCCheckClassID"]); + oSub.HQCCheckItemID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HQCCheckItemID"]); + oSub.HQCStd = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HQCStd"]); + oSub.HQCRelValue = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HQCRelValue"]); + oSub.HResult = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HResult"]); + oSub.HProcCheckEmp = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HProcCheckEmp"]); + oSub.HProcCheckTime = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HProcCheckTime"]); + + DetailColl.Add(oSub); + } + sReturn = "鏄剧ず鍗曟嵁鎴愬姛锛�"; + return true; + } + catch (Exception e) + { + sReturn = e.Message; + throw (e); + } + } + } +} diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\212\225\344\272\247/ClsSb_EquipWorkBeforeCheckBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\212\225\344\272\247/ClsSb_EquipWorkBeforeCheckBill.cs" new file mode 100644 index 0000000..02e49f3 --- /dev/null +++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\346\212\225\344\272\247/ClsSb_EquipWorkBeforeCheckBill.cs" @@ -0,0 +1,233 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; + +namespace DAL.鐢熶骇绠$悊.璁惧绠$悊.璁惧鎶曚骇 +{ + public class ClsSb_EquipWorkBeforeCheckBill : DBUtility.ClsXt_BaseBill + { + public Model.ClsSb_EquipWorkBeforeCheckBillMain omodel = new Model.ClsSb_EquipWorkBeforeCheckBillMain(); + public List<Model.ClsSb_EquipWorkBeforeCheckBillSub> DetailColl = new List<Model.ClsSb_EquipWorkBeforeCheckBillSub>(); + + public ClsSb_EquipWorkBeforeCheckBill() + { + base.MvarItemKeySub = "Sb_EquipWorkBeforeCheckBillSub"; + base.MvarItemKeySub2 = ""; + base.MvarItemKeySub3 = ""; + base.MvarItemKeySub4 = ""; + base.MvarItemKey = "Sb_EquipWorkBeforeCheckBillMain"; + base.MvarReportTitle = "璁惧鎶曚骇妫�楠岄獙鏀跺崟"; + base.BillType = "3915"; + base.HBillSubType = "3915"; + } + + //淇敼鍗曟嵁 + public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) + { + try + { + // + oCn.BeginTran(); + //鏇存柊涓昏〃 + oCn.RunProc("UpDate Sb_EquipWorkBeforeCheckBillMain set " + + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== + ",HDate='" + omodel.HDate + "'" + + ",HYear='" + omodel.HYear.ToString() + "'" + + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + + ",HBillStatus=" + omodel.HBillStatus.ToString() + + ",HRemark='" + omodel.HRemark + "'" + + ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + + ",HUpDateDate=getdate()" + + //======================================== + ",HSupID=" + omodel.HSupID.ToString() + + ",HEquipID=" + omodel.HEquipID.ToString() + + ",HFirstCheckEmp=" + omodel.HFirstCheckEmp.ToString() + + ",HCheckerResult ='" + omodel.HCheckerResult.ToString() + "'" + + " where HInterID=" + lngBillKey.ToString()); + //鍒犻櫎鍏宠仈 + DeleteRelation(ref sReturn, lngBillKey); + //鍒犻櫎瀛愯〃 + DeleteBillSub(lngBillKey); + //鎻掑叆瀛愯〃 + omodel.HInterID = lngBillKey; + foreach (Model.ClsSb_EquipWorkBeforeCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipWorkBeforeCheckBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HItemSubID,HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult,HProcCheckEmp,HProcCheckTime" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + 0 + "," + oSub.HQCCheckClassID + "," + oSub.HQCCheckItemID + ",'" + oSub.HQCStd + "','" + oSub.HQCRelValue + "','" + oSub.HResult + "'," + oSub.HProcCheckEmp + + ",'" + oSub.HProcCheckTime + "'" + ") "); + } + 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); + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� + if (IsExistBillNo(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HBillNo, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew, omodel.HInterID)) + { + omodel.HBillNo = DBUtility.ClsPub.CreateBillCode(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true); + } + if (IsExistMainID(ref DBUtility.ClsPub.sExeReturnInfo, omodel.HInterID, Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew)) + { + omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); + } + // + oCn.BeginTran(); + //HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + // ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + // ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HSupID,HEquipID,HFirstCheckEmp,HCheckerResult + //涓昏〃 + oCn.RunProc("Insert Into Sb_EquipWorkBeforeCheckBillMain " + + "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + + ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HSupID,HFirstCheckEmp" + + ",HBillStatus,HBackRemark,HMaker,HMakeDate,HMainSourceBillType" + + ",HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HPrintQty" + + ",HCheckItemNowID,HCheckItemNextID,HCheckFlowID,HBacker,HChecker,HUpDater,HCloseMan,HCloseType,HDeleteMan,HEquipID,HCheckerResult" + + ") " + + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + + ", " + omodel.HSupID.ToString() + "," + omodel.HFirstCheckEmp.ToString() + "," + 1 + ",'" + omodel.HBackRemark + + "','" + omodel.HMaker + "','" + omodel.HMakeDate + "','" + omodel.HMainSourceBillType + "'," + omodel.HMainSourceInterID + + "," + omodel.HMainSourceEntryID + ",'" + omodel.HMainSourceBillNo + "'," + omodel.HPrintQty + ",0,0,0" + ",'" + omodel.HBacker + + "','" + omodel.HChecker + "','" + omodel.HUpDater + "','" + omodel.HCloseMan + "'," + 0 + ",'" + omodel.HDeleteMan + + "'," + omodel.HEquipID + ",'" + omodel.HCheckerResult + "'" + ") "); + //鎻掑叆瀛愯〃 + foreach (Model.ClsSb_EquipWorkBeforeCheckBillSub oSub in DetailColl) + { + oCn.RunProc("Insert into Sb_EquipWorkBeforeCheckBillSub " + + " (HInterID,HEntryID,HCloseMan,HCloseType,HRemark,HBillNo_bak" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + ",HItemSubID,HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult,HProcCheckEmp,HProcCheckTime" + + ") values(" + + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "','" + omodel.HBillNo + "'" + + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + + "," + 0 + "," + oSub.HQCCheckClassID + "," + oSub.HQCCheckItemID + ",'" + oSub.HQCStd + "','" + oSub.HQCRelValue + "','" + oSub.HResult + "'," + oSub.HProcCheckEmp + + ",'" + oSub.HProcCheckTime + "'" + ") "); + } + sReturn = "鏂板鍗曟嵁鎴愬姛锛�"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + + //鏄剧ず鍗曟嵁 + public override bool ShowBill(Int64 lngBillKey, ref string sReturn) + { + try + { + //鏌ヨ涓昏〃 + DataSet Ds; + Ds = oCn.RunProcReturn("Select * from Sb_EquipWorkBeforeCheckBillMain Where HInterID=" + lngBillKey.ToString(), "Sb_EquipWorkBeforeCheckBillMain"); + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillNo"]); + omodel.HBillStatus = 1; + 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 = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); + omodel.HBackDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackDate"]); + omodel.HBacker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBacker"]); + omodel.HCheckDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckDate"]); + omodel.HChecker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HChecker"]); + omodel.HMaker = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMaker"]); + omodel.HMakeDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMakeDate"]); + omodel.HUpDateDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDateDate"]); + omodel.HUpDater = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HUpDater"]); + omodel.HCloseDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseDate"]); + omodel.HCloseMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCloseMan"]); + omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); + omodel.HDeleteDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteDate"]); + omodel.HDeleteMan = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HDeleteMan"]); + omodel.HMainSourceBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillType"]); + omodel.HMainSourceInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceInterID"]); + omodel.HMainSourceEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMainSourceEntryID"]); + omodel.HMainSourceBillNo = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HMainSourceBillNo"]); + omodel.HPrintQty = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPrintQty"]); + //======================================================== + omodel.HSupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSupID"]); + omodel.HFirstCheckEmp = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HFirstCheckEmp"]); + omodel.HEquipID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEquipID"]); + omodel.HCheckerResult = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCheckerResult"]); + + //寰幆 + DataSet DsSub; + DsSub = oCn.RunProcReturn("Select * from Sb_EquipWorkBeforeCheckBillSub Where HInterID=" + lngBillKey.ToString(), "Sb_EquipWorkBeforeCheckBillSub"); + DetailColl.Clear();//娓呯┖ + for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) + { + Model.ClsSb_EquipWorkBeforeCheckBillSub oSub = new Model.ClsSb_EquipWorkBeforeCheckBillSub(); + // 鍥哄畾璧嬪��=============================================== + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillType"]); + oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HSourceBillNo"]); + 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 = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HRemark"]); + oSub.HBillNo_bak = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HBillNo_bak"]); + //=================================================== + oSub.HQCCheckClassID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HQCCheckClassID"]); + oSub.HQCCheckItemID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HQCCheckItemID"]); + oSub.HQCStd = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HQCStd"]); + oSub.HQCRelValue = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HQCRelValue"]); + oSub.HResult = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HResult"]); + oSub.HProcCheckEmp = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HProcCheckEmp"]); + oSub.HProcCheckTime = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HProcCheckTime"]); + + DetailColl.Add(oSub); + } + sReturn = "鏄剧ず鍗曟嵁鎴愬姛锛�"; + return true; + } + catch (Exception e) + { + sReturn = e.Message; + throw (e); + } + } + } +} diff --git "a/DAL/\347\263\273\347\273\237\345\205\254\347\224\250/ClsXt_BillSubType_Ctl.cs" "b/DAL/\347\263\273\347\273\237\345\205\254\347\224\250/ClsXt_BillSubType_Ctl.cs" new file mode 100644 index 0000000..d5ee902 --- /dev/null +++ "b/DAL/\347\263\273\347\273\237\345\205\254\347\224\250/ClsXt_BillSubType_Ctl.cs" @@ -0,0 +1,104 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; +using System.Data; + +namespace DAL +{ + public class ClsXt_BillSubType_Ctl : DBUtility.ClsGy_Base_Ctl + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + //鍘熶唬鐮� 鐢ㄤ簬 鏇挎崲瀛愰」鐩� + public string HOldNumber; + public Model.ClsXt_BillSubType_Model oModel = new Model.ClsXt_BillSubType_Model(); + //鏂板 + public override bool AddNew() + { + + try + { + oCn.BeginTran(); + oCn.RunProc($@"insert into Xt_BillSubType(HNumber ,HName ,HShortNumber ,HParentID ,HLevel + ,HEndFlag ,HStopflag ,HRemark ,HHelpCode ,HUseFlag + ,HMakeTime ,HMakeEmp ,HCheckEmp ,HCheckTime ,HModifyEmp + ,HModifyTime ,HStopEmp ,HStopTime ,HUSEORGID,HCREATEORGID ,HBillType ,HIsDefault ,HBillTypeID) + values('{oModel.HNumber}','{oModel.HName}','{oModel.HShortNumber}',{oModel.HParentID}, + {oModel.HLevel},{(oModel.HEndFlag == true ? 1 : 0)},{(oModel.HStopflag == true ? 1 : 0)}, + '{oModel.HRemark}','{oModel.HHelpCode}','{oModel.HUseFlag}',GETDATE(),'{oModel.HMakeEmp}','','','' + ,'','','',{oModel.HUSEORGID},{oModel.HCREATEORGID},{oModel.HBillType},{0},'')" + , ref DBUtility.ClsPub.sExeReturnInfo); + //淇敼涓婄骇涓洪潪鏈骇浠g爜 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + oCn.Commit(); + return true; + } + catch (Exception e) + { + oCn.RollBack(); + throw (e); + } + } + + //淇敼 + public override bool ModifyByID(Int64 sItemID) + { + try + { + oCn.BeginTran(); + oCn.RunProc("Update " + MvarItemKey + " set " + + " HNumber='" + oModel.HNumber + "'" + + ",HName='" + oModel.HName + "'" + + ",HBillType='" + oModel.HBillType + "'" + + ",HShortNumber='" + oModel.HShortNumber + "'" + + ",HParentID=" + oModel.HParentID.ToString() + + ",HLevel=" + oModel.HLevel.ToString() + + ",HEndflag=" + Convert.ToString(oModel.HEndFlag ? 1 : 0) + + ",HStopflag=" + Convert.ToString(oModel.HStopflag ? 1 : 0) + + ",HRemark= '" + oModel.HRemark + "'" + + ",HHelpCode='" + oModel.HHelpCode + "'" + + ",HModifyEmp ='" + oModel.HMakeEmp + "'" + + ",HModifyTime =getdate()" + + " Where HItemID=" + sItemID, ref DBUtility.ClsPub.sExeReturnInfo); + //淇敼瀛愰」鐩唬鐮� + //oCn.RunProc("exec h_p_Gy_UpdateNumber '" + MvarItemKey + "','" + oModel.HNumber + ".','" + this.HOldNumber + ".'", ref DBUtility.ClsPub.sExeReturnInfo); + //灏嗕笂绾� 涓洪潪鏈骇 + oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); + // + oCn.Commit(); + return true; + } + catch (Exception e) + { + oCn.RollBack(); + throw (e); + } + } + //鏍规嵁浠g爜鍒ゆ柇淇℃伅 + public override bool HavParentCode(string sCode, Int64 sItemID) + { + DataSet DS; + try + { + DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where HStopflag=0 and HNumber='" + sCode + "' and HItemID<>" + sItemID, MvarItemKey, ref Pub_Class.ClsPub.sExeReturnInfo); + if (DS.Tables[0].Rows.Count == 0) + return false; + else + { + oModel.HItemID = Convert.ToInt64(DS.Tables[0].Rows[0]["HItemID"]); + return true; + } + } + catch (Exception e) + { + throw (e); + } + } + //鏋勯�犲嚱鏁� + public ClsXt_BillSubType_Ctl() + { + MvarItemKey = "Xt_BillSubType"; + MvarReportTitle = "鍗曟嵁瀛愮被鍨�"; + oModel = new Model.ClsXt_BillSubType_Model(); + } + } +} diff --git "a/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" "b/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" index 826bb5e..641fcc3 100644 --- "a/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" +++ "b/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" @@ -339,7 +339,7 @@ ",HSupID,HQty,HPrice,HMoney,HBadCount,HCenterID,HProcNo,HOrderProcNO,HSourceNameList" + ",HMainSourceInterID,HMainSourceBillNo,HMainSourceBillType,HLastSubProc" + ",HEmpID2,HEmpID3,HEmpID4,HEmpID5,HDSQty,HChongQty,HPriceRate,HWorkTimes,HQCCheckID" + - ",HPersonNums,HMachineNums" + + ",HPersonNums,HMachineNums,HEmpNum" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "'," + omodel.HBillStatus.ToString() + ",getdate(),'" + DBUtility.ClsPub.CurUserName + "',getdate(),'" + omodel.HMouldNum + "'" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HSourceName + "'," + omodel.HPieceQty.ToString() + "," + omodel.HWasterQty.ToString() + "," + omodel.HPlanPieceQty.ToString() + "," + omodel.HBadPNL.ToString() + @@ -349,7 +349,7 @@ "," + omodel.HSupID.ToString() + "," + omodel.HQty.ToString() + "," + omodel.HPrice.ToString() + "," + omodel.HMoney.ToString() + "," + omodel.HBadCount.ToString() + "," + omodel.HCenterID.ToString() + "," + omodel.HProcNo.ToString() + ",'" + omodel.HOrderProcNO + "'" + ",'" + omodel.HSourceNameList + "'" + "," + omodel.HMainSourceInterID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'," + Convert.ToString(omodel.HLastSubProc ? 1 : 0) + "," + omodel.HEmpID2.ToString() + "," + omodel.HEmpID3.ToString() + "," + omodel.HEmpID4.ToString() + "," + omodel.HEmpID5.ToString() + "," + omodel.HDSQty.ToString() + "," + omodel.HChongQty.ToString() + "," + omodel.HPriceRate.ToString() + "," + omodel.HWorkTimes.ToString() + "," + omodel.HQCCheckID.ToString() + - "," + omodel.HPersonNums.ToString() + "," + omodel.HMachineNums.ToString() + + "," + omodel.HPersonNums.ToString() + "," + omodel.HMachineNums.ToString() + ",'" + omodel.HEmpNum.ToString() + "'" + ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSc_StationOutBillSub oSub in DetailColl) diff --git a/DBUtility/obj/Release/DBUtility.csproj.ResolveComReference.cache b/DBUtility/obj/Release/DBUtility.csproj.ResolveComReference.cache index 0869c19..df6ace6 100644 --- a/DBUtility/obj/Release/DBUtility.csproj.ResolveComReference.cache +++ b/DBUtility/obj/Release/DBUtility.csproj.ResolveComReference.cache Binary files differ diff --git a/LMES/bin/x86/Debug.zip b/LMES/bin/x86/Debug.zip deleted file mode 100644 index 21db9f0..0000000 --- a/LMES/bin/x86/Debug.zip +++ /dev/null Binary files differ diff --git a/LMES/obj/x86/Release/LMES.csproj.AssemblyReference.cache b/LMES/obj/x86/Release/LMES.csproj.AssemblyReference.cache index f5e894a..0af5415 100644 --- a/LMES/obj/x86/Release/LMES.csproj.AssemblyReference.cache +++ b/LMES/obj/x86/Release/LMES.csproj.AssemblyReference.cache Binary files differ diff --git a/Model/Model.csproj b/Model/Model.csproj index 175151e..959d818 100644 --- a/Model/Model.csproj +++ b/Model/Model.csproj @@ -330,6 +330,8 @@ <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_CareFor_Model.cs" /> <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_CheckToolsType_Model.cs" /> <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_CustLocation_Model.cs" /> + <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_EquipStatus_Model.cs" /> + <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_MouldStatus_Model.cs" /> <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_Operator_Model.cs" /> <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_RateType_Model.cs" /> <Compile Include="鍩虹璧勬枡\鍩虹璧勬枡\ClsGy_Staff_Model.cs" /> @@ -503,6 +505,7 @@ <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsGy_MouldRoutingBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsGy_MouldRoutingBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSb_MouldRepairWorkBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSb_MouldRepairWorkBillSub_Item.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSb_MouldRepairWorkBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldBorrowInBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldBorrowInBillSub.cs" /> @@ -522,6 +525,8 @@ <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckPlanBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckBillSub_Item.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckPlanBillSub_Item.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckPlanBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckRuleBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckRuleBillSub.cs" /> @@ -531,6 +536,8 @@ <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldEntrustOutPlanBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldLifeChangeBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldLifeChangeBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldLifeUseBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldLifeUseBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainPlanBillMain.cs" /> @@ -538,6 +545,7 @@ <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainPlanBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainRuleBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainRuleBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldDotCheckRuleBillSub_Item.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMaintainRuleBillSub_Item.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMoveStockStepOutBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldMoveStockStepOutBillMain.cs" /> @@ -565,10 +573,16 @@ <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldReportBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldScrapRequestBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldScrapRequestBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldStatusChangeBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldStatusChangeBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldStockBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\妯″叿绠$悊\ClsSc_MouldStockBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipConkBookBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipConkBookBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipWorkBeforeCheckBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipWorkBeforeCheckBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStockInCheckBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStockInCheckBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipDotCheckBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipDotCheckBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipDotCheckPlanBillMain.cs" /> @@ -592,6 +606,12 @@ <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipSparepartsBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipSparepartsChangeBillMain.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipSparepartsChangeBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStatusChangeBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStatusChangeBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStockInCheckBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipStockInCheckBillSub.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipWorkBeforeCheckBillMain.cs" /> + <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSb_EquipWorkBeforeCheckBillSub.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSc_EquipMaintainBillSub_Item.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSc_EquipMaintainPlanBillSub_Item.cs" /> <Compile Include="鐢熶骇绠$悊\璁惧绠$悊\ClsSc_ICMOBillMain.cs" /> @@ -599,6 +619,7 @@ <Compile Include="绯荤粺鍏敤\ClsOA_EmpMessageBillModSub.cs" /> <Compile Include="绯荤粺鍏敤\ClsOA_FieldToChangeMain.cs" /> <Compile Include="绯荤粺鍏敤\ClsOA_FieldToChangeSub.cs" /> + <Compile Include="绯荤粺鍏敤\ClsXt_BillSubType_Model.cs" /> <Compile Include="绯荤粺鍏敤\ClsXt_BillType_Model.cs" /> <Compile Include="绯荤粺鍏敤\ClsXt_ModuleParameterMain.cs" /> <Compile Include="绯荤粺鍏敤\ClsXt_ModuleParameterSub.cs" /> diff --git "a/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_EquipStatus_Model.cs" "b/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_EquipStatus_Model.cs" new file mode 100644 index 0000000..e9ef4fd --- /dev/null +++ "b/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_EquipStatus_Model.cs" @@ -0,0 +1,20 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsGy_EquipStatus_Model : DBUtility.ClsGy_Base_Model + { + public DateTime HMakeTime { get; set; } + public DateTime HCheckTime { get; set; } + public DateTime HModifyTime { get; set; } + public DateTime HStopTime { get; set; } + public string HMakeEmp { get; set; } + public string HCheckEmp { get; set; } + public string HModifyEmp { get; set; } + public string HStopEmp { get; set; } + public int HUSEORGID { get; set; } + public int HCREATEORGID { get; set; } + } +} diff --git "a/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_MouldStatus_Model.cs" "b/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_MouldStatus_Model.cs" new file mode 100644 index 0000000..0dc2b61 --- /dev/null +++ "b/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_MouldStatus_Model.cs" @@ -0,0 +1,20 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsGy_MouldStatus_Model : DBUtility.ClsGy_Base_Model + { + public DateTime HMakeTime { get; set; } + public DateTime HCheckTime { get; set; } + public DateTime HModifyTime { get; set; } + public DateTime HStopTime { get; set; } + public string HMakeEmp { get; set; } + public string HCheckEmp { get; set; } + public string HModifyEmp { get; set; } + public string HStopEmp { get; set; } + public int HUSEORGID { get; set; } + public int HCREATEORGID { get; set; } + } +} diff --git "a/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_StockPlace_Model.cs" "b/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_StockPlace_Model.cs" index 056b351..22cb83e 100644 --- "a/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_StockPlace_Model.cs" +++ "b/Model/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_StockPlace_Model.cs" @@ -13,5 +13,7 @@ public string HWhNumber; public string HWhName; public string HBarCode; + public Int64 HCREATEORGID; + public Int64 HUSEORGID; } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/ClsSc_PPBomBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/ClsSc_PPBomBillSub.cs" index 5a06100..124a321 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/ClsSc_PPBomBillSub.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/ClsSc_PPBomBillSub.cs" @@ -25,6 +25,7 @@ public DateTime HSendDate; //鍙戞枡鏃ユ湡 public Int64 HBomInterID; //BOM public Int64 HProcID; //宸ュ簭鍐呯爜 + public string HProcName; //宸ュ簭 public Int64 HKeyMaterID_Line; //鍏抽敭浠剁粦瀹氭爣璁� public Int64 HKeyMaterID_InStock; //鍏抽敭浠跺叆搴撴爣璁� public Int64 HKeyMaterID_Ready; //鍏抽敭浠堕綈濂楁爣璁� diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBillSub_Item.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBillSub_Item.cs" new file mode 100644 index 0000000..1945ae5 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSb_MouldRepairWorkBillSub_Item.cs" @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_MouldRepairWorkBillSub_Item : DBUtility.ClsXt_BaseBillSub + { + public long HMaterID;// int --配件ID + public long HUnitID;// int --计量单位 + public double HQty;// dec(18,8) --用量 + public double HQtyMust;// dec(18,8) --标准用量(暂时隐藏) + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillMain.cs" index 8521b88..36bbb4f 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillMain.cs" @@ -13,5 +13,6 @@ public string HEndDate;// datetime --点检结束日期 public string HExplanation;// varchar(500) --摘要 public string HInnerBillNo;// varchar(50) --内部单据号 + public string HMouldDotCheckRuleID;// 器具点检规程ID } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillSub_Item.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillSub_Item.cs" new file mode 100644 index 0000000..4751711 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckBillSub_Item.cs" @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldDotCheckBillSub_Item : DBUtility.ClsXt_BaseBillSub + { + //============ + + + public Int64 HMaterID;// int --配件ID + public Int64 HUnitID;// int --计量单位 + public double HQty;// dec(18,8) --用量 + public double HQtyMust;// dec(18,8) --标准用量(暂时隐藏) + + + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillMain.cs" index b30cbb6..bc9ad7b 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillMain.cs" @@ -15,6 +15,7 @@ public long HCheckCycle;// int --点检周期 public string HExplanation;// varchar(500) --摘要 public string HInnerBillNo;// varchar(50) --内部单据号 + public int HMouldDotCheckRuleID;//器具点检规程id } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub.cs" index acf836b..27ac977 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub.cs" @@ -10,6 +10,7 @@ public string HDotCheckItem;// varchar(100) --点检项目 + public int HDotCheckItemID;// varchar(100) --点检项目id public string HDotCheckPart;// varchar(100) --点检部位 public string HClaim;// varchar(100) --具体要求 public long HManagerID;// int --负责人id(职员表) diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub_Item.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub_Item.cs" new file mode 100644 index 0000000..0355573 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckPlanBillSub_Item.cs" @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldDotCheckPlanBillSub_Item : DBUtility.ClsXt_BaseBillSub + { + //============ + + + public Int64 HMaterID;// int --配件ID + public Int64 HUnitID;// int --计量单位 + public double HQty;// dec(18,8) --用量 + public double HQtyMust;// dec(18,8) --标准用量(暂时隐藏) + + + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBillSub_Item.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBillSub_Item.cs" new file mode 100644 index 0000000..957d13e --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBillSub_Item.cs" @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldDotCheckRuleBillSub_Item : DBUtility.ClsXt_BaseBillSub + { + //============ + + public Int64 HMaterID;// int --配件ID + public Int64 HUnitID;// int --计量单位 + public double HQty;// dec(18,8) --用量 + public double HQtyMust;// dec(18,8) --标准用量(暂时隐藏) + + + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBillMain.cs" new file mode 100644 index 0000000..74c8488 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBillMain.cs" @@ -0,0 +1,16 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldLifeUseBillMain : DBUtility.ClsXt_BaseBillMain + { + public Int64 HPrintQty; //鎵撳嵃娆℃暟 + public Int64 HMangerID; //璐熻矗浜� + public Int64 HDeptID; //閮ㄩ棬 + public string HReason; //璋冩暣鍘熷洜 + public string HExplanation; //鎽樿 + public string HInnerBillNo; //鍐呴儴鍗曟嵁鍙� + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBillSub.cs" new file mode 100644 index 0000000..cc41cb7 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldLifeUseBillSub.cs" @@ -0,0 +1,18 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldLifeUseBillSub : DBUtility.ClsXt_BaseBillSub + { + public string HBillNo_bak; //鍗曟嵁鍙凤紙澶囦唤锛屼互鍏嶅唴鐮佷涪澶憋紝鎵句笉鍒板搴斾富琛級 + public Int64 HItemSubID; //鑷鍒�(GUID) + public Int64 HMaterID; //鍣ㄥ叿 + public Int64 HUnitID; //鏂板櫒鍏� + public double HDesignLife; // --璁捐瀵垮懡 + public double HLeaveLife; //--鍘熷墿浣欏鍛� + public double HUseLife; // --鏈鑰楃敤 + public double HNewLeaveLife;// --鏈鍓╀綑瀵垮懡 + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" index f26ed86..3bcc61c 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldMaintainPlanBillMain.cs" @@ -14,6 +14,6 @@ public string HEndDate;// datetime --计划结束日期 public string HExplanation;// varchar(500) --摘要 public string HInnerBillNo;// varchar(50) --内部单据号 - public int HEquipDotCheckRuleInterID; //器具保养规程id + public int HMouldMaintainRuleID; //器具保养规程id } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" index 8ab34b9..c5ce510 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldRepairCheckBillMain.cs" @@ -15,6 +15,6 @@ public long HDeptID;// int --验收部门 public string HExplanation;// varchar(500) --摘要 public string HInnerBillNo;// varchar(50) --内部单据号 - + public int HMouldRepairWorkID;//维修记录id } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBillMain.cs" new file mode 100644 index 0000000..3e42ec1 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBillMain.cs" @@ -0,0 +1,16 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldStatusChangeBillMain : DBUtility.ClsXt_BaseBillMain + { + public Int64 HPrintQty; //鎵撳嵃娆℃暟 + public Int64 HEmpID; //鐢宠浜� + public Int64 HDeptID; //閮ㄩ棬 + public string HReason; //鍙樻洿鍘熷洜 + public string HExplanation; //鎽樿 + public string HInnerBillNo; //鍐呴儴鍗曟嵁鍙� + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBillSub.cs" new file mode 100644 index 0000000..9dc5178 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldStatusChangeBillSub.cs" @@ -0,0 +1,18 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSc_MouldStatusChangeBillSub : DBUtility.ClsXt_BaseBillSub + { + public string HBillNo_bak; //鍗曟嵁鍙凤紙澶囦唤锛屼互鍏嶅唴鐮佷涪澶憋紝鎵句笉鍒板搴斾富琛級 + public Int64 HItemSubID; //鑷鍒�(GUID) + public Int64 HMaterID; + public Int64 HUnitID; + public decimal HQtyMust; + public decimal HQty; + public Int64 HStatusID_Old; + public Int64 HStatusID_New; + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBillMain.cs" index a93bdf9..ced5ce2 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipDotCheckPlanBillMain.cs" @@ -13,6 +13,7 @@ public Int64 HCheckCycle; public string HExplanation; public string HInnerBillNo; + public int HMouldDotCheckRuleID;//设备点检规程id } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBillMain.cs" index b338760..c380854 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipMaintainPlanBillMain.cs" @@ -13,6 +13,7 @@ public Int64 HCheckCycle; public string HExplanation; public string HInnerBillNo; + public int HMouldMaintainRuleID; //保养规程id } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipRepairCheckBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipRepairCheckBillMain.cs" index c804663..b67a346 100644 --- "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipRepairCheckBillMain.cs" +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipRepairCheckBillMain.cs" @@ -14,6 +14,7 @@ public string HCheckResult; public string HExplanation; public string HInnerBillNo; + public int HMouldRepairWorkID; } } diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBillMain.cs" new file mode 100644 index 0000000..54966e8 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBillMain.cs" @@ -0,0 +1,16 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_EquipStatusChangeBillMain : DBUtility.ClsXt_BaseBillMain + { + public Int64 HPrintQty; //鎵撳嵃娆℃暟 + public Int64 HEmpID; //鐢宠浜� + public Int64 HDeptID; //閮ㄩ棬 + public string HReason; //鍙樻洿鍘熷洜 + public string HExplanation; //鎽樿 + public string HInnerBillNo; //鍐呴儴鍗曟嵁鍙� + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBillSub.cs" new file mode 100644 index 0000000..ea61e07 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStatusChangeBillSub.cs" @@ -0,0 +1,18 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_EquipStatusChangeBillSub : DBUtility.ClsXt_BaseBillSub + { + public string HBillNo_bak; //鍗曟嵁鍙凤紙澶囦唤锛屼互鍏嶅唴鐮佷涪澶憋紝鎵句笉鍒板搴斾富琛級 + public Int64 HItemSubID; //鑷鍒�(GUID) + public Int64 HEquipID; + public Int64 HUnitID; + public decimal HQtyMust; + public decimal HQty; + public Int64 HStatusID_Old; + public Int64 HStatusID_New; + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBillMain.cs" new file mode 100644 index 0000000..86246dd --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBillMain.cs" @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_EquipStockInCheckBillMain : DBUtility.ClsXt_BaseBillMain + { + public Int64 HPrintQty; //打印次数 + public Int64 HSupID; //检测商 + public Int64 HEquipID; //设备 + public Int64 HFirstCheckEmp; //检验员 + public string HCheckerResult; //判定结论 + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBillSub.cs" new file mode 100644 index 0000000..0db4b74 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipStockInCheckBillSub.cs" @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_EquipStockInCheckBillSub : DBUtility.ClsXt_BaseBillSub + { + public string HBillNo_bak; //单据号(备份,以免内码丢失,找不到对应主表) + public Int64 HItemSubID; //自增列(GUID) + public Int64 HQCCheckClassID; + public Int64 HQCCheckItemID; + public Int64 HProcCheckEmp; + public string HQCStd; + public string HQCRelValue; + public string HResult; + public DateTime HProcCheckTime; + + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBillMain.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBillMain.cs" new file mode 100644 index 0000000..6d90580 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBillMain.cs" @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_EquipWorkBeforeCheckBillMain : DBUtility.ClsXt_BaseBillMain + { + public Int64 HPrintQty; //打印次数 + public Int64 HSupID; //检测商 + public Int64 HEquipID; //设备 + public Int64 HFirstCheckEmp; //检验员 + public string HCheckerResult; //判定结论 + } +} diff --git "a/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBillSub.cs" "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBillSub.cs" new file mode 100644 index 0000000..f1c6f10 --- /dev/null +++ "b/Model/\347\224\237\344\272\247\347\256\241\347\220\206/\350\256\276\345\244\207\347\256\241\347\220\206/ClsSb_EquipWorkBeforeCheckBillSub.cs" @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Model +{ + public class ClsSb_EquipWorkBeforeCheckBillSub : DBUtility.ClsXt_BaseBillSub + { + public string HBillNo_bak; //单据号(备份,以免内码丢失,找不到对应主表) + public Int64 HItemSubID; //自增列(GUID) + public Int64 HQCCheckClassID; + public Int64 HQCCheckItemID; + public string HQCStd; + public string HQCRelValue; + public string HResult; + public Int64 HProcCheckEmp; + public DateTime HProcCheckTime; + + } +} diff --git "a/Model/\347\263\273\347\273\237\345\205\254\347\224\250/ClsXt_BillSubType_Model.cs" "b/Model/\347\263\273\347\273\237\345\205\254\347\224\250/ClsXt_BillSubType_Model.cs" new file mode 100644 index 0000000..6cfc50a --- /dev/null +++ "b/Model/\347\263\273\347\273\237\345\205\254\347\224\250/ClsXt_BillSubType_Model.cs" @@ -0,0 +1,22 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Model +{ + public class ClsXt_BillSubType_Model : DBUtility.ClsGy_Base_Model + { + public DateTime HMakeTime; //寤虹珛鏃堕棿(getdate()) + public string HMakeEmp; //鍒涘缓浜� + public string HCheckEmp; //瀹℃牳浜� + public DateTime HCheckTime; //瀹℃牳鏃堕棿 + public string HModifyEmp; //淇敼浜� + public DateTime HModifyTime; //淇敼鏃堕棿 + public string HStopEmp; //绂佺敤浜� + public DateTime HStopTime; //绂佺敤鏃堕棿 + public Int64 HUSEORGID; //浣跨敤缁勭粐锛圶t_ORGANIZATIONS锛� + public Int64 HCREATEORGID; //鍒涘缓缁勭粐锛圶t_ORGANIZATIONS锛� + public string HBillType; + } +} diff --git "a/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" "b/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" index 17f03e4..9c43109 100644 --- "a/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" +++ "b/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" @@ -63,6 +63,6 @@ public string HSourceNameList;//设备清单 public Int64 HPersonNums; //人员数 public Int64 HMachineNums; //机器数 - + public string HEmpNum; //职员代码 } } diff --git a/NETERPNoWin/obj/x86/Debug/NETERPNoWin.csproj.AssemblyReference.cache b/NETERPNoWin/obj/x86/Debug/NETERPNoWin.csproj.AssemblyReference.cache index 2fb39b4..03c21ce 100644 --- a/NETERPNoWin/obj/x86/Debug/NETERPNoWin.csproj.AssemblyReference.cache +++ b/NETERPNoWin/obj/x86/Debug/NETERPNoWin.csproj.AssemblyReference.cache Binary files differ diff --git a/PayM/obj/Release/PayM.csproj.ResolveComReference.cache b/PayM/obj/Release/PayM.csproj.ResolveComReference.cache index afa6ea1..3b94b51 100644 --- a/PayM/obj/Release/PayM.csproj.ResolveComReference.cache +++ b/PayM/obj/Release/PayM.csproj.ResolveComReference.cache Binary files differ diff --git a/PayM/obj/x86/Debug/PayM.csproj.AssemblyReference.cache b/PayM/obj/x86/Debug/PayM.csproj.AssemblyReference.cache index 259cac6..3dde64b 100644 --- a/PayM/obj/x86/Debug/PayM.csproj.AssemblyReference.cache +++ b/PayM/obj/x86/Debug/PayM.csproj.AssemblyReference.cache Binary files differ diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs index dd808fe..2c08827 100644 --- a/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs +++ b/Pub_Class/CustomerCls/ClsXt_SystemParameter.cs @@ -1247,6 +1247,11 @@ { omodel.WMS_CloudMode = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); } + //单据日期是否取界面递入日期 + if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "WMS_BillDateMode") + { + omodel.WMS_BillDateMode = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); + } //桌面条码模块 //有源单生成条码,生成条码数量可否超源单数量控制 @@ -1380,6 +1385,12 @@ if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "MES_StationEntrustOutBill_DeleteCtl") { omodel.MES_StationEntrustOutBill_DeleteCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); + } + + //工序末道入库仓库取值类型 + if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "MES_StationOutBill_InStockType") + { + omodel.MES_StationOutBill_InStockType = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); } @@ -2659,6 +2670,11 @@ { omodel.WMS_CloudMode = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); } + //单据日期是否取界面递入日期 + if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "WMS_BillDateMode") + { + omodel.WMS_BillDateMode = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); + } //桌面条码模块 //有源单生成条码,生成条码数量可否超源单数量控制 @@ -2794,6 +2810,12 @@ omodel.MES_StationEntrustOutBill_DeleteCtl = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); } + //工序末道入库仓库取值类型 + if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "MES_StationOutBill_InStockType") + { + omodel.MES_StationOutBill_InStockType = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); + } + //=======JIT diff --git a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs index a48fe1b..1332e4d 100644 --- a/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs +++ b/Pub_Class/CustomerCls/ClsXt_SystemParameterMain.cs @@ -336,6 +336,7 @@ public string WMS_UserByOrgRelation; //扫码枪用户登入时判断用户对应组织权限控制,Y为控制 public string WMS_MouldManagerCtl; //是否启用器具管理(Y,N) public string WMS_CloudMode; //是否为私有云模式 + public string WMS_BillDateMode; //单据日期是否取界面递入日期 //桌面条码模块 @@ -373,9 +374,9 @@ public string MES_StationEntrustOutBill_QtyCtl; //出站数量不能大于本道进站汇总数 public string MES_StationEntrustOutBill_DeleteCtl; //删除单据时制单人与删除人必须一致 - //生产汇报单 public string Sc_ICMOReportBill_FirstCheckOut; //必须首件检验通过才能保存单据 + public string MES_StationOutBill_InStockType; //工序末道入库仓库取值类型 //JIT diff --git a/SQLHelper/obj/x86/Release/SQLHelper.csproj.AssemblyReference.cache b/SQLHelper/obj/x86/Release/SQLHelper.csproj.AssemblyReference.cache index f5e894a..5003e46 100644 --- a/SQLHelper/obj/x86/Release/SQLHelper.csproj.AssemblyReference.cache +++ b/SQLHelper/obj/x86/Release/SQLHelper.csproj.AssemblyReference.cache Binary files differ diff --git a/WebAPI/Controllers/BLL/Xt_BillSubTypeController.cs b/WebAPI/Controllers/BLL/Xt_BillSubTypeController.cs new file mode 100644 index 0000000..4fa5ac1 --- /dev/null +++ b/WebAPI/Controllers/BLL/Xt_BillSubTypeController.cs @@ -0,0 +1,336 @@ +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers +{ + public class Xt_BillSubTypeController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region 鍗曟嵁瀛愮被鍨� 鍒楄〃 + [Route("Xt_BillSubType/List")] + [HttpGet] + public object Xt_BillSubTypeList(string sWhere, string user, string Organization) + { + try + { + List<object> columnNameList = new List<object>(); + //缂栬緫鏉冮檺 + //if (!DBUtility.ClsPub.Security_Log_second("Xt_BillSubType_Query", 1, false, user)) + //{ + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; + // objJsonResult.data = null; + // return objJsonResult; + //} + string sql1 = string.Format(@"select * from h_v_Xt_BillSubTypeList where 1='" + 1 + "'"); + + string sql = sql1 + sWhere; + ds = oCN.RunProcReturn(sql, "h_v_Xt_BillSubTypeList"); + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.list = columnNameList; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鍗曟嵁瀛愮被鍨� 缂栬緫 + [Route("Xt_BillSubType/Edit")] + [HttpPost] + public object Xt_BillSubTypeEdit([FromBody] JObject msg) + { + DataSet ds; + var _value = msg["msg"].ToString(); + string msg3 = _value.ToString(); + string[] sArray = msg3.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg1 = sArray[0].ToString(); + string msg2 = sArray[1].ToString(); + //string msg_HUSEORGID = sArray[2].ToString(); + Int64 HItemID = 0; + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + ////缂栬緫鏉冮檺 + //if (!DBUtility.ClsPub.Security_Log_second("Xt_BillSubType_Edit", 1, false, msg2)) + //{ + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒"; + // objJsonResult.data = null; + // return objJsonResult; + //} + + ListModels oListModels = new ListModels(); + + try + { + DAL.ClsXt_BillSubType_Ctl oBill = new DAL.ClsXt_BillSubType_Ctl(); + List<Model.ClsXt_BillSubType_Model> lsmain = new List<Model.ClsXt_BillSubType_Model>(); + msg1 = msg1.Replace("\\", ""); + msg1 = msg1.Replace("\n", ""); //\n + lsmain = oListModels.getObjectByJson_Xt_BillSubType(msg1); + foreach (Model.ClsXt_BillSubType_Model oItem in lsmain) + { + if (oItem.HNumber.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮佷笉鑳戒负绌猴紒"; + objJsonResult.data = 1; + return objJsonResult; + } + if (oItem.HName.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佸悕绉颁笉鑳戒负绌猴紒"; + objJsonResult.data = 1; + return objJsonResult; + } + + //鏌ヨ鏁版嵁涓槸鍚﹀瓨鍦ㄩ噸澶嶄唬鐮� + ds = oCN.RunProcReturn("select * from Xt_BillSubType where HStopflag=0 and HNumber='" + oItem.HNumber.Trim() + "'", "Xt_BillSubType"); + if (oItem.HItemID == 0) + { + if (ds.Tables[0].Rows.Count > 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + if (ds.Tables[0].Rows.Count > 0) + { + if (ds.Tables[0].Rows[0]["HItemID"].ToString() != oItem.HItemID.ToString()) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = null; + return objJsonResult; + } + } + } + + + //鏂板鏃跺垽鏂� + + if (oItem.HItemID == 0) + { + if (ds == null || ds.Tables[0].Rows.Count > 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = 1; + return objJsonResult; + } + //妫�鏌ョ埗绾ф槸鍚﹀瓨鍦� + string sParent; + sParent = DBUtility.ClsPub.GetParentCode(oItem.HNumber.Trim()); + if (sParent.Trim() == "") + { + oBill.oModel.HParentID = 0; + } + else + { + if (oBill.HavParentCode(sParent.Trim(), HItemID)) + { + oBill.oModel.HParentID = oBill.oModel.HItemID; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷笂绾т唬鐮佷笉瀛樺湪鎴栬绂佺敤锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + } + } + else//缂栬緫鏃跺垽鏂� + { + //妫�鏌ョ埗绾ф槸鍚﹀瓨鍦� + string sParent; + sParent = DBUtility.ClsPub.GetParentCode(oItem.HNumber.Trim()); + if (sParent.Trim() == "") + { + oBill.oModel.HParentID = 0; + } + else + { + if (oBill.HavParentCode(sParent.Trim(), oItem.HItemID)) + { + oBill.oModel.HParentID = oBill.oModel.HItemID; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷笂绾т唬鐮佷笉瀛樺湪鎴栬绂佺敤锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + } + } + + //寰楀埌鐭唬鐮� + string sShortNumber; + sShortNumber = DBUtility.ClsPub.GetShortNumber(oItem.HNumber.Trim()); + if (sShortNumber.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佺煭浠g爜涓虹┖锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + //oItem.HUSEORGID = Convert.ToInt32(msg_HUSEORGID); //缁勭粐id + oItem.HShortNumber = sShortNumber;//鐭唬鐮� + oItem.HEndFlag = true;//鏈骇鏍囧織 + oItem.HLevel = 1; //绛夌骇 DBUtility.ClsPub.GetLevel(oItem.HNumber.Trim()) + oBill.oModel = oItem; + } + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult; + if (oBill.oModel.HItemID == 0) + { + bResult = oBill.AddNew(); + } + else + { + bResult = oBill.ModifyByID(oBill.oModel.HItemID); + } + if (bResult) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; + //WebAPIController.Add_Log("閫佽揣鍗曚笅鎺�", UserName, "鐢熸垚閫佽揣鍗�"); + 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("Xt_BillSubType/Delete")] + [HttpGet] + public object Delete(string HItemID, string user) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + ////鍒犻櫎鏉冮檺 + //if (!DBUtility.ClsPub.Security_Log("Xt_BillSubType_Drop", 1, false, user)) + //{ + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "鏃犲垹闄ゆ潈闄�"; + // objJsonResult.data = null; + // return objJsonResult; + //} + if (string.IsNullOrWhiteSpace(HItemID)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "HItemID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + oCN.BeginTran();//寮�濮嬩簨鍔� + ds = oCN.RunProcReturn("select * from Xt_BillSubType where HItemID=" + HItemID, "Xt_BillSubType"); + if (ds == null || ds.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁鏁版嵁锛屾棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; ; + } + var HStopflag = Convert.ToBoolean(ds.Tables[0].Rows[0]["HStopflag"]); + if (HStopflag) + { + oCN.RollBack();//鍥炴粴浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏁版嵁宸茬鐢ㄦ棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; + } + + oCN.RunProc("delete from Xt_BillSubType where HItemID=" + HItemID); + oCN.Commit();//鎻愪氦浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "* 鏁版嵁鍒犻櫎鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; ; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒犻櫎澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs b/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs index 4962247..b811a22 100644 --- a/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs @@ -12,6 +12,8 @@ { public class Gy_CustomerController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -633,6 +635,167 @@ } } - // + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Customer/Gy_CustomerViewApi")] + [HttpGet] + public json Gy_CustomerViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_Customer", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏瀹㈡埛鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Customer where HNumber = '" + Number + "'", "Gy_Customer"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HERPItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HUseFlag = "宸蹭娇鐢�", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Customer where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Customer on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Customer + (HItemID,HERPItemID,HNumber,HName,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark,HUseFlag,HMakeTime,HCREATEORGID,HUSEORGID + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}','{jsonData.HUseFlag}','{jsonData.HMakeTime}',{jsonData.HCREATEORGID},{jsonData.HUSEORGID})"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Customer off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "瀹㈡埛鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/BaseSet/Gy_DepartmentController.cs b/WebAPI/Controllers/BaseSet/Gy_DepartmentController.cs index 15f0284..fc047e7 100644 --- a/WebAPI/Controllers/BaseSet/Gy_DepartmentController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_DepartmentController.cs @@ -12,6 +12,8 @@ { public class Gy_DepartmentController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -641,5 +643,167 @@ } } + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Department/Gy_DepartmentViewApi")] + [HttpGet] + public json Gy_DepartmentViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_Department", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏閮ㄩ棬鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Department where HNumber = '" + Number + "'", "Gy_Department"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HERPItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HUseFlag = "宸蹭娇鐢�", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Department where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Department on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Department + (HItemID,HERPItemID,HNumber,HName,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark,HUseFlag,HMakeTime,HCREATEORGID,HUSEORGID + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}','{jsonData.HUseFlag}','{jsonData.HMakeTime}',{jsonData.HCREATEORGID},{jsonData.HUSEORGID})"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Department off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "閮ㄩ棬鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs b/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs index 23aa552..ceb6237 100644 --- a/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs @@ -14,6 +14,8 @@ { public class Gy_EmployeeController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -951,5 +953,169 @@ } #endregion + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Employee/Gy_EmployeeViewApi")] + [HttpGet] + public json Gy_EmployeeViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_Empinfo", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鑱屽憳鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Employee where HNumber = '" + Number + "'", "Gy_Employee"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["PersonId_Id"], + HERPItemID = _saveObj["Result"]["Result"]["PersonId_Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HDeptID = 0, + HGroupID = 0, + HUseFlag = "宸蹭娇鐢�", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Employee where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Employee on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Employee + (HItemID,HERPItemID,HNumber,HName,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark,HDeptID,HGroupID,HUseFlag,HMakeTime,HCREATEORGID,HUSEORGID + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}',{jsonData.HDeptID},{jsonData.HGroupID},'{jsonData.HUseFlag}','{jsonData.HMakeTime}',{jsonData.HCREATEORGID},{jsonData.HUSEORGID})"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Employee off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鑱屽憳鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs index e23fc22..c8a9881 100644 --- a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs @@ -16,6 +16,8 @@ { public class Gy_MaterialController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -328,7 +330,6 @@ [HttpPost] public object SaveGy_MaterialListApi([FromBody] JObject msg) { - LogService.Write("鐗╂枡鍚屾鎻掍欢,post 寮�濮嬶細" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")); var _value = msg["model"].ToString(); string msg3 = _value.ToString(); string[] sArray = msg3.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); @@ -342,11 +343,9 @@ msg1 = msg1.Replace("\\", ""); msg1 = msg1.Replace("\n", ""); //\n lsmain = oListModels.getObjectByJson_Gy_Material(msg1); - LogService.Write("鐗╂枡鍚屾鎻掍欢,鐗╂枡json鍙嶅簭鍒楀寲缁撴潫 寮�濮嬶細" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")); oBill.oModel = lsmain[0]; //淇濆瓨 bool bResult = oBill.AddNewApi(); - LogService.Write("鐗╂枡鍚屾鎻掍欢,淇濆瓨鏂规硶鎵ц瀹屾垚 寮�濮嬶細" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")); if (bResult) { objJsonResult.code = "1"; @@ -366,6 +365,7 @@ } catch (Exception e) { + LogService.Write("鐗╂枡鍚屾鎻掍欢,淇濆瓨鏂规硶鎵ц瀹屾垚寮傚父锛�" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")+ e.Message.ToString()); objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "淇濆瓨澶辫触锛�" + e.ToString(); @@ -1139,6 +1139,200 @@ } + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Material/Gy_MaterialViewApi")] + [HttpGet] + public json Gy_MaterialViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_MATERIAL", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鐗╂枡鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Material where HNumber = '" + Number + "'", "Gy_Material"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HERPItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][1]["Value"], + HModel = _saveObj["Result"]["Result"]["Specification"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1 , + HRemark = "CLD-ERP瀵煎叆", + HMaterClsID = _saveObj["Result"]["Result"]["MaterialBase"][0]["ErpClsID"], + HUnitID = _saveObj["Result"]["Result"]["MaterialBase"][0]["BaseUnitId_Id"], + HUnitGroupID = 0, + HLength = _saveObj["Result"]["Result"]["MaterialBase"][0]["LENGTH"], + HWidth = _saveObj["Result"]["Result"]["MaterialBase"][0]["WIDTH"], + HHeight = _saveObj["Result"]["Result"]["MaterialBase"][0]["HEIGHT"], + HJQty = _saveObj["Result"]["Result"]["MaterialBase"][0]["NETWEIGHT"], + HMQty = _saveObj["Result"]["Result"]["MaterialBase"][0]["GROSSWEIGHT"], + HOldMaterNumber = _saveObj["Result"]["Result"]["OldNumber"], + HWHID = 0, + HSPID = _saveObj["Result"]["Result"]["MaterialStock"][0]["StockPlaceId_Id"], + HPlanMode = _saveObj["Result"]["Result"]["MaterialPlan"][0]["PlanMode"], + HUseFlag = "鏈楠�", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HMinPickQty = 0, + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + HBatchManager = _saveObj["Result"]["Result"]["MaterialStock"][0]["IsBatchManage"].ToString() == "false" ? 0 : 1, + HCHECKINCOMING = _saveObj["Result"]["Result"]["MaterialQM"][0]["CheckIncoming"].ToString() == "false" ? 0 : 1, + HAuxPropFlag = _saveObj["Result"]["Result"]["MaterialAuxPty"][0]["IsEnable1"].ToString() == "false" ? 0 : 1, + HISKFPERIOD = _saveObj["Result"]["Result"]["MaterialStock"][0]["IsKFPeriod"].ToString() == "false" ? 0 : 1, + HAuxUnitID = _saveObj["Result"]["Result"]["MaterialStock"][0]["AuxUnitID_Id"], + HSNUnitID = _saveObj["Result"]["Result"]["MaterialStock"][0]["SNUnit_Id"], + HBASEUNITID = _saveObj["Result"]["Result"]["MaterialBase"][0]["BaseUnitId_Id"], + HSALEUNITID = _saveObj["Result"]["Result"]["MaterialSale"][0]["SaleUnitId_Id"], + HSALEPRICEUNITID = _saveObj["Result"]["Result"]["MaterialSale"][0]["SalePriceUnitId_Id"], + HPERUNITSTANDHOUR = _saveObj["Result"]["Result"]["MaterialProduce"][0]["PerUnitStandHour"], + HSTDLABORPREPARETIME = _saveObj["Result"]["Result"]["MaterialProduce"][0]["StdLaborPrePareTime"], + HSTDMACHINEPREPARETIME = _saveObj["Result"]["Result"]["MaterialProduce"][0]["StdMachinePrepareTime"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Material where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Material on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Material + (HItemID,HERPItemID,HNumber,HName,HModel,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark,HMaterClsID,HUnitID,HUnitGroupID + ,HLength,HWidth,HHeight,HJQty,HMQty,HOldMaterNumber + ,HWHID,HSPID,HPlanMode,HUseFlag,HMakeTime,HMinPickQty + ,HCREATEORGID,HUSEORGID,HBatchManager,HCHECKINCOMING + ,HAuxPropFlag,HISKFPERIOD + ,HAuxUnitID,HSNUnitID,HBASEUNITID,HSALEUNITID,HSALEPRICEUNITID + ,HPERUNITSTANDHOUR,HSTDLABORPREPARETIME,HSTDMACHINEPREPARETIME + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}','{jsonData.HModel}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}',{jsonData.HMaterClsID},{jsonData.HUnitID},{jsonData.HUnitGroupID},{jsonData.HLength},{jsonData.HWidth},{jsonData.HHeight},{jsonData.HJQty},{jsonData.HMQty},'{jsonData.HOldMaterNumber}',{jsonData.HWHID},{jsonData.HSPID},'{jsonData.HPlanMode}','{jsonData.HUseFlag}','{jsonData.HMakeTime}',{jsonData.HMinPickQty},{jsonData.HCREATEORGID},{jsonData.HUSEORGID},'{jsonData.HBatchManager}',{jsonData.HCHECKINCOMING},{jsonData.HAuxPropFlag},{jsonData.HISKFPERIOD},{jsonData.HAuxUnitID},{jsonData.HSNUnitID},{jsonData.HBASEUNITID},{jsonData.HSALEUNITID},{jsonData.HSALEPRICEUNITID},{jsonData.HPERUNITSTANDHOUR},'{jsonData.HSTDLABORPREPARETIME}','{jsonData.HSTDMACHINEPREPARETIME}')"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Material off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鐗╂枡鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + #region [妯″叿妗f瀹℃牳銆佸弽瀹℃牳] /// <summary> /// diff --git a/WebAPI/Controllers/BaseSet/Gy_SupplierController.cs b/WebAPI/Controllers/BaseSet/Gy_SupplierController.cs index 12cb48e..560aade 100644 --- a/WebAPI/Controllers/BaseSet/Gy_SupplierController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_SupplierController.cs @@ -12,6 +12,8 @@ { public class Gy_SupplierController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -525,6 +527,170 @@ return objJsonResult; } } - // + + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Supplier/Gy_SupplierViewApi")] + [HttpGet] + public json Gy_SupplierViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_Supplier", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏渚涘簲鍟嗗悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Supplier where HNumber = '" + Number + "'", "Gy_Supplier"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HERPItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HUseFlag = "宸蹭娇鐢�", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + HPAYCONDITION = _saveObj["Result"]["Result"]["SupplierFinance"][0]["PayCondition_Id"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Supplier where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Supplier on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Supplier + (HItemID,HERPItemID,HNumber,HName,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark,HUseFlag,HMakeTime,HCREATEORGID,HUSEORGID + ,HPAYCONDITION + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}','{jsonData.HUseFlag}','{jsonData.HMakeTime}',{jsonData.HCREATEORGID},{jsonData.HUSEORGID},{jsonData.HPAYCONDITION})"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Supplier off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "渚涘簲鍟嗗悓姝ユ垚鍔燂紒"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/BaseSet/Gy_UnitController.cs b/WebAPI/Controllers/BaseSet/Gy_UnitController.cs index 801f5dc..0ae73fd 100644 --- a/WebAPI/Controllers/BaseSet/Gy_UnitController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_UnitController.cs @@ -17,6 +17,8 @@ { public class Gy_UnitController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -442,7 +444,169 @@ } } + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Unit/Gy_UnitViewApi")] + [HttpGet] + public json Gy_UnitViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_UNIT", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏璁¢噺鍗曚綅鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Unit where HNumber = '" + Number + "'", "Gy_Unit"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HERPItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HUseFlag = "鏈娴�", + HRate = "1", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HStandard = 1, + HCREATEORGID = _saveObj["Result"]["Result"]["CreatorId_Id"], + HUSEORGID = 0, + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Unit where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Unit on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Unit + (HItemID,HERPItemID,HNumber,HName,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark,HUseFlag,HRate,HMakeTime,HStandard,HCREATEORGID,HUSEORGID + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}','{jsonData.HUseFlag}','{jsonData.HRate}','{jsonData.HMakeTime}',{jsonData.HStandard},{jsonData.HCREATEORGID},{jsonData.HUSEORGID})"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Unit off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "璁¢噺鍗曚綅鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion } } \ No newline at end of file diff --git a/WebAPI/Controllers/BaseSet/Gy_WarehouseController.cs b/WebAPI/Controllers/BaseSet/Gy_WarehouseController.cs index f1f268d..2b9d5e1 100644 --- a/WebAPI/Controllers/BaseSet/Gy_WarehouseController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_WarehouseController.cs @@ -14,6 +14,8 @@ { public class Gy_WarehouseController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -550,9 +552,174 @@ } } + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Warehouse/Gy_WarehouseViewApi")] + [HttpGet] + public json Gy_WarehouseViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_STOCK", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏浠撳簱浠撲綅鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Warehouse where HNumber = '" + Number + "'", "Gy_Warehouse"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HERPItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HSPFlag = _saveObj["Result"]["Result"]["IsOpenLocation"].ToString() == "false" ? 0 : 1, + HSPGroupID = 0, + HUnderStock = _saveObj["Result"]["Result"]["AllowMinusQty"].ToString() == "false" ? 0 : 1, + HUseFlag = "宸蹭娇鐢�", + HMakeTime = _saveObj["Result"]["Result"]["CreateDate"], + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + HSTOCKPROPERTY = _saveObj["Result"]["Result"]["StockProperty"], + HDEFSTOCKSTATUSID = _saveObj["Result"]["Result"]["DefStockStatusId_Id"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Warehouse where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Warehouse on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Warehouse + (HItemID,HERPItemID,HNumber,HName,HShortNumber,HParentID + ,HLevel,HEndFlag,HStopflag,HRemark + ,HSPFlag,HSPGroupID,HUnderStock,HUseFlag + ,HMakeTime,HCREATEORGID,HUSEORGID,HSTOCKPROPERTY,HDEFSTOCKSTATUSID + ) + values + ({jsonData.HItemID},{jsonData.HERPItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}',{jsonData.HSPFlag},{jsonData.HSPGroupID},{jsonData.HUnderStock},'{jsonData.HUseFlag}','{jsonData.HMakeTime}',{jsonData.HCREATEORGID},{jsonData.HUSEORGID},{jsonData.HSTOCKPROPERTY},{jsonData.HDEFSTOCKSTATUSID})"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Warehouse off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "浠撳簱浠撲綅鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion } } \ No newline at end of file diff --git a/WebAPI/Controllers/CGGL/Cg_POInStockBackBillController.cs b/WebAPI/Controllers/CGGL/Cg_POInStockBackBillController.cs index 64290a6..5c8ea36 100644 --- a/WebAPI/Controllers/CGGL/Cg_POInStockBackBillController.cs +++ b/WebAPI/Controllers/CGGL/Cg_POInStockBackBillController.cs @@ -1,4 +1,5 @@ 锘縰sing Newtonsoft.Json.Linq; +using Newtonsoft.Json; using Pub_Class; using System; using System.Collections; @@ -13,6 +14,9 @@ //閫�鏂欓�氱煡鍗旵ontroller public class Cg_POInStockBackBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); + public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -118,7 +122,342 @@ } + #region [鍚屾鍗曟嵁] + [Route("Cg_POInStockBackBill/Cg_POInStockBackBillViewApi")] + [HttpGet] + public json Cg_POInStockBackBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("SCP_MRAPP", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏閫�鏂欓�氱煡鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Int64 ManagerID = 0; + Int64 REQUIREORGID = 0; + Int64 CORRESPONDORGID = 0; + string ERPBillType = ""; + string REPLENISHMODE = ""; + Ds = oCN.RunProcReturn("select * from Cg_POInStockBackBillMain where HBillNo = '" + BillNo + "'", "Cg_POInStockBackBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + ManagerID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HManagerID"].ToString()); + REQUIREORGID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HREQUIREORGID"].ToString()); + CORRESPONDORGID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HCORRESPONDORGID"].ToString()); + ERPBillType = ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HERPBillType"]); + REPLENISHMODE = ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HREPLENISHMODE"]); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 1105, + HBillSubType = _saveObj["Result"]["Result"]["BusinessType"].ToString() == "CG" ? 12510 : 12511, + HDate = _saveObj["Result"]["Result"]["FDate"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = 2, + HSupID = _saveObj["Result"]["Result"]["SUPPLIERID_Id"], + HManagerID = ManagerID, + HDeptID = _saveObj["Result"]["Result"]["APPDEPTID_Id"], + HRemark = _saveObj["Result"]["Result"]["FRemarks"], + HMaker = _saveObj["Result"]["Result"]["FCreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["FCreateDate"], + HChecker = _saveObj["Result"]["Result"]["APPROVERID"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["APPROVEDATE"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = ERPBillType, + HPURCHASEORGID = _saveObj["Result"]["Result"]["PURCHASEORGID_Id"], + HAPPORGID = _saveObj["Result"]["Result"]["APPORGID_Id"], + HREQUIREORGID = REQUIREORGID, + HCORRESPONDORGID = CORRESPONDORGID, + HRMREASON = _saveObj["Result"]["Result"]["RMREASON"], + HRMTYPE = _saveObj["Result"]["Result"]["RMTYPE"], + HRMMODE = _saveObj["Result"]["Result"]["RMMODE"], + HREPLENISHMODE = REPLENISHMODE, + HBUSINESSTYPE = _saveObj["Result"]["Result"]["BusinessType"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Cg_POInStockBackBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Cg_POInStockBackBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus,HSupID,HManagerID,HDeptID,HRemark + ,HMaker,HMakeDate,HChecker,HCheckDate,HERPInterID,HERPBillType + ,HPURCHASEORGID,HAPPORGID,HREQUIREORGID,HCORRESPONDORGID + ,HRMREASON,HRMTYPE,HRMMODE,HREPLENISHMODE,HBUSINESSTYPE + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType},'{jsonData.HDate}', + '{jsonData.HBillNo}',{jsonData.HBillStatus},{jsonData.HSupID},{jsonData.HManagerID},{jsonData.HDeptID},'{jsonData.HRemark}', + '{jsonData.HMaker}', '{jsonData.HMakeDate}','{jsonData.HChecker}','{jsonData.HCheckDate}',{jsonData.HERPInterID}, + '{jsonData.HERPBillType}',{jsonData.HPURCHASEORGID},{jsonData.HAPPORGID},{jsonData.HREQUIREORGID},{jsonData.HCORRESPONDORGID}, + '{jsonData.HRMREASON}','{jsonData.HRMTYPE}','{jsonData.HRMMODE}', '{jsonData.HREPLENISHMODE}','{jsonData.HBUSINESSTYPE}')"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["PUR_MRAPPENTRY"]; + + DataSet Cs; + double Qty = 0; + double Money = 0; + Int64 WHID = 0; + Int64 SPID = 0; + Int64 SourceBillType = 0; + Int64 POOrderInterID = 0; + Int64 POOrderEntryID = 0; + string POORderBillNo = ""; + string BatchNO = ""; + Int64 ERPInterID = 0; + Int64 ERPEntryID = 0; + double RelationQty = 0; + Int64 SETTLEORGID = 0; + Int64 ISPRICEEXCLUDETAX = 0; + Int64 PlanMode = 0; + Int64 SourceInterID = 0; + Int64 SourceEntryID = 0; + string SourceBillNo = ""; + string MTONo = ""; + Int64 PURUNITID = 0; + string CONTRACTNO = ""; + string REQTRACENO = ""; + string BFLOWID = ""; + Int64 GIVEAWAY = 0; + Int64 PURBASEQTY = 0; + Int64 RETURNSTOCKJNBASEQTY = 0; + Int64 BASEUNITQTY = 0; + Int64 PRICECOEFFICIENT = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Cg_POInStockBackBillSub where HInterID = " + InterID, "Cg_POInStockBackBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Cg_POInStockBackBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + Qty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HQty"].ToString()); + Money = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HMoney"].ToString()); + WHID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HWHID"].ToString()); + SPID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSPID"].ToString()); + SourceBillType = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSourceBillType"].ToString()); + POOrderInterID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPOOrderInterID"].ToString()); + POOrderEntryID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPOOrderEntryID"].ToString()); + POORderBillNo = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HPOORderBillNo"]); + BatchNO = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HBatchNO"]); + ERPInterID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HERPInterID"].ToString()); + ERPEntryID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HERPEntryID"].ToString()); + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + SETTLEORGID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSETTLEORGID"].ToString()); + ISPRICEEXCLUDETAX = ClsPub.isLong(Cs.Tables[0].Rows[i]["HISPRICEEXCLUDETAX"].ToString()); + PlanMode = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPlanMode"].ToString()); + SourceInterID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSourceInterID"].ToString()); + SourceEntryID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSourceEntryID"].ToString()); + SourceBillNo = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HSourceBillNo"]); + MTONo = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HMTONo"]); + PURUNITID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPURUNITID"].ToString()); + CONTRACTNO = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HCONTRACTNO"]); + REQTRACENO = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HREQTRACENO"]); + BFLOWID = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HBFLOWID"]); + GIVEAWAY = ClsPub.isLong(Cs.Tables[0].Rows[i]["HGIVEAWAY"].ToString()); + PURBASEQTY = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPURBASEQTY"].ToString()); + RETURNSTOCKJNBASEQTY = ClsPub.isLong(Cs.Tables[0].Rows[i]["HRETURNSTOCKJNBASEQTY"].ToString()); + BASEUNITQTY = ClsPub.isLong(Cs.Tables[0].Rows[i]["HBASEUNITQTY"].ToString()); + PRICECOEFFICIENT = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPRICECOEFFICIENT"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MATERIALID_Id"], + HUnitID = oSub["UnitID_Id"], + HQty = Qty, + HPrice = oSub["PRICE_F"], + HMoney = Money, + HTaxRate = oSub["TAXRATE"], + HWHID = WHID, + HSPID = SPID, + HRemark = oSub["FRemarks"], + HSourceInterID = SourceInterID, + HSourceEntryID = SourceEntryID, + HSourceBillNo = SourceBillNo, + HSourceBillType = SourceBillType, + HPOOrderInterID = POOrderInterID, + HPOOrderEntryID = POOrderEntryID, + HPOORderBillNo = POORderBillNo, + HRelationQty = RelationQty, + HAuxPropID = oSub["AUXPROPID_Id"], + HBatchNO = BatchNO, + HMTONo = MTONo, + HPlanMode = PlanMode, + HERPInterID = ERPInterID, + HERPEntryID = ERPEntryID, + HBASEUNITID = oSub["MATERIALID"]["MaterialBase"][0]["BaseUnitId_Id"], + HPURUNITID = PURUNITID, + HCONTRACTNO = CONTRACTNO, + HREQTRACENO = REQTRACENO, + HBFLOWID = BFLOWID, + HGIVEAWAY = GIVEAWAY, + HPURBASEQTY = PURBASEQTY, + HRETURNSTOCKJNBASEQTY = RETURNSTOCKJNBASEQTY, + HBASEUNITQTY = BASEUNITQTY, + HPRICEUNITID = oSub["PRICEUNITID_F_Id"], + HAPPROVEPRICE = oSub["APPROVEPRICE_F"], + HPRICECOEFFICIENT = PRICECOEFFICIENT, + HLOCALCURRID = _saveObj["Result"]["Result"]["PUR_MRAPPFIN"][0]["LOCALCURRID_Id"], + HEXCHANGETYPEID = _saveObj["Result"]["Result"]["PUR_MRAPPFIN"][0]["ExchangeTypeId_Id"], + HSETTLEORGID = SETTLEORGID, + HISPRICEEXCLUDETAX = ISPRICEEXCLUDETAX + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Cg_POInStockBackBillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty,HPrice,HMoney,HTaxRate,HWHID,HSPID,HRemark + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType + ,HPOOrderInterID,HPOOrderEntryID,HPOORderBillNo + ,HRelationQty,HAuxPropID,HBatchNO,HMTONo,HPlanMode,HERPInterID,HERPEntryID + ,HBASEUNITID,HPURUNITID,HCONTRACTNO,HREQTRACENO,HBFLOWID,HGIVEAWAY + ,HPURBASEQTY,HRETURNSTOCKJNBASEQTY,HBASEUNITQTY + ,HPRICEUNITID,HAPPROVEPRICE,HPRICECOEFFICIENT + ,HLOCALCURRID,HEXCHANGETYPEID,HSETTLEORGID,HISPRICEEXCLUDETAX + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HPrice}, + {subData.HMoney},{subData.HTaxRate},{subData.HWHID},{subData.HSPID},'{subData.HRemark}',{subData.HSourceInterID}, + {subData.HSourceEntryID},'{subData.HSourceBillNo}',{subData.HSourceBillType},{subData.HPOOrderInterID},{subData.HPOOrderEntryID}, + '{subData.HPOORderBillNo}',{subData.HRelationQty},{subData.HAuxPropID},'{subData.HBatchNO}','{subData.HMTONo}',{subData.HPlanMode}, + {subData.HERPInterID},{subData.HERPEntryID},{subData.HBASEUNITID},{subData.HPURUNITID},'{subData.HCONTRACTNO}','{subData.HREQTRACENO}', + '{subData.HBFLOWID}',{subData.HGIVEAWAY},{subData.HPURBASEQTY},{subData.HRETURNSTOCKJNBASEQTY},{subData.HBASEUNITQTY}, + {subData.HPRICEUNITID},{subData.HAPPROVEPRICE},{subData.HPRICECOEFFICIENT},{subData.HLOCALCURRID},{subData.HEXCHANGETYPEID}, + {subData.HSETTLEORGID},{subData.HISPRICEEXCLUDETAX})"; + + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs b/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs index b791307..0ce78f0 100644 --- a/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs +++ b/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs @@ -15,6 +15,9 @@ //鏀舵枡閫氱煡鍗旵ontroller public class Cg_POInStockBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); + public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -619,5 +622,384 @@ } } #endregion + + #region [鍚屾鍗曟嵁] + [Route("Cg_POInStockBill/Cg_POInStockBillViewApi")] + [HttpGet] + public json Cg_POInStockBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("PUR_ReceiveBill", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鏀舵枡閫氱煡鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Int64 ManagerID = 0; + Int64 EmpID = 0; + Int64 DeptID = 0; + Ds = oCN.RunProcReturn("select * from Cg_POInStockBillMain where HBillNo = '" + BillNo + "'", "Cg_POInStockBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + ManagerID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HManagerID"].ToString()); + EmpID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"].ToString()); + DeptID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 1103, + HBillSubType = _saveObj["Result"]["Result"]["BusinessType"].ToString() == "CG" ? 12510 : 12511, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = 2, + HSupID = _saveObj["Result"]["Result"]["SupplierId_Id"], + HManagerID = ManagerID, + HEmpID = EmpID, + HDeptID = DeptID, + HRemark = "CLOUD瀵煎叆", + HMaker = _saveObj["Result"]["Result"]["CreatorId_Id"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HChecker = _saveObj["Result"]["Result"]["ApproverId_Id"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HOWNERTYPEID = _saveObj["Result"]["Result"]["OwnerTypeIdHead"], + HOWNERID = _saveObj["Result"]["Result"]["OwnerIdHead_Id"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillTypeId_Id"], + HPURCHASEORGID = _saveObj["Result"]["Result"]["PurOrgId_Id"], + HSTOCKORGID = _saveObj["Result"]["Result"]["StockOrgId_Id"], + HREQUIREORGID = _saveObj["Result"]["Result"]["DemandOrgId_Id"], + HSTOCKGROUPID = _saveObj["Result"]["Result"]["StockGroupId_Id"], + HSENDBILLNO = _saveObj["Result"]["Result"]["SendBillNo"], + HLADBILLNO = _saveObj["Result"]["Result"]["LadBillNo"], + HPURDEPTID = _saveObj["Result"]["Result"]["PurDeptId_Id"], + HPURGROUPID = _saveObj["Result"]["Result"]["PurGroupId_Id"], + HSUPPLYID = _saveObj["Result"]["Result"]["SupplyId_Id"], + HSETTLEID = _saveObj["Result"]["Result"]["SettleId_Id"], + HCHARGEID = _saveObj["Result"]["Result"]["ChargeId_Id"], + HBUSINESSTYPE = _saveObj["Result"]["Result"]["BusinessType"], + HSUPPLYADDRESS = _saveObj["Result"]["Result"]["SupplyAddress"], + HCORRESPONDORGID = _saveObj["Result"]["Result"]["CorrespondOrgId_Id"], + HPROVIDERCONTACTID = _saveObj["Result"]["Result"]["ProviderContactId_Id"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Cg_POInStockBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Cg_PoInstockbillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus,HSupID,HManagerID,HEmpID,HDeptID,HRemark + ,HMaker,HMakeDate,HChecker,HCheckDate,HOWNERTYPEID,HOWNERID + ,HERPInterID,HERPBillType,HPURCHASEORGID,HSTOCKORGID,HREQUIREORGID + ,HSTOCKGROUPID,HSENDBILLNO,HLADBILLNO,HPURDEPTID,HPURGROUPID,HSUPPLYID + ,HSETTLEID,HCHARGEID,HBUSINESSTYPE,HSUPPLYADDRESS,HCORRESPONDORGID,HPROVIDERCONTACTID + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType},'{jsonData.HDate}','{jsonData.HBillNo}', + {jsonData.HBillStatus},{jsonData.HSupID},{jsonData.HManagerID},{jsonData.HEmpID},{jsonData.HDeptID},'{jsonData.HRemark}','{jsonData.HMaker}', + '{jsonData.HMakeDate}','{jsonData.HChecker}','{jsonData.HCheckDate}','{jsonData.HOWNERTYPEID}','{jsonData.HOWNERID}',{jsonData.HERPInterID}, + '{jsonData.HERPBillType}',{jsonData.HPURCHASEORGID},{jsonData.HSTOCKORGID},{jsonData.HREQUIREORGID},{jsonData.HSTOCKGROUPID},'{jsonData.HSENDBILLNO}', + '{jsonData.HLADBILLNO}',{jsonData.HPURDEPTID},{jsonData.HPURGROUPID},{jsonData.HSUPPLYID},{jsonData.HSETTLEID},{jsonData.HCHARGEID},'{jsonData.HBUSINESSTYPE}', + '{jsonData.HSUPPLYADDRESS}',{jsonData.HCORRESPONDORGID},{jsonData.HPROVIDERCONTACTID})"; + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["PUR_ReceiveEntry"]; + + DataSet Cs; + double Qty = 0; + double Money = 0; + Int64 WHID = 0; + Int64 SPID = 0; + string subRemark = ""; + double TaxMoney = 0; + double TaxMoney_TAX = 0; + double TaxRate_TAX = 0; + Int64 SourceBillType = 0; + Int64 POOrderInterID = 0; + string POORderBillNo = ""; + string BatchNO = ""; + Int64 ERPInterID = 0; + Int64 ERPEntryID = 0; + double RelationQty = 0; + Int64 SecUnitID = 0; + Int64 PAYORGID = 0; + Int64 PAYCONDITONID = 0; + Int64 SETTLEORGID = 0; + Int64 SETTLECURRID = 0; + Int64 SETTLEMODEID = 0; + Int64 EXCHANGETYPEID = 0; + double EXCHANGERATE = 0; + Int64 LOCALCURRID = 0; + Int64 ISINCLUDEDTAX = 0; + Int64 ISPRICEEXCLUDETAX = 0; + Int64 PlanMode = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Cg_POInStockBillSub where HInterID = " + InterID, "Cg_POInStockBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Cg_POInStockBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + Qty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HQty"].ToString()); + Money = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HMoney"].ToString()); + WHID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HWHID"].ToString()); + SPID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSPID"].ToString()); + subRemark = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HRemark"]); + TaxMoney = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HTaxMoney"].ToString()); + TaxMoney_TAX = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HTaxMoney_TAX"].ToString()); + TaxRate_TAX = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HTaxRate_TAX"].ToString()); + SourceBillType = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSourceBillType"].ToString()); + POOrderInterID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPOOrderInterID"].ToString()); + POORderBillNo = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HPOORderBillNo"]); + BatchNO = ClsPub.isStrNull(Cs.Tables[0].Rows[i]["HBatchNO"]); + ERPInterID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HERPInterID"].ToString()); + ERPEntryID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HERPEntryID"].ToString()); + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + SecUnitID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSecUnitID"].ToString()); + PAYORGID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPAYORGID"].ToString()); + PAYCONDITONID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPAYCONDITONID"].ToString()); + SETTLEORGID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSETTLEORGID"].ToString()); + SETTLECURRID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSETTLECURRID"].ToString()); + SETTLEMODEID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HSETTLEMODEID"].ToString()); + EXCHANGETYPEID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HEXCHANGETYPEID"].ToString()); + EXCHANGERATE = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HEXCHANGERATE"].ToString()); + LOCALCURRID = ClsPub.isLong(Cs.Tables[0].Rows[i]["HLOCALCURRID"].ToString()); + ISINCLUDEDTAX = ClsPub.isLong(Cs.Tables[0].Rows[i]["HISINCLUDEDTAX"].ToString()); + ISPRICEEXCLUDETAX = ClsPub.isLong(Cs.Tables[0].Rows[i]["HISPRICEEXCLUDETAX"].ToString()); + PlanMode = ClsPub.isLong(Cs.Tables[0].Rows[i]["HPlanMode"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialID_Id"], + HUnitID = oSub["UnitId_Id"], + HQty = Qty, + HPrice = oSub["Price"], + HMoney = Money, + HWHID = WHID, + HSPID = SPID, + HRemark = subRemark, + HTaxMoney = TaxMoney, + HTaxRate = oSub["TaxRate"], + HTaxMoney_TAX = TaxMoney_TAX, + HTaxRate_TAX = TaxRate_TAX, + HSourceInterID = oSub["SrcId"], + HSourceEntryID = oSub["SrcEntryId"], + HSourceBillNo = oSub["SrcBillNo"], + HSourceBillType = SourceBillType, + HPOOrderInterID = POOrderInterID, + HPOOrderEntryID = oSub["POORDERENTRYID"], + HPOORderBillNo = POORderBillNo, + HAuxPropID = oSub["AuxPropId_Id"], + HBatchNO = BatchNO, + HMTONo = oSub["MtoNo"], + HPlanMode = PlanMode, + HERPInterID = ERPInterID, + HERPEntryID = ERPEntryID, + HRelationQty = RelationQty, + HGiveAwayFlag = oSub["GiveAway"] = false ? 0 : 1, + HReceiveQty = oSub["ReceiveQty"], + HSecUnitID = SecUnitID, + HSEQ = oSub["Seq"], + HPRODUCEDATE = oSub["ProduceDate"], + HEXPIRYDATE = oSub["ExpiryDate"], + HSUPPLYLOT = oSub["SupplierLot"], + HREQTRACENO = oSub["ReqTraceNo"], + HBOMID = oSub["BomId_Id"], + HSTOCKUNITID = oSub["StockUnitID_Id"], + HBASEUNITID = oSub["BaseUnitId_Id"], + HSTOCKSTATUSID = oSub["StockStatusId_Id"], + HKEEPERTYPEID = oSub["KeeperTypeId"], + HPROJECTNO = oSub["ProjectNo"], + HCHECKINCOMING = oSub["CheckInComing"] = false ? 0 : 1, + HTAXPRICE = oSub["TaxPrice"], + HDISCOUNTRATE = oSub["DiscountRate"], + HPRICECOEFFICIENT = oSub["PriceCoefficient"], + HPRICEUNITID = oSub["PriceUnitId_Id"], + HPRICELISTENTRY = oSub["PriceListEntry_Id"], + HTAXCOMBINATION = oSub["TaxCombination_Id"], + HSAMPLEDAMAGEQTY = oSub["SampleDamageQty"], + HSAMPLEDAMAGEBASEQTY = oSub["SampleDamageBaseQty"], + HOWNERTYPEID = oSub["OwnerTypeId"], + HOWNERID = oSub["OwnerId_Id"], + HBFLOWID = oSub["FBFLowId_Id"], + HPAYORGID = PAYORGID, + HSETTLEORGID = SETTLEORGID, + HSETTLECURRID = SETTLECURRID, + HSETTLEMODEID = SETTLEMODEID, + HEXCHANGETYPEID = EXCHANGETYPEID, + HPAYCONDITONID = PAYCONDITONID, + HEXCHANGERATE = EXCHANGERATE, + HLOCALCURRID = LOCALCURRID, + HISINCLUDEDTAX = ISINCLUDEDTAX, + HISPRICEEXCLUDETAX = ISPRICEEXCLUDETAX, + HTAXRATEID = 0, + HCOSTPERCENT = 0, + HCOSTAMOUNT = 0, + HVAT = 0, + HSELLERWITHHOLDING = 0, + HBUYERWITHHOLDING = 0, + }; + #endregion + + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Cg_PoInstockbillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty,HPrice + ,HMoney,HWHID,HSPID,HRemark,HTaxMoney,HTaxRate,HTaxMoney_TAX,HTaxRate_TAX + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HPOOrderInterID,HPOOrderEntryID,HPOORderBillNo + ,HAuxPropID,HBatchNO,HMTONo,HPlanMode,HERPInterID,HERPEntryID + ,HRelationQty,HGiveAwayFlag,HReceiveQty,HSecUnitID + ,HSEQ,HPRODUCEDATE,HEXPIRYDATE,HSUPPLYLOT,HREQTRACENO,HBOMID,HSTOCKUNITID + ,HBASEUNITID,HSTOCKSTATUSID,HKEEPERTYPEID,HPROJECTNO,HCHECKINCOMING + ,HTAXPRICE,HDISCOUNTRATE,HPRICECOEFFICIENT,HPRICEUNITID,HPRICELISTENTRY + ,HTAXCOMBINATION,HSAMPLEDAMAGEQTY,HSAMPLEDAMAGEBASEQTY,HOWNERTYPEID,HOWNERID,HBFLOWID + ,HPAYORGID,HSETTLEORGID,HSETTLECURRID,HSETTLEMODEID,HEXCHANGETYPEID,HPAYCONDITONID + ,HEXCHANGERATE,HLOCALCURRID,HISINCLUDEDTAX,HISPRICEEXCLUDETAX + ,HTAXRATEID,HCOSTPERCENT,HCOSTAMOUNT,HVAT,HSELLERWITHHOLDING,HBUYERWITHHOLDING + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HPrice}, + {subData.HMoney},{subData.HWHID},{subData.HSPID},'{subData.HRemark}',{subData.HTaxMoney},{subData.HTaxRate},{subData.HTaxMoney_TAX}, + {subData.HTaxRate_TAX},{subData.HSourceInterID},{subData.HSourceEntryID},'{subData.HSourceBillNo}',{subData.HSourceBillType}, + {subData.HPOOrderInterID},{subData.HPOOrderEntryID},'{subData.HPOORderBillNo}',{subData.HAuxPropID},'{subData.HBatchNO}', + '{subData.HMTONo}',{subData.HPlanMode},{subData.HERPInterID},{subData.HERPEntryID},{subData.HRelationQty},{subData.HGiveAwayFlag}, + {subData.HReceiveQty},{subData.HSecUnitID},{subData.HSEQ},'{subData.HPRODUCEDATE}','{subData.HEXPIRYDATE}','{subData.HSUPPLYLOT}', + '{subData.HREQTRACENO}',{subData.HBOMID},{subData.HSTOCKUNITID},{subData.HBASEUNITID},{subData.HSTOCKSTATUSID},'{subData.HKEEPERTYPEID}', + '{subData.HPROJECTNO}',{subData.HCHECKINCOMING},{subData.HTAXPRICE},{subData.HDISCOUNTRATE}, + {subData.HPRICECOEFFICIENT},{subData.HPRICEUNITID},{subData.HPRICELISTENTRY},'{subData.HTAXCOMBINATION}',{subData.HSAMPLEDAMAGEQTY}, + {subData.HSAMPLEDAMAGEBASEQTY},'{subData.HOWNERTYPEID}',{subData.HOWNERID},'{subData.HBFLOWID}',{subData.HPAYORGID},{subData.HSETTLEORGID}, + {subData.HSETTLECURRID},{subData.HSETTLEMODEID},{subData.HEXCHANGETYPEID},{subData.HPAYCONDITONID},{subData.HEXCHANGERATE}, + {subData.HLOCALCURRID},{subData.HISINCLUDEDTAX},{subData.HISPRICEEXCLUDETAX},{subData.HTAXRATEID},{subData.HCOSTPERCENT}, + {subData.HCOSTAMOUNT},{subData.HVAT},{subData.HSELLERWITHHOLDING},{subData.HBUYERWITHHOLDING})"; + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion } } \ No newline at end of file diff --git a/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs b/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs index e5b8fb5..2431640 100644 --- a/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs +++ b/WebAPI/Controllers/CGGL/Cg_POOrderBillController.cs @@ -15,6 +15,8 @@ //閲囪喘璁㈠崟Controller public class Cg_POOrderBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -960,6 +962,7 @@ { try { + //LogService.Write("閲囪喘璁㈠崟鍚屾,淇濆瓨鏂规硶鎵ц瀹屾垚寮傚父锛�" + sMainSub.ToString()); var model = sMainSub["model"].ToString(); var entry = sMainSub["model"]["HENTRY"].ToString(); @@ -1022,6 +1025,8 @@ } catch (Exception e) { + LogService.Write("閲囪喘璁㈠崟鍚屾寮傚父,淇濆瓨鏂规硶鎵ц瀹屾垚寮傚父锛�" + e.Message.ToString()); + oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; @@ -1102,6 +1107,320 @@ } } + #region [鍚屾鍗曟嵁] + [Route("Cg_POOrderBill/Cg_POOrderBillViewApi")] + [HttpGet] + public json Cg_POOrderBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("PUR_PurchaseOrder", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏閲囪喘璁㈠崟鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Cg_POOrderBillMain where HBillNo = '" + BillNo + "'", "Cg_POOrderBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 1102, + HBillSubType = 1102, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = _saveObj["Result"]["Result"]["ApproverId_Id"].ToString() == Convert.ToString(0) ? 1 : 2 , + HAddress = "", + HSSID = 0, + HSSDate = _saveObj["Result"]["Result"]["Date"], + HPSStyleID = 0, + HSupID = _saveObj["Result"]["Result"]["SupplierId_Id"], + HCurID = 0, + HExRate = 0, + HEmpID = _saveObj["Result"]["Result"]["PurchaserId_Id"], + HManagerID = 0, + HDeptID = _saveObj["Result"]["Result"]["PurchaseDeptId_Id"], + HExplanation = "CLOUD瀵煎叆", + HRemark = "CLOUD瀵煎叆", + HInnerBillNo = _saveObj["Result"]["Result"]["BillNo"], + HChecker = _saveObj["Result"]["Result"]["ApproverId"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HMaker = _saveObj["Result"]["Result"]["CreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillTypeId_Id"], + HPURCHASEORGID = _saveObj["Result"]["Result"]["PurchaseOrgId_Id"], + HPURCHASERGROUPID = _saveObj["Result"]["Result"]["PurchaserGroupId_Id"], + HPROVIDERID = _saveObj["Result"]["Result"]["ProviderId_Id"], + HSETTLEID = _saveObj["Result"]["Result"]["SettleId_Id"], + HCHARGEID = _saveObj["Result"]["Result"]["ChargeId_Id"], + HBUSINESSTYPE = _saveObj["Result"]["Result"]["BusinessType"], + HPROVIDERADDRESS = _saveObj["Result"]["Result"]["ProviderAddress"], + HCORRESPONDORGID = _saveObj["Result"]["Result"]["CorrespondOrgId_Id"], + HPROVIDERCONTACTID = _saveObj["Result"]["Result"]["ProviderContactId_Id"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Cg_POOrderBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Cg_POOrderBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus,HAddress,HSSID,HSSDate,HPSStyleID + ,HSupID,HCurID,HExRate,HEmpID,HManagerID,HDeptID + ,HExplanation,HRemark,HInnerBillNo + ,HChecker,HCheckDate,HMaker,HMakeDate + ,HERPInterID,HERPBillType,HPURCHASEORGID,HPURCHASERGROUPID,HPROVIDERID,HSETTLEID + ,HCHARGEID,HBUSINESSTYPE,HPROVIDERADDRESS,HCORRESPONDORGID,HPROVIDERCONTACTID + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType}, + '{jsonData.HDate}','{jsonData.HBillNo}',{jsonData.HBillStatus},'{jsonData.HAddress}',{jsonData.HSSID}, + '{jsonData.HSSDate}',{jsonData.HPSStyleID},{jsonData.HSupID},{jsonData.HCurID},{jsonData.HExRate},{jsonData.HEmpID},{jsonData.HManagerID}, + {jsonData.HDeptID},'{jsonData.HExplanation}','{jsonData.HRemark}','{jsonData.HInnerBillNo}','{jsonData.HChecker}', + '{jsonData.HCheckDate}','{jsonData.HMaker}','{jsonData.HMakeDate}',{jsonData.HERPInterID},'{jsonData.HERPBillType}', + {jsonData.HPURCHASEORGID},{jsonData.HPURCHASERGROUPID},'{jsonData.HPROVIDERID}',{jsonData.HSETTLEID},{jsonData.HCHARGEID}, + '{jsonData.HBUSINESSTYPE}','{jsonData.HPROVIDERADDRESS}',{jsonData.HCORRESPONDORGID},{jsonData.HPROVIDERCONTACTID})"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["POOrderEntry"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Cg_POOrderBillSub where HInterID = " + InterID, "Cg_POOrderBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Cg_POOrderBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialId_Id"], + HUnitID = oSub["UnitId_Id"], + HQty = oSub["Qty"], + HPrice = oSub["Price"], + HTaxRate_TAX = oSub["TaxRate"], + HTaxMoney_TAX = oSub["TaxAmount"], + HTaxPrice = oSub["TaxPrice"], + HDiscountRate = oSub["DiscountRate"], + HRelTaxPrice = 0, + HMoney = oSub["Amount"], + HTaxRate = oSub["TaxRate"], + HTaxMoney = oSub["TaxAmount"], + HLineTotal = 0, + HlineTotalBB = 0, + HDate = oSub["DeliveryDate"], + HInStockQty = 0, + HInvoiceQty = 0, + HRemark = oSub["Note"], + HSeOrderBillNo = "", + HSeOrderInterID = 0, + HSeOrderEntryID = 0, + HSourceInterID = 0, + HSourceEntryID = 0, + HSourceBillNo = "", + HSourceBillType = "", + HRelationQty = oSub["JOINQTY"], + HBackRelationQty = oSub["STOCKRETQTY"], + HPropertyID = 0, + HBatChNo = oSub["FLot_Text"], + HAuxPropID = oSub["AuxPropId_Id"], + HMTONo = oSub["MtoNo"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HSEQ = oSub["Seq"], + HRECEIVEDEPTID = oSub["ReceiveDeptId_Id"], + HSUPPLIERLOT = oSub["SupplierLot"], + HBOMID = oSub["BomId_Id"], + HSTOCKUNITID = oSub["StockUnitID_Id"], + HBASEUNITID = oSub["BaseUnitId_Id"], + HBFLOWID = oSub["FBFLowId_Id"], + HGIVEAWAY = oSub["GiveAway"], + HROWTYPE = oSub["RowType"], + HBASEUNITQTY = oSub["BaseUnitQty"], + HSTOCKBASEQTY = oSub["StockBaseQty"], + HREQTRACENO = oSub["ReqTraceNo"], + HMATERIALDESC = oSub["MultiLanguageText"][0]["MaterialDesc"], + HRECEIVEORGID = oSub["ReceiveOrgId_Id"], + HREQUIREORGID = oSub["RequireOrgId_Id"], + HTAXNETPRICE = oSub["TaxNetPrice"], + HPRICECOEFFICIENT = oSub["PriceCoefficient"], + HTAXCOMBINATION = oSub["FTaxCombination_Id"], + HPRICEUNITID = oSub["PriceUnitId_Id"], + HPRICELISTENTRY = oSub["PriceListEntry_Id"], + HPAYORGID = oSub["PayOrgId_Id"], + HSETTLEMODEID = oSub["EntrySettleModeId_Id"], + HSETTLECURRID = 0, + HEXCHANGETYPEID = 0, + HPAYCONDITIONID = 0, + HEXCHANGERATE = 0, + HLOCALCURRID = 0, + HISINCLUDEDTAX = 0, + HISPRICEEXCLUDETAX = 0, + HSETTLEORGID = oSub["SettleOrgId_Id"], + HTAXRATEID = oSub["POORDERENTRY_TAX"][0]["TaxRateId_Id"], + HCOSTPERCENT = oSub["POORDERENTRY_TAX"][0]["CostPercent"], + HCOSTAMOUNT = oSub["POORDERENTRY_TAX"][0]["CostAmount"], + HVAT = oSub["POORDERENTRY_TAX"][0]["VAT"], + HSELLERWITHHOLDING = oSub["POORDERENTRY_TAX"][0]["SellerWithholding"], + HBUYERWITHHOLDING = oSub["POORDERENTRY_TAX"][0]["BuyerWithholding"], + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Cg_POOrderBillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty,HPrice,HTaxRate_TAX,HTaxMoney_TAX + ,HTaxPrice,HDiscountRate,HRelTaxPrice,HMoney,HTaxRate,HTaxMoney + ,HLineTotal,HlineTotalBB,HDate,HInStockQty,HInvoiceQty,HRemark + ,HSeOrderBillNo,HSeOrderInterID,HSeOrderEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType + ,HRelationQty,HBackRelationQty,HPropertyID,HBatChNo,HAuxPropID,HMTONo + ,HERPInterID,HERPEntryID,HSEQ,HRECEIVEDEPTID,HSUPPLIERLOT,HBOMID + ,HSTOCKUNITID,HBASEUNITID,HBFLOWID,HGIVEAWAY,HROWTYPE,HBASEUNITQTY + ,HSTOCKBASEQTY,HREQTRACENO,HMATERIALDESC,HRECEIVEORGID,HREQUIREORGID + ,HTAXNETPRICE,HPRICECOEFFICIENT,HTAXCOMBINATION,HPRICEUNITID,HPRICELISTENTRY,HPAYORGID + ,HSETTLEMODEID,HSETTLECURRID,HEXCHANGETYPEID,HPAYCONDITIONID,HEXCHANGERATE,HLOCALCURRID + ,HISINCLUDEDTAX,HISPRICEEXCLUDETAX,HSETTLEORGID + ,HTAXRATEID,HCOSTPERCENT,HCOSTAMOUNT,HVAT,HSELLERWITHHOLDING,HBUYERWITHHOLDING + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HPrice}, + {subData.HTaxRate_TAX},{subData.HTaxMoney_TAX},{subData.HTaxPrice},{subData.HDiscountRate},{subData.HRelTaxPrice},{subData.HMoney},{subData.HTaxRate},{subData.HTaxMoney},{subData.HLineTotal},{subData.HlineTotalBB},'{subData.HDate}',{subData.HInStockQty},{subData.HInvoiceQty},'{subData.HRemark}','{subData.HSeOrderBillNo}',{subData.HSeOrderInterID},{subData.HSeOrderEntryID},{subData.HSourceInterID},{subData.HSourceEntryID},'{subData.HSourceBillNo}','{subData.HSourceBillType}',{subData.HRelationQty},{subData.HBackRelationQty},{subData.HPropertyID},'{subData.HBatChNo}',{subData.HAuxPropID},'{subData.HMTONo}',{subData.HERPInterID},{subData.HERPEntryID},{subData.HSEQ},{subData.HRECEIVEDEPTID},'{subData.HSUPPLIERLOT}',{subData.HBOMID},{subData.HSTOCKUNITID},{subData.HBASEUNITID},'{subData.HBFLOWID}','{subData.HGIVEAWAY}','{subData.HROWTYPE}',{subData.HBASEUNITQTY},{subData.HSTOCKBASEQTY},'{subData.HREQTRACENO}','{subData.HMATERIALDESC}',{subData.HRECEIVEORGID},{subData.HREQUIREORGID},{subData.HTAXNETPRICE},'{subData.HPRICECOEFFICIENT}','{subData.HTAXCOMBINATION}',{subData.HPRICEUNITID},'{subData.HPRICELISTENTRY}',{subData.HPAYORGID},{subData.HSETTLEMODEID},{subData.HSETTLECURRID},'{subData.HEXCHANGETYPEID}',{subData.HPAYCONDITIONID},{subData.HEXCHANGERATE},{subData.HLOCALCURRID},{subData.HISINCLUDEDTAX},{subData.HISPRICEEXCLUDETAX},{subData.HSETTLEORGID},{subData.HTAXRATEID},'{subData.HCOSTPERCENT}',{subData.HCOSTAMOUNT},'{subData.HVAT}','{subData.HSELLERWITHHOLDING}','{subData.HBUYERWITHHOLDING}')"; + + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs index c3752c1..5418030 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationEntrustInBillController.cs @@ -212,7 +212,8 @@ return objJsonResult; } - List<StationBill> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<StationBill>>(msg2); + List<StationBill> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<StationBill>>(msg2); + DBUtility.ClsPub.CurUserName = user; long HMainInterID = 0; HMainInterID = list[0].HMainInterID; string eventType = list[0].eventType; @@ -375,6 +376,7 @@ ",HTaxRate=" + HTaxRate + ",HMaterID=" + HMaterID + ",HProcID=" + HProcID + + ",HEmpID=" + HEmpID + ",HProcNo=" + HProcNo + ",HOrderProcNO='" + HOrderProcNO + "'" + " where HInterID=" + HInterID); @@ -433,7 +435,7 @@ } objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "鏂板鍗曟嵁鎴愬姛锛�"; + objJsonResult.Message = "鎿嶄綔鍗曟嵁鎴愬姛锛�"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } diff --git a/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs index a661bf0..e72e378 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs @@ -279,8 +279,7 @@ ",HICMOInterID,HICMOBillNo,HProcPlanInterID,HProcPlanEntryID,HProcPlanBillNo,HProcExchInterID,HProcExchEntryID" + ",HProcExchBillNo,HMaterID,HProcID,HICMOQty,HPlanQty,HStationOutTime,HSourceID" + ",HGroupID,HDeptID,HEmpID,HBarCode,HAddr,HBarCodeMaker,HBarCodeMakeDate" + - ",HSupID,HTaxRate,HQty,HPrice,HMoney,HPrice_BHS,HMoney_BHS,HBadCount" + - ",HMainSourceInterID,HMainSourceBillNo,HMainSourceBillType,HProcNo,HOrderProcNO,HLastSubProc,HWWWorkOrderBillNo,HWWWorkOrderInterID,HWWWorkOrderEntryID,HMainInterID,HPRDOrgID" + + ",HSupID,HTaxRate,HQty,HPrice,HMoney,HPrice_BHS,HMoney_BHS,HBadCount" + ",HMainSourceInterID,HMainSourceBillNo,HMainSourceBillType,HProcNo,HOrderProcNO,HLastSubProc,HWWWorkOrderBillNo,HWWWorkOrderInterID,HWWWorkOrderEntryID,HMainInterID,HPRDOrgID" + ") " + " values('" + BillType + "','" + BillType + "'," + HInterID + ",'" + HBillNo + "'," + HBillStatus + ",getdate(),'" + HMaker + "',getdate()" + "," + HYear + "," + HPeriod + ",'" + HRemark + "','" + HInnerBillNo + "','" + HSourceName + "'," + HPieceQty + "," + HWasterQty + "," + HPlanPieceQty + "," + HBadPNL + @@ -302,7 +301,9 @@ ",HUpDater='" + HMaker + "'" + ",HUpDateDate=getdate()" + ",HInnerBillNo='" + HInnerBillNo + "'" + + ",HWWWorkOrderBillNo='" + HWWWorkOrderBillNo + "'" + ",HSupID=" + HSupID + + ",HEmpID=" + HEmpID + ",HQty=" + HQty + ",HPieceQty=" + HPieceQty + ",HPrice=" + HPrice + diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index 82ee30b..e0d73c1 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs @@ -437,6 +437,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); + string msg5 = sArray[3].ToString(); List<Model.ClsSc_StationOutBillMain> list = new List<Model.ClsSc_StationOutBillMain>(); @@ -454,8 +455,8 @@ oBill.omodel.HBillNo = msg3 + "- " + j; oBill.omodel.HBillStatus = 0; oBill.omodel.HMouldNum = list[i].HMouldNum; - oBill.omodel.HYear = 2022; - oBill.omodel.HPeriod = 1; + oBill.omodel.HYear = DateTime.Now.Year; + oBill.omodel.HPeriod = DateTime.Now.Month; oBill.omodel.HRemark = list[i].HRemark; oBill.omodel.HSourceName = list[i].HSourceName; oBill.omodel.HPieceQty = list[i].HPieceQty; @@ -508,6 +509,7 @@ oBill.omodel.HWorkTimes = list[i].HWorkTimes; oBill.omodel.HQCCheckID = list[i].HQCCheckID; oBill.omodel.HMaker = msg4; + oBill.omodel.HEmpNum = msg5; //string HBillSubType = "3791"; //long HInterID = list[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D diff --git a/WebAPI/Controllers/CJGL/Sc_ProcessExchangeBillController.cs b/WebAPI/Controllers/CJGL/Sc_ProcessExchangeBillController.cs index 95cceb9..832c040 100644 --- a/WebAPI/Controllers/CJGL/Sc_ProcessExchangeBillController.cs +++ b/WebAPI/Controllers/CJGL/Sc_ProcessExchangeBillController.cs @@ -373,7 +373,6 @@ //} #endregion - #region 宸ュ簭娴佽浆鍗″垪琛ㄦ樉绀哄櫒鍏锋竻鍗曚俊鎭� [Route("Sc_ProcessExchangeBillList/QJQD")] [HttpGet] @@ -709,5 +708,218 @@ } } #endregion + + #region 鎷嗗垎 缂栬緫鑾峰彇娴佽浆鍗℃暟鎹� + /// <summary> + /// 缂栬緫鑾峰彇琛ㄥご淇℃伅 + /// </summary> + /// <param name="HInterID">涓籌D</param> + /// <returns></returns> + [Route("Sc_ProcessExchangeBill/GetProcessExchangeBillMain_cf")] + [HttpGet] + public object GetProcessExchangeBillMain_cf(string HInterID) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + ds = oCN.RunProcReturn("select top 1 * from h_v_Sc_ProcessExchangeBillQuery where hmainid= " + HInterID + " ", "h_v_Sc_ProcessExchangeBillQuery"); + + DataSet Ds = oCN.RunProcReturn("select top 1 HNo from Sc_ProcessExchangeBillmain where HBillNo like '%" + ds.Tables[0].Rows[0]["鍗曟嵁鍙�"].ToString() + "-%' order by LEN(HBillno) , HbillNo desc ", "Sc_ProcessExchangeBillmain"); + + char c = '1'; + string sNo = "01"; + int sCount = 0; + + if (Ds == null || Ds.Tables[0].Rows.Count == 0) + { + } + else + { + sCount = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HNo"]); + if (sCount >= 1) + { + sNo = Convert.ToChar(sCount + (int)c).ToString(); + sNo = "00" + sNo; + sNo = sNo.Substring(sNo.Length - 2, 2); + } + } + + string sBillNo = ds.Tables[0].Rows[0]["鍗曟嵁鍙�"].ToString(); + sBillNo = sBillNo.Replace("WORKX", ""); + sBillNo = sBillNo.Replace("WORK", ""); + sBillNo = sBillNo.Replace("_", "-"); + sBillNo = sBillNo + "-" + sNo; + ds.Tables[0].Rows[0]["鍗曟嵁鍙�"] = sBillNo; + + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.data = null; + } + return objJsonResult; + } + + + /// <summary> + /// 鑾峰彇琛ㄤ綋鏁版嵁淇℃伅 + /// </summary> + /// <param name="HInterID"></param> + /// <returns></returns> + [Route("Sc_ProcessExchangeBill/GetProcessExchangeBillSub_cf")] + [HttpGet] + public object GetProcessExchangeBillSub_cf(string HInterID) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + string sql = string.Format(@"select * from h_v_Sc_ProcessExchangeBillQuerySub"); + ds = oCN.RunProcReturn(sql + " where hmainid=" + HInterID, "h_v_Sc_ProcessExchangeBillQuerySub"); + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.data = null; + } + return objJsonResult; + } + + /// <summary> + /// 鏂板鍗曟嵁-淇濆瓨鎸夐挳 + ///鍙傛暟锛歴tring sql銆� + ///杩斿洖鍊硷細object銆� + /// </summary> + [Route("Sc_ProcessExchangeBill/AddBill_cf")] + [HttpPost] + public object AddBill_cf([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 msg3 = sArray[1].ToString(); + string msg4 = sArray[2].ToString(); + string msg5 = sArray[3].ToString(); + + string UserName = ""; + ListModels oListModels = new ListModels(); + + try + { + if (!DBUtility.ClsPub.Security_Log("Sc_ProcessExchangeBill_CF", 1, false, msg5)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳媶鍒嗘潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + DAL.ClsSc_ProcessExchangeBill oBill = new DAL.ClsSc_ProcessExchangeBill(); + List<Model.ClsSc_ProcessExchangeBillMain> lsmain = new List<Model.ClsSc_ProcessExchangeBillMain>(); + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); //\n + lsmain = oListModels.getObjectByJson_Sc_ProcessExchangeBillMain(msg2); + foreach (Model.ClsSc_ProcessExchangeBillMain oItem in lsmain) + { + oItem.HMaker = msg5; //鍒跺崟浜� + oItem.HBillType = "3772"; + oBill.HBillSubType = "Split"; + oItem.HNo = DBUtility.ClsPub.isLong(oItem.HBillNo.Split('-')[1]); + oItem.HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd"));// --鏃ユ湡 + oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + oItem.HPeriod = DBUtility.ClsPub.isLong(DateTime.Now.Month); + oItem.HMaterID2 = oItem.HMaterID; + 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 + //msg2 = msg2.Replace("'", "鈥�"); + List<Model.ClsSc_ProcessExchangeBillSub> ls = new List<Model.ClsSc_ProcessExchangeBillSub>(); + ls = oListModels.getObjectByJson_Sc_ProcessExchangeBillSub(msg3); + int i = 0; + foreach (Model.ClsSc_ProcessExchangeBillSub oItemSub in ls) + { + + i++; + if (oItemSub.HSplitQty > oItemSub.HLeftQty) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "绗�"+i+ "琛岋紝鎷嗗垎鏁伴噺涓嶈兘澶т簬鍙媶鍒嗘暟閲忥紒"; + objJsonResult.data = null; + return objJsonResult; + } + oItemSub.HEntryID = i; + oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + oBill.DetailColl.Add(oItemSub); + + } + + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult = false; + if (msg4 == "1") + { + bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + } + //else + //{ + // bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); + //} + 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 } } \ No newline at end of file diff --git a/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs b/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs index bdd8110..16390e8 100644 --- a/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs +++ b/WebAPI/Controllers/JHGL/Gy_RoutingBillController.cs @@ -120,7 +120,7 @@ string msg3 = sArray[1].ToString(); //int hentryid = int.Parse(sArray[2].ToString());//瀛愯〃鐨勯『搴廼d - int OperationType = int.Parse(sArray[2].ToString());//鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + int OperationType = int.Parse(sArray[2].ToString());//鏁版嵁绫诲瀷 1娣诲姞 3淇敼 2 澶嶅埗 string user = sArray[3].ToString();//鐢ㄦ埛鍚� try { @@ -169,6 +169,7 @@ string HMaterTexture = mainList[0].HMaterTexture;//鏉愯川 string HProductNum = mainList[0].HProductNum;//鎴愬搧缂栧彿 string HVerNum = mainList[0].HVerNum;//鐗堟湰 + int IsProNo = mainList[0].IsProNo;//鏄惁杞伐搴� if (OperationType == 2) { @@ -227,6 +228,14 @@ objJsonResult.data = null; return objJsonResult; } + + if (IsProNo == 1 && OperationType == 1) + { + //璁剧疆杞伐搴� + oCN.RunProc("exec Gy_RoutingBill_LastProNo " + HInterID); + } + + //璁剧疆榛樿宸ヨ壓璺嚎 oCN.RunProc("exec h_p_Gy_RoutingBillCheck " + HInterID); //璁剧疆榛樿宸ヨ壓璺嚎 //鍒ゆ柇鏄惁閲嶅宸ュ簭鍙� ds = oCN.RunProcReturn("exec h_p_Gy_RoutingCtrl " + HInterID, "h_p_Gy_RoutingCtrl"); diff --git a/WebAPI/Controllers/MJGL/Sc_MouldDotCheckRuleBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldDotCheckRuleBillController.cs new file mode 100644 index 0000000..d83a49a --- /dev/null +++ b/WebAPI/Controllers/MJGL/Sc_MouldDotCheckRuleBillController.cs @@ -0,0 +1,345 @@ +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.MJGL +{ + public class Sc_MouldDotCheckRuleBillController : ApiController + { + private json objJsonResult = new json(); + public DataSet ds = new DataSet(); + public DBUtility.ClsPub.Enum_BillStatus BillStatus;//鍗曟嵁鐘舵�侊紙鏂板锛屼慨鏀癸紝娴忚锛屾洿鏂板崟浠凤紝鍙樻洿锛� + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + #region 鍣ㄥ叿鐐规瑙勭▼鍗曞垪琛� + [Route("Sc_MouldDotCheckRuleBill/Sc_MouldDotCheckRuleList")] + [HttpGet] + public object Sc_MouldDotCheckRuleList(string sWhere, string user) + { + try + { + List<object> columnNameList = new List<object>(); + //鍙嶅簭鍒楀寲浼犻�掔殑鍊� + //HlpBill com = JsonConvert.DeserializeObject<HlpBill>(sWhere.ToString()); + //缂栬緫鏉冮檺 + if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckRuleBillList", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + string sql = "select * from h_v_Sc_MouldDotCheckRuleBillList where 1 = 1" + sWhere + " order by hmainid desc"; + ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldDotCheckRuleBillList"); + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + objJsonResult.list = columnNameList; + return objJsonResult; + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鍣ㄥ叿鐐规瑙勭▼ 淇濆瓨/缂栬緫 + /// <summary> + /// 淇濆瓨妯″叿缁翠慨鍗� + /// </summary> + /// <param name="msg"></param> + /// <returns></returns> + [Route("Sc_MouldDotCheckRuleBill/Sc_MouldDotCheckRuleBillEdit")] + [HttpPost] + public object Sc_MouldDotCheckRuleBillEdit([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 msg5 = sArray[2].ToString(); + + string UserName = ""; + ListModels oListModels = new ListModels(); + try + { + //缂栬緫鏉冮檺 + if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckRuleBill_Edit", 1, false, msg5)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + DBUtility.ClsPub.CurUserName = msg5;//鑾峰彇褰撳墠鐧诲綍浜� + + DAL.ClsSc_MouldDotCheckRuleBill oBill = new DAL.ClsSc_MouldDotCheckRuleBill(); + List<Model.ClsSc_MouldDotCheckRuleBillMain> lsmain = new List<Model.ClsSc_MouldDotCheckRuleBillMain>(); + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); //\n + //涓昏〃 + lsmain = oListModels.getObjectByJson_Sc_MouldDotCheckRuleBillMain(msg2); + foreach (Model.ClsSc_MouldDotCheckRuleBillMain oItem in lsmain) + { + UserName = oItem.HMaker; //鍒跺崟浜� + oItem.HBillType = "3834"; + oItem.HBillSubType = "3834"; + + oItem.HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd"));// --鏃ユ湡 + oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + oItem.HPeriod = DBUtility.ClsPub.isLong(DateTime.Now.Month); + + 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 + //msg2 = msg2.Replace("'", "鈥�"); + List<Model.ClsSc_MouldDotCheckRuleBillSub> ls = new List<Model.ClsSc_MouldDotCheckRuleBillSub>(); + ls = oListModels.getObjectByJson_Sc_MouldDotCheckRuleBillSub(msg3); + int i = 0; + foreach (Model.ClsSc_MouldDotCheckRuleBillSub item in ls) + { + + i++; + item.HEntryID = i; + item.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + item.HCloseType = false; //鍏抽棴绫诲瀷 + item.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + item.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + item.HRelationQty = 0; //鍏宠仈鏁伴噺 + oBill.DetailColl.Add(item); + + } + + + ////閰嶄欢椤硅〃浣撴暟鎹� + ////鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + //msg4 = msg4.Substring(1, msg4.Length - 2); + //msg4 = msg4.Replace("\\", ""); + //msg4 = msg4.Replace("\n", ""); //\n + // //msg2 = msg2.Replace("'", "鈥�"); + //List<Model.ClsSc_MouldDotCheckRuleBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckRuleBillSub_Item>(); + //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckRuleBillSub_Item(msg4); + //int j = 0; + //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oItemSub in ls1) + //{ + + // j++; + // oItemSub.HEntryID = j; + // //oItemSub.HCloseMan = ""; //琛屽叧闂� + // oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + // oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + + // oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + // oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + + // oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + // oBill.DetailColl.Add(oItemSub); + //} + + + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult; + if (oBill.omodel.HInterID == 0) + { + // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + } + else + { + bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); + } + if (bResult) + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; + //WebAPIController.Add_Log("閫佽揣鍗曚笅鎺�", UserName, "鐢熸垚閫佽揣鍗�"); + 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("Sc_MouldDotCheckRuleBill/Sc_MouldDotCheckRuleBillListCheckDetai")] + [HttpGet] + public ApiResult<DataSet> Sc_MouldDotCheckRuleBillListCheckDetai(string HID) + { + if (string.IsNullOrEmpty(HID)) + return new ApiResult<DataSet> { code = -1, msg = "ID涓嶈兘涓虹┖" }; + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + var dataSet = oCN.RunProcReturn("select top 1 a.*,mt.HBillNo MouldFileNo from Sc_MouldDotCheckRuleBillMain a left join Gy_MouldFileMain mt on a.HMouldID = mt.HInterID where a.HInterID= " + HID + " ", "Sc_MouldDotCheckRuleBillMain"); + if (dataSet == null || dataSet.Tables[0].Rows.Count == 0) + return new ApiResult<DataSet> { code = -1, msg = "涓嶅瓨鍦ㄥ櫒鍏风偣妫�瑙勭▼璁板綍" }; + return new ApiResult<DataSet> { code = 1, msg = "鏌ヨ鎴愬姛", data = dataSet }; + } + #endregion + + #region 鍣ㄥ叿鐐规瑙勭▼缂栬緫鏃惰幏鍙栬〃浣撴暟鎹柊(鐐规椤瑰垪琛ㄣ�侀厤浠堕」鍒楄〃) + [Route("Sc_MouldDotCheckRuleBill/Sc_MouldDotCheckRuleBillSubAndSubItem")] + [HttpGet] + public object Sc_MouldDotCheckRuleBillSubAndSubItem(string HInterID) + { + + DataSet ds, ds1; + List<object> list = new List<object>(); + string Swhere = ""; + try + { + if (HInterID != "" || HInterID != null) + { + Swhere = " and hmainid='" + HInterID + "'"; + } + else + { + Swhere = HInterID; + } + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + //鑾峰彇鐐规椤圭洰缂栬緫鏁版嵁 + string sql = "select 鐐规椤圭洰ID HDotCheckItemID,鐐规椤圭洰浠g爜 HDotCheckItemNumber,鐐规椤圭洰 HDotCheckItem,鐐规閮ㄤ綅 HDotCheckPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark from h_v_Sc_MouldDotCheckRuleBillSub where 1 = 1 " + Swhere + ""; + ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldDotCheckRuleBillSub"); + ////鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 + //string sql1 = "select 閰嶄欢ID HMaterID,閰嶄欢浠g爜 HMaterNumber,閰嶄欢鍚嶇О HMaterName,鍗曚綅ID HUnitID,璁¢噺鍗曚綅浠g爜 HUnitNumber,璁¢噺鍗曚綅鍚嶇О HUnitName,鐢ㄩ噺 HQty,瀛愬娉�1 HRemark,鏍囧噯鐢ㄩ噺 HQtyMust from h_v_Sc_MouldDotCheckRuleBillSub_Item where 1 = 1 " + Swhere + ""; + //ds1 = oCN.RunProcReturn(sql1, "h_v_Sc_MouldDotCheckRuleBillSub_Item"); + + list.Add(ds.Tables[0]); + //list.Add(ds1.Tables[0]); + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.list = list; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.data = null; + } + return objJsonResult; + } + #endregion + + #region 鍣ㄥ叿鐐规瑙勭▼璁板綍鍒犻櫎鍔熻兘 + [Route("Sc_MouldDotCheckRuleBill/DeleteMouldDotCheckRuleBill")] + [HttpGet] + public object DeleteMouldDotCheckRuleBill(string HInterID, string user) + { + if (!DBUtility.ClsPub.Security_Log("Sc_MouldMaintainRuleBill_Delete", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + Int64 lngBillKey = 0; + lngBillKey = DBUtility.ClsPub.isLong(HInterID); + if (lngBillKey == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁ID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + DAL.ClsSc_MouldDotCheckRuleBill oBill = new DAL.ClsSc_MouldDotCheckRuleBill(); + if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) + { + if (oBill.omodel.HBillStatus > 1) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁褰撳墠澶勪簬涓嶈兘鍒犻櫎鐘舵�侊紒"; + objJsonResult.data = null; + return objJsonResult; + } + + bool IsDete = oBill.DeleteBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo); + if (IsDete) + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鏈壘鍒�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/MJGL/Sc_MouldLifeUseBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldLifeUseBillController.cs new file mode 100644 index 0000000..95b6fba --- /dev/null +++ b/WebAPI/Controllers/MJGL/Sc_MouldLifeUseBillController.cs @@ -0,0 +1,286 @@ +锘縰sing DBUtility; +using Model; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.MJGL +{ + public class Sc_MouldLifeUseBillController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region [鍣ㄥ叿瀵垮懡鑰楃敤鍗曞垪琛╙ + [Route("Sc_MouldLifeUseBill/list")] + [HttpGet] + public object list(string sWhere, string user) + { + try + { + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Sc_MouldLifeUseBillList order by HMainID asc", "h_v_Sc_MouldLifeUseBillList"); + } + else + { + string sql1 = "select * from h_v_Sc_MouldLifeUseBillList where 1 = 1 "; + string sql = sql1 + sWhere + " order by HMainID asc"; + ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldLifeUseBillList"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鏍规嵁ID鏌ユ壘璁板綍] + [Route("Sc_MouldLifeUseBill/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + + ds = oCN.RunProcReturn("select * from h_v_Sc_MouldLifeUseBillList where HMainID =" + HInterID, "h_v_Sc_MouldLifeUseBillList"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鍣ㄥ叿瀵垮懡鑰楃敤鍗� 淇濆瓨/缂栬緫鍔熻兘 + [Route("Sc_MouldLifeUseBill/MouldLifeUseBillEdit")] + [HttpPost] + public object MouldLifeUseBillEdit([FromBody] JObject sMainSub) + { + try + { + var _value = sMainSub["sMainSub"].ToString(); + string msg1 = _value.ToString(); + oCN.BeginTran(); + //淇濆瓨涓昏〃 + objJsonResult = AddBillMain(msg1); + if (objJsonResult.code == "0") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + 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 = "淇濆瓨澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillMain(string msg1) + { + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); //涓昏〃鏁版嵁 + string msg3 = sArray[1].ToString(); //瀛愯〃鏁版嵁 + int OperationType = int.Parse(sArray[2].ToString()); // 鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string user = sArray[3].ToString(); + + try + { + msg2 = "[" + msg2.ToString() + "]"; + List<ClsSc_MouldLifeUseBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_MouldLifeUseBillMain>>(msg2); + + long HInterID = mainList[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D + string HBillNo = mainList[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿 + long HBillStatus = 1;//鍗曟嵁鐘舵�� + DateTime HDate = mainList[0].HDate;//鏃ユ湡 + string HRemark = mainList[0].HRemark;//澶囨敞 + long HMangerID = mainList[0].HMangerID;//璐熻矗浜� + long HDeptID = mainList[0].HDeptID;//閮ㄩ棬 + string HReason = mainList[0].HReason;//鍙樻洿鍘熷洜 + string HExplanation = mainList[0].HExplanation;//鎽樿 + string HMaker = user;//鍒跺崟浜� + + DateTime dt = DateTime.Now; + + + + //ds = oCN.RunProcReturn("select * from h_v_IF_POOrderBillList where hmainid=" + HInterID + " and 鍗曟嵁鍙�='" + HBillNo + "'", "h_v_IF_POOrderBillList"); + + if ((OperationType == 1 || OperationType == 2))//鏂板 && ds.Tables[0].Rows.Count == 0 + { + //DataSet Ds; + //Int64 NewHInterID = 1; + //Ds = oCN.RunProcReturn("select MAX(HInterID)HInterID from Cg_POOrderBillMain", "Cg_POOrderBillMain"); + //if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + //{ + // NewHInterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + // NewHInterID += 1; + //} + //涓昏〃 + oCN.RunProc(@"Insert Into Sc_MouldLifeUseBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HMangerID,HDeptID,HReason,HExplanation,HInnerBillNo) + values(" + HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3845 + "','" + + mainList[0].HBillSubType + "','" + HDate + "','" + HBillNo + "','" + HBillStatus + "','" + mainList[0].HRemark + + "','" + mainList[0].HBackRemark + "','" + mainList[0].HMaker + "','" + dt + "','" + mainList[0].HMainSourceBillType + "'," + mainList[0].HMainSourceInterID + + "," + mainList[0].HMainSourceEntryID + ",'" + mainList[0].HMainSourceBillNo + "'," + mainList[0].HPrintQty + "," + mainList[0].HMangerID + "," + mainList[0].HDeptID + ",'" + HReason + "','" + HExplanation + "','" + mainList[0].HInnerBillNo + "'" + ")"); + } + else if (OperationType == 3)//|| ds.Tables[0].Rows.Count != 0 + { //淇敼 + oCN.RunProc("update Sc_MouldLifeUseBillMain set " + + "HRemark='" + HRemark + "', HChecker='" + HMaker + "', HCheckDate=getdate()" + ",HReason='" + HReason + + "',HExplanation='" + HExplanation + "',HMangerID=" + HMangerID + ",HDeptID=" + HDeptID + " where HInterID=" + HInterID); + + //鍒犻櫎瀛愯〃 + oCN.RunProc("delete from Sc_MouldLifeUseBillSub where HInterID='" + HInterID + "'"); + } + //淇濆瓨瀛愯〃 + objJsonResult = AddBillSub(msg3, HInterID, OperationType, HBillNo); + + if (objJsonResult.code == "0") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillSub(string msg3, long HInterID, int OperationType, string HBillNo) + { + List<ClsSc_MouldLifeUseBillSub> DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_MouldLifeUseBillSub>>(msg3); + + + + int i = 0; + foreach (ClsSc_MouldLifeUseBillSub oSub in DetailColl) + { + i++; + + DataSet Cs; + Int64 NewHEntryID = 1; + Cs = oCN.RunProcReturn("select MAX(HEntryID)HEntryID from Sc_MouldLifeUseBillSub", "Sc_MouldLifeUseBillSub"); + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()) != 0) + { + NewHEntryID = ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()); + NewHEntryID += 1; + } + + oCN.RunProc($@"Insert into Sc_MouldLifeUseBillSub + (HInterID,HEntryID,HBillNo_bak,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty + ,HRelationMoney,HMaterID,HUnitID,HDesignLife,HLeaveLife,HUseLife,HNewLeaveLife) + values({HInterID},{NewHEntryID},'{ HBillNo }','{oSub.HRemark}',{oSub.HSourceInterID} + ,{oSub.HSourceEntryID},'{oSub.HSourceBillNo}','{oSub.HSourceBillType}',{oSub.HRelationQty},{oSub.HRelationMoney},{oSub.HMaterID},{oSub.HUnitID},{oSub.HDesignLife},{oSub.HLeaveLife},{oSub.HUseLife},{oSub.HNewLeaveLife})"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + + #region [鍒犻櫎] + [Route("Sc_MouldLifeUseBill/Delete")] + [HttpGet] + public object Delete(string HInterID, string user) + { + try + { + oCN.BeginTran(); + oCN.RunProc("Delete From Sc_MouldLifeUseBillMain where HInterID = " + HInterID); + oCN.RunProc("Delete From Sc_MouldLifeUseBillSub where HInterID = " + HInterID); + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/MJGL/Sc_MouldMaintainRuleBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldMaintainRuleBillController.cs index 45858ae..1139f2f 100644 --- a/WebAPI/Controllers/MJGL/Sc_MouldMaintainRuleBillController.cs +++ b/WebAPI/Controllers/MJGL/Sc_MouldMaintainRuleBillController.cs @@ -68,23 +68,13 @@ columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 } - //if (ds.Tables[0].Rows.Count != 0 || ds != null) - //{ + objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; - //} - //else - //{ - //objJsonResult.code = "0"; - //objJsonResult.count = 0; - //objJsonResult.Message = "鏃犳暟鎹�"; - //objJsonResult.data = null; - //return objJsonResult; - //} } catch (Exception ex) { diff --git a/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs index 3b96480..0ab23f8 100644 --- a/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs +++ b/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs @@ -690,9 +690,9 @@ #endregion #region 鍣ㄥ叿閲囪喘鍏ュ簱鍗曞鏍�/鍙嶅鏍� - [Route("Sc_MouldProdInHouseBill/AuditMouldProdInHouseBill")] + [Route("Sc_MouldProdInHouseBill/AuditMouldProdInHouseBills")] [HttpGet] - public object AuditMouldProdInHouseBill(string HInterID, string user, int flag) + public object AuditMouldProdInHouseBills(string HInterID, string user, int flag) { //flag=1 瀹℃牳锛� flag=2 鍙嶅鏍� //缂栬緫鏉冮檺 diff --git a/WebAPI/Controllers/MJGL/Sc_MouldRepairChangeBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldRepairChangeBillController.cs index 40b1a1f..cd56a54 100644 --- a/WebAPI/Controllers/MJGL/Sc_MouldRepairChangeBillController.cs +++ b/WebAPI/Controllers/MJGL/Sc_MouldRepairChangeBillController.cs @@ -601,7 +601,7 @@ objJsonResult.data = null; return objJsonResult; } - DLL.ClsSc_MouldProdOutBill oBill = new DLL.ClsSc_MouldProdOutBill(); + DLL.ClsSc_MouldRepairChangeBill oBill = new DLL.ClsSc_MouldRepairChangeBill(); if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) { if (flag == 1) diff --git a/WebAPI/Controllers/MJGL/Sc_MouldScrapRequestBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldScrapRequestBillController.cs new file mode 100644 index 0000000..cc4c6eb --- /dev/null +++ b/WebAPI/Controllers/MJGL/Sc_MouldScrapRequestBillController.cs @@ -0,0 +1,293 @@ +锘縰sing DBUtility; +using Model; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.MJGL +{ + public class Sc_MouldScrapRequestBillController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region [鍣ㄥ叿鎶ュ簾鐢宠鍗曞垪琛╙ + [Route("Sc_MouldScrapRequestBill/list")] + [HttpGet] + public object list(string sWhere, string user) + { + try + { + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Sc_MouldScrapRequestBillList order by HMainID asc", "h_v_Sc_MouldScrapRequestBillList"); + } + else + { + string sql1 = "select * from h_v_Sc_MouldScrapRequestBillList where 1 = 1 "; + string sql = sql1 + sWhere + " order by HMainID asc"; + ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldScrapRequestBillList"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鏍规嵁ID鏌ユ壘璁板綍] + [Route("Sc_MouldScrapRequestBill/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + + ds = oCN.RunProcReturn("select * from h_v_Sc_MouldScrapRequestBillList where hmainid =" + HInterID, "h_v_Sc_MouldScrapRequestBillList"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鍣ㄥ叿鎶ュ簾鐢宠鍗� 淇濆瓨/缂栬緫鍔熻兘 + [Route("Sc_MouldScrapRequestBill/MouldScrapRequestBillEdit")] + [HttpPost] + public object MouldScrapRequestBillEdit([FromBody] JObject sMainSub) + { + try + { + var _value = sMainSub["sMainSub"].ToString(); + string msg1 = _value.ToString(); + oCN.BeginTran(); + //淇濆瓨涓昏〃 + objJsonResult = AddBillMain(msg1); + if (objJsonResult.code == "0") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + 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 = "淇濆瓨澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillMain(string msg1) + { + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); //涓昏〃鏁版嵁 + string msg3 = sArray[1].ToString(); //瀛愯〃鏁版嵁 + int OperationType = int.Parse(sArray[2].ToString()); // 鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string user = sArray[3].ToString(); + + try + { + msg2 = "[" + msg2.ToString() + "]"; + List<ClsSc_MouldScrapRequestBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_MouldScrapRequestBillMain>>(msg2); + + long HInterID = mainList[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D + string HBillNo = mainList[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿 + long HBillStatus = 1;//鍗曟嵁鍙� + long HPRDORGID = mainList[0].HPRDORGID;//缁勭粐 + DateTime HDate = mainList[0].HDate;//鏃ユ湡 + string HRemark = mainList[0].HRemark;//澶囨敞 + long HEmpID = mainList[0].HEmpID;//鐢宠浜� + long HDeptID = mainList[0].HDeptID;//閮ㄩ棬 + long HMangerID = mainList[0].HMangerID;//璐熻矗浜� + long HWHID = mainList[0].HWHID;//鎶ュ簾浠撳簱 + string HReason = mainList[0].HReason;//鎶ュ簾鍘熷洜 + string HMaker = user;//鍒跺崟浜� + + DateTime dt = DateTime.Now; + + + + //ds = oCN.RunProcReturn("select * from h_v_IF_POOrderBillList where hmainid=" + HInterID + " and 鍗曟嵁鍙�='" + HBillNo + "'", "h_v_IF_POOrderBillList"); + + if ((OperationType == 1 || OperationType == 2))//鏂板 && ds.Tables[0].Rows.Count == 0 + { + //DataSet Ds; + //Int64 NewHInterID = 1; + //Ds = oCN.RunProcReturn("select MAX(HInterID)HInterID from Cg_POOrderBillMain", "Cg_POOrderBillMain"); + //if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + //{ + // NewHInterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + // NewHInterID += 1; + //} + //涓昏〃 + oCN.RunProc(@"Insert Into Sc_MouldScrapRequestBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + ,HReason,HExplanation,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceInterID + ,HMainSourceEntryID,HMainSourceBillNo,HEmpID,HDeptID,HMangerID,HWHID,HCheckItemNowID + ,HCheckItemNextID,HCheckFlowID,HBacker,HChecker,HUpDater,HCloseMan,HCloseType,HDeleteMan,HInnerBillNo) + values(" + HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3823 + "','" + + 3823 + "','" + HDate + "','" + HBillNo + "','" + HBillStatus + "','" + HReason + "','" + mainList[0].HExplanation + "','" + mainList[0].HRemark + + "','" + mainList[0].HBackRemark + "','" + mainList[0].HMaker + "','" + dt + "'," + mainList[0].HMainSourceInterID + + "," + mainList[0].HMainSourceEntryID + ",'" + mainList[0].HMainSourceBillNo + "'," + mainList[0].HEmpID + "," + mainList[0].HDeptID + "," + mainList[0].HMangerID + "," + mainList[0].HWHID + ",0,0,0" + ",'" + mainList[0].HBacker + "','" + mainList[0].HChecker + "','" + mainList[0].HUpDater + "','" + mainList[0].HCloseMan + "'," + 0 + ",'" + mainList[0].HDeleteMan + "','" + mainList[0].HInnerBillNo + "'" + ")"); + } + else if (OperationType == 3)//|| ds.Tables[0].Rows.Count != 0 + { //淇敼 + oCN.RunProc("update Sc_MouldScrapRequestBillMain set " + + "HRemark='" + HRemark + "', HUpDater='" + HMaker + "', HUpDateDate=getdate()" + + ",HEmpID=" + HEmpID + ",HDeptID=" + HDeptID + ",HMangerID=" + HMangerID + + ",HReason='" + HReason + "'" + + ",HWHID=" + HWHID + " where HInterID=" + HInterID); + + //鍒犻櫎瀛愯〃 + oCN.RunProc("delete from Sc_MouldScrapRequestBillSub where HInterID='" + HInterID + "'"); + } + //淇濆瓨瀛愯〃 + objJsonResult = AddBillSub(msg3, HInterID, OperationType); + + if (objJsonResult.code == "0") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillSub(string msg3, long HInterID, int OperationType) + { + List<ClsSc_MouldScrapRequestBillSub> DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_MouldScrapRequestBillSub>>(msg3); + + + + int i = 0; + foreach (ClsSc_MouldScrapRequestBillSub oSub in DetailColl) + { + i++; + + DataSet Cs; + Int64 NewHEntryID = 1; + Cs = oCN.RunProcReturn("select MAX(HEntryID)HEntryID from Sc_MouldScrapRequestBillSub", "Sc_MouldScrapRequestBillSub"); + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()) != 0) + { + NewHEntryID = ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()); + NewHEntryID += 1; + } + + oCN.RunProc($@"Insert into Sc_MouldScrapRequestBillSub + (HInterID,HEntryID,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty + ,HRelationMoney,HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HQtyMust,HQty,HPrice,HMoney,HDesignLife,HLeaveLife,HWHID) + values({HInterID},{NewHEntryID},'{oSub.HRemark}',{oSub.HSourceInterID} + ,{oSub.HSourceEntryID},'{oSub.HSourceBillNo}','{oSub.HSourceBillType}',{oSub.HRelationQty},{oSub.HRelationMoney},{oSub.HMaterID} + ,{oSub.HPropertyID},{oSub.HSecUnitID},{oSub.HSecUnitRate},{oSub.HUnitID},0,{oSub.HQty},{oSub.HPrice},{oSub.HMoney},{oSub.HDesignLife} + ,{oSub.HLeaveLife},{oSub.HWHID})"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + + #region [鍒犻櫎] + [Route("Sc_MouldScrapRequestBill/Delete")] + [HttpGet] + public object Delete(string HInterID, string user) + { + try + { + oCN.BeginTran(); + oCN.RunProc("Delete From Sc_MouldScrapRequestBillMain where HInterID = " + HInterID); + oCN.RunProc("Delete From Sc_MouldScrapRequestBillSub where HInterID = " + HInterID); + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/MJGL/Sc_MouldStatusChangeBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldStatusChangeBillController.cs new file mode 100644 index 0000000..9ebcb05 --- /dev/null +++ b/WebAPI/Controllers/MJGL/Sc_MouldStatusChangeBillController.cs @@ -0,0 +1,286 @@ +锘縰sing DBUtility; +using Model; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.MJGL +{ + public class Sc_MouldStatusChangeBillController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region [鍣ㄥ叿鐘舵�佸彉鏇村崟鍒楄〃] + [Route("Sc_MouldStatusChangeBill/list")] + [HttpGet] + public object list(string sWhere, string user) + { + try + { + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Sc_MouldStatusChangeBillList order by HMainID asc", "h_v_Sc_MouldStatusChangeBillList"); + } + else + { + string sql1 = "select * from h_v_Sc_MouldStatusChangeBillList where 1 = 1 "; + string sql = sql1 + sWhere + " order by HMainID asc"; + ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldStatusChangeBillList"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鏍规嵁ID鏌ユ壘璁板綍] + [Route("Sc_MouldStatusChangeBill/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + + ds = oCN.RunProcReturn("select * from h_v_Sc_MouldStatusChangeBillList where HMainID =" + HInterID, "h_v_Sc_MouldStatusChangeBillList"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鍣ㄥ叿鐘舵�佸彉鏇村崟 淇濆瓨/缂栬緫鍔熻兘 + [Route("Sc_MouldStatusChangeBill/MouldStatusChangeBillEdit")] + [HttpPost] + public object BarCodeStatusChangeBillEdit([FromBody] JObject sMainSub) + { + try + { + var _value = sMainSub["sMainSub"].ToString(); + string msg1 = _value.ToString(); + oCN.BeginTran(); + //淇濆瓨涓昏〃 + objJsonResult = AddBillMain(msg1); + if (objJsonResult.code == "0") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + 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 = "淇濆瓨澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillMain(string msg1) + { + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); //涓昏〃鏁版嵁 + string msg3 = sArray[1].ToString(); //瀛愯〃鏁版嵁 + int OperationType = int.Parse(sArray[2].ToString()); // 鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string user = sArray[3].ToString(); + + try + { + msg2 = "[" + msg2.ToString() + "]"; + List<ClsSc_MouldStatusChangeBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_MouldStatusChangeBillMain>>(msg2); + + long HInterID = mainList[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D + string HBillNo = mainList[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿 + long HBillStatus = 1;//鍗曟嵁鐘舵�� + DateTime HDate = mainList[0].HDate;//鏃ユ湡 + string HRemark = mainList[0].HRemark;//澶囨敞 + long HEmpID = mainList[0].HEmpID;//璐熻矗浜� + long HDeptID = mainList[0].HDeptID;//閮ㄩ棬 + string HReason = mainList[0].HReason;//鍙樻洿鍘熷洜 + string HExplanation = mainList[0].HExplanation;//鎽樿 + string HMaker = user;//鍒跺崟浜� + + DateTime dt = DateTime.Now; + + + + //ds = oCN.RunProcReturn("select * from h_v_IF_POOrderBillList where hmainid=" + HInterID + " and 鍗曟嵁鍙�='" + HBillNo + "'", "h_v_IF_POOrderBillList"); + + if ((OperationType == 1 || OperationType == 2))//鏂板 && ds.Tables[0].Rows.Count == 0 + { + //DataSet Ds; + //Int64 NewHInterID = 1; + //Ds = oCN.RunProcReturn("select MAX(HInterID)HInterID from Cg_POOrderBillMain", "Cg_POOrderBillMain"); + //if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + //{ + // NewHInterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + // NewHInterID += 1; + //} + //涓昏〃 + oCN.RunProc(@"Insert Into Sc_MouldStatusChangeBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HEmpID,HDeptID,HReason,HExplanation,HInnerBillNo) + values(" + HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3844 + "','" + + mainList[0].HBillSubType + "','" + HDate + "','" + HBillNo + "','" + HBillStatus + "','" + mainList[0].HRemark + + "','" + mainList[0].HBackRemark + "','" + mainList[0].HMaker + "','" + dt + "','" + mainList[0].HMainSourceBillType + "'," + mainList[0].HMainSourceInterID + + "," + mainList[0].HMainSourceEntryID + ",'" + mainList[0].HMainSourceBillNo + "'," + mainList[0].HPrintQty + "," + mainList[0].HEmpID + "," + mainList[0].HDeptID + ",'" + HReason + "','" + HExplanation + "','" + mainList[0].HInnerBillNo + "'" + ")"); + } + else if (OperationType == 3)//|| ds.Tables[0].Rows.Count != 0 + { //淇敼 + oCN.RunProc("update Sc_MouldStatusChangeBillMain set " + + "HRemark='" + HRemark + "', HChecker='" + HMaker + "', HCheckDate=getdate()" + ",HReason='" + HReason + + "',HExplanation='" + HExplanation + "',HEmpID=" + HEmpID + ",HDeptID=" + HDeptID + " where HInterID=" + HInterID); + + //鍒犻櫎瀛愯〃 + oCN.RunProc("delete from Sc_MouldStatusChangeBillSub where HInterID='" + HInterID + "'"); + } + //淇濆瓨瀛愯〃 + objJsonResult = AddBillSub(msg3, HInterID, OperationType, HBillNo); + + if (objJsonResult.code == "0") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillSub(string msg3, long HInterID, int OperationType,string HBillNo) + { + List<ClsSc_MouldStatusChangeBillSub> DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_MouldStatusChangeBillSub>>(msg3); + + + + int i = 0; + foreach (ClsSc_MouldStatusChangeBillSub oSub in DetailColl) + { + i++; + + DataSet Cs; + Int64 NewHEntryID = 1; + Cs = oCN.RunProcReturn("select MAX(HEntryID)HEntryID from Sc_MouldStatusChangeBillSub", "Sc_MouldStatusChangeBillSub"); + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()) != 0) + { + NewHEntryID = ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()); + NewHEntryID += 1; + } + + oCN.RunProc($@"Insert into Sc_MouldStatusChangeBillSub + (HInterID,HEntryID,HBillNo_bak,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty + ,HRelationMoney,HMaterID,HUnitID,HQtyMust,HQty,HStatusID_Old,HStatusID_New) + values({HInterID},{NewHEntryID},'{ HBillNo }','{oSub.HRemark}',{oSub.HSourceInterID} + ,{oSub.HSourceEntryID},'{oSub.HSourceBillNo}','{oSub.HSourceBillType}',{oSub.HRelationQty},{oSub.HRelationMoney},{oSub.HMaterID},{oSub.HUnitID},{0},{oSub.HQty},{oSub.HStatusID_Old},{oSub.HStatusID_New})"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + + #region [鍒犻櫎] + [Route("Sc_MouldStatusChangeBill/Delete")] + [HttpGet] + public object Delete(string HInterID, string user) + { + try + { + oCN.BeginTran(); + oCN.RunProc("Delete From Sc_MouldStatusChangeBillMain where HInterID = " + HInterID); + oCN.RunProc("Delete From Sc_MouldStatusChangeBillSub where HInterID = " + HInterID); + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/MoveStockBillController.cs b/WebAPI/Controllers/MoveStockBillController.cs index bd3d0e2..fa54883 100644 --- a/WebAPI/Controllers/MoveStockBillController.cs +++ b/WebAPI/Controllers/MoveStockBillController.cs @@ -618,6 +618,7 @@ websLsmain.HMainSourceBillType = "-1"; websLsmain.HStockStyle = ""; websLsmain.HBillType = "1207"; + websLsmain.HBillSubType = lsmain[0].HBillSubType; websLsmain.HSupID = 0; //websLsmain.HGroupID = lsmain[0].HGroupID; string sErrMsg = ""; diff --git a/WebAPI/Controllers/OtherInStockController.cs b/WebAPI/Controllers/OtherInStockController.cs index 72a4c4b..70e3286 100644 --- a/WebAPI/Controllers/OtherInStockController.cs +++ b/WebAPI/Controllers/OtherInStockController.cs @@ -355,6 +355,7 @@ websLsmain.HOWNERID = lsmain[0].HSTOCKORGID; websLsmain.HKeeperID = lsmain[0].HKeeperID; websLsmain.HBillType = "1203";//鍥哄畾鍊� + websLsmain.HBillSubType = lsmain[0].HBillSubType; WebS.WebService1 oWebs = new WebS.WebService1(); WebS.ClsXt_SystemParameterMain oSystemParameterMain = new WebS.ClsXt_SystemParameterMain(); diff --git a/WebAPI/Controllers/OtherOutBillController.cs b/WebAPI/Controllers/OtherOutBillController.cs index a1c3c53..a6483f8 100644 --- a/WebAPI/Controllers/OtherOutBillController.cs +++ b/WebAPI/Controllers/OtherOutBillController.cs @@ -442,6 +442,7 @@ websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID; websLsmain.HOWNERID = lsmain[0].HOWNERID; websLsmain.HBillType = "1206";//鍥哄畾鍊� + websLsmain.HBillSubType = lsmain[0].HBillSubType; WebS.WebService1 oWebs = new WebS.WebService1(); WebS.ClsXt_SystemParameterMain oSystemParameterMain = new WebS.ClsXt_SystemParameterMain(); if (oWebs.set_SaveOtherOutBill_New(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo)) diff --git a/WebAPI/Controllers/ProductInController.cs b/WebAPI/Controllers/ProductInController.cs index d184a0a..d59654b 100644 --- a/WebAPI/Controllers/ProductInController.cs +++ b/WebAPI/Controllers/ProductInController.cs @@ -1153,8 +1153,8 @@ List<Model.ClsKf_ProductInBillMain> lsmain = new List<Model.ClsKf_ProductInBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getProductInBillMainByJson(msg1); - lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); - lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); + //lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + //lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); string sSourceBillType = lsmain[0].HBillType; WebAPI.WebS.ClsKf_ProductInBillMain websLsmain = new WebS.ClsKf_ProductInBillMain(); diff --git a/WebAPI/Controllers/PublicPageMethodController.cs b/WebAPI/Controllers/PublicPageMethodController.cs index cfcda44..b6f02c4 100644 --- a/WebAPI/Controllers/PublicPageMethodController.cs +++ b/WebAPI/Controllers/PublicPageMethodController.cs @@ -2070,7 +2070,7 @@ } else { - string sql1 = "Select HItemID,HParentID,HNumber,HName from h_v_IF_Unit "; + string sql1 = "Select HItemID,HParentID,HNumber,HName from h_v_IF_Unit "; string sql = sql1 + sWhere; ds = oCN.RunProcReturn(sql, "h_v_IF_Unit"); } @@ -2188,22 +2188,12 @@ string sql = sql1 + sWhere; ds = oCN.RunProcReturn(sql, "Gy_Property"); } - 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 = ds.Tables[0]; - return objJsonResult; - } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; } catch (Exception e) { diff --git a/WebAPI/Controllers/SBGL/SBTC/Sb_EquipStockInCheckBillController.cs b/WebAPI/Controllers/SBGL/SBTC/Sb_EquipStockInCheckBillController.cs new file mode 100644 index 0000000..055a6fc --- /dev/null +++ b/WebAPI/Controllers/SBGL/SBTC/Sb_EquipStockInCheckBillController.cs @@ -0,0 +1,287 @@ +锘縰sing DBUtility; +using Model; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + + +namespace WebAPI.Controllers.SBGL.SBTC +{ + public class Sb_EquipStockInCheckBillController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region [璁惧鍏ュ簱妫�楠岄獙鏀跺崟鍒楄〃] + [Route("Sb_EquipStockInCheckBill/list")] + [HttpGet] + public object list(string sWhere, string user) + { + try + { + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipStockInCheckBillList order by hmainid asc", "h_v_Sb_EquipStockInCheckBillList"); + } + else + { + string sql1 = "select * from h_v_Sb_EquipStockInCheckBillList where 1 = 1 "; + string sql = sql1 + sWhere + " order by hmainid asc"; + ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipStockInCheckBillList"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鏍规嵁ID鏌ユ壘璁板綍] + [Route("Sb_EquipStockInCheckBill/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipStockInCheckBillList where hmainid =" + HInterID, "h_v_Sb_EquipStockInCheckBillList"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 璁惧鍏ュ簱妫�楠岄獙鏀跺崟 淇濆瓨/缂栬緫鍔熻兘 + [Route("Sb_EquipStockInCheckBill/EquipStockInCheckBillEdit")] + [HttpPost] + public object EquipStockInCheckBillEdit([FromBody] JObject sMainSub) + { + try + { + var _value = sMainSub["sMainSub"].ToString(); + string msg1 = _value.ToString(); + oCN.BeginTran(); + //淇濆瓨涓昏〃 + objJsonResult = AddBillMain(msg1); + if (objJsonResult.code == "0") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + 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 = "淇濆瓨澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillMain(string msg1) + { + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); //涓昏〃鏁版嵁 + string msg3 = sArray[1].ToString(); //瀛愯〃鏁版嵁 + int OperationType = int.Parse(sArray[2].ToString()); // 鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string user = sArray[3].ToString(); + + try + { + msg2 = "[" + msg2.ToString() + "]"; + List<ClsSb_EquipStockInCheckBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipStockInCheckBillMain>>(msg2); + + long HInterID = mainList[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D + string HBillNo = mainList[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿 + long HBillStatus = 1;//鍗曟嵁鐘舵�� + DateTime HDate = mainList[0].HDate;//鏃ユ湡 + string HRemark = mainList[0].HRemark;//澶囨敞 + long HSupID = mainList[0].HSupID;//妫�娴嬪晢 + long HEquipID = mainList[0].HEquipID;//璁惧 + long HFirstCheckEmp = mainList[0].HFirstCheckEmp;//妫�楠屽憳 + string HCheckerResult = mainList[0].HCheckerResult;//鎽樿 + string HMaker = user;//鍒跺崟浜� + + DateTime dt = DateTime.Now; + + + + //ds = oCN.RunProcReturn("select * from h_v_IF_POOrderBillList where hmainid=" + HInterID + " and 鍗曟嵁鍙�='" + HBillNo + "'", "h_v_IF_POOrderBillList"); + + if ((OperationType == 1 || OperationType == 2))//鏂板 && ds.Tables[0].Rows.Count == 0 + { + //DataSet Ds; + //Int64 NewHInterID = 1; + //Ds = oCN.RunProcReturn("select MAX(HInterID)HInterID from Cg_POOrderBillMain", "Cg_POOrderBillMain"); + //if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + //{ + // NewHInterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + // NewHInterID += 1; + //} + //涓昏〃 + oCN.RunProc(@"Insert Into Sb_EquipStockInCheckBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HSupID,HEquipID,HFirstCheckEmp,HCheckerResult) + values(" + HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3914 + "','" + + mainList[0].HBillSubType + "','" + HDate + "','" + HBillNo + "','" + HBillStatus + "','" + mainList[0].HRemark + + "','" + mainList[0].HBackRemark + "','" + mainList[0].HMaker + "','" + dt + "','" + mainList[0].HMainSourceBillType + "'," + mainList[0].HMainSourceInterID + + "," + mainList[0].HMainSourceEntryID + ",'" + mainList[0].HMainSourceBillNo + "'," + mainList[0].HPrintQty + "," + mainList[0].HSupID + ",'" + HEquipID + "'," + HFirstCheckEmp + ",'" + mainList[0].HCheckerResult + "'" + ")"); + } + else if (OperationType == 3)//|| ds.Tables[0].Rows.Count != 0 + { //淇敼 + oCN.RunProc("update Sb_EquipStockInCheckBillMain set " + + "HRemark='" + HRemark + "', HChecker='" + HMaker + "', HCheckDate=getdate()" + ",HCheckerResult='" + HCheckerResult + + "',HSupID=" + HSupID + ",HEquipID=" + HEquipID + ",HFirstCheckEmp=" + HFirstCheckEmp + " where HInterID=" + HInterID); + + //鍒犻櫎瀛愯〃 + oCN.RunProc("delete from Sb_EquipStockInCheckBillSub where HInterID='" + HInterID + "'"); + } + //淇濆瓨瀛愯〃 + objJsonResult = AddBillSub(msg3, HInterID, OperationType, HBillNo); + + if (objJsonResult.code == "0") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillSub(string msg3, long HInterID, int OperationType, string HBillNo) + { + List<ClsSb_EquipStockInCheckBillSub> DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipStockInCheckBillSub>>(msg3); + + + + int i = 0; + foreach (ClsSb_EquipStockInCheckBillSub oSub in DetailColl) + { + i++; + + DataSet Cs; + Int64 NewHEntryID = 1; + Cs = oCN.RunProcReturn("select MAX(HEntryID)HEntryID from Sb_EquipStockInCheckBillSub", "Sb_EquipStockInCheckBillSub"); + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()) != 0) + { + NewHEntryID = ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()); + NewHEntryID += 1; + } + + oCN.RunProc($@"Insert into Sb_EquipStockInCheckBillSub + (HInterID,HEntryID,HBillNo_bak,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty + ,HRelationMoney,HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult,HProcCheckEmp,HProcCheckTime) + values({HInterID},{NewHEntryID},'{ HBillNo }','{oSub.HRemark}',{oSub.HSourceInterID} + ,{oSub.HSourceEntryID},'{oSub.HSourceBillNo}','{oSub.HSourceBillType}',{oSub.HRelationQty},{oSub.HRelationMoney},{oSub.HQCCheckClassID},{oSub.HQCCheckItemID},'{oSub.HQCStd}','{oSub.HQCRelValue}','{oSub.HResult}',{oSub.HProcCheckEmp},'{oSub.HProcCheckTime}')"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + + #region [鍒犻櫎] + [Route("Sb_EquipStockInCheckBill/Delete")] + [HttpGet] + public object Delete(string HInterID, string user) + { + try + { + oCN.BeginTran(); + oCN.RunProc("Delete From Sb_EquipStockInCheckBillMain where HInterID = " + HInterID); + oCN.RunProc("Delete From Sb_EquipStockInCheckBillSub where HInterID = " + HInterID); + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/SBGL/SBTC/Sb_EquipWorkBeforeCheckBillController.cs b/WebAPI/Controllers/SBGL/SBTC/Sb_EquipWorkBeforeCheckBillController.cs new file mode 100644 index 0000000..8cee34d --- /dev/null +++ b/WebAPI/Controllers/SBGL/SBTC/Sb_EquipWorkBeforeCheckBillController.cs @@ -0,0 +1,286 @@ +锘縰sing DBUtility; +using Model; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.SBGL.SBTC +{ + public class Sb_EquipWorkBeforeCheckBillController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region [璁惧鎶曚骇妫�楠岄獙鏀跺崟鍒楄〃] + [Route("Sb_EquipWorkBeforeCheckBill/list")] + [HttpGet] + public object list(string sWhere, string user) + { + try + { + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipWorkBeforeCheckBillList order by hmainid asc", "h_v_Sb_EquipWorkBeforeCheckBillList"); + } + else + { + string sql1 = "select * from h_v_Sb_EquipWorkBeforeCheckBillList where 1 = 1 "; + string sql = sql1 + sWhere + " order by hmainid asc"; + ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipWorkBeforeCheckBillList"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鏍规嵁ID鏌ユ壘璁板綍] + [Route("Sb_EquipWorkBeforeCheckBill/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipWorkBeforeCheckBillList where hmainid =" + HInterID, "h_v_Sb_EquipWorkBeforeCheckBillList"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 璁惧鎶曚骇妫�楠岄獙鏀跺崟 淇濆瓨/缂栬緫鍔熻兘 + [Route("Sb_EquipWorkBeforeCheckBill/EquipWorkBeforeCheckBillEdit")] + [HttpPost] + public object EquipWorkBeforeCheckBillEdit([FromBody] JObject sMainSub) + { + try + { + var _value = sMainSub["sMainSub"].ToString(); + string msg1 = _value.ToString(); + oCN.BeginTran(); + //淇濆瓨涓昏〃 + objJsonResult = AddBillMain(msg1); + if (objJsonResult.code == "0") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + 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 = "淇濆瓨澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillMain(string msg1) + { + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); //涓昏〃鏁版嵁 + string msg3 = sArray[1].ToString(); //瀛愯〃鏁版嵁 + int OperationType = int.Parse(sArray[2].ToString()); // 鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string user = sArray[3].ToString(); + + try + { + msg2 = "[" + msg2.ToString() + "]"; + List<ClsSb_EquipWorkBeforeCheckBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipWorkBeforeCheckBillMain>>(msg2); + + long HInterID = mainList[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D + string HBillNo = mainList[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿 + long HBillStatus = 1;//鍗曟嵁鐘舵�� + DateTime HDate = mainList[0].HDate;//鏃ユ湡 + string HRemark = mainList[0].HRemark;//澶囨敞 + long HSupID = mainList[0].HSupID;//妫�娴嬪晢 + long HEquipID = mainList[0].HEquipID;//璁惧 + long HFirstCheckEmp = mainList[0].HFirstCheckEmp;//妫�楠屽憳 + string HCheckerResult = mainList[0].HCheckerResult;//鎽樿 + string HMaker = user;//鍒跺崟浜� + + DateTime dt = DateTime.Now; + + + + //ds = oCN.RunProcReturn("select * from h_v_IF_POOrderBillList where hmainid=" + HInterID + " and 鍗曟嵁鍙�='" + HBillNo + "'", "h_v_IF_POOrderBillList"); + + if ((OperationType == 1 || OperationType == 2))//鏂板 && ds.Tables[0].Rows.Count == 0 + { + //DataSet Ds; + //Int64 NewHInterID = 1; + //Ds = oCN.RunProcReturn("select MAX(HInterID)HInterID from Cg_POOrderBillMain", "Cg_POOrderBillMain"); + //if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + //{ + // NewHInterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + // NewHInterID += 1; + //} + //涓昏〃 + oCN.RunProc(@"Insert Into Sb_EquipWorkBeforeCheckBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HSupID,HEquipID,HFirstCheckEmp,HCheckerResult) + values(" + HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3915 + "','" + + mainList[0].HBillSubType + "','" + HDate + "','" + HBillNo + "','" + HBillStatus + "','" + mainList[0].HRemark + + "','" + mainList[0].HBackRemark + "','" + mainList[0].HMaker + "','" + dt + "','" + mainList[0].HMainSourceBillType + "'," + mainList[0].HMainSourceInterID + + "," + mainList[0].HMainSourceEntryID + ",'" + mainList[0].HMainSourceBillNo + "'," + mainList[0].HPrintQty + "," + mainList[0].HSupID + ",'" + HEquipID + "'," + HFirstCheckEmp + ",'" + mainList[0].HCheckerResult + "'" + ")"); + } + else if (OperationType == 3)//|| ds.Tables[0].Rows.Count != 0 + { //淇敼 + oCN.RunProc("update Sb_EquipWorkBeforeCheckBillMain set " + + "HRemark='" + HRemark + "', HChecker='" + HMaker + "', HCheckDate=getdate()" + ",HCheckerResult='" + HCheckerResult + + "',HSupID=" + HSupID + ",HEquipID=" + HEquipID + ",HFirstCheckEmp=" + HFirstCheckEmp + " where HInterID=" + HInterID); + + //鍒犻櫎瀛愯〃 + oCN.RunProc("delete from Sb_EquipWorkBeforeCheckBillSub where HInterID='" + HInterID + "'"); + } + //淇濆瓨瀛愯〃 + objJsonResult = AddBillSub(msg3, HInterID, OperationType, HBillNo); + + if (objJsonResult.code == "0") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillSub(string msg3, long HInterID, int OperationType, string HBillNo) + { + List<ClsSb_EquipWorkBeforeCheckBillSub> DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipWorkBeforeCheckBillSub>>(msg3); + + + + int i = 0; + foreach (ClsSb_EquipWorkBeforeCheckBillSub oSub in DetailColl) + { + i++; + + DataSet Cs; + Int64 NewHEntryID = 1; + Cs = oCN.RunProcReturn("select MAX(HEntryID)HEntryID from Sb_EquipWorkBeforeCheckBillSub", "Sb_EquipWorkBeforeCheckBillSub"); + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()) != 0) + { + NewHEntryID = ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()); + NewHEntryID += 1; + } + + oCN.RunProc($@"Insert into Sb_EquipWorkBeforeCheckBillSub + (HInterID,HEntryID,HBillNo_bak,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty + ,HRelationMoney,HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult,HProcCheckEmp,HProcCheckTime) + values({HInterID},{NewHEntryID},'{ HBillNo }','{oSub.HRemark}',{oSub.HSourceInterID} + ,{oSub.HSourceEntryID},'{oSub.HSourceBillNo}','{oSub.HSourceBillType}',{oSub.HRelationQty},{oSub.HRelationMoney},{oSub.HQCCheckClassID},{oSub.HQCCheckItemID},'{oSub.HQCStd}','{oSub.HQCRelValue}','{oSub.HResult}',{oSub.HProcCheckEmp},'{oSub.HProcCheckTime}')"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + + #region [鍒犻櫎] + [Route("Sb_EquipWorkBeforeCheckBill/Delete")] + [HttpGet] + public object Delete(string HInterID, string user) + { + try + { + oCN.BeginTran(); + oCN.RunProc("Delete From Sb_EquipWorkBeforeCheckBillMain where HInterID = " + HInterID); + oCN.RunProc("Delete From Sb_EquipWorkBeforeCheckBillSub where HInterID = " + HInterID); + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/SBGL/Sb_EquipDotCheckRuleBillController.cs b/WebAPI/Controllers/SBGL/Sb_EquipDotCheckRuleBillController.cs index 1b8df03..9ac86d4 100644 --- a/WebAPI/Controllers/SBGL/Sb_EquipDotCheckRuleBillController.cs +++ b/WebAPI/Controllers/SBGL/Sb_EquipDotCheckRuleBillController.cs @@ -173,24 +173,16 @@ try { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); - if (sqlWhere == null || sqlWhere.Equals("")) - { - ds = oCN.RunProcReturn("select 鐐规椤圭洰ID HDotCheckItemID,鐐规椤圭洰 HDotCheckItem,鐐规閮ㄤ綅 HDotCheckPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜� HManagerName,瀛愬娉� HRemark from h_v_Sb_EquipDotCheckRuleList", "h_v_Sb_EquipDotCheckRuleList"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } - else - { - string sql1 = "select 鐐规椤圭洰ID HDotCheckItemID,鐐规椤圭洰 HDotCheckItem,鐐规閮ㄤ綅 HDotCheckPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜� HManagerName,瀛愬娉� HRemark from h_v_Sb_EquipDotCheckRuleList where 1 = 1 "; - string sql = sql1 + sqlWhere; - ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipDotCheckRuleList"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } + + string sql1 = @"select 鐐规椤圭洰ID HDotCheckItemID,鐐规椤圭洰 HDotCheckItem,鐐规閮ㄤ綅 HDotCheckPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜� HManagerName,瀛愬娉� HRemark,b.HNumber 鐐规椤圭洰浠g爜 from h_v_Sb_EquipDotCheckRuleList a + left join Gy_QCCheckItem b on a.鐐规椤圭洰ID =b.HItemID where 1 = 1 "; + string sql = sql1 + sqlWhere; + ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipDotCheckRuleList"); + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + } catch (Exception e) { diff --git a/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs b/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs index 0467e3a..5494a1d 100644 --- a/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs +++ b/WebAPI/Controllers/SBGL/Sb_EquipMaintainRuleBillController.cs @@ -55,23 +55,13 @@ string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 } - //if (ds.Tables[0].Rows.Count != 0 || ds != null) - //{ + objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; - //} - //else - //{ - //objJsonResult.code = "0"; - //objJsonResult.count = 0; - //objJsonResult.Message = "鏃犳暟鎹�"; - //objJsonResult.data = null; - //return objJsonResult; - //} } catch (Exception ex) { @@ -177,11 +167,11 @@ } SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); //鑾峰彇淇濆吇椤圭洰缂栬緫鏁版嵁 - string sql = "select 淇濆吇椤圭洰ID,淇濆吇椤圭洰,淇濆吇閮ㄤ綅,鍏蜂綋瑕佹眰,璐熻矗浜篒D,璐熻矗浜轰唬鐮�,璐熻矗浜哄悕绉�,瀛愬娉�2 from h_v_Sb_EquipMaintainRuleList where 1 = 1 " + Swhere + ""; - ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipMaintainRuleList"); + string sql = "select 淇濆吇椤圭洰ID,淇濆吇椤圭洰,淇濆吇閮ㄤ綅,鍏蜂綋瑕佹眰,璐熻矗浜篒D,璐熻矗浜轰唬鐮�,璐熻矗浜哄悕绉�,瀛愬娉�2 from h_v_Sb_EquipMaintainRuleSub_Item where 1 = 1 " + Swhere + ""; + ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipMaintainRuleSub_Item"); //鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 - string sql1 = "select 閰嶄欢ID,閰嶄欢浠g爜,閰嶄欢鍚嶇О,鍗曚綅ID,璁¢噺鍗曚綅浠g爜,璁¢噺鍗曚綅鍚嶇О,鐢ㄩ噺,鏍囧噯鐢ㄩ噺,瀛愬娉�1 from h_v_Sb_EquipMaintainRuleList where 1 = 1 " + Swhere + ""; - ds1 = oCN.RunProcReturn(sql1, "h_v_Sb_EquipMaintainRuleList"); + string sql1 = "select 閰嶄欢ID,閰嶄欢浠g爜,閰嶄欢鍚嶇О,鍗曚綅ID,璁¢噺鍗曚綅浠g爜,璁¢噺鍗曚綅鍚嶇О,鐢ㄩ噺,鏍囧噯鐢ㄩ噺,瀛愬娉�1 from h_v_Sb_EquipMaintainRuleSub where 1 = 1 " + Swhere + ""; + ds1 = oCN.RunProcReturn(sql1, "h_v_Sb_EquipMaintainRuleSub"); list.Add(ds.Tables[0]); list.Add(ds1.Tables[0]); @@ -237,11 +227,11 @@ } SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); //鑾峰彇淇濆吇椤圭洰缂栬緫鏁版嵁 - string sql = "select 淇濆吇椤圭洰ID HMaintainItemID,淇濆吇椤圭洰浠g爜 HMaintainItemNumber,淇濆吇椤圭洰 HMaintainItem,淇濆吇閮ㄤ綅 HMaintainPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark from h_v_Sb_EquipMaintainRuleList where 1 = 1 " + Swhere + ""; - ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipMaintainRuleList"); + string sql = "select 淇濆吇椤圭洰ID HMaintainItemID,淇濆吇椤圭洰浠g爜 HMaintainItemNumber,淇濆吇椤圭洰 HMaintainItem,淇濆吇閮ㄤ綅 HMaintainPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark from h_v_Sb_EquipMaintainRuleSub_Item where 1 = 1 " + Swhere + ""; + ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipMaintainRuleSub_Item"); //鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 - string sql1 = "select 閰嶄欢ID HMaterID,閰嶄欢浠g爜 HMaterNumber,閰嶄欢鍚嶇О HMaterName,鍗曚綅ID HUnitID,璁¢噺鍗曚綅浠g爜 HUnitNumber,璁¢噺鍗曚綅鍚嶇О HUnitName,鐢ㄩ噺 HQty,瀛愬娉�1 HRemark from h_v_Sb_EquipMaintainRuleList where 1 = 1 " + Swhere + ""; - ds1 = oCN.RunProcReturn(sql1, "h_v_Sb_EquipMaintainRuleList"); + string sql1 = "select 閰嶄欢ID HMaterID,閰嶄欢浠g爜 HMaterNumber,閰嶄欢鍚嶇О HMaterName,鍗曚綅ID HUnitID,璁¢噺鍗曚綅浠g爜 HUnitNumber,璁¢噺鍗曚綅鍚嶇О HUnitName,鐢ㄩ噺 HQty,瀛愬娉�1 HRemark from h_v_Sb_EquipMaintainRuleSub where 1 = 1 " + Swhere + ""; + ds1 = oCN.RunProcReturn(sql1, "h_v_Sb_EquipMaintainRuleSub"); list.Add(ds.Tables[0]); list.Add(ds1.Tables[0]); diff --git a/WebAPI/Controllers/SBGL/Sb_EquipStatusChangeBillController.cs b/WebAPI/Controllers/SBGL/Sb_EquipStatusChangeBillController.cs new file mode 100644 index 0000000..dfd8759 --- /dev/null +++ b/WebAPI/Controllers/SBGL/Sb_EquipStatusChangeBillController.cs @@ -0,0 +1,287 @@ +锘縰sing DBUtility; +using Model; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + + +namespace WebAPI.Controllers.SBGL +{ + public class Sb_EquipStatusChangeBillController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region [璁惧鐘舵�佸彉鏇村崟鍒楄〃] + [Route("Sb_EquipStatusChangeBill/list")] + [HttpGet] + public object list(string sWhere, string user) + { + try + { + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipStatusChangeBillList order by HMainID asc", "h_v_Sb_EquipStatusChangeBillList"); + } + else + { + string sql1 = "select * from h_v_Sb_EquipStatusChangeBillList where 1 = 1 "; + string sql = sql1 + sWhere + " order by HMainID asc"; + ds = oCN.RunProcReturn(sql, "h_v_Sb_EquipStatusChangeBillList"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region [鏍规嵁ID鏌ユ壘璁板綍] + [Route("Sb_EquipStatusChangeBill/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipStatusChangeBillList where HMainID =" + HInterID, "h_v_Sb_EquipStatusChangeBillList"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 璁惧鐘舵�佸彉鏇村崟 淇濆瓨/缂栬緫鍔熻兘 + [Route("Sb_EquipStatusChangeBill/EquipStatusChangeBillEdit")] + [HttpPost] + public object BarCodeStatusChangeBillEdit([FromBody] JObject sMainSub) + { + try + { + var _value = sMainSub["sMainSub"].ToString(); + string msg1 = _value.ToString(); + oCN.BeginTran(); + //淇濆瓨涓昏〃 + objJsonResult = AddBillMain(msg1); + if (objJsonResult.code == "0") + { + oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + 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 = "淇濆瓨澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillMain(string msg1) + { + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); //涓昏〃鏁版嵁 + string msg3 = sArray[1].ToString(); //瀛愯〃鏁版嵁 + int OperationType = int.Parse(sArray[2].ToString()); // 鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string user = sArray[3].ToString(); + + try + { + msg2 = "[" + msg2.ToString() + "]"; + List<ClsSb_EquipStatusChangeBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipStatusChangeBillMain>>(msg2); + + long HInterID = mainList[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D + string HBillNo = mainList[0].HBillNo;//閫掑叆type寰楀埌鐨勫崟鎹彿 + long HBillStatus = 1;//鍗曟嵁鐘舵�� + DateTime HDate = mainList[0].HDate;//鏃ユ湡 + string HRemark = mainList[0].HRemark;//澶囨敞 + long HEmpID = mainList[0].HEmpID;//鐢宠浜� + long HDeptID = mainList[0].HDeptID;//閮ㄩ棬 + string HReason = mainList[0].HReason;//鍙樻洿鍘熷洜 + string HExplanation = mainList[0].HExplanation;//鎽樿 + string HMaker = user;//鍒跺崟浜� + + DateTime dt = DateTime.Now; + + + + //ds = oCN.RunProcReturn("select * from h_v_IF_POOrderBillList where hmainid=" + HInterID + " and 鍗曟嵁鍙�='" + HBillNo + "'", "h_v_IF_POOrderBillList"); + + if ((OperationType == 1 || OperationType == 2))//鏂板 && ds.Tables[0].Rows.Count == 0 + { + //DataSet Ds; + //Int64 NewHInterID = 1; + //Ds = oCN.RunProcReturn("select MAX(HInterID)HInterID from Cg_POOrderBillMain", "Cg_POOrderBillMain"); + //if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + //{ + // NewHInterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + // NewHInterID += 1; + //} + //涓昏〃 + oCN.RunProc(@"Insert Into Sb_EquipStatusChangeBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus + ,HRemark,HBackRemark,HMaker,HMakeDate,HMainSourceBillType,HMainSourceInterID + ,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HEmpID,HDeptID,HReason,HExplanation,HInnerBillNo) + values(" + HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3916 + "','" + + mainList[0].HBillSubType + "','" + HDate + "','" + HBillNo + "','" + HBillStatus + "','" + mainList[0].HRemark + + "','" + mainList[0].HBackRemark + "','" + mainList[0].HMaker + "','" + dt + "','" + mainList[0].HMainSourceBillType + "'," + mainList[0].HMainSourceInterID + + "," + mainList[0].HMainSourceEntryID + ",'" + mainList[0].HMainSourceBillNo + "'," + mainList[0].HPrintQty + "," + mainList[0].HEmpID + "," + mainList[0].HDeptID + ",'" + HReason + "','" + HExplanation + "','" + mainList[0].HInnerBillNo + "'" + ")"); + } + else if (OperationType == 3)//|| ds.Tables[0].Rows.Count != 0 + { //淇敼 + oCN.RunProc("update Sb_EquipStatusChangeBillMain set " + + "HRemark='" + HRemark + "', HChecker='" + HMaker + "', HCheckDate=getdate()" + ",HReason='" + HReason + + "',HExplanation='" + HExplanation + "',HEmpID=" + HEmpID + ",HDeptID=" + HDeptID + " where HInterID=" + HInterID); + + //鍒犻櫎瀛愯〃 + oCN.RunProc("delete from Sb_EquipStatusChangeBillSub where HInterID='" + HInterID + "'"); + } + //淇濆瓨瀛愯〃 + objJsonResult = AddBillSub(msg3, HInterID, OperationType, HBillNo); + + if (objJsonResult.code == "0") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = objJsonResult.Message; + objJsonResult.data = null; + return objJsonResult; + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + public json AddBillSub(string msg3, long HInterID, int OperationType, string HBillNo) + { + List<ClsSb_EquipStatusChangeBillSub> DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_EquipStatusChangeBillSub>>(msg3); + + + + int i = 0; + foreach (ClsSb_EquipStatusChangeBillSub oSub in DetailColl) + { + i++; + + DataSet Cs; + Int64 NewHEntryID = 1; + Cs = oCN.RunProcReturn("select MAX(HEntryID)HEntryID from Sb_EquipStatusChangeBillSub", "Sb_EquipStatusChangeBillSub"); + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()) != 0) + { + NewHEntryID = ClsPub.isLong(Cs.Tables[0].Rows[0]["HEntryID"].ToString()); + NewHEntryID += 1; + } + + oCN.RunProc($@"Insert into Sb_EquipStatusChangeBillSub + (HInterID,HEntryID,HBillNo_bak,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty + ,HRelationMoney,HEquipID,HUnitID,HQtyMust,HQty,HStatusID_Old,HStatusID_New) + values({HInterID},{NewHEntryID},'{ HBillNo }','{oSub.HRemark}',{oSub.HSourceInterID} + ,{oSub.HSourceEntryID},'{oSub.HSourceBillNo}','{oSub.HSourceBillType}',{oSub.HRelationQty},{oSub.HRelationMoney},{oSub.HEquipID},{oSub.HUnitID},{0},{oSub.HQty},{oSub.HStatusID_Old},{oSub.HStatusID_New})"); + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = null; + objJsonResult.data = null; + return objJsonResult; + } + #endregion + + #region [鍒犻櫎] + [Route("Sb_EquipStatusChangeBill/Delete")] + [HttpGet] + public object Delete(string HInterID, string user) + { + try + { + oCN.BeginTran(); + oCN.RunProc("Delete From Sb_EquipStatusChangeBillMain where HInterID = " + HInterID); + oCN.RunProc("Delete From Sb_EquipStatusChangeBillSub where HInterID = " + HInterID); + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/SBGL/Sb_EquipStockInCheckBillSController.cs b/WebAPI/Controllers/SBGL/Sb_EquipStockInCheckBillSController.cs new file mode 100644 index 0000000..3a39f6a --- /dev/null +++ b/WebAPI/Controllers/SBGL/Sb_EquipStockInCheckBillSController.cs @@ -0,0 +1,421 @@ +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.SBGL +{ + public class Sb_EquipStockInCheckBillSController : ApiController + { + private json objJsonResult = new json(); + public DataSet ds = new DataSet(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + #region 璁惧鍏ュ簱妫�楠岄獙鏀跺崟 鍒楄〃 + /// <summary> + /// 璁惧鍏ュ簱妫�楠岄獙鏀跺崟鍒楄〃 + /// </summary> + /// <returns></returns> + [Route("Sb_EquipStockInCheckBill/Sb_EquipStockInCheckBillList")] + [HttpGet] + public object Sb_EquipStockInCheckBillList(string sWhere, string user) + { + try + { + List<object> columnNameList = new List<object>(); + if (!DBUtility.ClsPub.Security_Log("Sb_EquipStockInCheckBill_Query", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipStockInCheckBillList where 1=1 "+ sWhere, "h_v_Sb_EquipStockInCheckBillList"); + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + objJsonResult.list = columnNameList; + return objJsonResult; + + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 璁惧鍏ュ簱妫�楠岄獙鏀跺崟 淇濆瓨/缂栬緫 + /// <summary> + /// 璁惧鍏ュ簱妫�楠岄獙鏀跺崟 淇濆瓨 + /// </summary> + /// <param name="msg"></param> + /// <returns></returns> + [Route("Sb_EquipStockInCheckBill/SaveEquipStockInCheckBill")] + [HttpPost] + public object SaveEquipStockInCheckBill([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 msg4 = sArray[2].ToString(); + + + string UserName = ""; + ListModels oListModels = new ListModels(); + try + { + if (!DBUtility.ClsPub.Security_Log("Sb_EquipStockInCheckBill_Edit", 1, false, msg4)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + DAL.ClsSb_EquipStockInCheckBill oBill = new DAL.ClsSb_EquipStockInCheckBill(); + List<Model.ClsSb_EquipStockInCheckBillMain> lsmain = new List<Model.ClsSb_EquipStockInCheckBillMain>(); + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); //\n + lsmain = oListModels.getObjectByJson_ClsSb_EquipStockInCheckBillMain(msg2); + foreach (Model.ClsSb_EquipStockInCheckBillMain oItem in lsmain) + { + //oItem.HMaker = ""; + UserName = oItem.HMaker; //鍒跺崟浜� + oItem.HBillType = "3914"; + oItem.HBillSubType = "3914"; + oItem.HBillStatus = 1; + DBUtility.ClsPub.CurUserName = UserName; + oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + + 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 + //msg2 = msg2.Replace("'", "鈥�"); + List<Model.ClsSb_EquipStockInCheckBillSub> ls = new List<Model.ClsSb_EquipStockInCheckBillSub>(); + ls = oListModels.getObjectByJson_ClsSb_EquipStockInCheckBillSub(msg3); + int i = 0; + foreach (Model.ClsSb_EquipStockInCheckBillSub oItemSub in ls) + { + + i++; + oItemSub.HEntryID = i; + //oItemSub.HCloseMan = ""; //琛屽叧闂� + oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + //oItemSub.HRemark = ""; //澶囨敞 + oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + //oItemSub.HSourceBillNo = ""; //婧愬崟鍗曞彿 + //oItemSub.HSourceBillType = ""; //婧愬崟绫诲瀷 + oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + //oItemSub.HRelationMoney = 0; //鍏宠仈閲戦 + //HMaterID = "";//閰嶄欢浠g爜 + //HUnitID = "";//鍗曚綅浠g爜 + //HQty = "";//瀹為檯鐢ㄩ噺 + //HQtyMust = "";//鍗曚綅鐢ㄩ噺 + //HRemark = "";//澶囨敞 + + oBill.DetailColl.Add(oItemSub); + + } + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult; + if (oBill.omodel.HInterID == 0) + { + // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + } + else + { + bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); + } + 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 璁惧鍏ュ簱妫�楠岄獙鏀跺崟 鍒犻櫎 + /// <summary> + /// 璁惧鍏ュ簱妫�楠岄獙鏀跺崟鍒犻櫎 + /// </summary> + /// <returns></returns> + [Route("Sb_EquipStockInCheckBill/DelEquipStockInCheckBill")] + [HttpGet] + public object DelEquipStockInCheckBill(string HInterID, string user) + { + //缂栬緫鏉冮檺 + if (!DBUtility.ClsPub.Security_Log("Sb_EquipStockInCheckBill_Drop", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + + Int64 lngBillKey = 0; + lngBillKey = DBUtility.ClsPub.isLong(HInterID); + if (lngBillKey == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁ID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + DAL.ClsSb_EquipStockInCheckBill oBill = new DAL.ClsSb_EquipStockInCheckBill(); + if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) + { + ds = oCN.RunProcReturn("select * from Sb_EquipStockInCheckBillMain where HInterID="+ lngBillKey, "Sb_EquipStockInCheckBillMain"); + if (int.Parse(ds.Tables[0].Rows[0]["HBillStatus"].ToString()) >1) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁褰撳墠澶勪簬涓嶈兘鍒犻櫎鐘舵��,涓嶈兘鍒犻櫎锛�"; + objJsonResult.data = null; + return objJsonResult; + } + + if (ds.Tables[0].Rows[0]["HChecker"].ToString() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸茬粡瀹℃牳,涓嶈兘鍒犻櫎锛�"; + objJsonResult.data = null; + return objJsonResult; + } + + bool IsDete = oBill.DeleteBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo); + if (IsDete) + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + else + { + + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鏈壘鍒�"; + 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("Sb_EquipStockInCheckBill/AuditEquipStockInCheckBill")] + [HttpGet] + public object AuditEquipStockInCheckBill(int HInterID, int IsAudit, string CurUserName) + { + string ModRightNameCheck = "Sb_EquipStockInCheckBill_Check"; + DBUtility.ClsPub.CurUserName = CurUserName; + try + { + //瀹℃牳鏉冮檺 + if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "瀹℃牳澶辫触锛佹棤鏉冮檺锛�"; + objJsonResult.data = null; + return objJsonResult; + } + 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); + DAL.ClsSb_EquipStockInCheckBill oBill = new DAL.ClsSb_EquipStockInCheckBill(); + ds = oCN.RunProcReturn("select * from Sb_EquipStockInCheckBillMain where HInterID=" + lngBillKey, "Sb_EquipStockInCheckBillMain"); + //鏌ョ湅鏄惁宸插鏍�,鍏抽棴,浣滃簾 + if (ds.Tables[0].Rows.Count > 0) + { + if (ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸插叧闂�!涓嶈兘鍐嶆瀹℃牳锛�"; + objJsonResult.data = null; + return objJsonResult; + } + if (ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸蹭綔搴�!涓嶈兘鍐嶆瀹℃牳锛�"; + objJsonResult.data = null; + return objJsonResult; + } + if (IsAudit == 0) //瀹℃牳鍒ゆ柇 + { + if (ds.Tables[0].Rows[0]["HChecker"].ToString().Trim() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸插鏍�!涓嶈兘鍐嶆瀹℃牳锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + if (IsAudit == 1) //鍙嶅鏍稿垽鏂� + { + if (ds.Tables[0].Rows[0]["HChecker"].ToString().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.CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "瀹℃牳鎴愬姛"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "瀹℃牳澶辫触!鍘熷洜:" + DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + } + if (IsAudit == 1) //鍙嶅鏍告彁浜� + { + //鍙嶅鏍告彁浜bandonCheck + if (oBill.AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍙嶅鏍告垚鍔�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/SBGL/Sb_EquipWorkBeforeCheckSBillController.cs b/WebAPI/Controllers/SBGL/Sb_EquipWorkBeforeCheckSBillController.cs new file mode 100644 index 0000000..26bc0f0 --- /dev/null +++ b/WebAPI/Controllers/SBGL/Sb_EquipWorkBeforeCheckSBillController.cs @@ -0,0 +1,421 @@ +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.SBGL +{ + public class Sb_EquipWorkBeforeCheckSBillController : ApiController + { + private json objJsonResult = new json(); + public DataSet ds = new DataSet(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + #region 璁惧鎶曚骇妫�楠岄獙鏀跺崟 鍒楄〃 + /// <summary> + /// 璁惧鎶曚骇妫�楠岄獙鏀跺崟鍒楄〃 + /// </summary> + /// <returns></returns> + [Route("Sb_EquipWorkBeforeCheckBill/Sb_EquipWorkBeforeCheckBillList")] + [HttpGet] + public object Sb_EquipWorkBeforeCheckBillList(string sWhere, string user) + { + try + { + List<object> columnNameList = new List<object>(); + if (!DBUtility.ClsPub.Security_Log("Sb_EquipWorkBeforeCheckBill_Query", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + ds = oCN.RunProcReturn("select * from h_v_Sb_EquipWorkBeforeCheckBillList where 1=1 "+ sWhere, "h_v_Sb_EquipWorkBeforeCheckBillList"); + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + objJsonResult.list = columnNameList; + return objJsonResult; + + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 璁惧鎶曚骇妫�楠岄獙鏀跺崟 淇濆瓨/缂栬緫 + /// <summary> + /// 璁惧鎶曚骇妫�楠岄獙鏀跺崟 淇濆瓨 + /// </summary> + /// <param name="msg"></param> + /// <returns></returns> + [Route("Sb_EquipWorkBeforeCheckBill/SaveEquipWorkBeforeCheckBill")] + [HttpPost] + public object SaveEquipWorkBeforeCheckBill([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 msg4 = sArray[2].ToString(); + + + string UserName = ""; + ListModels oListModels = new ListModels(); + try + { + if (!DBUtility.ClsPub.Security_Log("Sb_EquipWorkBeforeCheckBill_Edit", 1, false, msg4)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + DAL.ClsSb_EquipWorkBeforeCheckBill oBill = new DAL.ClsSb_EquipWorkBeforeCheckBill(); + List<Model.ClsSb_EquipWorkBeforeCheckBillMain> lsmain = new List<Model.ClsSb_EquipWorkBeforeCheckBillMain>(); + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); //\n + lsmain = oListModels.getObjectByJson_ClsSb_EquipWorkBeforeCheckBillMain(msg2); + foreach (Model.ClsSb_EquipWorkBeforeCheckBillMain oItem in lsmain) + { + //oItem.HMaker = ""; + UserName = oItem.HMaker; //鍒跺崟浜� + oItem.HBillType = "3915"; + oItem.HBillSubType = "3915"; + oItem.HBillStatus = 1; + DBUtility.ClsPub.CurUserName = UserName; + oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + + 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 + //msg2 = msg2.Replace("'", "鈥�"); + List<Model.ClsSb_EquipWorkBeforeCheckBillSub> ls = new List<Model.ClsSb_EquipWorkBeforeCheckBillSub>(); + ls = oListModels.getObjectByJson_ClsSb_EquipWorkBeforeCheckBillSub(msg3); + int i = 0; + foreach (Model.ClsSb_EquipWorkBeforeCheckBillSub oItemSub in ls) + { + + i++; + oItemSub.HEntryID = i; + //oItemSub.HCloseMan = ""; //琛屽叧闂� + oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + //oItemSub.HRemark = ""; //澶囨敞 + oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + //oItemSub.HSourceBillNo = ""; //婧愬崟鍗曞彿 + //oItemSub.HSourceBillType = ""; //婧愬崟绫诲瀷 + oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + //oItemSub.HRelationMoney = 0; //鍏宠仈閲戦 + //HMaterID = "";//閰嶄欢浠g爜 + //HUnitID = "";//鍗曚綅浠g爜 + //HQty = "";//瀹為檯鐢ㄩ噺 + //HQtyMust = "";//鍗曚綅鐢ㄩ噺 + //HRemark = "";//澶囨敞 + + oBill.DetailColl.Add(oItemSub); + + } + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult; + if (oBill.omodel.HInterID == 0) + { + // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + } + else + { + bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); + } + 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 璁惧鎶曚骇妫�楠岄獙鏀跺崟 鍒犻櫎 + /// <summary> + /// 璁惧鎶曚骇妫�楠岄獙鏀跺崟鍒犻櫎 + /// </summary> + /// <returns></returns> + [Route("Sb_EquipWorkBeforeCheckBill/DelEquipWorkBeforeCheckBill")] + [HttpGet] + public object DelEquipWorkBeforeCheckBill(string HInterID, string user) + { + //缂栬緫鏉冮檺 + if (!DBUtility.ClsPub.Security_Log("Sb_EquipWorkBeforeCheckBill_Drop", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒"; + objJsonResult.data = null; + return objJsonResult; + } + + + Int64 lngBillKey = 0; + lngBillKey = DBUtility.ClsPub.isLong(HInterID); + if (lngBillKey == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁ID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + DAL.ClsSb_EquipWorkBeforeCheckBill oBill = new DAL.ClsSb_EquipWorkBeforeCheckBill(); + if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) + { + ds = oCN.RunProcReturn("select * from Sb_EquipWorkBeforeCheckBillMain where HInterID="+ lngBillKey, "Sb_EquipWorkBeforeCheckBillMain"); + if (int.Parse(ds.Tables[0].Rows[0]["HBillStatus"].ToString()) >1) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁褰撳墠澶勪簬涓嶈兘鍒犻櫎鐘舵��,涓嶈兘鍒犻櫎锛�"; + objJsonResult.data = null; + return objJsonResult; + } + + if (ds.Tables[0].Rows[0]["HChecker"].ToString() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸茬粡瀹℃牳,涓嶈兘鍒犻櫎锛�"; + objJsonResult.data = null; + return objJsonResult; + } + + bool IsDete = oBill.DeleteBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo); + if (IsDete) + { + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + else + { + + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鏈壘鍒�"; + 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("Sb_EquipWorkBeforeCheckBill/AuditEquipWorkBeforeCheckBill")] + [HttpGet] + public object AuditEquipWorkBeforeCheckBill(int HInterID, int IsAudit, string CurUserName) + { + string ModRightNameCheck = "Sb_EquipWorkBeforeCheckBill_Check"; + DBUtility.ClsPub.CurUserName = CurUserName; + try + { + //瀹℃牳鏉冮檺 + if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "瀹℃牳澶辫触锛佹棤鏉冮檺锛�"; + objJsonResult.data = null; + return objJsonResult; + } + 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); + DAL.ClsSb_EquipWorkBeforeCheckBill oBill = new DAL.ClsSb_EquipWorkBeforeCheckBill(); + ds = oCN.RunProcReturn("select * from Sb_EquipWorkBeforeCheckBillMain where HInterID=" + lngBillKey, "Sb_EquipWorkBeforeCheckBillMain"); + //鏌ョ湅鏄惁宸插鏍�,鍏抽棴,浣滃簾 + if (ds.Tables[0].Rows.Count > 0) + { + if (ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸插叧闂�!涓嶈兘鍐嶆瀹℃牳锛�"; + objJsonResult.data = null; + return objJsonResult; + } + if (ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸蹭綔搴�!涓嶈兘鍐嶆瀹℃牳锛�"; + objJsonResult.data = null; + return objJsonResult; + } + if (IsAudit == 0) //瀹℃牳鍒ゆ柇 + { + if (ds.Tables[0].Rows[0]["HChecker"].ToString().Trim() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁宸插鏍�!涓嶈兘鍐嶆瀹℃牳锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + if (IsAudit == 1) //鍙嶅鏍稿垽鏂� + { + if (ds.Tables[0].Rows[0]["HChecker"].ToString().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.CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "瀹℃牳鎴愬姛"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "瀹℃牳澶辫触!鍘熷洜:" + DBUtility.ClsPub.sExeReturnInfo; + objJsonResult.data = null; + return objJsonResult; + } + } + if (IsAudit == 1) //鍙嶅鏍告彁浜� + { + //鍙嶅鏍告彁浜bandonCheck + if (oBill.AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍙嶅鏍告垚鍔�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + 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 + } +} \ No newline at end of file diff --git a/WebAPI/Controllers/SCGL/Sc_ICMOReportBillController.cs b/WebAPI/Controllers/SCGL/Sc_ICMOReportBillController.cs index 35d43ef..00aa89a 100644 --- a/WebAPI/Controllers/SCGL/Sc_ICMOReportBillController.cs +++ b/WebAPI/Controllers/SCGL/Sc_ICMOReportBillController.cs @@ -1,4 +1,5 @@ -锘縰sing Newtonsoft.Json.Linq; +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; using Pub_Class; using System; using System.Collections; @@ -13,6 +14,8 @@ //鐢熶骇姹囨姤Controller public class Sc_ICMOReportBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus;//鍗曟嵁鐘舵�侊紙鏂板锛屼慨鏀癸紝娴忚锛屾洿鏂板崟浠凤紝鍙樻洿锛� private json objJsonResult = new json(); @@ -710,6 +713,294 @@ } } - // + #region [鍚屾鍗曟嵁] + [Route("Sc_ICMOReportBill/Sc_ICMOReportBillViewApi")] + [HttpGet] + public json Sc_ICMOReportBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("PRD_MORPT", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鐢熶骇姹囨姤鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Sc_ICMOReportBillMain where HBillNo = '" + BillNo + "'", "Sc_ICMOReportBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 3711, + HBillSubType = 3711, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HEmpID = 0, + HEmpNumber = "", + HGroupID = 0, + HDeptID = 0, + HDeptNumber = "", + HRemark = "CLD瀵煎叆", + HChecker = _saveObj["Result"]["Result"]["ApproverId"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HMaker = _saveObj["Result"]["Result"]["CreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HUpDater = _saveObj["Result"]["Result"]["ModifierId"]["Name"], + HUpDateDate = _saveObj["Result"]["Result"]["ModifyDate"], + HDeleteMan = _saveObj["Result"]["Result"]["CANCELER_Id"], + HDeleteDate = _saveObj["Result"]["Result"]["CancelDate"], + HMainSourceBillType = "", + HMainSourceInterID = 0, + HMainSourceEntryID = 0, + HMainSourceBillNo = "", + HPrintQty = 0, + HCheckType = "", + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillType_Id"], + HPRDORGID = _saveObj["Result"]["Result"]["PrdOrgId_Id"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Sc_ICMOReportBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Sc_ICMOReportBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HEmpID,HEmpNumber + ,HGroupID,HDeptID,HDeptNumber,HRemark,HChecker,HCheckDate,HMaker,HMakeDate + ,HUpDater,HUpDateDate,HDeleteMan,HDeleteDate + ,HMainSourceBillType,HMainSourceInterID,HMainSourceEntryID,HMainSourceBillNo,HPrintQty,HCheckType + ,HERPInterID,HERPBillType,HPRDORGID + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType}, + '{jsonData.HDate}','{jsonData.HBillNo}',{jsonData.HEmpID},'{jsonData.HEmpNumber}',{jsonData.HGroupID},{jsonData.HDeptID},'{jsonData.HDeptNumber}','{jsonData.HRemark}','{jsonData.HChecker}','{jsonData.HCheckDate}','{jsonData.HMaker}','{jsonData.HMakeDate}','{jsonData.HUpDater}','{jsonData.HUpDateDate}','{jsonData.HDeleteMan}','{jsonData.HDeleteDate}','{jsonData.HMainSourceBillType}',{jsonData.HMainSourceInterID},{jsonData.HMainSourceEntryID},'{jsonData.HMainSourceBillNo}',{jsonData.HPrintQty},'{jsonData.HCheckType}',{jsonData.HERPInterID},'{jsonData.HERPBillType}',{jsonData.HPRDORGID})"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["PRD_MORPTENTRY"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Sc_ICMOReportBillSub where HInterID = " + InterID, "Sc_ICMOReportBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Sc_ICMOReportBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialId_Id"], + HMaterNumber = "", + HUnitID = oSub["UnitID_Id"], + HUnitNumber = "", + HQtyMust = oSub["FinishQty"], + HQty = oSub["FinishQty"], + HWorkerID = 0, + HWorkerNumber = "", + HSourceID = 0, + HSourceNumber = "", + HTimes = oSub["StdManHour"], + HBadQty = oSub["FailQty"], + HBadCount = 0, + HQPQty = oSub["QuaQty"], + HWasterQty = 0, + HRemark = "CLOUD瀵煎叆", + HSourceInterID = oSub["SrcInterId"], + HSourceEntryID = oSub["SrcEntryId"], + HSourceBillNo = oSub["SrcBillNo"], + HSourceBillType = oSub["SrcBillType"], + HICMOInterID = oSub["MoId"], + HICMOEntryID = oSub["MoEntryId"], + HICMOBillNo = oSub["MoBillNo"], + HSeOrderInterID = 0, + HSeOrderEntryID = 0, + HSeOrderBillNo = "", + HRelationQty = oSub["BaseStockInQuaSelQty"], + HRelationMoney = 0, + HSplitNO = "", + HBarCode = "", + HWhID = oSub["StockId_Id"], + HSPID = oSub["StockLocId_Id"], + HBatChNo = oSub["Lot_Text"], + HAuxPropID = oSub["AuxPropId_Id"], + HMTONo = oSub["MtoNo"], + HPlanMode = 0, + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HOWNERTYPEID = oSub["OwnerTypeId"], + HISENTRUST = oSub["IsEntrust"] = false ? 0 : 1, + HSTOCKINORGID = oSub["StockInOrgId_Id"], + HOWNERID = oSub["OwnerId_Id"], + HCHECKPRODUCT = oSub["CheckProduct"] = false ? 0 : 1, + HQAIP = oSub["QAIP"], + HCOSTRATE = oSub["CostRate"], + HISBACKFLUSH = oSub["ISBACKFLUSH"], + HREQSRC = oSub["ReqSrc"], + HREQBILLNO = oSub["ReqBillNo"], + HREQBILLID = oSub["ReqBillId"], + HREQENTRYSEQ = oSub["ReqEntrySeq"], + HREQENTRYID = oSub["ReqEntryId"], + HMOMAINENTRYID = oSub["MoMainEntryId"], + HSTOCKINQUASELQTY = oSub["BaseStockInQuaSelQty"], + HPRODUCTTYPE = oSub["ProductType"], + HPROJECTNO = oSub["ProjectNo"], + HICMOENTRYSEQ = oSub["MoEntrySeq"], + HSEQ = oSub["Seq"], + HPRODUCEDATE = oSub["ProduceDate"], + HEXPIRYDATE = oSub["ExpiryDate"], + HBASEUNITID = oSub["BaseUnitId_Id"], + HDEPTID = oSub["WorkshopId_Id"], + HGroupID = oSub["ShiftGroupId_Id"], + HDESCRIPTION = "" + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Sc_ICMOReportBillSub + (HInterID,HEntryID,HMaterID,HMaterNumber,HUnitID,HUnitNumber + ,HQtyMust,HQty,HWorkerID,HWorkerNumber,HSourceID,HSourceNumber,HTimes,HBadQty,HBadCount,HQPQty + ,HWasterQty,HRemark,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HICMOInterID,HICMOEntryID,HICMOBillNo + ,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo,HRelationQty,HRelationMoney,HSplitNO,HBarCode + ,HWhID,HSPID,HBatChNo,HAuxPropID,HMTONo,HPlanMode,HERPInterID,HERPEntryID + ,HOWNERTYPEID,HISENTRUST,HSTOCKINORGID,HOWNERID,HCHECKPRODUCT,HQAIP,HCOSTRATE,HISBACKFLUSH,HREQSRC + ,HREQBILLNO,HREQBILLID,HREQENTRYSEQ,HREQENTRYID,HMOMAINENTRYID,HSTOCKINQUASELQTY,HPRODUCTTYPE,HPROJECTNO + ,HICMOENTRYSEQ,HSEQ,HPRODUCEDATE,HEXPIRYDATE,HBASEUNITID,HDEPTID,HGroupID,HDESCRIPTION + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},'{subData.HMaterNumber}',{subData.HUnitID},'{subData.HUnitNumber}',{subData.HQtyMust},{subData.HQty},{subData.HWorkerID},'{subData.HWorkerNumber}',{subData.HSourceID},'{subData.HSourceNumber}',{subData.HTimes},{subData.HBadQty},{subData.HBadCount},{subData.HQPQty},{subData.HWasterQty},'{subData.HRemark}',{subData.HSourceInterID},{subData.HSourceEntryID},'{subData.HSourceBillNo}','{subData.HSourceBillType}',{subData.HICMOInterID},{subData.HICMOEntryID},'{subData.HICMOBillNo}',{subData.HSeOrderInterID},{subData.HSeOrderEntryID},'{subData.HSeOrderBillNo}',{subData.HRelationQty},{subData.HRelationMoney},'{subData.HSplitNO}','{subData.HBarCode}',{subData.HWhID},{subData.HSPID},'{subData.HBatChNo}',{subData.HAuxPropID},'{subData.HMTONo}','{subData.HPlanMode}',{subData.HERPInterID},{subData.HERPEntryID},'{subData.HOWNERTYPEID}','{subData.HISENTRUST}',{subData.HSTOCKINORGID},{subData.HOWNERID},'{subData.HCHECKPRODUCT}','{subData.HQAIP}',{subData.HCOSTRATE},'{subData.HISBACKFLUSH}','{subData.HREQSRC}','{subData.HREQBILLNO}',{subData.HREQBILLID},{subData.HREQENTRYSEQ},{subData.HREQENTRYID},{subData.HMOMAINENTRYID},{subData.HSTOCKINQUASELQTY},'{subData.HPRODUCTTYPE}','{subData.HPROJECTNO}',{subData.HICMOENTRYSEQ},{subData.HSEQ},'{subData.HPRODUCEDATE}','{subData.HEXPIRYDATE}',{subData.HBASEUNITID},{subData.HDEPTID},{subData.HGroupID},'{subData.HDESCRIPTION}' + )"; + + oCN.RunProc(sql); + } + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/SCGL/Sc_PPBomBillController.cs b/WebAPI/Controllers/SCGL/Sc_PPBomBillController.cs index 8b1b9bb..49d90d3 100644 --- a/WebAPI/Controllers/SCGL/Sc_PPBomBillController.cs +++ b/WebAPI/Controllers/SCGL/Sc_PPBomBillController.cs @@ -1,4 +1,5 @@ 锘縰sing Model.鐢熶骇绠$悊; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; using System; @@ -14,6 +15,8 @@ //鐢熶骇鐢ㄦ枡Controller public class Sc_PPBomBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -541,6 +544,7 @@ { var model = sMainSub["model"].ToString(); var entry = sMainSub["model"]["HENTRY"].ToString(); + model = "[" + model.ToString() + "]"; List<ClsSc_PPBomBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_PPBomBillMain>>(model); @@ -571,9 +575,9 @@ ,HCHILDSUPPLYORGID,HSUPPLYORGID,HENTRUSTPICKORGID,HSRCTRANSORGID,HGROUPBYOWNERID,HOWNERID,HOWNERTYPEID ,HRelationQty,HMoveStockQty,HAuxPropID,HBatchNO,HMTONo,HQtyScrap,HERPInterID,HERPEntryID ,HBackRelationQty,HNumerator,HDenominator,HBASEUNITID,HProcessID,HICMOENTRYSEQ,HPROJECTNO - ,HOPERID,HSEQ,HSTOCKSTATUSID,HLOT,HOPTQUEUE,HRESERVETYPE,HSelPickedQty,HSELPRCDRETURNQTY) + ,HOPERID,HSEQ,HSTOCKSTATUSID,HLOT,HOPTQUEUE,HRESERVETYPE,HSelPickedQty,HSELPRCDRETURNQTY,HProcName) values('{oSub.HInterID}','{oSub.HEntryID}','{oSub.HMaterID}','{oSub.HMaterNumber}','{oSub.HUnitID}','{oSub.HUnitNumber}','{oSub.HSPID}','{oSub.HQty}' - ,'{oSub.HQtyMust}','{oSub.HWHID}','{oSub.HRemark}','{oSub.HSourceInterID}','{oSub.HSourceEntryID}','{oSub.HSourceBillNo}','{oSub.HSourceBillType}','{oSub.HICMOInterID}','{oSub.HICMOEntryID}','{oSub.HICMOBillNo}','{oSub.HCHILDSUPPLYORGID}','{oSub.HSUPPLYORGID}','{oSub.HENTRUSTPICKORGID}','{oSub.HSRCTRANSORGID}','{oSub.HGROUPBYOWNERID}','{oSub.HOWNERID}','{oSub.HOWNERTYPEID}','{oSub.HRelationQty}','{oSub.HMoveStockQty}','{oSub.HAuxPropID}','{oSub.HBatchNO}','{oSub.HMTONo}','{oSub.HQtyScrap}','{oSub.HERPInterID}','{oSub.HERPEntryID}','{oSub.HBackRelationQty}','{oSub.HNumerator}','{oSub.HDenominator}','{oSub.HBASEUNITID}','{oSub.HProcessID}','{oSub.HICMOENTRYSEQ}','{oSub.HPROJECTNO}','{oSub.HOPERID}','{oSub.HSEQ}','{oSub.HSTOCKSTATUSID}','{oSub.HLOT}','{oSub.HOPTQUEUE}','{oSub.HRESERVETYPE}','{oSub.HSelPickedQty}','{oSub.HSELPRCDRETURNQTY}')"); + ,'{oSub.HQtyMust}','{oSub.HWHID}','{oSub.HRemark}','{oSub.HSourceInterID}','{oSub.HSourceEntryID}','{oSub.HSourceBillNo}','{oSub.HSourceBillType}','{oSub.HICMOInterID}','{oSub.HICMOEntryID}','{oSub.HICMOBillNo}','{oSub.HCHILDSUPPLYORGID}','{oSub.HSUPPLYORGID}','{oSub.HENTRUSTPICKORGID}','{oSub.HSRCTRANSORGID}','{oSub.HGROUPBYOWNERID}','{oSub.HOWNERID}','{oSub.HOWNERTYPEID}','{oSub.HRelationQty}','{oSub.HMoveStockQty}','{oSub.HAuxPropID}','{oSub.HBatchNO}','{oSub.HMTONo}','{oSub.HQtyScrap}','{oSub.HERPInterID}','{oSub.HERPEntryID}','{oSub.HBackRelationQty}','{oSub.HNumerator}','{oSub.HDenominator}','{oSub.HBASEUNITID}','{oSub.HProcessID}','{oSub.HICMOENTRYSEQ}','{oSub.HPROJECTNO}','{oSub.HOPERID}','{oSub.HSEQ}','{oSub.HSTOCKSTATUSID}','{oSub.HLOT}','{oSub.HOPTQUEUE}','{oSub.HRESERVETYPE}','{oSub.HSelPickedQty}','{oSub.HSELPRCDRETURNQTY}','{oSub.HProcName}')"); } oCN.Commit(); objJsonResult.code = "1"; @@ -626,5 +630,278 @@ } } + #region [鍚屾鍗曟嵁] + [Route("Sc_PPBomBill/Sc_PPBomBillViewApi")] + [HttpGet] + public json Sc_PPBomBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("PRD_PPBOM", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鐢熶骇鐢ㄦ枡鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Sc_PPBomBillMain where HBillNo = '" + BillNo + "'", "Sc_PPBomBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 3720, + HBillSubType = 3720, + HDate = _saveObj["Result"]["Result"]["CreateDate"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = _saveObj["Result"]["Result"]["ApproverId_Id"].ToString() == Convert.ToString(0) ? 1 : 2, + HICMOInterID = _saveObj["Result"]["Result"]["MoId"], + HICMOEntryID = _saveObj["Result"]["Result"]["MOEntryID"], + HMaterID = _saveObj["Result"]["Result"]["MaterialID_Id"], + HUnitID = _saveObj["Result"]["Result"]["UnitID_Id"], + HQty = _saveObj["Result"]["Result"]["Qty"], + HDeptID = _saveObj["Result"]["Result"]["WorkshopID_Id"], + HMaker = _saveObj["Result"]["Result"]["CreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HChecker = _saveObj["Result"]["Result"]["ApproverId"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HSeOrderBillNo = _saveObj["Result"]["Result"]["SALEORDERNO"], + HSeOrderInterID = _saveObj["Result"]["Result"]["SaleOrderId"], + HSeOrderEntryID = _saveObj["Result"]["Result"]["SaleOrderEntryId"], + HPRDORGID = _saveObj["Result"]["Result"]["PrdOrgId_Id"], + HENTRUSTORGID = _saveObj["Result"]["Result"]["EntrustOrgId_Id"], + HPARENTOWNERID = _saveObj["Result"]["Result"]["ParentOwnerId_Id"], + HPARENTOWNERTYPEID = _saveObj["Result"]["Result"]["ParentOwnerTypeId"], + HREQSRC = _saveObj["Result"]["Result"]["ReqSrc"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = "PPBOM", + HSeOrderEntrySEQ = _saveObj["Result"]["Result"]["SaleOrderEntrySeq"], + HICMOEntrySEQ = _saveObj["Result"]["Result"]["MOEntrySeq"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Sc_PPBomBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Sc_PPBomBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus,HICMOInterID,HICMOEntryID + ,HMaterID,HUnitID,HQty,HDeptID,HMaker,HMakeDate,HChecker,HCheckDate + ,HSeOrderBillNo,HSeOrderInterID,HSeOrderEntryID + ,HPRDORGID,HENTRUSTORGID,HPARENTOWNERID,HPARENTOWNERTYPEID,HREQSRC + ,HERPInterID,HERPBillType,HSeOrderEntrySEQ,HICMOEntrySEQ + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType}, + '{jsonData.HDate}','{jsonData.HBillNo}',{jsonData.HBillStatus},{jsonData.HICMOInterID},{jsonData.HICMOEntryID}, + {jsonData.HMaterID},{jsonData.HUnitID},{jsonData.HQty},{jsonData.HDeptID},'{jsonData.HMaker}','{jsonData.HMakeDate}','{jsonData.HChecker}', + '{jsonData.HCheckDate}','{jsonData.HSeOrderBillNo}',{jsonData.HSeOrderInterID},{jsonData.HSeOrderEntryID},{jsonData.HPRDORGID}, + {jsonData.HENTRUSTORGID},{jsonData.HPARENTOWNERID},'{jsonData.HPARENTOWNERTYPEID}','{jsonData.HREQSRC}',{jsonData.HERPInterID}, + '{jsonData.HERPBillType}',{jsonData.HSeOrderEntrySEQ},'{jsonData.HICMOEntrySEQ}')"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["PPBomEntry"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Sc_PPBomBillSub where HInterID = " + InterID, "Sc_PPBomBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Sc_PPBomBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialID_Id"], + HUnitID = oSub["UnitID_Id"], + HQty = oSub["NeedQty"], + HQtyMust = oSub["NeedQty"], + HWHID = oSub["StockID_Id"], + HRemark = "CLOUD瀵煎叆", + HSourceInterID = oSub["MoId"], + HSourceEntryID = oSub["MoEntryId"], + HSourceBillNo = oSub["MoBillNo"], + HSourceBillType = 3710, + HICMOInterID = oSub["MoId"], + HICMOEntryID = oSub["MoEntryId"], + HICMOBillNo = oSub["MoBillNo"], + HCHILDSUPPLYORGID = oSub["ChildSupplyOrgId_Id"], + HSUPPLYORGID = oSub["SupplyOrg_Id"], + HENTRUSTPICKORGID = oSub["EntrustPickOrgId_Id"], + HSRCTRANSORGID = oSub["SrcTransOrgId_Id"], + HGROUPBYOWNERID = oSub["GroupByOwnerId_Id"], + HOWNERID = oSub["OwnerID_Id"], + HOWNERTYPEID = oSub["OwnerTypeId"], + HRelationQty = Convert.ToInt32(oSub["SelPickedQty"]) - Convert.ToInt32(oSub["SelPrcdReturnQty"]), + HMoveStockQty = oSub["SelTranslateQty"], + HAuxPropID = oSub["AuxPropID_Id"], + HBatchNO = oSub["Lot_Text"], + HMTONo = oSub["MTONO"], + HQtyScrap = Convert.ToInt32(oSub["BaseNumerator"]) / Convert.ToInt32(oSub["BaseDenominator"]), + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HBackRelationQty = oSub["WipQty"], + HNumerator = oSub["Numerator"], + HDenominator = oSub["Denominator"], + HBASEUNITID = oSub["BaseUnitID_Id"], + HProcessID = oSub["ProcessID_Id"], + HICMOENTRYSEQ = oSub["MoEntrySeq"], + HPROJECTNO = oSub["ProjectNO"], + HOPERID = oSub["OperID"], + HSEQ = oSub["Seq"], + HSTOCKSTATUSID = oSub["StockStatusId_Id"], + HLOT = oSub["Lot_Id"], + HOPTQUEUE = oSub["OptQueue"], + HRESERVETYPE = oSub["ReserveType"], + HSelPickedQty = oSub["SelPickedQty"], + HSELPRCDRETURNQTY = oSub["SelPrcdReturnQty"], + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Sc_PPBomBillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty,HQtyMust,HWHID,HRemark + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HICMOInterID,HICMOEntryID,HICMOBillNo + ,HCHILDSUPPLYORGID,HSUPPLYORGID,HENTRUSTPICKORGID,HSRCTRANSORGID,HGROUPBYOWNERID,HOWNERID,HOWNERTYPEID + ,HRelationQty,HMoveStockQty,HAuxPropID,HBatchNO,HMTONo,HQtyScrap,HERPInterID,HERPEntryID + ,HBackRelationQty,HNumerator,HDenominator + ,HBASEUNITID,HProcessID,HICMOENTRYSEQ,HPROJECTNO,HOPERID,HSEQ,HSTOCKSTATUSID + ,HLOT,HOPTQUEUE,HRESERVETYPE,HSelPickedQty,HSELPRCDRETURNQTY + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HQtyMust},{subData.HWHID},'{subData.HRemark}',{subData.HSourceInterID},{subData.HSourceEntryID},'{subData.HSourceBillNo}','{subData.HSourceBillType}',{subData.HICMOInterID},{subData.HICMOEntryID},'{subData.HICMOBillNo}',{subData.HCHILDSUPPLYORGID},{subData.HSUPPLYORGID},{subData.HENTRUSTPICKORGID},{subData.HSRCTRANSORGID},{subData.HGROUPBYOWNERID},{subData.HOWNERID},'{subData.HOWNERTYPEID}',{subData.HRelationQty},{subData.HMoveStockQty},{subData.HAuxPropID},'{subData.HBatchNO}','{subData.HMTONo}',{subData.HQtyScrap},{subData.HERPInterID},{subData.HERPEntryID},{subData.HBackRelationQty},'{subData.HNumerator}','{subData.HDenominator}',{subData.HBASEUNITID},{subData.HProcessID},{subData.HICMOENTRYSEQ},'{subData.HPROJECTNO}',{subData.HOPERID},{subData.HSEQ},{subData.HSTOCKSTATUSID},{subData.HLOT},{subData.HOPTQUEUE},'{subData.HRESERVETYPE}',{subData.HSelPickedQty},{subData.HSELPRCDRETURNQTY} + )"; + + oCN.RunProc(sql); + } + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs index 2d63c29..63e2e3d 100644 --- a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs +++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs @@ -336,8 +336,7 @@ columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 } - //if (ds.Tables[0].Rows.Count != 0 || ds != null) - //{ + objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucess锛�"; @@ -345,15 +344,6 @@ objJsonResult.list = columnNameList; return objJsonResult; - //} - //else - //{ - //objJsonResult.code = "0"; - //objJsonResult.count = 0; - //objJsonResult.Message = "鏃犳暟鎹�"; - //objJsonResult.data = null; - //return objJsonResult; - //} } catch (Exception ex) { @@ -1485,7 +1475,7 @@ #endregion - #region 妯″叿缁翠慨鍗曚繚瀛�/缂栬緫 + #region 妯″叿缁翠慨璁板綍鍗曚繚瀛�/缂栬緫 /// <summary> /// 淇濆瓨妯″叿缁翠慨鍗� /// </summary> @@ -1501,6 +1491,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); + string msg5 = sArray[3].ToString(); string UserName = ""; @@ -1573,24 +1564,62 @@ List<Model.ClsSb_MouldRepairWorkBillSub> ls = new List<Model.ClsSb_MouldRepairWorkBillSub>(); ls = oListModels.getObjectByJson_Gy_MouldRepairWorkBillSub(msg3); int i = 0; - foreach (Model.ClsSb_MouldRepairWorkBillSub oItemSub in ls) + foreach (Model.ClsSb_MouldRepairWorkBillSub oItem in ls) { i++; - oItemSub.HEntryID = i; + oItem.HEntryID = i; //oItemSub.HCloseMan = ""; //琛屽叧闂� - oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); - oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + oItem.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + oItem.HCloseType = false; //鍏抽棴绫诲瀷 //oItemSub.HRemark = ""; //澶囨敞 - oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + oItem.HRelationQty = 0; //鍏宠仈鏁伴噺 //oItemSub.HRelationMoney = 0; //鍏宠仈閲戦 //oItemSub.HRepairID = 0; //缁翠慨椤圭洰 //oItemSub.HRepairExplanation =""; //缁翠慨瑕佹眰 //oItemSub.HManagerID = 0; //璐熻矗浜篒D //oItemSub.HMoney = 0; //缁翠慨璐圭敤 - oBill.DetailColl.Add(oItemSub); + oBill.DetailColl.Add(oItem); } + + //閰嶄欢鏁版嵁 + //鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + msg5 = msg5.Substring(1, msg5.Length - 2); + msg5 = msg5.Replace("\\", ""); + msg5 = msg5.Replace("\n", ""); //\n + //msg2 = msg2.Replace("'", "鈥�"); + List<Model.ClsSb_MouldRepairWorkBillSub_Item> ls1 = new List<Model.ClsSb_MouldRepairWorkBillSub_Item>(); + ls1 = oListModels.getObjectByJson_Gy_MouldRepairWorkBillSub_Item(msg5); + int j = 0; + foreach (Model.ClsSb_MouldRepairWorkBillSub_Item oItemSub in ls1) + { + + j++; + oItemSub.HEntryID = j; + //oItemSub.HCloseMan = ""; //琛屽叧闂� + oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + //oItemSub.HRemark = ""; //澶囨敞 + oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + //oItemSub.HSourceBillNo = ""; //婧愬崟鍗曞彿 + //oItemSub.HSourceBillType = ""; //婧愬崟绫诲瀷 + oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + //oItemSub.HRelationMoney = 0; //鍏宠仈閲戦 + //HMaterID = "";//閰嶄欢浠g爜 + //HUnitID = "";//鍗曚綅浠g爜 + //HQty = "";//瀹為檯鐢ㄩ噺 + //HQtyMust = "";//鍗曚綅鐢ㄩ噺 + //HRemark = "";//澶囨敞 + //oItemSub.HRepairID = 0; //缁翠慨椤圭洰 + //oItemSub.HRepairExplanation =""; //缁翠慨瑕佹眰 + //oItemSub.HManagerID = 0; //璐熻矗浜篒D + //oItemSub.HMoney = 0; //缁翠慨璐圭敤 + oBill.DetailCol.Add(oItemSub); + + } + //淇濆瓨 //淇濆瓨瀹屾瘯鍚庡鐞� bool bResult; @@ -1652,30 +1681,27 @@ [HttpGet] public object Sb_MouldRepairWorkBillListProjectDetai(string sqlWhere) { - DataSet ds; + DataSet ds, ds1; + List<object> list = new List<object>(); try { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); - if (sqlWhere == null || sqlWhere.Equals("")) - { - //ds = oCN.RunProcReturn("select HRepairID,HRepairExplanation,HManagerID,HMoney,HRemark from Sc_MouldRepairWorkBillSub", "Sc_MouldRepairWorkBillSub"); - ds = oCN.RunProcReturn("select HRepairID, 瀛愮淮淇」鐩唬鐮� HRepairCode,瀛愮淮淇」鐩� HRepairName,瀛愮淮淇姹� HRepairExplanation,HManagerSonID HManagerID,瀛愯礋璐d汉浠g爜 HManagerCode,瀛愯礋璐d汉 HManagerName,缁翠慨璐圭敤 HMoney,琛ㄤ綋澶囨敞 HRemark,婧愬崟涓诲唴鐮� HSourceInterID,婧愬崟瀛愬唴鐮� HSourceEntryID,婧愬崟鍗曞彿 HSourceBillNo,婧愬崟绫诲瀷 HSourceBillType from h_v_Sc_MouldRepairWorkBillList_Edit", "h_v_Sc_MouldRepairWorkBillList_Edit"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } - else - { - //string sql1 = "select HRepairID,HRepairExplanation,HManagerID,HMoney,HRemark from Sc_MouldRepairWorkBillSub where 1 = 1 "; - string sql1 = "select HRepairID,瀛愮淮淇」鐩唬鐮� HRepairCode,瀛愮淮淇」鐩� HRepairName,瀛愮淮淇姹� HRepairExplanation,HManagerSonID HManagerID,瀛愯礋璐d汉浠g爜 HManagerCode,瀛愯礋璐d汉 HManagerName,缁翠慨璐圭敤 HMoney,琛ㄤ綋澶囨敞 HRemark,婧愬崟涓诲唴鐮� HSourceInterID,婧愬崟瀛愬唴鐮� HSourceEntryID,婧愬崟鍗曞彿 HSourceBillNo,婧愬崟绫诲瀷 HSourceBillType from h_v_Sc_MouldRepairWorkBillList_Edit where 1 = 1 "; - string sql = sql1 + sqlWhere; - ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldRepairWorkBillList_Edit"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } + + string sql = "select HRepairID,瀛愮淮淇」鐩唬鐮� HRepairCode,瀛愮淮淇」鐩� HRepairName,瀛愮淮淇姹� HRepairExplanation,HManagerSonID HManagerID,瀛愯礋璐d汉浠g爜 HManagerCode,瀛愯礋璐d汉 HManagerName,缁翠慨璐圭敤 HMoney,琛ㄤ綋澶囨敞 HRemark,婧愬崟涓诲唴鐮� HSourceInterID,婧愬崟瀛愬唴鐮� HSourceEntryID,婧愬崟鍗曞彿 HSourceBillNo,婧愬崟绫诲瀷 HSourceBillType from h_v_Sc_MouldRepairWorkBillList_Edit where 1 = 1 "+ sqlWhere; + ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldRepairWorkBillList_Edit"); + + string sql1 = "select 閰嶄欢ID HMaterID, 閰嶄欢浠g爜 HMaterNumber,閰嶄欢鍚嶇О HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,鍗曚綅ID HUnitID,璁¢噺鍗曚綅浠g爜 HUnitNumber,璁¢噺鍗曚綅鍚嶇О HUnitName,鐢ㄩ噺 HQty,鏍囧噯鐢ㄩ噺 HQtyMust,瀛愬娉�1 HRemark,瑙勬牸鍨嬪彿 HMaterSpec from h_v_Sc_MouldRepairWorkBillSub_Item where 1 = 1 " + sqlWhere ; + ds1 = oCN.RunProcReturn(sql1, "h_v_Sc_MouldRepairWorkBillSub_Item"); + + list.Add(ds.Tables[0]); + list.Add(ds1.Tables[0]); + + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = null; + objJsonResult.list = list; + } catch (Exception e) { @@ -2689,11 +2715,11 @@ { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); //鑾峰彇淇濆吇椤圭洰缂栬緫鏁版嵁 - string sql = "select 淇濆吇椤圭洰ID HMaintainItemID, 淇濆吇椤圭洰浠g爜 HMaintainItemNumber,淇濆吇椤圭洰 HMaintainItem,淇濆吇閮ㄤ綅 HMaintainPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark from h_v_Sc_MouldMaintainPlanBillSub_Item where 1 = 1 " + sqlWhere + ""; + string sql = "select 淇濆吇椤圭洰ID HMaintainItemID, 淇濆吇椤圭洰浠g爜 HMaintainItemNumber,淇濆吇椤圭洰 HMaintainItem,淇濆吇閮ㄤ綅 HMaintainPart,鍏蜂綋瑕佹眰 HClaim,璐熻矗浜篒D,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜哄悕绉� HManagerName,瀛愬娉�2 HRemark,HMouldMaintainRuleID,HEquipDotCheckNo from h_v_Sc_MouldMaintainPlanBillSub_Item where 1 = 1 " + sqlWhere + ""; ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldMaintainPlanBillSub_Item"); //鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 - string sql1 = "select 閰嶄欢ID HMaterID, 閰嶄欢浠g爜 HMaterNumber,閰嶄欢鍚嶇О HMaterName,鍗曚綅ID HUnitID,璁¢噺鍗曚綅浠g爜 HUnitNumber,璁¢噺鍗曚綅鍚嶇О HUnitName,鐢ㄩ噺 HQty,鏍囧噯鐢ㄩ噺 HQtyMust,瀛愬娉�1 HRemark from h_v_Sc_MouldMaintainPlanBillSub where 1 = 1 " + sqlWhere + ""; + string sql1 = "select 閰嶄欢ID HMaterID, 閰嶄欢浠g爜 HMaterNumber,閰嶄欢鍚嶇О HMaterName,鍗曚綅ID HUnitID,璁¢噺鍗曚綅浠g爜 HUnitNumber,璁¢噺鍗曚綅鍚嶇О HUnitName,鐢ㄩ噺 HQty,鏍囧噯鐢ㄩ噺 HQtyMust,瀛愬娉�1 HRemark,瑙勬牸鍨嬪彿 HMaterSpec from h_v_Sc_MouldMaintainPlanBillSub where 1 = 1 " + sqlWhere + ""; ds1 = oCN.RunProcReturn(sql1, "h_v_Sc_MouldMaintainPlanBillSub"); list.Add(ds.Tables[0]); @@ -3164,6 +3190,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); + //string msg5 = sArray[3].ToString(); string UserName = ""; ListModels oListModels = new ListModels(); @@ -3187,6 +3214,7 @@ { //oItem.HMaker = ""; UserName = oItem.HMaker; //鍒跺崟浜� + oItem.HMaker = msg4; oItem.HBillType = "3821"; oItem.HBillSubType = "3821"; @@ -3249,6 +3277,32 @@ oBill.DetailColl.Add(oItemSub); } + + ////閰嶄欢椤硅〃浣撴暟鎹� + ////鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + //msg5 = msg5.Substring(1, msg5.Length - 2); + //msg5 = msg5.Replace("\\", ""); + //msg5 = msg5.Replace("\n", ""); //\n + // //msg2 = msg2.Replace("'", "鈥�"); + //List<Model.ClsSc_MouldDotCheckBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckBillSub_Item>(); + //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckBillSub_Item(msg5); + //int j = 0; + //foreach (Model.ClsSc_MouldDotCheckBillSub_Item oItemSub in ls1) + //{ + + // j++; + // oItemSub.HEntryID = j; + // //oItemSub.HCloseMan = ""; //琛屽叧闂� + // oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + // oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + + // oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + // oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + + // oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + // oBill.DetailCol.Add(oItemSub); + //} + //淇濆瓨 //淇濆瓨瀹屾瘯鍚庡鐞� bool bResult; @@ -3310,28 +3364,29 @@ [HttpGet] public object Sc_MouldDotCheckBillListProjectDetai(string sqlWhere) { - DataSet ds; + DataSet ds, ds1; + List<object> list = new List<object>(); + string Swhere = ""; try { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); - if (sqlWhere == null || sqlWhere.Equals("")) - { - ds = oCN.RunProcReturn("select HDotCheckItemID,鐐规椤圭洰 HDotCheckItem,鐐规閮ㄤ綅 HDotCheckPart,鍏蜂綋瑕佹眰 HClaim,琛ㄤ綋澶囨敞 HRemark,HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜� HManagerName from h_v_Sc_MouldDotCheckBillList", "h_v_Sc_MouldDotCheckBillList"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } - else - { - string sql1 = "select HDotCheckItemID,鐐规椤圭洰 HDotCheckItem,鐐规閮ㄤ綅 HDotCheckPart,鍏蜂綋瑕佹眰 HClaim,琛ㄤ綋澶囨敞 HRemark,HManagerID,璐熻矗浜轰唬鐮� HManagerNumber,璐熻矗浜� HManagerName from h_v_Sc_MouldDotCheckBillList where 1 = 1 "; - string sql = sql1 + sqlWhere; - ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldDotCheckBillList"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } + //鑾峰彇鐐规椤圭洰缂栬緫鏁版嵁 + ds = oCN.RunProcReturn("select HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckBillSub a left join Gy_Employee e on a.HManagerID=e.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckBillSub"); + //鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 + ds1 = oCN.RunProcReturn(@"select b.HMaterID, mt.Hnumber HMaterNumber ,mt.HName HMaterName, b.HUnitID + ,u2.hnumber HUnitNumber,u2.HName HUnitName,b.HQty,b.HQtyMust,b.HRemark + from Sc_MouldDotCheckBillSub_Item b + left join Gy_Material mt on b.HMaterID=mt.HItemID + left join h_v_IF_Unit u2 on b.HUnitID=u2.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckBillSub_Item"); + list.Add(ds.Tables[0]); + list.Add(ds1.Tables[0]); + + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = null; + objJsonResult.list = list; + } catch (Exception e) { @@ -3470,6 +3525,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); + //string msg5 = sArray[3].ToString(); string UserName = ""; @@ -3484,7 +3540,7 @@ objJsonResult.data = null; return objJsonResult; } - + DBUtility.ClsPub.CurUserName = msg4; DAL.ClsSc_MouldDotCheckPlanBill oBill = new DAL.ClsSc_MouldDotCheckPlanBill(); List<Model.ClsSc_MouldDotCheckPlanBillMain> lsmain = new List<Model.ClsSc_MouldDotCheckPlanBillMain>(); msg2 = msg2.Replace("\\", ""); @@ -3494,8 +3550,8 @@ { //oItem.HMaker = ""; UserName = oItem.HMaker; //鍒跺崟浜� - oItem.HBillType = "3821"; - oItem.HBillSubType = "3821"; + oItem.HBillType = "3820"; + oItem.HBillSubType = "3820"; //oItem.HInterID =0; //oItem.HBillNo = ""; @@ -3523,7 +3579,7 @@ } oBill.omodel = oItem; } - //琛ㄤ綋鏁版嵁 + //鐐规椤圭洰琛ㄤ綋鏁版嵁 //鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� msg3 = msg3.Substring(1, msg3.Length - 2); msg3 = msg3.Replace("\\", ""); @@ -3556,6 +3612,32 @@ oBill.DetailColl.Add(oItemSub); } + + ////閰嶄欢椤硅〃浣撴暟鎹� + ////鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + //msg5 = msg5.Substring(1, msg5.Length - 2); + //msg5 = msg5.Replace("\\", ""); + //msg5 = msg5.Replace("\n", ""); //\n + // //msg2 = msg2.Replace("'", "鈥�"); + //List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> ls1 = new List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>(); + //ls1 = oListModels.getObjectByJson_Sc_MouldDotCheckPlanBillSub_Item(msg5); + //int j = 0; + //foreach (Model.ClsSc_MouldDotCheckPlanBillSub_Item oItemSub in ls1) + //{ + + // j++; + // oItemSub.HEntryID = j; + // //oItemSub.HCloseMan = ""; //琛屽叧闂� + // oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + // oItemSub.HCloseType = false; //鍏抽棴绫诲瀷 + + // oItemSub.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + // oItemSub.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + + // oItemSub.HRelationQty = 0; //鍏宠仈鏁伴噺 + // oBill.DetailCol.Add(oItemSub); + //} + //淇濆瓨 //淇濆瓨瀹屾瘯鍚庡鐞� bool bResult; @@ -3617,28 +3699,29 @@ [HttpGet] public object Sc_MouldDotCheckPlanBillListProjectDetai(string sqlWhere) { - DataSet ds; + DataSet ds, ds1; + List<object> list = new List<object>(); + string Swhere = ""; try { SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); - if (sqlWhere == null || sqlWhere.Equals("")) - { - ds = oCN.RunProcReturn("select HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a left join Gy_Employee e on a.HManagerID=e.HItemID", "Sc_MouldDotCheckPlanBillSub"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } - else - { - string sql1 = "select HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a left join Gy_Employee e on a.HManagerID=e.HItemID where 1 = 1 "; - string sql = sql1 + sqlWhere; - ds = oCN.RunProcReturn(sql, "Sc_MouldDotCheckPlanBillSub"); - objJsonResult.code = "0"; - objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; - objJsonResult.data = ds.Tables[0]; - } + //鑾峰彇鐐规椤圭洰缂栬緫鏁版嵁 + ds = oCN.RunProcReturn(@"select a.HDotCheckItemID,HDotCheckItem, HDotCheckPart , HClaim, a.HRemark,a.HManagerID,e.HNumber HManagerCode,e.HName HManagerName from Sc_MouldDotCheckPlanBillSub a + left join Gy_Employee e on a.HManagerID=e.HItemID + where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub"); + ////鑾峰彇閰嶄欢椤圭洰缂栬緫鏁版嵁 + //ds1 = oCN.RunProcReturn(@"select b.HMaterID, mt.Hnumber HMaterNumber ,mt.HName HMaterName, b.HUnitID + // ,u2.hnumber HUnitNumber,u2.HName HUnitName,b.HQty,b.HQtyMust,b.HRemark + // from Sc_MouldDotCheckPlanBillSub_Item b + // left join Gy_Material mt on b.HMaterID=mt.HItemID + // left join h_v_IF_Unit u2 on b.HUnitID=u2.HItemID where 1=1 " + sqlWhere, "Sc_MouldDotCheckPlanBillSub_Item"); + list.Add(ds.Tables[0]); + //list.Add(ds1.Tables[0]); + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�"; + objJsonResult.data = null; + objJsonResult.list = list; } catch (Exception e) { @@ -3772,7 +3855,7 @@ ds = oCN.RunProcReturn(string.Format(@"SELECT HMaterID,妯″叿浠g爜 HMaterCode,妯″叿鍚嶇О HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,HPropertyID,杈呭姪灞炴�т唬鐮� HPropertyCode,杈呭姪灞炴�у悕绉� HPropertyName, HSecUnitID, 杈呭姪璁¢噺鍗曚綅浠g爜 HSecUnitCode, 杈呭姪璁¢噺鍗曚綅鍚嶇О HSecUnitName, HUnitID, 璁¢噺鍗曚綅浠g爜 HUnitCode, 璁¢噺鍗曚綅鍚嶇О HUnitName, 鎵规 HBatchNo, 璁捐瀵垮懡 HDesignLife, 鍓╀綑瀵垮懡 HLeaveLife, 浣跨敤瀵垮懡 HUseLife, 瀹炴敹鏁伴噺 HQty, 鍗曚环 HPrice, 閲戦 HMoney, HWHID, 鏀舵枡浠撳簱浠g爜 HWHCode, 鏀舵枡浠撳簱鍚嶇О HWHName, - HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 澶囨敞 HRemark,HStockOrgID + HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 瀛愬娉� HRemark,HStockOrgID FROM h_v_Sc_MouldScrapInHouseBillList"), "h_v_Sc_MouldScrapInHouseBillList"); } @@ -3783,7 +3866,7 @@ string sql1 = string.Format(@"SELECT HMaterID,妯″叿浠g爜 HMaterCode,妯″叿鍚嶇О HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,HPropertyID,杈呭姪灞炴�т唬鐮� HPropertyCode,杈呭姪灞炴�у悕绉� HPropertyName, HSecUnitID, 杈呭姪璁¢噺鍗曚綅浠g爜 HSecUnitCode, 杈呭姪璁¢噺鍗曚綅鍚嶇О HSecUnitName, HUnitID, 璁¢噺鍗曚綅浠g爜 HUnitCode, 璁¢噺鍗曚綅鍚嶇О HUnitName, 鎵规 HBatchNo, 璁捐瀵垮懡 HDesignLife, 鍓╀綑瀵垮懡 HLeaveLife, 浣跨敤瀵垮懡 HUseLife, 瀹炴敹鏁伴噺 HQty, 鍗曚环 HPrice, 閲戦 HMoney, HWHID, 鏀舵枡浠撳簱浠g爜 HWHCode, 鏀舵枡浠撳簱鍚嶇О HWHName, - HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 澶囨敞 HRemark,HStockOrgID + HSPID, 浠撲綅浠g爜 HSPCode, 浠撲綅鍚嶇О HSPName, 瀛愬娉� HRemark,HStockOrgID FROM h_v_Sc_MouldScrapInHouseBillList where 1 = 1 "); string sql = sql1 + sqlWhere; ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldScrapInHouseBillList"); @@ -5781,7 +5864,7 @@ ds = oCN.RunProcReturn(string.Format(@"SELECT HMaterID,妯″叿浠g爜 HMaterCode,妯″叿 HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,HPropertyID,杈呭姪灞炴�т唬鐮� HPropertyCode,杈呭姪灞炴�� HPropertyName, HSecUnitID, 杈呭姪璁¢噺鍗曚綅浠g爜 HSecUnitCode, 杈呭姪璁¢噺鍗曚綅 HSecUnitName,鎹㈢畻鐜� HSecUnitRate, HUnitID, 璁¢噺鍗曚綅浠g爜 HUnitCode, 璁¢噺鍗曚綅 HUnitName, - 璁捐瀵垮懡 HDesignLife, 鍘熷墿浣欏鍛� HLeaveLife, 鏂板墿浣欏鍛� HNewLife,琛ㄤ綋澶囨敞 HRemark + 璁捐瀵垮懡 HDesignLife, 鍘熷墿浣欏鍛� HLeaveLife, 鏂板墿浣欏鍛� HNewLeaveLife,琛ㄤ綋澶囨敞 HRemark FROM h_v_Sc_MouldLifeChangeBillList_Edit"), "h_v_Sc_MouldLifeChangeBillList_Edit"); objJsonResult.code = "0"; @@ -5796,7 +5879,7 @@ string sql1 = string.Format(@"SELECT HMaterID,妯″叿浠g爜 HMaterCode,妯″叿 HMaterName,瑙勬牸鍨嬪彿 HMaterSpec,HPropertyID,杈呭姪灞炴�т唬鐮� HPropertyCode,杈呭姪灞炴�� HPropertyName, HSecUnitID, 杈呭姪璁¢噺鍗曚綅浠g爜 HSecUnitCode, 杈呭姪璁¢噺鍗曚綅 HSecUnitName,鎹㈢畻鐜� HSecUnitRate, HUnitID, 璁¢噺鍗曚綅浠g爜 HUnitCode, 璁¢噺鍗曚綅 HUnitName, - 璁捐瀵垮懡 HDesignLife, 鍘熷墿浣欏鍛� HLeaveLife, 鏂板墿浣欏鍛� HNewLife,琛ㄤ綋澶囨敞 HRemark + 璁捐瀵垮懡 HDesignLife, 鍘熷墿浣欏鍛� HLeaveLife, 鏂板墿浣欏鍛� HNewLeaveLife,琛ㄤ綋澶囨敞 HRemark FROM h_v_Sc_MouldLifeChangeBillList_Edit where 1 = 1 "); string sql = sql1 + sqlWhere; ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldLifeChangeBillList_Edit"); diff --git a/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs b/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs index 87ed716..90d4350 100644 --- a/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs +++ b/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs @@ -109,9 +109,8 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); - int hentryid = int.Parse(sArray[2].ToString());//瀛愯〃鐨勯『搴廼d - int OperationType = int.Parse(sArray[3].ToString());//鏁版嵁绫诲瀷 1娣诲姞 3淇敼 - string msg4 = sArray[4].ToString(); + int OperationType = int.Parse(sArray[2].ToString());//鏁版嵁绫诲瀷 1娣诲姞 3淇敼 + string msg4 = sArray[3].ToString(); try { if (!DBUtility.ClsPub.Security_Log("Sc_MouldRepairSendWorkBill_Edit", 1, false, msg4)) @@ -183,10 +182,10 @@ " where HInterID=" + omodel.HInterID.ToString()); //鍒犻櫎瀛愯〃 - oCN.RunProc("delete from Sc_MouldRepairSendWorkBillSub where HInterID='" + omodel.HInterID.ToString() + "' and HEntryID='" + hentryid + "'"); + oCN.RunProc("delete from Sc_MouldRepairSendWorkBillSub where HInterID='" + omodel.HInterID.ToString() + "'"); } //淇濆瓨瀛愯〃 - objJsonResult = AddBillSub(msg3, hentryid); + objJsonResult = AddBillSub(msg3); if (objJsonResult.code == "0") { objJsonResult.code = "0"; @@ -212,7 +211,7 @@ } } - public json AddBillSub(string msg3, int hentryid) + public json AddBillSub(string msg3) { DetailColl = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSb_MouldRepairWorkBillSub>>(msg3); int i = 1; @@ -224,7 +223,7 @@ ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + ",HRepairID,HRepairExplanation,HManagerID,HMoney" + ") values(" - + omodel.HInterID.ToString() + "," + (hentryid == -1 ? i : hentryid) + ",'" + oSub.HCloseMan + "','" + DateTime.Now + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + + + omodel.HInterID.ToString() + "," + (i) + ",'" + oSub.HCloseMan + "','" + DateTime.Now + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + "," + oSub.HRepairID.ToString() + ",'" + oSub.HRepairExplanation + "'," + oSub.HManagerID.ToString() + "," + oSub.HMoney.ToString() + ") "); diff --git a/WebAPI/Controllers/Sc_ProcessMangementController.cs b/WebAPI/Controllers/Sc_ProcessMangementController.cs index ee003ae..9a71202 100644 --- a/WebAPI/Controllers/Sc_ProcessMangementController.cs +++ b/WebAPI/Controllers/Sc_ProcessMangementController.cs @@ -100,6 +100,51 @@ return objJsonResult; } + #region 鏈亾宸ュ簭姹囨姤鍏ュ簱 + /// <summary> + /// 鏈亾宸ュ簭姹囨姤鍏ュ簱鍒楄〃 + /// </summary> + /// <param name="sWhere"></param> + /// <param name="user"></param> + /// <returns></returns> + [Route("Sc_ProcessMangement/Sc_ProcessReportList_Last")] + [HttpGet] + public object Sc_ProcessReportList_Last(string sWhere, string user) + { + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + if (!DBUtility.ClsPub.Security_Log("Cj_StationOutBill_Query", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.data = null; + return objJsonResult; + } + + string sql1 = "select * from h_v_Sc_ProcessReportList_Last where 1 = 1 and HLastProc='鏄�'"; + string sql = sql1 + sWhere + " order by hmainid desc"; + ds = oCN.RunProcReturn(sql, "h_v_Sc_ProcessReportList_Last"); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + #region 宸ュ簭姹囨姤鍏ュ簱 /// <summary> /// 鑾峰彇宸ュ簭姹囨姤鍏ュ簱鍗曞垪琛� @@ -123,16 +168,11 @@ return objJsonResult; } - if (sWhere == null || sWhere.Equals("")) - { - ds = oCN.RunProcReturn("select * from h_v_MES_StationOutBillList_LastProc order by hmainid desc", "h_v_MES_StationOutBillList_LastProc"); - } - else - { - string sql1 = "select * from h_v_MES_StationOutBillList_LastProc where 1 = 1 "; - string sql = sql1 + sWhere + " order by hmainid desc"; - ds = oCN.RunProcReturn(sql, "h_v_MES_StationOutBillList_LastProc"); - } + + string sql1 = "select * from h_v_Sc_ProcessReportList_Last where 1 = 1 and HFstProc='鏄�' "; + string sql = sql1 + sWhere + " order by hmainid desc"; + ds = oCN.RunProcReturn(sql, "h_v_Sc_ProcessReportList_Last"); + objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucess锛�"; @@ -149,6 +189,216 @@ return objJsonResult; } } + + #region 鏂帿灏� 鏈亾宸ュ簭姹囨姤鍒楄〃 姹囨姤 鍏ュ簱 + /// <summary> + /// 鐢熸垚 鐢熶骇姹囨姤鍗� + /// 鍚屾閲戣澏浜� 宸ュ簭姹囨姤鍏ュ簱鍗� 鍏ュ簱 + /// </summary> + /// <param name="InterID"></param> + /// <param name="user"></param> + /// <param name="BillNo"></param> + /// <param name="OrganizationID"></param> + /// <returns></returns> + //[Route("Sc_ProcessMangement/SRM_SaveICMOReportBill")] + //[HttpGet] + //public object SRM_SaveICMOReportBill(string InterID, string user, string BillNo, string OrganizationID) + //{ + // try + // { + // //鑾峰彇鐢熶骇姹囨姤鍗曟渶澶nterID鍜屽崟鎹彿 + // Int64 HInterID = DBUtility.ClsPub.CreateBillID("3711", ref DBUtility.ClsPub.sExeReturnInfo); + // string HBillNo = DBUtility.ClsPub.CreateBillCode("3711", ref DBUtility.ClsPub.sExeReturnInfo, true); + // //鑾峰彇缁勭粐浠g爜 + // string OrganizationNUM = oCN.RunProcReturn("select HNumber from Xt_ORGANIZATIONS where HItemID=" + OrganizationID, "Xt_ORGANIZATIONS").Tables[0].Rows[0]["HNumber"].ToString(); + // //鏍规嵁宸ュ簭姹囨姤鍗曚富ID鑾峰彇宸ュ簭姹囨姤鍏ュ簱鍗曠殑鏁版嵁 + // DataSet ds = oCN.RunProcReturn("select * from h_v_MES_StationOutBillList_LastProc where HInterID=" + InterID, "h_v_MES_StationOutBillList_LastProc"); + // DataRow dr = ds.Tables[0].Rows[0]; + + // //淇濆瓨 + // oCN.BeginTran(); + // DataSet DsTable = oCN.RunProcReturn($"select * from Sc_ICMOReportBillMain where HBillNo='{HBillNo}'", "Sc_ICMOReportBillMain"); + // if (DsTable.Tables[0].Rows.Count > 0) + // { + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "宸插叆搴�,璇蜂笉瑕侀噸澶嶅叆搴�"; + // objJsonResult.data = null; + // return objJsonResult; + // } + // //鐢熶骇姹囨姤鍗曚富琛� + // oCN.RunProc("Insert Into Sc_ICMOReportBillMain " + + // "(HBillType,HBillSubType,HInterID,HBillNo,HDate,HMaker,HMakeDate,HBillStatus,HChecker,HCheckDate" + + // ",HYear,HPeriod,HRemark,HEmpID,HEmpNumber" + + // ",HGroupID,HDeptID,HDeptNumber" + + // ",HMainSourceBillNo,HMainSourceInterID,HMainSourceEntryID,HMainSourceBillType" + + // ") " + + // " values('3711','3711'," + HInterID.ToString() + ",'" + BillNo + "',getdate(),'" + user + "',getdate(),2,'" + user + "',getdate()" + + // ",DATENAME(YEAR,GETDATE()),0,'','" + dr["HEmpID"].ToString() + "','" + dr["鎿嶄綔鍛樹唬鐮�"].ToString() + + // "','" + dr["HGroupID"].ToString() + "',0,''" + + // ",'" + BillNo.ToString() + "'," + InterID.ToString() + ", 0,'3791'" + + // ") "); + // //鐢熶骇姹囨姤鍗曞瓙琛� + // oCN.RunProc("Insert into Sc_ICMOReportBillSub " + + // " (HInterID,HEntryID,HMaterID,HMaterNumber" + + // ",HQty,HUnitID,HUnitNumber,HTimes,HSourceID" + + // ",HQtyMust,HWorkerID,HWorkerNumber,HBadCount,HWasterQty," + + // "HCloseMan,HCloseType,HRemark," + + // "HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + + // ",HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + + // ",HICMOInterID,HICMOBillNo,HBarCode" + + // ") values(" + // + HInterID.ToString() + ",1," + dr["HMaterID"].ToString() + ",'" + dr["浜у搧浠g爜"].ToString() + "'" + + // "," + dr["鍚堟牸鏁伴噺"].ToString() + ",0,'',0,0" + + // "," + dr["鎺ユ敹鏁伴噺"].ToString() + "," + dr["HEmpID"].ToString() + ",'" + dr["鎿嶄綔鍛樹唬鐮�"].ToString() + "'," + dr["涓嶈壇鏁伴噺"].ToString() + "," + dr["鎶ュ簾鏁伴噺"].ToString() + + // ",'',0,''" + + // "," + InterID.ToString() + ",0,'" + BillNo.ToString() + "','3791',0,0" + + // ",0,0,''" + + // "," + dr["HICMOInterID"].ToString() + ",'" + dr["浠诲姟鍗�"].ToString() + "',''" + + // ") "); + // //鍚屾閲戣澏 + // //璁块棶閲戣澏 + // var loginRet = InvokeHelper.Login(); + // var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + // if (isSuccess == 0) + // { + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "鎿嶄綔澶辫触,閲戣澏璐﹀彿鐧诲綍寮傚父銆�" + loginRet; + // objJsonResult.data = null; + // return objJsonResult; + // } + // //鏍规嵁浠诲姟鍗曟煡鎵惧埌閲戣澏鐨勭敓浜ц鍗� + // DataSet ds1 = oCN.RunProcReturn("select * from h_v_TOERP_StationOutBillList_LastProc where HICMOEntryID=" + dr["HICMOEntryID"].ToString(), "h_v_TOERP_StationOutBillList_LastProc"); + // DataRow dr1 = ds1.Tables[0].Rows[0]; + + // JObject model = new JObject(); + // model.Add("FBillType", new JObject() { ["Fnumber"] = "SCHBD01_SYS" }); //鍗曟嵁绫诲瀷鐢熶骇姹囨姤鈥淪CHBD02_SYS鈥� 鍏ュ簱姹囨姤SCHBD01_SYS + // model.Add("FPrdOrgId", new JObject() { ["Fnumber"] = dr1["FPrdOrgNUMBER"].ToString() }); //鐢熶骇缁勭粐1 + // model.Add("FDate", DateTime.Now.ToString("yyyy-MM-dd")); //鍗曟嵁鏃ユ湡1 + // model.Add("FHZYMESFLAG", "鏄�");// 鏄惁涓篗ES鍚屾 + // model.Add("FBillNo", BillNo); + + // JArray Fentity = new JArray(); + + // foreach (DataRow item in ds.Tables[0].Rows) + // { + // JObject FentityModel = new JObject(); + // FentityModel.Add("FIsNew", false);// 婧愬崟绫诲瀷 + // FentityModel.Add("FReportType", new JObject() { ["Fnumber"] = dr1["FREPORTTYPENUMBER"].ToString() });//鐢熶骇姹囨姤绫诲瀷 + // FentityModel.Add("FSrcBillType", "PRD_MO");// 婧愬崟绫诲瀷 + // FentityModel.Add("FProductType", "1");// 浜у搧绫诲瀷 + // FentityModel.Add("FSrcBillNo", item["浠诲姟鍗�"].ToString());// 婧愬崟缂栧彿 + // FentityModel.Add("FSrcInterId", dr1["FMOID"].ToString());// 婧愬崟鍐呯爜 + // FentityModel.Add("FSrcEntryId", dr1["FMOENTRYID"].ToString());// 婧愬崟鍒嗗綍鍐呯爜銆� + // FentityModel.Add("FSRCENTRYSEQ", dr1["FMOENTRYSEQ"].ToString());// 婧愬崟鍒嗗綍琛屽彿 + // FentityModel.Add("FUNITID", new JObject() { ["Fnumber"] = dr1["FUNITNUMBER"].ToString() });//鍗曚綅 + // FentityModel.Add("FTimeUnitId", "1");//鏃堕棿鍗曚綅 + // FentityModel.Add("FWorkshipId", new JObject() { ["Fnumber"] = dr1["FWorkShopNUM"].ToString() }); // 鐢熶骇杞﹂棿 + // FentityModel.Add("FStandHourUnitId", "3600"); // 鍗曚綅鏍囧噯宸ユ椂鍗曚綅 + // FentityModel.Add("FMaterialId", new JObject() { ["Fnumber"] = dr1["FMaterialNUM"].ToString() }); // 鐗╂枡缂栫爜 + // FentityModel.Add("FMoEntrySeq", dr1["FMOENTRYSEQ"].ToString());//鐢熶骇璁㈠崟琛屽彿 + // FentityModel.Add("FMoId", dr1["HICMOInterID"].ToString());//鐢熶骇璁㈠崟鍐呯爜 + // FentityModel.Add("FFinishQty", item["鎺ユ敹鏁伴噺"].ToString());//瀹屾垚鏁伴噺1 + // FentityModel.Add("FQuaQty", item["鍚堟牸鏁伴噺"].ToString());//鍚堟牸鏁伴噺1FFailQty + // FentityModel.Add("FFailQty", item["涓嶈壇鏁伴噺"].ToString());//涓嶅悎鏍兼暟閲� + // FentityModel.Add("FStockInOrgId ", new JObject() { ["Fnumber"] = OrganizationNUM });// 鍏ュ簱缁勭粐 + // FentityModel.Add("FStockId", new JObject() { ["Fnumber"] = dr1["FStockNUM"].ToString() }); // 浠撳簱 + // FentityModel.Add("FMOID", dr1["FMOID"].ToString());// + // FentityModel.Add("FMOBILLNO", dr1["FMOBILLNO"].ToString());// + // FentityModel.Add("FMOENTRYID", dr1["FMOENTRYID"].ToString());// + // FentityModel.Add("FMOENTRYSEQ", dr1["FMOENTRYSEQ"].ToString());// + // FentityModel.Add("FOwnerTypeId", dr1["FOWNERTYPEID"].ToString()); //璐т富绫诲瀷锛欶OwnerTypeId(蹇呭~椤�) + // FentityModel.Add("FOwnerId", new JObject() { ["Fnumber"] = dr1["FOwnerNumber"].ToString() }); //璐т富锛欶OwnerId(蹇呭~椤�) + // FentityModel.Add("FBomId", new JObject() { ["Fnumber"] = dr1["FBOMNUM"].ToString() }); //BOM鐗堟湰锛欶BomId(蹇呭~椤�) + // FentityModel.Add("FCostRate", dr1["FCostRate"].ToString());// 鎴愭湰鏉冮噸 + // FentityModel.Add("FISBACKFLUSH", dr1["FISBACKFLUSH"].ToString() == "1" ? true : false);// 鍊掑啿棰嗘枡 + // FentityModel.Add("FMOMAINENTRYID", dr1["FMOENTRYID"].ToString());// + // FentityModel.Add("F_bsv_Base1", new JObject() { ["Fnumber"] = dr1["FPREBDONENUMBER"].ToString() }); //鍖呰鏍囪瘑 + // FentityModel.Add("FLot", new JObject() { ["FNumber"] = dr1["FBATCHNO"].ToString() }); //鎵瑰彿 + // FentityModel.Add("F_bsv_Text", dr1["宸ュ簭娴佽浆鍗″彿"].ToString()); //娴佽浆鍗″彿 + // JArray Fentity2 = new JArray(); + // JObject FentityModel2 = new JObject(); + // FentityModel2.Add("FEntity_Link_FFlowId", "f6e6eec3-5267-4f02-8593-b633da508a72"); + // FentityModel2.Add("FEntity_Link_FFlowLineId", "PRD_MO2MORPT"); + // FentityModel2.Add("FEntity_Link_FRuleId", "3"); + // FentityModel2.Add("FEntity_Link_FSTableId", "0"); + // FentityModel2.Add("FEntity_Link_FSTableName", "T_PRD_MOENTRY"); + // FentityModel2.Add("FEntity_Link_FSBillId", dr1["FMOID"].ToString()); + // FentityModel2.Add("FEntity_Link_FSId", dr1["FMOENTRYID"].ToString()); + // FentityModel2.Add("FEntity_Link_FBaseQuaQtyOld", item["鍚堟牸鏁伴噺"].ToString()); + // FentityModel2.Add("FEntity_Link_FBaseQuaQty", item["鍚堟牸鏁伴噺"].ToString()); + // Fentity2.Add(FentityModel2); + // FentityModel.Add("FEntity_Link", Fentity2); + // FentityModel.Add("FBFLowId", new JObject() { ["FID"] = "f6e6eec3-5267-4f02-8593-b633da508a72" }); // + // Fentity.Add(FentityModel); + // } + // model.Add("FEntity", Fentity); //鏄庣粏淇℃伅 + // JObject jsonRoot = new JObject() + // { + // ["Creator"] = "", + // ["NeedUpDateFields"] = new JArray(), + // ["NeedReturnFields"] = new JArray(), + // ["IsDeleteEntry"] = "false", + // ["SubSystemId"] = "", + // ["IsVerifyBaseDataField"] = "false", + // //["IsAutoSubmitAndAudit"] = true,//鑷姩璋冪敤鎻愪氦鍜屽鏍稿姛鑳� + // ["Model"] = model + // }; + + // string result = InvokeHelper.Save("PRD_MORPT", JsonConvert.SerializeObject(jsonRoot));//淇濆瓨 + // //鍒ゆ柇淇濆瓨鏄惁鎴愬姛 + // if (JObject.Parse(result)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + // { + // LogService.Write("宸ュ簭姹囨姤鍗曞叆搴撻敊璇痡sonRoot:" + jsonRoot); + // oCN.RollBack(); + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = $"鐢熶骇姹囨姤鍏ュ簱鍗曞悓姝ラ噾铦朵簯澶辫触锛佸崟鍙�:{dr["鍗曟嵁鍙�"].ToString()}" + result; + // objJsonResult.data = null; + // return objJsonResult; + // } + // //鎻愪氦瀹℃牳 + // string result1 = string.Empty; + // string result2 = string.Empty; + // var fID = JObject.Parse(result)["Result"]["Id"].ToString(); + // var fBillNo = JObject.Parse(result)["Result"]["Number"].ToString(); + // var json = new + // { + // Ids = fID, + // }; + // result1 = InvokeHelper.Submit("PRD_MORPT", JsonConvert.SerializeObject(json));//鎻愪氦 + // result2 = InvokeHelper.Audit("PRD_MORPT", JsonConvert.SerializeObject(json));//鎻愪氦 + // if (JObject.Parse(result1)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + // { + // oCN.RollBack(); + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = $"鐢熶骇姹囨姤鍗曞崟鍙凤細{fBillNo}锛屾彁浜ゅけ璐�" + result; + // objJsonResult.data = null; + // return objJsonResult; + // } + + // oCN.RunProc("update Sc_StationOutBillMain set HRelationQty=1 where HBillNo='" + BillNo + "'"); + + // oCN.Commit(); + // objJsonResult.code = "0"; + // objJsonResult.count = 1; + // objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; + // objJsonResult.data = 1; + // return objJsonResult; + // } + // catch (Exception e) + // { + // oCN.RollBack(); + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "Exception锛�" + e.ToString(); + // objJsonResult.data = null; + // return objJsonResult; + // } + //} + #endregion /// <summary> /// 鍏ュ簱鈥斺�旂敓浜ф眹鎶ュ崟 @@ -333,6 +583,8 @@ objJsonResult.data = null; return objJsonResult; } + + oCN.RunProc("update Sc_StationOutBillMain set HRelationQty=1 where HBillNo='" + BillNo+"'"); oCN.Commit(); objJsonResult.code = "0"; @@ -579,6 +831,8 @@ return objJsonResult; } + oCN.RunProc("update Sc_StationOutBillMain set HRelationQty=1 where HBillNo='" + BillNo + "'"); + oCN.Commit(); objJsonResult.code = "0"; objJsonResult.count = 1; @@ -712,7 +966,7 @@ FentityModel.Add("FSrcInterId", item["HSourceInterID"].ToString());// FentityModel.Add("FBasePrdRealQty", item["鏁伴噺"].ToString());// FentityModel.Add("FIsFinished", "false");// - FentityModel.Add("FStockStatusId", new JObject() { ["FNumber"] = "KCZT01_SYS" }); // + FentityModel.Add("FStockStatusId", new JObject() { ["FNumber"] = "KCZT08_SYS" }); // FentityModel.Add("FSrcEntrySeq", item["HSourceSeQ"].ToString());// 婧愬崟鍒嗗綍琛屽彿 FentityModel.Add("FMOMAINENTRYID", item["HMOEntryID"].ToString());// FentityModel.Add("FKeeperTypeId", "BD_KeeperOrg"); @@ -816,6 +1070,8 @@ return objJsonResult; } + //oCN.RunProc("update Sc_StationOutBillMain set HRelationQty=1 where HBillNo='" + BillNo + "'"); + oCN.Commit(); oCN.RunProc("update sc_stationoutbillmain set HBFFlag =1 where HProcExchBillNo = '" + BillNo + "'"); objJsonResult.code = "0"; diff --git a/WebAPI/Controllers/SellOutController.cs b/WebAPI/Controllers/SellOutController.cs index 33e2be2..edb20e3 100644 --- a/WebAPI/Controllers/SellOutController.cs +++ b/WebAPI/Controllers/SellOutController.cs @@ -557,8 +557,8 @@ List<Model.ClsKf_SellOutBillMain> lsmain = new List<Model.ClsKf_SellOutBillMain>(); ListModels oListModels = new ListModels(); lsmain = oListModels.getSellOutBillMainByJson(msg1); - lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); - lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); + //lsmain[0].HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); + //lsmain[0].HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd")); lsmain[0].HRedBlueFlag = false; string sSourceBillType = lsmain[0].HBillType; diff --git a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs index 23afaab..eec42b0 100644 --- a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs +++ b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs @@ -15,6 +15,8 @@ //閿�鍞鍗旵ontroller public class Xs_SeOrderBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -431,7 +433,325 @@ } } + #region [鍚屾鍗曟嵁] + [Route("Xs_SeOrderBill/Xs_SeOrderBillViewApi")] + [HttpGet] + public json Xs_SeOrderBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("SAL_SaleOrder", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏閿�鍞鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Xs_SeOrderBillMain where HBillNo = '" + BillNo + "'", "Xs_SeOrderBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 1401, + HBillSubType = 1401, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = _saveObj["Result"]["Result"]["ApproverId_Id"].ToString() == Convert.ToString(0) ? 1 : 2, + HAddress = _saveObj["Result"]["Result"]["ReceiveAddress"], + HSSID = 0, + HSSDate = _saveObj["Result"]["Result"]["Date"], + HCusID = _saveObj["Result"]["Result"]["CustId_Id"], + HCurID = 0, + HExRate = 0, + HEmpID = _saveObj["Result"]["Result"]["SalerId_Id"], + HManagerID = 0, + HDeptID = _saveObj["Result"]["Result"]["SaleDeptId_Id"], + HExplanation = "", + HRemark = "CLOUD瀵煎叆", + HInnerBillNo = _saveObj["Result"]["Result"]["Note"], + HChecker = _saveObj["Result"]["Result"]["ApproverId"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HMaker = _saveObj["Result"]["Result"]["CreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HCloseMan = _saveObj["Result"]["Result"]["CloserId_Id"], + HCloseDate = _saveObj["Result"]["Result"]["CloseDate"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillTypeId_Id"], + HSALEORGID = _saveObj["Result"]["Result"]["SaleOrgId_Id"], + HSALEGROUPID = _saveObj["Result"]["Result"]["SaleGroupId_Id"], + HRECEIVEID = _saveObj["Result"]["Result"]["ReceiveId_Id"], + HSETTLEID = _saveObj["Result"]["Result"]["SettleId_Id"], + HCHARGEID = _saveObj["Result"]["Result"]["ChargeId_Id"], + HHEADLOCID = _saveObj["Result"]["Result"]["HeadLocId_Id"], + HRECCONTACTID = 0, + HCORRESPONDORGID = _saveObj["Result"]["Result"]["CorrespondOrgId_Id"], + HBUSINESSTYPE = _saveObj["Result"]["Result"]["BusinessType"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Xs_SeOrderBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Xs_SeOrderBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus + ,HAddress,HSSID,HSSDate,HCusID,HCurID,HExRate + ,HEmpID,HManagerID,HDeptID,HExplanation,HRemark,HInnerBillNo + ,HChecker,HCheckDate,HMaker,HMakeDate,HCloseMan,HCloseDate + ,HERPInterID,HERPBillType,HSALEORGID,HSALEGROUPID,HRECEIVEID,HSETTLEID + ,HCHARGEID,HHEADLOCID,HRECCONTACTID,HCORRESPONDORGID,HBUSINESSTYPE + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType}, + '{jsonData.HDate}','{jsonData.HBillNo}',{jsonData.HBillStatus},'{jsonData.HAddress}',{jsonData.HSSID},'{jsonData.HSSDate}',{jsonData.HCusID}, + {jsonData.HCurID},{jsonData.HExRate},{jsonData.HEmpID},{jsonData.HManagerID},{jsonData.HDeptID}, + '{jsonData.HExplanation}','{jsonData.HRemark}','{jsonData.HInnerBillNo}','{jsonData.HChecker}','{jsonData.HCheckDate}', + '{jsonData.HMaker}','{jsonData.HMakeDate}','{jsonData.HCloseMan}','{jsonData.HCloseDate}',{jsonData.HERPInterID}, + '{jsonData.HERPBillType}',{jsonData.HSALEORGID},{jsonData.HSALEGROUPID},{jsonData.HRECEIVEID},{jsonData.HSETTLEID},{jsonData.HCHARGEID}, + {jsonData.HHEADLOCID},{jsonData.HRECCONTACTID},{jsonData.HCORRESPONDORGID},'{jsonData.HBUSINESSTYPE}')"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["SaleOrderEntry"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Xs_SeOrderBillSub where HInterID = " + InterID, "Xs_SeOrderBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Xs_SeOrderBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialId_Id"], + HUnitID = oSub["UnitId_Id"], + HQty = oSub["Qty"], + HPrice = oSub["Price"], + HTaxPrice = oSub["TaxPrice"], + HDiscountRate = oSub["DiscountRate"], + HRelTaxPrice = 0, + HMoney = 0, + HTaxRate = oSub["TaxRate"], + HTaxMoney = 0, + HLineTotal = 0, + HlineTotalBB = 0, + HDate = oSub["MinPlanDeliveryDate"], + HOutStockQty = oSub["StockBaseQty"], + HInvoiceQty = 0, + HRemark = oSub["Note"], + HSourceInterID = 0, + HSourceEntryID = 0, + HSourceBillNo = oSub["SrcBillNo"], + HSourceBillType = oSub["SrcType"], + HRelationQty = Convert.ToInt32(oSub["Qty"]) - Convert.ToInt32(oSub["BaseCanOutQty"]), + HPropertyID = 0, + HBatChNo = oSub["Lot_Text"], + HAuxPropID = oSub["AuxPropId_Id"], + HMTONo = oSub["MtoNo"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HBackRelationQty = Convert.ToInt32(oSub["Qty"]) - Convert.ToInt32(oSub["BaseCanReturnQty"]), + HWhID = oSub["SOStockId_Id"], + HSPID = oSub["SOStockLocalId_Id"], + HSTOCKORGID = oSub["StockOrgId_Id"], + HOWNERID = oSub["OwnerId_Id"], + HOWNERTYPEID = oSub["OwnerTypeId"], + HMAPID = oSub["MapId_Id"], + HSTOCKUNITID = oSub["StockUnitID_Id"], + HBASEUNITID = oSub["BaseUnitId_Id"], + HBFLOWID = oSub["FBFLowId_Id"], + HSETTLEORGID = oSub["SettleOrgId_Id"], + HTAXCOMBINATION = oSub["TaxCombination_Id"], + HPRICEUNITID = oSub["PriceUnitId_Id"], + HISFREE = oSub["IsFree"], + HPRICECOEFFICIENT = oSub["PriceCoefficient"], + HSYSPRICE = oSub["SysPrice"], + HLIMITDOWNPRICE = oSub["LimitDownPrice"], + HPARENTMATID = oSub["ParentMatId_Id"], + HROWTYPE = oSub["RowType"], + HROWID = oSub["RowId"], + HPARENTROWID = oSub["ParentRowId"], + HDELIVERYCONTROL = oSub["DeliveryControl"], + HLOCALCURRID = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["LocalCurrId_Id"], + HEXCHANGETYPEID = oSub["ExchangeTypeId_Id"], + HSETTLECURRID = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["SettleCurrId_Id"], + HSETTLEMODEID = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["SettleModeId_Id"], + HRECCONDITIONID = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["RecConditionId_Id"], + HISINCLUDEDTAX = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["IsIncludedTax"], + HISPRICEEXCLUDETAX = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["IsPriceExcludeTax"], + HEXCHANGERATE = _saveObj["Result"]["Result"]["SaleOrderFinance"][0]["ExchangeRate"], + HTAXRATEID = 0, + HCOSTPERCENT =0, + HVAT = 0, + HSELLERWITHHOLDING = 0, + HBUYERWITHHOLDING = 0, + HPRICELISTENTRY = oSub["PriceListEntry_Id"] + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Xs_SeOrderBillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty,HPrice + ,HTaxPrice,HDiscountRate,HRelTaxPrice,HMoney,HTaxRate,HTaxMoney + ,HLineTotal,HlineTotalBB,HDate,HOutStockQty,HInvoiceQty,HRemark + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType + ,HRelationQty,HPropertyID,HBatChNo,HAuxPropID,HMTONo + ,HERPInterID,HERPEntryID,HBackRelationQty,HWhID,HSPID + ,HSTOCKORGID,HOWNERID,HOWNERTYPEID,HMAPID,HSTOCKUNITID,HBASEUNITID + ,HBFLOWID,HSETTLEORGID,HTAXCOMBINATION,HPRICEUNITID,HISFREE,HPRICECOEFFICIENT + ,HSYSPRICE,HLIMITDOWNPRICE,HPARENTMATID,HROWTYPE,HROWID,HPARENTROWID + ,HDELIVERYCONTROL,HLOCALCURRID,HEXCHANGETYPEID,HSETTLECURRID,HSETTLEMODEID + ,HRECCONDITIONID,HISINCLUDEDTAX,HISPRICEEXCLUDETAX,HEXCHANGERATE,HTAXRATEID + ,HCOSTPERCENT,HVAT,HSELLERWITHHOLDING,HBUYERWITHHOLDING,HPRICELISTENTRY + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HPrice}, + {subData.HTaxPrice},{subData.HDiscountRate},{subData.HRelTaxPrice},{subData.HMoney},{subData.HTaxRate},{subData.HTaxMoney}, + {subData.HLineTotal},{subData.HlineTotalBB},'{subData.HDate}',{subData.HOutStockQty},{subData.HInvoiceQty},'{subData.HRemark}', + {subData.HSourceInterID},{subData.HSourceEntryID},'{subData.HSourceBillNo}','{subData.HSourceBillType}',{subData.HRelationQty}, + {subData.HPropertyID},'{subData.HBatChNo}',{subData.HAuxPropID},'{subData.HMTONo}',{subData.HERPInterID},{subData.HERPEntryID}, + {subData.HBackRelationQty},{subData.HWhID},{subData.HSPID},{subData.HSTOCKORGID},{subData.HOWNERID}, + '{subData.HOWNERTYPEID}','{subData.HMAPID}',{subData.HSTOCKUNITID},{subData.HBASEUNITID},'{subData.HBFLOWID}', + {subData.HSETTLEORGID},{subData.HTAXCOMBINATION},{subData.HPRICEUNITID},'{subData.HISFREE}', + {subData.HPRICECOEFFICIENT},{subData.HSYSPRICE},{subData.HLIMITDOWNPRICE},{subData.HPARENTMATID},'{subData.HROWTYPE}', + '{subData.HROWID}','{subData.HPARENTROWID}','{subData.HDELIVERYCONTROL}',{subData.HLOCALCURRID},'{subData.HEXCHANGETYPEID}', + {subData.HSETTLECURRID},{subData.HSETTLEMODEID},{subData.HRECCONDITIONID},'{subData.HISINCLUDEDTAX}','{subData.HISPRICEEXCLUDETAX}', + {subData.HEXCHANGERATE},{subData.HTAXRATEID},{subData.HCOSTPERCENT},{subData.HVAT},{subData.HSELLERWITHHOLDING}, + {subData.HBUYERWITHHOLDING},{subData.HPRICELISTENTRY})"; + + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/Controllers/XSGL/Xs_SeOutStockBackBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOutStockBackBillController.cs index eb34030..85100e0 100644 --- a/WebAPI/Controllers/XSGL/Xs_SeOutStockBackBillController.cs +++ b/WebAPI/Controllers/XSGL/Xs_SeOutStockBackBillController.cs @@ -1,4 +1,5 @@ -锘縰sing Newtonsoft.Json.Linq; +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; using Pub_Class; using System; using System.Collections; @@ -13,6 +14,8 @@ //閫�璐ч�氱煡鍗旵ontroller public class Xs_SeOutStockBackBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -122,7 +125,327 @@ } #endregion + #region [鍚屾鍗曟嵁] + [Route("Xs_SeOutStockBackBill/Xs_SeOutStockBackBillViewApi")] + [HttpGet] + public json Xs_SeOutStockBackBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("SAL_RETURNNOTICE", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏閫�璐ч�氱煡鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Xs_SeOutStockBackBillMain where HBillNo = '" + BillNo + "'", "Xs_SeOutStockBackBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 1403, + HBillSubType = 1403, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = _saveObj["Result"]["Result"]["ApproverId_Id"].ToString() == Convert.ToString(0) ? 1 : 2 , + HCusID = _saveObj["Result"]["Result"]["RetcustId_Id"], + HManagerID = _saveObj["Result"]["Result"]["StockerId_Id"], + HDeptID = _saveObj["Result"]["Result"]["Sledeptid_Id"], + HRemark = "CLD瀵煎叆", + HAddress = _saveObj["Result"]["Result"]["ReceiveAddress"], + HSSID = 0, + HCurID = 0, + HWHID = 0, + HExRate = 1, + HEmpID = _saveObj["Result"]["Result"]["SalesManId_Id"], + HExplanation = "", + HInnerBillNo = "", + HSALEORGID = _saveObj["Result"]["Result"]["SaleOrgId_Id"], + HDELIVERYORGID = _saveObj["Result"]["Result"]["RetorgId_Id"], + HOWNERID = _saveObj["Result"]["Result"]["OwnerIdHead_Id"], + HOWNERTYPEID = _saveObj["Result"]["Result"]["OwnerTypeIdHead"], + HMaker = _saveObj["Result"]["Result"]["FCreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["FCreateDate"], + HChecker = _saveObj["Result"]["Result"]["ApproverId"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillTypeID_Id"], + HSETTLECUSID = _saveObj["Result"]["Result"]["SettleCusId_Id"], + HPAYCUSID = _saveObj["Result"]["Result"]["PayCusId_Id"], + HRECEIVECUSID = _saveObj["Result"]["Result"]["ReceiveCusId_Id"], + HSALEGROUPID = _saveObj["Result"]["Result"]["SaleGroupId_Id"], + HHEADLOCID = _saveObj["Result"]["Result"]["HeadLocId_Id"], + HRECCONTACTID = 0, + HRETURNREASON = _saveObj["Result"]["Result"]["ReturnReason_Id"], + HRETDEPTID = _saveObj["Result"]["Result"]["RetDeptId_Id"], + HDESCRIPTION = _saveObj["Result"]["Result"]["Description"], + HBUSINESSTYPE = _saveObj["Result"]["Result"]["BussinessType"], + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Xs_SeOutStockBackBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Xs_SeOutStockBackBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus + ,HCusID,HManagerID,HDeptID,HRemark + ,HAddress,HSSID,HCurID,HWHID,HExRate,HEmpID,HExplanation,HInnerBillNo + ,HSALEORGID,HDELIVERYORGID,HOWNERID,HOWNERTYPEID + ,HMaker,HMakeDate,HChecker,HCheckDate,HERPInterID,HERPBillType + ,HSETTLECUSID,HPAYCUSID,HRECEIVECUSID,HSALEGROUPID,HHEADLOCID,HRECCONTACTID + ,HRETURNREASON,HRETDEPTID,HDESCRIPTION,HBUSINESSTYPE + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType}, + '{jsonData.HDate}','{jsonData.HBillNo}',{jsonData.HBillStatus},{jsonData.HCusID},{jsonData.HManagerID}, + {jsonData.HDeptID},'{jsonData.HRemark}','{jsonData.HAddress}',{jsonData.HSSID},{jsonData.HCurID},{jsonData.HWHID},{jsonData.HExRate}, + {jsonData.HEmpID},'{jsonData.HExplanation}','{jsonData.HInnerBillNo}',{jsonData.HSALEORGID},{jsonData.HDELIVERYORGID}, + '{jsonData.HOWNERID}','{jsonData.HOWNERTYPEID}','{jsonData.HMaker}','{jsonData.HMakeDate}','{jsonData.HChecker}', + '{jsonData.HCheckDate}',{jsonData.HERPInterID},'{jsonData.HERPBillType}',{jsonData.HSETTLECUSID},{jsonData.HPAYCUSID}, + {jsonData.HRECEIVECUSID},{jsonData.HSALEGROUPID},{jsonData.HHEADLOCID},{jsonData.HRECCONTACTID},'{jsonData.HRETURNREASON}', + {jsonData.HRETDEPTID},'{jsonData.HDESCRIPTION}','{jsonData.HBUSINESSTYPE}')"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEENTRY"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Xs_SeOutStockBackBillSub where HInterID = " + InterID, "Xs_SeOutStockBackBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Xs_SeOutStockBackBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialId_Id"], + HUnitID = oSub["UnitID_Id"], + HQty = oSub["Qty"], + HPrice = oSub["Price"], + HMoney = 0, + HTaxMoney = 0, + HTaxPrice = oSub["TaxPrice"], + HWHID = oSub["StockId_Id"], + HRemark = "CLOUD瀵煎叆", + HSourceInterID = oSub["FEntity_Link"][0]["SBillId"], + HSourceEntryID = oSub["FEntity_Link"][0]["SId"], + HSourceBillNo = oSub["SrcBillNo"], + HSourceBillType = oSub["SrcType"], + HSeOrderInterID = 0, + HSeOrderEntryID = oSub["SOEntryId"], + HSeORderBillNo = oSub["OrderNo"], + HOWNERID = oSub["OwnerID_Id"], + HOWNERTYPEID = oSub["OwnerTypeID"], + HSETTLEORGID = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["SettleOrgId_Id"], + HRelationQty = oSub["JoinRetQty"], + HAuxPropID = oSub["AuxpropId_Id"], + HBatchNO = oSub["Lot_Text"], + HMTONo = oSub["MtoNo"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HSOBILLTYPEID = oSub["SOBILLTYPEID_Id"], + HRMTYPE = oSub["RmType_Id"], + HSTOCKUNITID = oSub["StockUnitID_Id"], + HBASEUNITID = oSub["MaterialId"]["MaterialBase"][0]["BaseUnitId_Id"], + HDELIVERYDATE = oSub["Deliverydate"], + HDESCRIPTION = oSub["Description"], + HMAPID = oSub["MapId_Id"], + HPARENTMATID = oSub["ParentMatId_Id"], + HISRETURNCHECK = oSub["IsReturnCheck"], + HROWTYPE = oSub["RowType"], + HROWID = oSub["RowId"], + HPARENTROWID = oSub["ParentRowId"], + HTAXCOMBINATION = oSub["TaxCombination_Id"], + HPRICEUNITID = oSub["PriceUnitId_Id"], + HTaxRate = oSub["TaxRate"], + HPRICECOEFFICIENT = oSub["PriceCoefficient"], + HSYSPRICE = oSub["SysPrice"], + HLIMITDOWNPRICE = oSub["LimitDownPrice"], + HDISCOUNTRATE = oSub["DiscountRate"], + HISFREE = oSub["IsFree"], + HSETTLETYPEID = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["SettleTypeId_Id"], + HCHAGECONDITION = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["ChageCondition_Id"], + HSETTLECURRID = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["SettleCurrId_Id"], + HLOCALCURRID = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["LocalCurrId_Id"], + HEXCHANGETYPEID = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["ExchangeTypeId_Id"], + HISINCLUDEDTAX = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["IsIncludedTax"], + HISPRICEEXCLUDETAX = _saveObj["Result"]["Result"]["SAL_RETURNNOTICEFIN"][0]["IsPriceExcludeTax"], + HTAXRATEID = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["TaxRateId_Id"], + HTaxRate_TAX = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["TaxRate"], + HTAXAMOUNT_TAX = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["TaxAmount"], + HCOSTPERCENT = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["CostPercent"], + HCOSTAMOUNT = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["CostAmount"], + HVAT = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["VAT"], + HSELLERWITHHOLDING = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["SellerWithholding"], + HBUYERWITHHOLDING = oSub["SAL_RETURNNOTICEENTRYTAX"][0]["BuyerWithholding"], + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Xs_SeOutStockBackBillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty,HPrice + ,HMoney,HTaxMoney,HTaxPrice,HWHID,HRemark + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HSeOrderInterID,HSeOrderEntryID,HSeORderBillNo + ,HOWNERID,HOWNERTYPEID,HSETTLEORGID + ,HRelationQty,HAuxPropID,HBatchNO,HMTONo,HERPInterID,HERPEntryID + ,HSOBILLTYPEID,HRMTYPE,HSTOCKUNITID,HBASEUNITID,HDELIVERYDATE,HDESCRIPTION + ,HMAPID,HPARENTMATID,HISRETURNCHECK,HROWTYPE,HROWID,HPARENTROWID + ,HTAXCOMBINATION,HPRICEUNITID,HTaxRate,HPRICECOEFFICIENT,HSYSPRICE,HLIMITDOWNPRICE + ,HDISCOUNTRATE,HISFREE,HSETTLETYPEID,HCHAGECONDITION,HSETTLECURRID + ,HLOCALCURRID,HEXCHANGETYPEID,HISINCLUDEDTAX,HISPRICEEXCLUDETAX + ,HTAXRATEID,HTaxRate_TAX,HTAXAMOUNT_TAX,HCOSTPERCENT,HCOSTAMOUNT + ,HVAT,HSELLERWITHHOLDING,HBUYERWITHHOLDING + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HPrice}, + {subData.HMoney},{subData.HTaxMoney},{subData.HTaxPrice},{subData.HWHID},'{subData.HRemark}',{subData.HSourceInterID}, + {subData.HSourceEntryID},'{subData.HSourceBillNo}','{subData.HSourceBillType}',{subData.HSeOrderInterID},{subData.HSeOrderEntryID},'{subData.HSeORderBillNo}', + {subData.HOWNERID},'{subData.HOWNERTYPEID}',{subData.HSETTLEORGID},{subData.HRelationQty},{subData.HAuxPropID}, + '{subData.HBatchNO}','{subData.HMTONo}',{subData.HERPInterID},{subData.HERPEntryID}, + '{subData.HSOBILLTYPEID}','{subData.HRMTYPE}',{subData.HSTOCKUNITID},{subData.HBASEUNITID},'{subData.HDELIVERYDATE}', + '{subData.HDESCRIPTION}','{subData.HMAPID}',{subData.HPARENTMATID},'{subData.HISRETURNCHECK}','{subData.HROWTYPE}', + '{subData.HROWID}','{subData.HPARENTROWID}','{subData.HTAXCOMBINATION}',{subData.HPRICEUNITID}, + {subData.HTaxRate},'{subData.HPRICECOEFFICIENT}',{subData.HSYSPRICE},{subData.HLIMITDOWNPRICE},{subData.HDISCOUNTRATE}, + '{subData.HISFREE}',{subData.HSETTLETYPEID},'{subData.HCHAGECONDITION}',{subData.HSETTLECURRID},{subData.HLOCALCURRID}, + '{subData.HEXCHANGETYPEID}','{subData.HISINCLUDEDTAX}','{subData.HISPRICEEXCLUDETAX}',{subData.HTAXRATEID},{subData.HTaxRate_TAX}, + {subData.HTAXAMOUNT_TAX},{subData.HCOSTPERCENT},{subData.HCOSTAMOUNT},'{subData.HVAT}','{subData.HSELLERWITHHOLDING}', + '{subData.HBUYERWITHHOLDING}')"; + + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion } } \ No newline at end of file diff --git a/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs index d45f65f..1bcea7f 100644 --- a/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs +++ b/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs @@ -1,4 +1,5 @@ 锘縰sing Model; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; using System; @@ -14,6 +15,8 @@ //鍙戣揣閫氱煡鍗旵ontroller public class Xs_SeOutStockBillController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); public DBUtility.ClsPub.Enum_BillStatus BillStatus; private json objJsonResult = new json(); @@ -380,6 +383,331 @@ #endregion - // + #region [鍚屾鍗曟嵁] + [Route("Xs_SeOutStockBill/Xs_SeOutStockBillViewApi")] + [HttpGet] + public json Xs_SeOutStockBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("SAL_DELIVERYNOTICE", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鍙戣揣閫氱煡鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Xs_SeOutStockBillMain where HBillNo = '" + BillNo + "'", "Xs_SeOutStockBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 1402, + HBillSubType = 1402, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = _saveObj["Result"]["Result"]["ApproverID_Id"].ToString() == Convert.ToString(0) ? 1 : 2, + HCusID = _saveObj["Result"]["Result"]["CustomerID_Id"], + HManagerID = _saveObj["Result"]["Result"]["StockerID_Id"], + HDeptID = _saveObj["Result"]["Result"]["DeliveryDeptID_Id"], + HRemark = _saveObj["Result"]["Result"]["Note"], + HAddress = _saveObj["Result"]["Result"]["ReceiveAddress"], + HSSID = 0, + HCurID = 0, + HWHID = 0, + HExRate = 1, + HEmpID = _saveObj["Result"]["Result"]["SalesManID_Id"], + HExplanation = "", + HInnerBillNo = "", + HSALEORGID = _saveObj["Result"]["Result"]["SaleOrgId_Id"], + HDELIVERYORGID = _saveObj["Result"]["Result"]["DeliveryOrgID_Id"], + HOWNERID = _saveObj["Result"]["Result"]["OwnerIdHead_Id"], + HOWNERTYPEID = _saveObj["Result"]["Result"]["OwnerTypeIdHead"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillTypeID_Id"], + HMaker = _saveObj["Result"]["Result"]["CreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HChecker = _saveObj["Result"]["Result"]["ApproverID"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HCloseMan = _saveObj["Result"]["Result"]["CLOSERID_Id"], + HCloseDate = _saveObj["Result"]["Result"]["CLOSEDATE"], + HSTOCKERGROUPID = _saveObj["Result"]["Result"]["StockerGroupID_Id"], + HSALEGROUPID = _saveObj["Result"]["Result"]["SaleGroupID_Id"], + HSALEDEPTID = _saveObj["Result"]["Result"]["SaleDeptID_Id"], + HBUSINESSTYPE = _saveObj["Result"]["Result"]["BussinessType"], + HCARRIERID = _saveObj["Result"]["Result"]["CarrierID_Id"], + HRECEIVERID = _saveObj["Result"]["Result"]["ReceiverID_Id"], + HSETTLEID = _saveObj["Result"]["Result"]["SettleID_Id"], + HPAYERID = _saveObj["Result"]["Result"]["PayerID_Id"], + HHEADLOCID = _saveObj["Result"]["Result"]["HeadLocId_Id"], + HRECCONTACTID = 0, + HRECEIPTCONDITIONID = _saveObj["Result"]["Result"]["FRECEIPTCONDITIONID_Id"], + HCORRESPONDORGID = _saveObj["Result"]["Result"]["CorrespondOrgId_Id"], + HCARRIAGENO = _saveObj["Result"]["Result"]["CarriageNO"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Xs_SeOutStockBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Xs_SeOutStockBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate + ,HBillNo,HBillStatus + ,HCusID,HManagerID,HDeptID,HRemark,HAddress,HSSID + ,HCurID,HWHID,HExRate,HEmpID,HExplanation,HInnerBillNo + ,HSALEORGID,HDELIVERYORGID,HOWNERID,HOWNERTYPEID,HERPInterID,HERPBillType + ,HMaker,HMakeDate,HChecker,HCheckDate,HCloseMan,HCloseDate + ,HSTOCKERGROUPID,HSALEGROUPID,HSALEDEPTID,HBUSINESSTYPE,HCARRIERID,HRECEIVERID + ,HSETTLEID,HPAYERID,HHEADLOCID,HRECCONTACTID,HRECEIPTCONDITIONID,HCORRESPONDORGID + ,HCARRIAGENO + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},{jsonData.HBillSubType}, + '{jsonData.HDate}','{jsonData.HBillNo}',{jsonData.HBillStatus},{jsonData.HCusID},{jsonData.HManagerID},{jsonData.HDeptID}, + '{jsonData.HRemark}','{jsonData.HAddress}',{jsonData.HSSID},{jsonData.HCurID},{jsonData.HWHID},{jsonData.HExRate}, + {jsonData.HEmpID},'{jsonData.HExplanation}','{jsonData.HInnerBillNo}',{jsonData.HSALEORGID},{jsonData.HDELIVERYORGID}, + {jsonData.HOWNERID},'{jsonData.HOWNERTYPEID}',{jsonData.HERPInterID},'{jsonData.HERPBillType}','{jsonData.HMaker}', + '{jsonData.HMakeDate}','{jsonData.HChecker}','{jsonData.HCheckDate}','{jsonData.HCloseMan}','{jsonData.HCloseDate}', + {jsonData.HSTOCKERGROUPID},{jsonData.HSALEGROUPID},{jsonData.HSALEDEPTID},'{jsonData.HBUSINESSTYPE}',{jsonData.HCARRIERID}, + {jsonData.HRECEIVERID},{jsonData.HSETTLEID},{jsonData.HPAYERID},{jsonData.HHEADLOCID},{jsonData.HRECCONTACTID}, + {jsonData.HRECEIPTCONDITIONID},{jsonData.HCORRESPONDORGID},'{jsonData.HCARRIAGENO}')"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEENTRY"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Xs_SeOutStockBillSub where HInterID = " + InterID, "Xs_SeOutStockBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Xs_SeOutStockBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HEntryID = oSub["Id"], + HMaterID = oSub["MaterialID_Id"], + HUnitID = oSub["UnitID_Id"], + HQty = oSub["Qty"], + HPrice = oSub["Price"], + HMoney = 0, + HWHID = oSub["StockID_Id"], + HSPID = oSub["StockLocID_Id"], + HRemark = oSub["NoteEntry"], + HSourceInterID = 0, + HSourceEntryID = 0, + HSourceBillNo = oSub["SrcBillNo"], + HSourceBillType = oSub["SrcType"], + HSeOrderInterID = 0, + HSeOrderEntryID = oSub["SOEntryId"], + HSeORderBillNo = oSub["OrderNo"], + HOWNERID = oSub["OwnerID_Id"], + HOWNERTYPEID = oSub["OwnerTypeID"], + HSETTLEORGID = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["SettleOrgID_Id"], + HMoveStockQty = oSub["StockBaseTransQty"], + HRelationQty = oSub["StockBaseJoinOutQty"], + HAuxPropID = oSub["AuxpropID_Id"], + HBatchNO = oSub["Lot_Text"], + HMTONo = oSub["MTONO"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HCUSTMATID = oSub["CustMatID_Id"], + HBASEUNITID = oSub["BaseUnitID_Id"], + HBFLOWID = oSub["FBFLowId_Id"], + HOUTCONTROL = oSub["OutContROL"], + HSTOCKUNITID = oSub["StockUnitID_Id"], + HROWTYPE = oSub["RowType"], + HROWID = oSub["RowId"], + HPARENTROWID = oSub["ParentRowId"], + HPARENTMATID = oSub["ParentMatId_Id"], + HTAXCOMBINATION = oSub["TaxCombination_Id"], + HPRICECOEFFICIENT = oSub["PriceCoefficient"], + HSYSPRICE = oSub["SysPrice"], + HLIMITDOWNPRICE = oSub["LimitDownPrice"], + HPRICEUNITID = oSub["PriceUnitId_Id"], + HTAXPRICE = oSub["TaxPrice"], + HTAXRATE = oSub["TaxRate"], + HTAXNETPRICE = oSub["TaxNetPrice"], + HDISCOUNTRATE = oSub["DiscountRate"], + HISFREE = oSub["IsFree"], + HLOCALCURRID = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["LocalCurrID_Id"], + HSETTLECURRID = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["SettleCurrID_Id"], + HEXCHANGETYPEID = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["ExchangeTypeID_Id"], + HSETTLETYPEID = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["SettleTypeID_Id"], + HRECEIPTCONDITIONID = 0, + HEXCHANGERATE = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["ExchangeRate"], + HISINCLUDEDTAX = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["IsIncludedTax"], + HISPRICEEXCLUDETAX = _saveObj["Result"]["Result"]["SAL_DELIVERYNOTICEFIN"][0]["IsPriceExcludeTax"], + HTAXRATEID = 0, + HTaxRate_TAX = oSub["TaxRate"], + HCOSTPERCENT = 0, + HVAT = 0, + HSELLERWITHHOLDING = 0, + HBUYERWITHHOLDING = 0 + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Xs_SeOutStockBillSub + (HInterID,HEntryID,HMaterID,HUnitID,HQty + ,HPrice,HMoney,HWHID,HSPID,HRemark + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HSeOrderInterID,HSeOrderEntryID,HSeORderBillNo + ,HOWNERID,HOWNERTYPEID,HSETTLEORGID,HMoveStockQty + ,HRelationQty,HAuxPropID,HBatchNO,HMTONo,HERPInterID,HERPEntryID + ,HCUSTMATID,HBASEUNITID,HBFLOWID,HOUTCONTROL + ,HSTOCKUNITID,HROWTYPE,HROWID,HPARENTROWID,HPARENTMATID + ,HTAXCOMBINATION,HPRICECOEFFICIENT,HSYSPRICE,HLIMITDOWNPRICE + ,HPRICEUNITID,HTAXPRICE,HTAXRATE,HTAXNETPRICE,HDISCOUNTRATE,HISFREE + ,HLOCALCURRID,HSETTLECURRID,HEXCHANGETYPEID,HSETTLETYPEID,HRECEIPTCONDITIONID + ,HEXCHANGERATE,HISINCLUDEDTAX,HISPRICEEXCLUDETAX + ,HTAXRATEID,HTaxRate_TAX,HCOSTPERCENT,HVAT,HSELLERWITHHOLDING,HBUYERWITHHOLDING + ) + values + ({subData.HInterID},{subData.HEntryID},{subData.HMaterID},{subData.HUnitID},{subData.HQty},{subData.HPrice}, + {subData.HMoney},{subData.HWHID},{subData.HSPID},'{subData.HRemark}',{subData.HSourceInterID},{subData.HSourceEntryID}, + '{subData.HSourceBillNo}','{subData.HSourceBillType}',{subData.HSeOrderInterID},{subData.HSeOrderEntryID}, + '{subData.HSeORderBillNo}',{subData.HOWNERID},'{subData.HOWNERTYPEID}',{subData.HSETTLEORGID},{subData.HMoveStockQty}, + {subData.HRelationQty},{subData.HAuxPropID},'{subData.HBatchNO}','{subData.HMTONo}',{subData.HERPInterID},{subData.HERPEntryID}, + '{subData.HCUSTMATID}',{subData.HBASEUNITID},'{subData.HBFLOWID}','{subData.HOUTCONTROL}',{subData.HSTOCKUNITID},'{subData.HROWTYPE}', + '{subData.HROWID}','{subData.HPARENTROWID}','{subData.HPARENTMATID}',{subData.HTAXCOMBINATION},{subData.HPRICECOEFFICIENT}, + '{subData.HSYSPRICE}',{subData.HLIMITDOWNPRICE},{subData.HPRICEUNITID},{subData.HTAXPRICE},'{subData.HTAXRATE}', + '{subData.HTAXNETPRICE}',{subData.HDISCOUNTRATE},'{subData.HISFREE}','{subData.HLOCALCURRID}','{subData.HSETTLECURRID}', + '{subData.HEXCHANGETYPEID}','{subData.HSETTLETYPEID}','{subData.HRECEIPTCONDITIONID}',{subData.HEXCHANGERATE},'{subData.HISINCLUDEDTAX}', + '{subData.HISPRICEEXCLUDETAX}',{subData.HTAXRATEID},{subData.HTaxRate_TAX},'{subData.HCOSTPERCENT}','{subData.HVAT}', + {subData.HSELLERWITHHOLDING},{subData.HBUYERWITHHOLDING})"; + + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipStatusController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipStatusController.cs" new file mode 100644 index 0000000..45a9080 --- /dev/null +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EquipStatusController.cs" @@ -0,0 +1,311 @@ +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + +namespace WebAPI.Controllers.鍩虹璧勬枡.鍩虹璧勬枡 +{ + public class Gy_EquipStatusController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region 璁惧鐘舵�� 鍒楄〃 + [Route("Gy_EquipStatus/Gy_EquipStatusList")] + [HttpGet] + public object Gy_EquipStatusList(string sWhere, string user, string Organization) + { + try + { + List<object> columnNameList = new List<object>(); + + string sql1 = string.Format(@"select * from h_v_Gy_EquipStatus where 浣跨敤缁勭粐='" + Organization + "'"); + + string sql = sql1 + sWhere; + ds = oCN.RunProcReturn(sql, "h_v_Gy_EquipStatus"); + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.list = columnNameList; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 璁惧鐘舵�� 缂栬緫 + [Route("Gy_EquipStatus/Gy_EquipStatusEdit")] + [HttpPost] + public object Gy_EquipStatusEdit([FromBody] JObject msg) + { + DataSet ds; + var _value = msg["msg"].ToString(); + string msg3 = _value.ToString(); + string[] sArray = msg3.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg1 = sArray[0].ToString(); + string msg2 = sArray[1].ToString(); + //string msg_HUSEORGID = sArray[2].ToString(); + Int64 HItemID = 0; + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + ListModels oListModels = new ListModels(); + + try + { + DAL.ClsGy_EquipStatus_Ctl oBill = new DAL.ClsGy_EquipStatus_Ctl(); + List<Model.ClsGy_EquipStatus_Model> lsmain = new List<Model.ClsGy_EquipStatus_Model>(); + msg1 = msg1.Replace("\\", ""); + msg1 = msg1.Replace("\n", ""); //\n + lsmain = oListModels.getObjectByJson_Gy_EquipStatus(msg1); + foreach (Model.ClsGy_EquipStatus_Model oItem in lsmain) + { + if (oItem.HNumber.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮佷笉鑳戒负绌猴紒"; + objJsonResult.data = 1; + return objJsonResult; + } + if (oItem.HName.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佸悕绉颁笉鑳戒负绌猴紒"; + objJsonResult.data = 1; + return objJsonResult; + } + + //鏌ヨ鏁版嵁涓槸鍚﹀瓨鍦ㄩ噸澶嶄唬鐮� + ds = oCN.RunProcReturn("select * from Gy_EquipStatus where HStopflag=0 and HNumber='" + oItem.HNumber.Trim() + "'", "Gy_EquipStatus"); + if (oItem.HItemID == 0) + { + if (ds.Tables[0].Rows.Count > 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + if (ds.Tables[0].Rows.Count > 0) + { + if (ds.Tables[0].Rows[0]["HItemID"].ToString() != oItem.HItemID.ToString()) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = null; + return objJsonResult; + } + } + } + + + //鏂板鏃跺垽鏂� + #region 鐖剁骇鏍¢獙鏂规硶锛坅pi璋冪敤鍏堟敞閲婃帀锛岋級 + /* + if (oItem.HItemID == 0) + { + if (ds == null || ds.Tables[0].Rows.Count > 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = 1; + return objJsonResult; + } + //妫�鏌ョ埗绾ф槸鍚﹀瓨鍦� + string sParent; + sParent = DBUtility.ClsPub.GetParentCode(oItem.HNumber.Trim()); + if (sParent.Trim() == "") + { + oBill.oModel.HParentID = 0; + } + else + { + if (oBill.HavParentCode(sParent.Trim(), HItemID)) + { + oBill.oModel.HParentID = oBill.oModel.HItemID; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷笂绾т唬鐮佷笉瀛樺湪鎴栬绂佺敤锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + } + } + else//缂栬緫鏃跺垽鏂� + { + //妫�鏌ョ埗绾ф槸鍚﹀瓨鍦� + string sParent; + sParent = DBUtility.ClsPub.GetParentCode(oItem.HNumber.Trim()); + if (sParent.Trim() == "") + { + oBill.oModel.HParentID = 0; + } + else + { + if (oBill.HavParentCode(sParent.Trim(), oItem.HItemID)) + { + oBill.oModel.HParentID = oBill.oModel.HItemID; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷笂绾т唬鐮佷笉瀛樺湪鎴栬绂佺敤锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + } + } + */ + #endregion + //寰楀埌鐭唬鐮� + string sShortNumber; + sShortNumber = DBUtility.ClsPub.GetShortNumber(oItem.HNumber.Trim()); + if (sShortNumber.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佺煭浠g爜涓虹┖锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + //oItem.HUSEORGID = Convert.ToInt32(msg_HUSEORGID); //缁勭粐id + oItem.HShortNumber = sShortNumber;//鐭唬鐮� + oItem.HEndFlag = true;//鏈骇鏍囧織 + oItem.HLevel = 1; //绛夌骇 DBUtility.ClsPub.GetLevel(oItem.HNumber.Trim()) + oBill.oModel = oItem; + } + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult; + if (oBill.oModel.HItemID == 0) + { + bResult = oBill.AddNew(); + } + else + { + bResult = oBill.ModifyByID(oBill.oModel.HItemID); + } + if (bResult) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; + //WebAPIController.Add_Log("閫佽揣鍗曚笅鎺�", UserName, "鐢熸垚閫佽揣鍗�"); + 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("Gy_EquipStatus/Delete")] + [HttpGet] + public object Delete(string HItemID, string user) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + if (string.IsNullOrWhiteSpace(HItemID)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "HItemID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + oCN.BeginTran();//寮�濮嬩簨鍔� + ds = oCN.RunProcReturn("select * from Gy_EquipStatus where HItemID=" + HItemID, "Gy_EquipStatus"); + if (ds == null || ds.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁鏁版嵁锛屾棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; ; + } + var HStopflag = Convert.ToBoolean(ds.Tables[0].Rows[0]["HStopflag"]); + if (HStopflag) + { + oCN.RollBack();//鍥炴粴浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏁版嵁宸茬鐢ㄦ棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; + } + + oCN.RunProc("delete from Gy_EquipStatus where HItemID=" + HItemID); + oCN.Commit();//鎻愪氦浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "* 鏁版嵁鍒犻櫎鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; ; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒犻櫎澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } +} \ No newline at end of file diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusController.cs" new file mode 100644 index 0000000..6b8e122 --- /dev/null +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldStatusController.cs" @@ -0,0 +1,313 @@ +锘縰sing Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; +using WebAPI.Models; + + +namespace WebAPI.Controllers.鍩虹璧勬枡.鍩虹璧勬枡 +{ + public class Gy_MouldStatusController : ApiController + { + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + #region 鍣ㄥ叿鐘舵�� 鍒楄〃 + [Route("Gy_MouldStatus/Gy_MouldStatusList")] + [HttpGet] + public object Gy_MouldStatusList(string sWhere, string user, string Organization) + { + try + { + List<object> columnNameList = new List<object>(); + + string sql1 = string.Format(@"select * from h_v_Gy_MouldStatus where 浣跨敤缁勭粐='" + Organization + "'"); + + string sql = sql1 + sWhere; + ds = oCN.RunProcReturn(sql, "h_v_Gy_MouldStatus"); + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.list = columnNameList; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + #region 鍣ㄥ叿鐘舵�� 缂栬緫 + [Route("Gy_MouldStatus/Gy_MouldStatusEdit")] + [HttpPost] + public object Gy_MouldStatusEdit([FromBody] JObject msg) + { + DataSet ds; + var _value = msg["msg"].ToString(); + string msg3 = _value.ToString(); + string[] sArray = msg3.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg1 = sArray[0].ToString(); + string msg2 = sArray[1].ToString(); + //string msg_HUSEORGID = sArray[2].ToString(); + Int64 HItemID = 0; + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + ListModels oListModels = new ListModels(); + + try + { + DAL.ClsGy_MouldStatus_Ctl oBill = new DAL.ClsGy_MouldStatus_Ctl(); + List<Model.ClsGy_MouldStatus_Model> lsmain = new List<Model.ClsGy_MouldStatus_Model>(); + msg1 = msg1.Replace("\\", ""); + msg1 = msg1.Replace("\n", ""); //\n + lsmain = oListModels.getObjectByJson_Gy_MouldStatus(msg1); + foreach (Model.ClsGy_MouldStatus_Model oItem in lsmain) + { + if (oItem.HNumber.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮佷笉鑳戒负绌猴紒"; + objJsonResult.data = 1; + return objJsonResult; + } + if (oItem.HName.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佸悕绉颁笉鑳戒负绌猴紒"; + objJsonResult.data = 1; + return objJsonResult; + } + + //鏌ヨ鏁版嵁涓槸鍚﹀瓨鍦ㄩ噸澶嶄唬鐮� + ds = oCN.RunProcReturn("select * from Gy_MouldStatus where HStopflag=0 and HNumber='" + oItem.HNumber.Trim() + "'", "Gy_MouldStatus"); + if (oItem.HItemID == 0) + { + if (ds.Tables[0].Rows.Count > 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = null; + return objJsonResult; + } + } + else + { + if (ds.Tables[0].Rows.Count > 0) + { + if (ds.Tables[0].Rows[0]["HItemID"].ToString() != oItem.HItemID.ToString()) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = null; + return objJsonResult; + } + } + } + + + //鏂板鏃跺垽鏂� + #region 鐖剁骇鏍¢獙鏂规硶锛坅pi璋冪敤鍏堟敞閲婃帀锛岋級 + /* + if (oItem.HItemID == 0) + { + if (ds == null || ds.Tables[0].Rows.Count > 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷唬鐮侀噸澶嶏紒"; + objJsonResult.data = 1; + return objJsonResult; + } + //妫�鏌ョ埗绾ф槸鍚﹀瓨鍦� + string sParent; + sParent = DBUtility.ClsPub.GetParentCode(oItem.HNumber.Trim()); + if (sParent.Trim() == "") + { + oBill.oModel.HParentID = 0; + } + else + { + if (oBill.HavParentCode(sParent.Trim(), HItemID)) + { + oBill.oModel.HParentID = oBill.oModel.HItemID; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷笂绾т唬鐮佷笉瀛樺湪鎴栬绂佺敤锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + } + } + else//缂栬緫鏃跺垽鏂� + { + //妫�鏌ョ埗绾ф槸鍚﹀瓨鍦� + string sParent; + sParent = DBUtility.ClsPub.GetParentCode(oItem.HNumber.Trim()); + if (sParent.Trim() == "") + { + oBill.oModel.HParentID = 0; + } + else + { + if (oBill.HavParentCode(sParent.Trim(), oItem.HItemID)) + { + oBill.oModel.HParentID = oBill.oModel.HItemID; + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佷笂绾т唬鐮佷笉瀛樺湪鎴栬绂佺敤锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + } + } + */ + #endregion + //寰楀埌鐭唬鐮� + string sShortNumber; + sShortNumber = DBUtility.ClsPub.GetShortNumber(oItem.HNumber.Trim()); + if (sShortNumber.Trim() == "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "淇濆瓨澶辫触锛佺煭浠g爜涓虹┖锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + //oItem.HUSEORGID = Convert.ToInt32(msg_HUSEORGID); //缁勭粐id + oItem.HShortNumber = sShortNumber;//鐭唬鐮� + oItem.HEndFlag = true;//鏈骇鏍囧織 + oItem.HLevel = 1; //绛夌骇 DBUtility.ClsPub.GetLevel(oItem.HNumber.Trim()) + oBill.oModel = oItem; + } + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + bool bResult; + if (oBill.oModel.HItemID == 0) + { + bResult = oBill.AddNew(); + } + else + { + bResult = oBill.ModifyByID(oBill.oModel.HItemID); + } + if (bResult) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; + //WebAPIController.Add_Log("閫佽揣鍗曚笅鎺�", UserName, "鐢熸垚閫佽揣鍗�"); + 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("Gy_MouldStatus/Delete")] + [HttpGet] + public object Delete(string HItemID, string user) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + if (string.IsNullOrWhiteSpace(HItemID)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "HItemID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + oCN.BeginTran();//寮�濮嬩簨鍔� + ds = oCN.RunProcReturn("select * from Gy_MouldStatus where HItemID=" + HItemID, "Gy_MouldStatus"); + if (ds == null || ds.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁鏁版嵁锛屾棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; ; + } + var HStopflag = Convert.ToBoolean(ds.Tables[0].Rows[0]["HStopflag"]); + if (HStopflag) + { + oCN.RollBack();//鍥炴粴浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏁版嵁宸茬鐢ㄦ棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; + } + + oCN.RunProc("delete from Gy_MouldStatus where HItemID=" + HItemID); + oCN.Commit();//鎻愪氦浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "* 鏁版嵁鍒犻櫎鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; ; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒犻櫎澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + + } +} \ No newline at end of file diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StaffController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StaffController.cs" index 1475243..1eb6be7 100644 --- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StaffController.cs" +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StaffController.cs" @@ -1,4 +1,5 @@ -锘縰sing Newtonsoft.Json; +锘縰sing DBUtility; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; @@ -14,6 +15,9 @@ { public class Gy_StaffController : ApiController { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); + private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; @@ -391,5 +395,173 @@ } } #endregion + + #region [鍚屾鍩虹璧勬枡] + [Route("Gy_Staff/Gy_StaffViewApi")] + [HttpGet] + public json Gy_StaffViewApi(string Number, string Type) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPBasicInfoToLocal '" + Number + "','" + Type + "'", "h_p_WMS_ERPBasicInfoToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ヤ唬鐮�"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍩虹璧勬枡鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = Number, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("BD_Empinfo", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鍛樺伐鍚屾澶辫触jsonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇鏁版嵁 + DataSet Ds; + Ds = oCN.RunProcReturn("select * from Gy_Staff where HNumber = '" + Number + "'", "Gy_Staff"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"].ToString()) != 0) + { + + } + + #region [琛ㄦ暟鎹祴鍊糫 + var jsonData = new + { + HItemID = _saveObj["Result"]["Result"]["Id"], + HNumber = _saveObj["Result"]["Result"]["Number"], + HName = _saveObj["Result"]["Result"]["Name"][0]["Value"], + HShortNumber = _saveObj["Result"]["Result"]["Number"], + HParentID = 0, + HLevel = 1, + HEndFlag = 1, + HStopflag = _saveObj["Result"]["Result"]["ForbidStatus"].ToString() == "A" ? 0 : 1, + HRemark = "CLD-ERP瀵煎叆", + HUseFlag = "宸蹭娇鐢�", + HCREATEORGID = _saveObj["Result"]["Result"]["CreateOrgId_Id"], + HUSEORGID = _saveObj["Result"]["Result"]["UseOrgId_Id"], + HPERSONID = _saveObj["Result"]["Result"]["PersonId_Id"], + HPOSTID = _saveObj["Result"]["Result"]["FPostId_Id"], + HFIRSTCARDID = _saveObj["Result"]["Result"]["FirstCardID_Id"], + HDeptID = _saveObj["Result"]["Result"]["PostEntity"][0]["Post"]["FDept_Id"], + HSTAFFNUMBER = _saveObj["Result"]["Result"]["FStaffNumber"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Gy_Staff where HItemID = " + jsonData.HItemID + " and HNumber = '" + Number + "'"; + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Staff on"; + oCN.RunProc(sql); + + //鎻掑叆琛� + sql = $@" + insert into Gy_Staff + (HItemID,HNumber,HName,HShortNumber,HParentID,HLevel + ,HEndFlag,HStopflag,HRemark,HUseFlag,HCREATEORGID,HUSEORGID + ,HPERSONID,HPOSTID,HFIRSTCARDID,HDeptID,HSTAFFNUMBER + ) + values + ({jsonData.HItemID},'{jsonData.HNumber}','{jsonData.HName}', + '{jsonData.HShortNumber}',{jsonData.HParentID},{jsonData.HLevel},{jsonData.HEndFlag},{jsonData.HStopflag},'{jsonData.HRemark}','{jsonData.HUseFlag}',{jsonData.HCREATEORGID},{jsonData.HUSEORGID}, + {jsonData.HPERSONID},{jsonData.HPOSTID},{jsonData.HFIRSTCARDID},{jsonData.HDeptID},'{jsonData.HSTAFFNUMBER}')"; + + oCN.RunProc(sql); + + sql = "set identity_insert Gy_Staff off"; + oCN.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍛樺伐鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍩虹璧勬枡璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs" index 239bcc1..ea87715 100644 --- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs" +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockCheckItemBillController.cs" @@ -27,22 +27,12 @@ { ds = StockCheckItemList(sWhere); - //if (ds.Tables[0].Rows.Count != 0 || ds != null) - //{ + objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucess锛�"; objJsonResult.data = ds.Tables[0]; return objJsonResult; - //} - //else - //{ - //objJsonResult.code = "0"; - //objJsonResult.count = 0; - //objJsonResult.Message = "鏃犳暟鎹�"; - //objJsonResult.data = null; - //return objJsonResult; - //} } catch (Exception ex) { @@ -56,7 +46,7 @@ public static DataSet StockCheckItemList(string sWhere) { - string sql1 = string.Format(@"select * from h_v_Gy_StockCheckItemList"); + string sql1 = string.Format(@"select * from h_v_Gy_StockCheckItemList where 1=1 "); if (sWhere == null || sWhere.Equals("")) { return new SQLHelper.ClsCN().RunProcReturn(sql1 + sWhere + " order by hitemid desc", "h_v_Gy_StockCheckItemList"); diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockPlace_Controller.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockPlace_Controller.cs" new file mode 100644 index 0000000..2ea6909 --- /dev/null +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockPlace_Controller.cs" @@ -0,0 +1,270 @@ +锘縰sing Model; +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.Http; +using WebAPI.Models; +using WebAPI.Service; + +namespace WebAPI.Controllers +{ + public class Gy_StockPlace_Controller : ApiController + { + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); + public DBUtility.ClsPub.Enum_BillStatus BillStatus; + + private json objJsonResult = new json(); + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + DataSet ds; + + + /// <summary> + /// 杩斿洖浠撲綅鍒楄〃 + ///鍙傛暟锛歴tring sql銆� + ///杩斿洖鍊硷細object銆� + /// </summary> + [Route("Gy_StockPlace/list")] + [HttpGet] + public object list(string sWhere, string user, string Organization) + { + try + { + List<object> columnNameList = new List<object>(); + + string sql1 = string.Format(@"select * from h_v_IF_StockPlaceList_ where 浣跨敤缁勭粐='" + Organization + "'"); + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn(sql1 + sWhere + " order by HMainID", "h_v_IF_StockPlaceList_"); + } + else + { + string sql = sql1 + sWhere + " order by HMainID"; + ds = oCN.RunProcReturn(sql, "h_v_IF_StockPlaceList_"); + } + + //娣诲姞鍒楀悕 + 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));//鑾峰彇鍒癉ataColumn鍒楀璞$殑鍒楀悕 + } + + 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; + } + } + + /// <summary> + /// 鏍规嵁鍩虹璧勬枡ID 鏌ユ壘璁板綍 + ///鍙傛暟锛歴tring sql銆� + ///杩斿洖鍊硷細object銆� + /// </summary> + [Route("Gy_StockPlace/cx")] + [HttpGet] + public object cx(long HInterID) + { + try + { + ds = oCN.RunProcReturn("select * from h_v_IF_StockPlaceList_ where HMainID = " + HInterID, "h_v_IF_StockPlaceList_"); + 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 = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + /// <summary> + /// 淇濆瓨鎸夐挳 + ///鍙傛暟锛歴tring sql銆� + ///杩斿洖鍊硷細object銆� + /// </summary> + [Route("Gy_StockPlace/AddBill1")] + [HttpPost] + public object AddBill1([FromBody] JObject oMain) + { + + try + { + var _value = oMain["oMain"].ToString(); + string msg1 = _value.ToString(); + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); + string msg2 = sArray[0].ToString(); + + //鍙嶅簭鍒楀寲 + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); + msg2 = "[" + msg2.ToString() + "]"; + List<ClsGy_StockPlace_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsGy_StockPlace_Model>>(msg2); + + long HItemID = list[0].HItemID; + string HNumber = list[0].HNumber; + string HName = list[0].HName; + string HShortNumber = list[0].HNumber; + string HRemark = list[0].HRemark; + string HHelpCode = list[0].HHelpCode; + long HSPGroupID = list[0].HSPGroupID; + bool HStopflag = list[0].HStopflag; + bool HStandard = list[0].HStandard; + string HUseFlag = "鏈"; + long HCREATEORGID = list[0].HCREATEORGID; + long HUSEORGID = list[0].HUSEORGID; + + //淇濆瓨 + //淇濆瓨瀹屾瘯鍚庡鐞� + if (HItemID == 0) + { + //鏂板 + oCN.BeginTran(); + oCN.RunProc("Insert into Gy_StockPlace " + + " (HNumber,HName,HHelpCode,HShortNumber,HParentID" + + ",HLevel,HEndFlag,HStopflag,HRemark,HSPGroupID,HStandard,HUseFlag,HERPItemID," + + "HMakeTime,HCREATEORGID,HUSEORGID,HSPType,HDesSPType,HSrcSPType) " + + " Values('" + HNumber + "','" + HName + "','" + HHelpCode + "','" + HShortNumber + "'," + 0 + + "," + 1 + "," + 1 + "," + Convert.ToString(HStopflag ? 1 : 0) + ",'" + HRemark + "'," + HSPGroupID + "," + + Convert.ToString(HStandard ? 1 : 0) + ",'" + HUseFlag + "'," + 0 + ",'" + System.DateTime.Now.ToString("G") + "'," + + HCREATEORGID + "," + HUSEORGID + ",' ',' ',' '" + ")", ref DBUtility.ClsPub.sExeReturnInfo); + + oCN.Commit(); + } + else + { + oCN.BeginTran(); + //涓昏〃 + oCN.RunProc("Update Gy_StockPlace set " + + " HNumber='" + HNumber + "'" + + ",HName='" + HName + "'" + + ",HHelpCode='" + HHelpCode + "'" + + ",HSPGroupID=" + HSPGroupID + + ",HUSEORGID=" + HUSEORGID + + ",HStopflag=" + Convert.ToString(HStopflag ? 1 : 0) + + ",HStandard=" + Convert.ToString(HStandard ? 1 : 0) + + ",HRemark= '" + HRemark + "' Where HItemID=" + HItemID, ref DBUtility.ClsPub.sExeReturnInfo); + oCN.Commit(); + } + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + catch (Exception e) + { + //oCN.RollBack(); + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.Message; + objJsonResult.data = null; + return objJsonResult; + } + } + + /// <summary> + /// 浠撲綅鍒楄〃鍒犻櫎鍔熻兘 + /// </summary> + /// <returns></returns> + [Route("Deltet_Gy_StockPlace")] + [HttpGet] + public object Deltet_Gy_StockPlace(string HItemID, string user) + { + DataSet ds; + DataSet ds1; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + if (string.IsNullOrWhiteSpace(HItemID)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "HItemID涓虹┖锛�"; + objJsonResult.data = null; + return objJsonResult; + } + oCN.BeginTran();//寮�濮嬩簨鍔� + ds = oCN.RunProcReturn("select * from Gy_StockPlace where HItemID=" + HItemID, "Gy_StockPlace"); + if (ds == null || ds.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁鏁版嵁锛屾棤娉曞垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; ; + } + ds1 = oCN.RunProcReturn("Select HItemID from Gy_StockPlace Where HParentID='" + HItemID + "'", "Gy_StockPlace"); + if (ds1.Tables[0].Rows.Count != 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "姝ら」鐩瓨鍦ㄥ瓙椤圭洰锛屼笉鑳藉垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; + } + string HUseFlag = Convert.ToString(ds.Tables[0].Rows[0]["HUseFlag"]); + if (HUseFlag == "宸蹭娇鐢�") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "姝ら」鐩凡浣跨敤锛屼笉鑳藉垹闄わ紒"; + objJsonResult.data = null; + return objJsonResult; + } + + oCN.RunProc("delete from Gy_StockPlace where HItemID=" + HItemID); + oCN.Commit();//鎻愪氦浜嬪姟 + objJsonResult.code = "0"; + objJsonResult.count = 1; + objJsonResult.Message = "* 鏁版嵁鍒犻櫎鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; ; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒犻櫎澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + } +} \ No newline at end of file diff --git "a/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" "b/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" index 2bca96d..9d1b675 100644 --- "a/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" +++ "b/WebAPI/Controllers/\346\235\241\347\240\201\347\256\241\347\220\206/WEBSController.cs" @@ -64,6 +64,52 @@ #endregion + #region 鐣岄潰鎺т欢鍔熻兘璋冪敤鏂规硶 + + #region 鏍规嵁鍗曟嵁绫诲瀷鑾峰彇鍗曟嵁瀛愮被鍨� + + /// <summary> + /// 鏍规嵁鍗曟嵁绫诲瀷鑾峰彇鍗曟嵁瀛愮被鍨� + /// </summary> + /// <returns></returns> + [Route("WEBSController/GetBillSubType_Json")] + [HttpGet] + public Object GetBillSubType_Json(string HBillType, Int64 HStockOrgID) + { + try + { + ds = oWebs.get_BillSubType(HBillType, HStockOrgID); + if (ds == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏌ヨ涓嶅埌鍗曟嵁瀛愮被鍨嬩俊鎭紒"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "0"; + 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 + + #endregion + #region 宸蹭笂浼犳煡璇㈢晫闈紝鏍规嵁鍗曟嵁鍙枫�佹簮鍗曞彿鏌ヨ宸蹭笂浼犲崟鎹俊鎭� /// <summary> diff --git "a/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillController.cs" "b/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillController.cs" index 42b7352..2339256 100644 --- "a/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillController.cs" +++ "b/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\344\273\273\345\212\241\345\215\225/Sc_ICMOBillController.cs" @@ -1,4 +1,5 @@ 锘縰sing Model; +using Model.鐢熶骇绠$悊; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; @@ -21,6 +22,9 @@ private json objJsonResult = new json(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); DataSet ds; + + //鑾峰彇绯荤粺鍙傛暟 + Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); #region 鐢熶骇浠诲姟鍗� 淇濆瓨/缂栬緫鍔熻兘 [Route("Sc_ICMOBill/ICMOBillEdit")] @@ -247,12 +251,16 @@ { try { + //LogService.Write(sMainSub.ToString()); var model = sMainSub["model"].ToString(); var entry = sMainSub["model"]["HENTRY"].ToString(); - + var _model = sMainSub["model"]["HPPBOMMAINENTRY"].ToString(); + var _entry = sMainSub["model"]["HPPBOMSUBENTRY"].ToString(); model = "[" + model.ToString() + "]"; List<ClsSc_ICMOBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_ICMOBillMain>>(model); List<ClsSc_ICMOBillSub> subList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_ICMOBillSub>>(entry); + List<ClsSc_PPBomBillMain> _mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_PPBomBillMain>>(_model); + List<ClsSc_PPBomBillSub> _subList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ClsSc_PPBomBillSub>>(_entry); string sql = string.Empty; oCN.BeginTran(); sql = $"delete Sc_ICMOBillMain where HinterID = {mainList[0].HInterID}"; @@ -264,11 +272,11 @@ (HBillType,HInterID,HBillNo,HDate,HPRDORGID ,HYear,HPeriod,HRemark,HMaker,HMakeDate ,HSeOrderBillNo,HSeOrderInterID,HSeOrderEntryID,HEmpID,HCusID - ,HCenterID,HPlanQty,HDeptID,HMaterID,HUnitID,HBomID,HPlanBeginDate,HPlanEndDate) + ,HCenterID,HPlanQty,HDeptID,HMaterID,HUnitID,HBomID,HPlanBeginDate,HPlanEndDate,HBillStatus) values('3710'," + mainList[0].HInterID + ",'" + mainList[0].HBillNo + "','" + mainList[0].HDate + "'," + mainList[0].HPRDORGID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + mainList[0].HRemark + "','" + mainList[0].HMaker + "',getdate()" + ",'" + mainList[0].HSeOrderBillNo + "'," + mainList[0].HSeOrderInterID + "," + mainList[0].HSeOrderEntryID + "," + mainList[0].HEmpID + "," + mainList[0].HCusID + - "," + mainList[0].HCenterID + "," + mainList[0].HPlanQty + ",0,0,0,0,'','') "); + "," + mainList[0].HCenterID + "," + mainList[0].HPlanQty + ",0,0,0,0,'','',2) "); //淇濆瓨涓昏〃 foreach (var oSub in subList) { @@ -281,8 +289,40 @@ values({oSub.HInterID},{oSub.HEntryID},{(oSub.HQty == null ? 0 : oSub.HQty)} ,'{(oSub.HPlanBeginDate == null ? DateTime.Now.ToString("yyyy-MM-dd") : oSub.HPlanBeginDate.ToString())}','{(oSub.HPlanEndDate == null ? DateTime.Now.AddDays(1).ToString("yyyy-MM-dd") : oSub.HPlanEndDate.ToString())}' ,'{(oSub.HPlanBeginDate == null ? DateTime.Now.ToString("yyyy-MM-dd") : oSub.HPlanBeginDate.ToString())}','{(oSub.HPlanEndDate == null ? DateTime.Now.AddDays(1).ToString("yyyy-MM-dd") : oSub.HPlanEndDate.ToString())}' - ,{oSub.HMaterID},{oSub.HUnitID},'{oSub.HRemark}',{oSub.HSourceID},{oSub.HDeptID},{oSub.HSTATUS} + ,{oSub.HMaterID},{oSub.HUnitID},'{oSub.HRemark}',{oSub.HSourceID},{oSub.HDeptID},4 ,0,0,'','',0,0)"); + } + + foreach (var _item in _mainList) + { + //鐢熶骇鐢ㄦ枡娓呭崟 + sql = $"delete Sc_PPBomBillMain where HinterID = {_item.HInterID}"; + oCN.RunProc(sql); + sql = $"delete Sc_PPBomBillSub where HinterID = {_item.HInterID}"; + oCN.RunProc(sql); + //涓昏〃 + oCN.RunProc(@"Insert Into Sc_PPBomBillMain + (HInterID,HYear,HPeriod,HBillType,HBillSubType,HDate,HBillNo,HBillStatus,HICMOInterID + ,HICMOEntryID,HMaterID,HUnitID,HQty,HDeptID,HMaker,HMakeDate,HChecker,HCheckDate + ,HSeOrderBillNo,HSeOrderInterID,HSeOrderEntryID,HPRDORGID,HENTRUSTORGID,HPARENTOWNERID + ,HPARENTOWNERTYPEID,HERPInterID,HERPBillType,HSeOrderEntrySEQ,HICMOEntrySEQ,HREQSRC) + values(" + _item.HInterID + "," + DateTime.Now.Year + "," + DateTime.Now.Month + ",'" + 3720 + "','" + + _item.HBillSubType + "','" + _item.HDate + "','" + _item.HBillNo + "','" + _item.HBillStatus + "'," + _item.HICMOInterID + + "," + _item.HICMOEntryID + ",'" + _item.HMaterID + "'," + _item.HUnitID + "," + _item.HQty + "," + _item.HDeptID + + ",'" + _item.HMaker + "','" + _item.HMakeDate + "','" + _item.HChecker + "','" + _item.HCheckDate + "','" + _item.HSeOrderBillNo + "'," + _item.HSeOrderInterID + "," + _item.HSeOrderEntryID + "," + _item.HPRDORGID + "," + _item.HENTRUSTORGID + "," + _item.HPARENTOWNERID + ",'" + + _item.HPARENTOWNERTYPEID + "'," + _item.HERPInterID + ",'" + _item.HERPBillType + "'," + _item.HSeOrderEntrySEQ + "," + _item.HICMOEntrySEQ + ",'" + _item.HREQSRC + "')"); + } + foreach (var oSub in _subList) + { + oCN.RunProc($@"Insert into Sc_PPBomBillSub + (HInterID,HEntryID,HMaterID,HMaterNumber,HUnitID,HUnitNumber,HSPID,HQty,HQtyMust,HWHID,HRemark + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HICMOInterID,HICMOEntryID,HICMOBillNo + ,HCHILDSUPPLYORGID,HSUPPLYORGID,HENTRUSTPICKORGID,HSRCTRANSORGID,HGROUPBYOWNERID,HOWNERID,HOWNERTYPEID + ,HRelationQty,HMoveStockQty,HAuxPropID,HBatchNO,HMTONo,HQtyScrap,HERPInterID,HERPEntryID + ,HBackRelationQty,HNumerator,HDenominator,HBASEUNITID,HProcessID,HICMOENTRYSEQ,HPROJECTNO + ,HOPERID,HSEQ,HSTOCKSTATUSID,HLOT,HOPTQUEUE,HRESERVETYPE,HSelPickedQty,HSELPRCDRETURNQTY,HProcName) + values('{oSub.HInterID}','{oSub.HEntryID}','{oSub.HMaterID}','{oSub.HMaterNumber}','{oSub.HUnitID}','{oSub.HUnitNumber}','{oSub.HSPID}','{oSub.HQty}' + ,'{oSub.HQtyMust}','{oSub.HWHID}','{oSub.HRemark}','{oSub.HSourceInterID}','{oSub.HSourceEntryID}','{oSub.HSourceBillNo}','{oSub.HSourceBillType}','{oSub.HICMOInterID}','{oSub.HICMOEntryID}','{oSub.HICMOBillNo}','{oSub.HCHILDSUPPLYORGID}','{oSub.HSUPPLYORGID}','{oSub.HENTRUSTPICKORGID}','{oSub.HSRCTRANSORGID}','{oSub.HGROUPBYOWNERID}','{oSub.HOWNERID}','{oSub.HOWNERTYPEID}','{oSub.HRelationQty}','{oSub.HMoveStockQty}','{oSub.HAuxPropID}','{oSub.HBatchNO}','{oSub.HMTONo}','{Convert.ToDecimal(oSub.HQtyScrap)}','{oSub.HERPInterID}','{oSub.HERPEntryID}','{oSub.HBackRelationQty}','{oSub.HNumerator}','{oSub.HDenominator}','{oSub.HBASEUNITID}','{oSub.HProcessID}','{oSub.HICMOENTRYSEQ}','{oSub.HPROJECTNO}','{oSub.HOPERID}','{oSub.HSEQ}','{oSub.HSTOCKSTATUSID}','{oSub.HLOT}','{oSub.HOPTQUEUE}','{oSub.HRESERVETYPE}','{oSub.HSelPickedQty}','{oSub.HSELPRCDRETURNQTY}','{oSub.HProcName}')"); } oCN.Commit(); objJsonResult.code = "1"; @@ -294,6 +334,7 @@ } catch (Exception e) { + LogService.Write(e.Message.ToString()); oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; @@ -301,6 +342,7 @@ objJsonResult.data = null; return objJsonResult; } + } @@ -1044,5 +1086,331 @@ #endregion + #region [鍚屾鍗曟嵁] + [Route("Sc_ICMOBill/Sc_ICMOBillViewApi")] + [HttpGet] + public json Sc_ICMOBillViewApi(string BillNo, string BillType) + { + string sql = string.Empty; + string sReturn = ""; + if (oSystemParameter.ShowBill(ref sReturn) == true) + { + //绯荤粺鍙傛暟鏄惁涓虹鏈変簯妯″紡,N涓哄叕鏈変簯妯″紡锛孻涓虹鏈変簯妯″紡 + if (oSystemParameter.omodel.WMS_CloudMode == "Y") + { + #region [绉佹湁浜戞ā寮忥紝鐩存帴璋冪敤鏁版嵁搴撳瓨鍌ㄨ繃绋嬫洿鏂癩 + try + { + oCN.BeginTran(); + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + BillNo + "','" + BillType + "'", "h_p_WMS_ERPSourceBillToLocal"); + if (DS == null) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁鍚屾澶辫触"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "ERP涓笉瀛樺湪璇ュ崟鎹彿"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛"; + 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 + } + else + { + #region [鍏湁浜戞ā寮忥紝璋冪敤WEBAPI鐨勬柟寮忚繘琛屾洿鏂癩 + var json = new + { + CreateOrgId = 0, + Number = BillNo, + Id = "" + }; + #region [閲戣澏閮ㄥ垎] + //鐧诲綍閲戣澏 + var loginRet = InvokeHelper.Login(); + var isSuccess = JObject.Parse(loginRet)["LoginResultType"].Value<int>(); + //鍒ゆ柇鏄惁鐧诲綍鎴愬姛 + if (isSuccess < 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = loginRet; + objJsonResult.data = null; + return objJsonResult; + } + //鏌ョ湅 鑾峰彇鏁版嵁 + var _result = InvokeHelper.View("PRD_MO", JsonConvert.SerializeObject(json)); + var _saveObj = JObject.Parse(_result); + //鍒ゆ柇鏁版嵁鏄惁鑾峰彇鎴愬姛 + if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "閲戣澏鐢熶骇浠诲姟鍗曞悓姝ュけ璐sonRoot锛�" + _result; + objJsonResult.data = null; + return objJsonResult; + } + + #endregion + //鑾峰彇涓昏〃鏁版嵁 + DataSet Ds; + Int64 InterID = 0; + Ds = oCN.RunProcReturn("select * from Sc_ICMOBillMain where HBillNo = '" + BillNo + "'", "Sc_ICMOBillMain"); + if (Ds.Tables[0].Rows.Count != 0 && ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + InterID = ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"].ToString()); + } + + #region [涓昏〃鏁版嵁璧嬪�糫 + var jsonData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HYear = DateTime.Now.Year, + HPeriod = DateTime.Now.Month, + HBillType = 3710, + HDate = _saveObj["Result"]["Result"]["Date"], + HBillNo = _saveObj["Result"]["Result"]["BillNo"], + HBillStatus = _saveObj["Result"]["Result"]["ApproverId_Id"].ToString() == Convert.ToString(0) ? 1 : 2, + HEMPID = 0, + HRoutingInterID = 0, + HPlanQty = 1, + HRelationQty = 0, + HPlanBeginDate = _saveObj["Result"]["Result"]["Date"], + HPlanEndDate = DateTime.Now.ToString(), + HBeginDate = _saveObj["Result"]["Result"]["Date"], + HEndDate = DateTime.Now.ToString(), + HMaterID = 0, + HUnitID = 0, + HBomID = 0, + HBatchNo = "", + HSourceInterID = 0, + HSourceEntryID = 0, + HSourceBillNo = "", + HSourceBillType = "", + HSeOrderInterID = 0, + HSeOrderEntryID = 0, + HSeOrderBillNo = "", + HPRDORGID = _saveObj["Result"]["Result"]["PrdOrgId_Id"], + HENTRUSTORGID = _saveObj["Result"]["Result"]["ENTrustOrgId_Id"], + HOWNERID = _saveObj["Result"]["Result"]["OwnerId_Id"], + HOWNERTYPEID = _saveObj["Result"]["Result"]["OwnerTypeId"], + HCusID = 0, + HDeptID = _saveObj["Result"]["Result"]["WorkShopID_Id"].ToString() == null ? 0 : _saveObj["Result"]["Result"]["WorkShopID_Id"], + HRemark = "CLOUD瀵煎叆", + HMTONo = "", + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPBillType = _saveObj["Result"]["Result"]["BillType_Id"], + HMaker = _saveObj["Result"]["Result"]["CreatorId"]["Name"], + HMakeDate = _saveObj["Result"]["Result"]["CreateDate"], + HChecker = _saveObj["Result"]["Result"]["ApproverId"]["Name"], + HCheckDate = _saveObj["Result"]["Result"]["ApproveDate"], + HBillSubType = _saveObj["Result"]["Result"]["IsRework"] = true ? 1 : 0, + HISENTRUST = _saveObj["Result"]["Result"]["IsEntrust"], + HISREWORK = _saveObj["Result"]["Result"]["IsRework"] + }; + #endregion + // 鍒犻櫎涓昏〃瀵瑰簲鏁版嵁 + sql = $"delete from Sc_ICMOBillMain where HInterID = " + InterID; + oCN.RunProc(sql); + + //鎻掑叆涓昏〃 + sql = $@" + insert into Sc_ICMOBillMain + (HInterID,HYear,HPeriod,HBillType,HDate + ,HBillNo,HBillStatus,HEMPID,HRoutingInterID + ,HPlanQty,HRelationQty,HPlanBeginDate,HPlanEndDate,HBeginDate,HEndDate + ,HMaterID,HUnitID,HBomID,HBatchNo + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo + ,HPRDORGID,HENTRUSTORGID,HOWNERID,HOWNERTYPEID + ,HCusID,HDeptID,HRemark,HMTONo,HERPInterID,HERPBillType + ,HMaker,HMakeDate,HChecker,HCheckDate + ,HBillSubType,HISENTRUST,HISREWORK + ) + values + ({jsonData.HInterID},{jsonData.HYear},{jsonData.HPeriod},{jsonData.HBillType},'{jsonData.HDate}','{jsonData.HBillNo}', + {jsonData.HBillStatus},{jsonData.HEMPID},{jsonData.HRoutingInterID},{jsonData.HPlanQty},{jsonData.HRelationQty}, + '{jsonData.HPlanBeginDate}', '{jsonData.HPlanEndDate}','{jsonData.HBeginDate}','{jsonData.HEndDate}',{jsonData.HMaterID}, + {jsonData.HUnitID},{jsonData.HBomID},'{jsonData.HBatchNo}',{jsonData.HSourceInterID},{jsonData.HSourceEntryID}, + '{jsonData.HSourceBillNo}','{jsonData.HSourceBillType}',{jsonData.HSeOrderInterID}, {jsonData.HSeOrderEntryID},'{jsonData.HSeOrderBillNo}', + {jsonData.HPRDORGID},{jsonData.HENTRUSTORGID},{jsonData.HOWNERID},'{jsonData.HOWNERTYPEID}',{jsonData.HCusID},{jsonData.HDeptID}, + '{jsonData.HRemark}','{jsonData.HMTONo}',{jsonData.HERPInterID},'{jsonData.HERPBillType}','{jsonData.HMaker}','{jsonData.HMakeDate}', + '{jsonData.HChecker}','{jsonData.HCheckDate}','{jsonData.HBillSubType}','{jsonData.HISENTRUST}','{jsonData.HISREWORK}')"; + + oCN.RunProc(sql); + + #region [鐢宠瀛愯〃鍙橀噺] + var dataArr = _saveObj["Result"]["Result"]["TreeEntity"]; + + DataSet Cs; + double RelationQty = 0; + #endregion + int i = 0; + + // 鑾峰彇瀛愯〃鏁版嵁 + Cs = oCN.RunProcReturn("select * from Sc_ICMOBillSub where HInterID = " + InterID, "Sc_ICMOBillSub"); + // 鍒犻櫎瀛愯〃瀵瑰簲鏁版嵁 + sql = $"delete from Sc_ICMOBillSub where HInterID = " + InterID; + oCN.RunProc(sql); + + foreach (var oSub in dataArr) + { + #region [瀛愯〃鏁版嵁璧嬪�糫 + + if (Cs.Tables[0].Rows.Count != 0 && ClsPub.isLong(Cs.Tables[0].Rows[0]["HInterID"].ToString()) != 0) + { + RelationQty = ClsPub.isDoule(Cs.Tables[0].Rows[i]["HRelationQty"].ToString()); + + i++; + } + + var subData = new + { + HInterID = _saveObj["Result"]["Result"]["Id"], + HENTRYID = oSub["Id"], + HSEQ = oSub["Seq"], + HQty = oSub["Qty"], + HQTYMUST = oSub["Qty"], + HRelationQty = RelationQty, + HRelationMoney = 0, + HPlanBeginDate = oSub["IdPlanStartDate"], + HPlanEndDate = oSub["PlanFinishDate"], + HBeginDate = oSub["StartDate"], + HEndDate = oSub["FinishDate"], + HBomID = oSub["BomId_Id"], + HRemark = "CLOUD瀵煎叆", + HMaterID = oSub["MaterialId_Id"], + HUnitID = oSub["UnitId_Id"], + HWHID = oSub["StockId_Id"], + HSPID = oSub["StockLocId_Id"], + HPROCID = oSub["ProcessId_Id"], + HDEPTID = oSub["WorkShopID_Id"], + HBatchNo = oSub["Lot_Text"], + HSourceInterID = oSub["SrcBillId"], + HSourceEntryID = oSub["SrcBillEntryId"], + HSourceBillNo = oSub["SrcBillNo"], + HSourceBillType = oSub["SrcBillType"], + HSeOrderInterID = oSub["SaleOrderId"], + HSeOrderEntryID = oSub["SaleOrderEntryId"], + HSeOrderBillNo = oSub["SaleOrderNo"], + HSTOCKINORGID = oSub["StockInOrgId_Id"], + HINSTOCKOWNERID = oSub["InStockOwnerId_Id"], + HINSTOCKOWNERTYPEID = oSub["InStockOwnerTypeId"], + HREQUESTORGID = oSub["RequestOrgId_Id"], + HPlanMode = 0, + HMTONo = oSub["MTONo"], + HERPInterID = _saveObj["Result"]["Result"]["Id"], + HERPEntryID = oSub["Id"], + HSTATUS = oSub["Status"], + HEntryCusID = 0, + HICMOReportRelationQty = oSub["RepQuaSelAuxQty"], + HAuxPropID = oSub["AuxPropId_Id"], + HProdMaterCode = "", + HCusShortName = "", + HCusNeedMaterial = "", + HPlanSendGoodsDate = "", + HProdMaterName = "", + HWorkRemark = "", + HImportNote = "", + HCusName = "", + HInstockQty_Max = 0, + HInstockQty_Min = 0, + HPickLabel = "", + HPickLabelNumber = oSub["StockInLimitH"], + HCusNumber = oSub["StockInLimitL"], + HINSTOCKTYPE = oSub["InStockType"], + HCHECKPRODUCT = oSub["CheckProduct"], + HQAIP = oSub["QAIP"], + HISBACKFLUSH = oSub["ISBACKFLUSH"], + HREQSRC = oSub["ReqSrc"], + HSTOCKINQUASELAUXQTY = oSub["StockInQuaSelAuxQty"], + HSeOrderEntrySEQ = oSub["SaleOrderEntrySeq"], + HPROJECTNO = oSub["ProjectNo"], + HPRODUCTTYPE = oSub["ProductType"], + HCOSTRATE = oSub["CostRate"], + HBASEUNITID = oSub["BaseUnitId_Id"], + }; + #endregion + + //鎻掑叆瀛愯〃 + sql = $@" + insert into Sc_ICMOBillSub + (HInterID,HENTRYID,HSEQ,HQty,HQTYMUST,HRelationQty,HRelationMoney + ,HPlanBeginDate,HPlanEndDate,HBeginDate,HEndDate,HBomID,HRemark + ,HMaterID,HUnitID,HWHID,HSPID,HPROCID,HDEPTID,HBatchNo + ,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType + ,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo + ,HSTOCKINORGID,HINSTOCKOWNERID,HINSTOCKOWNERTYPEID,HREQUESTORGID + ,HPlanMode,HMTONo,HERPInterID,HERPEntryID,HSTATUS + ,HEntryCusID,HICMOReportRelationQty,HAuxPropID,HProdMaterCode,HCusShortName + ,HCusNeedMaterial,HPlanSendGoodsDate,HProdMaterName,HWorkRemark,HImportNote,HCusName + ,HInstockQty_Max,HInstockQty_Min,HPickLabel,HPickLabelNumber,HCusNumber + ,HINSTOCKTYPE,HCHECKPRODUCT,HQAIP,HISBACKFLUSH,HREQSRC,HSTOCKINQUASELAUXQTY + ,HSeOrderEntrySEQ,HPROJECTNO,HPRODUCTTYPE,HCOSTRATE,HBASEUNITID + ) + values + ({subData.HInterID},{subData.HENTRYID},{subData.HSEQ},{subData.HQty},{subData.HQTYMUST},{subData.HRelationQty}, + {subData.HRelationMoney},'{subData.HPlanBeginDate}','{subData.HPlanEndDate}','{subData.HBeginDate}','{subData.HEndDate}',{subData.HBomID}, + '{subData.HRemark}',{subData.HMaterID},{subData.HUnitID},{subData.HWHID},{subData.HSPID},{subData.HPROCID},{subData.HDEPTID}, + '{subData.HBatchNo}',{subData.HSourceInterID},{subData.HSourceEntryID},'{subData.HSourceBillNo}','{subData.HSourceBillType}', + {subData.HSeOrderInterID},{subData.HSeOrderEntryID},'{subData.HSeOrderBillNo}',{subData.HSTOCKINORGID},{subData.HINSTOCKOWNERID}, + '{subData.HINSTOCKOWNERTYPEID}',{subData.HREQUESTORGID},'{subData.HPlanMode}','{subData.HMTONo}',{subData.HERPInterID}, + {subData.HERPEntryID},{subData.HSTATUS},{subData.HEntryCusID},{subData.HICMOReportRelationQty},{subData.HAuxPropID}, + '{subData.HProdMaterCode}','{subData.HCusShortName}','{subData.HCusNeedMaterial}','{subData.HPlanSendGoodsDate}', + '{subData.HProdMaterName}','{subData.HWorkRemark}','{subData.HImportNote}','{subData.HCusName}',{subData.HInstockQty_Max}, + {subData.HInstockQty_Min},'{subData.HPickLabel}',{subData.HPickLabelNumber},{subData.HCusNumber},'{subData.HINSTOCKTYPE}', + '{subData.HCHECKPRODUCT}','{subData.HQAIP}','{subData.HISBACKFLUSH}','{subData.HREQSRC}',{subData.HSTOCKINQUASELAUXQTY}, + {subData.HSeOrderEntrySEQ},'{subData.HPROJECTNO}','{subData.HPRODUCTTYPE}',{subData.HCOSTRATE},{subData.HBASEUNITID})"; + + oCN.RunProc(sql); + } + + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍗曟嵁鍚屾鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; + + #endregion + } + } + else + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍗曟嵁璇诲彇澶辫触锛�"; + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } \ No newline at end of file diff --git a/WebAPI/DLL/ClsGy_Material_Ctl.cs b/WebAPI/DLL/ClsGy_Material_Ctl.cs index 314e8e0..963f2db 100644 --- a/WebAPI/DLL/ClsGy_Material_Ctl.cs +++ b/WebAPI/DLL/ClsGy_Material_Ctl.cs @@ -49,7 +49,6 @@ { try { - LogService.Write("鐗╂枡鍚屾鎻掍欢,淇濆瓨鏂规硶鎵ц寮�濮嬶細" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")); string sql = string.Empty; oCn.BeginTran(); sql = $"delete Gy_Material where hitemid ={oModel.HItemID}"; @@ -63,20 +62,19 @@ ",HWhID,HRoutingID,HBomID,HSecUnitID,HSecUnitRate" + ",HHighStock,HLowStock,HSafeStock,HOrderPrice,HSalePrice" + ",HKeepDays,HPlanPrice,HstdPrice,HQtyMin,HQtyMax" + - ",HSubjoin,HSubjoin2,HColor,HVersion,HEngName,HEngModel,HPropertyTypeID,HSPGroupID,HSPID,HMinPickQty,HCREATEORGID,HUSEORGID,HERPItemID,HBatchManager) " + + ",HSubjoin,HSubjoin2,HColor,HVersion,HEngName,HEngModel,HPropertyTypeID,HSPGroupID,HSPID,HMinPickQty,HCREATEORGID,HUSEORGID,HERPItemID,HBatchManager,HOldMaterNumber) " + " Values('" + oModel.HItemID + "','" + oModel.HNumber + "','" + oModel.HName + "','" + oModel.HHelpCode + "','" + oModel.HShortNumber + "'," + oModel.HParentID.ToString() + ", " + oModel.HLevel.ToString() + "," + Convert.ToString(oModel.HEndFlag ? 1 : 0) + "," + Convert.ToString(oModel.HStopflag ? 1 : 0) + ",'" + oModel.HRemark + "'" + ",'" + oModel.HModel + "'," + oModel.HUnitID.ToString() + "," + oModel.HMaterClsID.ToString() + "," + oModel.HMaterTypeID.ToString() + "," + oModel.HUnitGroupID.ToString() + ", " + oModel.HWhID.ToString() + "," + oModel.HRoutingID.ToString() + "," + oModel.HBomID.ToString() + "," + oModel.HSecUnitID.ToString() + "," + oModel.HSecUnitRate.ToString() + ", " + oModel.HHighStock.ToString() + "," + oModel.HLowStock.ToString() + "," + oModel.HSafeStock.ToString() + "," + oModel.HOrderPrice.ToString() + ",'" + oModel.HSalePrice + "'" + ", " + oModel.HKeepDays.ToString() + "," + oModel.HPlanPrice.ToString() + "," + oModel.HstdPrice.ToString() + "," + oModel.HQtyMin.ToString() + "," + oModel.HQtyMax.ToString() + - ",'" + oModel.HSubjoin + "','" + oModel.HSubjoin2 + "','" + oModel.HColor + "','" + oModel.HVersion + "','" + oModel.HEngName + "','" + oModel.HEngModel + "'," + oModel.HPropertyTypeID.ToString() + "," + oModel.HSPGroupID.ToString() + "," + oModel.HSPID.ToString() + "," + oModel.HMinPickQty.ToString() + "," + oModel.HCREATEORGID + "," + oModel.HUSEORGID + "," + oModel.HERPItemID + "," + oModel.HBatchManager + ")", ref DBUtility.ClsPub.sExeReturnInfo); + ",'" + oModel.HSubjoin + "','" + oModel.HSubjoin2 + "','" + oModel.HColor + "','" + oModel.HVersion + "','" + oModel.HEngName + "','" + oModel.HEngModel + "'," + oModel.HPropertyTypeID.ToString() + "," + oModel.HSPGroupID.ToString() + "," + oModel.HSPID.ToString() + "," + oModel.HMinPickQty.ToString() + "," + oModel.HCREATEORGID + "," + oModel.HUSEORGID + "," + oModel.HERPItemID + "," + oModel.HBatchManager + ",'" + oModel.HOldMaterNumber + "')", ref DBUtility.ClsPub.sExeReturnInfo); sql = "set identity_insert gy_material off"; oCn.RunProc(sql); //淇敼涓婄骇涓洪潪鏈骇浠g爜 oCn.RunProc("Update " + MvarItemKey + " set HEndflag=0 where HItemID=" + oModel.HParentID, ref DBUtility.ClsPub.sExeReturnInfo); oCn.Commit(); - LogService.Write("鐗╂枡鍚屾鎻掍欢,淇濆瓨鏂规硶鎵ц缁撴潫锛�" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff:ffffff")); return true; } catch (Exception e) diff --git a/WebAPI/DLL/ClsSb_EquipRepairCheckBill.cs b/WebAPI/DLL/ClsSb_EquipRepairCheckBill.cs index 97d6272..85ce358 100644 --- a/WebAPI/DLL/ClsSb_EquipRepairCheckBill.cs +++ b/WebAPI/DLL/ClsSb_EquipRepairCheckBill.cs @@ -39,7 +39,7 @@ //鏇存柊涓昏〃 oCn.RunProc("UpDate Sb_EquipRepairCheckBillMain set " + " HBillNo='" + omodel.HBillNo + "'" + //鍥哄畾璧嬪��=============== - ",HDate='" + omodel.HDate + "'" + + //",HDate='" + omodel.HDate + "'" + ",HYear='" + omodel.HYear.ToString() + "'" + ",HPeriod='" + omodel.HPeriod.ToString() + "'" + ",HRemark='" + omodel.HRemark + "'" + @@ -51,6 +51,7 @@ ",HManagerID=" + omodel.HManagerID.ToString() + ",HDeptID=" + omodel.HDeptID.ToString() + ",HCheckBeginDate='" + omodel.HCheckBeginDate + "'" + + ",HMouldRepairWorkID='" + omodel.HMouldRepairWorkID + "'" + ",HCheckResult='" + omodel.HCheckResult + "'" + ",HExplanation='" + omodel.HExplanation + "'" + ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + @@ -98,12 +99,12 @@ "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + ",HEquipID,HExplanation,HInnerBillNo,HEmpID" + - ",HManagerID,HDeptID,HCheckResult,HCheckBeginDate" + + ",HManagerID,HDeptID,HCheckResult,HCheckBeginDate,HMouldRepairWorkID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker+ "',getdate()" + ", " + omodel.HEquipID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + omodel.HEmpID.ToString() + - "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HCheckResult + "','" + omodel.HCheckBeginDate + "'" + + "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HCheckResult + "','" + omodel.HCheckBeginDate + "'," + omodel.HMouldRepairWorkID + ") "); ////鎻掑叆瀛愯〃 foreach (Model.ClsSb_EquipRepairCheckBillSub oSub in DetailColl) diff --git a/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs b/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs index 0744322..82866f8 100644 --- a/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs +++ b/WebAPI/DLL/ClsSc_MouldRepairCheckBill.cs @@ -55,7 +55,7 @@ ",HEmpID=" + omodel.HEmpID.ToString() + ",HManagerID=" + omodel.HManagerID.ToString() + ",HDeptID=" + omodel.HDeptID.ToString() + - + ",HMouldRepairWorkID=" + omodel.HMouldRepairWorkID.ToString() + ",HExplanation='" + omodel.HExplanation + "'" + ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + @@ -127,13 +127,13 @@ ",HYear,HPeriod,HRemark" + ",HMouldID,HCheckBeginDate,HCheckResult" + ",HEmpID,HManagerID,HDeptID"+ - ",HInnerBillNo,HExplanation" + + ",HInnerBillNo,HExplanation,HMouldRepairWorkID" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "','" + omodel.HMaker + "',getdate()" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "'"+ "," + omodel.HMouldID.ToString() + ",'" + omodel.HCheckBeginDate + "','" + omodel.HCheckResult + "'" + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + - ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + + ",'" + omodel.HInnerBillNo + "','" + omodel.HExplanation + "'" + "," + omodel.HMouldRepairWorkID + ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSc_MouldRepairCheckBillSub oSub in DetailColl) diff --git a/WebAPI/ListModels.cs b/WebAPI/ListModels.cs index cdd2748..2e51f32 100644 --- a/WebAPI/ListModels.cs +++ b/WebAPI/ListModels.cs @@ -493,7 +493,7 @@ /// <summary> - /// 澶勭悊鏂板妯″叿缁翠慨瀛愯〃鐨刯son + /// 澶勭悊鏂板妯″叿缁翠慨瀛愯〃淇濆吇淇℃伅鐨刯son /// </summary> /// <param name="jsonString"></param> /// <returns></returns> @@ -501,6 +501,18 @@ { jsonString = "[" + jsonString.ToString() + "]"; List<Model.ClsSb_MouldRepairWorkBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSb_MouldRepairWorkBillSub>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板妯″叿缁翠慨瀛愯〃閰嶄欢淇℃伅鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSb_MouldRepairWorkBillSub_Item> getObjectByJson_Gy_MouldRepairWorkBillSub_Item(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSb_MouldRepairWorkBillSub_Item> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSb_MouldRepairWorkBillSub_Item>>(jsonString); return list; } @@ -712,6 +724,42 @@ } /// <summary> + /// 澶勭悊鏂板鍣ㄥ叿鐐规瑙勭▼椤圭洰鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_MouldDotCheckRuleBillMain> getObjectByJson_Sc_MouldDotCheckRuleBillMain(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_MouldDotCheckRuleBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckRuleBillMain>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板鍣ㄥ叿鐐规瑙勭▼ 瀛愯〃鐐规椤圭洰鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_MouldDotCheckRuleBillSub> getObjectByJson_Sc_MouldDotCheckRuleBillSub(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_MouldDotCheckRuleBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckRuleBillSub>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板鍣ㄥ叿鐐规瑙勭▼ 瀛愯〃 閰嶄欢鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_MouldDotCheckRuleBillSub_Item> getObjectByJson_Sc_MouldDotCheckRuleBillSub_Item(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_MouldDotCheckRuleBillSub_Item> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckRuleBillSub_Item>>(jsonString); + return list; + } + + /// <summary> /// 澶勭悊鏂板妯″叿淇濆吇璁板綍琛ㄥ瓙琛ㄩ厤浠堕」鐨刯son /// </summary> /// <param name="jsonString"></param> @@ -809,7 +857,7 @@ } /// <summary> - /// 澶勭悊鏂板妯″叿鐐规璁板綍琛ㄥ瓙琛ㄧ殑json + /// 澶勭悊鏂板妯″叿鐐规璁板綍琛ㄥ瓙琛� 鐐规椤圭洰 鐨刯son /// </summary> /// <param name="jsonString"></param> /// <returns></returns> @@ -817,6 +865,18 @@ { jsonString = "[" + jsonString.ToString() + "]"; List<Model.ClsSc_MouldDotCheckBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckBillSub>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板妯″叿鐐规璁板綍琛ㄥ瓙琛� 閰嶄欢淇℃伅 鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_MouldDotCheckBillSub_Item> getObjectByJson_Sc_MouldDotCheckBillSub_Item(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_MouldDotCheckBillSub_Item> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckBillSub_Item>>(jsonString); return list; } @@ -843,6 +903,19 @@ { jsonString = "[" + jsonString.ToString() + "]"; List<Model.ClsSc_MouldDotCheckPlanBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckPlanBillSub>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊鏂板妯″叿鐐规璁″垝琛� 閰嶄欢瀛愯〃鐨刯son + /// ClsSc_MouldDotCheckPlanBillSub + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> getObjectByJson_Sc_MouldDotCheckPlanBillSub_Item(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSc_MouldDotCheckPlanBillSub_Item> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldDotCheckPlanBillSub_Item>>(jsonString); return list; } @@ -1016,6 +1089,30 @@ } /// <summary> + /// 澶勭悊鍣ㄥ叿鐘舵�佽〃鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_MouldStatus_Model> getObjectByJson_Gy_MouldStatus(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_MouldStatus_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_MouldStatus_Model>>(jsonString); + return list; + } + + /// <summary> + /// 澶勭悊璁惧鐘舵�佽〃鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsGy_EquipStatus_Model> getObjectByJson_Gy_EquipStatus(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsGy_EquipStatus_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_EquipStatus_Model>>(jsonString); + return list; + } + + /// <summary> /// 澶勭悊鍗曟嵁绫诲瀷琛ㄧ殑json /// </summary> /// <param name="jsonString"></param> @@ -1026,7 +1123,19 @@ List<Model.ClsXt_BillType_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsXt_BillType_Model>>(jsonString); return list; } - + + /// <summary> + /// 澶勭悊鍗曟嵁瀛愮被鍨嬭〃鐨刯son + /// </summary> + /// <param name="jsonString"></param> + /// <returns></returns> + public List<Model.ClsXt_BillSubType_Model> getObjectByJson_Xt_BillSubType(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsXt_BillSubType_Model> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsXt_BillSubType_Model>>(jsonString); + return list; + } + /// <summary> /// 澶勭悊鏀舵鏉′欢琛ㄧ殑json /// </summary> @@ -1374,6 +1483,45 @@ return list; } + ///璁惧鍏ュ簱妫�楠岄獙鏀跺崟 瀛愯〃 + ///ClsSb_EquipStockInCheckBillSub + public List<Model.ClsSb_EquipStockInCheckBillSub> getObjectByJson_ClsSb_EquipStockInCheckBillSub(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSb_EquipStockInCheckBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSb_EquipStockInCheckBillSub>>(jsonString); + return list; + } + + + ///璁惧鍏ュ簱妫�楠岄獙鏀跺崟 涓昏〃 + ///ClsSb_EquipStockInCheckBillMain + public List<Model.ClsSb_EquipStockInCheckBillMain> getObjectByJson_ClsSb_EquipStockInCheckBillMain(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSb_EquipStockInCheckBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSb_EquipStockInCheckBillMain>>(jsonString); + return list; + } + + ///璁惧鎶曚骇妫�楠岄獙鏀跺崟 瀛愯〃 + ///ClsSb_EquipWorkBeforeCheckBillSub + public List<Model.ClsSb_EquipWorkBeforeCheckBillSub> getObjectByJson_ClsSb_EquipWorkBeforeCheckBillSub(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSb_EquipWorkBeforeCheckBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSb_EquipWorkBeforeCheckBillSub>>(jsonString); + return list; + } + + + ///璁惧鎶曚骇妫�楠岄獙鏀跺崟 涓昏〃 + ///ClsSb_EquipWorkBeforeCheckBillMain + public List<Model.ClsSb_EquipWorkBeforeCheckBillMain> getObjectByJson_ClsSb_EquipWorkBeforeCheckBillMain(string jsonString) + { + jsonString = "[" + jsonString.ToString() + "]"; + List<Model.ClsSb_EquipWorkBeforeCheckBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSb_EquipWorkBeforeCheckBillMain>>(jsonString); + return list; + } + + /// <summary> /// 璁惧淇濆吇璁″垝 涓昏〃 /// </summary> diff --git a/WebAPI/Models/ClsGy_Material_Model.cs b/WebAPI/Models/ClsGy_Material_Model.cs index 75ab2b1..ebf90b3 100644 --- a/WebAPI/Models/ClsGy_Material_Model.cs +++ b/WebAPI/Models/ClsGy_Material_Model.cs @@ -43,7 +43,8 @@ public int HERPItemID; public int HCREATEORGID; public int HBatchManager; - + public string HOldMaterNumber; + public int HSALEUNITID; //閿�鍞閲忓崟浣�(gy_unit) public int HSALEPRICEUNITID; //閿�鍞浠疯閲忓崟浣�(gy_unit) public int HBASEUNITID; //鍩烘湰璁¢噺鍗曚綅(gy_unit) diff --git a/WebAPI/Models/Gy_RoutingBill.cs b/WebAPI/Models/Gy_RoutingBill.cs index 7564b98..c46ec7e 100644 --- a/WebAPI/Models/Gy_RoutingBill.cs +++ b/WebAPI/Models/Gy_RoutingBill.cs @@ -37,6 +37,7 @@ public int HPRDORGID { get; set; } public int HOrgID { get; set; } + public int IsProNo { get; set; }//鏄惁杞伐搴� } } \ No newline at end of file diff --git a/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user b/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user index 4528509..108d0d8 100644 --- a/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/WebAPI/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -5,7 +5,7 @@ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <_PublishTargetUrl>D:\缃戠珯鍙戝竷\鏅轰簯MESWMS\API</_PublishTargetUrl> - <History>True|2022-12-23T09:06:52.0688439Z;True|2022-12-23T16:12:04.4155951+08:00;True|2022-12-23T13:35:44.6439326+08:00;True|2022-11-30T08:24:02.9999976+08:00;True|2022-11-30T08:01:51.4579972+08:00;True|2022-11-29T21:32:14.4359673+08:00;True|2022-11-29T19:30:22.9466023+08:00;True|2022-11-29T19:24:30.1630119+08:00;True|2022-11-29T17:31:43.1926801+08:00;True|2022-11-29T17:14:32.5869985+08:00;True|2022-11-29T10:42:57.1877576+08:00;True|2022-11-27T14:40:28.4784748+08:00;True|2022-11-26T20:49:34.2789400+08:00;True|2022-11-26T19:24:58.9988205+08:00;True|2022-11-26T15:33:08.6274944+08:00;True|2022-11-26T14:37:46.3953592+08:00;True|2022-11-26T09:16:41.7487240+08:00;True|2022-11-24T09:49:50.7302637+08:00;True|2022-11-23T16:24:56.5946914+08:00;True|2022-11-23T16:19:57.5570583+08:00;True|2022-11-23T15:05:13.8032246+08:00;True|2022-11-22T20:24:39.7324815+08:00;True|2022-11-22T13:18:16.2143925+08:00;False|2022-11-22T13:12:53.0448580+08:00;True|2022-11-22T11:03:01.7571733+08:00;True|2022-11-21T13:20:11.1961237+08:00;True|2022-11-21T13:13:52.0360749+08:00;True|2022-11-18T15:48:13.0747365+08:00;True|2022-11-18T14:15:54.5626901+08:00;True|2022-11-17T18:41:26.5464503+08:00;True|2022-11-15T13:55:35.3496366+08:00;True|2022-11-15T11:03:23.6773297+08:00;True|2022-11-15T10:58:47.9703720+08:00;True|2022-11-15T10:12:27.8305782+08:00;True|2022-11-15T09:47:26.7480777+08:00;True|2022-11-15T08:55:44.0275263+08:00;True|2022-11-15T08:54:06.6396851+08:00;True|2022-11-15T08:44:18.2013404+08:00;True|2022-11-15T01:16:19.8154538+08:00;True|2022-11-15T01:15:03.7846810+08:00;True|2022-11-15T01:01:11.0318599+08:00;True|2022-11-15T00:30:33.7148460+08:00;True|2022-11-15T00:15:26.5178283+08:00;True|2022-11-14T23:54:32.6128172+08:00;True|2022-11-14T23:26:52.0335380+08:00;True|2022-11-14T22:21:28.0622050+08:00;True|2022-11-14T21:47:43.6964619+08:00;True|2022-11-14T21:41:42.3128804+08:00;True|2022-11-14T21:31:17.2784203+08:00;True|2022-11-14T20:48:20.0380343+08:00;True|2022-11-11T17:24:44.7029993+08:00;True|2022-11-11T16:47:29.3444029+08:00;True|2022-11-11T16:07:26.4718473+08:00;True|2022-11-11T15:52:41.7235701+08:00;True|2022-11-10T15:58:10.8883176+08:00;True|2022-11-10T15:29:59.3113740+08:00;True|2022-11-10T13:34:14.7380132+08:00;True|2022-11-10T10:28:02.1166569+08:00;True|2022-11-09T23:28:25.6401971+08:00;True|2022-11-09T16:20:53.2757536+08:00;True|2022-11-09T16:16:41.3169214+08:00;True|2022-11-09T14:02:55.1802832+08:00;True|2022-11-09T13:57:55.2726154+08:00;True|2022-11-09T13:28:53.2022669+08:00;True|2022-11-09T13:10:58.0740163+08:00;True|2022-11-09T12:59:42.2328933+08:00;True|2022-11-09T11:54:08.0187924+08:00;True|2022-11-09T11:49:32.4296758+08:00;True|2022-11-09T11:34:32.6613370+08:00;True|2022-11-09T11:06:56.9443306+08:00;True|2022-11-06T23:43:44.0833657+08:00;True|2022-11-06T23:29:52.0088244+08:00;True|2022-11-06T22:06:14.7091464+08:00;True|2022-11-06T22:03:25.2696951+08:00;True|2022-11-06T21:58:50.1055520+08:00;True|2022-11-06T21:54:14.0075395+08:00;True|2022-11-06T21:39:30.2652105+08:00;True|2022-11-04T15:54:37.9813194+08:00;True|2022-11-04T15:43:59.7702621+08:00;True|2022-11-04T13:59:29.3941234+08:00;True|2022-11-04T13:44:18.1212719+08:00;True|2022-11-04T13:42:06.1010393+08:00;True|2022-11-04T13:37:01.7814703+08:00;True|2022-11-04T13:35:43.1121709+08:00;True|2022-11-04T13:33:05.1362535+08:00;True|2022-11-04T13:30:11.1113703+08:00;True|2022-11-04T13:28:53.7185382+08:00;True|2022-11-04T13:27:08.0691684+08:00;True|2022-11-04T13:20:46.2297633+08:00;True|2022-11-04T13:17:57.1564250+08:00;True|2022-11-04T13:15:36.3651019+08:00;True|2022-11-04T13:13:44.6635701+08:00;True|2022-11-04T13:12:02.3968306+08:00;True|2022-11-04T13:08:07.7653927+08:00;True|2022-11-04T11:37:44.1975649+08:00;True|2022-11-04T11:36:20.3813848+08:00;True|2022-11-04T11:26:40.9713465+08:00;True|2022-11-04T10:17:36.4269558+08:00;True|2022-11-04T09:47:05.4607111+08:00;True|2022-11-04T09:28:27.9347785+08:00;True|2022-11-04T08:38:38.5253737+08:00;True|2022-11-03T13:31:32.7883545+08:00;False|2022-11-03T13:27:07.8579021+08:00;True|2022-11-03T11:07:07.3903101+08:00;True|2022-11-03T10:54:26.7818816+08:00;True|2022-11-03T10:35:59.1956262+08:00;True|2022-11-03T10:30:07.0651285+08:00;True|2022-11-03T10:01:20.8467911+08:00;True|2022-08-22T11:13:33.9211829+08:00;True|2022-06-17T11:19:24.4893458+08:00;True|2022-06-07T14:44:51.5702202+08:00;True|2022-06-07T14:42:44.8351600+08:00;True|2022-05-17T14:19:55.1158182+08:00;True|2022-05-17T13:25:44.2886247+08:00;True|2022-05-17T10:29:26.6813564+08:00;True|2022-05-17T09:02:49.1742018+08:00;True|2022-05-06T15:13:12.2438900+08:00;True|2022-05-06T14:49:39.8536594+08:00;True|2022-04-22T17:07:44.8823529+08:00;True|2022-04-19T19:13:40.8312746+08:00;True|2022-04-19T15:40:16.0022040+08:00;True|2022-04-19T15:13:32.9767736+08:00;False|2022-04-19T15:08:33.6507639+08:00;True|2022-04-19T15:02:51.9580210+08:00;True|2022-04-19T13:54:18.7579131+08:00;True|2022-04-12T10:36:02.1779173+08:00;True|2022-04-12T10:05:31.0222037+08:00;True|2022-04-12T09:47:49.3724819+08:00;True|2022-04-09T15:08:54.5697468+08:00;True|2022-04-08T17:31:31.0046258+08:00;True|2022-04-08T16:50:41.3018422+08:00;True|2022-04-08T10:35:36.5029980+08:00;True|2022-03-31T09:38:37.3646053+08:00;True|2022-03-29T13:57:45.4410942+08:00;True|2022-03-10T18:59:23.7994337+08:00;True|2022-03-10T18:52:39.5019082+08:00;True|2022-03-10T18:51:12.7949284+08:00;True|2022-03-10T18:50:47.2024177+08:00;True|2022-03-10T18:45:08.8409380+08:00;True|2022-03-10T18:41:17.0102564+08:00;True|2022-03-10T18:35:49.0742353+08:00;True|2022-03-10T17:57:47.4196965+08:00;True|2022-03-10T17:34:27.5723245+08:00;True|2022-03-10T16:13:59.3829164+08:00;True|2022-03-09T14:50:49.1222033+08:00;True|2022-03-09T11:21:03.0073651+08:00;False|2022-03-09T11:16:56.1792896+08:00;False|2022-03-09T11:16:49.7923320+08:00;True|2022-03-08T15:47:47.4722336+08:00;True|2022-03-08T15:47:28.5397115+08:00;True|2022-03-08T15:37:08.7379870+08:00;True|2022-03-02T17:37:54.4659976+08:00;True|2022-03-02T17:34:12.2949726+08:00;True|2022-03-02T17:26:38.7070673+08:00;True|2022-03-02T17:07:49.7024316+08:00;True|2022-03-02T17:05:22.4177336+08:00;True|2022-03-02T16:14:57.9880587+08:00;True|2022-03-01T17:52:52.6766959+08:00;True|2022-02-28T14:36:22.6449303+08:00;True|2022-02-24T15:43:36.8244163+08:00;True|2022-02-23T17:57:14.3693224+08:00;True|2022-02-23T17:46:42.1078183+08:00;False|2022-02-23T17:41:06.5886724+08:00;True|2022-02-23T16:59:45.5533581+08:00;True|2022-02-23T16:57:43.3328895+08:00;True|2022-02-21T09:09:37.2601134+08:00;True|2022-02-21T09:03:32.4071009+08:00;True|2022-02-21T08:59:59.0172082+08:00;True|2022-02-18T14:05:39.1358825+08:00;True|2022-02-18T10:23:02.4391239+08:00;True|2022-02-18T10:21:31.0559267+08:00;True|2022-02-17T16:50:11.7192509+08:00;True|2022-02-17T13:19:13.7697894+08:00;True|2022-02-11T10:36:12.7757100+08:00;True|2022-02-10T10:54:25.2685040+08:00;True|2022-02-10T10:37:02.1034768+08:00;True|2022-02-09T17:32:45.6511283+08:00;True|2022-02-09T17:24:32.5115193+08:00;True|2022-02-09T17:00:24.0662114+08:00;True|2022-02-09T16:56:42.3364622+08:00;True|2022-02-09T14:17:25.8688855+08:00;True|2022-02-09T14:11:51.6149822+08:00;True|2022-02-07T23:29:26.2842648+08:00;True|2022-02-07T23:28:58.8242274+08:00;False|2022-02-07T23:25:29.0647793+08:00;True|2022-02-07T13:06:37.5515985+08:00;True|2022-02-07T12:42:19.5220491+08:00;True|2022-02-07T09:52:59.6728595+08:00;True|2022-02-01T11:32:10.5831557+08:00;True|2022-01-29T14:09:02.9178986+08:00;True|2022-01-28T12:01:45.1416438+08:00;True|2022-01-28T11:03:41.6361866+08:00;True|2022-01-28T10:44:53.5367862+08:00;True|2022-01-28T10:40:41.6697563+08:00;True|2022-01-28T10:25:56.7093616+08:00;True|2022-01-28T09:58:13.0733060+08:00;True|2022-01-27T09:26:29.6568807+08:00;True|2022-01-27T00:47:57.9102528+08:00;True|2022-01-27T00:46:52.8845001+08:00;True|2022-01-27T00:36:34.5330938+08:00;True|2022-01-27T00:35:19.5439329+08:00;True|2022-01-27T00:33:38.5701950+08:00;True|2022-01-27T00:32:00.9028982+08:00;True|2022-01-27T00:30:13.2390921+08:00;True|2022-01-27T00:28:23.2989144+08:00;True|2022-01-27T00:16:01.3789455+08:00;True|2022-01-27T00:09:58.8112352+08:00;True|2022-01-27T00:00:40.8353538+08:00;True|2022-01-26T23:37:50.9494735+08:00;True|2022-01-26T23:29:39.8647473+08:00;True|2022-01-26T23:20:49.3274392+08:00;True|2022-01-26T23:15:53.7037293+08:00;True|2022-01-26T23:06:28.8595953+08:00;True|2022-01-26T23:02:12.9882299+08:00;True|2022-01-26T22:55:33.2535730+08:00;True|2022-01-26T22:51:01.8427947+08:00;True|2022-01-26T22:47:44.0715387+08:00;True|2022-01-26T22:20:21.7217039+08:00;True|2022-01-26T22:13:39.5372069+08:00;True|2022-01-26T22:01:31.2113177+08:00;True|2022-01-26T21:55:26.5478921+08:00;True|2022-01-26T21:50:18.2700369+08:00;True|2022-01-26T21:48:52.0020233+08:00;True|2022-01-26T19:19:29.4530523+08:00;True|2022-01-26T19:07:21.6474231+08:00;True|2022-01-26T18:25:42.2933291+08:00;True|2022-01-26T12:39:02.0149050+08:00;True|2022-01-26T12:13:43.9149452+08:00;True|2022-01-26T11:24:33.5742248+08:00;True|2022-01-26T08:51:10.8105076+08:00;True|2022-01-25T21:07:32.9069261+08:00;True|2022-01-24T01:35:12.3309466+08:00;True|2022-01-23T23:19:15.9702821+08:00;True|2022-01-23T21:50:41.6903353+08:00;True|2022-01-23T21:25:57.6084267+08:00;True|2022-01-23T21:16:10.1516535+08:00;True|2022-01-23T20:52:08.3745284+08:00;True|2022-01-23T18:19:32.2386502+08:00;True|2022-01-23T18:11:42.0830325+08:00;True|2022-01-23T18:00:01.3239547+08:00;True|2022-01-23T12:18:48.2466943+08:00;True|2022-01-22T00:48:50.4531647+08:00;True|2022-01-21T13:10:32.8173598+08:00;True|2022-01-21T13:04:01.6388059+08:00;True|2022-01-21T12:51:40.5304103+08:00;True|2022-01-21T12:44:06.3059885+08:00;True|2022-01-21T12:34:33.9314010+08:00;True|2022-01-21T11:39:20.1088577+08:00;True|2022-01-20T11:33:49.0516846+08:00;True|2022-01-20T10:02:12.0295471+08:00;True|2022-01-20T10:02:03.3535503+08:00;True|2022-01-19T23:56:18.7293193+08:00;True|2022-01-19T22:30:14.6986228+08:00;True|2022-01-19T22:15:08.8608795+08:00;True|2022-01-19T21:57:55.2295030+08:00;True|2022-01-19T13:50:37.8588759+08:00;True|2022-01-19T13:42:52.9761531+08:00;True|2022-01-19T00:26:36.9722917+08:00;True|2022-01-19T00:15:30.8583143+08:00;True|2022-01-18T21:19:30.6193048+08:00;True|2022-01-18T21:12:07.1453825+08:00;True|2022-01-18T20:35:27.3779956+08:00;True|2022-01-18T17:44:45.2318570+08:00;True|2022-01-18T14:45:29.0299640+08:00;True|2022-01-17T22:23:20.8214203+08:00;True|2022-01-17T21:49:15.7740045+08:00;True|2022-01-17T21:47:24.6997598+08:00;True|2022-01-17T21:44:00.1942787+08:00;True|2022-01-17T21:43:15.5992687+08:00;True|2022-01-17T21:33:16.8034756+08:00;True|2022-01-17T21:25:39.9909343+08:00;True|2022-01-17T21:13:03.9659338+08:00;True|2022-01-17T20:32:14.8869091+08:00;True|2022-01-17T19:01:46.5753686+08:00;True|2022-01-17T18:31:24.1032169+08:00;True|2022-01-17T18:21:39.2918684+08:00;True|2022-01-17T18:12:07.4859038+08:00;True|2022-01-17T18:09:26.6989718+08:00;True|2022-01-17T18:04:36.7564997+08:00;True|2022-01-17T17:57:44.7814863+08:00;True|2022-01-17T17:51:50.1516107+08:00;True|2022-01-17T17:39:29.2918799+08:00;True|2022-01-17T14:55:21.5859341+08:00;True|2022-01-17T14:38:06.5091500+08:00;True|2022-01-17T14:30:25.5378436+08:00;True|2022-01-16T19:15:24.5874858+08:00;True|2022-01-16T19:07:49.0613424+08:00;True|2022-01-16T16:10:47.3112741+08:00;False|2022-01-14T19:09:41.9296709+08:00;False|2022-01-14T18:56:11.0569808+08:00;False|2022-01-14T18:28:20.1376762+08:00;False|2022-01-14T18:27:30.8678130+08:00;False|2022-01-14T18:22:45.4436504+08:00;False|2022-01-14T18:19:37.0374753+08:00;False|2022-01-14T18:18:48.5868254+08:00;False|2022-01-14T18:14:02.5810257+08:00;False|2022-01-14T18:09:51.1730754+08:00;False|2022-01-14T18:09:17.8940754+08:00;True|2022-01-13T20:08:16.2937608+08:00;True|2022-01-13T20:07:30.1505466+08:00;True|2022-01-13T13:39:42.0146294+08:00;True|2022-01-13T13:38:07.5062471+08:00;True|2022-01-13T11:29:49.3751232+08:00;True|2022-01-13T11:05:43.9574142+08:00;True|2022-01-13T10:33:23.1921058+08:00;True|2022-01-12T20:38:16.9165651+08:00;True|2022-01-12T20:24:46.3779264+08:00;True|2022-01-12T20:03:06.5030626+08:00;True|2022-01-12T19:44:55.4294326+08:00;True|2022-01-12T12:58:45.9548600+08:00;True|2022-01-12T11:28:44.7797749+08:00;True|2022-01-11T18:07:30.9151356+08:00;True|2022-01-11T15:06:32.7301609+08:00;True|2022-01-11T09:27:00.1766442+08:00;True|2021-12-30T14:41:56.8541015+08:00;True|2021-12-30T13:45:00.6130694+08:00;True|2021-12-30T13:44:18.7370780+08:00;True|2021-12-30T13:36:52.8171136+08:00;True|2021-12-28T19:14:22.5979649+08:00;True|2021-12-28T13:13:39.3543252+08:00;True|2021-12-27T15:31:26.6037782+08:00;True|2021-12-27T15:28:54.4824480+08:00;True|2021-12-27T15:22:47.8436108+08:00;True|2021-12-27T15:04:37.0711590+08:00;True|2021-12-27T15:03:52.0932499+08:00;True|2021-12-27T15:03:33.0172733+08:00;True|2021-12-27T13:28:27.4252747+08:00;True|2021-12-25T19:38:33.6784042+08:00;True|2021-12-24T20:47:43.3471563+08:00;True|2021-12-24T20:14:57.6946814+08:00;True|2021-12-24T19:55:21.1843105+08:00;True|2021-12-24T19:49:54.6719726+08:00;True|2021-12-24T19:38:14.1180741+08:00;True|2021-12-22T13:51:37.1082523+08:00;True|2021-12-21T15:38:59.8015096+08:00;True|2021-12-21T15:29:54.8095063+08:00;False|2021-12-21T15:29:21.7006531+08:00;False|2021-12-21T15:16:18.2218025+08:00;False|2021-12-21T15:11:38.1215841+08:00;False|2021-12-21T15:08:27.0590078+08:00;True|2021-12-10T14:12:36.4065298+08:00;True|2021-12-10T13:54:03.4921778+08:00;True|2021-12-10T13:25:49.0439086+08:00;True|2021-12-10T13:19:58.9494477+08:00;True|2021-12-10T13:10:45.3929017+08:00;True|2021-12-10T11:06:53.2416794+08:00;True|2021-12-07T17:23:28.9380484+08:00;True|2021-12-07T17:13:52.4384814+08:00;True|2021-12-07T16:39:49.2020208+08:00;True|2021-12-07T15:18:20.9024533+08:00;True|2021-12-07T15:07:35.4428035+08:00;True|2021-12-07T15:01:02.0445043+08:00;True|2021-12-07T14:50:08.9019705+08:00;True|2021-12-07T14:34:50.4993666+08:00;False|2021-12-07T14:32:56.0408332+08:00;True|2021-12-06T17:11:41.4004606+08:00;True|2021-12-06T16:48:07.6029757+08:00;True|2021-12-06T13:46:35.9437718+08:00;True|2021-12-06T13:45:07.6622615+08:00;True|2021-12-06T11:25:04.3483155+08:00;True|2021-12-06T11:18:24.5804187+08:00;True|2021-11-22T16:27:05.4241947+08:00;True|2021-11-22T13:40:17.6768280+08:00;True|2021-11-19T16:15:19.9085104+08:00;True|2021-11-09T10:34:21.1623512+08:00;True|2021-11-07T16:57:59.7380254+08:00;True|2021-11-07T16:53:47.4198852+08:00;True|2021-11-07T16:42:05.5096826+08:00;True|2021-11-07T16:37:21.0729013+08:00;True|2021-11-05T20:51:17.6170717+08:00;True|2021-11-05T20:35:14.6250333+08:00;True|2021-11-05T19:30:19.8374158+08:00;True|2021-11-05T19:22:46.2276569+08:00;True|2021-11-05T19:20:30.8253213+08:00;True|2021-11-05T19:16:45.7553310+08:00;True|2021-11-05T19:16:00.4532689+08:00;True|2021-11-05T19:12:25.9022478+08:00;False|2021-11-05T19:11:26.5753529+08:00;True|2021-11-05T19:09:30.0085433+08:00;True|2021-11-05T18:48:19.9395153+08:00;True|2021-11-05T18:45:34.3437897+08:00;True|2021-11-05T18:43:43.4558159+08:00;True|2021-11-05T18:40:40.9948500+08:00;True|2021-11-05T18:34:18.4440455+08:00;True|2021-11-05T15:54:51.6037132+08:00;True|2021-10-28T16:27:53.9728270+08:00;True|2021-10-28T16:03:59.5629998+08:00;True|2021-10-28T08:51:04.2549186+08:00;True|2021-10-27T15:14:53.5506098+08:00;True|2021-10-27T15:00:44.9100320+08:00;True|2021-10-27T13:14:46.7921647+08:00;True|2021-10-27T11:24:49.4550753+08:00;True|2021-10-27T10:10:10.3545125+08:00;True|2021-10-27T10:02:24.9248610+08:00;True|2021-10-27T09:59:40.3795897+08:00;True|2021-10-27T09:56:30.6629207+08:00;True|2021-10-27T09:10:48.3883432+08:00;True|2021-10-27T09:03:31.9191991+08:00;True|2021-10-27T08:59:59.7651159+08:00;True|2021-10-27T08:36:11.8620997+08:00;True|2021-10-27T08:26:40.2533014+08:00;True|2021-10-26T09:19:35.5674748+08:00;True|2021-10-26T09:17:17.6900747+08:00;True|2021-10-26T09:14:32.3999220+08:00;True|2021-10-25T15:08:21.2581763+08:00;True|2021-10-25T10:01:57.8524903+08:00;True|2021-10-25T09:28:51.6294879+08:00;True|2021-10-25T09:25:50.3373336+08:00;True|2021-10-25T09:23:37.0203978+08:00;True|2021-10-25T09:18:23.3380608+08:00;True|2021-10-25T09:15:10.5292071+08:00;True|2021-10-25T08:56:30.4632027+08:00;True|2021-10-25T08:50:11.4697392+08:00;True|2021-10-22T13:46:49.7207066+08:00;True|2021-10-22T10:06:33.3130089+08:00;True|2021-10-20T14:32:10.1235516+08:00;True|2021-10-20T14:16:18.6496291+08:00;True|2021-10-20T14:08:49.2443715+08:00;True|2021-10-20T14:05:14.6847950+08:00;True|2021-10-20T13:30:21.6057636+08:00;True|2021-10-20T10:55:22.2151716+08:00;True|2021-10-19T10:42:13.4198267+08:00;True|2021-10-19T10:01:41.0018108+08:00;True|2021-10-19T09:59:11.2127619+08:00;True|2021-10-19T09:54:04.8472874+08:00;True|2021-10-15T11:19:15.5327495+08:00;True|2021-10-15T11:17:41.0686485+08:00;True|2021-10-15T11:12:11.8295042+08:00;True|2021-10-15T10:33:31.5670079+08:00;True|2021-10-15T10:27:45.0815146+08:00;True|2021-10-14T14:51:28.5331025+08:00;True|2021-10-14T14:37:28.3276051+08:00;True|2021-10-14T14:23:39.0606792+08:00;True|2021-10-14T14:21:03.8140347+08:00;True|2021-10-13T10:31:10.6628977+08:00;True|2021-10-13T10:12:24.4238027+08:00;True|2021-10-13T08:47:43.9314486+08:00;True|2021-10-12T14:07:18.6065183+08:00;True|2021-10-12T10:34:10.1682362+08:00;True|2021-10-12T10:27:14.3073332+08:00;True|2021-10-12T10:22:08.0004619+08:00;True|2021-10-12T10:21:03.0275378+08:00;True|2021-10-12T10:11:54.9812692+08:00;True|2021-10-11T16:59:07.3568342+08:00;True|2021-10-11T16:53:14.2016138+08:00;True|2021-10-11T16:21:35.0133775+08:00;True|2021-10-11T15:34:19.5731935+08:00;True|2021-10-11T15:31:07.5780983+08:00;True|2021-10-11T15:06:47.1145237+08:00;True|2021-10-11T15:03:25.5000280+08:00;True|2021-10-11T10:12:57.6416898+08:00;True|2021-10-09T10:15:17.9235165+08:00;True|2021-10-09T10:13:51.3318441+08:00;True|2021-10-09T10:01:21.6661542+08:00;True|2021-10-09T09:58:41.9225837+08:00;True|2021-10-08T14:56:49.7935800+08:00;True|2021-10-08T14:35:41.4490063+08:00;True|2021-10-08T14:02:42.6990656+08:00;True|2021-09-29T15:48:55.1547397+08:00;True|2021-09-29T15:48:23.5567191+08:00;True|2021-09-27T16:17:35.7180978+08:00;True|2021-09-27T15:51:50.4240134+08:00;True|2021-09-23T20:55:27.3554447+08:00;True|2021-09-23T14:14:44.0572017+08:00;True|2021-09-23T13:51:56.2344673+08:00;True|2021-09-23T10:46:16.7417007+08:00;True|2021-09-23T10:42:23.2117537+08:00;True|2021-09-22T15:21:22.9615672+08:00;True|2021-09-22T14:23:32.7907754+08:00;True|2021-09-22T13:48:03.4780947+08:00;True|2021-09-22T11:05:24.5249356+08:00;True|2021-09-22T10:00:19.0962943+08:00;True|2021-09-22T09:30:26.2686514+08:00;True|2021-09-17T11:22:34.5692792+08:00;True|2021-09-16T16:11:27.5372277+08:00;True|2021-09-16T14:53:40.8396557+08:00;True|2021-09-16T14:32:29.7905500+08:00;True|2021-09-16T14:26:46.2224219+08:00;True|2021-09-16T10:32:24.4244440+08:00;True|2021-09-15T11:10:35.3529360+08:00;True|2021-09-15T11:08:30.0857376+08:00;True|2021-09-15T11:05:56.7191571+08:00;True|2021-09-14T01:24:39.8041136+08:00;True|2021-09-14T01:05:01.1593327+08:00;True|2021-09-14T00:44:14.7233198+08:00;True|2021-09-13T23:48:19.4506233+08:00;True|2021-09-13T20:30:31.3243872+08:00;True|2021-09-13T19:45:35.9108911+08:00;False|2021-09-13T19:44:59.2779092+08:00;True|2021-09-13T18:09:22.4994381+08:00;True|2021-09-10T14:18:27.5788854+08:00;True|2021-09-09T15:57:01.7407207+08:00;True|2021-09-09T15:49:34.2598998+08:00;True|2021-09-09T11:32:10.7853024+08:00;True|2021-09-09T11:10:48.6840025+08:00;True|2021-09-09T10:35:37.3883078+08:00;True|2021-09-07T14:11:49.8497588+08:00;True|2021-09-07T13:34:48.4693349+08:00;True|2021-09-06T14:33:48.7549675+08:00;True|2021-09-03T16:27:51.1888520+08:00;True|2021-09-03T16:19:35.9003465+08:00;True|2021-09-03T15:46:28.1828032+08:00;True|2021-09-03T15:34:21.9362871+08:00;True|2021-09-03T11:24:49.8749819+08:00;True|2021-09-03T11:21:17.8373159+08:00;True|2021-09-03T11:16:53.2208136+08:00;True|2021-09-03T11:12:23.9063804+08:00;True|2021-09-03T09:11:09.2435721+08:00;True|2021-09-02T11:16:15.1370453+08:00;True|2021-09-02T10:35:39.1171879+08:00;True|2021-09-01T10:17:09.4536285+08:00;True|2021-09-01T09:46:28.4581776+08:00;True|2021-08-31T08:54:26.8588887+08:00;True|2021-08-31T08:39:08.3685693+08:00;True|2021-08-30T17:11:56.8438985+08:00;True|2021-08-30T15:59:42.0820292+08:00;True|2021-08-30T15:45:18.1868510+08:00;True|2021-08-30T14:56:08.3958863+08:00;True|2021-08-30T14:37:11.5379830+08:00;True|2021-08-30T14:35:34.8775934+08:00;True|2021-08-30T14:24:36.5111821+08:00;True|2021-08-30T10:05:49.6945200+08:00;True|2021-08-30T10:03:28.4064538+08:00;True|2021-08-30T10:00:16.8360929+08:00;True|2021-08-30T09:56:09.4434379+08:00;True|2021-08-30T09:55:36.1725334+08:00;True|2021-08-30T09:52:04.8600054+08:00;True|2021-08-30T09:47:46.4225655+08:00;True|2021-08-30T09:45:20.4894962+08:00;False|2021-08-27T17:17:34.2646751+08:00;False|2021-08-27T16:01:21.2791979+08:00;False|2021-08-27T15:58:06.9667160+08:00;False|2021-08-27T15:38:37.4818036+08:00;False|2021-08-27T15:21:02.8863114+08:00;False|2021-08-27T15:20:28.6828668+08:00;True|2021-08-26T16:00:44.3162145+08:00;True|2021-08-26T08:57:31.3842587+08:00;True|2021-08-23T08:43:41.1549775+08:00;True|2021-08-22T09:24:12.7210871+08:00;True|2021-08-22T09:19:53.8300229+08:00;True|2021-08-20T20:00:52.0140407+08:00;True|2021-08-20T19:40:14.7712765+08:00;True|2021-08-19T17:37:54.9748049+08:00;True|2021-08-19T17:20:11.0515687+08:00;True|2021-08-19T16:12:35.4392809+08:00;True|2021-08-19T16:06:50.6204587+08:00;True|2021-08-19T16:03:53.0824286+08:00;True|2021-08-19T15:56:01.3498791+08:00;True|2021-08-19T10:18:50.8113630+08:00;True|2021-08-19T09:58:06.2784035+08:00;True|2021-08-19T09:56:54.0619777+08:00;True|2021-08-19T00:32:08.3503093+08:00;True|2021-08-19T00:11:18.3150227+08:00;True|2021-08-19T00:02:49.4827718+08:00;True|2021-08-18T23:54:45.4845900+08:00;True|2021-08-18T23:39:51.6147977+08:00;True|2021-08-18T23:16:42.7214379+08:00;True|2021-08-18T22:38:57.4681929+08:00;True|2021-08-18T21:41:58.7560707+08:00;True|2021-08-18T21:11:52.2369249+08:00;True|2021-08-18T21:01:49.5669106+08:00;True|2021-08-18T20:47:46.5352688+08:00;False|2021-08-18T20:46:36.7956141+08:00;False|2021-08-18T20:46:01.0502138+08:00;True|2021-08-18T19:39:12.8186242+08:00;False|2021-08-18T19:38:12.6839708+08:00;True|2021-08-18T19:15:51.4626694+08:00;True|2021-08-18T16:07:20.4350886+08:00;True|2021-08-18T14:29:41.7171934+08:00;True|2021-08-18T14:20:36.3647361+08:00;True|2021-08-16T09:08:58.3617662+08:00;True|2021-08-15T20:44:29.9214083+08:00;True|2021-08-15T20:36:17.0958549+08:00;True|2021-08-15T20:29:34.3879773+08:00;True|2021-08-15T20:23:47.4052038+08:00;True|2021-08-15T15:01:19.7830862+08:00;True|2021-08-15T12:15:18.3433782+08:00;True|2021-08-13T20:59:11.3947130+08:00;True|2021-08-06T22:49:09.9538339+08:00;True|2021-08-06T22:35:19.0418168+08:00;True|2021-08-06T20:29:47.4241975+08:00;True|2021-08-06T14:08:16.4791827+08:00;True|2021-08-06T13:59:28.9874611+08:00;True|2021-08-06T13:57:34.3723977+08:00;True|2021-08-06T13:36:03.4816652+08:00;True|2021-08-06T12:22:52.5055221+08:00;True|2021-08-06T09:31:58.1272499+08:00;True|2021-08-06T09:26:51.6310039+08:00;True|2021-08-06T09:24:22.2899244+08:00;True|2021-08-06T09:06:30.6477912+08:00;True|2021-08-06T09:00:55.5101612+08:00;True|2021-08-06T08:49:59.9616490+08:00;True|2021-08-06T08:45:18.8586902+08:00;True|2021-08-05T20:09:25.8861998+08:00;True|2021-08-04T19:14:27.2396953+08:00;True|2021-08-04T19:11:47.5849093+08:00;True|2021-08-04T16:42:54.0149043+08:00;True|2021-08-04T15:02:11.5056561+08:00;True|2021-08-04T14:58:37.1435509+08:00;True|2021-08-04T14:55:34.7380132+08:00;True|2021-08-04T14:47:42.5933921+08:00;True|2021-08-04T14:45:17.9911874+08:00;True|2021-08-04T13:52:20.9601351+08:00;True|2021-08-04T09:48:28.8796992+08:00;True|2021-08-03T18:14:13.1894998+08:00;True|2021-08-03T17:45:35.1349721+08:00;True|2021-08-03T17:21:52.6028977+08:00;True|2021-08-03T17:20:35.4423020+08:00;True|2021-08-03T17:03:33.1667669+08:00;True|2021-08-03T17:01:54.2656787+08:00;True|2021-08-03T17:00:22.2778374+08:00;True|2021-08-03T16:56:58.8902582+08:00;True|2021-08-03T15:02:21.8601533+08:00;True|2021-08-03T14:57:34.0186758+08:00;True|2021-08-03T14:28:47.2242515+08:00;True|2021-08-03T14:22:22.4554236+08:00;True|2021-08-03T14:21:51.1339715+08:00;True|2021-08-03T13:37:33.9697131+08:00;True|2021-08-03T13:28:29.7591095+08:00;True|2021-08-03T11:35:09.5118324+08:00;True|2021-08-03T11:11:23.3051573+08:00;True|2021-08-02T13:14:42.3663755+08:00;True|2021-07-30T22:50:19.9749878+08:00;True|2021-07-30T22:49:31.2150970+08:00;True|2021-07-28T19:12:05.8381075+08:00;True|2021-07-28T18:59:45.4808797+08:00;True|2021-07-28T18:15:58.8301509+08:00;True|2021-07-28T18:04:54.8613546+08:00;True|2021-07-28T17:53:48.6225611+08:00;True|2021-07-28T17:42:50.9171563+08:00;True|2021-07-28T17:17:16.3137677+08:00;True|2021-07-28T17:11:46.8925200+08:00;True|2021-07-28T16:28:27.6823943+08:00;True|2021-07-28T16:23:00.3385836+08:00;True|2021-07-28T09:57:55.4237411+08:00;True|2021-07-28T08:38:29.6691541+08:00;True|2021-07-27T23:16:32.0331671+08:00;True|2021-07-27T23:06:08.1947249+08:00;True|2021-07-27T23:05:58.4619176+08:00;True|2021-07-27T18:42:09.5358261+08:00;True|2021-07-27T18:30:04.8532823+08:00;True|2021-07-27T18:29:43.5775092+08:00;True|2021-07-27T15:16:49.8356224+08:00;True|2021-07-27T15:05:27.8453220+08:00;True|2021-07-27T14:59:15.9519440+08:00;True|2021-07-27T09:23:32.6111337+08:00;True|2021-07-27T08:27:41.6395353+08:00;True|2021-07-27T08:25:56.7378296+08:00;True|2021-07-26T11:18:46.0856966+08:00;True|2021-07-26T11:18:02.0751924+08:00;True|2021-07-26T11:13:49.6285395+08:00;True|2021-07-21T21:08:25.9898902+08:00;True|2021-07-21T20:09:26.2258104+08:00;True|2021-07-13T16:17:25.8407435+08:00;True|2021-07-13T13:46:13.4309531+08:00;True|2021-07-13T12:29:04.5082461+08:00;True|2021-06-29T13:55:01.6864637+08:00;True|2021-06-29T10:38:52.2206472+08:00;True|2021-06-29T10:10:13.1540749+08:00;True|2021-06-28T14:37:56.3853273+08:00;False|2021-06-28T14:36:57.5726124+08:00;True|2021-06-25T14:17:57.5196108+08:00;True|2021-06-25T13:56:38.9522535+08:00;True|2021-06-24T19:38:32.8766933+08:00;True|2021-06-24T18:26:35.6118833+08:00;True|2021-06-24T18:02:52.8136877+08:00;True|2021-06-24T17:48:49.5851948+08:00;True|2021-06-24T17:45:46.7527572+08:00;True|2021-06-24T15:05:20.1592723+08:00;True|2021-06-23T16:18:15.6814625+08:00;True|2021-06-23T16:05:24.6112343+08:00;True|2021-06-23T15:14:08.2489658+08:00;True|2021-06-23T13:52:58.6029788+08:00;True|2021-06-22T16:11:20.4726923+08:00;True|2021-06-22T16:04:53.7231389+08:00;True|2021-06-22T15:50:59.2583262+08:00;True|2021-06-22T15:38:15.3016140+08:00;True|2021-06-22T15:34:42.9185543+08:00;True|2021-06-22T15:21:55.1419108+08:00;True|2021-06-22T15:07:21.5357494+08:00;True|2021-06-22T15:03:35.0535733+08:00;True|2021-06-22T14:54:47.8802969+08:00;True|2021-06-22T11:19:38.7303011+08:00;True|2021-06-22T08:53:49.2882695+08:00;True|2021-06-22T08:47:54.8286530+08:00;True|2021-06-21T16:27:19.3017700+08:00;True|2021-06-21T15:32:28.7237952+08:00;True|2021-06-21T12:34:02.6329555+08:00;True|2021-06-21T12:24:17.5427495+08:00;True|2021-06-21T10:47:30.6423502+08:00;True|2021-06-21T08:43:20.3026558+08:00;True|2021-06-19T15:10:06.8335499+08:00;True|2021-06-18T15:37:29.5009930+08:00;True|2021-06-18T13:46:35.6283432+08:00;True|2021-06-18T10:00:37.1474954+08:00;True|2021-06-18T09:55:21.8551780+08:00;True|2021-06-18T09:22:27.8432927+08:00;True|2021-06-17T11:17:43.2166430+08:00;True|2021-06-17T09:24:09.8350403+08:00;True|2021-06-16T16:10:47.8564888+08:00;True|2021-06-16T16:04:09.8286582+08:00;True|2021-06-16T15:12:29.9427169+08:00;True|2021-06-16T14:58:45.6801892+08:00;True|2021-06-16T14:46:01.6873221+08:00;True|2021-06-16T11:02:06.1272477+08:00;True|2021-06-16T09:33:56.0223915+08:00;True|2021-06-16T08:50:07.6995413+08:00;True|2021-06-16T08:28:38.7692635+08:00;True|2021-06-16T01:04:19.6282474+08:00;True|2021-06-16T01:03:50.5058323+08:00;False|2021-06-16T01:02:15.3819672+08:00;False|2021-06-16T01:01:38.6171098+08:00;True|2021-06-16T00:34:54.9902044+08:00;True|2021-06-15T23:55:36.2003828+08:00;True|2021-06-15T22:47:17.2192750+08:00;True|2021-06-15T22:42:41.1512585+08:00;True|2021-06-15T22:38:01.7390462+08:00;True|2021-06-15T22:14:11.2060782+08:00;True|2021-06-15T22:12:27.0615357+08:00;True|2021-06-15T22:07:59.9280871+08:00;True|2021-06-15T22:04:21.5051427+08:00;True|2021-06-15T21:25:55.0099814+08:00;True|2021-06-15T19:13:51.3494172+08:00;True|2021-06-15T19:02:17.6844742+08:00;True|2021-06-15T18:47:37.1629411+08:00;False|2021-06-15T18:47:11.0828111+08:00;True|2021-06-15T18:38:26.6620668+08:00;True|2021-06-15T18:33:45.2069831+08:00;True|2021-06-15T18:24:52.0550838+08:00;True|2021-06-15T18:19:43.6999796+08:00;True|2021-06-15T18:08:17.2464506+08:00;True|2021-06-15T18:03:51.3952624+08:00;True|2021-06-15T18:01:20.6141766+08:00;True|2021-06-15T17:59:04.4479416+08:00;True|2021-06-15T17:41:44.6389379+08:00;True|2021-06-15T17:39:03.1565124+08:00;True|2021-06-15T17:34:41.0634638+08:00;True|2021-06-15T17:33:50.4853178+08:00;True|2021-06-15T17:25:38.5914037+08:00;True|2021-06-15T17:22:21.3611360+08:00;True|2021-06-15T17:16:49.4970813+08:00;True|2021-06-15T17:05:28.9389484+08:00;True|2021-06-15T16:52:54.6372199+08:00;True|2021-06-15T16:51:23.9081030+08:00;True|2021-06-15T16:45:40.6017997+08:00;True|2021-06-15T16:41:05.0218887+08:00;True|2021-06-15T16:38:02.8541862+08:00;True|2021-06-15T16:22:10.3118721+08:00;True|2021-06-15T16:12:11.1552506+08:00;True|2021-06-15T15:33:42.0100494+08:00;True|2021-06-15T15:28:39.7145659+08:00;True|2021-06-15T15:15:02.7939125+08:00;True|2021-06-15T14:49:14.2300396+08:00;True|2021-06-15T14:42:28.1198064+08:00;True|2021-06-15T13:30:12.7997686+08:00;True|2021-06-15T13:25:37.7284670+08:00;True|2021-06-15T13:23:43.6207813+08:00;False|2021-06-15T13:23:19.4190232+08:00;True|2021-06-15T13:16:38.5062674+08:00;True|2021-06-15T13:03:31.2055635+08:00;True|2021-06-15T12:58:43.1653215+08:00;True|2021-06-15T12:39:22.8442109+08:00;True|2021-06-15T12:35:09.1288556+08:00;False|2021-06-15T12:33:50.0723143+08:00;True|2021-06-15T11:28:01.9733727+08:00;True|2021-06-15T11:26:26.6569392+08:00;True|2021-06-15T11:22:43.0366435+08:00;True|2021-06-15T11:07:50.1610580+08:00;True|2021-06-15T10:32:59.1925931+08:00;True|2021-06-10T17:16:57.9552310+08:00;True|2021-06-10T16:44:42.2731836+08:00;True|2021-06-10T14:39:27.6745737+08:00;True|2021-06-10T12:15:05.1524413+08:00;True|2021-06-09T18:19:24.1005606+08:00;True|2021-06-09T17:56:09.5646288+08:00;True|2021-06-09T13:34:06.1882292+08:00;True|2021-06-09T13:29:54.5924933+08:00;True|2021-06-09T13:25:55.7520662+08:00;True|2021-06-09T13:07:47.6686811+08:00;True|2021-06-09T12:59:41.2595048+08:00;True|2021-06-09T12:45:27.1305548+08:00;True|2021-06-09T12:29:52.1418191+08:00;True|2021-06-09T12:24:12.7610588+08:00;True|2021-06-09T11:31:25.3409568+08:00;True|2021-06-09T09:57:44.4387175+08:00;True|2021-06-09T09:54:26.5161307+08:00;True|2021-06-09T09:14:14.7288045+08:00;True|2021-06-09T09:10:25.1812139+08:00;True|2021-06-09T08:46:21.6585123+08:00;True|2021-06-08T19:56:55.7192062+08:00;True|2021-06-08T19:52:59.0326821+08:00;True|2021-06-08T19:49:13.6274217+08:00;True|2021-06-08T19:09:22.1038939+08:00;True|2021-06-08T15:28:41.3716247+08:00;True|2021-06-08T15:26:47.2621178+08:00;True|2021-06-08T13:49:45.8936617+08:00;True|2021-06-08T13:43:18.8115502+08:00;True|2021-06-08T10:04:06.2200731+08:00;True|2021-06-08T09:17:10.0470792+08:00;True|2021-06-08T08:44:37.4395849+08:00;True|2021-06-08T00:01:09.3745613+08:00;True|2021-06-07T23:49:31.5196888+08:00;True|2021-06-07T23:41:00.8017855+08:00;True|2021-06-07T23:21:53.1371134+08:00;True|2021-06-07T23:01:27.5712153+08:00;True|2021-06-07T22:36:12.9274014+08:00;True|2021-06-07T22:23:00.6545134+08:00;True|2021-06-07T17:44:47.5686346+08:00;True|2021-06-07T17:17:01.3431233+08:00;True|2021-06-07T16:53:28.9989587+08:00;True|2021-06-07T16:41:10.4975607+08:00;True|2021-06-07T14:21:06.8176477+08:00;True|2021-06-07T14:10:39.0355659+08:00;True|2021-06-07T12:34:31.4562732+08:00;True|2021-06-07T12:28:44.9629488+08:00;True|2021-06-07T10:30:26.9387988+08:00;True|2021-06-07T09:12:14.7658099+08:00;True|2021-06-07T08:37:19.6353792+08:00;True|2021-06-07T08:35:25.2031954+08:00;True|2021-06-05T07:07:32.0541266+08:00;True|2021-06-05T06:44:35.9475270+08:00;True|2021-06-05T06:37:27.4595197+08:00;True|2021-06-05T06:26:59.7663998+08:00;True|2021-06-05T05:43:12.8699318+08:00;True|2021-06-04T17:00:41.2426007+08:00;True|2021-06-04T16:08:03.8078072+08:00;True|2021-06-04T15:47:21.6412616+08:00;True|2021-06-04T15:21:02.4239800+08:00;True|2021-06-04T15:20:37.8641854+08:00;True|2021-06-04T13:38:51.5088395+08:00;True|2021-06-04T10:20:01.7784282+08:00;True|2021-06-04T10:13:50.3548857+08:00;True|2021-06-04T10:11:25.5017821+08:00;True|2021-06-04T10:09:51.6792228+08:00;True|2021-06-04T10:02:39.5851057+08:00;True|2021-06-04T09:30:40.4495494+08:00;True|2021-06-03T13:16:36.0317546+08:00;True|2021-06-03T13:12:47.0402047+08:00;True|2021-06-02T14:37:08.9683351+08:00;True|2021-06-02T14:10:15.7439829+08:00;True|2021-06-02T13:59:46.5841931+08:00;True|2021-06-02T13:25:18.7962660+08:00;True|2021-06-02T13:23:16.2261980+08:00;True|2021-06-01T15:37:32.2495085+08:00;True|2021-06-01T15:21:01.2856122+08:00;True|2021-06-01T15:13:36.7262365+08:00;True|2021-06-01T15:10:26.8905629+08:00;True|2021-06-01T14:56:17.5231551+08:00;True|2021-06-01T14:38:39.7895927+08:00;True|2021-06-01T14:23:12.3265287+08:00;True|2021-03-01T09:11:31.3226422+08:00;True|2021-05-26T14:54:56.9426462+08:00;True|2021-05-26T13:57:33.7780451+08:00;True|2021-05-26T13:39:02.8043358+08:00;True|2021-02-25T16:01:40.2917200+08:00;True|2021-02-25T15:49:46.6681205+08:00;True|2021-02-25T15:16:30.9372640+08:00;True|2021-05-25T13:10:21.7831921+08:00;True|2021-05-25T11:21:38.5224475+08:00;True|2021-05-25T11:12:52.0637175+08:00;True|2021-05-25T11:02:18.4164663+08:00;True|2021-05-25T10:52:06.8998521+08:00;True|2021-05-25T10:50:45.0929606+08:00;True|2021-05-25T10:45:54.1498313+08:00;True|2021-05-25T10:39:27.8602249+08:00;True|2021-05-25T10:34:49.5771162+08:00;True|2021-05-25T10:17:30.3009163+08:00;True|2021-05-25T10:14:03.8512581+08:00;True|2021-05-25T10:05:33.4343836+08:00;True|2021-05-24T17:01:23.3221168+08:00;True|2021-05-24T10:11:24.0197347+08:00;False|2021-05-24T10:11:07.6338995+08:00;</History> + <History>True|2023-01-11T05:30:27.8190489Z;True|2023-01-06T14:29:14.6067256+08:00;True|2022-12-23T17:06:52.0688439+08:00;True|2022-12-23T16:12:04.4155951+08:00;True|2022-12-23T13:35:44.6439326+08:00;True|2022-11-30T08:24:02.9999976+08:00;True|2022-11-30T08:01:51.4579972+08:00;True|2022-11-29T21:32:14.4359673+08:00;True|2022-11-29T19:30:22.9466023+08:00;True|2022-11-29T19:24:30.1630119+08:00;True|2022-11-29T17:31:43.1926801+08:00;True|2022-11-29T17:14:32.5869985+08:00;True|2022-11-29T10:42:57.1877576+08:00;True|2022-11-27T14:40:28.4784748+08:00;True|2022-11-26T20:49:34.2789400+08:00;True|2022-11-26T19:24:58.9988205+08:00;True|2022-11-26T15:33:08.6274944+08:00;True|2022-11-26T14:37:46.3953592+08:00;True|2022-11-26T09:16:41.7487240+08:00;True|2022-11-24T09:49:50.7302637+08:00;True|2022-11-23T16:24:56.5946914+08:00;True|2022-11-23T16:19:57.5570583+08:00;True|2022-11-23T15:05:13.8032246+08:00;True|2022-11-22T20:24:39.7324815+08:00;True|2022-11-22T13:18:16.2143925+08:00;False|2022-11-22T13:12:53.0448580+08:00;True|2022-11-22T11:03:01.7571733+08:00;True|2022-11-21T13:20:11.1961237+08:00;True|2022-11-21T13:13:52.0360749+08:00;True|2022-11-18T15:48:13.0747365+08:00;True|2022-11-18T14:15:54.5626901+08:00;True|2022-11-17T18:41:26.5464503+08:00;True|2022-11-15T13:55:35.3496366+08:00;True|2022-11-15T11:03:23.6773297+08:00;True|2022-11-15T10:58:47.9703720+08:00;True|2022-11-15T10:12:27.8305782+08:00;True|2022-11-15T09:47:26.7480777+08:00;True|2022-11-15T08:55:44.0275263+08:00;True|2022-11-15T08:54:06.6396851+08:00;True|2022-11-15T08:44:18.2013404+08:00;True|2022-11-15T01:16:19.8154538+08:00;True|2022-11-15T01:15:03.7846810+08:00;True|2022-11-15T01:01:11.0318599+08:00;True|2022-11-15T00:30:33.7148460+08:00;True|2022-11-15T00:15:26.5178283+08:00;True|2022-11-14T23:54:32.6128172+08:00;True|2022-11-14T23:26:52.0335380+08:00;True|2022-11-14T22:21:28.0622050+08:00;True|2022-11-14T21:47:43.6964619+08:00;True|2022-11-14T21:41:42.3128804+08:00;True|2022-11-14T21:31:17.2784203+08:00;True|2022-11-14T20:48:20.0380343+08:00;True|2022-11-11T17:24:44.7029993+08:00;True|2022-11-11T16:47:29.3444029+08:00;True|2022-11-11T16:07:26.4718473+08:00;True|2022-11-11T15:52:41.7235701+08:00;True|2022-11-10T15:58:10.8883176+08:00;True|2022-11-10T15:29:59.3113740+08:00;True|2022-11-10T13:34:14.7380132+08:00;True|2022-11-10T10:28:02.1166569+08:00;True|2022-11-09T23:28:25.6401971+08:00;True|2022-11-09T16:20:53.2757536+08:00;True|2022-11-09T16:16:41.3169214+08:00;True|2022-11-09T14:02:55.1802832+08:00;True|2022-11-09T13:57:55.2726154+08:00;True|2022-11-09T13:28:53.2022669+08:00;True|2022-11-09T13:10:58.0740163+08:00;True|2022-11-09T12:59:42.2328933+08:00;True|2022-11-09T11:54:08.0187924+08:00;True|2022-11-09T11:49:32.4296758+08:00;True|2022-11-09T11:34:32.6613370+08:00;True|2022-11-09T11:06:56.9443306+08:00;True|2022-11-06T23:43:44.0833657+08:00;True|2022-11-06T23:29:52.0088244+08:00;True|2022-11-06T22:06:14.7091464+08:00;True|2022-11-06T22:03:25.2696951+08:00;True|2022-11-06T21:58:50.1055520+08:00;True|2022-11-06T21:54:14.0075395+08:00;True|2022-11-06T21:39:30.2652105+08:00;True|2022-11-04T15:54:37.9813194+08:00;True|2022-11-04T15:43:59.7702621+08:00;True|2022-11-04T13:59:29.3941234+08:00;True|2022-11-04T13:44:18.1212719+08:00;True|2022-11-04T13:42:06.1010393+08:00;True|2022-11-04T13:37:01.7814703+08:00;True|2022-11-04T13:35:43.1121709+08:00;True|2022-11-04T13:33:05.1362535+08:00;True|2022-11-04T13:30:11.1113703+08:00;True|2022-11-04T13:28:53.7185382+08:00;True|2022-11-04T13:27:08.0691684+08:00;True|2022-11-04T13:20:46.2297633+08:00;True|2022-11-04T13:17:57.1564250+08:00;True|2022-11-04T13:15:36.3651019+08:00;True|2022-11-04T13:13:44.6635701+08:00;True|2022-11-04T13:12:02.3968306+08:00;True|2022-11-04T13:08:07.7653927+08:00;True|2022-11-04T11:37:44.1975649+08:00;True|2022-11-04T11:36:20.3813848+08:00;True|2022-11-04T11:26:40.9713465+08:00;True|2022-11-04T10:17:36.4269558+08:00;True|2022-11-04T09:47:05.4607111+08:00;True|2022-11-04T09:28:27.9347785+08:00;True|2022-11-04T08:38:38.5253737+08:00;True|2022-11-03T13:31:32.7883545+08:00;False|2022-11-03T13:27:07.8579021+08:00;True|2022-11-03T11:07:07.3903101+08:00;True|2022-11-03T10:54:26.7818816+08:00;True|2022-11-03T10:35:59.1956262+08:00;True|2022-11-03T10:30:07.0651285+08:00;True|2022-11-03T10:01:20.8467911+08:00;True|2022-08-22T11:13:33.9211829+08:00;True|2022-06-17T11:19:24.4893458+08:00;True|2022-06-07T14:44:51.5702202+08:00;True|2022-06-07T14:42:44.8351600+08:00;True|2022-05-17T14:19:55.1158182+08:00;True|2022-05-17T13:25:44.2886247+08:00;True|2022-05-17T10:29:26.6813564+08:00;True|2022-05-17T09:02:49.1742018+08:00;True|2022-05-06T15:13:12.2438900+08:00;True|2022-05-06T14:49:39.8536594+08:00;True|2022-04-22T17:07:44.8823529+08:00;True|2022-04-19T19:13:40.8312746+08:00;True|2022-04-19T15:40:16.0022040+08:00;True|2022-04-19T15:13:32.9767736+08:00;False|2022-04-19T15:08:33.6507639+08:00;True|2022-04-19T15:02:51.9580210+08:00;True|2022-04-19T13:54:18.7579131+08:00;True|2022-04-12T10:36:02.1779173+08:00;True|2022-04-12T10:05:31.0222037+08:00;True|2022-04-12T09:47:49.3724819+08:00;True|2022-04-09T15:08:54.5697468+08:00;True|2022-04-08T17:31:31.0046258+08:00;True|2022-04-08T16:50:41.3018422+08:00;True|2022-04-08T10:35:36.5029980+08:00;True|2022-03-31T09:38:37.3646053+08:00;True|2022-03-29T13:57:45.4410942+08:00;True|2022-03-10T18:59:23.7994337+08:00;True|2022-03-10T18:52:39.5019082+08:00;True|2022-03-10T18:51:12.7949284+08:00;True|2022-03-10T18:50:47.2024177+08:00;True|2022-03-10T18:45:08.8409380+08:00;True|2022-03-10T18:41:17.0102564+08:00;True|2022-03-10T18:35:49.0742353+08:00;True|2022-03-10T17:57:47.4196965+08:00;True|2022-03-10T17:34:27.5723245+08:00;True|2022-03-10T16:13:59.3829164+08:00;True|2022-03-09T14:50:49.1222033+08:00;True|2022-03-09T11:21:03.0073651+08:00;False|2022-03-09T11:16:56.1792896+08:00;False|2022-03-09T11:16:49.7923320+08:00;True|2022-03-08T15:47:47.4722336+08:00;True|2022-03-08T15:47:28.5397115+08:00;True|2022-03-08T15:37:08.7379870+08:00;True|2022-03-02T17:37:54.4659976+08:00;True|2022-03-02T17:34:12.2949726+08:00;True|2022-03-02T17:26:38.7070673+08:00;True|2022-03-02T17:07:49.7024316+08:00;True|2022-03-02T17:05:22.4177336+08:00;True|2022-03-02T16:14:57.9880587+08:00;True|2022-03-01T17:52:52.6766959+08:00;True|2022-02-28T14:36:22.6449303+08:00;True|2022-02-24T15:43:36.8244163+08:00;True|2022-02-23T17:57:14.3693224+08:00;True|2022-02-23T17:46:42.1078183+08:00;False|2022-02-23T17:41:06.5886724+08:00;True|2022-02-23T16:59:45.5533581+08:00;True|2022-02-23T16:57:43.3328895+08:00;True|2022-02-21T09:09:37.2601134+08:00;True|2022-02-21T09:03:32.4071009+08:00;True|2022-02-21T08:59:59.0172082+08:00;True|2022-02-18T14:05:39.1358825+08:00;True|2022-02-18T10:23:02.4391239+08:00;True|2022-02-18T10:21:31.0559267+08:00;True|2022-02-17T16:50:11.7192509+08:00;True|2022-02-17T13:19:13.7697894+08:00;True|2022-02-11T10:36:12.7757100+08:00;True|2022-02-10T10:54:25.2685040+08:00;True|2022-02-10T10:37:02.1034768+08:00;True|2022-02-09T17:32:45.6511283+08:00;True|2022-02-09T17:24:32.5115193+08:00;True|2022-02-09T17:00:24.0662114+08:00;True|2022-02-09T16:56:42.3364622+08:00;True|2022-02-09T14:17:25.8688855+08:00;True|2022-02-09T14:11:51.6149822+08:00;True|2022-02-07T23:29:26.2842648+08:00;True|2022-02-07T23:28:58.8242274+08:00;False|2022-02-07T23:25:29.0647793+08:00;True|2022-02-07T13:06:37.5515985+08:00;True|2022-02-07T12:42:19.5220491+08:00;True|2022-02-07T09:52:59.6728595+08:00;True|2022-02-01T11:32:10.5831557+08:00;True|2022-01-29T14:09:02.9178986+08:00;True|2022-01-28T12:01:45.1416438+08:00;True|2022-01-28T11:03:41.6361866+08:00;True|2022-01-28T10:44:53.5367862+08:00;True|2022-01-28T10:40:41.6697563+08:00;True|2022-01-28T10:25:56.7093616+08:00;True|2022-01-28T09:58:13.0733060+08:00;True|2022-01-27T09:26:29.6568807+08:00;True|2022-01-27T00:47:57.9102528+08:00;True|2022-01-27T00:46:52.8845001+08:00;True|2022-01-27T00:36:34.5330938+08:00;True|2022-01-27T00:35:19.5439329+08:00;True|2022-01-27T00:33:38.5701950+08:00;True|2022-01-27T00:32:00.9028982+08:00;True|2022-01-27T00:30:13.2390921+08:00;True|2022-01-27T00:28:23.2989144+08:00;True|2022-01-27T00:16:01.3789455+08:00;True|2022-01-27T00:09:58.8112352+08:00;True|2022-01-27T00:00:40.8353538+08:00;True|2022-01-26T23:37:50.9494735+08:00;True|2022-01-26T23:29:39.8647473+08:00;True|2022-01-26T23:20:49.3274392+08:00;True|2022-01-26T23:15:53.7037293+08:00;True|2022-01-26T23:06:28.8595953+08:00;True|2022-01-26T23:02:12.9882299+08:00;True|2022-01-26T22:55:33.2535730+08:00;True|2022-01-26T22:51:01.8427947+08:00;True|2022-01-26T22:47:44.0715387+08:00;True|2022-01-26T22:20:21.7217039+08:00;True|2022-01-26T22:13:39.5372069+08:00;True|2022-01-26T22:01:31.2113177+08:00;True|2022-01-26T21:55:26.5478921+08:00;True|2022-01-26T21:50:18.2700369+08:00;True|2022-01-26T21:48:52.0020233+08:00;True|2022-01-26T19:19:29.4530523+08:00;True|2022-01-26T19:07:21.6474231+08:00;True|2022-01-26T18:25:42.2933291+08:00;True|2022-01-26T12:39:02.0149050+08:00;True|2022-01-26T12:13:43.9149452+08:00;True|2022-01-26T11:24:33.5742248+08:00;True|2022-01-26T08:51:10.8105076+08:00;True|2022-01-25T21:07:32.9069261+08:00;True|2022-01-24T01:35:12.3309466+08:00;True|2022-01-23T23:19:15.9702821+08:00;True|2022-01-23T21:50:41.6903353+08:00;True|2022-01-23T21:25:57.6084267+08:00;True|2022-01-23T21:16:10.1516535+08:00;True|2022-01-23T20:52:08.3745284+08:00;True|2022-01-23T18:19:32.2386502+08:00;True|2022-01-23T18:11:42.0830325+08:00;True|2022-01-23T18:00:01.3239547+08:00;True|2022-01-23T12:18:48.2466943+08:00;True|2022-01-22T00:48:50.4531647+08:00;True|2022-01-21T13:10:32.8173598+08:00;True|2022-01-21T13:04:01.6388059+08:00;True|2022-01-21T12:51:40.5304103+08:00;True|2022-01-21T12:44:06.3059885+08:00;True|2022-01-21T12:34:33.9314010+08:00;True|2022-01-21T11:39:20.1088577+08:00;True|2022-01-20T11:33:49.0516846+08:00;True|2022-01-20T10:02:12.0295471+08:00;True|2022-01-20T10:02:03.3535503+08:00;True|2022-01-19T23:56:18.7293193+08:00;True|2022-01-19T22:30:14.6986228+08:00;True|2022-01-19T22:15:08.8608795+08:00;True|2022-01-19T21:57:55.2295030+08:00;True|2022-01-19T13:50:37.8588759+08:00;True|2022-01-19T13:42:52.9761531+08:00;True|2022-01-19T00:26:36.9722917+08:00;True|2022-01-19T00:15:30.8583143+08:00;True|2022-01-18T21:19:30.6193048+08:00;True|2022-01-18T21:12:07.1453825+08:00;True|2022-01-18T20:35:27.3779956+08:00;True|2022-01-18T17:44:45.2318570+08:00;True|2022-01-18T14:45:29.0299640+08:00;True|2022-01-17T22:23:20.8214203+08:00;True|2022-01-17T21:49:15.7740045+08:00;True|2022-01-17T21:47:24.6997598+08:00;True|2022-01-17T21:44:00.1942787+08:00;True|2022-01-17T21:43:15.5992687+08:00;True|2022-01-17T21:33:16.8034756+08:00;True|2022-01-17T21:25:39.9909343+08:00;True|2022-01-17T21:13:03.9659338+08:00;True|2022-01-17T20:32:14.8869091+08:00;True|2022-01-17T19:01:46.5753686+08:00;True|2022-01-17T18:31:24.1032169+08:00;True|2022-01-17T18:21:39.2918684+08:00;True|2022-01-17T18:12:07.4859038+08:00;True|2022-01-17T18:09:26.6989718+08:00;True|2022-01-17T18:04:36.7564997+08:00;True|2022-01-17T17:57:44.7814863+08:00;True|2022-01-17T17:51:50.1516107+08:00;True|2022-01-17T17:39:29.2918799+08:00;True|2022-01-17T14:55:21.5859341+08:00;True|2022-01-17T14:38:06.5091500+08:00;True|2022-01-17T14:30:25.5378436+08:00;True|2022-01-16T19:15:24.5874858+08:00;True|2022-01-16T19:07:49.0613424+08:00;True|2022-01-16T16:10:47.3112741+08:00;False|2022-01-14T19:09:41.9296709+08:00;False|2022-01-14T18:56:11.0569808+08:00;False|2022-01-14T18:28:20.1376762+08:00;False|2022-01-14T18:27:30.8678130+08:00;False|2022-01-14T18:22:45.4436504+08:00;False|2022-01-14T18:19:37.0374753+08:00;False|2022-01-14T18:18:48.5868254+08:00;False|2022-01-14T18:14:02.5810257+08:00;False|2022-01-14T18:09:51.1730754+08:00;False|2022-01-14T18:09:17.8940754+08:00;True|2022-01-13T20:08:16.2937608+08:00;True|2022-01-13T20:07:30.1505466+08:00;True|2022-01-13T13:39:42.0146294+08:00;True|2022-01-13T13:38:07.5062471+08:00;True|2022-01-13T11:29:49.3751232+08:00;True|2022-01-13T11:05:43.9574142+08:00;True|2022-01-13T10:33:23.1921058+08:00;True|2022-01-12T20:38:16.9165651+08:00;True|2022-01-12T20:24:46.3779264+08:00;True|2022-01-12T20:03:06.5030626+08:00;True|2022-01-12T19:44:55.4294326+08:00;True|2022-01-12T12:58:45.9548600+08:00;True|2022-01-12T11:28:44.7797749+08:00;True|2022-01-11T18:07:30.9151356+08:00;True|2022-01-11T15:06:32.7301609+08:00;True|2022-01-11T09:27:00.1766442+08:00;True|2021-12-30T14:41:56.8541015+08:00;True|2021-12-30T13:45:00.6130694+08:00;True|2021-12-30T13:44:18.7370780+08:00;True|2021-12-30T13:36:52.8171136+08:00;True|2021-12-28T19:14:22.5979649+08:00;True|2021-12-28T13:13:39.3543252+08:00;True|2021-12-27T15:31:26.6037782+08:00;True|2021-12-27T15:28:54.4824480+08:00;True|2021-12-27T15:22:47.8436108+08:00;True|2021-12-27T15:04:37.0711590+08:00;True|2021-12-27T15:03:52.0932499+08:00;True|2021-12-27T15:03:33.0172733+08:00;True|2021-12-27T13:28:27.4252747+08:00;True|2021-12-25T19:38:33.6784042+08:00;True|2021-12-24T20:47:43.3471563+08:00;True|2021-12-24T20:14:57.6946814+08:00;True|2021-12-24T19:55:21.1843105+08:00;True|2021-12-24T19:49:54.6719726+08:00;True|2021-12-24T19:38:14.1180741+08:00;True|2021-12-22T13:51:37.1082523+08:00;True|2021-12-21T15:38:59.8015096+08:00;True|2021-12-21T15:29:54.8095063+08:00;False|2021-12-21T15:29:21.7006531+08:00;False|2021-12-21T15:16:18.2218025+08:00;False|2021-12-21T15:11:38.1215841+08:00;False|2021-12-21T15:08:27.0590078+08:00;True|2021-12-10T14:12:36.4065298+08:00;True|2021-12-10T13:54:03.4921778+08:00;True|2021-12-10T13:25:49.0439086+08:00;True|2021-12-10T13:19:58.9494477+08:00;True|2021-12-10T13:10:45.3929017+08:00;True|2021-12-10T11:06:53.2416794+08:00;True|2021-12-07T17:23:28.9380484+08:00;True|2021-12-07T17:13:52.4384814+08:00;True|2021-12-07T16:39:49.2020208+08:00;True|2021-12-07T15:18:20.9024533+08:00;True|2021-12-07T15:07:35.4428035+08:00;True|2021-12-07T15:01:02.0445043+08:00;True|2021-12-07T14:50:08.9019705+08:00;True|2021-12-07T14:34:50.4993666+08:00;False|2021-12-07T14:32:56.0408332+08:00;True|2021-12-06T17:11:41.4004606+08:00;True|2021-12-06T16:48:07.6029757+08:00;True|2021-12-06T13:46:35.9437718+08:00;True|2021-12-06T13:45:07.6622615+08:00;True|2021-12-06T11:25:04.3483155+08:00;True|2021-12-06T11:18:24.5804187+08:00;True|2021-11-22T16:27:05.4241947+08:00;True|2021-11-22T13:40:17.6768280+08:00;True|2021-11-19T16:15:19.9085104+08:00;True|2021-11-09T10:34:21.1623512+08:00;True|2021-11-07T16:57:59.7380254+08:00;True|2021-11-07T16:53:47.4198852+08:00;True|2021-11-07T16:42:05.5096826+08:00;True|2021-11-07T16:37:21.0729013+08:00;True|2021-11-05T20:51:17.6170717+08:00;True|2021-11-05T20:35:14.6250333+08:00;True|2021-11-05T19:30:19.8374158+08:00;True|2021-11-05T19:22:46.2276569+08:00;True|2021-11-05T19:20:30.8253213+08:00;True|2021-11-05T19:16:45.7553310+08:00;True|2021-11-05T19:16:00.4532689+08:00;True|2021-11-05T19:12:25.9022478+08:00;False|2021-11-05T19:11:26.5753529+08:00;True|2021-11-05T19:09:30.0085433+08:00;True|2021-11-05T18:48:19.9395153+08:00;True|2021-11-05T18:45:34.3437897+08:00;True|2021-11-05T18:43:43.4558159+08:00;True|2021-11-05T18:40:40.9948500+08:00;True|2021-11-05T18:34:18.4440455+08:00;True|2021-11-05T15:54:51.6037132+08:00;True|2021-10-28T16:27:53.9728270+08:00;True|2021-10-28T16:03:59.5629998+08:00;True|2021-10-28T08:51:04.2549186+08:00;True|2021-10-27T15:14:53.5506098+08:00;True|2021-10-27T15:00:44.9100320+08:00;True|2021-10-27T13:14:46.7921647+08:00;True|2021-10-27T11:24:49.4550753+08:00;True|2021-10-27T10:10:10.3545125+08:00;True|2021-10-27T10:02:24.9248610+08:00;True|2021-10-27T09:59:40.3795897+08:00;True|2021-10-27T09:56:30.6629207+08:00;True|2021-10-27T09:10:48.3883432+08:00;True|2021-10-27T09:03:31.9191991+08:00;True|2021-10-27T08:59:59.7651159+08:00;True|2021-10-27T08:36:11.8620997+08:00;True|2021-10-27T08:26:40.2533014+08:00;True|2021-10-26T09:19:35.5674748+08:00;True|2021-10-26T09:17:17.6900747+08:00;True|2021-10-26T09:14:32.3999220+08:00;True|2021-10-25T15:08:21.2581763+08:00;True|2021-10-25T10:01:57.8524903+08:00;True|2021-10-25T09:28:51.6294879+08:00;True|2021-10-25T09:25:50.3373336+08:00;True|2021-10-25T09:23:37.0203978+08:00;True|2021-10-25T09:18:23.3380608+08:00;True|2021-10-25T09:15:10.5292071+08:00;True|2021-10-25T08:56:30.4632027+08:00;True|2021-10-25T08:50:11.4697392+08:00;True|2021-10-22T13:46:49.7207066+08:00;True|2021-10-22T10:06:33.3130089+08:00;True|2021-10-20T14:32:10.1235516+08:00;True|2021-10-20T14:16:18.6496291+08:00;True|2021-10-20T14:08:49.2443715+08:00;True|2021-10-20T14:05:14.6847950+08:00;True|2021-10-20T13:30:21.6057636+08:00;True|2021-10-20T10:55:22.2151716+08:00;True|2021-10-19T10:42:13.4198267+08:00;True|2021-10-19T10:01:41.0018108+08:00;True|2021-10-19T09:59:11.2127619+08:00;True|2021-10-19T09:54:04.8472874+08:00;True|2021-10-15T11:19:15.5327495+08:00;True|2021-10-15T11:17:41.0686485+08:00;True|2021-10-15T11:12:11.8295042+08:00;True|2021-10-15T10:33:31.5670079+08:00;True|2021-10-15T10:27:45.0815146+08:00;True|2021-10-14T14:51:28.5331025+08:00;True|2021-10-14T14:37:28.3276051+08:00;True|2021-10-14T14:23:39.0606792+08:00;True|2021-10-14T14:21:03.8140347+08:00;True|2021-10-13T10:31:10.6628977+08:00;True|2021-10-13T10:12:24.4238027+08:00;True|2021-10-13T08:47:43.9314486+08:00;True|2021-10-12T14:07:18.6065183+08:00;True|2021-10-12T10:34:10.1682362+08:00;True|2021-10-12T10:27:14.3073332+08:00;True|2021-10-12T10:22:08.0004619+08:00;True|2021-10-12T10:21:03.0275378+08:00;True|2021-10-12T10:11:54.9812692+08:00;True|2021-10-11T16:59:07.3568342+08:00;True|2021-10-11T16:53:14.2016138+08:00;True|2021-10-11T16:21:35.0133775+08:00;True|2021-10-11T15:34:19.5731935+08:00;True|2021-10-11T15:31:07.5780983+08:00;True|2021-10-11T15:06:47.1145237+08:00;True|2021-10-11T15:03:25.5000280+08:00;True|2021-10-11T10:12:57.6416898+08:00;True|2021-10-09T10:15:17.9235165+08:00;True|2021-10-09T10:13:51.3318441+08:00;True|2021-10-09T10:01:21.6661542+08:00;True|2021-10-09T09:58:41.9225837+08:00;True|2021-10-08T14:56:49.7935800+08:00;True|2021-10-08T14:35:41.4490063+08:00;True|2021-10-08T14:02:42.6990656+08:00;True|2021-09-29T15:48:55.1547397+08:00;True|2021-09-29T15:48:23.5567191+08:00;True|2021-09-27T16:17:35.7180978+08:00;True|2021-09-27T15:51:50.4240134+08:00;True|2021-09-23T20:55:27.3554447+08:00;True|2021-09-23T14:14:44.0572017+08:00;True|2021-09-23T13:51:56.2344673+08:00;True|2021-09-23T10:46:16.7417007+08:00;True|2021-09-23T10:42:23.2117537+08:00;True|2021-09-22T15:21:22.9615672+08:00;True|2021-09-22T14:23:32.7907754+08:00;True|2021-09-22T13:48:03.4780947+08:00;True|2021-09-22T11:05:24.5249356+08:00;True|2021-09-22T10:00:19.0962943+08:00;True|2021-09-22T09:30:26.2686514+08:00;True|2021-09-17T11:22:34.5692792+08:00;True|2021-09-16T16:11:27.5372277+08:00;True|2021-09-16T14:53:40.8396557+08:00;True|2021-09-16T14:32:29.7905500+08:00;True|2021-09-16T14:26:46.2224219+08:00;True|2021-09-16T10:32:24.4244440+08:00;True|2021-09-15T11:10:35.3529360+08:00;True|2021-09-15T11:08:30.0857376+08:00;True|2021-09-15T11:05:56.7191571+08:00;True|2021-09-14T01:24:39.8041136+08:00;True|2021-09-14T01:05:01.1593327+08:00;True|2021-09-14T00:44:14.7233198+08:00;True|2021-09-13T23:48:19.4506233+08:00;True|2021-09-13T20:30:31.3243872+08:00;True|2021-09-13T19:45:35.9108911+08:00;False|2021-09-13T19:44:59.2779092+08:00;True|2021-09-13T18:09:22.4994381+08:00;True|2021-09-10T14:18:27.5788854+08:00;True|2021-09-09T15:57:01.7407207+08:00;True|2021-09-09T15:49:34.2598998+08:00;True|2021-09-09T11:32:10.7853024+08:00;True|2021-09-09T11:10:48.6840025+08:00;True|2021-09-09T10:35:37.3883078+08:00;True|2021-09-07T14:11:49.8497588+08:00;True|2021-09-07T13:34:48.4693349+08:00;True|2021-09-06T14:33:48.7549675+08:00;True|2021-09-03T16:27:51.1888520+08:00;True|2021-09-03T16:19:35.9003465+08:00;True|2021-09-03T15:46:28.1828032+08:00;True|2021-09-03T15:34:21.9362871+08:00;True|2021-09-03T11:24:49.8749819+08:00;True|2021-09-03T11:21:17.8373159+08:00;True|2021-09-03T11:16:53.2208136+08:00;True|2021-09-03T11:12:23.9063804+08:00;True|2021-09-03T09:11:09.2435721+08:00;True|2021-09-02T11:16:15.1370453+08:00;True|2021-09-02T10:35:39.1171879+08:00;True|2021-09-01T10:17:09.4536285+08:00;True|2021-09-01T09:46:28.4581776+08:00;True|2021-08-31T08:54:26.8588887+08:00;True|2021-08-31T08:39:08.3685693+08:00;True|2021-08-30T17:11:56.8438985+08:00;True|2021-08-30T15:59:42.0820292+08:00;True|2021-08-30T15:45:18.1868510+08:00;True|2021-08-30T14:56:08.3958863+08:00;True|2021-08-30T14:37:11.5379830+08:00;True|2021-08-30T14:35:34.8775934+08:00;True|2021-08-30T14:24:36.5111821+08:00;True|2021-08-30T10:05:49.6945200+08:00;True|2021-08-30T10:03:28.4064538+08:00;True|2021-08-30T10:00:16.8360929+08:00;True|2021-08-30T09:56:09.4434379+08:00;True|2021-08-30T09:55:36.1725334+08:00;True|2021-08-30T09:52:04.8600054+08:00;True|2021-08-30T09:47:46.4225655+08:00;True|2021-08-30T09:45:20.4894962+08:00;False|2021-08-27T17:17:34.2646751+08:00;False|2021-08-27T16:01:21.2791979+08:00;False|2021-08-27T15:58:06.9667160+08:00;False|2021-08-27T15:38:37.4818036+08:00;False|2021-08-27T15:21:02.8863114+08:00;False|2021-08-27T15:20:28.6828668+08:00;True|2021-08-26T16:00:44.3162145+08:00;True|2021-08-26T08:57:31.3842587+08:00;True|2021-08-23T08:43:41.1549775+08:00;True|2021-08-22T09:24:12.7210871+08:00;True|2021-08-22T09:19:53.8300229+08:00;True|2021-08-20T20:00:52.0140407+08:00;True|2021-08-20T19:40:14.7712765+08:00;True|2021-08-19T17:37:54.9748049+08:00;True|2021-08-19T17:20:11.0515687+08:00;True|2021-08-19T16:12:35.4392809+08:00;True|2021-08-19T16:06:50.6204587+08:00;True|2021-08-19T16:03:53.0824286+08:00;True|2021-08-19T15:56:01.3498791+08:00;True|2021-08-19T10:18:50.8113630+08:00;True|2021-08-19T09:58:06.2784035+08:00;True|2021-08-19T09:56:54.0619777+08:00;True|2021-08-19T00:32:08.3503093+08:00;True|2021-08-19T00:11:18.3150227+08:00;True|2021-08-19T00:02:49.4827718+08:00;True|2021-08-18T23:54:45.4845900+08:00;True|2021-08-18T23:39:51.6147977+08:00;True|2021-08-18T23:16:42.7214379+08:00;True|2021-08-18T22:38:57.4681929+08:00;True|2021-08-18T21:41:58.7560707+08:00;True|2021-08-18T21:11:52.2369249+08:00;True|2021-08-18T21:01:49.5669106+08:00;True|2021-08-18T20:47:46.5352688+08:00;False|2021-08-18T20:46:36.7956141+08:00;False|2021-08-18T20:46:01.0502138+08:00;True|2021-08-18T19:39:12.8186242+08:00;False|2021-08-18T19:38:12.6839708+08:00;True|2021-08-18T19:15:51.4626694+08:00;True|2021-08-18T16:07:20.4350886+08:00;True|2021-08-18T14:29:41.7171934+08:00;True|2021-08-18T14:20:36.3647361+08:00;True|2021-08-16T09:08:58.3617662+08:00;True|2021-08-15T20:44:29.9214083+08:00;True|2021-08-15T20:36:17.0958549+08:00;True|2021-08-15T20:29:34.3879773+08:00;True|2021-08-15T20:23:47.4052038+08:00;True|2021-08-15T15:01:19.7830862+08:00;True|2021-08-15T12:15:18.3433782+08:00;True|2021-08-13T20:59:11.3947130+08:00;True|2021-08-06T22:49:09.9538339+08:00;True|2021-08-06T22:35:19.0418168+08:00;True|2021-08-06T20:29:47.4241975+08:00;True|2021-08-06T14:08:16.4791827+08:00;True|2021-08-06T13:59:28.9874611+08:00;True|2021-08-06T13:57:34.3723977+08:00;True|2021-08-06T13:36:03.4816652+08:00;True|2021-08-06T12:22:52.5055221+08:00;True|2021-08-06T09:31:58.1272499+08:00;True|2021-08-06T09:26:51.6310039+08:00;True|2021-08-06T09:24:22.2899244+08:00;True|2021-08-06T09:06:30.6477912+08:00;True|2021-08-06T09:00:55.5101612+08:00;True|2021-08-06T08:49:59.9616490+08:00;True|2021-08-06T08:45:18.8586902+08:00;True|2021-08-05T20:09:25.8861998+08:00;True|2021-08-04T19:14:27.2396953+08:00;True|2021-08-04T19:11:47.5849093+08:00;True|2021-08-04T16:42:54.0149043+08:00;True|2021-08-04T15:02:11.5056561+08:00;True|2021-08-04T14:58:37.1435509+08:00;True|2021-08-04T14:55:34.7380132+08:00;True|2021-08-04T14:47:42.5933921+08:00;True|2021-08-04T14:45:17.9911874+08:00;True|2021-08-04T13:52:20.9601351+08:00;True|2021-08-04T09:48:28.8796992+08:00;True|2021-08-03T18:14:13.1894998+08:00;True|2021-08-03T17:45:35.1349721+08:00;True|2021-08-03T17:21:52.6028977+08:00;True|2021-08-03T17:20:35.4423020+08:00;True|2021-08-03T17:03:33.1667669+08:00;True|2021-08-03T17:01:54.2656787+08:00;True|2021-08-03T17:00:22.2778374+08:00;True|2021-08-03T16:56:58.8902582+08:00;True|2021-08-03T15:02:21.8601533+08:00;True|2021-08-03T14:57:34.0186758+08:00;True|2021-08-03T14:28:47.2242515+08:00;True|2021-08-03T14:22:22.4554236+08:00;True|2021-08-03T14:21:51.1339715+08:00;True|2021-08-03T13:37:33.9697131+08:00;True|2021-08-03T13:28:29.7591095+08:00;True|2021-08-03T11:35:09.5118324+08:00;True|2021-08-03T11:11:23.3051573+08:00;True|2021-08-02T13:14:42.3663755+08:00;True|2021-07-30T22:50:19.9749878+08:00;True|2021-07-30T22:49:31.2150970+08:00;True|2021-07-28T19:12:05.8381075+08:00;True|2021-07-28T18:59:45.4808797+08:00;True|2021-07-28T18:15:58.8301509+08:00;True|2021-07-28T18:04:54.8613546+08:00;True|2021-07-28T17:53:48.6225611+08:00;True|2021-07-28T17:42:50.9171563+08:00;True|2021-07-28T17:17:16.3137677+08:00;True|2021-07-28T17:11:46.8925200+08:00;True|2021-07-28T16:28:27.6823943+08:00;True|2021-07-28T16:23:00.3385836+08:00;True|2021-07-28T09:57:55.4237411+08:00;True|2021-07-28T08:38:29.6691541+08:00;True|2021-07-27T23:16:32.0331671+08:00;True|2021-07-27T23:06:08.1947249+08:00;True|2021-07-27T23:05:58.4619176+08:00;True|2021-07-27T18:42:09.5358261+08:00;True|2021-07-27T18:30:04.8532823+08:00;True|2021-07-27T18:29:43.5775092+08:00;True|2021-07-27T15:16:49.8356224+08:00;True|2021-07-27T15:05:27.8453220+08:00;True|2021-07-27T14:59:15.9519440+08:00;True|2021-07-27T09:23:32.6111337+08:00;True|2021-07-27T08:27:41.6395353+08:00;True|2021-07-27T08:25:56.7378296+08:00;True|2021-07-26T11:18:46.0856966+08:00;True|2021-07-26T11:18:02.0751924+08:00;True|2021-07-26T11:13:49.6285395+08:00;True|2021-07-21T21:08:25.9898902+08:00;True|2021-07-21T20:09:26.2258104+08:00;True|2021-07-13T16:17:25.8407435+08:00;True|2021-07-13T13:46:13.4309531+08:00;True|2021-07-13T12:29:04.5082461+08:00;True|2021-06-29T13:55:01.6864637+08:00;True|2021-06-29T10:38:52.2206472+08:00;True|2021-06-29T10:10:13.1540749+08:00;True|2021-06-28T14:37:56.3853273+08:00;False|2021-06-28T14:36:57.5726124+08:00;True|2021-06-25T14:17:57.5196108+08:00;True|2021-06-25T13:56:38.9522535+08:00;True|2021-06-24T19:38:32.8766933+08:00;True|2021-06-24T18:26:35.6118833+08:00;True|2021-06-24T18:02:52.8136877+08:00;True|2021-06-24T17:48:49.5851948+08:00;True|2021-06-24T17:45:46.7527572+08:00;True|2021-06-24T15:05:20.1592723+08:00;True|2021-06-23T16:18:15.6814625+08:00;True|2021-06-23T16:05:24.6112343+08:00;True|2021-06-23T15:14:08.2489658+08:00;True|2021-06-23T13:52:58.6029788+08:00;True|2021-06-22T16:11:20.4726923+08:00;True|2021-06-22T16:04:53.7231389+08:00;True|2021-06-22T15:50:59.2583262+08:00;True|2021-06-22T15:38:15.3016140+08:00;True|2021-06-22T15:34:42.9185543+08:00;True|2021-06-22T15:21:55.1419108+08:00;True|2021-06-22T15:07:21.5357494+08:00;True|2021-06-22T15:03:35.0535733+08:00;True|2021-06-22T14:54:47.8802969+08:00;True|2021-06-22T11:19:38.7303011+08:00;True|2021-06-22T08:53:49.2882695+08:00;True|2021-06-22T08:47:54.8286530+08:00;True|2021-06-21T16:27:19.3017700+08:00;True|2021-06-21T15:32:28.7237952+08:00;True|2021-06-21T12:34:02.6329555+08:00;True|2021-06-21T12:24:17.5427495+08:00;True|2021-06-21T10:47:30.6423502+08:00;True|2021-06-21T08:43:20.3026558+08:00;True|2021-06-19T15:10:06.8335499+08:00;True|2021-06-18T15:37:29.5009930+08:00;True|2021-06-18T13:46:35.6283432+08:00;True|2021-06-18T10:00:37.1474954+08:00;True|2021-06-18T09:55:21.8551780+08:00;True|2021-06-18T09:22:27.8432927+08:00;True|2021-06-17T11:17:43.2166430+08:00;True|2021-06-17T09:24:09.8350403+08:00;True|2021-06-16T16:10:47.8564888+08:00;True|2021-06-16T16:04:09.8286582+08:00;True|2021-06-16T15:12:29.9427169+08:00;True|2021-06-16T14:58:45.6801892+08:00;True|2021-06-16T14:46:01.6873221+08:00;True|2021-06-16T11:02:06.1272477+08:00;True|2021-06-16T09:33:56.0223915+08:00;True|2021-06-16T08:50:07.6995413+08:00;True|2021-06-16T08:28:38.7692635+08:00;True|2021-06-16T01:04:19.6282474+08:00;True|2021-06-16T01:03:50.5058323+08:00;False|2021-06-16T01:02:15.3819672+08:00;False|2021-06-16T01:01:38.6171098+08:00;True|2021-06-16T00:34:54.9902044+08:00;True|2021-06-15T23:55:36.2003828+08:00;True|2021-06-15T22:47:17.2192750+08:00;True|2021-06-15T22:42:41.1512585+08:00;True|2021-06-15T22:38:01.7390462+08:00;True|2021-06-15T22:14:11.2060782+08:00;True|2021-06-15T22:12:27.0615357+08:00;True|2021-06-15T22:07:59.9280871+08:00;True|2021-06-15T22:04:21.5051427+08:00;True|2021-06-15T21:25:55.0099814+08:00;True|2021-06-15T19:13:51.3494172+08:00;True|2021-06-15T19:02:17.6844742+08:00;True|2021-06-15T18:47:37.1629411+08:00;False|2021-06-15T18:47:11.0828111+08:00;True|2021-06-15T18:38:26.6620668+08:00;True|2021-06-15T18:33:45.2069831+08:00;True|2021-06-15T18:24:52.0550838+08:00;True|2021-06-15T18:19:43.6999796+08:00;True|2021-06-15T18:08:17.2464506+08:00;True|2021-06-15T18:03:51.3952624+08:00;True|2021-06-15T18:01:20.6141766+08:00;True|2021-06-15T17:59:04.4479416+08:00;True|2021-06-15T17:41:44.6389379+08:00;True|2021-06-15T17:39:03.1565124+08:00;True|2021-06-15T17:34:41.0634638+08:00;True|2021-06-15T17:33:50.4853178+08:00;True|2021-06-15T17:25:38.5914037+08:00;True|2021-06-15T17:22:21.3611360+08:00;True|2021-06-15T17:16:49.4970813+08:00;True|2021-06-15T17:05:28.9389484+08:00;True|2021-06-15T16:52:54.6372199+08:00;True|2021-06-15T16:51:23.9081030+08:00;True|2021-06-15T16:45:40.6017997+08:00;True|2021-06-15T16:41:05.0218887+08:00;True|2021-06-15T16:38:02.8541862+08:00;True|2021-06-15T16:22:10.3118721+08:00;True|2021-06-15T16:12:11.1552506+08:00;True|2021-06-15T15:33:42.0100494+08:00;True|2021-06-15T15:28:39.7145659+08:00;True|2021-06-15T15:15:02.7939125+08:00;True|2021-06-15T14:49:14.2300396+08:00;True|2021-06-15T14:42:28.1198064+08:00;True|2021-06-15T13:30:12.7997686+08:00;True|2021-06-15T13:25:37.7284670+08:00;True|2021-06-15T13:23:43.6207813+08:00;False|2021-06-15T13:23:19.4190232+08:00;True|2021-06-15T13:16:38.5062674+08:00;True|2021-06-15T13:03:31.2055635+08:00;True|2021-06-15T12:58:43.1653215+08:00;True|2021-06-15T12:39:22.8442109+08:00;True|2021-06-15T12:35:09.1288556+08:00;False|2021-06-15T12:33:50.0723143+08:00;True|2021-06-15T11:28:01.9733727+08:00;True|2021-06-15T11:26:26.6569392+08:00;True|2021-06-15T11:22:43.0366435+08:00;True|2021-06-15T11:07:50.1610580+08:00;True|2021-06-15T10:32:59.1925931+08:00;True|2021-06-10T17:16:57.9552310+08:00;True|2021-06-10T16:44:42.2731836+08:00;True|2021-06-10T14:39:27.6745737+08:00;True|2021-06-10T12:15:05.1524413+08:00;True|2021-06-09T18:19:24.1005606+08:00;True|2021-06-09T17:56:09.5646288+08:00;True|2021-06-09T13:34:06.1882292+08:00;True|2021-06-09T13:29:54.5924933+08:00;True|2021-06-09T13:25:55.7520662+08:00;True|2021-06-09T13:07:47.6686811+08:00;True|2021-06-09T12:59:41.2595048+08:00;True|2021-06-09T12:45:27.1305548+08:00;True|2021-06-09T12:29:52.1418191+08:00;True|2021-06-09T12:24:12.7610588+08:00;True|2021-06-09T11:31:25.3409568+08:00;True|2021-06-09T09:57:44.4387175+08:00;True|2021-06-09T09:54:26.5161307+08:00;True|2021-06-09T09:14:14.7288045+08:00;True|2021-06-09T09:10:25.1812139+08:00;True|2021-06-09T08:46:21.6585123+08:00;True|2021-06-08T19:56:55.7192062+08:00;True|2021-06-08T19:52:59.0326821+08:00;True|2021-06-08T19:49:13.6274217+08:00;True|2021-06-08T19:09:22.1038939+08:00;True|2021-06-08T15:28:41.3716247+08:00;True|2021-06-08T15:26:47.2621178+08:00;True|2021-06-08T13:49:45.8936617+08:00;True|2021-06-08T13:43:18.8115502+08:00;True|2021-06-08T10:04:06.2200731+08:00;True|2021-06-08T09:17:10.0470792+08:00;True|2021-06-08T08:44:37.4395849+08:00;True|2021-06-08T00:01:09.3745613+08:00;True|2021-06-07T23:49:31.5196888+08:00;True|2021-06-07T23:41:00.8017855+08:00;True|2021-06-07T23:21:53.1371134+08:00;True|2021-06-07T23:01:27.5712153+08:00;True|2021-06-07T22:36:12.9274014+08:00;True|2021-06-07T22:23:00.6545134+08:00;True|2021-06-07T17:44:47.5686346+08:00;True|2021-06-07T17:17:01.3431233+08:00;True|2021-06-07T16:53:28.9989587+08:00;True|2021-06-07T16:41:10.4975607+08:00;True|2021-06-07T14:21:06.8176477+08:00;True|2021-06-07T14:10:39.0355659+08:00;True|2021-06-07T12:34:31.4562732+08:00;True|2021-06-07T12:28:44.9629488+08:00;True|2021-06-07T10:30:26.9387988+08:00;True|2021-06-07T09:12:14.7658099+08:00;True|2021-06-07T08:37:19.6353792+08:00;True|2021-06-07T08:35:25.2031954+08:00;True|2021-06-05T07:07:32.0541266+08:00;True|2021-06-05T06:44:35.9475270+08:00;True|2021-06-05T06:37:27.4595197+08:00;True|2021-06-05T06:26:59.7663998+08:00;True|2021-06-05T05:43:12.8699318+08:00;True|2021-06-04T17:00:41.2426007+08:00;True|2021-06-04T16:08:03.8078072+08:00;True|2021-06-04T15:47:21.6412616+08:00;True|2021-06-04T15:21:02.4239800+08:00;True|2021-06-04T15:20:37.8641854+08:00;True|2021-06-04T13:38:51.5088395+08:00;True|2021-06-04T10:20:01.7784282+08:00;True|2021-06-04T10:13:50.3548857+08:00;True|2021-06-04T10:11:25.5017821+08:00;True|2021-06-04T10:09:51.6792228+08:00;True|2021-06-04T10:02:39.5851057+08:00;True|2021-06-04T09:30:40.4495494+08:00;True|2021-06-03T13:16:36.0317546+08:00;True|2021-06-03T13:12:47.0402047+08:00;True|2021-06-02T14:37:08.9683351+08:00;True|2021-06-02T14:10:15.7439829+08:00;True|2021-06-02T13:59:46.5841931+08:00;True|2021-06-02T13:25:18.7962660+08:00;True|2021-06-02T13:23:16.2261980+08:00;True|2021-06-01T15:37:32.2495085+08:00;True|2021-06-01T15:21:01.2856122+08:00;True|2021-06-01T15:13:36.7262365+08:00;True|2021-06-01T15:10:26.8905629+08:00;True|2021-06-01T14:56:17.5231551+08:00;True|2021-06-01T14:38:39.7895927+08:00;True|2021-06-01T14:23:12.3265287+08:00;True|2021-03-01T09:11:31.3226422+08:00;True|2021-05-26T14:54:56.9426462+08:00;True|2021-05-26T13:57:33.7780451+08:00;True|2021-05-26T13:39:02.8043358+08:00;True|2021-02-25T16:01:40.2917200+08:00;True|2021-02-25T15:49:46.6681205+08:00;True|2021-02-25T15:16:30.9372640+08:00;True|2021-05-25T13:10:21.7831921+08:00;True|2021-05-25T11:21:38.5224475+08:00;True|2021-05-25T11:12:52.0637175+08:00;True|2021-05-25T11:02:18.4164663+08:00;True|2021-05-25T10:52:06.8998521+08:00;True|2021-05-25T10:50:45.0929606+08:00;True|2021-05-25T10:45:54.1498313+08:00;True|2021-05-25T10:39:27.8602249+08:00;True|2021-05-25T10:34:49.5771162+08:00;True|2021-05-25T10:17:30.3009163+08:00;True|2021-05-25T10:14:03.8512581+08:00;True|2021-05-25T10:05:33.4343836+08:00;True|2021-05-24T17:01:23.3221168+08:00;True|2021-05-24T10:11:24.0197347+08:00;False|2021-05-24T10:11:07.6338995+08:00;</History> </PropertyGroup> <ItemGroup> <File Include="apiapp.json"> @@ -20,12 +20,12 @@ <File Include="bin/BLL.dll"> <publishTime>11/09/2022 16:02:08</publishTime> <publishTime>11/02/2022 22:03:01</publishTime> - <publishTime>12/23/2022 17:06:23</publishTime> + <publishTime>01/10/2023 16:52:41</publishTime> </File> <File Include="bin/BLL.pdb"> <publishTime>11/09/2022 16:02:08</publishTime> <publishTime>11/02/2022 22:03:01</publishTime> - <publishTime>12/23/2022 17:06:23</publishTime> + <publishTime>01/10/2023 16:52:41</publishTime> </File> <File Include="bin/BouncyCastle.Crypto.dll"> <publishTime>12/17/2020 21:32:28</publishTime> @@ -33,12 +33,12 @@ <File Include="bin/DAL.dll"> <publishTime>11/09/2022 16:02:06</publishTime> <publishTime>11/02/2022 22:02:58</publishTime> - <publishTime>12/23/2022 17:06:19</publishTime> + <publishTime>01/10/2023 16:52:37</publishTime> </File> <File Include="bin/DAL.pdb"> <publishTime>11/09/2022 16:02:06</publishTime> <publishTime>11/02/2022 22:02:58</publishTime> - <publishTime>12/23/2022 17:06:19</publishTime> + <publishTime>01/10/2023 16:52:37</publishTime> </File> <File Include="bin/Dapper.dll"> <publishTime>07/22/2016 14:52:40</publishTime> @@ -46,12 +46,12 @@ <File Include="bin/DBUtility.dll"> <publishTime>11/02/2022 22:02:56</publishTime> <publishTime>11/15/2022 13:55:23</publishTime> - <publishTime>12/23/2022 17:06:06</publishTime> + <publishTime>01/10/2023 16:52:27</publishTime> </File> <File Include="bin/DBUtility.pdb"> <publishTime>11/09/2022 16:01:58</publishTime> <publishTime>11/02/2022 22:02:56</publishTime> - <publishTime>12/23/2022 17:06:06</publishTime> + <publishTime>01/10/2023 16:52:27</publishTime> </File> <File Include="bin/Grpc.Core.Api.dll"> <publishTime>03/22/2022 05:17:26</publishTime> @@ -107,12 +107,12 @@ <File Include="bin/Model.dll"> <publishTime>11/09/2022 16:02:01</publishTime> <publishTime>11/02/2022 22:02:56</publishTime> - <publishTime>12/23/2022 17:06:08</publishTime> + <publishTime>01/10/2023 16:52:28</publishTime> </File> <File Include="bin/Model.pdb"> <publishTime>11/09/2022 16:02:01</publishTime> <publishTime>11/02/2022 22:02:56</publishTime> - <publishTime>12/23/2022 17:06:08</publishTime> + <publishTime>01/10/2023 16:52:28</publishTime> </File> <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> <publishTime>08/19/2021 09:44:01</publishTime> @@ -147,33 +147,33 @@ <File Include="bin/Pub_Class.dll"> <publishTime>11/09/2022 16:01:56</publishTime> <publishTime>11/02/2022 22:02:54</publishTime> - <publishTime>12/23/2022 17:05:56</publishTime> + <publishTime>01/10/2023 16:52:16</publishTime> </File> <File Include="bin/Pub_Class.pdb"> <publishTime>11/09/2022 16:01:56</publishTime> <publishTime>11/02/2022 22:02:54</publishTime> - <publishTime>12/23/2022 17:05:56</publishTime> + <publishTime>01/10/2023 16:52:16</publishTime> </File> <File Include="bin/Pub_Control.dll"> <publishTime>11/09/2022 16:01:57</publishTime> <publishTime>11/02/2022 22:02:55</publishTime> - <publishTime>12/23/2022 17:06:05</publishTime> + <publishTime>01/10/2023 16:52:17</publishTime> </File> <File Include="bin/Pub_Control.pdb"> <publishTime>11/09/2022 16:01:57</publishTime> <publishTime>11/02/2022 22:02:55</publishTime> - <publishTime>12/23/2022 17:06:05</publishTime> + <publishTime>01/10/2023 16:52:17</publishTime> </File> <File Include="bin/RestSharp.dll"> <publishTime>08/30/2012 22:22:50</publishTime> </File> <File Include="bin/SQLHelper.dll"> - <publishTime>12/23/2022 17:06:05</publishTime> + <publishTime>01/10/2023 16:52:26</publishTime> </File> <File Include="bin/SQLHelper.pdb"> <publishTime>11/09/2022 16:01:57</publishTime> <publishTime>11/02/2022 22:02:55</publishTime> - <publishTime>12/23/2022 17:06:05</publishTime> + <publishTime>01/10/2023 16:52:26</publishTime> </File> <File Include="bin/stdole.dll"> <publishTime>05/09/2021 13:35:37</publishTime> @@ -286,7 +286,7 @@ <File Include="bin/WebAPI.dll"> <publishTime>11/14/2022 11:23:59</publishTime> <publishTime>11/02/2022 22:03:04</publishTime> - <publishTime>12/23/2022 17:06:35</publishTime> + <publishTime>01/10/2023 16:53:00</publishTime> </File> <File Include="bin/WebAPI.dll.config"> <publishTime>12/15/2021 17:59:43</publishTime> @@ -294,7 +294,7 @@ <File Include="bin/WebAPI.pdb"> <publishTime>11/14/2022 11:23:59</publishTime> <publishTime>11/02/2022 22:03:04</publishTime> - <publishTime>12/23/2022 17:06:35</publishTime> + <publishTime>01/10/2023 16:53:00</publishTime> </File> <File Include="bin/WebGrease.dll"> <publishTime>07/17/2013 17:03:52</publishTime> @@ -423,67 +423,67 @@ <publishTime>08/19/2021 09:44:01</publishTime> </File> <File Include="Web References/WebS/ClsCLD_Customer_Model.datasource"> - <publishTime>12/23/2022 09:54:45</publishTime> + <publishTime>01/10/2023 11:14:47</publishTime> </File> <File Include="Web References/WebS/ClsCLD_Department_Model.datasource"> - <publishTime>12/23/2022 09:54:44</publishTime> + <publishTime>01/10/2023 11:14:46</publishTime> </File> <File Include="Web References/WebS/ClsCLD_Employee_Model.datasource"> - <publishTime>12/23/2022 09:54:45</publishTime> + <publishTime>01/10/2023 11:14:48</publishTime> </File> <File Include="Web References/WebS/ClsCLD_StockPlace_Model.datasource"> - <publishTime>12/23/2022 09:54:44</publishTime> + <publishTime>01/10/2023 11:14:47</publishTime> </File> <File Include="Web References/WebS/ClsCLD_Supplier_Model.datasource"> - <publishTime>12/23/2022 09:54:45</publishTime> + <publishTime>01/10/2023 11:14:47</publishTime> </File> <File Include="Web References/WebS/ClsCLD_Warehouse_Model.datasource"> - <publishTime>12/23/2022 09:54:44</publishTime> + <publishTime>01/10/2023 11:14:46</publishTime> </File> <File Include="Web References/WebS/ClsGy_BadReason_Model.datasource"> - <publishTime>12/23/2022 09:54:46</publishTime> + <publishTime>01/10/2023 11:14:48</publishTime> </File> <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model_View.datasource"> - <publishTime>12/23/2022 09:54:49</publishTime> + <publishTime>01/10/2023 11:14:51</publishTime> </File> <File Include="Web References/WebS/ClsGy_Customer_Model.datasource"> - <publishTime>12/23/2022 09:54:47</publishTime> + <publishTime>01/10/2023 11:14:50</publishTime> </File> <File Include="Web References/WebS/ClsGy_Department_Model.datasource"> - <publishTime>12/23/2022 09:54:46</publishTime> + <publishTime>01/10/2023 11:14:48</publishTime> </File> <File Include="Web References/WebS/ClsGy_Employee_Model.datasource"> - <publishTime>12/23/2022 09:54:48</publishTime> + <publishTime>01/10/2023 11:14:50</publishTime> </File> <File Include="Web References/WebS/ClsGy_Group_Model.datasource"> - <publishTime>12/23/2022 09:54:47</publishTime> + <publishTime>01/10/2023 11:14:49</publishTime> </File> <File Include="Web References/WebS/ClsGy_Item30JiTai_Model.datasource"> - <publishTime>12/23/2022 09:54:46</publishTime> + <publishTime>01/10/2023 11:14:48</publishTime> </File> <File Include="Web References/WebS/ClsGy_Source_Model.datasource"> - <publishTime>12/23/2022 09:54:48</publishTime> + <publishTime>01/10/2023 11:14:50</publishTime> </File> <File Include="Web References/WebS/ClsGy_StockPlace_Model.datasource"> - <publishTime>12/23/2022 09:54:47</publishTime> + <publishTime>01/10/2023 11:14:49</publishTime> </File> <File Include="Web References/WebS/ClsGy_Supplier_Model.datasource"> - <publishTime>12/23/2022 09:54:48</publishTime> + <publishTime>01/10/2023 11:14:50</publishTime> </File> <File Include="Web References/WebS/ClsGy_Warehouse_Model.datasource"> - <publishTime>12/23/2022 09:54:46</publishTime> + <publishTime>01/10/2023 11:14:49</publishTime> </File> <File Include="Web References/WebS/ClsKf_ICStockBill_Mould.datasource"> - <publishTime>12/23/2022 09:54:44</publishTime> + <publishTime>01/10/2023 11:14:46</publishTime> </File> <File Include="Web References/WebS/ClsKf_ICStockBill_WMS.datasource"> - <publishTime>12/23/2022 09:54:49</publishTime> + <publishTime>01/10/2023 11:14:51</publishTime> </File> <File Include="Web References/WebS/Reference.cs"> <publishTime>12/20/2021 13:19:56</publishTime> </File> <File Include="Web References/WebS/Reference.map"> - <publishTime>12/23/2022 09:54:38</publishTime> + <publishTime>01/10/2023 11:14:41</publishTime> </File> <File Include="Web References/WebS/WebService1.disco"> <publishTime>12/20/2021 13:19:56</publishTime> @@ -494,7 +494,7 @@ <File Include="Web.config"> <publishTime>11/14/2022 11:24:08</publishTime> <publishTime>11/02/2022 22:03:20</publishTime> - <publishTime>12/23/2022 17:06:49</publishTime> + <publishTime>01/10/2023 16:53:09</publishTime> </File> </ItemGroup> </Project> \ No newline at end of file diff --git a/WebAPI/Web References/WebS/Reference.cs b/WebAPI/Web References/WebS/Reference.cs index 660adf7..c53e4a1 100644 --- a/WebAPI/Web References/WebS/Reference.cs +++ b/WebAPI/Web References/WebS/Reference.cs @@ -35,16 +35,6 @@ [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsGy_BarCodeBill_WMS_Model))] public partial class WebService1 : System.Web.Services.Protocols.SoapHttpClientProtocol { - private System.Threading.SendOrPostCallback set_SavePonderationBillMain_Temp_BarCode_BillCheckOperationCompleted; - - private System.Threading.SendOrPostCallback get_CheckTypeByBarCode_BillCheckOperationCompleted; - - private System.Threading.SendOrPostCallback GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted; - - private System.Threading.SendOrPostCallback set_UpdateTemp_BillCheckOperationCompleted; - - private System.Threading.SendOrPostCallback GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted; - private System.Threading.SendOrPostCallback getDataSetByMasterSQLOperationCompleted; private System.Threading.SendOrPostCallback getCheckOpenOperationCompleted; @@ -246,6 +236,14 @@ private System.Threading.SendOrPostCallback set_SavePonderationBillMain_Temp_BarCode_MoveStockBillCheckOperationCompleted; private System.Threading.SendOrPostCallback set_SaveProcReportMoveBill_CLD_NewOperationCompleted; + + private System.Threading.SendOrPostCallback get_CheckTypeByBarCode_BillCheckOperationCompleted; + + private System.Threading.SendOrPostCallback GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted; + + private System.Threading.SendOrPostCallback set_UpdateTemp_BillCheckOperationCompleted; + + private System.Threading.SendOrPostCallback GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted; private System.Threading.SendOrPostCallback set_SaveProcReportMoveBill_MoveStockOperationCompleted; @@ -1128,21 +1126,6 @@ } /// <remarks/> - public event set_SavePonderationBillMain_Temp_BarCode_BillCheckCompletedEventHandler set_SavePonderationBillMain_Temp_BarCode_BillCheckCompleted; - - /// <remarks/> - public event get_CheckTypeByBarCode_BillCheckCompletedEventHandler get_CheckTypeByBarCode_BillCheckCompleted; - - /// <remarks/> - public event GetKf_PonderationBillMain_Temp_BillCheckCompletedEventHandler GetKf_PonderationBillMain_Temp_BillCheckCompleted; - - /// <remarks/> - public event set_UpdateTemp_BillCheckCompletedEventHandler set_UpdateTemp_BillCheckCompleted; - - /// <remarks/> - public event GetKf_PonderationBillMain_TempList_BillCheckCompletedEventHandler GetKf_PonderationBillMain_TempList_BillCheckCompleted; - - /// <remarks/> public event getDataSetByMasterSQLCompletedEventHandler getDataSetByMasterSQLCompleted; /// <remarks/> @@ -1444,6 +1427,18 @@ /// <remarks/> public event set_SaveProcReportMoveBill_CLD_NewCompletedEventHandler set_SaveProcReportMoveBill_CLD_NewCompleted; + + /// <remarks/> + public event get_CheckTypeByBarCode_BillCheckCompletedEventHandler get_CheckTypeByBarCode_BillCheckCompleted; + + /// <remarks/> + public event GetKf_PonderationBillMain_Temp_BillCheckCompletedEventHandler GetKf_PonderationBillMain_Temp_BillCheckCompleted; + + /// <remarks/> + public event set_UpdateTemp_BillCheckCompletedEventHandler set_UpdateTemp_BillCheckCompleted; + + /// <remarks/> + public event GetKf_PonderationBillMain_TempList_BillCheckCompletedEventHandler GetKf_PonderationBillMain_TempList_BillCheckCompleted; /// <remarks/> public event set_SaveProcReportMoveBill_MoveStockCompletedEventHandler set_SaveProcReportMoveBill_MoveStockCompleted; @@ -2707,210 +2702,6 @@ /// <remarks/> public event GetSc_ICMOBillListCompletedEventHandler GetSc_ICMOBillListCompleted; - - /// <remarks/> - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool set_SavePonderationBillMain_Temp_BarCode_BillCheck(ClsGy_BarCodeBill_WMS_Model_View omodel_View, long HBillID, string HBillType, string HBillNo, string HMaker, long HWhID, long HSPID, double HQty, long HOWNERID, ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) { - object[] results = this.Invoke("set_SavePonderationBillMain_Temp_BarCode_BillCheck", new object[] { - omodel_View, - HBillID, - HBillType, - HBillNo, - HMaker, - HWhID, - HSPID, - HQty, - HOWNERID, - oSystemParameterMain, - sErrMsg}); - sErrMsg = ((string)(results[1])); - return ((bool)(results[0])); - } - - /// <remarks/> - public void set_SavePonderationBillMain_Temp_BarCode_BillCheckAsync(ClsGy_BarCodeBill_WMS_Model_View omodel_View, long HBillID, string HBillType, string HBillNo, string HMaker, long HWhID, long HSPID, double HQty, long HOWNERID, ClsXt_SystemParameterMain oSystemParameterMain, string sErrMsg) { - this.set_SavePonderationBillMain_Temp_BarCode_BillCheckAsync(omodel_View, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HOWNERID, oSystemParameterMain, sErrMsg, null); - } - - /// <remarks/> - public void set_SavePonderationBillMain_Temp_BarCode_BillCheckAsync(ClsGy_BarCodeBill_WMS_Model_View omodel_View, long HBillID, string HBillType, string HBillNo, string HMaker, long HWhID, long HSPID, double HQty, long HOWNERID, ClsXt_SystemParameterMain oSystemParameterMain, string sErrMsg, object userState) { - if ((this.set_SavePonderationBillMain_Temp_BarCode_BillCheckOperationCompleted == null)) { - this.set_SavePonderationBillMain_Temp_BarCode_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_SavePonderationBillMain_Temp_BarCode_BillCheckOperationCompleted); - } - this.InvokeAsync("set_SavePonderationBillMain_Temp_BarCode_BillCheck", new object[] { - omodel_View, - HBillID, - HBillType, - HBillNo, - HMaker, - HWhID, - HSPID, - HQty, - HOWNERID, - oSystemParameterMain, - sErrMsg}, this.set_SavePonderationBillMain_Temp_BarCode_BillCheckOperationCompleted, userState); - } - - private void Onset_SavePonderationBillMain_Temp_BarCode_BillCheckOperationCompleted(object arg) { - if ((this.set_SavePonderationBillMain_Temp_BarCode_BillCheckCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.set_SavePonderationBillMain_Temp_BarCode_BillCheckCompleted(this, new set_SavePonderationBillMain_Temp_BarCode_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// <remarks/> - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_CheckTypeByBarCode_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public ClsKf_ICStockBill_WMS get_CheckTypeByBarCode_BillCheck(string sBarCode, long HBillID, string HBillType, string HBillNo, string HMaker, long HWhID, long HSPID, double HQty, long HOWNERID, ref string sErrMsg) { - object[] results = this.Invoke("get_CheckTypeByBarCode_BillCheck", new object[] { - sBarCode, - HBillID, - HBillType, - HBillNo, - HMaker, - HWhID, - HSPID, - HQty, - HOWNERID, - sErrMsg}); - sErrMsg = ((string)(results[1])); - return ((ClsKf_ICStockBill_WMS)(results[0])); - } - - /// <remarks/> - public void get_CheckTypeByBarCode_BillCheckAsync(string sBarCode, long HBillID, string HBillType, string HBillNo, string HMaker, long HWhID, long HSPID, double HQty, long HOWNERID, string sErrMsg) { - this.get_CheckTypeByBarCode_BillCheckAsync(sBarCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HOWNERID, sErrMsg, null); - } - - /// <remarks/> - public void get_CheckTypeByBarCode_BillCheckAsync(string sBarCode, long HBillID, string HBillType, string HBillNo, string HMaker, long HWhID, long HSPID, double HQty, long HOWNERID, string sErrMsg, object userState) { - if ((this.get_CheckTypeByBarCode_BillCheckOperationCompleted == null)) { - this.get_CheckTypeByBarCode_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_CheckTypeByBarCode_BillCheckOperationCompleted); - } - this.InvokeAsync("get_CheckTypeByBarCode_BillCheck", new object[] { - sBarCode, - HBillID, - HBillType, - HBillNo, - HMaker, - HWhID, - HSPID, - HQty, - HOWNERID, - sErrMsg}, this.get_CheckTypeByBarCode_BillCheckOperationCompleted, userState); - } - - private void Onget_CheckTypeByBarCode_BillCheckOperationCompleted(object arg) { - if ((this.get_CheckTypeByBarCode_BillCheckCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.get_CheckTypeByBarCode_BillCheckCompleted(this, new get_CheckTypeByBarCode_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// <remarks/> - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetKf_PonderationBillMain_Temp_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public System.Data.DataSet GetKf_PonderationBillMain_Temp_BillCheck(long HInterID, string sBillType, string sWhere) { - object[] results = this.Invoke("GetKf_PonderationBillMain_Temp_BillCheck", new object[] { - HInterID, - sBillType, - sWhere}); - return ((System.Data.DataSet)(results[0])); - } - - /// <remarks/> - public void GetKf_PonderationBillMain_Temp_BillCheckAsync(long HInterID, string sBillType, string sWhere) { - this.GetKf_PonderationBillMain_Temp_BillCheckAsync(HInterID, sBillType, sWhere, null); - } - - /// <remarks/> - public void GetKf_PonderationBillMain_Temp_BillCheckAsync(long HInterID, string sBillType, string sWhere, object userState) { - if ((this.GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted == null)) { - this.GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetKf_PonderationBillMain_Temp_BillCheckOperationCompleted); - } - this.InvokeAsync("GetKf_PonderationBillMain_Temp_BillCheck", new object[] { - HInterID, - sBillType, - sWhere}, this.GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted, userState); - } - - private void OnGetKf_PonderationBillMain_Temp_BillCheckOperationCompleted(object arg) { - if ((this.GetKf_PonderationBillMain_Temp_BillCheckCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetKf_PonderationBillMain_Temp_BillCheckCompleted(this, new GetKf_PonderationBillMain_Temp_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// <remarks/> - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_UpdateTemp_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool set_UpdateTemp_BillCheck(long HBillID, string HBillNo, string HBillType, string HMaker, long HOWNERID, ref string sErrMsg) { - object[] results = this.Invoke("set_UpdateTemp_BillCheck", new object[] { - HBillID, - HBillNo, - HBillType, - HMaker, - HOWNERID, - sErrMsg}); - sErrMsg = ((string)(results[1])); - return ((bool)(results[0])); - } - - /// <remarks/> - public void set_UpdateTemp_BillCheckAsync(long HBillID, string HBillNo, string HBillType, string HMaker, long HOWNERID, string sErrMsg) { - this.set_UpdateTemp_BillCheckAsync(HBillID, HBillNo, HBillType, HMaker, HOWNERID, sErrMsg, null); - } - - /// <remarks/> - public void set_UpdateTemp_BillCheckAsync(long HBillID, string HBillNo, string HBillType, string HMaker, long HOWNERID, string sErrMsg, object userState) { - if ((this.set_UpdateTemp_BillCheckOperationCompleted == null)) { - this.set_UpdateTemp_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_UpdateTemp_BillCheckOperationCompleted); - } - this.InvokeAsync("set_UpdateTemp_BillCheck", new object[] { - HBillID, - HBillNo, - HBillType, - HMaker, - HOWNERID, - sErrMsg}, this.set_UpdateTemp_BillCheckOperationCompleted, userState); - } - - private void Onset_UpdateTemp_BillCheckOperationCompleted(object arg) { - if ((this.set_UpdateTemp_BillCheckCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.set_UpdateTemp_BillCheckCompleted(this, new set_UpdateTemp_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// <remarks/> - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetKf_PonderationBillMain_TempList_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public System.Data.DataSet GetKf_PonderationBillMain_TempList_BillCheck(string sHBillType, string sHMaker, long sHOWNERID) { - object[] results = this.Invoke("GetKf_PonderationBillMain_TempList_BillCheck", new object[] { - sHBillType, - sHMaker, - sHOWNERID}); - return ((System.Data.DataSet)(results[0])); - } - - /// <remarks/> - public void GetKf_PonderationBillMain_TempList_BillCheckAsync(string sHBillType, string sHMaker, long sHOWNERID) { - this.GetKf_PonderationBillMain_TempList_BillCheckAsync(sHBillType, sHMaker, sHOWNERID, null); - } - - /// <remarks/> - public void GetKf_PonderationBillMain_TempList_BillCheckAsync(string sHBillType, string sHMaker, long sHOWNERID, object userState) { - if ((this.GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted == null)) { - this.GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetKf_PonderationBillMain_TempList_BillCheckOperationCompleted); - } - this.InvokeAsync("GetKf_PonderationBillMain_TempList_BillCheck", new object[] { - sHBillType, - sHMaker, - sHOWNERID}, this.GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted, userState); - } - - private void OnGetKf_PonderationBillMain_TempList_BillCheckOperationCompleted(object arg) { - if ((this.GetKf_PonderationBillMain_TempList_BillCheckCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetKf_PonderationBillMain_TempList_BillCheckCompleted(this, new GetKf_PonderationBillMain_TempList_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } /// <remarks/> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/getDataSetByMasterSQL", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] @@ -8683,6 +8474,97 @@ if ((this.set_SaveProcReportMoveBill_CLD_NewCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.set_SaveProcReportMoveBill_CLD_NewCompleted(this, new set_SaveProcReportMoveBill_CLD_NewCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// <remarks/> + public void GetKf_PonderationBillMain_Temp_BillCheckAsync(long HInterID, string sBillType, string sWhere, object userState) { + if ((this.GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted == null)) { + this.GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetKf_PonderationBillMain_Temp_BillCheckOperationCompleted); + } + this.InvokeAsync("GetKf_PonderationBillMain_Temp_BillCheck", new object[] { + HInterID, + sBillType, + sWhere}, this.GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted, userState); + } + + private void OnGetKf_PonderationBillMain_Temp_BillCheckOperationCompleted(object arg) { + if ((this.GetKf_PonderationBillMain_Temp_BillCheckCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetKf_PonderationBillMain_Temp_BillCheckCompleted(this, new GetKf_PonderationBillMain_Temp_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// <remarks/> + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_UpdateTemp_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public bool set_UpdateTemp_BillCheck(long HBillID, string HBillNo, string HBillType, string HMaker, long HOWNERID, ref string sErrMsg) { + object[] results = this.Invoke("set_UpdateTemp_BillCheck", new object[] { + HBillID, + HBillNo, + HBillType, + HMaker, + HOWNERID, + sErrMsg}); + sErrMsg = ((string)(results[1])); + return ((bool)(results[0])); + } + + /// <remarks/> + public void set_UpdateTemp_BillCheckAsync(long HBillID, string HBillNo, string HBillType, string HMaker, long HOWNERID, string sErrMsg) { + this.set_UpdateTemp_BillCheckAsync(HBillID, HBillNo, HBillType, HMaker, HOWNERID, sErrMsg, null); + } + + /// <remarks/> + public void set_UpdateTemp_BillCheckAsync(long HBillID, string HBillNo, string HBillType, string HMaker, long HOWNERID, string sErrMsg, object userState) { + if ((this.set_UpdateTemp_BillCheckOperationCompleted == null)) { + this.set_UpdateTemp_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_UpdateTemp_BillCheckOperationCompleted); + } + this.InvokeAsync("set_UpdateTemp_BillCheck", new object[] { + HBillID, + HBillNo, + HBillType, + HMaker, + HOWNERID, + sErrMsg}, this.set_UpdateTemp_BillCheckOperationCompleted, userState); + } + + private void Onset_UpdateTemp_BillCheckOperationCompleted(object arg) { + if ((this.set_UpdateTemp_BillCheckCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.set_UpdateTemp_BillCheckCompleted(this, new set_UpdateTemp_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// <remarks/> + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetKf_PonderationBillMain_TempList_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public System.Data.DataSet GetKf_PonderationBillMain_TempList_BillCheck(string sHBillType, string sHMaker, long sHOWNERID) { + object[] results = this.Invoke("GetKf_PonderationBillMain_TempList_BillCheck", new object[] { + sHBillType, + sHMaker, + sHOWNERID}); + return ((System.Data.DataSet)(results[0])); + } + + /// <remarks/> + public void GetKf_PonderationBillMain_TempList_BillCheckAsync(string sHBillType, string sHMaker, long sHOWNERID) { + this.GetKf_PonderationBillMain_TempList_BillCheckAsync(sHBillType, sHMaker, sHOWNERID, null); + } + + /// <remarks/> + public void GetKf_PonderationBillMain_TempList_BillCheckAsync(string sHBillType, string sHMaker, long sHOWNERID, object userState) { + if ((this.GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted == null)) { + this.GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetKf_PonderationBillMain_TempList_BillCheckOperationCompleted); + } + this.InvokeAsync("GetKf_PonderationBillMain_TempList_BillCheck", new object[] { + sHBillType, + sHMaker, + sHOWNERID}, this.GetKf_PonderationBillMain_TempList_BillCheckOperationCompleted, userState); + } + + private void OnGetKf_PonderationBillMain_TempList_BillCheckOperationCompleted(object arg) { + if ((this.GetKf_PonderationBillMain_TempList_BillCheckCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetKf_PonderationBillMain_TempList_BillCheckCompleted(this, new GetKf_PonderationBillMain_TempList_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } @@ -46422,6 +46304,40 @@ /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] + public delegate void getDataSetByMasterSQLCompletedEventHandler(object sender, getDataSetByMasterSQLCompletedEventArgs e); + + /// <remarks/> + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class getDataSetByMasterSQLCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal getDataSetByMasterSQLCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// <remarks/> + public System.Data.DataSet Result { + get { + this.RaiseExceptionIfNecessary(); + return ((System.Data.DataSet)(this.results[0])); + } + } + + /// <remarks/> + public string sErrMsg { + get { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[1])); + } + } + } + + /// <remarks/> + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] public delegate void getCheckOpenCompletedEventHandler(object sender, getCheckOpenCompletedEventArgs e); /// <remarks/> @@ -48214,6 +48130,32 @@ get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); + } + } + } + + /// <remarks/> + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] + public delegate void get_BillSubTypeCompletedEventHandler(object sender, get_BillSubTypeCompletedEventArgs e); + + /// <remarks/> + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class get_BillSubTypeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal get_BillSubTypeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// <remarks/> + public System.Data.DataSet Result { + get { + this.RaiseExceptionIfNecessary(); + return ((System.Data.DataSet)(this.results[0])); } } } @@ -50246,6 +50188,32 @@ /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] + public delegate void GetKf_PonderationBillMain_TempList_BillCheckCompletedEventHandler(object sender, GetKf_PonderationBillMain_TempList_BillCheckCompletedEventArgs e); + + /// <remarks/> + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetKf_PonderationBillMain_TempList_BillCheckCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetKf_PonderationBillMain_TempList_BillCheckCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// <remarks/> + public System.Data.DataSet Result { + get { + this.RaiseExceptionIfNecessary(); + return ((System.Data.DataSet)(this.results[0])); + } + } + } + + /// <remarks/> + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] public delegate void set_SaveProcReportMoveBill_MoveStockCompletedEventHandler(object sender, set_SaveProcReportMoveBill_MoveStockCompletedEventArgs e); /// <remarks/> diff --git a/WebAPI/Web References/WebS/WebService1.wsdl b/WebAPI/Web References/WebS/WebService1.wsdl index c27315e..0499641 100644 --- a/WebAPI/Web References/WebS/WebService1.wsdl +++ b/WebAPI/Web References/WebS/WebService1.wsdl @@ -2,545 +2,6 @@ <wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> - <s:element name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="omodel_View" type="tns:ClsGy_BarCodeBill_WMS_Model_View" /> - <s:element minOccurs="1" maxOccurs="1" name="HBillID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HWhID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HSPID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HQty" type="s:double" /> - <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="oSystemParameterMain" type="tns:ClsXt_SystemParameterMain" /> - <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:complexType name="ClsGy_BarCodeBill_WMS_Model_View"> - <s:complexContent mixed="false"> - <s:extension base="tns:ClsGy_BarCodeBill_WMS_Model"> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="HMaterNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HMaterName" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HMaterModel" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HUnitName" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSupName" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HGroupName" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HDeptName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HErpClsID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HWHID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HSPID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HCusRelationNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HBarCodeStatus" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HWHName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HDate" type="s:dateTime" /> - <s:element minOccurs="1" maxOccurs="1" name="HInstructID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HInstructNo" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSeOrderBillID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HSeOrderBillNo" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HCheckerID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HAuxPropID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HAuxPropName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSTOCKORGID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HSourceQty" type="s:double" /> - <s:element minOccurs="0" maxOccurs="1" name="HBarCode_Pack" type="s:string" /> - </s:sequence> - </s:extension> - </s:complexContent> - </s:complexType> - <s:complexType name="ClsGy_BarCodeBill_WMS_Model"> - <s:sequence> - <s:element minOccurs="1" maxOccurs="1" name="HItemID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBarCode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HBatchNo" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HMaterID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HUnitID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBarCodeType" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HQty" type="s:double" /> - <s:element minOccurs="1" maxOccurs="1" name="HSupID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HGroupID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HMakeDate" type="s:dateTime" /> - <s:element minOccurs="0" maxOccurs="1" name="HRemark" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSourceInterID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HSourceEntryID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HSourceBillNo" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSourceBillType" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HPrintQty" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HDeptID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HinitQty" type="s:double" /> - <s:element minOccurs="0" maxOccurs="1" name="HMTONo" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HStopflag" type="s:boolean" /> - <s:element minOccurs="1" maxOccurs="1" name="HProduceDate" type="s:dateTime" /> - <s:element minOccurs="1" maxOccurs="1" name="HExpiryDate" type="s:dateTime" /> - </s:sequence> - </s:complexType> - <s:complexType name="ClsXt_SystemParameterMain"> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_SourceBillCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_UpdateSourceInterID" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MESFlag" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Cg_POInStockBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Cg_POInStockBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Cg_POInStockBill_BarCodeCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_SourceBillCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_AutoBarCode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_SourceBillCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_Display" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_SourceBillCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_SourceBillCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_SimpleMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_AutoBarCode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_AutoSavePOStockInBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_NoRefresh" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_Display" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_SimpleMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_Display" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBillCheck_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBillCheck_WHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBillCheck_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_FIFOList" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_SourceBarCodeCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_SimpleMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_AutoSavePOStockInBackBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MustQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MulSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_BillTypeOneScan" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_BatchNoCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MultilineCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MaterWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_SourceWHSPCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_SimpleMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_ERPStockCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_WMSStockCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_WMSStockCtl_ERPMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_SaveUpdateStock" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_MaterBarCodeDefQty" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_BatchBarCodeDefQty" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_SNBarCodeDefQty" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_CampanyName" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_OneKeyMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_BarCodeMustSameSourceBill" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_OneScanMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_UserByOrgRelation" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_MouldManagerCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_CloudMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="WMS_BillDateMode" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="BarCode_SourceQtyCtl" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="BarCode_PrintQty" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="BarCode_PrintQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="BarCode_UpdatePrintQtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_FullMoveCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_QtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_OneCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_FirstCheckOut" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_ProcessCheckCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_DeleteCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_LineBindCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_QtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_ProcessCheckOut" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_FirstCheckOut" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_DeleteCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="QC_NoPassProdCheckBill_QtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="QC_NoPassProdCheckBill_BadReasonQtyCtrl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="QC_NoPassProdCheckBill_DeleteCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_FIFOCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_FullMoveCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_QtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_OneCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_DeleteCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustOutBill_QtyCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustOutBill_DeleteCtl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_FirstCheckOut" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MESBeginWorkBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MESReturnWorkBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MESEndWorkBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MESStopWorkBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOBillWorkQtyStatus_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOBillQualityStatus_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MaterToSourceBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MaterToSourceBill_MouldLifeCtrl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MaterToSourceBill_MouldLifeCtrlType" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="OA_ErrMsgBackBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MESProceReportWorkBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="QC_FirstPieceCheckBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_SaveAutoAddnew" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_SaveAutoAddnew" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_SaveAutoAddnew" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustOutBill_SaveAutoAddnew" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_AutoCheck" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_SaveAutoAddnew" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_MouldLifeCtrl" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_MouldLifeCtrlType" type="s:string" /> - </s:sequence> - </s:complexType> - <s:element name="set_SavePonderationBillMain_Temp_BarCode_BillCheckResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="1" maxOccurs="1" name="set_SavePonderationBillMain_Temp_BarCode_BillCheckResult" type="s:boolean" /> - <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="get_CheckTypeByBarCode_BillCheck"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="sBarCode" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HBillID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HWhID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HSPID" type="s:long" /> - <s:element minOccurs="1" maxOccurs="1" name="HQty" type="s:double" /> - <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="get_CheckTypeByBarCode_BillCheckResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="get_CheckTypeByBarCode_BillCheckResult" type="tns:ClsKf_ICStockBill_WMS" /> - <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:complexType name="ClsKf_ICStockBill_WMS"> - <s:sequence> - <s:element minOccurs="1" maxOccurs="1" name="HItemID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBarType" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HWhID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HWhNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HWhName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSPFlag" type="s:boolean" /> - <s:element minOccurs="1" maxOccurs="1" name="HSPID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HSPNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSPName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSCWhID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HSCWhNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSCWhName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSCSPFlag" type="s:boolean" /> - <s:element minOccurs="1" maxOccurs="1" name="HSCSPID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HSCSPNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSCSPName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HDeptID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HDeptNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HDeptName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HSupID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HSupNumber" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSupName" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSourceBillNo" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HSourceBillType" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HOWNERNAME" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HCustom" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HMulSourceFlag" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HStockStyle" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HStockInOrgID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HStockInOrgName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HStockOutOrgID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HStockOutOrgName" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> - </s:sequence> - </s:complexType> - <s:element name="GetKf_PonderationBillMain_Temp_BillCheck"> - <s:complexType> - <s:sequence> - <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="sBillType" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="sWhere" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="GetKf_PonderationBillMain_Temp_BillCheckResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="GetKf_PonderationBillMain_Temp_BillCheckResult"> - <s:complexType> - <s:sequence> - <s:element ref="s:schema" /> - <s:any /> - </s:sequence> - </s:complexType> - </s:element> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="set_UpdateTemp_BillCheck"> - <s:complexType> - <s:sequence> - <s:element minOccurs="1" maxOccurs="1" name="HBillID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> - <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="set_UpdateTemp_BillCheckResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="1" maxOccurs="1" name="set_UpdateTemp_BillCheckResult" type="s:boolean" /> - <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="GetKf_PonderationBillMain_TempList_BillCheck"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="sHBillType" type="s:string" /> - <s:element minOccurs="0" maxOccurs="1" name="sHMaker" type="s:string" /> - <s:element minOccurs="1" maxOccurs="1" name="sHOWNERID" type="s:long" /> - </s:sequence> - </s:complexType> - </s:element> - <s:element name="GetKf_PonderationBillMain_TempList_BillCheckResponse"> - <s:complexType> - <s:sequence> - <s:element minOccurs="0" maxOccurs="1" name="GetKf_PonderationBillMain_TempList_BillCheckResult"> - <s:complexType> - <s:sequence> - <s:element ref="s:schema" /> - <s:any /> - </s:sequence> - </s:complexType> - </s:element> - </s:sequence> - </s:complexType> - </s:element> <s:element name="getDataSetByMasterSQL"> <s:complexType> <s:sequence> @@ -1243,6 +704,331 @@ </s:sequence> </s:complexType> </s:element> + <s:complexType name="ClsXt_SystemParameterMain"> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_SourceBillCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_UpdateSourceInterID" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_MESFlag" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Cg_POInStockBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Cg_POInStockBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Cg_POInStockBill_BarCodeCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_SourceBillCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBill_AutoBarCode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_SourceBillCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBill_Display" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_SourceBillCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_SourceBillCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_SimpleMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBill_AutoBarCode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_AutoSavePOStockInBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_NoRefresh" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBill_Display" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBill_SimpleMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateReplenishOutBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustReplenishOutBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBill_Display" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBillCheck_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBillCheck_WHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockBillCheck_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepOutBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_FIFOList" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MoveStockStepInBill_SourceBarCodeCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_POStockInBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_ProductInBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherInBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustInBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_MateOutBackBill_SimpleMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_SellOutBackBill_AutoSavePOStockInBackBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_OtherOutBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MustQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MulSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_BillTypeOneScan" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_BatchNoCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MultilineCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_MaterWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_SourceWHSPCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Kf_EntrustOutBackBill_SimpleMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_ERPStockCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_WMSStockCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_WMSStockCtl_ERPMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_SaveUpdateStock" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_MaterBarCodeDefQty" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_BatchBarCodeDefQty" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_SNBarCodeDefQty" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_CampanyName" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_OneKeyMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_BarCodeMustSameSourceBill" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_OneScanMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_UserByOrgRelation" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_MouldManagerCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_CloudMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="WMS_BillDateMode" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="BarCode_SourceQtyCtl" type="s:string" /> + <s:element minOccurs="1" maxOccurs="1" name="BarCode_PrintQty" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="BarCode_PrintQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="BarCode_UpdatePrintQtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_FullMoveCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_QtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_OneCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_FirstCheckOut" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_ProcessCheckCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_DeleteCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_LineBindCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_QtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_ProcessCheckOut" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_FirstCheckOut" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_DeleteCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="QC_NoPassProdCheckBill_QtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="QC_NoPassProdCheckBill_BadReasonQtyCtrl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="QC_NoPassProdCheckBill_DeleteCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_FIFOCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_FullMoveCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_QtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_OneCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_DeleteCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustOutBill_QtyCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustOutBill_DeleteCtl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOReportBill_FirstCheckOut" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MESBeginWorkBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MESReturnWorkBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MESEndWorkBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MESStopWorkBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOBillWorkQtyStatus_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_ICMOBillQualityStatus_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MaterToSourceBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MaterToSourceBill_MouldLifeCtrl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MaterToSourceBill_MouldLifeCtrlType" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="OA_ErrMsgBackBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MESProceReportWorkBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="QC_FirstPieceCheckBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationInBill_SaveAutoAddnew" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationOutBill_SaveAutoAddnew" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustInBill_SaveAutoAddnew" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="MES_StationEntrustOutBill_SaveAutoAddnew" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_AutoCheck" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_SaveAutoAddnew" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_MouldLifeCtrl" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="Sc_MouldProdOutBill_MouldLifeCtrlType" type="s:string" /> + </s:sequence> + </s:complexType> <s:element name="get_CheckTypeByBarCode_MulSourceBillResponse"> <s:complexType> <s:sequence> @@ -3162,7 +2948,122 @@ </s:sequence> </s:complexType> </s:element> - <s:element name="set_SaveProcReportMoveBill_CLD_New"> + <s:element name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="omodel_View" type="tns:ClsGy_BarCodeBill_WMS_Model_View" /> + <s:element minOccurs="1" maxOccurs="1" name="HBillID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> + <s:element minOccurs="1" maxOccurs="1" name="HWhID" type="s:long" /> + <s:element minOccurs="1" maxOccurs="1" name="HSPID" type="s:long" /> + <s:element minOccurs="1" maxOccurs="1" name="HQty" type="s:double" /> + <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="oSystemParameterMain" type="tns:ClsXt_SystemParameterMain" /> + <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="set_SavePonderationBillMain_Temp_BarCode_BillCheckResponse"> + <s:complexType> + <s:sequence> + <s:element minOccurs="1" maxOccurs="1" name="set_SavePonderationBillMain_Temp_BarCode_BillCheckResult" type="s:boolean" /> + <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="get_CheckTypeByBarCode_BillCheck"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="sBarCode" type="s:string" /> + <s:element minOccurs="1" maxOccurs="1" name="HBillID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> + <s:element minOccurs="1" maxOccurs="1" name="HWhID" type="s:long" /> + <s:element minOccurs="1" maxOccurs="1" name="HSPID" type="s:long" /> + <s:element minOccurs="1" maxOccurs="1" name="HQty" type="s:double" /> + <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="get_CheckTypeByBarCode_BillCheckResponse"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="get_CheckTypeByBarCode_BillCheckResult" type="tns:ClsKf_ICStockBill_WMS" /> + <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="GetKf_PonderationBillMain_Temp_BillCheck"> + <s:complexType> + <s:sequence> + <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="sBillType" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="sWhere" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="GetKf_PonderationBillMain_Temp_BillCheckResponse"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="GetKf_PonderationBillMain_Temp_BillCheckResult"> + <s:complexType> + <s:sequence> + <s:element ref="s:schema" /> + <s:any /> + </s:sequence> + </s:complexType> + </s:element> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="set_UpdateTemp_BillCheck"> + <s:complexType> + <s:sequence> + <s:element minOccurs="1" maxOccurs="1" name="HBillID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> + <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" /> + <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="set_UpdateTemp_BillCheckResponse"> + <s:complexType> + <s:sequence> + <s:element minOccurs="1" maxOccurs="1" name="set_UpdateTemp_BillCheckResult" type="s:boolean" /> + <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="GetKf_PonderationBillMain_TempList_BillCheck"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="sHBillType" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="sHMaker" type="s:string" /> + <s:element minOccurs="1" maxOccurs="1" name="sHOWNERID" type="s:long" /> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="GetKf_PonderationBillMain_TempList_BillCheckResponse"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="GetKf_PonderationBillMain_TempList_BillCheckResult"> + <s:complexType> + <s:sequence> + <s:element ref="s:schema" /> + <s:any /> + </s:sequence> + </s:complexType> + </s:element> + </s:sequence> + </s:complexType> + </s:element> + <s:element name="set_SaveProcReportMoveBill_MoveStock"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_ProductInBillMain" /> @@ -13037,36 +12938,6 @@ </s:element> </s:schema> </wsdl:types> - <wsdl:message name="set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapIn"> - <wsdl:part name="parameters" element="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheck" /> - </wsdl:message> - <wsdl:message name="set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapOut"> - <wsdl:part name="parameters" element="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheckResponse" /> - </wsdl:message> - <wsdl:message name="get_CheckTypeByBarCode_BillCheckSoapIn"> - <wsdl:part name="parameters" element="tns:get_CheckTypeByBarCode_BillCheck" /> - </wsdl:message> - <wsdl:message name="get_CheckTypeByBarCode_BillCheckSoapOut"> - <wsdl:part name="parameters" element="tns:get_CheckTypeByBarCode_BillCheckResponse" /> - </wsdl:message> - <wsdl:message name="GetKf_PonderationBillMain_Temp_BillCheckSoapIn"> - <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_Temp_BillCheck" /> - </wsdl:message> - <wsdl:message name="GetKf_PonderationBillMain_Temp_BillCheckSoapOut"> - <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_Temp_BillCheckResponse" /> - </wsdl:message> - <wsdl:message name="set_UpdateTemp_BillCheckSoapIn"> - <wsdl:part name="parameters" element="tns:set_UpdateTemp_BillCheck" /> - </wsdl:message> - <wsdl:message name="set_UpdateTemp_BillCheckSoapOut"> - <wsdl:part name="parameters" element="tns:set_UpdateTemp_BillCheckResponse" /> - </wsdl:message> - <wsdl:message name="GetKf_PonderationBillMain_TempList_BillCheckSoapIn"> - <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_TempList_BillCheck" /> - </wsdl:message> - <wsdl:message name="GetKf_PonderationBillMain_TempList_BillCheckSoapOut"> - <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_TempList_BillCheckResponse" /> - </wsdl:message> <wsdl:message name="getDataSetByMasterSQLSoapIn"> <wsdl:part name="parameters" element="tns:getDataSetByMasterSQL" /> </wsdl:message> @@ -13667,11 +13538,35 @@ <wsdl:message name="set_SavePonderationBillMain_Temp_BarCode_MoveStockBillCheckSoapOut"> <wsdl:part name="parameters" element="tns:set_SavePonderationBillMain_Temp_BarCode_MoveStockBillCheckResponse" /> </wsdl:message> - <wsdl:message name="set_SaveProcReportMoveBill_CLD_NewSoapIn"> - <wsdl:part name="parameters" element="tns:set_SaveProcReportMoveBill_CLD_New" /> + <wsdl:message name="set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapIn"> + <wsdl:part name="parameters" element="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheck" /> </wsdl:message> - <wsdl:message name="set_SaveProcReportMoveBill_CLD_NewSoapOut"> - <wsdl:part name="parameters" element="tns:set_SaveProcReportMoveBill_CLD_NewResponse" /> + <wsdl:message name="set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapOut"> + <wsdl:part name="parameters" element="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheckResponse" /> + </wsdl:message> + <wsdl:message name="get_CheckTypeByBarCode_BillCheckSoapIn"> + <wsdl:part name="parameters" element="tns:get_CheckTypeByBarCode_BillCheck" /> + </wsdl:message> + <wsdl:message name="get_CheckTypeByBarCode_BillCheckSoapOut"> + <wsdl:part name="parameters" element="tns:get_CheckTypeByBarCode_BillCheckResponse" /> + </wsdl:message> + <wsdl:message name="GetKf_PonderationBillMain_Temp_BillCheckSoapIn"> + <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_Temp_BillCheck" /> + </wsdl:message> + <wsdl:message name="GetKf_PonderationBillMain_Temp_BillCheckSoapOut"> + <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_Temp_BillCheckResponse" /> + </wsdl:message> + <wsdl:message name="set_UpdateTemp_BillCheckSoapIn"> + <wsdl:part name="parameters" element="tns:set_UpdateTemp_BillCheck" /> + </wsdl:message> + <wsdl:message name="set_UpdateTemp_BillCheckSoapOut"> + <wsdl:part name="parameters" element="tns:set_UpdateTemp_BillCheckResponse" /> + </wsdl:message> + <wsdl:message name="GetKf_PonderationBillMain_TempList_BillCheckSoapIn"> + <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_TempList_BillCheck" /> + </wsdl:message> + <wsdl:message name="GetKf_PonderationBillMain_TempList_BillCheckSoapOut"> + <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_TempList_BillCheckResponse" /> </wsdl:message> <wsdl:message name="set_SaveProcReportMoveBill_MoveStockSoapIn"> <wsdl:part name="parameters" element="tns:set_SaveProcReportMoveBill_MoveStock" /> @@ -16200,26 +16095,6 @@ <wsdl:part name="parameters" element="tns:GetSc_ICMOBillListResponse" /> </wsdl:message> <wsdl:portType name="WebService1Soap"> - <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> - <wsdl:input message="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapIn" /> - <wsdl:output message="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapOut" /> - </wsdl:operation> - <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> - <wsdl:input message="tns:get_CheckTypeByBarCode_BillCheckSoapIn" /> - <wsdl:output message="tns:get_CheckTypeByBarCode_BillCheckSoapOut" /> - </wsdl:operation> - <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> - <wsdl:input message="tns:GetKf_PonderationBillMain_Temp_BillCheckSoapIn" /> - <wsdl:output message="tns:GetKf_PonderationBillMain_Temp_BillCheckSoapOut" /> - </wsdl:operation> - <wsdl:operation name="set_UpdateTemp_BillCheck"> - <wsdl:input message="tns:set_UpdateTemp_BillCheckSoapIn" /> - <wsdl:output message="tns:set_UpdateTemp_BillCheckSoapOut" /> - </wsdl:operation> - <wsdl:operation name="GetKf_PonderationBillMain_TempList_BillCheck"> - <wsdl:input message="tns:GetKf_PonderationBillMain_TempList_BillCheckSoapIn" /> - <wsdl:output message="tns:GetKf_PonderationBillMain_TempList_BillCheckSoapOut" /> - </wsdl:operation> <wsdl:operation name="getDataSetByMasterSQL"> <wsdl:input message="tns:getDataSetByMasterSQLSoapIn" /> <wsdl:output message="tns:getDataSetByMasterSQLSoapOut" /> @@ -16620,9 +16495,25 @@ <wsdl:input message="tns:set_SavePonderationBillMain_Temp_BarCode_MoveStockBillCheckSoapIn" /> <wsdl:output message="tns:set_SavePonderationBillMain_Temp_BarCode_MoveStockBillCheckSoapOut" /> </wsdl:operation> - <wsdl:operation name="set_SaveProcReportMoveBill_CLD_New"> - <wsdl:input message="tns:set_SaveProcReportMoveBill_CLD_NewSoapIn" /> - <wsdl:output message="tns:set_SaveProcReportMoveBill_CLD_NewSoapOut" /> + <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> + <wsdl:input message="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapIn" /> + <wsdl:output message="tns:set_SavePonderationBillMain_Temp_BarCode_BillCheckSoapOut" /> + </wsdl:operation> + <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> + <wsdl:input message="tns:get_CheckTypeByBarCode_BillCheckSoapIn" /> + <wsdl:output message="tns:get_CheckTypeByBarCode_BillCheckSoapOut" /> + </wsdl:operation> + <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> + <wsdl:input message="tns:GetKf_PonderationBillMain_Temp_BillCheckSoapIn" /> + <wsdl:output message="tns:GetKf_PonderationBillMain_Temp_BillCheckSoapOut" /> + </wsdl:operation> + <wsdl:operation name="set_UpdateTemp_BillCheck"> + <wsdl:input message="tns:set_UpdateTemp_BillCheckSoapIn" /> + <wsdl:output message="tns:set_UpdateTemp_BillCheckSoapOut" /> + </wsdl:operation> + <wsdl:operation name="GetKf_PonderationBillMain_TempList_BillCheck"> + <wsdl:input message="tns:GetKf_PonderationBillMain_TempList_BillCheckSoapIn" /> + <wsdl:output message="tns:GetKf_PonderationBillMain_TempList_BillCheckSoapOut" /> </wsdl:operation> <wsdl:operation name="set_SaveProcReportMoveBill_MoveStock"> <wsdl:input message="tns:set_SaveProcReportMoveBill_MoveStockSoapIn" /> @@ -18311,51 +18202,6 @@ </wsdl:portType> <wsdl:binding name="WebService1Soap" type="tns:WebService1Soap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> - <soap:operation soapAction="http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_BillCheck" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> - <soap:operation soapAction="http://tempuri.org/get_CheckTypeByBarCode_BillCheck" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> - <soap:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_Temp_BillCheck" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="set_UpdateTemp_BillCheck"> - <soap:operation soapAction="http://tempuri.org/set_UpdateTemp_BillCheck" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="GetKf_PonderationBillMain_TempList_BillCheck"> - <soap:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_TempList_BillCheck" style="document" /> - <wsdl:input> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> <wsdl:operation name="getDataSetByMasterSQL"> <soap:operation soapAction="http://tempuri.org/getDataSetByMasterSQL" style="document" /> <wsdl:input> @@ -19256,8 +19102,44 @@ <soap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="set_SaveProcReportMoveBill_CLD_New"> - <soap:operation soapAction="http://tempuri.org/set_SaveProcReportMoveBill_CLD_New" style="document" /> + <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> + <soap:operation soapAction="http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_BillCheck" style="document" /> + <wsdl:input> + <soap:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> + <soap:operation soapAction="http://tempuri.org/get_CheckTypeByBarCode_BillCheck" style="document" /> + <wsdl:input> + <soap:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> + <soap:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_Temp_BillCheck" style="document" /> + <wsdl:input> + <soap:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="set_UpdateTemp_BillCheck"> + <soap:operation soapAction="http://tempuri.org/set_UpdateTemp_BillCheck" style="document" /> + <wsdl:input> + <soap:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="GetKf_PonderationBillMain_TempList_BillCheck"> + <soap:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_TempList_BillCheck" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> @@ -23057,51 +22939,6 @@ </wsdl:binding> <wsdl:binding name="WebService1Soap12" type="tns:WebService1Soap"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> - <soap12:operation soapAction="http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_BillCheck" style="document" /> - <wsdl:input> - <soap12:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap12:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> - <soap12:operation soapAction="http://tempuri.org/get_CheckTypeByBarCode_BillCheck" style="document" /> - <wsdl:input> - <soap12:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap12:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> - <soap12:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_Temp_BillCheck" style="document" /> - <wsdl:input> - <soap12:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap12:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="set_UpdateTemp_BillCheck"> - <soap12:operation soapAction="http://tempuri.org/set_UpdateTemp_BillCheck" style="document" /> - <wsdl:input> - <soap12:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap12:body use="literal" /> - </wsdl:output> - </wsdl:operation> - <wsdl:operation name="GetKf_PonderationBillMain_TempList_BillCheck"> - <soap12:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_TempList_BillCheck" style="document" /> - <wsdl:input> - <soap12:body use="literal" /> - </wsdl:input> - <wsdl:output> - <soap12:body use="literal" /> - </wsdl:output> - </wsdl:operation> <wsdl:operation name="getDataSetByMasterSQL"> <soap12:operation soapAction="http://tempuri.org/getDataSetByMasterSQL" style="document" /> <wsdl:input> @@ -24002,8 +23839,44 @@ <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="set_SaveProcReportMoveBill_CLD_New"> - <soap12:operation soapAction="http://tempuri.org/set_SaveProcReportMoveBill_CLD_New" style="document" /> + <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_BillCheck"> + <soap12:operation soapAction="http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_BillCheck" style="document" /> + <wsdl:input> + <soap12:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap12:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> + <soap12:operation soapAction="http://tempuri.org/get_CheckTypeByBarCode_BillCheck" style="document" /> + <wsdl:input> + <soap12:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap12:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> + <soap12:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_Temp_BillCheck" style="document" /> + <wsdl:input> + <soap12:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap12:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="set_UpdateTemp_BillCheck"> + <soap12:operation soapAction="http://tempuri.org/set_UpdateTemp_BillCheck" style="document" /> + <wsdl:input> + <soap12:body use="literal" /> + </wsdl:input> + <wsdl:output> + <soap12:body use="literal" /> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="GetKf_PonderationBillMain_TempList_BillCheck"> + <soap12:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_TempList_BillCheck" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> diff --git a/WebAPI/WebAPI.csproj b/WebAPI/WebAPI.csproj index 0ea7f1a..0d45260 100644 --- a/WebAPI/WebAPI.csproj +++ b/WebAPI/WebAPI.csproj @@ -369,6 +369,7 @@ <Compile Include="Controllers\BaseSet\Xt_grdAlignment_WMESController.cs" /> <Compile Include="Controllers\BaseSet\Xt_ORGANIZATIONSController.cs" /> <Compile Include="Controllers\BLL\Xt_AccountPeriodController.cs" /> + <Compile Include="Controllers\BLL\Xt_BillSubTypeController.cs" /> <Compile Include="Controllers\BLL\Xt_BillTypeController.cs" /> <Compile Include="Controllers\BLL\Xt_UserGroupController.cs" /> <Compile Include="Controllers\BLL\Xt_XtgnbController.cs" /> @@ -396,9 +397,18 @@ <Compile Include="Controllers\CJGL\Cj_StationEntrustOutBillController.cs" /> <Compile Include="Controllers\CJGL\Sc_WorkBillAutoSortBillMainController.cs" /> <Compile Include="Controllers\Gy_MateMouldController.cs" /> + <Compile Include="Controllers\MJGL\Sc_MouldDotCheckRuleBillController.cs" /> + <Compile Include="Controllers\MJGL\Sc_MouldLifeUseBillController.cs" /> + <Compile Include="Controllers\MJGL\Sc_MouldScrapRequestBillController.cs" /> + <Compile Include="Controllers\MJGL\Sc_MouldStatusChangeBillController.cs" /> <Compile Include="Controllers\Pay_ReportController.cs" /> <Compile Include="Controllers\SBGL\Sb_EquipSparepartsBillController.cs" /> <Compile Include="Controllers\SBGL\Sb_EquipSparepartsChangeBillController.cs" /> + <Compile Include="Controllers\SBGL\Sb_EquipStatusChangeBillController.cs" /> + <Compile Include="Controllers\SBGL\SBTC\Sb_EquipStockInCheckBillController.cs" /> + <Compile Include="Controllers\SBGL\SBTC\Sb_EquipWorkBeforeCheckBillController.cs" /> + <Compile Include="Controllers\SBGL\Sb_EquipWorkBeforeCheckSBillController.cs" /> + <Compile Include="Controllers\SBGL\Sb_EquipStockInCheckBillSController.cs" /> <Compile Include="Controllers\SCGL\Sc_ComplementGoodBill_ZXBZController.cs" /> <Compile Include="Controllers\SCGL\鏃ヨ鍒掔鐞哱DataHelper.cs" /> <Compile Include="Controllers\SCGL\鏃ヨ鍒掔鐞哱JIT_Cg_PODemandPlanBillController.cs" /> @@ -456,7 +466,9 @@ <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_COMMONCONTACTBillController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_CustLocationController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_DutyBillController.cs" /> + <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_EquipStatusController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_MatePriceSupController.cs" /> + <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_MouldStatusController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_OperatorController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_PaymentConditionListBillController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_RateTypeController.cs" /> @@ -467,6 +479,7 @@ <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_SOPBillListController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_StaffController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_StockCheckItemBillController.cs" /> + <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_StockPlace_Controller.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_StockStatusBillController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_SupplierContactBillController.cs" /> <Compile Include="Controllers\鍩虹璧勬枡\鍩虹璧勬枡\Gy_TaxMIXController.cs" /> @@ -906,10 +919,12 @@ <Folder Include="Views\Gy_ConkType\" /> <Folder Include="Views\Gy_CustLocation\" /> <Folder Include="Views\Gy_DutyBill\" /> + <Folder Include="Views\Gy_EquipStatus\" /> <Folder Include="Views\Gy_EquipType\" /> <Folder Include="Views\Gy_ICBomBill\" /> <Folder Include="Views\Gy_MateMould\" /> <Folder Include="Views\Gy_MatePriceSup\" /> + <Folder Include="Views\Gy_MouldStatus\" /> <Folder Include="Views\Gy_Operator\" /> <Folder Include="Views\Gy_PackType\" /> <Folder Include="Views\Gy_PaymentConditionListBill\" /> @@ -919,6 +934,7 @@ <Folder Include="Views\Gy_SettleStyle\" /> <Folder Include="Views\Gy_SOPBill\" /> <Folder Include="Views\Gy_Staff\" /> + <Folder Include="Views\Gy_StockPlace_\" /> <Folder Include="Views\Gy_StockStatusBill\" /> <Folder Include="Views\Gy_SupplierContactBill\" /> <Folder Include="Views\Gy_TaxMIXMain\" /> @@ -946,16 +962,24 @@ <Folder Include="Views\Sb_EquipRepairSendWorkBill\" /> <Folder Include="Views\Sb_EquipSparepartsBill\" /> <Folder Include="Views\Sb_EquipSparepartsChangeBill\" /> + <Folder Include="Views\Sb_EquipStatusChangeBill\" /> + <Folder Include="Views\Sb_EquipStockInCheckBill\" /> + <Folder Include="Views\Sb_EquipWorkBeforeCheckBill\" /> <Folder Include="Views\Sc_CallGoodsBackRequestBill\" /> <Folder Include="Views\Sc_ComplementGoodBill\" /> <Folder Include="Views\Sc_ComplementGoodBill_ZXBZ\" /> <Folder Include="Views\Sc_ComplementGoods\" /> <Folder Include="Views\Sc_JIT_ComplementGoodBill\" /> + <Folder Include="Views\Sc_MouldDotCheckRuleBill\" /> + <Folder Include="Views\Sc_MouldLifeUseBill\" /> <Folder Include="Views\Sc_MouldRepairOutBill\" /> <Folder Include="Views\Sc_MouldRepairSendWorkBill\" /> + <Folder Include="Views\Sc_MouldScrapRequestBill\" /> + <Folder Include="Views\Sc_MouldStatusChangeBill\" /> <Folder Include="Views\Sc_WorkBillAutoSortBillMain\" /> <Folder Include="Views\Sc_WorkBillSortBill\" /> <Folder Include="Views\Sc_WorkDemandPlanBill\" /> + <Folder Include="Views\Xt_BillSubType\" /> <Folder Include="Views\Xt_CheckFlowBill\" /> <Folder Include="Views\Xt_CheckItem\" /> <Folder Include="Views\Xt_grdAlignment_WMES\" /> -- Gitblit v1.9.1