From fbe33a615f1c4e798a0f8e58163e68c3ce789614 Mon Sep 17 00:00:00 2001
From: lg <123456>
Date: 星期四, 20 十一月 2025 10:17:49 +0800
Subject: [PATCH] 初始化标准版

---
 DevApp/Gs.DevApp/UserControl/ShowLogcs.cs |   30 +++++++++++++++++++++++++++---
 1 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs b/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs
index 1ef78f7..72aa9a3 100644
--- a/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs
+++ b/DevApp/Gs.DevApp/UserControl/ShowLogcs.cs
@@ -12,15 +12,34 @@
     {
 
         public string guidKey;
-        public ShowLogcs(string _guidKey)
+        public bool isLog;
+        public ShowLogcs(string _guidKey, bool _isLog = false)
         {
             this.guidKey = _guidKey;
+            this.isLog = _isLog;
             InitializeComponent();
+            if (isLog == true)
+            {
+                gridColumn1.Visible = true;
+                gridColumn2.Visible = true;
+                gridColumn1.VisibleIndex = 99;
+                gridColumn2.VisibleIndex = 100;
+                this.gridView1.RowHeight = 150;
+                gv_msg.Visible = false;
+                gv_userName.Visible = false;
+                gridView1.OptionsView.ShowAutoFilterRow = false;
+            }
+            else
+            {
+                gv_msg.Visible = true;
+                gv_userName.Visible = true;
+                this.gridView1.RowHeight = -1;
+                gridView1.OptionsView.ShowAutoFilterRow = true;
+            }
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) =>
             {
-
             }, null, false);
-            getPageList(1,999999);
+            getPageList(1, 999999);
         }
 
 
@@ -32,6 +51,11 @@
         {
             var _sbSqlWhere = new StringBuilder();
             _sbSqlWhere.Append(" and ABT_GUID='" + this.guidKey + "'");
+            //濡傛灉鏄棩蹇楃被锛屼粎浠呮樉绀烘棩蹇�
+            if (isLog == true)
+            {
+                _sbSqlWhere.Append(" and isnull(IS_ERP,0)=1");
+            }
             var pgq = new PageQueryModel(curPage, 999999, "OPERATION_TIME",
                 "desc", "", _sbSqlWhere.ToString());
             var json = JsonConvert.SerializeObject(pgq);

--
Gitblit v1.9.3