From 385da37de94758dfe8befb0635307409869ec68a Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期二, 08 四月 2025 11:06:07 +0800 Subject: [PATCH] 还样获取取样单数据 --- WebAPI/Controllers/品质管理/检验取样还样单/QC_TakeSampleCheckBillController.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git "a/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs" "b/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs" index 9817ffe..765cea3 100644 --- "a/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs" +++ "b/WebAPI/Controllers/\345\223\201\350\264\250\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_TakeSampleCheckBillController.cs" @@ -1051,6 +1051,42 @@ } #endregion + #region 杩樻牱鑾峰彇鍙栨牱鍗曟暟鎹� + [Route("QC_TakeSampleCheckBill/Get_BackSampleList")] + [HttpGet] + public object Get_BackSampleList(string sWhere) + { + try + { + List<object> columnNameList = new List<object>(); + ds = oCN.RunProcReturn("select * from h_v_QC_TakeSampleCheckBillEdit where 1=1 "+ sWhere + " order by 鍗曟嵁鍙� desc", "h_v_QC_TakeSampleCheckBillList"); + + //娣诲姞鍒楀悕 + 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; + } + } + #endregion + #region 妫�楠岃繕鏍峰崟鍒楄〃 鏌ヨ [Route("QC_TakeSampleCheckBill/QC_BackSampleCheckBillMainList")] [HttpGet] -- Gitblit v1.9.1