From ed9db56a79756894ee8c997582b1ed797f379f18 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期四, 13 二月 2025 16:52:59 +0800
Subject: [PATCH] 1
---
WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 48 insertions(+), 4 deletions(-)
diff --git a/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs b/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs
index aa3b9a4..aad3df7 100644
--- a/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_ConkTypeController.cs
@@ -250,10 +250,7 @@
}
}
- /// <summary>
- /// 鍖呰鏂瑰紡鍒楄〃鍒犻櫎鍔熻兘
- /// </summary>
- /// <returns></returns>
+
[Route("DeltetGy_ConkType")]
[HttpGet]
public object DeltetGy_ConkType(string HItemID, string user)
@@ -339,5 +336,52 @@
}
}
+
+
+
+ [Route("Gy_ConkType/List_PDA")]
+ [HttpGet]
+ public object List_PDA(string sWhere, string user)
+ {
+ try
+ {
+ List<object> columnNameList = new List<object>();
+ if (sWhere != "" && sWhere != null)
+ {
+ sWhere = " and 绂佺敤鏍囧織='' and ( 鏁呴殰绫诲埆浠g爜 like '%" + sWhere + "%' or 鏁呴殰绫诲埆 like '%" + sWhere + "%' ) ";
+ }
+ else
+ {
+ sWhere = " and 绂佺敤鏍囧織='' ";
+ }
+ string sql1 = string.Format(@"select * from h_v_Gy_ConkTypeList where 1=1 ");
+ ds = oCN.RunProcReturn(sql1 + sWhere + " order by 鏁呴殰绫诲埆浠g爜 ", "h_v_Gy_ConkTypeList");
+
+ //娣诲姞鍒楀悕
+ 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;
+ }
+ }
+
+
}
}
\ No newline at end of file
--
Gitblit v1.9.1