From 32c0daf9a78039004bb6c39d578f7734f13d54b1 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期二, 10 十月 2023 10:54:47 +0800
Subject: [PATCH] 1.工单派发校验工价,工价未提前设置或设置部分,如果开关关闭时,不校验是否未设置 或者未设置全,工价复制表中都会写入,没有设置的工价就默认0 如果开关打开就必须要设置工价
---
VueWebApi/Controllers/AppAnalyticsController.cs | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/VueWebApi/Controllers/AppAnalyticsController.cs b/VueWebApi/Controllers/AppAnalyticsController.cs
index f10d71a..4e7b9d6 100644
--- a/VueWebApi/Controllers/AppAnalyticsController.cs
+++ b/VueWebApi/Controllers/AppAnalyticsController.cs
@@ -22,13 +22,15 @@
/// <summary>
/// App鐢熶骇鐪嬫澘
/// </summary>
+ /// <param name="stu_torgcode">缁勭粐缂栫爜</param>
+ /// <param name="stu_torgtypecode">缁勭粐绫诲瀷</param>
/// <param name="usercode">鐧诲綍浜哄憳</param>
/// <param name="Ratetime">鏃堕棿</param>
/// <param name="defecttype">缂洪櫡缁熻绫诲瀷</param>
/// <returns></returns>
[Route(template: "ProductionKanban")]
[HttpGet]
- public HttpResponseMessage ProductionKanban(string usercode, string Ratetime,string defecttype)
+ public HttpResponseMessage ProductionKanban(string stu_torgcode,string stu_torgtypecode,string usercode, string Ratetime,string defecttype)
{
string startopendate = ""; //寮�濮嬫椂闂�
string endclosedate = ""; //缁撴潫鏃堕棿
@@ -37,7 +39,7 @@
startopendate = Ratetime.Split('~')[0].ToString();
endclosedate = Ratetime.Split('~')[1].ToString();
}
- mes = AppAnalyticsBLL.ProductionKanban(usercode, startopendate, endclosedate, defecttype);
+ mes = AppAnalyticsBLL.ProductionKanban(stu_torgcode, stu_torgtypecode,usercode, startopendate, endclosedate, defecttype);
return TJson.toJson(mes);
}
#endregion
@@ -46,13 +48,15 @@
/// <summary>
/// App鐢熶骇杩涘害鐪嬫澘鍗曟嵁淇℃伅
/// </summary>
+ /// <param name="stu_torgcode">缁勭粐缂栫爜</param>
+ /// <param name="stu_torgtypecode">缁勭粐绫诲瀷</param>
/// <param name="ordertype">鍗曟嵁绫诲瀷(SO:閿�鍞鍗曘�丮O:鐢熶骇璁㈠崟銆丳O:鐢熶骇宸ュ崟)</param>
/// <param name="partcode">浜у搧淇℃伅(鍙涓�)</param>
/// <param name="Ratetime">鍗曟嵁鏃ユ湡鑼冨洿</param>
/// <returns></returns>
[Route(template: "ProductionScheduleKanban")]
[HttpGet]
- public HttpResponseMessage ProductionScheduleKanban(string ordertype, string partcode=null, string Ratetime=null)
+ public HttpResponseMessage ProductionScheduleKanban(string stu_torgcode, string stu_torgtypecode, string ordertype, string partcode=null, string Ratetime=null)
{
string startopendate = ""; //寮�濮嬫椂闂�
string endclosedate = ""; //缁撴潫鏃堕棿
@@ -61,7 +65,7 @@
startopendate = Ratetime.Split('~')[0].ToString();
endclosedate = Ratetime.Split('~')[1].ToString();
}
- mes = AppAnalyticsBLL.ProductionScheduleKanban(ordertype,partcode, startopendate, endclosedate);
+ mes = AppAnalyticsBLL.ProductionScheduleKanban(stu_torgcode, stu_torgtypecode,ordertype, partcode, startopendate, endclosedate);
return TJson.toJson(mes);
}
#endregion
--
Gitblit v1.9.3