From e6e29a7240e6a0a45ae8ea5063ec4f1bfe0b1e06 Mon Sep 17 00:00:00 2001 From: Chunkit Yeung Date: Sat, 28 Jan 2023 21:37:58 +0800 Subject: [PATCH 1/4] updateMd --- README.md | 116 ++++++------------------------------------------------ 1 file changed, 11 insertions(+), 105 deletions(-) diff --git a/README.md b/README.md index 854a92a..56ffe48 100644 --- a/README.md +++ b/README.md @@ -55,63 +55,15 @@ # :open_file_folder: 系统结构: ```tree -TopSkyHotelManagerSystem -├─ JVNUI -│ └─ js -│ └─ parseUtil.js +EOM.Client.TopSkyHotelManagerSystem +├─ .git +├─ .gitignore +├─ EOM.Client.TopSkyHotelManagerSystem.sln +├─ FodyWeavers.xml ├─ LICENSE ├─ README.md -├─ SYS.Application -│ ├─ .gitignore -│ ├─ Business -│ ├─ Customer -│ ├─ Properties -│ ├─ Room -│ ├─ SYS.Application.csproj -│ ├─ SYS.Application.csproj.user -│ ├─ SYS.Application.csproj.vspscc -│ ├─ Worker -│ ├─ Zero -│ ├─ app.config -│ ├─ bin -│ ├─ bitbug_favicon (1).ico -│ ├─ obj -│ ├─ packages.config -│ └─ 基础核心类库jvncorelib(适用全平台).md ├─ SYS.Common -│ ├─ .gitignore -│ ├─ App.config -│ ├─ BaseDbContext.cs -│ ├─ DbContext.cs -│ ├─ DbContextOption.cs -│ ├─ HttpHelper.cs -│ ├─ Properties -│ ├─ RecordHelper -│ ├─ Repository -│ ├─ SYS.Common.csproj -│ ├─ SYS.Common.csproj.vspscc -│ ├─ bin -│ ├─ bitbug_favicon (1).ico -│ ├─ obj -│ └─ packages.config ├─ SYS.Core -│ ├─ .gitignore -│ ├─ App.config -│ ├─ Business -│ ├─ Customer -│ ├─ Properties -│ ├─ Resources -│ ├─ Room -│ ├─ SYS.Core.csproj -│ ├─ SYS.Core.csproj.user -│ ├─ SYS.Core.csproj.vspscc -│ ├─ Util -│ ├─ Worker -│ ├─ Zero -│ ├─ bin -│ ├─ bitbug_favicon (1).ico -│ ├─ obj -│ └─ packages.config ├─ SYS.FormUI │ ├─ .gitignore │ ├─ App.config @@ -121,48 +73,12 @@ TopSkyHotelManagerSystem │ ├─ AppUserControls │ ├─ FodyWeavers.xml │ ├─ FodyWeavers.xsd -│ ├─ Font │ ├─ Logo │ ├─ Program.cs │ ├─ Properties │ ├─ Resources -│ ├─ SYS.FormUI.csproj -│ ├─ SYS.FormUI.csproj.user -│ ├─ SYS.FormUI.csproj.vspscc -│ ├─ bi -│ ├─ bitbug_favicon (1).ico -│ ├─ bitbug_favicon.ico -│ ├─ icon -│ ├─ logo.ico -│ ├─ obj -│ ├─ packages.config -│ └─ 基础核心类库jvncorelib(适用全平台).md ├─ SYS.Library -│ ├─ .gitignore -│ ├─ MySql.Data.EntityFramework.dll -│ ├─ MySql.Data.dll -│ ├─ MySql.Web.dll -│ ├─ Newtonsoft.Json.dll -│ ├─ Newtonsoft.Json.xml -│ ├─ Properties -│ ├─ RequestHelper.dll -│ ├─ SYS.Application.dll -│ ├─ SYS.Application.xml -│ ├─ SYS.Common.dll -│ ├─ SYS.Core.dll -│ ├─ SYS.Core.xml -│ ├─ SYS.Library.csproj -│ ├─ SYS.Library.csproj.user -│ ├─ SYS.Library.csproj.vspscc -│ ├─ app.config -│ ├─ bin -│ ├─ bitbug_favicon (1).ico -│ ├─ kse.dll -│ └─ obj -├─ TSHotelManagerSystem.sln -├─ packages ├─ 数据库脚本 -├─ 版本迭代功能 ├─ 项目效果图 └─ 项目相关文档 ``` @@ -193,30 +109,20 @@ TopSkyHotelManagerSystem # :family: 项目作者: -**杨俊杰(即本账号,项目组长,核心代码编写和后期项目整合)** - -**熊越明(开发,项目代码编写)** +**原创团队:杨俊杰、熊越明、宾华安、张家杰** -**宾华安(数据库,提供数据库管理支持)** - -**张黔广(开发,APP前后端开发)** - -**张家杰(开发,代码编写开发)** - -**咖啡与网络(Java&Net)(后期维护团队)** +**后期维护团队:易开元(Easy Open Meta)** # :computer: 项目运行部署: -**下载并安装Microsoft Visual Studio Professional 2017及以上版本,并通过下载Zip包解压,打开.sln后缀格式文件运行。** +**下载并安装Microsoft Visual Studio Professional 2019及以上版本,并通过下载Zip包解压,打开.sln后缀格式文件运行。** # :inbox_tray: 数据库运行部署(本地): -**作者及开发团队强烈建议使用MySQL/PostgreSQL数据库,安装MySQL/PostgreSQL数据库并开启服务,通过可视化管理工具对数据库进行建立,可通过打开执行数据库脚本文件夹内的.sql后缀格式文件进行快速建立数据表和导入数据,执行步骤(以MySQL数据库为例):** - -**1、通过可视化管理工具链接MySQL数据库或PostgreSQL数据库,随后新建名为‘tshoteldb’数据库。** +**作者及开发团队强烈建议使用PostgreSQL数据库,安装PostgreSQL数据库并开启服务,通过可视化管理工具对数据库进行建立,可通过打开执行数据库脚本文件夹内的.sql后缀格式文件进行快速建立数据表和导入数据,执行步骤(以PostgreSQL数据库为例):** -**2、通过可视化管理工具打开Table.sql文件进行数据表建立。** +**1、通过可视化管理工具链接PostgreSQL数据库,随后新建名为‘tshoteldb’数据库。** -**3、随后打开Data.sql文件进行数据导入。** +**2、通过可视化管理工具打开:数据库脚本\PostgreSQL版本文件\db_file.sql进行数据表建立和数据导入。** [![java-and-net/TopskyHotelManagerSystem](https://gitee.com/java-and-net/TopskyHotelManagerSystem/widgets/widget_card.svg?colors=4183c4,ffffff,ffffff,e3e9ed,666666,9b9b9b)](https://gitee.com/java-and-net/TopskyHotelManagerSystem) \ No newline at end of file -- Gitee From e0eaf869a7d8824a7df756179ffb03a4341f390c Mon Sep 17 00:00:00 2001 From: ck_yeun9 Date: Thu, 6 Apr 2023 07:23:21 +0000 Subject: [PATCH 2/4] update LICENSE. Signed-off-by: ck_yeun9 --- LICENSE | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index b193a89..c3d43c7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 咖啡与网络(Java&Net) +Copyright (c) 2023 Easy-Open-Meta Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,6 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -归属所有人:咖啡与网络(Java&Net) -原著作者:杨俊杰 \ No newline at end of file -- Gitee From 099479b1fac89b890071bc4de18a373560116159 Mon Sep 17 00:00:00 2001 From: Chunkit Yeung Date: Thu, 4 May 2023 23:28:54 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=88=86=E9=A1=B5=EF=BC=9B=E5=AE=8C=E5=96=84=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SYS.Common/HttpHelper.cs | 377 +++++++++++++++++- SYS.Common/SYS.Common.csproj | 1 + .../AppFunction/FrmCustoManager.Designer.cs | 2 +- SYS.FormUI/AppFunction/FrmCustoManager.cs | 8 +- .../FrmCustomerManager.Designer.cs | 2 +- SYS.FormUI/AppFunction/FrmCustomerManager.cs | 49 ++- SYS.FormUI/AppFunction/FrmNation.Designer.cs | 32 +- SYS.FormUI/AppFunction/FrmNation.cs | 1 + SYS.FormUI/AppFunction/FrmNation.resx | 4 +- 9 files changed, 424 insertions(+), 52 deletions(-) diff --git a/SYS.Common/HttpHelper.cs b/SYS.Common/HttpHelper.cs index cd61e62..d495dae 100644 --- a/SYS.Common/HttpHelper.cs +++ b/SYS.Common/HttpHelper.cs @@ -1,32 +1,49 @@ -using System; +using jvncorelib_fr.EncryptorLib; +using jvncorelib_fr.EntityLib; +using jvncorelib_fr.HttpLib; +using Newtonsoft.Json; +using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Net; +using System.Net.Security; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; +using System.Web; +using System.Web.Script.Serialization; namespace SYS.Common { /// /// 文件上传帮助类 /// - public class HttpHelper + public static class HttpHelper { + static EncryptLib encryptLib = new EncryptLib(); + #region 受限于打包插件的限制才放在这,个人开发时建议统一在App.Config进行配置 /// /// 数据库配置连接 /// public const string mysqlString = "server = localhost; user id = softuser; password = .; database = tshoteldb;"; - public const string pgsqlString = "PORT=5620;DATABASE=tshoteldb;HOST=localhost;PASSWORD=.;USER ID=postgres"; + public const string pgsqlString = ""; /// /// 照片文件配置URL /// - public const string baseUrl = "http://localhost:5622/FileVisualPath/"; + public const string baseUrl = ""; /// /// 上传照片URL /// - public const string postUrl = "http://localhost:5622/api/Upload"; + public const string postUrl = ""; + /// + /// WebApi URL + /// + public const string apiUrl = ""; #endregion @@ -44,5 +61,355 @@ namespace SYS.Common return str.Replace('\"', ' '); } + + /// + /// 统一请求方法 + /// + /// + /// + /// + /// + public static ResponseMsg Request(string url, string json = null, Dictionary dic = null) + { + ResponseMsg msg= new ResponseMsg(); + + //处理url + var sourceStr = url.Replace("​", string.Empty); + + //解密原始URL + var api = encryptLib.Decryption(apiUrl); + + var requestUrl = api + sourceStr; + + if (!json.IsNullOrEmpty()) + { + msg = DoPost(requestUrl, json); + } + else if (!dic.IsNullOrEmpty()) + { + msg = DoGet(requestUrl, dic); + } + else + { + msg = DoGet(requestUrl); + } + + return msg; + } + /// + /// GET请求 + /// + /// + /// + /// + /// + /// + /// + /// + public static ResponseMsg DoGet(string url, IDictionary parameters = null, string contentType = null, string referer = null, string cookie = null, Dictionary dicHeaders = null) + { + if (parameters != null && parameters.Count > 0) + { + if (url.Contains("?")) + { + url = url + "&" + BuildQuery(parameters); + } + else + { + url = url + "?" + BuildQuery(parameters); + } + } + + HttpWebRequest req = null; + string resultContent = ""; + System.IO.Stream stream = null; + StreamReader reader = null; + HttpWebResponse rsp = null; + + try + { + req = GetWebRequest(url, "GET");//post也行 + + if (!string.IsNullOrEmpty(contentType)) + { + req.ContentType = contentType; + } + else + { + req.ContentType = "application/x-www-form-urlencoded;charset=utf-8"; + } + + if (!string.IsNullOrEmpty(referer)) + { + req.Referer = referer; + } + + if (!string.IsNullOrEmpty(cookie)) + { + req.Headers.Add("Cookie", cookie); + } + + if (dicHeaders != null) + { + foreach (var key in dicHeaders.Keys) + { + req.Headers.Add(key, dicHeaders[key]); + } + } + + rsp = (HttpWebResponse)req.GetResponse(); + + Encoding encoding = null; + try + { + encoding = string.IsNullOrEmpty(rsp.CharacterSet) ? Encoding.UTF8 : Encoding.GetEncoding(rsp.CharacterSet); + } + catch (Exception) + { + encoding = Encoding.UTF8; + } + + if (!string.IsNullOrEmpty(contentType)) + { + Regex regex = new Regex("charset\\s*=\\s*(\\S+)", RegexOptions.IgnoreCase); + Match match = null; + match = regex.Match(contentType); + if (match.Success) + { + try + { + encoding = Encoding.GetEncoding(match.Groups[1].Value.Trim()); + } + catch (Exception) + { + encoding = string.IsNullOrEmpty(rsp.CharacterSet) ? Encoding.UTF8 : Encoding.GetEncoding(rsp.CharacterSet); + } + } + } + + // 以字符流的方式读取HTTP响应 + stream = rsp.GetResponseStream(); + reader = new StreamReader(stream, encoding); + resultContent = reader.ReadToEnd(); + } + catch (Exception) + { + //LogWriter.WriteError(ex, MethodBase.GetCurrentMethod(), url, parameters, contentType, referer); + throw; + } + finally + { + // 释放资源 + if (reader != null) reader.Close(); + if (stream != null) stream.Close(); + if (rsp != null) rsp.Close(); + if (req != null) req.Abort(); + //GC.Collect(); + } + + return new ResponseMsg() { statusCode = (int)rsp.StatusCode, message = resultContent }; + } + + /// + /// Post请求 + /// + /// + /// + /// + /// + /// + /// + /// + public static ResponseMsg DoPost(string url, string jsonParam = null, string contentType = null, string referer = null, string cookie = null, Dictionary dicHeaders = null) + { + var resultContent = string.Empty; + var request = (HttpWebRequest)WebRequest.Create(url); + request.Method = "POST"; + + if (!string.IsNullOrEmpty(contentType)) + { + request.ContentType = contentType; + } + else + { + request.ContentType = "application/json;charset=utf-8"; + } + + if (!string.IsNullOrEmpty(referer)) + { + request.Referer = referer; + } + + if (!string.IsNullOrEmpty(cookie)) + { + request.Headers.Add("Cookie", cookie); + } + + if (dicHeaders != null) + { + foreach (var key in dicHeaders.Keys) + { + request.Headers.Add(key, dicHeaders[key]); + } + } + Stream writer = null; + + if (jsonParam != null) + { + byte[] byteData = Encoding.UTF8.GetBytes(jsonParam); + int length = byteData.Length; + request.ContentLength = length; + writer = request.GetRequestStream(); + writer.Write(byteData, 0, length); + writer.Close(); + } + + var response = (HttpWebResponse)request.GetResponse(); + var responseString = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8")).ReadToEnd(); + + resultContent = responseString.ToString(); + + return new ResponseMsg() { statusCode = (int)response.StatusCode, message = resultContent }; + } + + /// + /// 组装普通文本请求参数。 + /// + /// Key-Value形式请求参数字典 + /// URL编码后的请求数据 + public static string BuildQuery(IDictionary parameters) + { + StringBuilder postData = new StringBuilder(); + bool hasParam = false; + + IEnumerator> dem = parameters.GetEnumerator(); + while (dem.MoveNext()) + { + string name = dem.Current.Key; + string value = dem.Current.Value; + // 忽略参数名或参数值为空的参数 + if (!string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(value)) + { + if (hasParam) + { + postData.Append("&"); + } + + postData.Append(name); + postData.Append("="); + postData.Append(UrlEncode(value, Encoding.UTF8)); + hasParam = true; + } + } + + return postData.ToString(); + } + + /** + * C#的URL encoding有两个问题: + * 1.左右括号没有转移(Java的URLEncoder.encode有) + * 2.转移符合都是小写的,Java是大写的 + */ + public static string UrlEncode(string str, Encoding e) + { + var REG_URL_ENCODING = new Regex(@"%[a-f0-9]{2}"); + + if (str == null) + { + return null; + } + + String stringToEncode = HttpUtility.UrlEncode(str, e).Replace("+", "%20").Replace("*", "%2A").Replace("(", "%28").Replace(")", "%29"); + return REG_URL_ENCODING.Replace(stringToEncode, m => m.Value.ToUpperInvariant()); + } + + /// + /// 获取网页请求 + /// + /// + /// + /// + public static HttpWebRequest GetWebRequest(string url, string method) + { + HttpWebRequest req = null; + if (url.Contains("https")) + { + ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult); + req = (HttpWebRequest)WebRequest.CreateDefault(new Uri(url)); + } + else + { + req = (HttpWebRequest)WebRequest.Create(url); + } + + req.ServicePoint.Expect100Continue = false; + req.Method = method; + req.KeepAlive = true; + req.UserAgent = "userAgent"; + req.Timeout = 100000; + + return req; + } + + /// + /// 获取网页请求扩展-检查请求 + /// + /// + /// + /// + /// + /// + public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) + { //直接确认,否则打不开 + return true; + } + + /// + /// Json转数组列表 + /// + /// + /// + /// + public static List JsonToList(string JsonStr) + { + JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); + return javaScriptSerializer.Deserialize>(JsonStr); + } + + /// + /// Json转实体 + /// + /// + /// + /// + public static T JsonToModel(this string input) + { + try + { + return JsonConvert.DeserializeObject(input); + } + catch (Exception ex) + { + return default(T); + } + } + + /// + /// 实体转Json + /// + /// + /// + /// + public static string ModelToJson(this T input) + { + try + { + return Newtonsoft.Json.JsonConvert.SerializeObject(input); + } + catch (Exception ex) + { + return ex.Message; + } + } } } diff --git a/SYS.Common/SYS.Common.csproj b/SYS.Common/SYS.Common.csproj index 5a01803..a934a0a 100644 --- a/SYS.Common/SYS.Common.csproj +++ b/SYS.Common/SYS.Common.csproj @@ -91,6 +91,7 @@ + diff --git a/SYS.FormUI/AppFunction/FrmCustoManager.Designer.cs b/SYS.FormUI/AppFunction/FrmCustoManager.Designer.cs index fb9a077..fc7b67c 100644 --- a/SYS.FormUI/AppFunction/FrmCustoManager.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmCustoManager.Designer.cs @@ -385,7 +385,7 @@ this.btnPg.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.btnPg.MinimumSize = new System.Drawing.Size(1, 1); this.btnPg.Name = "btnPg"; - this.btnPg.PageSize = 12; + this.btnPg.PageSize = 15; this.btnPg.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; this.btnPg.Size = new System.Drawing.Size(782, 34); this.btnPg.Style = Sunny.UI.UIStyle.Custom; diff --git a/SYS.FormUI/AppFunction/FrmCustoManager.cs b/SYS.FormUI/AppFunction/FrmCustoManager.cs index 94b4d88..f448560 100644 --- a/SYS.FormUI/AppFunction/FrmCustoManager.cs +++ b/SYS.FormUI/AppFunction/FrmCustoManager.cs @@ -66,7 +66,7 @@ namespace SYS.FormUI private void FrmCustoManager_Load(object sender, EventArgs e) { //dgvCustomerList.AutoGenerateColumns = false; - this.btnPg.PageSize = 12; + this.btnPg.PageSize = 15; LoadCustomer(); LoadCustoType(); //txtCustoNo.ReadOnly = true; @@ -88,7 +88,6 @@ namespace SYS.FormUI { dic = new Dictionary() { - { "delete_mk","0"}, { "pageIndex","1"}, { "pageSize","15"} }; @@ -153,7 +152,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoByInfo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); return; } custos = HttpHelper.JsonToModel(result.message); @@ -174,7 +173,7 @@ namespace SYS.FormUI } else { - result = HttpHelper.Request("Custo/SelectCustoAll?pageIndex=1&pageSize=20"); + result = HttpHelper.Request("Custo/SelectCustoAll?pageIndex=1&pageSize=15"); if (result.statusCode != 200) { UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); @@ -258,7 +257,6 @@ namespace SYS.FormUI { dic = new Dictionary() { - { "delete_mk","0"}, { "pageIndex",pageIndex.ToString()}, { "pageSize",count.ToString()} }; diff --git a/SYS.FormUI/AppFunction/FrmCustomerManager.Designer.cs b/SYS.FormUI/AppFunction/FrmCustomerManager.Designer.cs index 4efb160..bcc5274 100644 --- a/SYS.FormUI/AppFunction/FrmCustomerManager.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmCustomerManager.Designer.cs @@ -409,7 +409,7 @@ this.btnPg.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.btnPg.MinimumSize = new System.Drawing.Size(1, 1); this.btnPg.Name = "btnPg"; - this.btnPg.PageSize = 12; + this.btnPg.PageSize = 15; this.btnPg.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None; this.btnPg.Size = new System.Drawing.Size(755, 34); this.btnPg.TabIndex = 120; diff --git a/SYS.FormUI/AppFunction/FrmCustomerManager.cs b/SYS.FormUI/AppFunction/FrmCustomerManager.cs index 51e93c7..160fc51 100644 --- a/SYS.FormUI/AppFunction/FrmCustomerManager.cs +++ b/SYS.FormUI/AppFunction/FrmCustomerManager.cs @@ -56,7 +56,7 @@ namespace SYS.FormUI #region 用户管理界面加载事件方法 private void FrmCustomerManager_Load(object sender, EventArgs e) { - this.btnPg.PageSize = 12; + this.btnPg.PageSize = 15; LoadCustomer(); } #endregion @@ -66,9 +66,8 @@ namespace SYS.FormUI { dic = new Dictionary() { - { "delete_mk","0"}, { "pageIndex","1"}, - { "pageSize","12"} + { "pageSize","15"} }; result = HttpHelper.Request("Custo/SelectCustoAll", null, dic); if (result.statusCode != 200) @@ -166,43 +165,50 @@ namespace SYS.FormUI List custos = new List(); if (!txtCustoNo.Text.IsNullOrEmpty()) { - dic = new Dictionary + var custo = new Custo() { - { "CustoNo", txtCustoNo.Text.Trim() } + CustoNo = txtCustoNo.Text.Trim() }; - result = HttpHelper.Request("Custo/SelectCustoAll", null, dic); + result = HttpHelper.Request("Custo/SelectCustoByInfo", HttpHelper.ModelToJson(custo)); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); return; } //custos = HttpHelper.JsonToList(result.message); - var listSource = HttpHelper.JsonToModel(result.message); - custos = listSource.listSource; + custos = HttpHelper.JsonToList(result.message); + //var listSource = HttpHelper.JsonToModel(result.message); + //custos = listSource.listSource; } else if (!txtCustoName.Text.IsNullOrEmpty()) { - dic = new Dictionary + var custo = new Custo() { - { "CustoName", txtCustoName.Text.Trim() } + CustoName = txtCustoName.Text.Trim() }; - result = HttpHelper.Request("Custo/SelectCustoAll", null, dic); + result = HttpHelper.Request("Custo/SelectCustoByInfo", HttpHelper.ModelToJson(custo)); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); return; } - var listSource = HttpHelper.JsonToModel(result.message); - custos = listSource.listSource; + //if (result.statusCode != 200) + //{ + // UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); + // return; + //} + //var listSource = HttpHelper.JsonToModel(result.message); + //custos = listSource.listSource; + custos = HttpHelper.JsonToList(result.message); } else { - result = HttpHelper.Request("Custo/SelectCustoAll?pageIndex=1&pageSize=10"); - if (result.statusCode != 200) - { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); - return; - } + result = HttpHelper.Request("Custo/SelectCustoAll?pageIndex=1&pageSize=15"); + //if (result.statusCode != 200) + //{ + // UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + // return; + //} var listSource = HttpHelper.JsonToModel(result.message); custos = listSource.listSource; } @@ -254,7 +260,6 @@ namespace SYS.FormUI { dic = new Dictionary() { - { "delete_mk","0"}, { "pageIndex",pageIndex.ToString()}, { "pageSize",count.ToString()} }; diff --git a/SYS.FormUI/AppFunction/FrmNation.Designer.cs b/SYS.FormUI/AppFunction/FrmNation.Designer.cs index bd477d0..ba38028 100644 --- a/SYS.FormUI/AppFunction/FrmNation.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmNation.Designer.cs @@ -43,8 +43,8 @@ namespace SYS.FormUI this.label20 = new System.Windows.Forms.Label(); this.txtNationNo = new Sunny.UI.UITextBox(); this.dgvNationList = new Sunny.UI.UIDataGridView(); - this.clEducationNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clEducationName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.clNationNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.clNationName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -173,8 +173,8 @@ namespace SYS.FormUI this.dgvNationList.ColumnHeadersHeight = 32; this.dgvNationList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dgvNationList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.clEducationNo, - this.clEducationName, + this.clNationNo, + this.clNationName, this.Column1, this.Column2, this.Column3, @@ -215,19 +215,19 @@ namespace SYS.FormUI this.dgvNationList.TabIndex = 199; this.dgvNationList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvNationList_CellClick); // - // clEducationNo + // clNationNo // - this.clEducationNo.DataPropertyName = "nation_no"; - this.clEducationNo.HeaderText = "民族编号"; - this.clEducationNo.Name = "clEducationNo"; - this.clEducationNo.ReadOnly = true; + this.clNationNo.DataPropertyName = "nation_no"; + this.clNationNo.HeaderText = "民族编号"; + this.clNationNo.Name = "clNationNo"; + this.clNationNo.ReadOnly = true; // - // clEducationName + // clNationName // - this.clEducationName.DataPropertyName = "nation_name"; - this.clEducationName.HeaderText = "民族名称"; - this.clEducationName.Name = "clEducationName"; - this.clEducationName.ReadOnly = true; + this.clNationName.DataPropertyName = "nation_name"; + this.clNationName.HeaderText = "民族名称"; + this.clNationName.Name = "clNationName"; + this.clNationName.ReadOnly = true; // // Column1 // @@ -307,8 +307,8 @@ namespace SYS.FormUI private System.Windows.Forms.Label label20; private Sunny.UI.UITextBox txtNationNo; private Sunny.UI.UIDataGridView dgvNationList; - private System.Windows.Forms.DataGridViewTextBoxColumn clEducationNo; - private System.Windows.Forms.DataGridViewTextBoxColumn clEducationName; + private System.Windows.Forms.DataGridViewTextBoxColumn clNationNo; + private System.Windows.Forms.DataGridViewTextBoxColumn clNationName; private System.Windows.Forms.DataGridViewTextBoxColumn Column1; private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column3; diff --git a/SYS.FormUI/AppFunction/FrmNation.cs b/SYS.FormUI/AppFunction/FrmNation.cs index 9090a9c..8318dc1 100644 --- a/SYS.FormUI/AppFunction/FrmNation.cs +++ b/SYS.FormUI/AppFunction/FrmNation.cs @@ -24,6 +24,7 @@ using Sunny.UI; using SYS.Application; using SYS.Common; +//using SYS.Common; using SYS.Core; using SYS.FormUI.Properties; using System; diff --git a/SYS.FormUI/AppFunction/FrmNation.resx b/SYS.FormUI/AppFunction/FrmNation.resx index 9eafb6b..be7812f 100644 --- a/SYS.FormUI/AppFunction/FrmNation.resx +++ b/SYS.FormUI/AppFunction/FrmNation.resx @@ -117,10 +117,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + True - + True -- Gitee From b783a15083641df19528f0361372937faf0f9dd8 Mon Sep 17 00:00:00 2001 From: Chunkit Yeung Date: Wed, 14 Feb 2024 01:10:19 +0800 Subject: [PATCH 4/4] fixed bugs --- SYS.Common/SYS.Common.csproj | 7 +- SYS.Common/Util/Util.cs | 2 +- SYS.Common/bitbug_favicon (1).ico | Bin 16958 -> 0 bytes SYS.Core/Business/Cash/Cash.cs | 8 -- SYS.Core/Business/Customer/Custo.cs | 8 -- SYS.Core/Business/Customer/CustoType.cs | 8 -- SYS.Core/Business/Customer/PassPortType.cs | 8 -- SYS.Core/Business/Customer/SexType.cs | 8 -- SYS.Core/Business/Reser/Reser.cs | 8 -- SYS.Core/Business/Room/Room.cs | 8 -- SYS.Core/Business/Room/RoomState.cs | 8 -- SYS.Core/Business/Room/RoomType.cs | 19 +++-- SYS.Core/Business/Sellthing/SellThing.cs | 8 -- SYS.Core/Business/Spend/Spend.cs | 8 -- SYS.Core/Business/Wti/Wti.cs | 8 -- SYS.Core/Sys/NavBar/NavBar.cs | 12 +-- SYS.Core/Worker/GBType.cs | 14 +--- SYS.Core/Worker/Worker.cs | 9 +-- SYS.Core/Worker/WorkerCheck.cs | 8 -- SYS.Core/Worker/WorkerGoodBad.cs | 8 -- SYS.Core/Worker/WorkerHistory.cs | 8 -- SYS.Core/Zero/Admin.cs | 22 +---- SYS.Core/Zero/AdminType.cs | 12 +-- SYS.Core/Zero/CheckInfo.cs | 8 -- SYS.Core/Zero/Dept.cs | 8 -- SYS.Core/Zero/Education.cs | 8 -- SYS.Core/Zero/Module.cs | 11 --- SYS.Core/Zero/Nation.cs | 8 -- SYS.Core/Zero/Notice.cs | 8 -- SYS.Core/Zero/VipRule.cs | 15 +--- SYS.Core/Zero/position.cs | 8 -- SYS.FormUI/AppFunction/FrmAddAdmin.cs | 9 +-- SYS.FormUI/AppFunction/FrmAddRoom.Designer.cs | 2 + SYS.FormUI/AppFunction/FrmAddRoom.cs | 27 +++---- SYS.FormUI/AppFunction/FrmAddWorker.cs | 32 ++++---- .../AppFunction/FrmAdminManager.Designer.cs | 20 +++-- SYS.FormUI/AppFunction/FrmAdminManager.cs | 7 +- SYS.FormUI/AppFunction/FrmAuthority.cs | 12 +-- SYS.FormUI/AppFunction/FrmCash.cs | 11 ++- SYS.FormUI/AppFunction/FrmChangeAdminPwd.cs | 6 +- SYS.FormUI/AppFunction/FrmChangePosition.cs | 9 ++- SYS.FormUI/AppFunction/FrmChangeRoom.cs | 17 ++-- SYS.FormUI/AppFunction/FrmChangeWorker.cs | 4 +- SYS.FormUI/AppFunction/FrmChart.cs | 2 +- SYS.FormUI/AppFunction/FrmCheckIn.cs | 3 +- SYS.FormUI/AppFunction/FrmCheckList.cs | 2 +- SYS.FormUI/AppFunction/FrmCheckOutForm.cs | 75 ++++++++---------- SYS.FormUI/AppFunction/FrmCustoManager.cs | 10 +-- SYS.FormUI/AppFunction/FrmCustoSpend.cs | 2 +- SYS.FormUI/AppFunction/FrmCustomerManager.cs | 12 +-- .../AppFunction/FrmDepartment.Designer.cs | 2 +- SYS.FormUI/AppFunction/FrmDepartment.cs | 52 ++++++++---- SYS.FormUI/AppFunction/FrmEditInputs.cs | 12 ++- .../AppFunction/FrmEducation.Designer.cs | 20 ++--- SYS.FormUI/AppFunction/FrmEducation.cs | 49 +++++++++--- SYS.FormUI/AppFunction/FrmEducation.resx | 2 +- SYS.FormUI/AppFunction/FrmGoodOrBad.cs | 7 +- SYS.FormUI/AppFunction/FrmMySpace.cs | 27 +++---- SYS.FormUI/AppFunction/FrmNation.Designer.cs | 20 ++--- SYS.FormUI/AppFunction/FrmNation.cs | 54 ++++++++++--- SYS.FormUI/AppFunction/FrmNation.resx | 2 +- SYS.FormUI/AppFunction/FrmNotice.cs | 4 +- SYS.FormUI/AppFunction/FrmOperation.cs | 2 +- .../AppFunction/FrmPosition.Designer.cs | 20 ++--- SYS.FormUI/AppFunction/FrmPosition.cs | 56 +++++++++---- SYS.FormUI/AppFunction/FrmPosition.resx | 2 +- SYS.FormUI/AppFunction/FrmReserList.cs | 19 +++-- SYS.FormUI/AppFunction/FrmReserManager.cs | 9 +-- SYS.FormUI/AppFunction/FrmRoomManager.cs | 16 ++-- SYS.FormUI/AppFunction/FrmRoomMap.cs | 2 +- SYS.FormUI/AppFunction/FrmRoomStateManager.cs | 4 +- SYS.FormUI/AppFunction/FrmSelectCustoInfo.cs | 12 +-- SYS.FormUI/AppFunction/FrmSellThing.cs | 36 +++++---- SYS.FormUI/AppFunction/FrmSellThingManager.cs | 14 ++-- SYS.FormUI/AppFunction/FrmUnLockSystem.cs | 2 +- SYS.FormUI/AppFunction/FrmUpLoadNotice.cs | 5 +- SYS.FormUI/AppFunction/FrmVipRule.cs | 6 +- SYS.FormUI/AppFunction/FrmWtiInfo.cs | 1 - SYS.FormUI/AppInterface/FrmLoading.cs | 2 +- SYS.FormUI/AppMain/FrmMain.cs | 3 +- SYS.FormUI/AppUserControls/ucRoomList.cs | 17 ++-- 81 files changed, 445 insertions(+), 579 deletions(-) delete mode 100644 SYS.Common/bitbug_favicon (1).ico diff --git a/SYS.Common/SYS.Common.csproj b/SYS.Common/SYS.Common.csproj index a934a0a..3de5392 100644 --- a/SYS.Common/SYS.Common.csproj +++ b/SYS.Common/SYS.Common.csproj @@ -39,7 +39,8 @@ 4 - bitbug_favicon %281%29.ico + + @@ -91,15 +92,11 @@ - - - - diff --git a/SYS.Common/Util/Util.cs b/SYS.Common/Util/Util.cs index 157ddcb..2196802 100644 --- a/SYS.Common/Util/Util.cs +++ b/SYS.Common/Util/Util.cs @@ -24,7 +24,7 @@ namespace SYS.Common ResponseMsg result = HttpHelper.Request("App/SelectCardCode", null, dic); if (result.statusCode != 200) { - return new card { message = "SelectCardCode+接口服务异常,请提交Issue!" }; + return new card { message = "SelectCardCode+接口服务异常,请提交Issue或尝试更新版本!" }; } var addrResult = result.message; var address = addrResult.Replace(",", "").ToString(); diff --git a/SYS.Common/bitbug_favicon (1).ico b/SYS.Common/bitbug_favicon (1).ico deleted file mode 100644 index deaead31de45df54f39388e2b4727a00a4f99eca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16958 zcmeI3d0bT2*~br}Y@&c7qEQePkf?|oqNpGS1f#~d#F`jwYh0p*vewtj~F# z=iYnn<$eSqKlqoKiQwlLG$9M2D1^`i0Gd!fK-yhLCPL$q+h}X(``MR)z6|tbpf3Y` z8R*MEUj}~K3{*D0gAPk8QLXy90S(6ILsiV?AzI<#NS%3Ol)Yplo@sQ?}eg zCR<*a$-bz@#G_*bI9OGDUiE(7M0Js}m zhj|xh`$98qTU2Nim+sVYYp1H|?ZK3JHd5$5_+bOPgY^dOTBJ}v(qG3s6hjHi9x#cy z`)TV!6=PfQHDk|cW$p7ZYtL{2bFAIQ=&8$Rj5zOW)-t!1wWMRvpMZ4Ch#6*+u%L&yHHup5kEb>dbEkpd4dt^^HK%_=^Eof+sZE28rZqhe8Z0PP&myxh3F!=LB1}xqMuwlK=7ibTICB~X zZNpV|)vvR{oG%z*o{8ZX6w%y*12ngAH^t;`GI6>dFi(e2>|;I3fmX8yshZXgpqacJ zhMQNy@oASheipu!v`Z|PPSI?}-%U*R79)NCYy++F~_B19+c-&Z*c5v2g}ZVpQf`{=yfY&>Kir(EZL0F zr-i0&uSX`R)XyWmaTQW)o*H1J*2L3H_EwfnuZK0Sc-AKCcMb5BP5Y<8u;e~LNJ90> zJze%mr~Nrnt9JUEjJcUCJ-do$X0-6^4D5oLagAfrj5L+?qKSH7iqW_>fTGqQy}oPr z+J!?Q2=H^$sZVOvZd6iaKnBC=5sYcU4vv{6f*-8_z6tTEef@hsUH-E4+)|Z#%MiWc zkxtk0?x2k8Va=_<43)8+qi3Au>1nu)={GpjEQ&VH-(}D(iL0)9wO?cXR`01k%U#3|MUB=VXuLIyym$|5J$XRvy;;;_3 zy&L}V@pp)$<|4i7;c(VC?`7UJ?OWb76}zCOpJ$D8|7_ANkFTqI-A`Trr1w;xWfF^< z5un?Fdf;226~Jyt`4XT9o&)XyT=Tq*Dw^H`-_ns$zb2YBroRI|UA^g>$Hz`opi{6x zJ^SF>Z|n~8w%NW+Y4VVvX=N0vPkURSQmzWr6wFg8*EnNp8LiLG)HMAvK&M*Qep;t> zcO1h&j{(;JPs~I~+}GXeX(#nlKr+xF2lA>Th}Px6`PmS`8s@wOKHdQEotc6;!!$=j z&Emf+6KgR+s*=QMGiq#W)nnCLRKJ7C4Tx8O%isAJ$fwCdmPr`S?Yr%LG&C+pYQ^UM zoHlKbSvT>rS$8kywJ8mZdVbm~uVbWZSl@n1x9Xl4K*@bQgw)#~?lEIP8NhQ5d;sMD z(&y_i>9-++_Jt5$n|g@&48C`Y;Oc|8G}FtxZPB_-$Wez7r%r!R&`kWdSu+6(nkjNx zy?C<2Fal{Cw|Ec#LCPdPH`72JfG7UbP##SBd>#7w-y*YiG-6c?R+}{wFPSw-*sOs( zbV?HD)zj*|ZE;O$h-u7A6x5S+qB;=^>f{=xDSINT3`dNv`|nHMw(nFXak&`?O74kD z!27xIcc^!I{xuCxL+tkVps+61YGwO$sQT^*cp=sJ1qADJn zno__1$_Jf?KgTPsUT>e0_Fg>PUxgY#sOsSdmK;$-vQon zld=tX47g)n4a)VfcRdp*G)_4rHjT$(Q~dWddX-)6<1vgYB(5>_YZ0Z~GEitpJ}5Sf zyT&)nc)DKk|Nchhqdq+cUp(jRk5KmZ_XgB=xchz1^)$N23Az!N|MFaU6k?cjuu z2BUl>(${PVF)Js^EcJ2NQa`p+Al7TVB6Sn1T!Rb^2l|_pllO~?xX+o|^elTr7-~HI ztdAAGZ*u#U1nL0rw}%D-t~m5iC-1kN`t9iheHrk?PWHO@fM`#CzhA9uB~#5pL{;Yu zH7gPuEy^+2qJ$jyWDFJ+<3D5TGEz82HsTbyqs6*$l({bHU2WZ-0IF{79Tx;YNqpqq zCGV%+@qY#NOrR_A|Ax$U(+rwJ=6McM2FTtx79hVXdAd3%t5}bOx|xWt%Sg7=jXi5o z#Ny70!D8Kn5|d)xV6kozGS|&qEY^+{IQgt}zB;jkZC?$<7dL+Z^~6AwoX4H+K3`Kk z^N5mozX8ZRvUiaEgzO2VuRlPZ3EKd&uf7X}0zPf36+4kr-VX`2Qy;U`##{%mH`ZJ0 zSIu?PetGURLiXB7WUfitA=V^Fsp^LZ($!0R+Hc=T{BW}pu6^%!brQ=FfV}6opLVnE zo=dKu!+lZ% zxKhCL`;fOC@A6d`L-q&P_0iriU!8*ZnmMyAHKYG!t+@x^hAW~xdGlxRXlz%GEi52gV_0J0ByrrcBm z(~PXAf{?j-<{WF~J!frI(YQ0Ll_SratEOf<;l8hI`0S>QyDboZ+$;qp_osIbK7sme z_kg=y*E25}J`@X8S#S+63%6FrNo*BS*j6$8dn&!k6~nKHr{kYjSG>^QRPmt4M32=S zeN0?RGpyBeI`(7g#F7a1Yi%; z^qe?bMKr2EeX3V|amPpQ%@+ah_{koy+uh%*YwF7$Lgyh2^QoybttX=m_LD=f{p3&| z48hRfz@JE&a=xq|Dv@u$D?dCjc(lC{cl-UIWbgLQ0r_1vg!K2;aql{e94Dg?Uy^XI z?Zj}U{X_(|pMdx~5P@wcqEte8(zLJPn@;V~U){9}#D8}jTR~p|$a}jtFG2ks;J<)( z{O6$lIzalp$CEO#^Atedfx6_Iq4HM~}VZ_y+_5p90?T^|VaBbIbwmxJR0b7osZ3em}7+KFeMfsdbcv zVY?eonJ94GRyO>IP(E|4vn&WvCwun2lH|nWA1HaR?`h25^T{6Zq{qIm{GX~ihs4tH zh$+ttwv@zeu$M+y9HoPCM+RYgX;`zhbkwVSS!$GcVhUo4Qhk}ct2Vcfsi5SZChzFI zK^fQ~@%sZE{Hib5?Rq~KN~XryN=CflC>h-BC<(=ml0oeV#rBd2#!?cqjw-o7h%KJl z!B$Tjh<`vofb3`F+gEQuo}1*py5;&`C&B1nMG=USrH6<`u`BJx5lxQb&=vsS%0Q?O zx?n4gI%qCVOqQR}`%z^Zdm8FbH$NAnbLEqe_SoV8v2fg6ThY*u9mhkzaUKuB&f^2y z(_%j!uCf-7-oTb-4z`~d|I_*1!<7{uFGc@66^&?FYOv*a++17X&^H}Lq34}N!MF{G zzlh+fw?d!ORy6GQ=E4bMj-ABFczksaJ?J={ExHf(kK7PWHZg`emKN0fDMB9=b^QMt z9cOmEMe|V-QXc-9KYeuaXtQk0L$-p5!_LBipF0bKa2pVBA;DF@;V2As*a{=}i$&w6 z3&p7e%*Wx6S$?2{FUdn(*@|$nFn+g9HtaoX!Kf`_!T2P$C^NXCQb4NmKXiNLqJJDf z``)r4N|GHQ6x3j%Q)B;G)L25=SxU9-zVL|eho*UZu} zDW+p{0|aS8x7Y6O1ioSivL5S)%*ClgtOfUMcgP0oow87~qadunRuKJ+MHZ7QNRuXT z(kVlE>7-D@(FH+GrLPQ7$)*0P)9?GMBwGV$$*f>jI(0BBnI0|3lBPfomq9L{w#&jk zamYeV5ZeW3K|t%7f&hHR9eZ0jpw%G@`oelFw4D27$m8^(krOnBvj#992X{A&9*;Mc ztU(RMzv(9yCdS(fqMmoiLTINf@CtCzDGRncqytqB>EKeEH2jcV7WKBhAo2~nEb@R& z8u`9m8YY3fRlyj8QxA`~8;3 zQORqwdK^bj4KT7iL>D~hFGv!{SR~P#?9ygr7>@+GwW0DN%mJNh!vmw~5mP~$PdfIT2KpUenvCe zOa4*-H=~Sv)anl!D@QGX_)2uF6I}_zEiGZ7utG~%Giu(8aWkkB2IR*!qcflgw6-O% z6=gIdMXP@+G4)5#K(~fL|31 public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Customer/Custo.cs b/SYS.Core/Business/Customer/Custo.cs index 11f6d0c..9bb6ce1 100644 --- a/SYS.Core/Business/Customer/Custo.cs +++ b/SYS.Core/Business/Customer/Custo.cs @@ -101,17 +101,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Customer/CustoType.cs b/SYS.Core/Business/Customer/CustoType.cs index 1fe44e3..31aa232 100644 --- a/SYS.Core/Business/Customer/CustoType.cs +++ b/SYS.Core/Business/Customer/CustoType.cs @@ -49,16 +49,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Customer/PassPortType.cs b/SYS.Core/Business/Customer/PassPortType.cs index 3ba5679..464ddae 100644 --- a/SYS.Core/Business/Customer/PassPortType.cs +++ b/SYS.Core/Business/Customer/PassPortType.cs @@ -54,16 +54,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Customer/SexType.cs b/SYS.Core/Business/Customer/SexType.cs index 2fc2e72..2c99ccd 100644 --- a/SYS.Core/Business/Customer/SexType.cs +++ b/SYS.Core/Business/Customer/SexType.cs @@ -55,16 +55,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Reser/Reser.cs b/SYS.Core/Business/Reser/Reser.cs index 02cc7bd..9147111 100644 --- a/SYS.Core/Business/Reser/Reser.cs +++ b/SYS.Core/Business/Reser/Reser.cs @@ -69,17 +69,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Room/Room.cs b/SYS.Core/Business/Room/Room.cs index 1fc34d2..5af4395 100644 --- a/SYS.Core/Business/Room/Room.cs +++ b/SYS.Core/Business/Room/Room.cs @@ -112,17 +112,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Room/RoomState.cs b/SYS.Core/Business/Room/RoomState.cs index 7592829..5e8da76 100644 --- a/SYS.Core/Business/Room/RoomState.cs +++ b/SYS.Core/Business/Room/RoomState.cs @@ -50,16 +50,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Room/RoomType.cs b/SYS.Core/Business/Room/RoomType.cs index ca7ed2b..2e73b3e 100644 --- a/SYS.Core/Business/Room/RoomType.cs +++ b/SYS.Core/Business/Room/RoomType.cs @@ -51,16 +51,19 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } + } + + + public enum RT + { + 标准单人间 = 0, + 标准双人间 = 1, + 豪华单人间 = 2, + 豪华双人间 = 3, + 情侣套房 = 4, + 总统套房 = 5, } } diff --git a/SYS.Core/Business/Sellthing/SellThing.cs b/SYS.Core/Business/Sellthing/SellThing.cs index d354cb4..52ab2e4 100644 --- a/SYS.Core/Business/Sellthing/SellThing.cs +++ b/SYS.Core/Business/Sellthing/SellThing.cs @@ -67,16 +67,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Business/Spend/Spend.cs b/SYS.Core/Business/Spend/Spend.cs index 1bcf30a..1c4cb61 100644 --- a/SYS.Core/Business/Spend/Spend.cs +++ b/SYS.Core/Business/Spend/Spend.cs @@ -83,17 +83,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } /// /// 结算状态描述 diff --git a/SYS.Core/Business/Wti/Wti.cs b/SYS.Core/Business/Wti/Wti.cs index a6a4767..7ff12f2 100644 --- a/SYS.Core/Business/Wti/Wti.cs +++ b/SYS.Core/Business/Wti/Wti.cs @@ -82,17 +82,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } diff --git a/SYS.Core/Sys/NavBar/NavBar.cs b/SYS.Core/Sys/NavBar/NavBar.cs index 89b9f0f..c17053c 100644 --- a/SYS.Core/Sys/NavBar/NavBar.cs +++ b/SYS.Core/Sys/NavBar/NavBar.cs @@ -42,20 +42,12 @@ namespace SYS.Core /// public int delete_mk { get; set; } /// - /// 新增人 + /// 资料创建人 /// public string datains_usr { get; set; } /// - /// 新增时间 - /// - public DateTime? datains_date { get; set; } - /// - /// 修改人 + /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 修改时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Worker/GBType.cs b/SYS.Core/Worker/GBType.cs index ca62ac7..786fa97 100644 --- a/SYS.Core/Worker/GBType.cs +++ b/SYS.Core/Worker/GBType.cs @@ -46,25 +46,13 @@ namespace SYS.Application /// 删除标记 /// public int delete_mk { get; set; } - /// - /// 资料新增人 + /// 资料创建人 /// public string datains_usr { get; set; } - - /// - /// 资料新增日期 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - - /// - /// 资料更新日期 - /// - public DateTime? datachg_date { get; set; } } } \ No newline at end of file diff --git a/SYS.Core/Worker/Worker.cs b/SYS.Core/Worker/Worker.cs index 2977c57..379d402 100644 --- a/SYS.Core/Worker/Worker.cs +++ b/SYS.Core/Worker/Worker.cs @@ -136,18 +136,11 @@ namespace SYS.Core /// /// 资料创建人 /// + [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true)] public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Worker/WorkerCheck.cs b/SYS.Core/Worker/WorkerCheck.cs index 4654d48..a644a7a 100644 --- a/SYS.Core/Worker/WorkerCheck.cs +++ b/SYS.Core/Worker/WorkerCheck.cs @@ -68,17 +68,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Worker/WorkerGoodBad.cs b/SYS.Core/Worker/WorkerGoodBad.cs index 1199a2b..d5c5747 100644 --- a/SYS.Core/Worker/WorkerGoodBad.cs +++ b/SYS.Core/Worker/WorkerGoodBad.cs @@ -80,16 +80,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Worker/WorkerHistory.cs b/SYS.Core/Worker/WorkerHistory.cs index d978bfc..e896e2b 100644 --- a/SYS.Core/Worker/WorkerHistory.cs +++ b/SYS.Core/Worker/WorkerHistory.cs @@ -66,16 +66,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/Admin.cs b/SYS.Core/Zero/Admin.cs index 6b4356d..8075215 100644 --- a/SYS.Core/Zero/Admin.cs +++ b/SYS.Core/Zero/Admin.cs @@ -79,30 +79,14 @@ namespace SYS.Core /// public System.Int32 DeleteMk { get { return this._DeleteMk; } set { this._DeleteMk = value; } } - private string _datains_usr; /// - /// 资料新增人 + /// 资料创建人 /// - public string datains_usr { get { return this._datains_usr; } set { this._datains_usr = value; } } - - private System.DateTime? _datains_time; - /// - /// 资料新增时间 - /// - public System.DateTime? datains_time { get { return this._datains_time; } set { this._datains_time = value; } } - - private string _datachg_usr; + public string datains_usr { get; set; } /// /// 资料更新人 /// - public string datachg_usr { get { return this._datachg_usr; } set { this._datachg_usr = value; } } - - private System.DateTime? _datachg_time; - /// - /// 资料更新时间 - /// - public System.DateTime? datachg_time { get { return this._datachg_time; } set { this._datachg_time = value; } } - + public string datachg_usr { get; set; } /// /// 管理员类型描述 /// diff --git a/SYS.Core/Zero/AdminType.cs b/SYS.Core/Zero/AdminType.cs index 0671254..9274466 100644 --- a/SYS.Core/Zero/AdminType.cs +++ b/SYS.Core/Zero/AdminType.cs @@ -57,20 +57,12 @@ namespace SYS.Core public int delete_mk { get; set; } /// - /// 新增人 + /// 资料创建人 /// public string datains_usr { get; set; } /// - /// 新增时间 - /// - public DateTime? datains_date { get; set; } - /// - /// 修改人 + /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 修改时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/CheckInfo.cs b/SYS.Core/Zero/CheckInfo.cs index 1972e3b..ef98c69 100644 --- a/SYS.Core/Zero/CheckInfo.cs +++ b/SYS.Core/Zero/CheckInfo.cs @@ -70,16 +70,8 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/Dept.cs b/SYS.Core/Zero/Dept.cs index 80a12e5..4cf47ee 100644 --- a/SYS.Core/Zero/Dept.cs +++ b/SYS.Core/Zero/Dept.cs @@ -79,17 +79,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/Education.cs b/SYS.Core/Zero/Education.cs index 80c34d9..9a4bf0f 100644 --- a/SYS.Core/Zero/Education.cs +++ b/SYS.Core/Zero/Education.cs @@ -53,17 +53,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/Module.cs b/SYS.Core/Zero/Module.cs index e7cb194..bad32ca 100644 --- a/SYS.Core/Zero/Module.cs +++ b/SYS.Core/Zero/Module.cs @@ -36,20 +36,9 @@ namespace SYS.Core /// 资料创建人 /// public string datains_usr { get; set; } - - /// - /// 资料创建时间 - /// - public DateTime? datains_time { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - - /// - /// 资料更新时间 - /// - public DateTime? datachg_time { get; set; } } } diff --git a/SYS.Core/Zero/Nation.cs b/SYS.Core/Zero/Nation.cs index 85f98b7..b1c6938 100644 --- a/SYS.Core/Zero/Nation.cs +++ b/SYS.Core/Zero/Nation.cs @@ -53,17 +53,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/Notice.cs b/SYS.Core/Zero/Notice.cs index 032a8ea..3a83b00 100644 --- a/SYS.Core/Zero/Notice.cs +++ b/SYS.Core/Zero/Notice.cs @@ -77,17 +77,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.Core/Zero/VipRule.cs b/SYS.Core/Zero/VipRule.cs index d97b673..bb5e2f7 100644 --- a/SYS.Core/Zero/VipRule.cs +++ b/SYS.Core/Zero/VipRule.cs @@ -65,24 +65,15 @@ namespace SYS.Core /// 删除标识 /// public int delete_mk { get; set; } - /// - /// 新增人 - /// - public string datains_usr { get; set; } /// - /// 新增时间 + /// 资料创建人 /// - public DateTime? datains_date { get; set; } + public string datains_usr { get; set; } /// - /// 修改人 + /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 修改时间 - /// - public DateTime? datachg_date { get; set; } - /// /// 会员等级描述 /// diff --git a/SYS.Core/Zero/position.cs b/SYS.Core/Zero/position.cs index e9d0b04..72d2dfe 100644 --- a/SYS.Core/Zero/position.cs +++ b/SYS.Core/Zero/position.cs @@ -53,17 +53,9 @@ namespace SYS.Core /// public string datains_usr { get; set; } /// - /// 资料创建时间 - /// - public DateTime? datains_date { get; set; } - /// /// 资料更新人 /// public string datachg_usr { get; set; } - /// - /// 资料更新时间 - /// - public DateTime? datachg_date { get; set; } } } diff --git a/SYS.FormUI/AppFunction/FrmAddAdmin.cs b/SYS.FormUI/AppFunction/FrmAddAdmin.cs index cba01a8..6ff76a5 100644 --- a/SYS.FormUI/AppFunction/FrmAddAdmin.cs +++ b/SYS.FormUI/AppFunction/FrmAddAdmin.cs @@ -36,7 +36,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Admin/GetAllAdmin"); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAllAdmin+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAllAdmin+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvAdminList.AutoGenerateColumns = false; @@ -53,15 +53,14 @@ namespace SYS.FormUI AdminType = cbAccountType.SelectedValue.ToString(), IsAdmin = cbAccountType.SelectedValue.ToString() == "超级管理员" ? 1 : 0, DeleteMk = 0, - datains_usr = AdminInfo.Account, - datains_time = DateTime.Now + datains_usr = AdminInfo.Account }; if (CheckInputs(admin)) { result = HttpHelper.Request("Admin​/AddAdmin", HttpHelper.ModelToJson(admin)); if (result.statusCode != 200) { - UIMessageBox.ShowError("AddAdmin+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddAdmin+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); @@ -79,7 +78,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Admin/GetAllAdminTypes"); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAllAdminTypes+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAllAdminTypes+接口服务异常,请提交Issue或尝试更新版本!"); return; } cbAccountType.DataSource = HttpHelper.JsonToList(result.message); diff --git a/SYS.FormUI/AppFunction/FrmAddRoom.Designer.cs b/SYS.FormUI/AppFunction/FrmAddRoom.Designer.cs index b229da2..e0fae6b 100644 --- a/SYS.FormUI/AppFunction/FrmAddRoom.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmAddRoom.Designer.cs @@ -118,7 +118,9 @@ this.txtMoney.Style = Sunny.UI.UIStyle.Custom; this.txtMoney.StyleCustomMode = true; this.txtMoney.TabIndex = 110; + this.txtMoney.Text = "0.00"; this.txtMoney.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; + this.txtMoney.Type = Sunny.UI.UITextBox.UIEditType.Double; // // label4 // diff --git a/SYS.FormUI/AppFunction/FrmAddRoom.cs b/SYS.FormUI/AppFunction/FrmAddRoom.cs index b0b0b3e..fcfbc05 100644 --- a/SYS.FormUI/AppFunction/FrmAddRoom.cs +++ b/SYS.FormUI/AppFunction/FrmAddRoom.cs @@ -47,7 +47,7 @@ namespace SYS.FormUI private void btnAddRoom_Click(object sender, EventArgs e) { - if (!string.IsNullOrWhiteSpace(txtRoomNo.Text)) + if (!string.IsNullOrWhiteSpace(txtRoomNo.Text)&& !txtMoney.Text.IsNullOrWhiteSpace() && !txtDeposit.Text.IsNullOrWhiteSpace()) { rn = new Room() { @@ -57,13 +57,12 @@ namespace SYS.FormUI RoomPosition = txtRoomPosition.Text, RoomStateId = 0, RoomDeposit = Convert.ToDecimal(txtDeposit.Text), - datains_usr = AdminInfo.Account, - datains_date = DateTime.Now + datains_usr = AdminInfo.Account }; result = HttpHelper.Request("Room​/InsertRoom", HttpHelper.ModelToJson(rn)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertRoom+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertRoom+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); @@ -91,7 +90,7 @@ namespace SYS.FormUI result = HttpHelper.Request("RoomType/SelectRoomTypesAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomTypesAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomTypesAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboRoomType.DataSource = HttpHelper.JsonToList(result.message); @@ -105,7 +104,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectCanUseRoomAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List rooms = HttpHelper.JsonToList(result.message); @@ -124,34 +123,34 @@ namespace SYS.FormUI private void cboRoomType_TextChanged(object sender, EventArgs e) { - if (cboRoomType.Text == "标准单人间") + if (cboRoomType.Text == nameof(RT.标准单人间)) { txtMoney.Text = "300"; txtRoomPosition.Text = "A层"; } - else if (cboRoomType.Text == "标准双人间") + else if (cboRoomType.Text == nameof(RT.标准双人间)) { txtMoney.Text = "425"; txtRoomPosition.Text = "A层"; } - else if (cboRoomType.Text == "豪华单人间") + else if (cboRoomType.Text == nameof(RT.豪华单人间)) { txtMoney.Text = "625"; txtRoomPosition.Text = "B层"; } - else if (cboRoomType.Text == "豪华双人间") + else if (cboRoomType.Text == nameof(RT.豪华双人间)) { txtMoney.Text = "660"; txtRoomPosition.Text = "B层"; } - else if (cboRoomType.Text == "情侣套房") + else if (cboRoomType.Text == nameof(RT.情侣套房)) { txtMoney.Text = "845"; txtRoomPosition.Text = "C层"; } - else if (cboRoomType.Text == "总统套房") + else if (cboRoomType.Text == nameof(RT.总统套房)) { - txtMoney.Text = "1080"; + txtMoney.Text = RT.豪华单人间.ToString(); txtRoomPosition.Text = "D层"; } } @@ -175,7 +174,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByRoomNo",null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return ret; } var room = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmAddWorker.cs b/SYS.FormUI/AppFunction/FrmAddWorker.cs index 0e0550d..34e7302 100644 --- a/SYS.FormUI/AppFunction/FrmAddWorker.cs +++ b/SYS.FormUI/AppFunction/FrmAddWorker.cs @@ -61,7 +61,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } //加载部门信息 @@ -74,7 +74,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectNationAll",null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNationAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNationAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cbWorkerNation.DataSource = HttpHelper.JsonToList(result.message); @@ -86,7 +86,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPositionAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboWorkerPosition.DataSource = HttpHelper.JsonToList(result.message); @@ -98,7 +98,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectSexTypeAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboSex.DataSource = HttpHelper.JsonToList(result.message); @@ -110,7 +110,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectEducationAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectEducationAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectEducationAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboEducation.DataSource = HttpHelper.JsonToList(result.message); @@ -161,7 +161,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerPicture/WorkerPic", null, dic); //if (result.statusCode != 200) //{ - // UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue!"); + // UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); // return; //} var workerPicSource = HttpHelper.JsonToModel(result.message); @@ -178,7 +178,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerHistory/SelectHistoryByWorkerId", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectHistoryByWorkerId+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectHistoryByWorkerId+接口服务异常,请提交Issue或尝试更新版本!"); return; } List workerHistories = HttpHelper.JsonToList(result.message); @@ -235,7 +235,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerPicture/WorkerPic", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); return; } var workerPicSource = HttpHelper.JsonToModel(result.message); @@ -256,7 +256,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerHistory/SelectHistoryByWorkerId", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectHistoryByWorkerId+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectHistoryByWorkerId+接口服务异常,请提交Issue或尝试更新版本!"); return; } List workerHistories = HttpHelper.JsonToList(result.message); @@ -294,13 +294,12 @@ namespace SYS.FormUI WorkerFace = cboWorkerFace.SelectedValue.ToString(), WorkerEducation = cboEducation.SelectedValue.ToString(), WorkerBirthday = dtpBirthday.Value, - datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now + datachg_usr = AdminInfo.Account }; var result = HttpHelper.Request("Worker/UpdateWorker", HttpHelper.ModelToJson(worker)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateWorker+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateWorker+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool i = result.message.ToString().Equals("true") ? true:false; /*new WorkerService().UpdateWorker(worker);*/ @@ -403,7 +402,7 @@ namespace SYS.FormUI var response = HttpHelper.Request("WorkerPicture/InsertWorkerPic", HttpHelper.ModelToJson(workerPic)); if (response.statusCode != 200) { - UIMessageBox.ShowError("InsertWorkerPic+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertWorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); return; } @@ -429,8 +428,7 @@ namespace SYS.FormUI WorkerTime = dtpTime.Value, WorkerFace = cboWorkerFace.Text, WorkerEducation = cboEducation.SelectedValue.ToString(), - datains_usr = AdminInfo.Account, - datains_date = DateTime.Now + datains_usr = AdminInfo.Account }; try { @@ -438,7 +436,7 @@ namespace SYS.FormUI var response = HttpHelper.Request("Worker/AddWorker", HttpHelper.ModelToJson(worker)); if (response.statusCode != 200) { - UIMessageBox.ShowError("AddWorker+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddWorker+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool n = response.message.ToString().Equals("true")?true:false; @@ -459,7 +457,7 @@ namespace SYS.FormUI response = HttpHelper.Request("WorkerHistory/AddHistoryByWorkerId", HttpHelper.ModelToJson(workerHistory)); if (response.statusCode != 200) { - UIMessageBox.ShowError("AddHistoryByWorkerId+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddHistoryByWorkerId+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool j = response.message.ToString().Equals("true") ? true : false; diff --git a/SYS.FormUI/AppFunction/FrmAdminManager.Designer.cs b/SYS.FormUI/AppFunction/FrmAdminManager.Designer.cs index b17ddd5..fcb82a4 100644 --- a/SYS.FormUI/AppFunction/FrmAdminManager.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmAdminManager.Designer.cs @@ -33,6 +33,7 @@ namespace SYS.FormUI System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAdminManager)); this.btnAuthority = new Sunny.UI.UIButton(); this.dgvAdminList = new Sunny.UI.UIDataGridView(); @@ -81,7 +82,7 @@ namespace SYS.FormUI dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F); dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvAdminList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; @@ -116,9 +117,18 @@ namespace SYS.FormUI this.dgvAdminList.Location = new System.Drawing.Point(3, 38); this.dgvAdminList.Name = "dgvAdminList"; this.dgvAdminList.ReadOnly = true; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.White; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvAdminList.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; this.dgvAdminList.RowHeadersVisible = false; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.White; - this.dgvAdminList.RowsDefaultCellStyle = dataGridViewCellStyle4; + this.dgvAdminList.RowHeight = 29; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + this.dgvAdminList.RowsDefaultCellStyle = dataGridViewCellStyle5; this.dgvAdminList.RowTemplate.Height = 29; this.dgvAdminList.SelectedIndex = -1; this.dgvAdminList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -210,7 +220,7 @@ namespace SYS.FormUI // // Column5 // - this.Column5.DataPropertyName = "datains_time"; + this.Column5.DataPropertyName = "datains_date"; this.Column5.HeaderText = "Column5"; this.Column5.Name = "Column5"; this.Column5.ReadOnly = true; @@ -226,7 +236,7 @@ namespace SYS.FormUI // // Column7 // - this.Column7.DataPropertyName = "datachg_time"; + this.Column7.DataPropertyName = "datachg_date"; this.Column7.HeaderText = "Column7"; this.Column7.Name = "Column7"; this.Column7.ReadOnly = true; diff --git a/SYS.FormUI/AppFunction/FrmAdminManager.cs b/SYS.FormUI/AppFunction/FrmAdminManager.cs index fa5501e..f6b1232 100644 --- a/SYS.FormUI/AppFunction/FrmAdminManager.cs +++ b/SYS.FormUI/AppFunction/FrmAdminManager.cs @@ -35,7 +35,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Admin/GetAllAdminList"); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAllAdminList+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAllAdminList+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvAdminList.AutoGenerateColumns = false; @@ -49,12 +49,13 @@ namespace SYS.FormUI Admin admin = new Admin() { Id = Convert.ToInt32(dgvAdminList.SelectedRows[0].Cells["clId"].Value), - DeleteMk = Convert.ToInt32(dgvAdminList.SelectedRows[0].Cells["Column1"].Value) + DeleteMk = Convert.ToInt32(dgvAdminList.SelectedRows[0].Cells["Column1"].Value), + datachg_usr = AdminInfo.Account }; result = HttpHelper.Request("Admin/UpdAccount",HttpHelper.ModelToJson(admin)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdAccount+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdAccount+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); diff --git a/SYS.FormUI/AppFunction/FrmAuthority.cs b/SYS.FormUI/AppFunction/FrmAuthority.cs index 386f9f0..d8977f9 100644 --- a/SYS.FormUI/AppFunction/FrmAuthority.cs +++ b/SYS.FormUI/AppFunction/FrmAuthority.cs @@ -39,7 +39,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Admin/GetAdminInfoByAdminAccount", null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAdminInfoByAdminAccount+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAdminInfoByAdminAccount+接口服务异常,请提交Issue或尝试更新版本!"); return; } var adminInfo = HttpHelper.JsonToModel(result.message); @@ -67,7 +67,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Module/GetAllModuleByAdmin", HttpHelper.ModelToJson(admin)); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAllModuleByAdmin+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAllModuleByAdmin+接口服务异常,请提交Issue或尝试更新版本!"); return; } var listMyModule = HttpHelper.JsonToList(result.message); @@ -78,7 +78,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Module/GetAllModule"); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAllModule+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAllModule+接口服务异常,请提交Issue或尝试更新版本!"); return; } var listModules = HttpHelper.JsonToList(result.message); @@ -113,7 +113,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Module/GetAllModuleByAdmin", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("GetAllModuleByAdmin+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("GetAllModuleByAdmin+接口服务异常,请提交Issue或尝试更新版本!"); return; } var listExsitModule = HttpHelper.JsonToList(result.message); @@ -124,7 +124,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Module/DelModuleZeroList", HttpHelper.ModelToJson(moduleZero)); if (result.statusCode != 200) { - UIMessageBox.ShowError("DelModuleZeroList+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DelModuleZeroList+接口服务异常,请提交Issue或尝试更新版本!"); return; } for (int i = 0; i < tfModuleZero.ItemsRight.Count; i++) @@ -138,7 +138,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Module/AddModuleZeroList", HttpHelper.ModelToJson(listAddModule)); if (result.statusCode != 200) { - UIMessageBox.ShowError("AddModuleZeroList+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddModuleZeroList+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); diff --git a/SYS.FormUI/AppFunction/FrmCash.cs b/SYS.FormUI/AppFunction/FrmCash.cs index e202edf..8c9faaa 100644 --- a/SYS.FormUI/AppFunction/FrmCash.cs +++ b/SYS.FormUI/AppFunction/FrmCash.cs @@ -47,7 +47,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboClub.DataSource = HttpHelper.JsonToList(result.message); @@ -57,7 +57,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Worker/SelectWorkerAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectWorkerAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectWorkerAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboCashPerson.DataSource = HttpHelper.JsonToList(result.message); @@ -80,7 +80,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Cash/SelectCashInfoAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCashInfoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCashInfoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvCashList.DataSource = HttpHelper.JsonToList(result.message); @@ -126,8 +126,7 @@ namespace SYS.FormUI CashTime = dtpDate.Value, CashSource = txtFrom.Text.Trim(), CashPerson = cboCashPerson.SelectedValue.ToString(), - datains_usr = AdminInfo.Account, - datains_date = DateTime.Now + datains_usr = AdminInfo.Account }; if (CheckInput(cash)) { @@ -137,7 +136,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Cash/AddCashInfo",HttpHelper.ModelToJson(cash)); if (result.statusCode != 200) { - UIMessageBox.ShowError("AddCashInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddCashInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool n = result.message.ToString().Equals("true")?true:false; diff --git a/SYS.FormUI/AppFunction/FrmChangeAdminPwd.cs b/SYS.FormUI/AppFunction/FrmChangeAdminPwd.cs index 689463c..d2c6ec0 100644 --- a/SYS.FormUI/AppFunction/FrmChangeAdminPwd.cs +++ b/SYS.FormUI/AppFunction/FrmChangeAdminPwd.cs @@ -56,11 +56,11 @@ namespace SYS.FormUI private void btnUpdPwd_Click(object sender, EventArgs e) { - Admin admin = new Admin() { AdminAccount = AdminInfo.Account, AdminPassword = txtNewPwd.Text.Trim() }; + Admin admin = new Admin() { AdminAccount = AdminInfo.Account, AdminPassword = txtNewPwd.Text.Trim(),datachg_usr = AdminInfo.Account }; result = HttpHelper.Request("Admin​/UpdateNewPwdByOldPwd", HttpHelper.ModelToJson(admin)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateNewPwdByOldPwd+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateNewPwdByOldPwd+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); @@ -91,7 +91,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Admin​/SelectMangerByPass", HttpHelper.ModelToJson(admin)); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectMangerByPass+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectMangerByPass+接口服务异常,请提交Issue或尝试更新版本!"); return; } var source = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmChangePosition.cs b/SYS.FormUI/AppFunction/FrmChangePosition.cs index 3a8df18..a40abed 100644 --- a/SYS.FormUI/AppFunction/FrmChangePosition.cs +++ b/SYS.FormUI/AppFunction/FrmChangePosition.cs @@ -60,7 +60,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPositionAll",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboNewPosition.DataSource = HttpHelper.JsonToList(result.message); @@ -70,7 +70,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboNewClub.DataSource = HttpHelper.JsonToList(result.message); @@ -95,12 +95,13 @@ namespace SYS.FormUI { WorkerClub = cboNewClub.SelectedValue.ToString(), WorkerPosition = cboNewPosition.SelectedValue.ToString(), - WorkerId = txtworkerId.Text + WorkerId = txtworkerId.Text, + datachg_usr = AdminInfo.Account }; result = HttpHelper.Request("Worker​/UpdateWorkerPositionAndClub", HttpHelper.ModelToJson(worker)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateWorkerPositionAndClub+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateWorkerPositionAndClub+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool n = result.message.ToString().Equals("true"); diff --git a/SYS.FormUI/AppFunction/FrmChangeRoom.cs b/SYS.FormUI/AppFunction/FrmChangeRoom.cs index c2b6a42..150230f 100644 --- a/SYS.FormUI/AppFunction/FrmChangeRoom.cs +++ b/SYS.FormUI/AppFunction/FrmChangeRoom.cs @@ -48,7 +48,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectCanUseRoomAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboRoomList.DataSource = HttpHelper.JsonToList(result.message); @@ -70,8 +70,7 @@ namespace SYS.FormUI CustoNo = ucRoomList.CustoNo, RoomStateId = 1, CheckTime = DateTime.Now, - datains_usr = LoginInfo.WorkerNo, - datains_date = DateTime.Now + datains_usr = LoginInfo.WorkerNo }; dic = new Dictionary() { @@ -80,7 +79,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/DayByRoomNo",null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("DayByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DayByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (rno.StartsWith("BD")) @@ -122,7 +121,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room​/UpdateRoomInfo",HttpHelper.ModelToJson(checkInRoom), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateRoomInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateRoomInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool result1 = result.message.ToString().Equals("true"); @@ -133,7 +132,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room​/UpdateRoomByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateRoomByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool result2 = result.message.ToString().Equals("true"); @@ -144,7 +143,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend​/SelectSpendByCustoNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSpendByCustoNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSpendByCustoNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } var result3 = HttpHelper.JsonToList(result.message); @@ -154,7 +153,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend​/UpdateSpendInfoByRoomNo", HttpHelper.ModelToJson(spend)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateSpendInfoByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateSpendInfoByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool result4 = result.message.ToString().Equals("true"); @@ -165,7 +164,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend​/InsertSpendInfo", HttpHelper.ModelToJson(s)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertSpendInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertSpendInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool m = result.message.ToString().Equals("true"); diff --git a/SYS.FormUI/AppFunction/FrmChangeWorker.cs b/SYS.FormUI/AppFunction/FrmChangeWorker.cs index 156fa05..7e4f24b 100644 --- a/SYS.FormUI/AppFunction/FrmChangeWorker.cs +++ b/SYS.FormUI/AppFunction/FrmChangeWorker.cs @@ -268,7 +268,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Worker​/ManagerWorkerAccount", HttpHelper.ModelToJson(worker)); if (result.statusCode != 200) { - UIMessageBox.ShowError("ManagerWorkerAccount+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("ManagerWorkerAccount+接口服务异常,请提交Issue或尝试更新版本!"); return; } #region 获取添加操作日志所需的信息 @@ -287,7 +287,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Worker​/ManagerWorkerAccount", HttpHelper.ModelToJson(worker)); if (result.statusCode != 200) { - UIMessageBox.ShowError("ManagerWorkerAccount+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("ManagerWorkerAccount+接口服务异常,请提交Issue或尝试更新版本!"); return; } #region 获取添加操作日志所需的信息 diff --git a/SYS.FormUI/AppFunction/FrmChart.cs b/SYS.FormUI/AppFunction/FrmChart.cs index b2af470..33b41b7 100644 --- a/SYS.FormUI/AppFunction/FrmChart.cs +++ b/SYS.FormUI/AppFunction/FrmChart.cs @@ -50,7 +50,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectAllMoney"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectAllMoney+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectAllMoney+接口服务异常,请提交Issue或尝试更新版本!"); return; } var listHotelMoney = HttpHelper.JsonToList(result.message); diff --git a/SYS.FormUI/AppFunction/FrmCheckIn.cs b/SYS.FormUI/AppFunction/FrmCheckIn.cs index ce020ea..0bcf46d 100644 --- a/SYS.FormUI/AppFunction/FrmCheckIn.cs +++ b/SYS.FormUI/AppFunction/FrmCheckIn.cs @@ -214,8 +214,7 @@ namespace SYS.FormUI CustoNo = txtCustoNo.Text, RoomStateId = 1, RoomNo = txtRoomNo.Text, - datachg_usr = LoginInfo.WorkerNo, - datachg_date = DateTime.Now, + datachg_usr = LoginInfo.WorkerNo }; result = HttpHelper.Request("Room/UpdateRoomInfo", HttpHelper.ModelToJson(r), null); if (result.statusCode != 200) diff --git a/SYS.FormUI/AppFunction/FrmCheckList.cs b/SYS.FormUI/AppFunction/FrmCheckList.cs index ee96a09..bbbd961 100644 --- a/SYS.FormUI/AppFunction/FrmCheckList.cs +++ b/SYS.FormUI/AppFunction/FrmCheckList.cs @@ -44,7 +44,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("CheckInfo/SelectCheckInfoAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCheckInfoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCheckInfoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvCheckInfo.AutoGenerateColumns = false; diff --git a/SYS.FormUI/AppFunction/FrmCheckOutForm.cs b/SYS.FormUI/AppFunction/FrmCheckOutForm.cs index 7026a34..9e8f8b8 100644 --- a/SYS.FormUI/AppFunction/FrmCheckOutForm.cs +++ b/SYS.FormUI/AppFunction/FrmCheckOutForm.cs @@ -89,7 +89,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectCustoTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List lstSourceGrid = HttpHelper.JsonToList(result.message); @@ -104,7 +104,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPassPortTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List passPorts = HttpHelper.JsonToList(result.message); @@ -118,7 +118,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectSexTypeAll?delete_mk=0"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List listSexType = HttpHelper.JsonToList(result.message); @@ -132,16 +132,28 @@ namespace SYS.FormUI txtCustoNo.Text = ucRoomList.rm_CustoNo; CustoNo.Text = ucRoomList.rm_CustoNo; txtRoomNo.Text = ucRoomList.rm_RoomNo; - string rn = txtRoomNo.Text.ToString(); - string rs = rn.Substring(0, 2); + + dic = new Dictionary() + { + { "no",txtRoomNo.Text.ToString()} + }; - if (ucRoomList.co_CheckTime == null) + result = HttpHelper.Request("Room/SelectRoomByRoomNo",null, dic); + if (result.statusCode != 200) + { + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); + return; + } + + Room room = HttpHelper.JsonToModel(result.message); + + if (room.CheckTime == null) { dtpCheckTime.Text = DateTime.Now.ToString("yyyy年MM月dd日"); } else { - dtpCheckTime.Text = Convert.ToDateTime(ucRoomList.co_CheckTime).ToString("yyyy年MM月dd日"); + dtpCheckTime.Text = Convert.ToDateTime(room.CheckTime).ToString("yyyy年MM月dd日"); } dic = new Dictionary() { @@ -150,33 +162,12 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/DayByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("DayByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DayByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } - if (rs == "BD") - { - sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * 300)); - } - if (rs == "BS") - { - sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * 425)); - } - if (rs == "HD") - { - sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * 625)); - } - if (rs == "HS") - { - sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * 660)); - } - if (rs == "QL") - { - sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * 845)); - } - if (rs == "ZT") - { - sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * 1080)); - } + + sum = Convert.ToDouble(Convert.ToString(Convert.ToInt32(result.message) * room.RoomMoney)); + lblDay.Text = Convert.ToString(Convert.ToInt32(result.message)); w = new Wti() { @@ -197,7 +188,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo​/SelectCardInfoByCustoNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCardInfoByCustoNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCardInfoByCustoNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } Custo cto = HttpHelper.JsonToModel(result.message); @@ -230,7 +221,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend/SelectSpendInfoRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSpendInfoRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSpendInfoRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvSpendList.AutoGenerateColumns = false; @@ -250,7 +241,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend/SelectMoneyByRoomNoAndTime", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectMoneyByRoomNoAndTime+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectMoneyByRoomNoAndTime+接口服务异常,请提交Issue或尝试更新版本!"); return; } total = Convert.ToDouble(result.message); @@ -266,7 +257,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Wti/ListWtiInfoByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("ListWtiInfoByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("ListWtiInfoByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } var listWti = HttpHelper.JsonToList(result.message); @@ -364,7 +355,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } Room r = HttpHelper.JsonToModel(result.message);//根据房间编号查询房间信息 @@ -378,7 +369,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/UpdateRoomByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateRoomByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool n = result.message.ToString().Equals("true"); @@ -387,7 +378,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Wti​/InsertWtiInfo", HttpHelper.ModelToJson(w)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertWtiInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertWtiInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } this.Close(); @@ -414,7 +405,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend​/UpdateMoneyState", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateMoneyState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateMoneyState+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (result.message.ToString().Equals("true")) @@ -426,7 +417,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/UpdateRoomByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateMoneyState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateMoneyState+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool n = result.message.ToString().Equals("true"); @@ -435,7 +426,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Wti​/InsertWtiInfo", HttpHelper.ModelToJson(w)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertWtiInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertWtiInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } this.Close(); diff --git a/SYS.FormUI/AppFunction/FrmCustoManager.cs b/SYS.FormUI/AppFunction/FrmCustoManager.cs index f448560..a14be72 100644 --- a/SYS.FormUI/AppFunction/FrmCustoManager.cs +++ b/SYS.FormUI/AppFunction/FrmCustoManager.cs @@ -94,7 +94,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoAll",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } OSelectCustoAllDto custos = HttpHelper.JsonToModel(result.message); @@ -152,7 +152,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoByInfo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } custos = HttpHelper.JsonToModel(result.message); @@ -166,7 +166,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoByInfo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } custos = HttpHelper.JsonToModel(result.message); @@ -176,7 +176,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoAll?pageIndex=1&pageSize=15"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } custos = HttpHelper.JsonToModel(result.message); @@ -263,7 +263,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } OSelectCustoAllDto custos = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmCustoSpend.cs b/SYS.FormUI/AppFunction/FrmCustoSpend.cs index 464d74f..6bdcc12 100644 --- a/SYS.FormUI/AppFunction/FrmCustoSpend.cs +++ b/SYS.FormUI/AppFunction/FrmCustoSpend.cs @@ -43,7 +43,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Spend/SelectSpendInfoAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSpendInfoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSpendInfoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvSpendList.AutoGenerateColumns = false; diff --git a/SYS.FormUI/AppFunction/FrmCustomerManager.cs b/SYS.FormUI/AppFunction/FrmCustomerManager.cs index 160fc51..f820504 100644 --- a/SYS.FormUI/AppFunction/FrmCustomerManager.cs +++ b/SYS.FormUI/AppFunction/FrmCustomerManager.cs @@ -72,7 +72,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } OSelectCustoAllDto custos = HttpHelper.JsonToModel(result.message); @@ -172,7 +172,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoByInfo", HttpHelper.ModelToJson(custo)); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } //custos = HttpHelper.JsonToList(result.message); @@ -189,12 +189,12 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoByInfo", HttpHelper.ModelToJson(custo)); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } //if (result.statusCode != 200) //{ - // UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue!"); + // UIMessageBox.ShowError("SelectCustoByInfo+接口服务异常,请提交Issue或尝试更新版本!"); // return; //} //var listSource = HttpHelper.JsonToModel(result.message); @@ -206,7 +206,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoAll?pageIndex=1&pageSize=15"); //if (result.statusCode != 200) //{ - // UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + // UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); // return; //} var listSource = HttpHelper.JsonToModel(result.message); @@ -266,7 +266,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Custo/SelectCustoAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } OSelectCustoAllDto custos = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmDepartment.Designer.cs b/SYS.FormUI/AppFunction/FrmDepartment.Designer.cs index 4f46cfb..d202186 100644 --- a/SYS.FormUI/AppFunction/FrmDepartment.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmDepartment.Designer.cs @@ -133,7 +133,7 @@ namespace SYS.FormUI this.dgvDeptList.ShowGridLine = true; this.dgvDeptList.Size = new System.Drawing.Size(788, 582); this.dgvDeptList.TabIndex = 0; - this.dgvDeptList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDeptList_CellClick); + this.dgvDeptList.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvDeptList_CellMouseClick); // // clDeptNo // diff --git a/SYS.FormUI/AppFunction/FrmDepartment.cs b/SYS.FormUI/AppFunction/FrmDepartment.cs index df5c3b5..78d5c47 100644 --- a/SYS.FormUI/AppFunction/FrmDepartment.cs +++ b/SYS.FormUI/AppFunction/FrmDepartment.cs @@ -62,7 +62,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvDeptList.DataSource =HttpHelper.JsonToList(result.message); @@ -73,7 +73,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboDeptParent.DataSource = HttpHelper.JsonToList(result.message); @@ -86,7 +86,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Worker/SelectWorkerAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectWorkerAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectWorkerAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboDeptLeader.DataSource = HttpHelper.JsonToList(result.message); @@ -120,14 +120,15 @@ namespace SYS.FormUI dept_desc = txtDeptDesc.Text.Trim(), dept_parent = cboDeptParent.SelectedValue.ToString(), dept_date = DateTime.Now, - dept_leader = cboDeptLeader.SelectedValue.ToString() + dept_leader = cboDeptLeader.SelectedValue.ToString(), + datains_usr = AdminInfo.Account }; if (CheckInput(dept)) { result = HttpHelper.Request("Base/AddDept",HttpHelper.ModelToJson(dept)); if (result.statusCode != 200) { - UIMessageBox.ShowError("AddDept+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddDept+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); @@ -155,12 +156,7 @@ namespace SYS.FormUI private void dgvDeptList_CellClick(object sender, DataGridViewCellEventArgs e) { - if (dgvDeptList.SelectedRows.Count == 1) - { - txtDeptNo.Text = dgvDeptList.SelectedRows[0].Cells["clDeptNo"].Value.ToString(); - txtDeptName.Text = dgvDeptList.SelectedRows[0].Cells["clDeptName"].Value.ToString(); - txtDeptDesc.Text = dgvDeptList.SelectedRows[0].Cells["clDeptDesc"].Value.ToString(); - } + } private void btnUpdateDept_Click(object sender, EventArgs e) @@ -173,14 +169,13 @@ namespace SYS.FormUI dept_parent = cboDeptParent.SelectedValue == null ? "" : cboDeptParent.SelectedValue.ToString(), dept_leader = cboDeptLeader.SelectedValue == null ? "" : cboDeptLeader.SelectedValue.ToString(), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; if (CheckInput(dept)) { result = HttpHelper.Request("Base/UpdDept", HttpHelper.ModelToJson(dept)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdDept+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdDept+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); @@ -209,17 +204,34 @@ namespace SYS.FormUI { if (dgvDeptList.SelectedRows.Count > 0) { + //删除前先检索该部门下是否存在员工 + dic = new Dictionary() + { + { "deptNo",txtDeptNo.Text.Trim()} + }; + result = HttpHelper.Request("Worker/CheckWorkerBydepartment",null, dic); + if (result.statusCode != 200) + { + UIMessageBox.ShowError("CheckWorkerBydepartment+接口服务异常,请提交Issue或尝试更新版本!"); + return; + } + + if (result.message.ToString().Equals("true")) + { + UIMessageBox.ShowError("当前部门下存在工作人员信息,无法删除该部门"); + return; + } + Dept dept = new Dept() { dept_no = txtDeptNo.Text.Trim(), delete_mk = 1, datachg_usr = AdminInfo.Account, - datains_date = DateTime.Now }; result = HttpHelper.Request("Base/DelDept", HttpHelper.ModelToJson(dept)); if (result.statusCode != 200) { - UIMessageBox.ShowError("DelDept+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DelDept+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true"); @@ -239,6 +251,16 @@ namespace SYS.FormUI } } + + private void dgvDeptList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + if (dgvDeptList.SelectedRows.Count == 1) + { + txtDeptNo.Text = dgvDeptList.SelectedRows[0].Cells["clDeptNo"].Value.ToString(); + txtDeptName.Text = dgvDeptList.SelectedRows[0].Cells["clDeptName"].Value.ToString(); + txtDeptDesc.Text = dgvDeptList.SelectedRows[0].Cells["clDeptDesc"].Value.ToString(); + } + } } diff --git a/SYS.FormUI/AppFunction/FrmEditInputs.cs b/SYS.FormUI/AppFunction/FrmEditInputs.cs index 45ece6a..a875a3a 100644 --- a/SYS.FormUI/AppFunction/FrmEditInputs.cs +++ b/SYS.FormUI/AppFunction/FrmEditInputs.cs @@ -43,7 +43,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Base/SelectCustoTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List lstSourceGrid = HttpHelper.JsonToList(result.message); @@ -58,7 +58,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPassPortTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List passPorts = HttpHelper.JsonToList(result.message); @@ -72,7 +72,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectSexTypeAll?delete_mk=0"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List listSexType = HttpHelper.JsonToList(result.message); @@ -123,13 +123,12 @@ namespace SYS.FormUI CustoTel = txtTel.Text, CustoAdress = txtCustoAdress.Text, datachg_usr = LoginInfo.WorkerNo == null ? AdminInfo.Account : LoginInfo.WorkerNo, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Custo/UpdCustomerInfoByCustoNo", HttpHelper.ModelToJson(custo)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdCustomerInfoByCustoNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdCustomerInfoByCustoNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool t = result.message.ToString().Equals("true") ? true : false; @@ -175,14 +174,13 @@ namespace SYS.FormUI CustoTel = txtTel.Text, CustoAdress = txtCustoAdress.Text, datains_usr = LoginInfo.WorkerNo == null ? AdminInfo.Account : LoginInfo.WorkerNo, - datains_date = DateTime.Now }; result = HttpHelper.Request("Custo/InsertCustomerInfo", HttpHelper.ModelToJson(custo), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertCustomerInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertCustomerInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (result.message.ToString().Equals("true")) diff --git a/SYS.FormUI/AppFunction/FrmEducation.Designer.cs b/SYS.FormUI/AppFunction/FrmEducation.Designer.cs index 18b4e32..cee511b 100644 --- a/SYS.FormUI/AppFunction/FrmEducation.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmEducation.Designer.cs @@ -45,7 +45,7 @@ namespace SYS.FormUI this.dgvEducationList = new Sunny.UI.UIDataGridView(); this.clEducationNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.clEducationName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.clDeleteMk = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -175,7 +175,7 @@ namespace SYS.FormUI this.dgvEducationList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.clEducationNo, this.clEducationName, - this.Column1, + this.clDeleteMk, this.Column2, this.Column3, this.Column4, @@ -213,7 +213,7 @@ namespace SYS.FormUI this.dgvEducationList.ShowGridLine = true; this.dgvEducationList.Size = new System.Drawing.Size(788, 582); this.dgvEducationList.TabIndex = 185; - this.dgvEducationList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEducationList_CellClick); + this.dgvEducationList.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEducationList_CellMouseClick); // // clEducationNo // @@ -229,13 +229,13 @@ namespace SYS.FormUI this.clEducationName.Name = "clEducationName"; this.clEducationName.ReadOnly = true; // - // Column1 + // clDeleteMk // - this.Column1.DataPropertyName = "delete_mk"; - this.Column1.HeaderText = "Column1"; - this.Column1.Name = "Column1"; - this.Column1.ReadOnly = true; - this.Column1.Visible = false; + this.clDeleteMk.DataPropertyName = "delete_mk"; + this.clDeleteMk.HeaderText = "Column1"; + this.clDeleteMk.Name = "clDeleteMk"; + this.clDeleteMk.ReadOnly = true; + this.clDeleteMk.Visible = false; // // Column2 // @@ -309,7 +309,7 @@ namespace SYS.FormUI private Sunny.UI.UIDataGridView dgvEducationList; private System.Windows.Forms.DataGridViewTextBoxColumn clEducationNo; private System.Windows.Forms.DataGridViewTextBoxColumn clEducationName; - private System.Windows.Forms.DataGridViewTextBoxColumn Column1; + private System.Windows.Forms.DataGridViewTextBoxColumn clDeleteMk; private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column3; private System.Windows.Forms.DataGridViewTextBoxColumn Column4; diff --git a/SYS.FormUI/AppFunction/FrmEducation.cs b/SYS.FormUI/AppFunction/FrmEducation.cs index 54c3161..d8dc0d1 100644 --- a/SYS.FormUI/AppFunction/FrmEducation.cs +++ b/SYS.FormUI/AppFunction/FrmEducation.cs @@ -71,7 +71,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectEducationAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectEducationAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectEducationAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } educations = HttpHelper.JsonToList(result.message); @@ -92,13 +92,12 @@ namespace SYS.FormUI education_no = txtEducationNo.Text.Trim(), education_name = txtEducationName.Text.Trim(), delete_mk = 0, - datains_usr = AdminInfo.Account, - datains_date = DateTime.Now + datains_usr = AdminInfo.Account }; result = HttpHelper.Request("Base​/AddEducation",HttpHelper.ModelToJson(edu)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("AddEducation+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("AddEducation+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } UIMessageTip.ShowOk("添加学历成功!", 1500); @@ -122,12 +121,11 @@ namespace SYS.FormUI education_no = txtEducationNo.Text.Trim(), education_name = txtEducationName.Text.Trim(), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Base​/UpdEducation", HttpHelper.ModelToJson(edu)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("UpdEducation+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("UpdEducation+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } } @@ -144,20 +142,49 @@ namespace SYS.FormUI education_no = txtEducationNo.Text.Trim(), education_name = txtEducationName.Text.Trim(), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Base​/DelEducation", HttpHelper.ModelToJson(edu)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("DelEducation+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("DelEducation+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } + UIMessageTip.ShowOk("删除成功!"); + return; + } + + private void dgvEducationList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + txtEducationNo.Text = dgvEducationList.SelectedRows[0].Cells["clEducationNo"].Value.ToString(); + txtEducationName.Text = dgvEducationList.SelectedRows[0].Cells["clEducationName"].Value.ToString(); + if (dgvEducationList.SelectedRows[0].Cells["clDeleteMk"].Value.ToString() == "1") + { + btnDeleteEducation.Text = "恢复学历"; + btnDeleteEducation.FillColor = Color.Green; + btnDeleteEducation.Click += btnRecoveryEducation_Click; + } } - private void dgvEducationList_CellClick(object sender, DataGridViewCellEventArgs e) + private void btnRecoveryEducation_Click(object sender, EventArgs e) { - txtEducationNo.Text = dgvEducationList.Rows[0].Cells["clEducationNo"].Value.ToString(); - txtEducationName.Text = dgvEducationList.Rows[0].Cells["clEducationName"].Value.ToString(); + if (dgvEducationList.SelectedRows.Count <= 0) + { + UIMessageTip.ShowWarning("未选择需修改的学历数据,请检查", 1500); + return; + } + var edu = new Education() + { + education_no = txtEducationNo.Text.Trim(), + education_name = txtEducationName.Text.Trim(), + delete_mk = 0, + datachg_usr = AdminInfo.Account, + }; + result = HttpHelper.Request("Base​/UpdEducation", HttpHelper.ModelToJson(edu)); + if (result.statusCode != 200 || result.message.ToString().Equals("false")) + { + UIMessageTip.ShowError("UpdEducation+接口服务异常,请提交Issue或尝试更新版本!", 1500); + return; + } } } } diff --git a/SYS.FormUI/AppFunction/FrmEducation.resx b/SYS.FormUI/AppFunction/FrmEducation.resx index 94aa12d..02a1cfd 100644 --- a/SYS.FormUI/AppFunction/FrmEducation.resx +++ b/SYS.FormUI/AppFunction/FrmEducation.resx @@ -123,7 +123,7 @@ True - + True diff --git a/SYS.FormUI/AppFunction/FrmGoodOrBad.cs b/SYS.FormUI/AppFunction/FrmGoodOrBad.cs index 00e1fa2..b44a48c 100644 --- a/SYS.FormUI/AppFunction/FrmGoodOrBad.cs +++ b/SYS.FormUI/AppFunction/FrmGoodOrBad.cs @@ -53,7 +53,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectGBTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectGBTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectGBTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } CboType.DataSource = HttpHelper.JsonToList(result.message); @@ -74,7 +74,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerGoodBad/SelectAllGoodBadByWorkNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectAllGoodBadByWorkNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectAllGoodBadByWorkNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } DgvGoodBadList.AutoGenerateColumns = false; @@ -116,7 +116,6 @@ namespace SYS.FormUI GBOperation = AdminInfo.Account, GBTime = DtpDate.Value, datains_usr = AdminInfo.Account, - datains_date = DateTime.Now }; if (CheckInput(goodBad)) { @@ -126,7 +125,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerGoodBad​/AddGoodBad",HttpHelper.ModelToJson(goodBad)); if (result.statusCode != 200) { - UIMessageBox.ShowError("AddGoodBad+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("AddGoodBad+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool n = result.message.ToString().Equals("true"); diff --git a/SYS.FormUI/AppFunction/FrmMySpace.cs b/SYS.FormUI/AppFunction/FrmMySpace.cs index 0d5f8f2..481b6e9 100644 --- a/SYS.FormUI/AppFunction/FrmMySpace.cs +++ b/SYS.FormUI/AppFunction/FrmMySpace.cs @@ -57,7 +57,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Base/SelectNationAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNationAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNationAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cbWorkerNation.DataSource = HttpHelper.JsonToList(result.message); @@ -69,7 +69,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectSexTypeAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboSex.DataSource = HttpHelper.JsonToList(result.message); @@ -79,7 +79,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboWorkerClub.DataSource = HttpHelper.JsonToList(result.message); @@ -91,7 +91,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPositionAll", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboWorkerPosition.DataSource = HttpHelper.JsonToList(result.message); @@ -112,7 +112,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Worker/SelectWorkerInfoByWorkerId", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectWorkerInfoByWorkerId+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectWorkerInfoByWorkerId+接口服务异常,请提交Issue或尝试更新版本!"); return; } Worker worker = HttpHelper.JsonToModel(result.message); @@ -135,7 +135,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerPicture/WorkerPic", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); return; } var workerPicSource = HttpHelper.JsonToModel(result.message); @@ -163,7 +163,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Worker/SelectWorkerInfoByWorkerIdAndWorkerPwd", HttpHelper.ModelToJson(worker), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectWorkerInfoByWorkerIdAndWorkerPwd+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectWorkerInfoByWorkerIdAndWorkerPwd+接口服务异常,请提交Issue或尝试更新版本!"); return; } worker = HttpHelper.JsonToModel(result.message); @@ -217,7 +217,7 @@ namespace SYS.FormUI var result = HttpHelper.Request("Worker/UpdWorkerPwdByWorkNo", HttpHelper.ModelToJson(new Worker { WorkerId = LoginInfo.WorkerNo, WorkerPwd = txtNewPwd.Text.Trim() }), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdWorkerPwdByWorkNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdWorkerPwdByWorkNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true") ? true : false; @@ -275,8 +275,7 @@ namespace SYS.FormUI WorkerNation = cbWorkerNation.SelectedValue.ToString(), WorkerTel = txtTel.Text.Trim(), WorkerAddress = txtAddress.Text.Trim(), - datachg_usr = LoginInfo.WorkerNo, - datachg_date = DateTime.Now + datachg_usr = LoginInfo.WorkerNo }; if (CheckInput(worker)) @@ -284,7 +283,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Worker/UpdateWorker", HttpHelper.ModelToJson(worker), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateWorker+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateWorker+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool tf = result.message.ToString().Equals("true") ? true:false; @@ -324,7 +323,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerPicture/WorkerPic", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("WorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); return; } var source = HttpHelper.JsonToModel(result.message); @@ -333,7 +332,7 @@ namespace SYS.FormUI result = HttpHelper.Request("WorkerPicture/DeleteWorkerPic", HttpHelper.ModelToJson(workerPic), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("DeleteWorkerPic+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DeleteWorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (result.message.ToString().Equals("true")) @@ -361,7 +360,7 @@ namespace SYS.FormUI var requestResult = HttpHelper.Request("WorkerPicture/InsertWorkerPic", HttpHelper.ModelToJson(workerPic), null); if (requestResult.statusCode != 200) { - UIMessageBox.ShowError("InsertWorkerPic+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertWorkerPic+接口服务异常,请提交Issue或尝试更新版本!"); return; } picWorkerPic.BackgroundImage = null; diff --git a/SYS.FormUI/AppFunction/FrmNation.Designer.cs b/SYS.FormUI/AppFunction/FrmNation.Designer.cs index ba38028..b28ca19 100644 --- a/SYS.FormUI/AppFunction/FrmNation.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmNation.Designer.cs @@ -45,7 +45,7 @@ namespace SYS.FormUI this.dgvNationList = new Sunny.UI.UIDataGridView(); this.clNationNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.clNationName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.clDeleteMk = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -175,7 +175,7 @@ namespace SYS.FormUI this.dgvNationList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.clNationNo, this.clNationName, - this.Column1, + this.clDeleteMk, this.Column2, this.Column3, this.Column4, @@ -213,7 +213,7 @@ namespace SYS.FormUI this.dgvNationList.ShowGridLine = true; this.dgvNationList.Size = new System.Drawing.Size(788, 582); this.dgvNationList.TabIndex = 199; - this.dgvNationList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvNationList_CellClick); + this.dgvNationList.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvNationList_CellMouseClick); // // clNationNo // @@ -229,13 +229,13 @@ namespace SYS.FormUI this.clNationName.Name = "clNationName"; this.clNationName.ReadOnly = true; // - // Column1 + // clDeleteMk // - this.Column1.DataPropertyName = "delete_mk"; - this.Column1.HeaderText = "Column1"; - this.Column1.Name = "Column1"; - this.Column1.ReadOnly = true; - this.Column1.Visible = false; + this.clDeleteMk.DataPropertyName = "delete_mk"; + this.clDeleteMk.HeaderText = "Column1"; + this.clDeleteMk.Name = "clDeleteMk"; + this.clDeleteMk.ReadOnly = true; + this.clDeleteMk.Visible = false; // // Column2 // @@ -309,7 +309,7 @@ namespace SYS.FormUI private Sunny.UI.UIDataGridView dgvNationList; private System.Windows.Forms.DataGridViewTextBoxColumn clNationNo; private System.Windows.Forms.DataGridViewTextBoxColumn clNationName; - private System.Windows.Forms.DataGridViewTextBoxColumn Column1; + private System.Windows.Forms.DataGridViewTextBoxColumn clDeleteMk; private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column3; private System.Windows.Forms.DataGridViewTextBoxColumn Column4; diff --git a/SYS.FormUI/AppFunction/FrmNation.cs b/SYS.FormUI/AppFunction/FrmNation.cs index 8318dc1..65ccd11 100644 --- a/SYS.FormUI/AppFunction/FrmNation.cs +++ b/SYS.FormUI/AppFunction/FrmNation.cs @@ -65,10 +65,11 @@ namespace SYS.FormUI public void ReloadNationList() { txtNationNo.Text = Util.GetListNewId("N", 3, 1, "-").FirstOrDefault(); + result = HttpHelper.Request("Base/SelectNationAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNationAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNationAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } nations = HttpHelper.JsonToList(result.message); @@ -76,12 +77,6 @@ namespace SYS.FormUI dgvNationList.DataSource = nations; } - private void dgvNationList_CellClick(object sender, DataGridViewCellEventArgs e) - { - txtNationNo.Text = dgvNationList.Rows[0].Cells["clNationNo"].Value.ToString(); - txtNationName.Text = dgvNationList.Rows[0].Cells["clNationName"].Value.ToString(); - } - private void btnAddNation_Click(object sender, EventArgs e) { if (txtNationName.Text.Trim().IsNullOrEmpty()) @@ -96,12 +91,11 @@ namespace SYS.FormUI nation_name = txtNationName.Text.Trim(), delete_mk = 0, datains_usr = AdminInfo.Account, - datains_date = DateTime.Now }; result = HttpHelper.Request("Base​/AddNation", HttpHelper.ModelToJson(nat)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("AddNation+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("AddNation+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } UIMessageTip.ShowOk("添加民族成功!", 1500); @@ -124,12 +118,11 @@ namespace SYS.FormUI nation_no = txtNationNo.Text.Trim(), nation_name = txtNationName.Text.Trim(), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Base​/UpdNation", HttpHelper.ModelToJson(nat)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("UpdNation+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("UpdNation+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } } @@ -146,12 +139,47 @@ namespace SYS.FormUI nation_no = txtNationNo.Text.Trim(), nation_name = txtNationName.Text.Trim(), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Base​/DelNation", HttpHelper.ModelToJson(nat)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("DelNation+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("DelNation+接口服务异常,请提交Issue或尝试更新版本!", 1500); + return; + } + UIMessageTip.ShowOk("删除成功!"); + return; + } + + private void dgvNationList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + txtNationNo.Text = dgvNationList.SelectedRows[0].Cells["clNationNo"].Value.ToString(); + txtNationName.Text = dgvNationList.SelectedRows[0].Cells["clNationName"].Value.ToString(); + if (dgvNationList.SelectedRows[0].Cells["clDeleteMk"].Value.ToString() == "1") + { + btnDeleteNation.Text = "恢复民族"; + btnDeleteNation.FillColor = Color.Green; + btnDeleteNation.Click += btnRecoveryNation_Click; + } + } + + private void btnRecoveryNation_Click(object sender, EventArgs e) + { + if (dgvNationList.SelectedRows.Count <= 0) + { + UIMessageTip.ShowWarning("未选择需修改的民族数据,请检查", 1500); + return; + } + var nat = new Nation() + { + nation_no = txtNationNo.Text.Trim(), + nation_name = txtNationName.Text.Trim(), + delete_mk = 0, + datachg_usr = AdminInfo.Account, + }; + result = HttpHelper.Request("Base​/UpdNation", HttpHelper.ModelToJson(nat)); + if (result.statusCode != 200 || result.message.ToString().Equals("false")) + { + UIMessageTip.ShowError("UpdNation+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } } diff --git a/SYS.FormUI/AppFunction/FrmNation.resx b/SYS.FormUI/AppFunction/FrmNation.resx index be7812f..ba89dc9 100644 --- a/SYS.FormUI/AppFunction/FrmNation.resx +++ b/SYS.FormUI/AppFunction/FrmNation.resx @@ -123,7 +123,7 @@ True - + True diff --git a/SYS.FormUI/AppFunction/FrmNotice.cs b/SYS.FormUI/AppFunction/FrmNotice.cs index 6c9aca9..89cd722 100644 --- a/SYS.FormUI/AppFunction/FrmNotice.cs +++ b/SYS.FormUI/AppFunction/FrmNotice.cs @@ -52,7 +52,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Notice/SelectNoticeAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNoticeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNoticeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List notices = HttpHelper.JsonToList(result.message); @@ -73,7 +73,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Notice/SelectNoticeByNoticeNo",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNoticeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNoticeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } Notice notice = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmOperation.cs b/SYS.FormUI/AppFunction/FrmOperation.cs index 2a03527..f53188a 100644 --- a/SYS.FormUI/AppFunction/FrmOperation.cs +++ b/SYS.FormUI/AppFunction/FrmOperation.cs @@ -46,7 +46,7 @@ namespace SYS.FormUI result = HttpHelper.Request("App/SelectOperationlogAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectOperationlogAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectOperationlogAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvOperationlog.AutoGenerateColumns = false; diff --git a/SYS.FormUI/AppFunction/FrmPosition.Designer.cs b/SYS.FormUI/AppFunction/FrmPosition.Designer.cs index 6bd26bd..4836041 100644 --- a/SYS.FormUI/AppFunction/FrmPosition.Designer.cs +++ b/SYS.FormUI/AppFunction/FrmPosition.Designer.cs @@ -45,7 +45,7 @@ namespace SYS.FormUI this.dgvPositionList = new Sunny.UI.UIDataGridView(); this.clPositionNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.clPositionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.clDeleteMk = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -175,7 +175,7 @@ namespace SYS.FormUI this.dgvPositionList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.clPositionNo, this.clPositionName, - this.Column1, + this.clDeleteMk, this.Column2, this.Column3, this.Column4, @@ -213,7 +213,7 @@ namespace SYS.FormUI this.dgvPositionList.ShowGridLine = true; this.dgvPositionList.Size = new System.Drawing.Size(788, 582); this.dgvPositionList.TabIndex = 207; - this.dgvPositionList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPositionList_CellClick); + this.dgvPositionList.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvPositionList_CellMouseClick); // // clPositionNo // @@ -229,13 +229,13 @@ namespace SYS.FormUI this.clPositionName.Name = "clPositionName"; this.clPositionName.ReadOnly = true; // - // Column1 + // clDeleteMk // - this.Column1.DataPropertyName = "delete_mk"; - this.Column1.HeaderText = "Column1"; - this.Column1.Name = "Column1"; - this.Column1.ReadOnly = true; - this.Column1.Visible = false; + this.clDeleteMk.DataPropertyName = "delete_mk"; + this.clDeleteMk.HeaderText = "Column1"; + this.clDeleteMk.Name = "clDeleteMk"; + this.clDeleteMk.ReadOnly = true; + this.clDeleteMk.Visible = false; // // Column2 // @@ -309,7 +309,7 @@ namespace SYS.FormUI private Sunny.UI.UIDataGridView dgvPositionList; private System.Windows.Forms.DataGridViewTextBoxColumn clPositionNo; private System.Windows.Forms.DataGridViewTextBoxColumn clPositionName; - private System.Windows.Forms.DataGridViewTextBoxColumn Column1; + private System.Windows.Forms.DataGridViewTextBoxColumn clDeleteMk; private System.Windows.Forms.DataGridViewTextBoxColumn Column2; private System.Windows.Forms.DataGridViewTextBoxColumn Column3; private System.Windows.Forms.DataGridViewTextBoxColumn Column4; diff --git a/SYS.FormUI/AppFunction/FrmPosition.cs b/SYS.FormUI/AppFunction/FrmPosition.cs index 9790d97..2aa1f91 100644 --- a/SYS.FormUI/AppFunction/FrmPosition.cs +++ b/SYS.FormUI/AppFunction/FrmPosition.cs @@ -70,7 +70,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPositionAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPositionAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } positions = HttpHelper.JsonToList(result.message); @@ -91,13 +91,12 @@ namespace SYS.FormUI position_no = txtPositionNo.Text.Trim(), position_name = txtPositionName.Text.Trim(), delete_mk = 0, - datains_usr = AdminInfo.Account, - datains_date = DateTime.Now + datains_usr = AdminInfo.Account }; result = HttpHelper.Request("Base​/AddPosition", HttpHelper.ModelToJson(pos)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("AddPosition+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("AddPosition+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } UIMessageTip.ShowOk("添加职位成功!", 1500); @@ -108,12 +107,6 @@ namespace SYS.FormUI return; } - private void dgvPositionList_CellClick(object sender, DataGridViewCellEventArgs e) - { - txtPositionNo.Text = dgvPositionList.Rows[0].Cells["clPositionNo"].Value.ToString(); - txtPositionName.Text = dgvPositionList.Rows[0].Cells["clPositionName"].Value.ToString(); - } - private void btnUpdatePosition_Click(object sender, EventArgs e) { if (dgvPositionList.SelectedRows.Count <= 0) @@ -126,12 +119,11 @@ namespace SYS.FormUI position_no = txtPositionNo.Text.Trim(), position_name = txtPositionName.Text.Trim(), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Base​/UpdPosition", HttpHelper.ModelToJson(pos)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("UpdPosition+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("UpdPosition+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } } @@ -149,12 +141,48 @@ namespace SYS.FormUI position_name = txtPositionName.Text.Trim(), delete_mk = 1, datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Base​/DelPosition", HttpHelper.ModelToJson(pos)); if (result.statusCode != 200 || result.message.ToString().Equals("false")) { - UIMessageTip.ShowError("DelPosition+接口服务异常,请提交Issue!", 1500); + UIMessageTip.ShowError("DelPosition+接口服务异常,请提交Issue或尝试更新版本!", 1500); + return; + } + UIMessageTip.ShowOk("删除成功!"); + return; + } + + private void dgvPositionList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) + { + txtPositionNo.Text = dgvPositionList.SelectedRows[0].Cells["clPositionNo"].Value.ToString(); + txtPositionName.Text = dgvPositionList.SelectedRows[0].Cells["clPositionName"].Value.ToString(); + if (dgvPositionList.SelectedRows[0].Cells["clDeleteMk"].Value.ToString() == "1") + { + btnDeletePosition.Text = "恢复职位"; + btnDeletePosition.FillColor = Color.Green; + btnDeletePosition.RectColor = Color.Green; + btnDeletePosition.Click += btnRecoveryPosition_Click; + } + } + + private void btnRecoveryPosition_Click(object sender, EventArgs e) + { + if (dgvPositionList.SelectedRows.Count <= 0) + { + UIMessageTip.ShowWarning("未选择需修改的职位数据,请检查", 1500); + return; + } + var pos = new Position() + { + position_no = txtPositionNo.Text.Trim(), + position_name = txtPositionName.Text.Trim(), + delete_mk = 0, + datachg_usr = AdminInfo.Account, + }; + result = HttpHelper.Request("Base​/UpdPosition", HttpHelper.ModelToJson(pos)); + if (result.statusCode != 200 || result.message.ToString().Equals("false")) + { + UIMessageTip.ShowError("UpdPosition+接口服务异常,请提交Issue或尝试更新版本!", 1500); return; } } diff --git a/SYS.FormUI/AppFunction/FrmPosition.resx b/SYS.FormUI/AppFunction/FrmPosition.resx index 0506287..19a1cb3 100644 --- a/SYS.FormUI/AppFunction/FrmPosition.resx +++ b/SYS.FormUI/AppFunction/FrmPosition.resx @@ -123,7 +123,7 @@ True - + True diff --git a/SYS.FormUI/AppFunction/FrmReserList.cs b/SYS.FormUI/AppFunction/FrmReserList.cs index 933b3be..bf4c5e2 100644 --- a/SYS.FormUI/AppFunction/FrmReserList.cs +++ b/SYS.FormUI/AppFunction/FrmReserList.cs @@ -27,7 +27,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Reser/SelectReserAll", null, null); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectReserAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectReserAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvReserList.AutoGenerateColumns = false; @@ -37,7 +37,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectCustoTypeAllCanUse", null, null); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List lstSourceGrid = HttpHelper.JsonToList(result.message); @@ -52,7 +52,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPassPortTypeAllCanUse", null, null); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List passPorts = HttpHelper.JsonToList(result.message); @@ -66,7 +66,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectSexTypeAll", null, null); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List listSexType = HttpHelper.JsonToList(result.message); @@ -97,13 +97,12 @@ namespace SYS.FormUI CustoBirth = dtpBirthday.Value, CustoType = cbCustoType.SelectedIndex, delete_mk = 0, - datains_usr = LoginInfo.WorkerNo, - datains_date=DateTime.Now + datains_usr = LoginInfo.WorkerNo }; result = HttpHelper.Request("Custo​/InsertCustomerInfo", HttpHelper.ModelToJson(custo)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertCustomerInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertCustomerInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } @@ -117,7 +116,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room​/UpdateRoomInfo", HttpHelper.ModelToJson(r), null); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertCustomerInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertCustomerInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } var reser = new Reser @@ -127,7 +126,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Reser/DeleteReserInfo", HttpHelper.ModelToJson(reser)); if (result.statusCode != 200) { - UIMessageBox.ShowError("DeleteReserInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DeleteReserInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } @@ -136,7 +135,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Reser/SelectReserAll", null, null); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectReserAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectReserAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvReserList.DataSource = HttpHelper.JsonToList(result.message); diff --git a/SYS.FormUI/AppFunction/FrmReserManager.cs b/SYS.FormUI/AppFunction/FrmReserManager.cs index 2e2a70f..382ed08 100644 --- a/SYS.FormUI/AppFunction/FrmReserManager.cs +++ b/SYS.FormUI/AppFunction/FrmReserManager.cs @@ -38,8 +38,7 @@ namespace SYS.FormUI ReserRoom = cboReserRoomNo.Text, ReserDate = dtpBouDate.Value, ReserEndDay = dtpEndDate.Value, - datains_usr = LoginInfo.WorkerNo, - datains_date = DateTime.Now + datains_usr = LoginInfo.WorkerNo }; Room room = new Room() { @@ -49,14 +48,14 @@ namespace SYS.FormUI result = HttpHelper.Request("Reser​/InserReserInfo",HttpHelper.ModelToJson(reser)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InserReserInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InserReserInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool result1 = result.message.ToString().Equals("true"); result = HttpHelper.Request("Room​/UpdateRoomInfoWithReser", HttpHelper.ModelToJson(room)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateRoomInfoWithReser+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateRoomInfoWithReser+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool result2 = result.message.ToString().Equals("true"); @@ -83,7 +82,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectCanUseRoomAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboReserRoomNo.DataSource = HttpHelper.JsonToList(result.message); diff --git a/SYS.FormUI/AppFunction/FrmRoomManager.cs b/SYS.FormUI/AppFunction/FrmRoomManager.cs index b96667b..ac4a734 100644 --- a/SYS.FormUI/AppFunction/FrmRoomManager.cs +++ b/SYS.FormUI/AppFunction/FrmRoomManager.cs @@ -95,35 +95,35 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectCanUseRoomAllByRoomState"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCanUseRoomAllByRoomState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCanUseRoomAllByRoomState+接口服务异常,请提交Issue或尝试更新版本!"); return; } lblCanUse.Text = result.message.ToString(); result = HttpHelper.Request("Room/SelectNotUseRoomAllByRoomState"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNotUseRoomAllByRoomState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNotUseRoomAllByRoomState+接口服务异常,请提交Issue或尝试更新版本!"); return; } lblCheck.Text = result.message.ToString(); result = HttpHelper.Request("Room/SelectNotClearRoomAllByRoomState"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectNotClearRoomAllByRoomState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectNotClearRoomAllByRoomState+接口服务异常,请提交Issue或尝试更新版本!"); return; } lblNotClear.Text = result.message.ToString(); result = HttpHelper.Request("Room/SelectFixingRoomAllByRoomState"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectFixingRoomAllByRoomState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectFixingRoomAllByRoomState+接口服务异常,请提交Issue或尝试更新版本!"); return; } lblFix.Text = result.message.ToString(); result = HttpHelper.Request("Room/SelectReseredRoomAllByRoomState"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectReseredRoomAllByRoomState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectReseredRoomAllByRoomState+接口服务异常,请提交Issue或尝试更新版本!"); return; } lblReser.Text = result.message.ToString(); @@ -142,7 +142,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } romsty = HttpHelper.JsonToList(result.message); @@ -156,7 +156,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByTypeName",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByTypeName+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByTypeName+接口服务异常,请提交Issue或尝试更新版本!"); return; } romsty = HttpHelper.JsonToList(result.message); @@ -219,7 +219,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByRoomState", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByRoomState+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByRoomState+接口服务异常,请提交Issue或尝试更新版本!"); return; } romsty = HttpHelper.JsonToList(result.message); diff --git a/SYS.FormUI/AppFunction/FrmRoomMap.cs b/SYS.FormUI/AppFunction/FrmRoomMap.cs index c0a4066..986b459 100644 --- a/SYS.FormUI/AppFunction/FrmRoomMap.cs +++ b/SYS.FormUI/AppFunction/FrmRoomMap.cs @@ -56,7 +56,7 @@ namespace SYS.FormUI.AppFunction var result = HttpHelper.Request("Room/SelectRoomAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List rooms = HttpHelper.JsonToList(result.message); diff --git a/SYS.FormUI/AppFunction/FrmRoomStateManager.cs b/SYS.FormUI/AppFunction/FrmRoomStateManager.cs index 2997fe1..038d3c0 100644 --- a/SYS.FormUI/AppFunction/FrmRoomStateManager.cs +++ b/SYS.FormUI/AppFunction/FrmRoomStateManager.cs @@ -48,7 +48,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomStateAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomStateAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomStateAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } cboState.DataSource = HttpHelper.JsonToList(result.message); @@ -78,7 +78,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/UpdateRoomStateByRoomNo",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateRoomStateByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateRoomStateByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (result.message.ToString().Equals("true")) diff --git a/SYS.FormUI/AppFunction/FrmSelectCustoInfo.cs b/SYS.FormUI/AppFunction/FrmSelectCustoInfo.cs index 9d08ce6..a8fc69f 100644 --- a/SYS.FormUI/AppFunction/FrmSelectCustoInfo.cs +++ b/SYS.FormUI/AppFunction/FrmSelectCustoInfo.cs @@ -60,7 +60,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectCustoTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCustoTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List lstSourceGrid = HttpHelper.JsonToList(result.message); @@ -75,7 +75,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectPassPortTypeAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectPassPortTypeAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } List passPorts = HttpHelper.JsonToList(result.message); @@ -89,7 +89,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectSexTypeAll?delete_mk=0"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSexTypeAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List listSexType = HttpHelper.JsonToList(result.message); @@ -100,14 +100,14 @@ namespace SYS.FormUI #endregion txtCustoNo.Text = ucRoomList.rm_CustoNo; - dic = new Dictionary() + dic = new Dictionary() { - { "CustoNo",txtCustoNo.Text.Trim()} + { "CustoNo",txtCustoNo.Text.Trim() } }; result = HttpHelper.Request("Custo/SelectCardInfoByCustoNo",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCardInfoByCustoNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectCardInfoByCustoNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } Custo c = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmSellThing.cs b/SYS.FormUI/AppFunction/FrmSellThing.cs index eebd056..2a6f99e 100644 --- a/SYS.FormUI/AppFunction/FrmSellThing.cs +++ b/SYS.FormUI/AppFunction/FrmSellThing.cs @@ -56,7 +56,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByStateAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByStateAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByStateAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List roms = HttpHelper.JsonToList(result.message); @@ -88,7 +88,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellThingAll",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List lstSource = HttpHelper.JsonToList(result.message); @@ -107,7 +107,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend/SelectSpendByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSpendByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSpendByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } this.dgvRoomSell.AutoGenerateColumns = false; @@ -122,7 +122,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellThingAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List lstSource = HttpHelper.JsonToList(result.message); @@ -193,7 +193,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellThingAll",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List st = HttpHelper.JsonToList(result.message); @@ -204,7 +204,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } r = HttpHelper.JsonToModel(result.message); @@ -215,7 +215,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend/SelectSpendInfoRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSpendInfoRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSpendInfoRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } var listSource = HttpHelper.JsonToList(result.message); @@ -235,11 +235,12 @@ namespace SYS.FormUI SpendMoney = Convert.ToDecimal(Convert.ToDouble(txtPrice.Text) * nudNum.Value) + listSource.FirstOrDefault(a => a.SpendName.Equals(txtSellName.Text.Trim())).SpendMoney, SpendTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")), MoneyState = SpendConsts.UnSettle, + datachg_usr = LoginInfo.WorkerNo }; result = HttpHelper.Request("Spend/UpdSpenInfo", HttpHelper.ModelToJson(s)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdSpenInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdSpenInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (result.message.ToString().Equals("true")) @@ -249,7 +250,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/UpdateSellthingInfo", HttpHelper.ModelToJson(sellThing)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } UIMessageBox.Show("添加成功", "系统提示", UIStyle.Green, UIMessageBoxButtons.OK, true); @@ -272,11 +273,12 @@ namespace SYS.FormUI SpendMoney = Convert.ToDecimal(Convert.ToDouble(txtPrice.Text) * nudNum.Value), SpendTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")), MoneyState = SpendConsts.UnSettle, + datains_usr = LoginInfo.WorkerNo, }; result = HttpHelper.Request("Spend​/InsertSpendInfo", HttpHelper.ModelToJson(s)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertSpendInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertSpendInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool m = result.message.ToString().Equals("true"); @@ -287,7 +289,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/UpdateSellthingInfo", HttpHelper.ModelToJson(sellThing)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } UIMessageBox.Show("添加成功", "系统提示", UIStyle.Green, UIMessageBoxButtons.OK, true); @@ -322,7 +324,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Spend​/InsertSpendInfo", HttpHelper.ModelToJson(s)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertSpendInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertSpendInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } bool m = result.message.ToString().Equals("true"); @@ -333,7 +335,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/UpdateSellthingInfo", HttpHelper.ModelToJson(sellThing)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } UIMessageBox.Show("添加成功", "系统提示", UIStyle.Green, UIMessageBoxButtons.OK, true); @@ -385,7 +387,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellThingByNameAndPrice", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellThingByNameAndPrice+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellThingByNameAndPrice+接口服务异常,请提交Issue或尝试更新版本!"); return; } SellThing s = HttpHelper.JsonToModel(result.message); @@ -400,7 +402,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/DeleteSellThing", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("DeleteSellThing+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DeleteSellThing+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (result.message.ToString().Equals("true")) @@ -409,7 +411,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/UpdateSellthingInfo", HttpHelper.ModelToJson(sellThing)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } UIMessageTip.ShowOk("撤销成功!", 1000); @@ -484,7 +486,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } Room r = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmSellThingManager.cs b/SYS.FormUI/AppFunction/FrmSellThingManager.cs index 96b8fa6..80a370a 100644 --- a/SYS.FormUI/AppFunction/FrmSellThingManager.cs +++ b/SYS.FormUI/AppFunction/FrmSellThingManager.cs @@ -51,7 +51,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellThingAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvSellthing.AutoGenerateColumns = false; @@ -75,7 +75,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellThingAll",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellThingAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } dgvSellthing.DataSource = HttpHelper.JsonToList(result.message); @@ -90,7 +90,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/DeleteSellThingBySellNo", null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("DeleteSellThingBySellNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("DeleteSellThingBySellNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } UIMessageBox.ShowSuccess("删除商品成功!"); @@ -132,7 +132,6 @@ namespace SYS.FormUI format = string.IsNullOrWhiteSpace(txtformat.Text) ? "" : Convert.ToString(txtformat.Text), Stock = txtStock.Value == 0 ? 0 : Convert.ToInt32(txtStock.Value), datains_usr = AdminInfo.Account, - datains_date = DateTime.Now }; if (CheckInput(st)) { @@ -143,7 +142,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing/SelectSellInfoBySellNo",null,dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectSellInfoBySellNo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectSellInfoBySellNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } var SellThing = HttpHelper.JsonToModel(result.message); @@ -155,7 +154,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Sellthing​/InsertSellThing", HttpHelper.ModelToJson(st)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertSellThing+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertSellThing+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (!result.ToString().Equals("true")) @@ -208,14 +207,13 @@ namespace SYS.FormUI format = string.IsNullOrWhiteSpace(txtformat.Text) ? "" : Convert.ToString(txtformat.Text), Stock = txtStock.Value == 0 ? 0 : Convert.ToInt32(txtStock.Value), datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; if (CheckInput(st)) { result = HttpHelper.Request("Sellthing​/UpdateSellthingInfo", HttpHelper.ModelToJson(st)); if (result.statusCode != 200) { - UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("UpdateSellthingInfo+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (!result.message.ToString().Equals("true")) diff --git a/SYS.FormUI/AppFunction/FrmUnLockSystem.cs b/SYS.FormUI/AppFunction/FrmUnLockSystem.cs index 5aeabd9..7f6a750 100644 --- a/SYS.FormUI/AppFunction/FrmUnLockSystem.cs +++ b/SYS.FormUI/AppFunction/FrmUnLockSystem.cs @@ -83,7 +83,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Admin/SelectAdminPwdByAccount", null, dic); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectAdminPwdByAccount+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectAdminPwdByAccount+接口服务异常,请提交Issue或尝试更新版本!"); return; } var account = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppFunction/FrmUpLoadNotice.cs b/SYS.FormUI/AppFunction/FrmUpLoadNotice.cs index 9d38fd1..388c67f 100644 --- a/SYS.FormUI/AppFunction/FrmUpLoadNotice.cs +++ b/SYS.FormUI/AppFunction/FrmUpLoadNotice.cs @@ -70,7 +70,6 @@ namespace SYS.FormUI NoticeTime = dtpUpLoadDate.Value, NoticeClub = cboSelectClub.SelectedValue.ToString(), datains_usr = AdminInfo.Account, - datains_date = DateTime.Now }; switch (cbNoticeType.Text) @@ -85,7 +84,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Notice​/InsertNotice", HttpHelper.ModelToJson(notice)); if (result.statusCode != 200) { - UIMessageBox.ShowError("InsertNotice+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("InsertNotice+接口服务异常,请提交Issue或尝试更新版本!"); return; } if (!result.message.ToString().Equals("true")) @@ -123,7 +122,7 @@ namespace SYS.FormUI result = HttpHelper.Request("Base/SelectDeptAllCanUse"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("SelectDeptAllCanUse+接口服务异常,请提交Issue或尝试更新版本!"); return; } //加载部门信息 diff --git a/SYS.FormUI/AppFunction/FrmVipRule.cs b/SYS.FormUI/AppFunction/FrmVipRule.cs index 1072e8b..4ed90a3 100644 --- a/SYS.FormUI/AppFunction/FrmVipRule.cs +++ b/SYS.FormUI/AppFunction/FrmVipRule.cs @@ -84,8 +84,7 @@ namespace SYS.FormUI rule_value = vipRule.rule_value, type_id = vipRule.type_id, delete_mk = 0, - datains_usr = AdminInfo.Account, - datains_date = DateTime.Now + datains_usr = AdminInfo.Account }; result = HttpHelper.Request("VipRule/AddVipRule",HttpHelper.ModelToJson(vipRule1)); if (result.statusCode != 200) @@ -106,7 +105,8 @@ namespace SYS.FormUI rule_id = txtRuleId.Text.Trim(), rule_name = txtRuleName.Text.Trim(), rule_value = Convert.ToDecimal(dudSpendAmount.Value), - type_id = Convert.ToInt32(cboCustoType.SelectedValue) + type_id = Convert.ToInt32(cboCustoType.SelectedValue), + datains_usr = AdminInfo.Account }; if (InsertVipRule(vipRule1)) { diff --git a/SYS.FormUI/AppFunction/FrmWtiInfo.cs b/SYS.FormUI/AppFunction/FrmWtiInfo.cs index eb3aef4..be26cef 100644 --- a/SYS.FormUI/AppFunction/FrmWtiInfo.cs +++ b/SYS.FormUI/AppFunction/FrmWtiInfo.cs @@ -86,7 +86,6 @@ namespace SYS.FormUI WaterUse = string.IsNullOrEmpty(txtWInfo.Text.Trim()) ? 0 : Convert.ToDecimal(txtWInfo.Text.Trim()), Record = AdminInfo.Account, datachg_usr = AdminInfo.Account, - datachg_date = DateTime.Now }; result = HttpHelper.Request("Wti/UpdateWtiInfo",HttpHelper.ModelToJson(wti)); if (result.statusCode != 200) diff --git a/SYS.FormUI/AppInterface/FrmLoading.cs b/SYS.FormUI/AppInterface/FrmLoading.cs index d2b114b..8da8d98 100644 --- a/SYS.FormUI/AppInterface/FrmLoading.cs +++ b/SYS.FormUI/AppInterface/FrmLoading.cs @@ -51,7 +51,7 @@ namespace SYS.FormUI result = HttpHelper.Request("App/CheckBaseVersion"); if (result.statusCode != 200) { - UIMessageBox.ShowError("CheckBaseVersion+接口服务异常,请提交Issue!"); + UIMessageBox.ShowError("CheckBaseVersion+接口服务异常,请提交Issue或尝试更新版本!"); return; } var newversion = HttpHelper.JsonToModel(result.message); diff --git a/SYS.FormUI/AppMain/FrmMain.cs b/SYS.FormUI/AppMain/FrmMain.cs index 97ca1ab..cc2756c 100644 --- a/SYS.FormUI/AppMain/FrmMain.cs +++ b/SYS.FormUI/AppMain/FrmMain.cs @@ -498,8 +498,7 @@ namespace SYS.FormUI WorkerNo = LoginInfo.WorkerNo, CheckWay = "系统界面", CheckTime = DateTime.Parse(GetNetDateTime()), - datains_usr = LoginInfo.WorkerNo, - datains_date = DateTime.Now + datains_usr = LoginInfo.WorkerNo }; result = HttpHelper.Request("WorkerCheck/AddCheckInfo", workerCheck.ModelToJson(), null); if (result.statusCode != 200) diff --git a/SYS.FormUI/AppUserControls/ucRoomList.cs b/SYS.FormUI/AppUserControls/ucRoomList.cs index 11f5b28..2e317a6 100644 --- a/SYS.FormUI/AppUserControls/ucRoomList.cs +++ b/SYS.FormUI/AppUserControls/ucRoomList.cs @@ -10,6 +10,7 @@ using SYS.Application; using Sunny.UI; using SYS.Common; using System.Collections.Generic; +using SqlSugar; namespace SYS.FormUI { @@ -285,18 +286,20 @@ namespace SYS.FormUI #region 双击进入入住/退房事件方法 private void ucRoomList_DoubleClick(object sender, EventArgs e) { - - if (lblCustoNo.Text == "") + List custos = new List(); + if (!lblCustoNo.Text.IsNullOrEmpty()) { - Dictionary room = new Dictionary(); - room.Add("no", lblRoomNo.Text); - var result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, room); - + Dictionary dic = new Dictionary() + { + { "CustoNo",lblCustoNo.Text.Trim() } + } ; + var result = HttpHelper.Request("Custo/SelectCardInfoByCustoNo", null, dic); if (result.statusCode != 200) { - UIMessageBox.Show("接口服务异常!", "来自小T提示", UIStyle.Red); + UIMessageBox.ShowError("SelectCardInfoByCustoNo+接口服务异常,请提交Issue或尝试更新版本!"); return; } + Room r = HttpHelper.JsonToModel(result.message); if (r.RoomStateId == 0) { -- Gitee