From b210dfbde4b9a91fec598f203acaf6855d3a9acf Mon Sep 17 00:00:00 2001 From: zrg <z18737863051@163.com> Date: 星期五, 27 九月 2024 16:21:39 +0800 Subject: [PATCH] 取样单增加增加下拉框字段 送测类型 首件,实验,巡检 TestType varchar(50) 设备工艺参数趋势分析图,增加下拉框类型(手动输入,设备采集),人工输入:取设备工艺参数点检 模具保养计划修改时增加子表保存 --- WebAPI/Controllers/Sc_MouldRepairInBillListController.cs | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs index 44f3792..9b1d803 100644 --- a/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs +++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController.cs @@ -5102,7 +5102,7 @@ string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); string msg5 = sArray[3].ToString(); - + string msg6 = sArray[4].ToString(); string UserName = ""; ListModels oListModels = new ListModels(); @@ -5223,6 +5223,32 @@ oBill.DetailColl.Add(oItemSub); } + + //琛ㄤ綋鏁版嵁 + //鎸� },{鏉ユ媶鍒嗘暟缁� //鍘绘帀銆愬拰銆� + //濡傛灉鏄紪杈戝氨鍏佽淇濆瓨,鍚﹀垯涓嶅厑璁� + if (oBill.omodel.HInterID != 0) + { + msg6 = msg6.Substring(1, msg6.Length - 2); + msg6 = msg6.Replace("\\", ""); + msg6 = msg6.Replace("\n", ""); + List<Model.ClsSc_MouldMaintainPlanBillSub_Plan> lss = new List<Model.ClsSc_MouldMaintainPlanBillSub_Plan>(); + lss = oListModels.getObjectByJson_Sc_MouldMaintainPlanBillSub_Plan(msg6); + int l = 0; + foreach (Model.ClsSc_MouldMaintainPlanBillSub_Plan oItem in lss) + { + + l++; + oItem.HEntryID = l; + oItem.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); + oItem.HCloseType = false; //鍏抽棴绫诲瀷 + oItem.HSourceInterID = 0; // 婧愬崟涓诲唴鐮� + oItem.HSourceEntryID = 0; //婧愬崟瀛愬唴鐮� + oItem.HRelationQty = 0; //鍏宠仈鏁伴噺 + oBill.DetailCol2.Add(oItem); + } + } + //淇濆瓨 //淇濆瓨瀹屾瘯鍚庡鐞� bool bResult; -- Gitblit v1.9.1