From d34b37ef388bb384db07787df7f9856b5e410dd9 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期四, 06 六月 2024 15:28:29 +0800
Subject: [PATCH] 1.网页 增加 巡检单2 编辑模块 和 单据列表 模块; 2.生产计划排产 界面 , 增加 页签 缺料分析; 当 点击 日期的列名时, 页签 缺料分析 获取这一天的 缺料情况 复制一个 一模一样的 生产计划排产 界面出来, 命名为 半成品计划排产 。 菜单里 也增加出来。

---
 WebAPI/DbUntil/DataFormatUntil.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/WebAPI/DbUntil/DataFormatUntil.cs b/WebAPI/DbUntil/DataFormatUntil.cs
index 5779273..381cd8d 100644
--- a/WebAPI/DbUntil/DataFormatUntil.cs
+++ b/WebAPI/DbUntil/DataFormatUntil.cs
@@ -4,6 +4,7 @@
 using System.Linq;
 using System.Reflection;
 using System.Web;
+using Newtonsoft.Json;
 
 namespace WebAPI.DbUntil
 {
@@ -64,5 +65,28 @@
             }
             return entity;
         }
+
+        #region 杩斿洖sql褰卞搷琛屾暟
+        public static int BackRowCount(string sql,string tableName)
+        {
+            return new SQLHelper.ClsCN().RunProcReturn(sql, tableName).Tables[0].Rows.Count;
+        }
+        #endregion
+
+        #region 杩斿洖sql杩斿洖鐨勬暟鎹爣棰�
+        public static List<object> BackColTitle(DataSet ds)
+        {
+            List<object> columnNameList = new List<object>();
+            foreach (DataColumn col in ds.Tables[0].Columns)
+            {
+
+                Type dataType = col.DataType;
+                string ColmString = "{\"ColmName\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
+                columnNameList.Add(JsonConvert.DeserializeObject(ColmString));
+            }
+            return columnNameList;
+        }
+        #endregion
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1