From b445defcf7e9dad85032a8279cca29a2892d3089 Mon Sep 17 00:00:00 2001 From: zrg <z18737863051@163.com> Date: 星期四, 05 九月 2024 12:38:58 +0800 Subject: [PATCH] 修改生产报表查询方法,物料新增编辑增加事业部与项目保存字段 --- WebAPI/Controllers/生产管理/质量汇报单/Sc_QualityReportBillController.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git "a/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\350\264\250\351\207\217\346\261\207\346\212\245\345\215\225/Sc_QualityReportBillController.cs" "b/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\350\264\250\351\207\217\346\261\207\346\212\245\345\215\225/Sc_QualityReportBillController.cs" index 42b323e..dc96ce4 100644 --- "a/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\350\264\250\351\207\217\346\261\207\346\212\245\345\215\225/Sc_QualityReportBillController.cs" +++ "b/WebAPI/Controllers/\347\224\237\344\272\247\347\256\241\347\220\206/\350\264\250\351\207\217\346\261\207\346\212\245\345\215\225/Sc_QualityReportBillController.cs" @@ -1726,6 +1726,9 @@ public string HName; public DateTime HBeginDate; public DateTime HEndDate; + public string HProcName; + public string HEquipName; + public string HBactNo; } [Route("Sc_QualityReportBill/getSc_QualityReportBillDay")] [HttpGet] @@ -1744,7 +1747,7 @@ return objJsonResult; } ReportWorkDemandPlanBill Report = JsonConvert.DeserializeObject<ReportWorkDemandPlanBill>(sWhere); - ds = oCN.RunProcReturn($"exec h_p_Sc_StationOutBillMain '{Report.HBeginDate}','{Report.HEndDate}','{Report.HNumber}','{Report.HName}'", "h_p_Sc_StationOutBillMain"); + ds = oCN.RunProcReturn($"exec h_p_Sc_StationOutBillMain '{Report.HBeginDate}','{Report.HEndDate}','{Report.HNumber}','{Report.HName}','{Report.HProcName}','{Report.HEquipName}','{Report.HBactNo}'", "h_p_Sc_StationOutBillMain"); //娣诲姞鍒楀悕 foreach (DataColumn col in ds.Tables[0].Columns) @@ -1778,6 +1781,8 @@ public string HYear; public string HWorkCenter; public string HName; + public DateTime HBeginDate; + public DateTime HEndDate; } [Route("Sc_QualityReportBill/getSc_QualityReportBillMonth")] @@ -1797,7 +1802,7 @@ return objJsonResult; } ReportWorkDemandPlanBill1 Report = JsonConvert.DeserializeObject<ReportWorkDemandPlanBill1>(sWhere); - ds = oCN.RunProcReturn($"exec h_p_Sc_StationOutBillMonth '{Report.HYear}','{Report.HWorkCenter}','{Report.HName}'", "h_p_Sc_StationOutBillMonth"); + ds = oCN.RunProcReturn($"exec h_p_Sc_StationOutBillMonth '{Report.HYear}','{Report.HWorkCenter}','{Report.HName}', '{Report.HBeginDate}','{Report.HEndDate}'", "h_p_Sc_StationOutBillMonth"); //娣诲姞鍒楀悕 foreach (DataColumn col in ds.Tables[0].Columns) -- Gitblit v1.9.1