From df377dc2934889af29440735123e713a9c569a4b Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期一, 31 十月 2022 14:48:39 +0800
Subject: [PATCH] get 改 post
---
WebAPI/Controllers/Xt_grdAlignment_WMESController.cs | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/WebAPI/Controllers/Xt_grdAlignment_WMESController.cs b/WebAPI/Controllers/Xt_grdAlignment_WMESController.cs
index 19d0144..c0f49ba 100644
--- a/WebAPI/Controllers/Xt_grdAlignment_WMESController.cs
+++ b/WebAPI/Controllers/Xt_grdAlignment_WMESController.cs
@@ -55,13 +55,13 @@
public string HSortFlag;
public string HSelTotal;
public string HColumnWidth;
-
}
public class grdAlignmentSub
{
public string ColumnName;
public bool IsHide;
public string Alignment;
+ public string ColumnWidth;
}
[Route("Xt_grdAlignment_WMES/AddgrdAlignmentWMES")]
@@ -100,15 +100,16 @@
string user = sArray[4].ToString();
try
{
-
-
omdelMian = Newtonsoft.Json.JsonConvert.DeserializeObject<grdAlignment>(msg2);
omdelsub = Newtonsoft.Json.JsonConvert.DeserializeObject<List<grdAlignmentSub>>(msg3);
var HGridString = "";
for (int i = 0; i < omdelsub.Count; i++)
{
- HGridString += $"{(i+1)}|{(omdelsub[i].IsHide == true ? 1 : 0)}|{omdelsub[i].Alignment},";
+ var width = omdelsub[i].ColumnWidth;
+ if (string.IsNullOrEmpty(width) || DBUtility.ClsPub.isLong(width) == 0)
+ width = "120";
+ HGridString += $"{(i+1)}|{(omdelsub[i].IsHide == true ? 1 : 0)}|{omdelsub[i].Alignment}|{width},";
}
HGridString = HGridString.Substring(0, HGridString.Length - 1);
@@ -119,7 +120,6 @@
"," + (omdelMian.HFontSize == "" ? "0" : omdelMian.HFontSize) + ",0" +
",0,'" + omdelMian.HSortFlag + "','" + omdelMian.HSelTotal + "'" +
","+ (omdelMian.HColumnWidth == "" ? "0" : omdelMian.HColumnWidth) + ")");
-
objJsonResult.code = "1";
objJsonResult.count = 1;
@@ -136,7 +136,6 @@
return objJsonResult;
}
}
-
#endregion
}
}
\ No newline at end of file
--
Gitblit v1.9.1