From de2c9bf3cec2bba351318b6ed3bd476eb3a9460e Mon Sep 17 00:00:00 2001 From: Jackson Date: Sun, 20 Oct 2024 16:27:27 +0800 Subject: [PATCH 1/4] fixed error --- EOM.TSHotelManager.FormUI/App.config | 3 + .../AppFunction/FrmAddRoom.cs | 19 +- .../AppFunction/FrmChangeRoom.cs | 10 +- .../AppFunction/FrmCheckOutForm.Designer.cs | 1721 ++++++++--------- .../AppFunction/FrmCheckOutForm.cs | 12 +- .../AppFunction/FrmCheckOutForm.resx | 57 +- .../AppFunction/FrmProgress.Designer.cs | 51 + .../AppFunction/FrmProgress.cs | 42 + .../AppFunction/FrmProgress.resx | 145 ++ .../AppFunction/FrmRoomMap.cs | 2 +- .../AppFunction/FrmWoEInfo.cs | 4 +- .../AppMain/FrmBackgroundSystem.Designer.cs | 506 +++-- .../AppMain/FrmBackgroundSystem.resx | 70 +- .../AppMain/FrmMain.Designer.cs | 1 + EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs | 25 +- .../AppMain/FrmMain.resx | 774 ++++---- .../ucCustomProgressBar.Designer.cs | 44 + .../AppUserControls/ucCustomProgressBar.cs | 69 + .../AppUserControls/ucCustomProgressBar.resx | 120 ++ .../AppUserControls/ucRoom.cs | 31 +- .../EOM.TSHotelManager.FormUI.csproj | 12 + .../Properties/Resources.Designer.cs | 25 + .../Properties/Resources.resx | 3 + .../EOM.TSHotelManager.Common.Core.xml | 1504 ++++++++++++++ .../TableComponent/LoadingProgress.cs | 37 + .../TableComponent/TableComHelper.cs | 10 +- 26 files changed, 3665 insertions(+), 1632 deletions(-) create mode 100644 EOM.TSHotelManager.FormUI/App.config create mode 100644 EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.Designer.cs create mode 100644 EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.cs create mode 100644 EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.resx create mode 100644 EOM.TSHotelManager.FormUI/AppUserControls/ucCustomProgressBar.Designer.cs create mode 100644 EOM.TSHotelManager.FormUI/AppUserControls/ucCustomProgressBar.cs create mode 100644 EOM.TSHotelManager.FormUI/AppUserControls/ucCustomProgressBar.resx create mode 100644 EOM.TSHotelManager.FormUI/Resources/EOM.TSHotelManager.Common.Core.xml create mode 100644 EOM.TSHotelManager.FormUI/TableComponent/LoadingProgress.cs diff --git a/EOM.TSHotelManager.FormUI/App.config b/EOM.TSHotelManager.FormUI/App.config new file mode 100644 index 0000000..49cc43e --- /dev/null +++ b/EOM.TSHotelManager.FormUI/App.config @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmAddRoom.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmAddRoom.cs index c86ac78..b5ca2dd 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmAddRoom.cs +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmAddRoom.cs @@ -29,6 +29,7 @@ using System.Collections.Generic; using EOM.TSHotelManager.Common.Util; using AntdUI; using System.Linq; +using jvncorelib.EntityLib; namespace EOM.TSHotelManager.FormUI { @@ -123,16 +124,17 @@ namespace EOM.TSHotelManager.FormUI public void LoadRoom() { - result = HttpHelper.Request("Room/SelectCanUseRoomAll"); + result = HttpHelper.Request("Room/SelectRoomAll"); if (result.statusCode != 200) { - UIMessageBox.ShowError("SelectCanUseRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); + UIMessageBox.ShowError("SelectRoomAll+接口服务异常,请提交Issue或尝试更新版本!"); return; } List rooms = HttpHelper.JsonToList(result.message); flpRoom.Controls.Clear(); for (int i = 0; i < rooms.Count; i++) { + room = new ucRoom(); room.btnRoom.Text = string.Format("{0}\n\n{1}\n\n{2}", rooms[i].RoomName, rooms[i].RoomNo, rooms[i].CustoName); room.lblMark = "Mark"; //=Mark时,判断为房态图,禁用右键菜单 room.romRoomInfo = rooms[i]; @@ -142,8 +144,21 @@ namespace EOM.TSHotelManager.FormUI private void cboRoomType_TextChanged(object sender, EventArgs e) { + dic = new Dictionary() + { + { "roomTypeId",cboRoomType.SelectedValue.ToString()} + }; + result = HttpHelper.Request("RoomType/SelectRoomTypeByType",null,dic); + if (result.statusCode != 200) + { + UIMessageBox.ShowError("SelectRoomTypeByType+接口服务异常,请提交Issue或尝试更新版本!"); + return; + } + var roomType = HttpHelper.JsonToModel(result.message); + txtMoney.Value = !roomType.IsNullOrEmpty() ? roomType.RoomRent : 0; + txtDeposit.Value = !roomType.IsNullOrEmpty() ? roomType.RoomDeposit : 0; } private bool CheckRoomExists(string RoomNo) diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmChangeRoom.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmChangeRoom.cs index 4236e4e..8d8cdc6 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmChangeRoom.cs +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmChangeRoom.cs @@ -52,8 +52,8 @@ namespace EOM.TSHotelManager.FormUI return; } cboRoomList.DataSource = HttpHelper.JsonToList(result.message); - cboRoomList.ValueMember = "RoomNo"; - cboRoomList.DisplayMember = "RoomNo"; + cboRoomList.DisplayMember = nameof(Room.RoomNo); + cboRoomList.ValueMember = nameof(Room.RoomNo); firstLoad = false; } @@ -61,7 +61,7 @@ namespace EOM.TSHotelManager.FormUI { double sum = 0; string lbu = LoginInfo.WorkerName; - string rno = ucRoom.RoomNo.ToString(); + string rno = ucRoom.co_RoomNo.ToString(); string nrno = cboRoomList.Text; dic = new Dictionary() { @@ -78,7 +78,7 @@ namespace EOM.TSHotelManager.FormUI Room checkInRoom = new Room() { RoomNo = nrno, - CustoNo = ucRoom.CustoNo, + CustoNo = ucRoom.co_CustoNo, RoomStateId = 1, CheckTime = Convert.ToDateTime(DateTime.Now), datains_usr = LoginInfo.WorkerNo @@ -100,7 +100,7 @@ namespace EOM.TSHotelManager.FormUI RoomNo = cboRoomList.Text, SpendName = "居住" + rno + "共" + Convert.ToInt32(result.message) + "天", SpendAmount = Convert.ToInt32(result.message), - CustoNo = ucRoom.CustoNo, + CustoNo = ucRoom.co_CustoNo, SpendPrice = Convert.ToDecimal(sum), SpendMoney = Convert.ToDecimal(sum), SpendTime = Convert.ToDateTime(Convert.ToDateTime(DateTime.Now).ToString("yyyy-MM-dd HH:mm:ss")), diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.Designer.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.Designer.cs index b301ae8..32f5921 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.Designer.cs +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.Designer.cs @@ -28,1071 +28,1051 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - 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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle6 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle7 = new DataGridViewCellStyle(); + DataGridViewCellStyle dataGridViewCellStyle8 = new DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmCheckOutForm)); - this.btnBalance = new Sunny.UI.UIButton(); - this.lblVIPPrice = new System.Windows.Forms.Label(); - this.label15 = new System.Windows.Forms.Label(); - this.dgvSpendList = new Sunny.UI.UIDataGridView(); - this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clPrice = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clSpendNo = 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(); - this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.lblDay = new System.Windows.Forms.Label(); - this.lable00 = new System.Windows.Forms.Label(); - this.label29 = new System.Windows.Forms.Label(); - this.lblVIP = new System.Windows.Forms.Label(); - this.dtpCheckTime = new Sunny.UI.UITextBox(); - this.label25 = new System.Windows.Forms.Label(); - this.txtRoomNo = new Sunny.UI.UITextBox(); - this.label27 = new System.Windows.Forms.Label(); - this.label28 = new System.Windows.Forms.Label(); - this.lblChange = new System.Windows.Forms.Label(); - this.CustoNo = new Sunny.UI.UITextBox(); - this.label21 = new System.Windows.Forms.Label(); - this.CustoName = new Sunny.UI.UITextBox(); - this.lblGetReceipts = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.label24 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.label18 = new System.Windows.Forms.Label(); - this.cboCustoType = new Sunny.UI.UIComboBox(); - this.cboPassportType = new Sunny.UI.UIComboBox(); - this.cboCustoSex = new Sunny.UI.UIComboBox(); - this.txtCustoNo = new Sunny.UI.UITextBox(); - this.txtCustoName = new Sunny.UI.UITextBox(); - this.txtPassportNum = new Sunny.UI.UITextBox(); - this.txtTel = new Sunny.UI.UITextBox(); - this.dtpBirth = new Sunny.UI.UIDatePicker(); - this.txtAddress = new Sunny.UI.UITextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.label22 = new System.Windows.Forms.Label(); - this.label30 = new System.Windows.Forms.Label(); - this.label31 = new System.Windows.Forms.Label(); - this.label32 = new System.Windows.Forms.Label(); - this.dgvWti = new Sunny.UI.UIDataGridView(); - this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clRoomNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clCustoNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clStartTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clDealTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clWater = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clElectric = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.clMarkUser = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uiTabControlMenu2 = new Sunny.UI.UITabControlMenu(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.txtReceipts = new Sunny.UI.UITextBox(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.tabPage3 = new System.Windows.Forms.TabPage(); - ((System.ComponentModel.ISupportInitialize)(this.dgvSpendList)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvWti)).BeginInit(); - this.uiTabControlMenu2.SuspendLayout(); - this.tabPage1.SuspendLayout(); - this.tabPage2.SuspendLayout(); - this.tabPage3.SuspendLayout(); - this.SuspendLayout(); + btnBalance = new Sunny.UI.UIButton(); + lblVIPPrice = new Label(); + label15 = new Label(); + dgvSpendList = new Sunny.UI.UIDataGridView(); + dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn(); + clPrice = new DataGridViewTextBoxColumn(); + dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn(); + dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn(); + dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn(); + dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn(); + dataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn(); + dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn(); + clSpendNo = new DataGridViewTextBoxColumn(); + Column1 = new DataGridViewTextBoxColumn(); + Column2 = new DataGridViewTextBoxColumn(); + Column3 = new DataGridViewTextBoxColumn(); + Column4 = new DataGridViewTextBoxColumn(); + Column8 = new DataGridViewTextBoxColumn(); + lblDay = new Label(); + lable00 = new Label(); + label29 = new Label(); + lblVIP = new Label(); + dtpCheckTime = new Sunny.UI.UITextBox(); + label25 = new Label(); + txtRoomNo = new Sunny.UI.UITextBox(); + label27 = new Label(); + label28 = new Label(); + lblChange = new Label(); + CustoNo = new Sunny.UI.UITextBox(); + label21 = new Label(); + CustoName = new Sunny.UI.UITextBox(); + lblGetReceipts = new Label(); + label1 = new Label(); + label24 = new Label(); + label17 = new Label(); + label18 = new Label(); + cboCustoType = new Sunny.UI.UIComboBox(); + cboPassportType = new Sunny.UI.UIComboBox(); + cboCustoSex = new Sunny.UI.UIComboBox(); + txtCustoNo = new Sunny.UI.UITextBox(); + txtCustoName = new Sunny.UI.UITextBox(); + txtPassportNum = new Sunny.UI.UITextBox(); + txtTel = new Sunny.UI.UITextBox(); + dtpBirth = new Sunny.UI.UIDatePicker(); + txtAddress = new Sunny.UI.UITextBox(); + label2 = new Label(); + label3 = new Label(); + label4 = new Label(); + label5 = new Label(); + label16 = new Label(); + label22 = new Label(); + label30 = new Label(); + label31 = new Label(); + label32 = new Label(); + dgvWti = new Sunny.UI.UIDataGridView(); + uiTabControlMenu2 = new Sunny.UI.UITabControlMenu(); + tabPage1 = new TabPage(); + txtReceipts = new Sunny.UI.UITextBox(); + tabPage2 = new TabPage(); + tabPage3 = new TabPage(); + Column11 = new DataGridViewTextBoxColumn(); + token = new DataGridViewTextBoxColumn(); + clRoomNo = new DataGridViewTextBoxColumn(); + clCustoNo = new DataGridViewTextBoxColumn(); + clStartTime = new DataGridViewTextBoxColumn(); + clDealTime = new DataGridViewTextBoxColumn(); + clWater = new DataGridViewTextBoxColumn(); + clElectric = new DataGridViewTextBoxColumn(); + clMarkUser = new DataGridViewTextBoxColumn(); + Column5 = new DataGridViewTextBoxColumn(); + Column6 = new DataGridViewTextBoxColumn(); + Column7 = new DataGridViewTextBoxColumn(); + Column9 = new DataGridViewTextBoxColumn(); + Column10 = new DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)dgvSpendList).BeginInit(); + ((System.ComponentModel.ISupportInitialize)dgvWti).BeginInit(); + uiTabControlMenu2.SuspendLayout(); + tabPage1.SuspendLayout(); + tabPage2.SuspendLayout(); + tabPage3.SuspendLayout(); + SuspendLayout(); // // btnBalance // - this.btnBalance.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnBalance.Font = new System.Drawing.Font("微软雅黑", 12F); - this.btnBalance.Location = new System.Drawing.Point(495, 485); - this.btnBalance.MinimumSize = new System.Drawing.Size(1, 1); - this.btnBalance.Name = "btnBalance"; - this.btnBalance.Radius = 30; - this.btnBalance.Size = new System.Drawing.Size(162, 46); - this.btnBalance.Style = Sunny.UI.UIStyle.Custom; - this.btnBalance.TabIndex = 116; - this.btnBalance.Text = "结 算"; - this.btnBalance.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnBalance.Click += new System.EventHandler(this.btnBalance_Click); + btnBalance.Cursor = Cursors.Hand; + btnBalance.Font = new Font("微软雅黑", 12F); + btnBalance.Location = new Point(459, 486); + btnBalance.MinimumSize = new Size(1, 1); + btnBalance.Name = "btnBalance"; + btnBalance.Radius = 30; + btnBalance.Size = new Size(162, 46); + btnBalance.Style = Sunny.UI.UIStyle.Custom; + btnBalance.TabIndex = 116; + btnBalance.Text = "结 算"; + btnBalance.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnBalance.Click += btnBalance_Click; // // lblVIPPrice // - this.lblVIPPrice.AutoSize = true; - this.lblVIPPrice.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblVIPPrice.Location = new System.Drawing.Point(585, 388); - this.lblVIPPrice.Name = "lblVIPPrice"; - this.lblVIPPrice.Size = new System.Drawing.Size(40, 20); - this.lblVIPPrice.TabIndex = 28; - this.lblVIPPrice.Text = "0.00"; + lblVIPPrice.AutoSize = true; + lblVIPPrice.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + lblVIPPrice.Location = new Point(549, 389); + lblVIPPrice.Name = "lblVIPPrice"; + lblVIPPrice.Size = new Size(40, 20); + lblVIPPrice.TabIndex = 28; + lblVIPPrice.Text = "0.00"; // // label15 // - this.label15.AutoSize = true; - this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label15.ForeColor = System.Drawing.Color.Red; - this.label15.Location = new System.Drawing.Point(7, 525); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(253, 17); - this.label15.TabIndex = 11; - this.label15.Text = "Tips:请提醒客人不要忘记带齐行李哦~"; + label15.AutoSize = true; + label15.Font = new Font("Microsoft Sans Serif", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134); + label15.ForeColor = Color.Red; + label15.Location = new Point(7, 525); + label15.Name = "label15"; + label15.Size = new Size(253, 17); + label15.TabIndex = 11; + label15.Text = "Tips:请提醒客人不要忘记带齐行李哦~"; // // dgvSpendList // - this.dgvSpendList.AllowUserToAddRows = false; - this.dgvSpendList.AllowUserToDeleteRows = false; - this.dgvSpendList.AllowUserToResizeColumns = false; - this.dgvSpendList.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.dgvSpendList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvSpendList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.dgvSpendList.BackgroundColor = System.Drawing.Color.White; - this.dgvSpendList.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - 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.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvSpendList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.dgvSpendList.ColumnHeadersHeight = 32; - this.dgvSpendList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.dgvSpendList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewTextBoxColumn1, - this.clPrice, - this.dataGridViewTextBoxColumn2, - this.dataGridViewTextBoxColumn3, - this.dataGridViewTextBoxColumn4, - this.dataGridViewTextBoxColumn5, - this.dataGridViewTextBoxColumn6, - this.dataGridViewTextBoxColumn7, - this.clSpendNo, - this.Column1, - this.Column2, - this.Column3, - this.Column4, - this.Column8}); - this.dgvSpendList.EnableHeadersVisualStyles = false; - this.dgvSpendList.Font = new System.Drawing.Font("微软雅黑", 12F); - this.dgvSpendList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.dgvSpendList.Location = new System.Drawing.Point(10, 113); - this.dgvSpendList.Name = "dgvSpendList"; - this.dgvSpendList.ReadOnly = true; - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F); - dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvSpendList.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; - this.dgvSpendList.RowHeadersVisible = false; - dataGridViewCellStyle4.BackColor = System.Drawing.Color.White; - this.dgvSpendList.RowsDefaultCellStyle = dataGridViewCellStyle4; - this.dgvSpendList.RowTemplate.Height = 29; - this.dgvSpendList.SelectedIndex = -1; - this.dgvSpendList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvSpendList.ShowRowErrors = false; - this.dgvSpendList.Size = new System.Drawing.Size(648, 202); - this.dgvSpendList.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.dgvSpendList.Style = Sunny.UI.UIStyle.Custom; - this.dgvSpendList.TabIndex = 115; + dgvSpendList.AllowUserToAddRows = false; + dgvSpendList.AllowUserToDeleteRows = false; + dgvSpendList.AllowUserToResizeColumns = false; + dgvSpendList.AllowUserToResizeRows = false; + dataGridViewCellStyle1.BackColor = Color.FromArgb(235, 243, 255); + dgvSpendList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + dgvSpendList.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; + dgvSpendList.BackgroundColor = Color.White; + dgvSpendList.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle2.BackColor = Color.FromArgb(80, 160, 255); + dataGridViewCellStyle2.Font = new Font("微软雅黑", 12F); + dataGridViewCellStyle2.ForeColor = Color.White; + dataGridViewCellStyle2.SelectionBackColor = SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = DataGridViewTriState.True; + dgvSpendList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + dgvSpendList.ColumnHeadersHeight = 32; + dgvSpendList.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dgvSpendList.Columns.AddRange(new DataGridViewColumn[] { dataGridViewTextBoxColumn1, clPrice, dataGridViewTextBoxColumn2, dataGridViewTextBoxColumn3, dataGridViewTextBoxColumn4, dataGridViewTextBoxColumn5, dataGridViewTextBoxColumn6, dataGridViewTextBoxColumn7, clSpendNo, Column1, Column2, Column3, Column4, Column8 }); + dgvSpendList.EnableHeadersVisualStyles = false; + dgvSpendList.Font = new Font("微软雅黑", 12F); + dgvSpendList.GridColor = Color.FromArgb(80, 160, 255); + dgvSpendList.Location = new Point(10, 113); + dgvSpendList.Name = "dgvSpendList"; + dgvSpendList.ReadOnly = true; + dataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = Color.FromArgb(235, 243, 255); + dataGridViewCellStyle3.Font = new Font("微软雅黑", 12F); + dataGridViewCellStyle3.ForeColor = Color.FromArgb(48, 48, 48); + dataGridViewCellStyle3.SelectionBackColor = Color.FromArgb(80, 160, 255); + dataGridViewCellStyle3.SelectionForeColor = Color.White; + dataGridViewCellStyle3.WrapMode = DataGridViewTriState.True; + dgvSpendList.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; + dgvSpendList.RowHeadersVisible = false; + dataGridViewCellStyle4.BackColor = Color.White; + dgvSpendList.RowsDefaultCellStyle = dataGridViewCellStyle4; + dgvSpendList.RowTemplate.Height = 29; + dgvSpendList.SelectedIndex = -1; + dgvSpendList.SelectionMode = DataGridViewSelectionMode.FullRowSelect; + dgvSpendList.ShowRowErrors = false; + dgvSpendList.Size = new Size(648, 202); + dgvSpendList.StripeOddColor = Color.FromArgb(235, 243, 255); + dgvSpendList.Style = Sunny.UI.UIStyle.Custom; + dgvSpendList.TabIndex = 115; // // dataGridViewTextBoxColumn1 // - this.dataGridViewTextBoxColumn1.DataPropertyName = "RoomNo"; - this.dataGridViewTextBoxColumn1.FillWeight = 102.6831F; - this.dataGridViewTextBoxColumn1.HeaderText = "房号"; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.ReadOnly = true; + dataGridViewTextBoxColumn1.DataPropertyName = "RoomNo"; + dataGridViewTextBoxColumn1.FillWeight = 102.6831F; + dataGridViewTextBoxColumn1.HeaderText = "房号"; + dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + dataGridViewTextBoxColumn1.ReadOnly = true; // // clPrice // - this.clPrice.DataPropertyName = "SpendPriceStr"; - this.clPrice.HeaderText = "单价(元)"; - this.clPrice.Name = "clPrice"; - this.clPrice.ReadOnly = true; + clPrice.DataPropertyName = "SpendPriceStr"; + clPrice.HeaderText = "单价(元)"; + clPrice.Name = "clPrice"; + clPrice.ReadOnly = true; // // dataGridViewTextBoxColumn2 // - this.dataGridViewTextBoxColumn2.DataPropertyName = "CustoNo"; - this.dataGridViewTextBoxColumn2.FillWeight = 102.6831F; - this.dataGridViewTextBoxColumn2.HeaderText = "客户编号"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.ReadOnly = true; + dataGridViewTextBoxColumn2.DataPropertyName = "CustoNo"; + dataGridViewTextBoxColumn2.FillWeight = 102.6831F; + dataGridViewTextBoxColumn2.HeaderText = "客户编号"; + dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + dataGridViewTextBoxColumn2.ReadOnly = true; // // dataGridViewTextBoxColumn3 // - this.dataGridViewTextBoxColumn3.DataPropertyName = "SpendName"; - this.dataGridViewTextBoxColumn3.FillWeight = 102.6831F; - this.dataGridViewTextBoxColumn3.HeaderText = "商品"; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.ReadOnly = true; + dataGridViewTextBoxColumn3.DataPropertyName = "SpendName"; + dataGridViewTextBoxColumn3.FillWeight = 102.6831F; + dataGridViewTextBoxColumn3.HeaderText = "商品"; + dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + dataGridViewTextBoxColumn3.ReadOnly = true; // // dataGridViewTextBoxColumn4 // - this.dataGridViewTextBoxColumn4.DataPropertyName = "SpendAmount"; - this.dataGridViewTextBoxColumn4.FillWeight = 60F; - this.dataGridViewTextBoxColumn4.HeaderText = "数量"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; + dataGridViewTextBoxColumn4.DataPropertyName = "SpendAmount"; + dataGridViewTextBoxColumn4.FillWeight = 60F; + dataGridViewTextBoxColumn4.HeaderText = "数量"; + dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + dataGridViewTextBoxColumn4.ReadOnly = true; // // dataGridViewTextBoxColumn5 // - this.dataGridViewTextBoxColumn5.DataPropertyName = "SpendPrice"; - this.dataGridViewTextBoxColumn5.FillWeight = 102.6831F; - this.dataGridViewTextBoxColumn5.HeaderText = "单价(元)"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.ReadOnly = true; - this.dataGridViewTextBoxColumn5.Visible = false; + dataGridViewTextBoxColumn5.DataPropertyName = "SpendPrice"; + dataGridViewTextBoxColumn5.FillWeight = 102.6831F; + dataGridViewTextBoxColumn5.HeaderText = "单价(元)"; + dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + dataGridViewTextBoxColumn5.ReadOnly = true; + dataGridViewTextBoxColumn5.Visible = false; // // dataGridViewTextBoxColumn6 // - this.dataGridViewTextBoxColumn6.DataPropertyName = "SpendMoneyStr"; - this.dataGridViewTextBoxColumn6.FillWeight = 102.6831F; - this.dataGridViewTextBoxColumn6.HeaderText = "总额"; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.ReadOnly = true; + dataGridViewTextBoxColumn6.DataPropertyName = "SpendMoneyStr"; + dataGridViewTextBoxColumn6.FillWeight = 102.6831F; + dataGridViewTextBoxColumn6.HeaderText = "总额"; + dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + dataGridViewTextBoxColumn6.ReadOnly = true; // // dataGridViewTextBoxColumn7 // - this.dataGridViewTextBoxColumn7.DataPropertyName = "SpendTime"; - this.dataGridViewTextBoxColumn7.FillWeight = 102.6831F; - this.dataGridViewTextBoxColumn7.HeaderText = "消费时间"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.ReadOnly = true; + dataGridViewTextBoxColumn7.DataPropertyName = "SpendTime"; + dataGridViewTextBoxColumn7.FillWeight = 102.6831F; + dataGridViewTextBoxColumn7.HeaderText = "消费时间"; + dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + dataGridViewTextBoxColumn7.ReadOnly = true; // // clSpendNo // - this.clSpendNo.DataPropertyName = "delete_mk"; - this.clSpendNo.HeaderText = "Column1"; - this.clSpendNo.Name = "clSpendNo"; - this.clSpendNo.ReadOnly = true; - this.clSpendNo.Visible = false; + clSpendNo.DataPropertyName = "delete_mk"; + clSpendNo.HeaderText = "Column1"; + clSpendNo.Name = "clSpendNo"; + clSpendNo.ReadOnly = true; + clSpendNo.Visible = false; // // Column1 // - this.Column1.DataPropertyName = "datains_usr"; - this.Column1.HeaderText = "Column1"; - this.Column1.Name = "Column1"; - this.Column1.ReadOnly = true; - this.Column1.Visible = false; + Column1.DataPropertyName = "datains_usr"; + Column1.HeaderText = "Column1"; + Column1.Name = "Column1"; + Column1.ReadOnly = true; + Column1.Visible = false; // // Column2 // - this.Column2.DataPropertyName = "datains_date"; - this.Column2.HeaderText = "Column2"; - this.Column2.Name = "Column2"; - this.Column2.ReadOnly = true; - this.Column2.Visible = false; + Column2.DataPropertyName = "datains_date"; + Column2.HeaderText = "Column2"; + Column2.Name = "Column2"; + Column2.ReadOnly = true; + Column2.Visible = false; // // Column3 // - this.Column3.DataPropertyName = "datachg_usr"; - this.Column3.HeaderText = "Column3"; - this.Column3.Name = "Column3"; - this.Column3.ReadOnly = true; - this.Column3.Visible = false; + Column3.DataPropertyName = "datachg_usr"; + Column3.HeaderText = "Column3"; + Column3.Name = "Column3"; + Column3.ReadOnly = true; + Column3.Visible = false; // // Column4 // - this.Column4.DataPropertyName = "datachg_date"; - this.Column4.HeaderText = "Column4"; - this.Column4.Name = "Column4"; - this.Column4.ReadOnly = true; - this.Column4.Visible = false; + Column4.DataPropertyName = "datachg_date"; + Column4.HeaderText = "Column4"; + Column4.Name = "Column4"; + Column4.ReadOnly = true; + Column4.Visible = false; // // Column8 // - this.Column8.DataPropertyName = "MoneyState"; - this.Column8.HeaderText = "Column8"; - this.Column8.Name = "Column8"; - this.Column8.ReadOnly = true; - this.Column8.Visible = false; + Column8.DataPropertyName = "MoneyState"; + Column8.HeaderText = "Column8"; + Column8.Name = "Column8"; + Column8.ReadOnly = true; + Column8.Visible = false; // // lblDay // - this.lblDay.AutoSize = true; - this.lblDay.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblDay.Location = new System.Drawing.Point(572, 76); - this.lblDay.Name = "lblDay"; - this.lblDay.Size = new System.Drawing.Size(45, 25); - this.lblDay.TabIndex = 114; - this.lblDay.Text = "Null"; + lblDay.AutoSize = true; + lblDay.Font = new Font("Microsoft Sans Serif", 15F, FontStyle.Regular, GraphicsUnit.Point, 0); + lblDay.Location = new Point(572, 76); + lblDay.Name = "lblDay"; + lblDay.Size = new Size(45, 25); + lblDay.TabIndex = 114; + lblDay.Text = "Null"; // // lable00 // - this.lable00.AutoSize = true; - this.lable00.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lable00.Location = new System.Drawing.Point(492, 387); - this.lable00.Name = "lable00"; - this.lable00.Size = new System.Drawing.Size(89, 20); - this.lable00.TabIndex = 26; - this.lable00.Text = "折后金额:"; + lable00.AutoSize = true; + lable00.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + lable00.Location = new Point(456, 388); + lable00.Name = "lable00"; + lable00.Size = new Size(89, 20); + lable00.TabIndex = 26; + lable00.Text = "折后金额:"; // // label29 // - this.label29.AutoSize = true; - this.label29.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label29.Location = new System.Drawing.Point(551, 24); - this.label29.Name = "label29"; - this.label29.Size = new System.Drawing.Size(88, 25); - this.label29.TabIndex = 113; - this.label29.Text = "已住天数"; + label29.AutoSize = true; + label29.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label29.Location = new Point(551, 24); + label29.Name = "label29"; + label29.Size = new Size(88, 25); + label29.TabIndex = 113; + label29.Text = "已住天数"; // // lblVIP // - this.lblVIP.AutoSize = true; - this.lblVIP.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblVIP.Location = new System.Drawing.Point(585, 360); - this.lblVIP.Name = "lblVIP"; - this.lblVIP.Size = new System.Drawing.Size(73, 20); - this.lblVIP.TabIndex = 24; - this.lblVIP.Text = "不 打 折"; + lblVIP.AutoSize = true; + lblVIP.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + lblVIP.Location = new Point(549, 361); + lblVIP.Name = "lblVIP"; + lblVIP.Size = new Size(73, 20); + lblVIP.TabIndex = 24; + lblVIP.Text = "不 打 折"; // // dtpCheckTime // - this.dtpCheckTime.Cursor = System.Windows.Forms.Cursors.IBeam; - this.dtpCheckTime.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dtpCheckTime.Location = new System.Drawing.Point(376, 18); - this.dtpCheckTime.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.dtpCheckTime.MinimumSize = new System.Drawing.Size(1, 1); - this.dtpCheckTime.Name = "dtpCheckTime"; - this.dtpCheckTime.Padding = new System.Windows.Forms.Padding(5); - this.dtpCheckTime.Radius = 20; - this.dtpCheckTime.ReadOnly = true; - this.dtpCheckTime.ShowText = false; - this.dtpCheckTime.Size = new System.Drawing.Size(168, 35); - this.dtpCheckTime.Style = Sunny.UI.UIStyle.Custom; - this.dtpCheckTime.StyleCustomMode = true; - this.dtpCheckTime.Symbol = 559683; - this.dtpCheckTime.TabIndex = 111; - this.dtpCheckTime.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.dtpCheckTime.Watermark = ""; + dtpCheckTime.Cursor = Cursors.IBeam; + dtpCheckTime.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + dtpCheckTime.Location = new Point(376, 18); + dtpCheckTime.Margin = new Padding(4, 5, 4, 5); + dtpCheckTime.MinimumSize = new Size(1, 1); + dtpCheckTime.Name = "dtpCheckTime"; + dtpCheckTime.Padding = new Padding(5); + dtpCheckTime.Radius = 20; + dtpCheckTime.ReadOnly = true; + dtpCheckTime.ShowText = false; + dtpCheckTime.Size = new Size(168, 35); + dtpCheckTime.Style = Sunny.UI.UIStyle.Custom; + dtpCheckTime.StyleCustomMode = true; + dtpCheckTime.Symbol = 559683; + dtpCheckTime.TabIndex = 111; + dtpCheckTime.TextAlignment = ContentAlignment.MiddleLeft; + dtpCheckTime.Watermark = ""; // // label25 // - this.label25.AutoSize = true; - this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label25.Location = new System.Drawing.Point(492, 358); - this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(89, 20); - this.label25.TabIndex = 23; - this.label25.Text = "会员折扣:"; + label25.AutoSize = true; + label25.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label25.Location = new Point(456, 359); + label25.Name = "label25"; + label25.Size = new Size(89, 20); + label25.TabIndex = 23; + label25.Text = "会员折扣:"; // // txtRoomNo // - this.txtRoomNo.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtRoomNo.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtRoomNo.Location = new System.Drawing.Point(376, 70); - this.txtRoomNo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtRoomNo.MinimumSize = new System.Drawing.Size(1, 1); - this.txtRoomNo.Name = "txtRoomNo"; - this.txtRoomNo.Padding = new System.Windows.Forms.Padding(5); - this.txtRoomNo.Radius = 20; - this.txtRoomNo.ReadOnly = true; - this.txtRoomNo.ShowText = false; - this.txtRoomNo.Size = new System.Drawing.Size(168, 35); - this.txtRoomNo.Style = Sunny.UI.UIStyle.Custom; - this.txtRoomNo.StyleCustomMode = true; - this.txtRoomNo.TabIndex = 112; - this.txtRoomNo.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.txtRoomNo.Watermark = ""; + txtRoomNo.Cursor = Cursors.IBeam; + txtRoomNo.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtRoomNo.Location = new Point(376, 70); + txtRoomNo.Margin = new Padding(4, 5, 4, 5); + txtRoomNo.MinimumSize = new Size(1, 1); + txtRoomNo.Name = "txtRoomNo"; + txtRoomNo.Padding = new Padding(5); + txtRoomNo.Radius = 20; + txtRoomNo.ReadOnly = true; + txtRoomNo.ShowText = false; + txtRoomNo.Size = new Size(168, 35); + txtRoomNo.Style = Sunny.UI.UIStyle.Custom; + txtRoomNo.StyleCustomMode = true; + txtRoomNo.TabIndex = 112; + txtRoomNo.TextAlignment = ContentAlignment.MiddleLeft; + txtRoomNo.Watermark = ""; // // label27 // - this.label27.AutoSize = true; - this.label27.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label27.Location = new System.Drawing.Point(285, 76); - this.label27.Name = "label27"; - this.label27.Size = new System.Drawing.Size(88, 25); - this.label27.TabIndex = 110; - this.label27.Text = "房间编号"; + label27.AutoSize = true; + label27.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label27.Location = new Point(285, 76); + label27.Name = "label27"; + label27.Size = new Size(88, 25); + label27.TabIndex = 110; + label27.Text = "房间编号"; // // label28 // - this.label28.AutoSize = true; - this.label28.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label28.Location = new System.Drawing.Point(285, 24); - this.label28.Name = "label28"; - this.label28.Size = new System.Drawing.Size(88, 25); - this.label28.TabIndex = 109; - this.label28.Text = "入住时间"; + label28.AutoSize = true; + label28.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label28.Location = new Point(285, 24); + label28.Name = "label28"; + label28.Size = new Size(88, 25); + label28.TabIndex = 109; + label28.Text = "入住时间"; // // lblChange // - this.lblChange.AutoSize = true; - this.lblChange.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblChange.Location = new System.Drawing.Point(584, 444); - this.lblChange.Name = "lblChange"; - this.lblChange.Size = new System.Drawing.Size(40, 20); - this.lblChange.TabIndex = 21; - this.lblChange.Text = "0.00"; + lblChange.AutoSize = true; + lblChange.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + lblChange.Location = new Point(548, 445); + lblChange.Name = "lblChange"; + lblChange.Size = new Size(40, 20); + lblChange.TabIndex = 21; + lblChange.Text = "0.00"; // // CustoNo // - this.CustoNo.Cursor = System.Windows.Forms.Cursors.IBeam; - this.CustoNo.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.CustoNo.Location = new System.Drawing.Point(117, 18); - this.CustoNo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.CustoNo.MinimumSize = new System.Drawing.Size(1, 1); - this.CustoNo.Name = "CustoNo"; - this.CustoNo.Padding = new System.Windows.Forms.Padding(5); - this.CustoNo.Radius = 20; - this.CustoNo.ReadOnly = true; - this.CustoNo.ShowText = false; - this.CustoNo.Size = new System.Drawing.Size(144, 35); - this.CustoNo.Style = Sunny.UI.UIStyle.Custom; - this.CustoNo.StyleCustomMode = true; - this.CustoNo.TabIndex = 107; - this.CustoNo.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.CustoNo.Watermark = ""; + CustoNo.Cursor = Cursors.IBeam; + CustoNo.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + CustoNo.Location = new Point(117, 18); + CustoNo.Margin = new Padding(4, 5, 4, 5); + CustoNo.MinimumSize = new Size(1, 1); + CustoNo.Name = "CustoNo"; + CustoNo.Padding = new Padding(5); + CustoNo.Radius = 20; + CustoNo.ReadOnly = true; + CustoNo.ShowText = false; + CustoNo.Size = new Size(144, 35); + CustoNo.Style = Sunny.UI.UIStyle.Custom; + CustoNo.StyleCustomMode = true; + CustoNo.TabIndex = 107; + CustoNo.TextAlignment = ContentAlignment.MiddleLeft; + CustoNo.Watermark = ""; // // label21 // - this.label21.AutoSize = true; - this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label21.Location = new System.Drawing.Point(491, 445); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(89, 20); - this.label21.TabIndex = 20; - this.label21.Text = "找 零:"; + label21.AutoSize = true; + label21.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label21.Location = new Point(455, 446); + label21.Name = "label21"; + label21.Size = new Size(89, 20); + label21.TabIndex = 20; + label21.Text = "找 零:"; // // CustoName // - this.CustoName.Cursor = System.Windows.Forms.Cursors.IBeam; - this.CustoName.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.CustoName.Location = new System.Drawing.Point(117, 70); - this.CustoName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.CustoName.MinimumSize = new System.Drawing.Size(1, 1); - this.CustoName.Name = "CustoName"; - this.CustoName.Padding = new System.Windows.Forms.Padding(5); - this.CustoName.Radius = 20; - this.CustoName.ReadOnly = true; - this.CustoName.ShowText = false; - this.CustoName.Size = new System.Drawing.Size(144, 35); - this.CustoName.Style = Sunny.UI.UIStyle.Custom; - this.CustoName.StyleCustomMode = true; - this.CustoName.TabIndex = 108; - this.CustoName.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.CustoName.Watermark = ""; + CustoName.Cursor = Cursors.IBeam; + CustoName.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + CustoName.Location = new Point(117, 70); + CustoName.Margin = new Padding(4, 5, 4, 5); + CustoName.MinimumSize = new Size(1, 1); + CustoName.Name = "CustoName"; + CustoName.Padding = new Padding(5); + CustoName.Radius = 20; + CustoName.ReadOnly = true; + CustoName.ShowText = false; + CustoName.Size = new Size(144, 35); + CustoName.Style = Sunny.UI.UIStyle.Custom; + CustoName.StyleCustomMode = true; + CustoName.TabIndex = 108; + CustoName.TextAlignment = ContentAlignment.MiddleLeft; + CustoName.Watermark = ""; // // lblGetReceipts // - this.lblGetReceipts.AutoSize = true; - this.lblGetReceipts.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblGetReceipts.Location = new System.Drawing.Point(584, 416); - this.lblGetReceipts.Name = "lblGetReceipts"; - this.lblGetReceipts.Size = new System.Drawing.Size(40, 20); - this.lblGetReceipts.TabIndex = 19; - this.lblGetReceipts.Text = "0.00"; + lblGetReceipts.AutoSize = true; + lblGetReceipts.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + lblGetReceipts.Location = new Point(548, 417); + lblGetReceipts.Name = "lblGetReceipts"; + lblGetReceipts.Size = new Size(40, 20); + lblGetReceipts.TabIndex = 19; + lblGetReceipts.Text = "0.00"; // // label1 // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(26, 76); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(88, 25); - this.label1.TabIndex = 106; - this.label1.Text = "客户姓名"; + label1.AutoSize = true; + label1.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label1.Location = new Point(26, 76); + label1.Name = "label1"; + label1.Size = new Size(88, 25); + label1.TabIndex = 106; + label1.Text = "客户姓名"; // // label24 // - this.label24.AutoSize = true; - this.label24.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label24.Location = new System.Drawing.Point(26, 24); - this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(88, 25); - this.label24.TabIndex = 105; - this.label24.Text = "客户编号"; + label24.AutoSize = true; + label24.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label24.Location = new Point(26, 24); + label24.Name = "label24"; + label24.Size = new Size(88, 25); + label24.TabIndex = 105; + label24.Text = "客户编号"; // // label17 // - this.label17.AutoSize = true; - this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label17.Location = new System.Drawing.Point(491, 329); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(89, 20); - this.label17.TabIndex = 14; - this.label17.Text = "实收金额:"; + label17.AutoSize = true; + label17.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label17.Location = new Point(455, 330); + label17.Name = "label17"; + label17.Size = new Size(89, 20); + label17.TabIndex = 14; + label17.Text = "实收金额:"; // // label18 // - this.label18.AutoSize = true; - this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label18.Location = new System.Drawing.Point(491, 416); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(89, 20); - this.label18.TabIndex = 15; - this.label18.Text = "应收金额:"; + label18.AutoSize = true; + label18.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + label18.Location = new Point(455, 417); + label18.Name = "label18"; + label18.Size = new Size(89, 20); + label18.TabIndex = 15; + label18.Text = "应收金额:"; // // cboCustoType // - this.cboCustoType.DataSource = null; - this.cboCustoType.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; - this.cboCustoType.FillColor = System.Drawing.Color.White; - this.cboCustoType.Font = new System.Drawing.Font("微软雅黑", 15.75F); - this.cboCustoType.ItemHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(200)))), ((int)(((byte)(255))))); - this.cboCustoType.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.cboCustoType.Location = new System.Drawing.Point(437, 19); - this.cboCustoType.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.cboCustoType.MinimumSize = new System.Drawing.Size(63, 0); - this.cboCustoType.Name = "cboCustoType"; - this.cboCustoType.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); - this.cboCustoType.Radius = 20; - this.cboCustoType.ReadOnly = true; - this.cboCustoType.Size = new System.Drawing.Size(203, 35); - this.cboCustoType.Style = Sunny.UI.UIStyle.Custom; - this.cboCustoType.SymbolSize = 24; - this.cboCustoType.TabIndex = 125; - this.cboCustoType.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.cboCustoType.Watermark = ""; + cboCustoType.DataSource = null; + cboCustoType.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; + cboCustoType.FillColor = Color.White; + cboCustoType.Font = new Font("微软雅黑", 15.75F); + cboCustoType.ItemHoverColor = Color.FromArgb(155, 200, 255); + cboCustoType.ItemSelectForeColor = Color.FromArgb(235, 243, 255); + cboCustoType.Location = new Point(437, 19); + cboCustoType.Margin = new Padding(4, 5, 4, 5); + cboCustoType.MinimumSize = new Size(63, 0); + cboCustoType.Name = "cboCustoType"; + cboCustoType.Padding = new Padding(0, 0, 30, 2); + cboCustoType.Radius = 20; + cboCustoType.ReadOnly = true; + cboCustoType.Size = new Size(203, 35); + cboCustoType.Style = Sunny.UI.UIStyle.Custom; + cboCustoType.SymbolSize = 24; + cboCustoType.TabIndex = 125; + cboCustoType.TextAlignment = ContentAlignment.MiddleLeft; + cboCustoType.Watermark = ""; // // cboPassportType // - this.cboPassportType.DataSource = null; - this.cboPassportType.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; - this.cboPassportType.FillColor = System.Drawing.Color.White; - this.cboPassportType.Font = new System.Drawing.Font("微软雅黑", 15.75F); - this.cboPassportType.ItemHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(200)))), ((int)(((byte)(255))))); - this.cboPassportType.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.cboPassportType.Location = new System.Drawing.Point(437, 70); - this.cboPassportType.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.cboPassportType.MinimumSize = new System.Drawing.Size(63, 0); - this.cboPassportType.Name = "cboPassportType"; - this.cboPassportType.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); - this.cboPassportType.Radius = 20; - this.cboPassportType.ReadOnly = true; - this.cboPassportType.Size = new System.Drawing.Size(203, 35); - this.cboPassportType.Style = Sunny.UI.UIStyle.Custom; - this.cboPassportType.SymbolSize = 24; - this.cboPassportType.TabIndex = 124; - this.cboPassportType.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.cboPassportType.Watermark = ""; + cboPassportType.DataSource = null; + cboPassportType.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; + cboPassportType.FillColor = Color.White; + cboPassportType.Font = new Font("微软雅黑", 15.75F); + cboPassportType.ItemHoverColor = Color.FromArgb(155, 200, 255); + cboPassportType.ItemSelectForeColor = Color.FromArgb(235, 243, 255); + cboPassportType.Location = new Point(437, 70); + cboPassportType.Margin = new Padding(4, 5, 4, 5); + cboPassportType.MinimumSize = new Size(63, 0); + cboPassportType.Name = "cboPassportType"; + cboPassportType.Padding = new Padding(0, 0, 30, 2); + cboPassportType.Radius = 20; + cboPassportType.ReadOnly = true; + cboPassportType.Size = new Size(203, 35); + cboPassportType.Style = Sunny.UI.UIStyle.Custom; + cboPassportType.SymbolSize = 24; + cboPassportType.TabIndex = 124; + cboPassportType.TextAlignment = ContentAlignment.MiddleLeft; + cboPassportType.Watermark = ""; // // cboCustoSex // - this.cboCustoSex.DataSource = null; - this.cboCustoSex.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; - this.cboCustoSex.FillColor = System.Drawing.Color.White; - this.cboCustoSex.Font = new System.Drawing.Font("微软雅黑", 15.75F); - this.cboCustoSex.ItemHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(200)))), ((int)(((byte)(255))))); - this.cboCustoSex.ItemSelectForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.cboCustoSex.Location = new System.Drawing.Point(134, 124); - this.cboCustoSex.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.cboCustoSex.MinimumSize = new System.Drawing.Size(63, 0); - this.cboCustoSex.Name = "cboCustoSex"; - this.cboCustoSex.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); - this.cboCustoSex.Radius = 20; - this.cboCustoSex.ReadOnly = true; - this.cboCustoSex.Size = new System.Drawing.Size(203, 35); - this.cboCustoSex.Style = Sunny.UI.UIStyle.Custom; - this.cboCustoSex.SymbolSize = 24; - this.cboCustoSex.TabIndex = 123; - this.cboCustoSex.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.cboCustoSex.Watermark = ""; + cboCustoSex.DataSource = null; + cboCustoSex.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; + cboCustoSex.FillColor = Color.White; + cboCustoSex.Font = new Font("微软雅黑", 15.75F); + cboCustoSex.ItemHoverColor = Color.FromArgb(155, 200, 255); + cboCustoSex.ItemSelectForeColor = Color.FromArgb(235, 243, 255); + cboCustoSex.Location = new Point(134, 124); + cboCustoSex.Margin = new Padding(4, 5, 4, 5); + cboCustoSex.MinimumSize = new Size(63, 0); + cboCustoSex.Name = "cboCustoSex"; + cboCustoSex.Padding = new Padding(0, 0, 30, 2); + cboCustoSex.Radius = 20; + cboCustoSex.ReadOnly = true; + cboCustoSex.Size = new Size(203, 35); + cboCustoSex.Style = Sunny.UI.UIStyle.Custom; + cboCustoSex.SymbolSize = 24; + cboCustoSex.TabIndex = 123; + cboCustoSex.TextAlignment = ContentAlignment.MiddleLeft; + cboCustoSex.Watermark = ""; // // txtCustoNo // - this.txtCustoNo.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtCustoNo.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtCustoNo.Location = new System.Drawing.Point(134, 20); - this.txtCustoNo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtCustoNo.MinimumSize = new System.Drawing.Size(1, 1); - this.txtCustoNo.Name = "txtCustoNo"; - this.txtCustoNo.Padding = new System.Windows.Forms.Padding(5); - this.txtCustoNo.Radius = 20; - this.txtCustoNo.ReadOnly = true; - this.txtCustoNo.ShowText = false; - this.txtCustoNo.Size = new System.Drawing.Size(203, 35); - this.txtCustoNo.Style = Sunny.UI.UIStyle.Custom; - this.txtCustoNo.StyleCustomMode = true; - this.txtCustoNo.TabIndex = 122; - this.txtCustoNo.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.txtCustoNo.Watermark = ""; + txtCustoNo.Cursor = Cursors.IBeam; + txtCustoNo.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtCustoNo.Location = new Point(134, 20); + txtCustoNo.Margin = new Padding(4, 5, 4, 5); + txtCustoNo.MinimumSize = new Size(1, 1); + txtCustoNo.Name = "txtCustoNo"; + txtCustoNo.Padding = new Padding(5); + txtCustoNo.Radius = 20; + txtCustoNo.ReadOnly = true; + txtCustoNo.ShowText = false; + txtCustoNo.Size = new Size(203, 35); + txtCustoNo.Style = Sunny.UI.UIStyle.Custom; + txtCustoNo.StyleCustomMode = true; + txtCustoNo.TabIndex = 122; + txtCustoNo.TextAlignment = ContentAlignment.MiddleLeft; + txtCustoNo.Watermark = ""; // // txtCustoName // - this.txtCustoName.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtCustoName.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtCustoName.Location = new System.Drawing.Point(134, 72); - this.txtCustoName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtCustoName.MinimumSize = new System.Drawing.Size(1, 1); - this.txtCustoName.Name = "txtCustoName"; - this.txtCustoName.Padding = new System.Windows.Forms.Padding(5); - this.txtCustoName.Radius = 20; - this.txtCustoName.ReadOnly = true; - this.txtCustoName.ShowText = false; - this.txtCustoName.Size = new System.Drawing.Size(203, 35); - this.txtCustoName.Style = Sunny.UI.UIStyle.Custom; - this.txtCustoName.StyleCustomMode = true; - this.txtCustoName.TabIndex = 121; - this.txtCustoName.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.txtCustoName.Watermark = ""; + txtCustoName.Cursor = Cursors.IBeam; + txtCustoName.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtCustoName.Location = new Point(134, 72); + txtCustoName.Margin = new Padding(4, 5, 4, 5); + txtCustoName.MinimumSize = new Size(1, 1); + txtCustoName.Name = "txtCustoName"; + txtCustoName.Padding = new Padding(5); + txtCustoName.Radius = 20; + txtCustoName.ReadOnly = true; + txtCustoName.ShowText = false; + txtCustoName.Size = new Size(203, 35); + txtCustoName.Style = Sunny.UI.UIStyle.Custom; + txtCustoName.StyleCustomMode = true; + txtCustoName.TabIndex = 121; + txtCustoName.TextAlignment = ContentAlignment.MiddleLeft; + txtCustoName.Watermark = ""; // // txtPassportNum // - this.txtPassportNum.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtPassportNum.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtPassportNum.Location = new System.Drawing.Point(437, 121); - this.txtPassportNum.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtPassportNum.MinimumSize = new System.Drawing.Size(1, 1); - this.txtPassportNum.Name = "txtPassportNum"; - this.txtPassportNum.Padding = new System.Windows.Forms.Padding(5); - this.txtPassportNum.Radius = 20; - this.txtPassportNum.ReadOnly = true; - this.txtPassportNum.ShowText = false; - this.txtPassportNum.Size = new System.Drawing.Size(203, 35); - this.txtPassportNum.Style = Sunny.UI.UIStyle.Custom; - this.txtPassportNum.StyleCustomMode = true; - this.txtPassportNum.TabIndex = 120; - this.txtPassportNum.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.txtPassportNum.Watermark = ""; + txtPassportNum.Cursor = Cursors.IBeam; + txtPassportNum.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtPassportNum.Location = new Point(437, 121); + txtPassportNum.Margin = new Padding(4, 5, 4, 5); + txtPassportNum.MinimumSize = new Size(1, 1); + txtPassportNum.Name = "txtPassportNum"; + txtPassportNum.Padding = new Padding(5); + txtPassportNum.Radius = 20; + txtPassportNum.ReadOnly = true; + txtPassportNum.ShowText = false; + txtPassportNum.Size = new Size(203, 35); + txtPassportNum.Style = Sunny.UI.UIStyle.Custom; + txtPassportNum.StyleCustomMode = true; + txtPassportNum.TabIndex = 120; + txtPassportNum.TextAlignment = ContentAlignment.MiddleLeft; + txtPassportNum.Watermark = ""; // // txtTel // - this.txtTel.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtTel.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtTel.Location = new System.Drawing.Point(437, 172); - this.txtTel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtTel.MinimumSize = new System.Drawing.Size(1, 1); - this.txtTel.Name = "txtTel"; - this.txtTel.Padding = new System.Windows.Forms.Padding(5); - this.txtTel.Radius = 20; - this.txtTel.ReadOnly = true; - this.txtTel.ShowText = false; - this.txtTel.Size = new System.Drawing.Size(203, 35); - this.txtTel.Style = Sunny.UI.UIStyle.Custom; - this.txtTel.StyleCustomMode = true; - this.txtTel.TabIndex = 119; - this.txtTel.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.txtTel.Watermark = ""; + txtTel.Cursor = Cursors.IBeam; + txtTel.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtTel.Location = new Point(437, 172); + txtTel.Margin = new Padding(4, 5, 4, 5); + txtTel.MinimumSize = new Size(1, 1); + txtTel.Name = "txtTel"; + txtTel.Padding = new Padding(5); + txtTel.Radius = 20; + txtTel.ReadOnly = true; + txtTel.ShowText = false; + txtTel.Size = new Size(203, 35); + txtTel.Style = Sunny.UI.UIStyle.Custom; + txtTel.StyleCustomMode = true; + txtTel.TabIndex = 119; + txtTel.TextAlignment = ContentAlignment.MiddleLeft; + txtTel.Watermark = ""; // // dtpBirth // - this.dtpBirth.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; - this.dtpBirth.FillColor = System.Drawing.Color.White; - this.dtpBirth.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F); - this.dtpBirth.Location = new System.Drawing.Point(134, 176); - this.dtpBirth.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.dtpBirth.MaxLength = 10; - this.dtpBirth.MinimumSize = new System.Drawing.Size(63, 0); - this.dtpBirth.Name = "dtpBirth"; - this.dtpBirth.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); - this.dtpBirth.Radius = 20; - this.dtpBirth.ReadOnly = true; - this.dtpBirth.Size = new System.Drawing.Size(203, 31); - this.dtpBirth.Style = Sunny.UI.UIStyle.Custom; - this.dtpBirth.SymbolDropDown = 61555; - this.dtpBirth.SymbolNormal = 61555; - this.dtpBirth.SymbolSize = 24; - this.dtpBirth.TabIndex = 118; - this.dtpBirth.Text = "2020-11-24"; - this.dtpBirth.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.dtpBirth.Value = new System.DateTime(2020, 11, 24, 22, 50, 36, 791); - this.dtpBirth.Watermark = ""; + dtpBirth.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; + dtpBirth.FillColor = Color.White; + dtpBirth.Font = new Font("Microsoft Sans Serif", 15.75F); + dtpBirth.Location = new Point(134, 176); + dtpBirth.Margin = new Padding(4, 5, 4, 5); + dtpBirth.MaxLength = 10; + dtpBirth.MinimumSize = new Size(63, 0); + dtpBirth.Name = "dtpBirth"; + dtpBirth.Padding = new Padding(0, 0, 30, 2); + dtpBirth.Radius = 20; + dtpBirth.ReadOnly = true; + dtpBirth.Size = new Size(203, 31); + dtpBirth.Style = Sunny.UI.UIStyle.Custom; + dtpBirth.SymbolDropDown = 61555; + dtpBirth.SymbolNormal = 61555; + dtpBirth.SymbolSize = 24; + dtpBirth.TabIndex = 118; + dtpBirth.Text = "2020-11-24"; + dtpBirth.TextAlignment = ContentAlignment.MiddleLeft; + dtpBirth.Value = new DateTime(2020, 11, 24, 22, 50, 36, 791); + dtpBirth.Watermark = ""; // // txtAddress // - this.txtAddress.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtAddress.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtAddress.Location = new System.Drawing.Point(132, 224); - this.txtAddress.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtAddress.MinimumSize = new System.Drawing.Size(1, 1); - this.txtAddress.Name = "txtAddress"; - this.txtAddress.Padding = new System.Windows.Forms.Padding(5); - this.txtAddress.Radius = 20; - this.txtAddress.ReadOnly = true; - this.txtAddress.ShowText = false; - this.txtAddress.Size = new System.Drawing.Size(508, 35); - this.txtAddress.Style = Sunny.UI.UIStyle.Custom; - this.txtAddress.StyleCustomMode = true; - this.txtAddress.TabIndex = 117; - this.txtAddress.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; - this.txtAddress.Watermark = ""; + txtAddress.Cursor = Cursors.IBeam; + txtAddress.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtAddress.Location = new Point(132, 224); + txtAddress.Margin = new Padding(4, 5, 4, 5); + txtAddress.MinimumSize = new Size(1, 1); + txtAddress.Name = "txtAddress"; + txtAddress.Padding = new Padding(5); + txtAddress.Radius = 20; + txtAddress.ReadOnly = true; + txtAddress.ShowText = false; + txtAddress.Size = new Size(508, 35); + txtAddress.Style = Sunny.UI.UIStyle.Custom; + txtAddress.StyleCustomMode = true; + txtAddress.TabIndex = 117; + txtAddress.TextAlignment = ContentAlignment.MiddleLeft; + txtAddress.Watermark = ""; // // label2 // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(25, 234); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(88, 25); - this.label2.TabIndex = 115; - this.label2.Text = "居住地址"; + label2.AutoSize = true; + label2.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label2.Location = new Point(25, 234); + label2.Name = "label2"; + label2.Size = new Size(88, 25); + label2.TabIndex = 115; + label2.Text = "居住地址"; // // label3 // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label3.Location = new System.Drawing.Point(344, 179); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(88, 25); - this.label3.TabIndex = 114; - this.label3.Text = "联系方式"; + label3.AutoSize = true; + label3.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label3.Location = new Point(344, 179); + label3.Name = "label3"; + label3.Size = new Size(88, 25); + label3.TabIndex = 114; + label3.Text = "联系方式"; // // label4 // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(344, 128); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(88, 25); - this.label4.TabIndex = 113; - this.label4.Text = "证件号码"; + label4.AutoSize = true; + label4.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label4.Location = new Point(344, 128); + label4.Name = "label4"; + label4.Size = new Size(88, 25); + label4.TabIndex = 113; + label4.Text = "证件号码"; // // label5 // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(344, 77); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(88, 25); - this.label5.TabIndex = 112; - this.label5.Text = "证件类型"; + label5.AutoSize = true; + label5.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label5.Location = new Point(344, 77); + label5.Name = "label5"; + label5.Size = new Size(88, 25); + label5.TabIndex = 112; + label5.Text = "证件类型"; // // label16 // - this.label16.AutoSize = true; - this.label16.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label16.Location = new System.Drawing.Point(344, 26); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(88, 25); - this.label16.TabIndex = 111; - this.label16.Text = "客户类型"; + label16.AutoSize = true; + label16.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label16.Location = new Point(344, 26); + label16.Name = "label16"; + label16.Size = new Size(88, 25); + label16.TabIndex = 111; + label16.Text = "客户类型"; // // label22 // - this.label22.AutoSize = true; - this.label22.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label22.Location = new System.Drawing.Point(27, 182); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(88, 25); - this.label22.TabIndex = 110; - this.label22.Text = "出生日期"; + label22.AutoSize = true; + label22.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label22.Location = new Point(27, 182); + label22.Name = "label22"; + label22.Size = new Size(88, 25); + label22.TabIndex = 110; + label22.Text = "出生日期"; // // label30 // - this.label30.AutoSize = true; - this.label30.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label30.Location = new System.Drawing.Point(27, 130); - this.label30.Name = "label30"; - this.label30.Size = new System.Drawing.Size(86, 25); - this.label30.TabIndex = 109; - this.label30.Text = "性 别"; + label30.AutoSize = true; + label30.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label30.Location = new Point(27, 130); + label30.Name = "label30"; + label30.Size = new Size(86, 25); + label30.TabIndex = 109; + label30.Text = "性 别"; // // label31 // - this.label31.AutoSize = true; - this.label31.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label31.Location = new System.Drawing.Point(27, 78); - this.label31.Name = "label31"; - this.label31.Size = new System.Drawing.Size(88, 25); - this.label31.TabIndex = 108; - this.label31.Text = "客户姓名"; + label31.AutoSize = true; + label31.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label31.Location = new Point(27, 78); + label31.Name = "label31"; + label31.Size = new Size(88, 25); + label31.TabIndex = 108; + label31.Text = "客户姓名"; // // label32 // - this.label32.AutoSize = true; - this.label32.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label32.Location = new System.Drawing.Point(27, 26); - this.label32.Name = "label32"; - this.label32.Size = new System.Drawing.Size(88, 25); - this.label32.TabIndex = 107; - this.label32.Text = "客户编号"; + label32.AutoSize = true; + label32.Font = new Font("微软雅黑", 14.25F, FontStyle.Regular, GraphicsUnit.Point, 134); + label32.Location = new Point(27, 26); + label32.Name = "label32"; + label32.Size = new Size(88, 25); + label32.TabIndex = 107; + label32.Text = "客户编号"; // // dgvWti // - this.dgvWti.AllowUserToAddRows = false; - this.dgvWti.AllowUserToDeleteRows = false; - this.dgvWti.AllowUserToResizeColumns = false; - this.dgvWti.AllowUserToResizeRows = false; - dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.dgvWti.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; - this.dgvWti.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.dgvWti.BackgroundColor = System.Drawing.Color.White; - this.dgvWti.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvWti.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; - this.dgvWti.ColumnHeadersHeight = 32; - this.dgvWti.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - this.dgvWti.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.Column11, - this.clRoomNo, - this.clCustoNo, - this.clStartTime, - this.clDealTime, - this.clWater, - this.clElectric, - this.clMarkUser, - this.Column5, - this.Column6, - this.Column7, - this.Column9, - this.Column10}); - this.dgvWti.EnableHeadersVisualStyles = false; - this.dgvWti.Font = new System.Drawing.Font("微软雅黑", 12F); - this.dgvWti.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - this.dgvWti.Location = new System.Drawing.Point(3, 3); - this.dgvWti.Name = "dgvWti"; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 12F); - dataGridViewCellStyle7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255))))); - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.Color.White; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvWti.RowHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.dgvWti.RowHeadersVisible = false; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.White; - this.dgvWti.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.dgvWti.RowTemplate.Height = 29; - this.dgvWti.SelectedIndex = -1; - this.dgvWti.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvWti.Size = new System.Drawing.Size(656, 291); - this.dgvWti.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.dgvWti.Style = Sunny.UI.UIStyle.Custom; - this.dgvWti.TabIndex = 0; + dgvWti.AllowUserToAddRows = false; + dgvWti.AllowUserToDeleteRows = false; + dgvWti.AllowUserToResizeColumns = false; + dgvWti.AllowUserToResizeRows = false; + dataGridViewCellStyle5.BackColor = Color.FromArgb(235, 243, 255); + dgvWti.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; + dgvWti.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; + dgvWti.BackgroundColor = Color.White; + dgvWti.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle6.BackColor = Color.FromArgb(80, 160, 255); + dataGridViewCellStyle6.Font = new Font("微软雅黑", 12F); + dataGridViewCellStyle6.ForeColor = Color.White; + dataGridViewCellStyle6.SelectionBackColor = SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = DataGridViewTriState.True; + dgvWti.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; + dgvWti.ColumnHeadersHeight = 32; + dgvWti.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dgvWti.Columns.AddRange(new DataGridViewColumn[] { Column11, token, clRoomNo, clCustoNo, clStartTime, clDealTime, clWater, clElectric, clMarkUser, Column5, Column6, Column7, Column9, Column10 }); + dgvWti.EnableHeadersVisualStyles = false; + dgvWti.Font = new Font("微软雅黑", 12F); + dgvWti.GridColor = Color.FromArgb(80, 160, 255); + dgvWti.Location = new Point(3, 3); + dgvWti.Name = "dgvWti"; + dataGridViewCellStyle7.Alignment = DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle7.BackColor = Color.FromArgb(235, 243, 255); + dataGridViewCellStyle7.Font = new Font("微软雅黑", 12F); + dataGridViewCellStyle7.ForeColor = Color.FromArgb(48, 48, 48); + dataGridViewCellStyle7.SelectionBackColor = Color.FromArgb(80, 160, 255); + dataGridViewCellStyle7.SelectionForeColor = Color.White; + dataGridViewCellStyle7.WrapMode = DataGridViewTriState.True; + dgvWti.RowHeadersDefaultCellStyle = dataGridViewCellStyle7; + dgvWti.RowHeadersVisible = false; + dataGridViewCellStyle8.BackColor = Color.White; + dgvWti.RowsDefaultCellStyle = dataGridViewCellStyle8; + dgvWti.RowTemplate.Height = 29; + dgvWti.SelectedIndex = -1; + dgvWti.SelectionMode = DataGridViewSelectionMode.FullRowSelect; + dgvWti.Size = new Size(656, 291); + dgvWti.StripeOddColor = Color.FromArgb(235, 243, 255); + dgvWti.Style = Sunny.UI.UIStyle.Custom; + dgvWti.TabIndex = 0; + // + // uiTabControlMenu2 + // + uiTabControlMenu2.Alignment = TabAlignment.Left; + uiTabControlMenu2.Controls.Add(tabPage1); + uiTabControlMenu2.Controls.Add(tabPage2); + uiTabControlMenu2.Controls.Add(tabPage3); + uiTabControlMenu2.DrawMode = TabDrawMode.OwnerDrawFixed; + uiTabControlMenu2.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134); + uiTabControlMenu2.Location = new Point(3, 38); + uiTabControlMenu2.MenuStyle = Sunny.UI.UIMenuStyle.Custom; + uiTabControlMenu2.Multiline = true; + uiTabControlMenu2.Name = "uiTabControlMenu2"; + uiTabControlMenu2.SelectedIndex = 0; + uiTabControlMenu2.Size = new Size(865, 550); + uiTabControlMenu2.SizeMode = TabSizeMode.Fixed; + uiTabControlMenu2.TabBackColor = Color.FromArgb(235, 243, 255); + uiTabControlMenu2.TabIndex = 15; + uiTabControlMenu2.TabSelectedColor = Color.Snow; + // + // tabPage1 + // + tabPage1.Controls.Add(txtReceipts); + tabPage1.Controls.Add(btnBalance); + tabPage1.Controls.Add(label24); + tabPage1.Controls.Add(lblVIPPrice); + tabPage1.Controls.Add(label18); + tabPage1.Controls.Add(label15); + tabPage1.Controls.Add(dgvSpendList); + tabPage1.Controls.Add(label17); + tabPage1.Controls.Add(lblDay); + tabPage1.Controls.Add(label1); + tabPage1.Controls.Add(lable00); + tabPage1.Controls.Add(lblGetReceipts); + tabPage1.Controls.Add(label29); + tabPage1.Controls.Add(CustoName); + tabPage1.Controls.Add(lblVIP); + tabPage1.Controls.Add(label21); + tabPage1.Controls.Add(dtpCheckTime); + tabPage1.Controls.Add(CustoNo); + tabPage1.Controls.Add(label25); + tabPage1.Controls.Add(lblChange); + tabPage1.Controls.Add(txtRoomNo); + tabPage1.Controls.Add(label28); + tabPage1.Controls.Add(label27); + tabPage1.Location = new Point(201, 0); + tabPage1.Name = "tabPage1"; + tabPage1.Size = new Size(664, 550); + tabPage1.TabIndex = 0; + tabPage1.Text = "退房结算"; + tabPage1.UseVisualStyleBackColor = true; + // + // txtReceipts + // + txtReceipts.Cursor = Cursors.IBeam; + txtReceipts.Font = new Font("宋体", 12F, FontStyle.Regular, GraphicsUnit.Point, 134); + txtReceipts.Location = new Point(548, 329); + txtReceipts.Margin = new Padding(4, 5, 4, 5); + txtReceipts.MinimumSize = new Size(1, 16); + txtReceipts.Name = "txtReceipts"; + txtReceipts.Padding = new Padding(5); + txtReceipts.ShowText = false; + txtReceipts.Size = new Size(74, 26); + txtReceipts.TabIndex = 117; + txtReceipts.TextAlignment = ContentAlignment.MiddleCenter; + txtReceipts.Watermark = ""; + txtReceipts.TextChanged += txtReceipts_TextChanged; + // + // tabPage2 + // + tabPage2.Controls.Add(cboCustoType); + tabPage2.Controls.Add(label32); + tabPage2.Controls.Add(cboPassportType); + tabPage2.Controls.Add(label31); + tabPage2.Controls.Add(cboCustoSex); + tabPage2.Controls.Add(label30); + tabPage2.Controls.Add(txtCustoNo); + tabPage2.Controls.Add(label22); + tabPage2.Controls.Add(txtCustoName); + tabPage2.Controls.Add(label16); + tabPage2.Controls.Add(txtPassportNum); + tabPage2.Controls.Add(label5); + tabPage2.Controls.Add(txtTel); + tabPage2.Controls.Add(label4); + tabPage2.Controls.Add(dtpBirth); + tabPage2.Controls.Add(label3); + tabPage2.Controls.Add(txtAddress); + tabPage2.Controls.Add(label2); + tabPage2.Location = new Point(201, 0); + tabPage2.Name = "tabPage2"; + tabPage2.Size = new Size(664, 550); + tabPage2.TabIndex = 1; + tabPage2.Text = "客户信息"; + tabPage2.UseVisualStyleBackColor = true; + // + // tabPage3 + // + tabPage3.Controls.Add(dgvWti); + tabPage3.Location = new Point(201, 0); + tabPage3.Name = "tabPage3"; + tabPage3.Size = new Size(664, 550); + tabPage3.TabIndex = 2; + tabPage3.Text = "历史水电情况"; + tabPage3.UseVisualStyleBackColor = true; // // Column11 // - this.Column11.DataPropertyName = "WtiNo"; - this.Column11.HeaderText = "Column11"; - this.Column11.Name = "Column11"; - this.Column11.Visible = false; + Column11.DataPropertyName = "WtiNo"; + Column11.HeaderText = "Column11"; + Column11.Name = "Column11"; + Column11.Visible = false; + // + // token + // + token.DataPropertyName = "user_token"; + token.HeaderText = "token"; + token.Name = "token"; + token.Visible = false; // // clRoomNo // - this.clRoomNo.DataPropertyName = "RoomNo"; - this.clRoomNo.HeaderText = "房间号"; - this.clRoomNo.Name = "clRoomNo"; + clRoomNo.DataPropertyName = "RoomNo"; + clRoomNo.HeaderText = "房间号"; + clRoomNo.Name = "clRoomNo"; // // clCustoNo // - this.clCustoNo.DataPropertyName = "CustoNo"; - this.clCustoNo.HeaderText = "客户编号"; - this.clCustoNo.Name = "clCustoNo"; + clCustoNo.DataPropertyName = "CustoNo"; + clCustoNo.HeaderText = "客户编号"; + clCustoNo.Name = "clCustoNo"; // // clStartTime // - this.clStartTime.DataPropertyName = "UseDate"; - this.clStartTime.HeaderText = "开始时间"; - this.clStartTime.Name = "clStartTime"; + clStartTime.DataPropertyName = "UseDate"; + clStartTime.HeaderText = "开始时间"; + clStartTime.Name = "clStartTime"; // // clDealTime // - this.clDealTime.DataPropertyName = "EndDate"; - this.clDealTime.HeaderText = "结束时间"; - this.clDealTime.Name = "clDealTime"; + clDealTime.DataPropertyName = "EndDate"; + clDealTime.HeaderText = "结束时间"; + clDealTime.Name = "clDealTime"; // // clWater // - this.clWater.DataPropertyName = "WaterUse"; - this.clWater.HeaderText = "水费"; - this.clWater.Name = "clWater"; + clWater.DataPropertyName = "WaterUse"; + clWater.HeaderText = "水费"; + clWater.Name = "clWater"; // // clElectric // - this.clElectric.DataPropertyName = "PowerUse"; - this.clElectric.HeaderText = "电费"; - this.clElectric.Name = "clElectric"; + clElectric.DataPropertyName = "PowerUse"; + clElectric.HeaderText = "电费"; + clElectric.Name = "clElectric"; // // clMarkUser // - this.clMarkUser.DataPropertyName = "Record"; - this.clMarkUser.HeaderText = "记录员"; - this.clMarkUser.Name = "clMarkUser"; + clMarkUser.DataPropertyName = "Record"; + clMarkUser.HeaderText = "记录员"; + clMarkUser.Name = "clMarkUser"; // // Column5 // - this.Column5.DataPropertyName = "delete_mk"; - this.Column5.HeaderText = "Column5"; - this.Column5.Name = "Column5"; - this.Column5.Visible = false; + Column5.DataPropertyName = "delete_mk"; + Column5.HeaderText = "Column5"; + Column5.Name = "Column5"; + Column5.Visible = false; // // Column6 // - this.Column6.DataPropertyName = "datains_usr"; - this.Column6.HeaderText = "Column6"; - this.Column6.Name = "Column6"; - this.Column6.Visible = false; + Column6.DataPropertyName = "datains_usr"; + Column6.HeaderText = "Column6"; + Column6.Name = "Column6"; + Column6.Visible = false; // // Column7 // - this.Column7.DataPropertyName = "datains_date"; - this.Column7.HeaderText = "Column7"; - this.Column7.Name = "Column7"; - this.Column7.Visible = false; + Column7.DataPropertyName = "datains_date"; + Column7.HeaderText = "Column7"; + Column7.Name = "Column7"; + Column7.Visible = false; // // Column9 // - this.Column9.DataPropertyName = "datachg_usr"; - this.Column9.HeaderText = "Column9"; - this.Column9.Name = "Column9"; - this.Column9.Visible = false; + Column9.DataPropertyName = "datachg_usr"; + Column9.HeaderText = "Column9"; + Column9.Name = "Column9"; + Column9.Visible = false; // // Column10 // - this.Column10.DataPropertyName = "datachg_date"; - this.Column10.HeaderText = "Column10"; - this.Column10.Name = "Column10"; - this.Column10.Visible = false; - // - // uiTabControlMenu2 - // - this.uiTabControlMenu2.Alignment = System.Windows.Forms.TabAlignment.Left; - this.uiTabControlMenu2.Controls.Add(this.tabPage1); - this.uiTabControlMenu2.Controls.Add(this.tabPage2); - this.uiTabControlMenu2.Controls.Add(this.tabPage3); - this.uiTabControlMenu2.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed; - this.uiTabControlMenu2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.uiTabControlMenu2.Location = new System.Drawing.Point(3, 38); - this.uiTabControlMenu2.MenuStyle = Sunny.UI.UIMenuStyle.Custom; - this.uiTabControlMenu2.Multiline = true; - this.uiTabControlMenu2.Name = "uiTabControlMenu2"; - this.uiTabControlMenu2.SelectedIndex = 0; - this.uiTabControlMenu2.Size = new System.Drawing.Size(865, 550); - this.uiTabControlMenu2.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; - this.uiTabControlMenu2.TabBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.uiTabControlMenu2.TabIndex = 15; - this.uiTabControlMenu2.TabSelectedColor = System.Drawing.Color.Snow; - // - // tabPage1 - // - this.tabPage1.Controls.Add(this.txtReceipts); - this.tabPage1.Controls.Add(this.btnBalance); - this.tabPage1.Controls.Add(this.label24); - this.tabPage1.Controls.Add(this.lblVIPPrice); - this.tabPage1.Controls.Add(this.label18); - this.tabPage1.Controls.Add(this.label15); - this.tabPage1.Controls.Add(this.dgvSpendList); - this.tabPage1.Controls.Add(this.label17); - this.tabPage1.Controls.Add(this.lblDay); - this.tabPage1.Controls.Add(this.label1); - this.tabPage1.Controls.Add(this.lable00); - this.tabPage1.Controls.Add(this.lblGetReceipts); - this.tabPage1.Controls.Add(this.label29); - this.tabPage1.Controls.Add(this.CustoName); - this.tabPage1.Controls.Add(this.lblVIP); - this.tabPage1.Controls.Add(this.label21); - this.tabPage1.Controls.Add(this.dtpCheckTime); - this.tabPage1.Controls.Add(this.CustoNo); - this.tabPage1.Controls.Add(this.label25); - this.tabPage1.Controls.Add(this.lblChange); - this.tabPage1.Controls.Add(this.txtRoomNo); - this.tabPage1.Controls.Add(this.label28); - this.tabPage1.Controls.Add(this.label27); - this.tabPage1.Location = new System.Drawing.Point(201, 0); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Size = new System.Drawing.Size(664, 550); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "退房结算"; - this.tabPage1.UseVisualStyleBackColor = true; - // - // txtReceipts - // - this.txtReceipts.Cursor = System.Windows.Forms.Cursors.IBeam; - this.txtReceipts.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtReceipts.Location = new System.Drawing.Point(584, 328); - this.txtReceipts.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.txtReceipts.MinimumSize = new System.Drawing.Size(1, 16); - this.txtReceipts.Name = "txtReceipts"; - this.txtReceipts.Padding = new System.Windows.Forms.Padding(5); - this.txtReceipts.ShowText = false; - this.txtReceipts.Size = new System.Drawing.Size(74, 26); - this.txtReceipts.TabIndex = 117; - this.txtReceipts.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; - this.txtReceipts.Watermark = ""; - this.txtReceipts.TextChanged += new System.EventHandler(this.txtReceipts_TextChanged); - // - // tabPage2 - // - this.tabPage2.Controls.Add(this.cboCustoType); - this.tabPage2.Controls.Add(this.label32); - this.tabPage2.Controls.Add(this.cboPassportType); - this.tabPage2.Controls.Add(this.label31); - this.tabPage2.Controls.Add(this.cboCustoSex); - this.tabPage2.Controls.Add(this.label30); - this.tabPage2.Controls.Add(this.txtCustoNo); - this.tabPage2.Controls.Add(this.label22); - this.tabPage2.Controls.Add(this.txtCustoName); - this.tabPage2.Controls.Add(this.label16); - this.tabPage2.Controls.Add(this.txtPassportNum); - this.tabPage2.Controls.Add(this.label5); - this.tabPage2.Controls.Add(this.txtTel); - this.tabPage2.Controls.Add(this.label4); - this.tabPage2.Controls.Add(this.dtpBirth); - this.tabPage2.Controls.Add(this.label3); - this.tabPage2.Controls.Add(this.txtAddress); - this.tabPage2.Controls.Add(this.label2); - this.tabPage2.Location = new System.Drawing.Point(201, 0); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Size = new System.Drawing.Size(664, 550); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "客户信息"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // tabPage3 - // - this.tabPage3.Controls.Add(this.dgvWti); - this.tabPage3.Location = new System.Drawing.Point(201, 0); - this.tabPage3.Name = "tabPage3"; - this.tabPage3.Size = new System.Drawing.Size(664, 550); - this.tabPage3.TabIndex = 2; - this.tabPage3.Text = "历史水电情况"; - this.tabPage3.UseVisualStyleBackColor = true; + Column10.DataPropertyName = "datachg_date"; + Column10.HeaderText = "Column10"; + Column10.Name = "Column10"; + Column10.Visible = false; // // FrmCheckOutForm // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.ClientSize = new System.Drawing.Size(873, 593); - this.Controls.Add(this.uiTabControlMenu2); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "FrmCheckOutForm"; - this.ShowTitleIcon = true; - this.Text = "退房结算"; - this.ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 888, 603); - this.Load += new System.EventHandler(this.FrmCheckOutForm_Load); - this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.FrmCheckOutForm_MouseDown); - this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.FrmCheckOutForm_MouseMove); - ((System.ComponentModel.ISupportInitialize)(this.dgvSpendList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dgvWti)).EndInit(); - this.uiTabControlMenu2.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); - this.tabPage1.PerformLayout(); - this.tabPage2.ResumeLayout(false); - this.tabPage2.PerformLayout(); - this.tabPage3.ResumeLayout(false); - this.ResumeLayout(false); - + AutoScaleMode = AutoScaleMode.None; + BackColor = Color.FromArgb(235, 243, 255); + ClientSize = new Size(873, 593); + Controls.Add(uiTabControlMenu2); + Icon = (Icon)resources.GetObject("$this.Icon"); + MaximizeBox = false; + MinimizeBox = false; + Name = "FrmCheckOutForm"; + ShowTitleIcon = true; + Text = "退房结算"; + ZoomScaleRect = new Rectangle(15, 15, 888, 603); + Load += FrmCheckOutForm_Load; + MouseDown += FrmCheckOutForm_MouseDown; + MouseMove += FrmCheckOutForm_MouseMove; + ((System.ComponentModel.ISupportInitialize)dgvSpendList).EndInit(); + ((System.ComponentModel.ISupportInitialize)dgvWti).EndInit(); + uiTabControlMenu2.ResumeLayout(false); + tabPage1.ResumeLayout(false); + tabPage1.PerformLayout(); + tabPage2.ResumeLayout(false); + tabPage2.PerformLayout(); + tabPage3.ResumeLayout(false); + ResumeLayout(false); } #endregion @@ -1151,23 +1131,24 @@ private System.Windows.Forms.Label label31; private System.Windows.Forms.Label label32; private Sunny.UI.UIDataGridView dgvWti; - private System.Windows.Forms.DataGridViewTextBoxColumn Column11; - private System.Windows.Forms.DataGridViewTextBoxColumn clRoomNo; - private System.Windows.Forms.DataGridViewTextBoxColumn clCustoNo; - private System.Windows.Forms.DataGridViewTextBoxColumn clStartTime; - private System.Windows.Forms.DataGridViewTextBoxColumn clDealTime; - private System.Windows.Forms.DataGridViewTextBoxColumn clWater; - private System.Windows.Forms.DataGridViewTextBoxColumn clElectric; - private System.Windows.Forms.DataGridViewTextBoxColumn clMarkUser; - private System.Windows.Forms.DataGridViewTextBoxColumn Column5; - private System.Windows.Forms.DataGridViewTextBoxColumn Column6; - private System.Windows.Forms.DataGridViewTextBoxColumn Column7; - private System.Windows.Forms.DataGridViewTextBoxColumn Column9; - private System.Windows.Forms.DataGridViewTextBoxColumn Column10; private Sunny.UI.UITabControlMenu uiTabControlMenu2; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage3; private Sunny.UI.UITextBox txtReceipts; + private DataGridViewTextBoxColumn Column11; + private DataGridViewTextBoxColumn token; + private DataGridViewTextBoxColumn clRoomNo; + private DataGridViewTextBoxColumn clCustoNo; + private DataGridViewTextBoxColumn clStartTime; + private DataGridViewTextBoxColumn clDealTime; + private DataGridViewTextBoxColumn clWater; + private DataGridViewTextBoxColumn clElectric; + private DataGridViewTextBoxColumn clMarkUser; + private DataGridViewTextBoxColumn Column5; + private DataGridViewTextBoxColumn Column6; + private DataGridViewTextBoxColumn Column7; + private DataGridViewTextBoxColumn Column9; + private DataGridViewTextBoxColumn Column10; } } \ No newline at end of file diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.cs index 4afe80c..dc52182 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.cs +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.cs @@ -128,9 +128,9 @@ namespace EOM.TSHotelManager.FormUI #endregion double sum = 0; - txtCustoNo.Text = ucRoom.rm_CustoNo; - CustoNo.Text = ucRoom.rm_CustoNo; - txtRoomNo.Text = ucRoom.rm_RoomNo; + txtCustoNo.Text = ucRoom.co_CustoNo; + CustoNo.Text = ucRoom.co_CustoNo; + txtRoomNo.Text = ucRoom.co_RoomNo; dic = new Dictionary() { @@ -253,7 +253,7 @@ namespace EOM.TSHotelManager.FormUI { { "roomno",txtRoomNo.Text.Trim()} }; - result = HttpHelper.Request("Wti/ListWtiInfoByRoomNo", null, dic); + result = HttpHelper.Request("HydroelectricPower/ListWtiInfoByRoomNo", null, dic); if (result.statusCode != 200) { UIMessageBox.ShowError("ListWtiInfoByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); @@ -374,7 +374,7 @@ namespace EOM.TSHotelManager.FormUI bool n = result.message.ToString().Equals("true"); if (n) { - result = HttpHelper.Request("Wti​/InsertWtiInfo", HttpHelper.ModelToJson(w)); + result = HttpHelper.Request("HydroelectricPower​/InsertWtiInfo", HttpHelper.ModelToJson(w)); if (result.statusCode != 200) { UIMessageBox.ShowError("InsertWtiInfo+接口服务异常,请提交Issue或尝试更新版本!"); @@ -422,7 +422,7 @@ namespace EOM.TSHotelManager.FormUI bool n = result.message.ToString().Equals("true"); if (n) { - result = HttpHelper.Request("Wti​/InsertWtiInfo", HttpHelper.ModelToJson(w)); + result = HttpHelper.Request("HydroelectricPower​/InsertWtiInfo", HttpHelper.ModelToJson(w)); if (result.statusCode != 200) { UIMessageBox.ShowError("InsertWtiInfo+接口服务异常,请提交Issue或尝试更新版本!"); diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.resx b/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.resx index 7a9c241..ca0e1a4 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.resx +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmCheckOutForm.resx @@ -1,17 +1,17 @@  - @@ -162,6 +162,9 @@ True + + True + True diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.Designer.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.Designer.cs new file mode 100644 index 0000000..cecda9c --- /dev/null +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.Designer.cs @@ -0,0 +1,51 @@ +namespace EOM.TSHotelManager.FormUI +{ + partial class FrmProgress + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmProgress)); + SuspendLayout(); + // + // FrmProgress + // + AutoScaleDimensions = new SizeF(7F, 17F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(292, 39); + Icon = (Icon)resources.GetObject("$this.Icon"); + Name = "FrmProgress"; + StartPosition = FormStartPosition.CenterScreen; + Text = "FrmProgress"; + Load += FrmProgress_Load; + ResumeLayout(false); + } + + #endregion + + private AntdUI.Label label1; + } +} \ No newline at end of file diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.cs new file mode 100644 index 0000000..8d51da5 --- /dev/null +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.cs @@ -0,0 +1,42 @@ +using AntdUI; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace EOM.TSHotelManager.FormUI +{ + public partial class FrmProgress : Window + { + public FrmProgress() + { + InitializeComponent(); + // 创建ProgressBar控件并配置 + ProgressBar progressBar = new ProgressBar + { + Dock = DockStyle.Fill, + Style = ProgressBarStyle.Marquee, + MarqueeAnimationSpeed = 30, + Size = new Size(196, 23) + }; + + this.Controls.Add(progressBar); + this.Text = "Loading..."; + this.TopMost = true; + this.Size = new System.Drawing.Size(196, 23); + this.FormBorderStyle = FormBorderStyle.FixedDialog; + this.StartPosition = FormStartPosition.CenterScreen; + this.ControlBox = false; + } + + private void FrmProgress_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.resx b/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.resx new file mode 100644 index 0000000..0f0883d --- /dev/null +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmProgress.resx @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMvSWgLT3ERC095BktPeQbTT3kGi09xESMvT + ZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANTXPijV2TvE1do86NTaPNTV2jv21do6/9Xa + Ov/V2T16AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANXTNzrW1TbA1NU8QtPITwLypAkc1NFDEtXV + OJrW1TT/1tU0+tPROyIAAAAAAAAAAAAAAAAAAAAAAAAAANbNNBrX0DGg1M8/CgAAAADzpApa86QKqvKk + CozQzlkC19AwvtjQLv/WzjFsAAAAAAAAAAAAAAAAAAAAAAAAAADYyix41ss3DPOkCQYAAAAA86QKAvOk + ChbzpAq2AAAAANjKLGDZyyj/2MoriAAAAAAAAAAAAAAAAAAAAADYxDAO2cUpTPOjCQDzownO86QKCPOk + CgrzpArI86QKPgAAAADZxSZM2sUi/9rFJXYAAAAAAAAAAAAAAAAAAAAA2cAoMtbCPAQAAAAA8qMJrPKk + Ci7ypAoI86QKsvKkCozzpAoE28AfctzAHP/bwSM8AAAAAAAAAAAAAAAAAAAAANa9OgoAAAAAAAAAAPOk + CYDzpApcAAAAAPOkCiryowo81LlSANy8GMTcvBjS1L5GAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPOk + ChTypAps86QKlPKjCSDypAoAAAAAAN22Fk7etxL83LgYQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AADzpApi86QKrvOkCq7zpAqu86QKDN6yEyrfsw3q3rQScs64cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AADZryoI264bDAAAAAAAAAAA2q4iBN+uDF7frwni3rAOYtCyTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAA1rRGAN6tD1TfrAuQ4KwIqOCsCMrgrQiW2qkNHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAA1as3ANqtKAjSqkICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAA//8AAP//AAD/HwAA/A8AAPvHAAD3JwAA/7MAAPt3AAD7NwAA++cAAP3vAAD43wAA/78AAPh/ + AAD//wAA//8AAA== + + + \ No newline at end of file diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmRoomMap.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmRoomMap.cs index 5add2b9..c0c570b 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmRoomMap.cs +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmRoomMap.cs @@ -57,7 +57,7 @@ namespace EOM.TSHotelManager.FormUI.AppFunction { room = new ucRoom(); room.btnRoom.Text = string.Format("{0}\n\n{1}\n\n{2}", rooms[i].RoomName, rooms[i].RoomNo, rooms[i].CustoName); - room.lblMark = string.Empty; + room.lblMark = "Mark"; room.romRoomInfo = rooms[i]; flpRoom.Controls.Add(room); } diff --git a/EOM.TSHotelManager.FormUI/AppFunction/FrmWoEInfo.cs b/EOM.TSHotelManager.FormUI/AppFunction/FrmWoEInfo.cs index b5f23de..9247b3c 100644 --- a/EOM.TSHotelManager.FormUI/AppFunction/FrmWoEInfo.cs +++ b/EOM.TSHotelManager.FormUI/AppFunction/FrmWoEInfo.cs @@ -61,7 +61,7 @@ namespace EOM.TSHotelManager.FormUI /// private void LoadWtiInfo() { - result = HttpHelper.Request("Wti/SelectWtiInfoAll"); + result = HttpHelper.Request("HydroelectricPower/SelectWtiInfoAll"); if (result.statusCode != 200) { UIMessageTip.ShowError("SelectWtiInfoAll+接口服务异常,请提交issue"); @@ -87,7 +87,7 @@ namespace EOM.TSHotelManager.FormUI Record = AdminInfo.Account, datachg_usr = AdminInfo.Account, }; - result = HttpHelper.Request("Wti/UpdateWtiInfo", HttpHelper.ModelToJson(wti)); + result = HttpHelper.Request("HydroelectricPower/UpdateWtiInfo", HttpHelper.ModelToJson(wti)); if (result.statusCode != 200) { UIMessageTip.ShowError("UpdateWtiInfo+接口服务异常,请提交issue"); diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.Designer.cs b/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.Designer.cs index 1d5285c..edb5a87 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.Designer.cs +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.Designer.cs @@ -29,90 +29,61 @@ namespace EOM.TSHotelManager.FormUI /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("职位类型维护"); - System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("民族类型维护"); - System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("学历类型维护"); - System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("部门信息维护"); - System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("基础信息", new System.Windows.Forms.TreeNode[] { - treeNode1, - treeNode2, - treeNode3, - treeNode4}); - System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("员工工资账单"); - System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("内部财务账单"); - System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("酒店盈利情况"); - System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("财务信息", new System.Windows.Forms.TreeNode[] { - treeNode6, - treeNode7, - treeNode8}); - System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("水电信息"); - System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("水电管理", new System.Windows.Forms.TreeNode[] { - treeNode10}); - System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("监管部门情况"); - System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("监管统计", new System.Windows.Forms.TreeNode[] { - treeNode12}); - System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("房态图一览"); - System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("新增客房"); - System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("客房配置"); - System.Windows.Forms.TreeNode treeNode17 = new System.Windows.Forms.TreeNode("客房管理", new System.Windows.Forms.TreeNode[] { - treeNode14, - treeNode15, - treeNode16}); - System.Windows.Forms.TreeNode treeNode18 = new System.Windows.Forms.TreeNode("会员等级规则"); - System.Windows.Forms.TreeNode treeNode19 = new System.Windows.Forms.TreeNode("客户信息管理"); - System.Windows.Forms.TreeNode treeNode20 = new System.Windows.Forms.TreeNode("顾客消费账单"); - System.Windows.Forms.TreeNode treeNode21 = new System.Windows.Forms.TreeNode("客户管理", new System.Windows.Forms.TreeNode[] { - treeNode18, - treeNode19, - treeNode20}); - System.Windows.Forms.TreeNode treeNode22 = new System.Windows.Forms.TreeNode("员工管理"); - System.Windows.Forms.TreeNode treeNode23 = new System.Windows.Forms.TreeNode("公告日志"); - System.Windows.Forms.TreeNode treeNode24 = new System.Windows.Forms.TreeNode("上传公告日志"); - System.Windows.Forms.TreeNode treeNode25 = new System.Windows.Forms.TreeNode("人事管理", new System.Windows.Forms.TreeNode[] { - treeNode22, - treeNode23, - treeNode24}); - System.Windows.Forms.TreeNode treeNode26 = new System.Windows.Forms.TreeNode("商品管理"); - System.Windows.Forms.TreeNode treeNode27 = new System.Windows.Forms.TreeNode("仓库物资"); - System.Windows.Forms.TreeNode treeNode28 = new System.Windows.Forms.TreeNode("物资管理", new System.Windows.Forms.TreeNode[] { - treeNode26, - treeNode27}); - System.Windows.Forms.TreeNode treeNode29 = new System.Windows.Forms.TreeNode("员工操作日志"); - System.Windows.Forms.TreeNode treeNode30 = new System.Windows.Forms.TreeNode("添加管理员"); - System.Windows.Forms.TreeNode treeNode31 = new System.Windows.Forms.TreeNode("权限分配"); - System.Windows.Forms.TreeNode treeNode32 = new System.Windows.Forms.TreeNode("启/禁用管理员"); - System.Windows.Forms.TreeNode treeNode33 = new System.Windows.Forms.TreeNode("系统模块管理"); - System.Windows.Forms.TreeNode treeNode34 = new System.Windows.Forms.TreeNode("系统管理", new System.Windows.Forms.TreeNode[] { - treeNode30, - treeNode31, - treeNode32, - treeNode33}); + components = new System.ComponentModel.Container(); + TreeNode treeNode1 = new TreeNode("职位类型维护"); + TreeNode treeNode2 = new TreeNode("民族类型维护"); + TreeNode treeNode3 = new TreeNode("学历类型维护"); + TreeNode treeNode4 = new TreeNode("部门信息维护"); + TreeNode treeNode5 = new TreeNode("基础信息", new TreeNode[] { treeNode1, treeNode2, treeNode3, treeNode4 }); + TreeNode treeNode6 = new TreeNode("内部财务账单"); + TreeNode treeNode7 = new TreeNode("财务信息", new TreeNode[] { treeNode6 }); + TreeNode treeNode8 = new TreeNode("水电信息"); + TreeNode treeNode9 = new TreeNode("水电管理", new TreeNode[] { treeNode8 }); + TreeNode treeNode10 = new TreeNode("监管部门情况"); + TreeNode treeNode11 = new TreeNode("监管统计", new TreeNode[] { treeNode10 }); + TreeNode treeNode12 = new TreeNode("房态图一览"); + TreeNode treeNode13 = new TreeNode("新增客房"); + TreeNode treeNode14 = new TreeNode("客房配置"); + TreeNode treeNode15 = new TreeNode("客房管理", new TreeNode[] { treeNode12, treeNode13, treeNode14 }); + TreeNode treeNode16 = new TreeNode("会员等级规则"); + TreeNode treeNode17 = new TreeNode("客户信息管理"); + TreeNode treeNode18 = new TreeNode("顾客消费账单"); + TreeNode treeNode19 = new TreeNode("客户管理", new TreeNode[] { treeNode16, treeNode17, treeNode18 }); + TreeNode treeNode20 = new TreeNode("员工管理"); + TreeNode treeNode21 = new TreeNode("人事管理", new TreeNode[] { treeNode20 }); + TreeNode treeNode22 = new TreeNode("商品管理"); + TreeNode treeNode23 = new TreeNode("物资管理", new TreeNode[] { treeNode22 }); + TreeNode treeNode24 = new TreeNode("员工操作日志"); + TreeNode treeNode25 = new TreeNode("添加管理员"); + TreeNode treeNode26 = new TreeNode("权限分配"); + TreeNode treeNode27 = new TreeNode("启/禁用管理员"); + TreeNode treeNode28 = new TreeNode("系统模块管理"); + TreeNode treeNode29 = new TreeNode("系统管理", new TreeNode[] { treeNode25, treeNode26, treeNode27, treeNode28 }); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmBackgroundSystem)); - this.Aside = new Sunny.UI.UINavMenu(); - this.pnlForm = new Sunny.UI.UIPanel(); - this.uiLabel1 = new Sunny.UI.UILabel(); - this.lblScroll = new Sunny.UI.UIScrollingText(); - this.lbTime = new Sunny.UI.UILabel(); - this.timer1 = new System.Windows.Forms.Timer(this.components); - this.cmsMenu = new Sunny.UI.UIContextMenuStrip(); - this.tsmiUpdatePwd = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.btnSetting = new Sunny.UI.UIButton(); - this.btnLocked = new Sunny.UI.UIButton(); - this.cmsMenu.SuspendLayout(); - this.SuspendLayout(); + Aside = new Sunny.UI.UINavMenu(); + pnlForm = new Sunny.UI.UIPanel(); + uiLabel1 = new Sunny.UI.UILabel(); + lblScroll = new Sunny.UI.UIScrollingText(); + lbTime = new Sunny.UI.UILabel(); + timer1 = new System.Windows.Forms.Timer(components); + cmsMenu = new Sunny.UI.UIContextMenuStrip(); + tsmiUpdatePwd = new ToolStripMenuItem(); + toolStripSeparator1 = new ToolStripSeparator(); + btnSetting = new Sunny.UI.UIButton(); + btnLocked = new Sunny.UI.UIButton(); + cmsMenu.SuspendLayout(); + SuspendLayout(); // // Aside // - this.Aside.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.Aside.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText; - this.Aside.Font = new System.Drawing.Font("微软雅黑", 12F); - this.Aside.FullRowSelect = true; - this.Aside.ItemHeight = 50; - this.Aside.Location = new System.Drawing.Point(6, 87); - this.Aside.MenuStyle = Sunny.UI.UIMenuStyle.Custom; - this.Aside.Name = "Aside"; + Aside.BorderStyle = BorderStyle.None; + Aside.DrawMode = TreeViewDrawMode.OwnerDrawText; + Aside.Font = new Font("微软雅黑", 12F); + Aside.FullRowSelect = true; + Aside.ItemHeight = 50; + Aside.Location = new Point(6, 87); + Aside.MenuStyle = Sunny.UI.UIMenuStyle.Custom; + Aside.Name = "Aside"; treeNode1.Name = "节点1"; treeNode1.Text = "职位类型维护"; treeNode2.Name = "节点2"; @@ -123,240 +94,215 @@ namespace EOM.TSHotelManager.FormUI treeNode4.Text = "部门信息维护"; treeNode5.Name = "BaseInfo"; treeNode5.Text = "基础信息"; - treeNode6.Name = "节点0"; - treeNode6.Text = "员工工资账单"; - treeNode7.Name = "节点1"; - treeNode7.Text = "内部财务账单"; - treeNode8.Name = "节点2"; - treeNode8.Text = "酒店盈利情况"; - treeNode9.Name = "CashInfo"; - treeNode9.Text = "财务信息"; - treeNode10.Name = "节点0"; - treeNode10.Text = "水电信息"; - treeNode11.Name = "WtiInfo"; - treeNode11.Text = "水电管理"; - treeNode12.Name = "节点3"; - treeNode12.Text = "监管部门情况"; - treeNode13.Name = "CheckInfo"; - treeNode13.Text = "监管统计"; - treeNode14.Name = "节点6"; - treeNode14.Text = "房态图一览"; - treeNode15.Name = "节点7"; - treeNode15.Text = "新增客房"; + treeNode6.Name = "节点1"; + treeNode6.Text = "内部财务账单"; + treeNode7.Name = "CashInfo"; + treeNode7.Text = "财务信息"; + treeNode8.Name = "节点0"; + treeNode8.Text = "水电信息"; + treeNode9.Name = "WtiInfo"; + treeNode9.Text = "水电管理"; + treeNode10.Name = "节点3"; + treeNode10.Text = "监管部门情况"; + treeNode11.Name = "CheckInfo"; + treeNode11.Text = "监管统计"; + treeNode12.Name = "节点6"; + treeNode12.Text = "房态图一览"; + treeNode13.Name = "节点7"; + treeNode13.Text = "新增客房"; + treeNode14.Name = "节点0"; + treeNode14.Text = "客房配置"; + treeNode15.Name = "RoomManager"; + treeNode15.Text = "客房管理"; treeNode16.Name = "节点0"; - treeNode16.Text = "客房配置"; - treeNode17.Name = "RoomManager"; - treeNode17.Text = "客房管理"; - treeNode18.Name = "节点0"; - treeNode18.Text = "会员等级规则"; - treeNode19.Name = "节点8"; - treeNode19.Text = "客户信息管理"; - treeNode20.Name = "节点9"; - treeNode20.Text = "顾客消费账单"; - treeNode21.Name = "CustomerManager"; - treeNode21.Text = "客户管理"; - treeNode22.Name = "节点6"; - treeNode22.Text = "员工管理"; - treeNode23.Name = "节点15"; - treeNode23.Text = "公告日志"; - treeNode24.Name = "节点16"; - treeNode24.Text = "上传公告日志"; - treeNode25.Name = "HumanResourcesManager"; - treeNode25.Text = "人事管理"; - treeNode26.Name = "节点11"; - treeNode26.Text = "商品管理"; - treeNode27.Name = "节点12"; - treeNode27.Text = "仓库物资"; - treeNode28.Name = "MaterialManager"; - treeNode28.Text = "物资管理"; - treeNode29.Name = "OperationLogManager"; - treeNode29.Text = "员工操作日志"; - treeNode30.Name = "节点2"; - treeNode30.Text = "添加管理员"; - treeNode31.Name = "节点1"; - treeNode31.Text = "权限分配"; - treeNode32.Name = "节点3"; - treeNode32.Text = "启/禁用管理员"; - treeNode33.Name = "节点2"; - treeNode33.Text = "系统模块管理"; - treeNode34.Name = "AdminManager"; - treeNode34.Text = "系统管理"; - this.Aside.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { - treeNode5, - treeNode9, - treeNode11, - treeNode13, - treeNode17, - treeNode21, - treeNode25, - treeNode28, - treeNode29, - treeNode34}); - this.Aside.ShowLines = false; - this.Aside.Size = new System.Drawing.Size(234, 624); - this.Aside.Style = Sunny.UI.UIStyle.Custom; - this.Aside.TabIndex = 0; - this.Aside.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Aside.MenuItemClick += new Sunny.UI.UINavMenu.OnMenuItemClick(this.Aside_MenuItemClick); - this.Aside.Enter += new System.EventHandler(this.Aside_Enter); + treeNode16.Text = "会员等级规则"; + treeNode17.Name = "节点8"; + treeNode17.Text = "客户信息管理"; + treeNode18.Name = "节点9"; + treeNode18.Text = "顾客消费账单"; + treeNode19.Name = "CustomerManager"; + treeNode19.Text = "客户管理"; + treeNode20.Name = "节点6"; + treeNode20.Text = "员工管理"; + treeNode21.Name = "HumanResourcesManager"; + treeNode21.Text = "人事管理"; + treeNode22.Name = "节点11"; + treeNode22.Text = "商品管理"; + treeNode23.Name = "MaterialManager"; + treeNode23.Text = "物资管理"; + treeNode24.Name = "OperationLogManager"; + treeNode24.Text = "员工操作日志"; + treeNode25.Name = "节点2"; + treeNode25.Text = "添加管理员"; + treeNode26.Name = "节点1"; + treeNode26.Text = "权限分配"; + treeNode27.Name = "节点3"; + treeNode27.Text = "启/禁用管理员"; + treeNode28.Name = "节点2"; + treeNode28.Text = "系统模块管理"; + treeNode29.Name = "AdminManager"; + treeNode29.Text = "系统管理"; + Aside.Nodes.AddRange(new TreeNode[] { treeNode5, treeNode7, treeNode9, treeNode11, treeNode15, treeNode19, treeNode21, treeNode23, treeNode24, treeNode29 }); + Aside.ShowLines = false; + Aside.Size = new Size(234, 624); + Aside.Style = Sunny.UI.UIStyle.Custom; + Aside.TabIndex = 0; + Aside.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + Aside.MenuItemClick += Aside_MenuItemClick; + Aside.Enter += Aside_Enter; // // pnlForm // - this.pnlForm.Font = new System.Drawing.Font("微软雅黑", 12F); - this.pnlForm.Location = new System.Drawing.Point(247, 88); - this.pnlForm.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.pnlForm.MinimumSize = new System.Drawing.Size(1, 1); - this.pnlForm.Name = "pnlForm"; - this.pnlForm.Size = new System.Drawing.Size(1001, 623); - this.pnlForm.Style = Sunny.UI.UIStyle.Custom; - this.pnlForm.TabIndex = 1; - this.pnlForm.Text = "点击左侧导航栏"; - this.pnlForm.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter; + pnlForm.Font = new Font("微软雅黑", 12F); + pnlForm.Location = new Point(247, 88); + pnlForm.Margin = new Padding(4, 5, 4, 5); + pnlForm.MinimumSize = new Size(1, 1); + pnlForm.Name = "pnlForm"; + pnlForm.Size = new Size(1001, 623); + pnlForm.Style = Sunny.UI.UIStyle.Custom; + pnlForm.TabIndex = 1; + pnlForm.Text = "点击左侧导航栏"; + pnlForm.TextAlignment = ContentAlignment.MiddleCenter; // // uiLabel1 // - this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F); - this.uiLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.uiLabel1.Location = new System.Drawing.Point(250, 44); - this.uiLabel1.Name = "uiLabel1"; - this.uiLabel1.Size = new System.Drawing.Size(217, 35); - this.uiLabel1.Style = Sunny.UI.UIStyle.Custom; - this.uiLabel1.TabIndex = 32; - this.uiLabel1.Text = "早上好,Admin"; - this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + uiLabel1.Font = new Font("微软雅黑", 12F); + uiLabel1.ForeColor = Color.FromArgb(48, 48, 48); + uiLabel1.Location = new Point(250, 44); + uiLabel1.Name = "uiLabel1"; + uiLabel1.Size = new Size(217, 35); + uiLabel1.Style = Sunny.UI.UIStyle.Custom; + uiLabel1.TabIndex = 32; + uiLabel1.Text = "早上好,Admin"; + uiLabel1.TextAlign = ContentAlignment.MiddleLeft; // // lblScroll // - this.lblScroll.Active = true; - this.lblScroll.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255))))); - this.lblScroll.Font = new System.Drawing.Font("微软雅黑", 12F); - this.lblScroll.Interval = 800; - this.lblScroll.Location = new System.Drawing.Point(473, 41); - this.lblScroll.MinimumSize = new System.Drawing.Size(1, 1); - this.lblScroll.Name = "lblScroll"; - this.lblScroll.Offset = 20; - this.lblScroll.Size = new System.Drawing.Size(693, 42); - this.lblScroll.Style = Sunny.UI.UIStyle.Custom; - this.lblScroll.TabIndex = 33; - this.lblScroll.Text = "欢迎使用TS酒店管理后台安全系统,为了您的账号安全,离开座位请点击右侧锁定键锁定系统确保安全!"; + lblScroll.Active = true; + lblScroll.FillColor = Color.FromArgb(235, 243, 255); + lblScroll.Font = new Font("微软雅黑", 12F); + lblScroll.Interval = 800; + lblScroll.Location = new Point(473, 41); + lblScroll.MinimumSize = new Size(1, 1); + lblScroll.Name = "lblScroll"; + lblScroll.Offset = 20; + lblScroll.Size = new Size(693, 42); + lblScroll.Style = Sunny.UI.UIStyle.Custom; + lblScroll.TabIndex = 33; + lblScroll.Text = "欢迎使用TS酒店管理后台安全系统,为了您的账号安全,离开座位请点击右侧锁定键锁定系统确保安全!"; // // lbTime // - this.lbTime.Font = new System.Drawing.Font("微软雅黑", 12F); - this.lbTime.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48))))); - this.lbTime.Location = new System.Drawing.Point(11, 44); - this.lbTime.Name = "lbTime"; - this.lbTime.Size = new System.Drawing.Size(229, 35); - this.lbTime.Style = Sunny.UI.UIStyle.Custom; - this.lbTime.TabIndex = 34; - this.lbTime.Text = "早上好,Admin"; - this.lbTime.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + lbTime.Font = new Font("微软雅黑", 12F); + lbTime.ForeColor = Color.FromArgb(48, 48, 48); + lbTime.Location = new Point(11, 44); + lbTime.Name = "lbTime"; + lbTime.Size = new Size(229, 35); + lbTime.Style = Sunny.UI.UIStyle.Custom; + lbTime.TabIndex = 34; + lbTime.Text = "早上好,Admin"; + lbTime.TextAlign = ContentAlignment.MiddleLeft; // // timer1 // - this.timer1.Enabled = true; - this.timer1.Interval = 1000; - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + timer1.Enabled = true; + timer1.Interval = 1000; + timer1.Tick += timer1_Tick; // // cmsMenu // - this.cmsMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); - this.cmsMenu.Font = new System.Drawing.Font("微软雅黑", 12F); - this.cmsMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsmiUpdatePwd, - this.toolStripSeparator1}); - this.cmsMenu.Name = "cmsMenu"; - this.cmsMenu.Size = new System.Drawing.Size(181, 58); - this.cmsMenu.MouseDown += new System.Windows.Forms.MouseEventHandler(this.cmsMenu_MouseDown); + cmsMenu.BackColor = Color.FromArgb(243, 249, 255); + cmsMenu.Font = new Font("微软雅黑", 12F); + cmsMenu.Items.AddRange(new ToolStripItem[] { tsmiUpdatePwd, toolStripSeparator1 }); + cmsMenu.Name = "cmsMenu"; + cmsMenu.Size = new Size(145, 36); + cmsMenu.MouseDown += cmsMenu_MouseDown; // // tsmiUpdatePwd // - this.tsmiUpdatePwd.Image = global::EOM.TSHotelManager.FormUI.Properties.Resources.修改; - this.tsmiUpdatePwd.Name = "tsmiUpdatePwd"; - this.tsmiUpdatePwd.Size = new System.Drawing.Size(180, 26); - this.tsmiUpdatePwd.Text = "修改密码"; - this.tsmiUpdatePwd.Click += new System.EventHandler(this.tsmiUpdatePwd_Click); + tsmiUpdatePwd.Image = Properties.Resources.修改; + tsmiUpdatePwd.Name = "tsmiUpdatePwd"; + tsmiUpdatePwd.Size = new Size(144, 26); + tsmiUpdatePwd.Text = "修改密码"; + tsmiUpdatePwd.Click += tsmiUpdatePwd_Click; // // toolStripSeparator1 // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); + toolStripSeparator1.Name = "toolStripSeparator1"; + toolStripSeparator1.Size = new Size(141, 6); // // btnSetting // - this.btnSetting.BackColor = System.Drawing.Color.Transparent; - this.btnSetting.BackgroundImage = global::EOM.TSHotelManager.FormUI.Properties.Resources.settings2; - this.btnSetting.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.btnSetting.Cursor = System.Windows.Forms.Cursors.Arrow; - this.btnSetting.FillColor = System.Drawing.Color.Transparent; - this.btnSetting.Font = new System.Drawing.Font("微软雅黑", 12F); - this.btnSetting.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnSetting.ForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnSetting.ForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnSetting.ForeSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnSetting.Location = new System.Drawing.Point(1172, 45); - this.btnSetting.MinimumSize = new System.Drawing.Size(1, 1); - this.btnSetting.Name = "btnSetting"; - this.btnSetting.Radius = 20; - this.btnSetting.Size = new System.Drawing.Size(35, 35); - this.btnSetting.Style = Sunny.UI.UIStyle.Custom; - this.btnSetting.StyleCustomMode = true; - this.btnSetting.TabIndex = 31; - this.btnSetting.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click); - this.btnSetting.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnSetting_MouseDown); - this.btnSetting.MouseLeave += new System.EventHandler(this.btnSetting_MouseLeave); - this.btnSetting.MouseHover += new System.EventHandler(this.btnSetting_MouseHover); + btnSetting.BackColor = Color.Transparent; + btnSetting.BackgroundImage = Properties.Resources.settings2; + btnSetting.BackgroundImageLayout = ImageLayout.Stretch; + btnSetting.FillColor = Color.Transparent; + btnSetting.Font = new Font("微软雅黑", 12F); + btnSetting.ForeColor = Color.FromArgb(111, 168, 255); + btnSetting.ForeHoverColor = Color.FromArgb(111, 168, 255); + btnSetting.ForePressColor = Color.FromArgb(111, 168, 255); + btnSetting.ForeSelectedColor = Color.FromArgb(111, 168, 255); + btnSetting.Location = new Point(1172, 45); + btnSetting.MinimumSize = new Size(1, 1); + btnSetting.Name = "btnSetting"; + btnSetting.Radius = 20; + btnSetting.Size = new Size(35, 35); + btnSetting.Style = Sunny.UI.UIStyle.Custom; + btnSetting.StyleCustomMode = true; + btnSetting.TabIndex = 31; + btnSetting.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnSetting.Click += btnSetting_Click; + btnSetting.MouseDown += btnSetting_MouseDown; + btnSetting.MouseLeave += btnSetting_MouseLeave; + btnSetting.MouseHover += btnSetting_MouseHover; // // btnLocked // - this.btnLocked.BackColor = System.Drawing.Color.Transparent; - this.btnLocked.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnLocked.BackgroundImage"))); - this.btnLocked.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.btnLocked.Cursor = System.Windows.Forms.Cursors.Arrow; - this.btnLocked.FillColor = System.Drawing.Color.Transparent; - this.btnLocked.Font = new System.Drawing.Font("微软雅黑", 12F); - this.btnLocked.ForeHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnLocked.ForePressColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnLocked.ForeSelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(111)))), ((int)(((byte)(168)))), ((int)(((byte)(255))))); - this.btnLocked.Location = new System.Drawing.Point(1213, 45); - this.btnLocked.MinimumSize = new System.Drawing.Size(1, 1); - this.btnLocked.Name = "btnLocked"; - this.btnLocked.Radius = 20; - this.btnLocked.Size = new System.Drawing.Size(35, 35); - this.btnLocked.Style = Sunny.UI.UIStyle.Custom; - this.btnLocked.StyleCustomMode = true; - this.btnLocked.TabIndex = 30; - this.btnLocked.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnLocked.Click += new System.EventHandler(this.btnLocked_Click); - this.btnLocked.MouseLeave += new System.EventHandler(this.btnLocked_MouseLeave); - this.btnLocked.MouseHover += new System.EventHandler(this.btnLocked_MouseHover); + btnLocked.BackColor = Color.Transparent; + btnLocked.BackgroundImage = (Image)resources.GetObject("btnLocked.BackgroundImage"); + btnLocked.BackgroundImageLayout = ImageLayout.Zoom; + btnLocked.FillColor = Color.Transparent; + btnLocked.Font = new Font("微软雅黑", 12F); + btnLocked.ForeHoverColor = Color.FromArgb(111, 168, 255); + btnLocked.ForePressColor = Color.FromArgb(111, 168, 255); + btnLocked.ForeSelectedColor = Color.FromArgb(111, 168, 255); + btnLocked.Location = new Point(1213, 45); + btnLocked.MinimumSize = new Size(1, 1); + btnLocked.Name = "btnLocked"; + btnLocked.Radius = 20; + btnLocked.Size = new Size(35, 35); + btnLocked.Style = Sunny.UI.UIStyle.Custom; + btnLocked.StyleCustomMode = true; + btnLocked.TabIndex = 30; + btnLocked.TipsFont = new Font("宋体", 9F, FontStyle.Regular, GraphicsUnit.Point, 134); + btnLocked.Click += btnLocked_Click; + btnLocked.MouseLeave += btnLocked_MouseLeave; + btnLocked.MouseHover += btnLocked_MouseHover; // // FrmBackgroundSystem // - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(1255, 718); - this.Controls.Add(this.lbTime); - this.Controls.Add(this.lblScroll); - this.Controls.Add(this.uiLabel1); - this.Controls.Add(this.btnSetting); - this.Controls.Add(this.btnLocked); - this.Controls.Add(this.pnlForm); - this.Controls.Add(this.Aside); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.IsForbidAltF4 = true; - this.MaximizeBox = false; - this.Name = "FrmBackgroundSystem"; - this.Style = Sunny.UI.UIStyle.Custom; - this.Text = "TS酒店管理后台安全系统"; - this.TextAlignment = System.Drawing.StringAlignment.Center; - this.ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 1255, 718); - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBackgroundSystem_FormClosing); - this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmBackgroundSystem_FormClosed); - this.Load += new System.EventHandler(this.FrmBackgroundSystem_Load); - this.cmsMenu.ResumeLayout(false); - this.ResumeLayout(false); - + AutoScaleMode = AutoScaleMode.None; + ClientSize = new Size(1255, 718); + Controls.Add(lbTime); + Controls.Add(lblScroll); + Controls.Add(uiLabel1); + Controls.Add(btnSetting); + Controls.Add(btnLocked); + Controls.Add(pnlForm); + Controls.Add(Aside); + Icon = (Icon)resources.GetObject("$this.Icon"); + IsForbidAltF4 = true; + MaximizeBox = false; + Name = "FrmBackgroundSystem"; + Style = Sunny.UI.UIStyle.Custom; + Text = "TS酒店管理后台安全系统"; + TextAlignment = StringAlignment.Center; + ZoomScaleRect = new Rectangle(15, 15, 1255, 718); + FormClosing += FrmBackgroundSystem_FormClosing; + FormClosed += FrmBackgroundSystem_FormClosed; + Load += FrmBackgroundSystem_Load; + cmsMenu.ResumeLayout(false); + ResumeLayout(false); } #endregion diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.resx b/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.resx index a45cd28..ea0ada3 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.resx +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.resx @@ -1,17 +1,17 @@  - @@ -126,14 +126,14 @@ - iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAYJJREFUWEft - VztOw0AUzBEoKILtIhUFLSUNDdQIiYqGCiFEGVGkSk1DQWyTihPkDNwlJ+AGjzfS7Gq1XpPPvhRIHmmk - 1bx5s0/22pZHA/ZBsZTjopWLspFHEGtoLB8WuuFSKT1c0nYYJDZMknZbaPAs3KSoZV7Vcls0cqPrV9V+ - gvqMbTbQDa6DcBl/yhlLHieNnGtt7TzoYSkfGjZ1wWUtD5Q7UN9LMMCUcj7KVr78AAs5pdwBat6nPZTz - oYHfLphSL/wA2kMpHwhzwZR64XzooZQPhLlgSr1wPvRQ2g/jViZ6kOYgwlyw0/rofOhxGrIYux1w0oMg - G/7x9HSgDatOQD5XjN8MNftLbsjtzwTMUbMFzQfAIXsGsY5qKZoO0PnsQos8Me0GqD7kklYPaClvQNMr - 8ESrR9XIW8IX0nSAdbGQK9rhv4vqKdofQtp39m8EzFFzisMA/mODdVRL0XyAXfmPBqhauU8EZBGvbMZv - B7zZ3D3Opv47TN7liNEDAoxGv+Hphqh7QmzjAAAAAElFTkSuQmCC + iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAWVJREFUWEft + lj1OAzEQhXMECopgb5GKgpaShobUERIVDRVCiDKiSEVNQ0E8y1Y5Qc6Qu+QE3OChKXY1zHp/7PUWUfJJ + T4o8zzNPiXedyeREBKbAuclxYwnPLP7Ma9o3CpZQWAIaVGh/UjwDvdL7kmAJKznEOHxkDveGsDAO75bw + K+orvX8QxmEuh09/cKU9F4RrS9iLgHPticY4LKsADk+6XmIc3kSApa5HY3NsqgBrXOp6CdcqX46Nrkdj + Cbuysa5pxE+107VojjPANMeMHzWWDFCuNUkGKNe4l+7fCp900SiNWp6eGpawrTUYrq2e04j8yhOq/5k4 + lAB8yF5Zff16TiM9Gtau3Y5rOm2A7Bu3eg+vad9oASzhRe/JCJ8e32gB9maNO+F/8Hi0kgb41zDU30lo + w1B/J6ENQ/2d9G3ou6xalDxAqA4oQJbj0dNgkPiVree0wm82/WcjWoTF7AtnesYJ5g/h6YaoeYfIjwAA + AABJRU5ErkJggg== diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.Designer.cs b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.Designer.cs index d96b7c2..0c38544 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.Designer.cs +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.Designer.cs @@ -391,6 +391,7 @@ muNavBar.Size = new Size(765, 45); muNavBar.TabIndex = 39; muNavBar.Text = "menu1"; + muNavBar.SelectChanged += muNavBar_SelectChanged; // // btnClose // diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs index ccff9cb..f708e48 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs @@ -43,10 +43,15 @@ namespace EOM.TSHotelManager.FormUI { public partial class FrmMain : Window { - private FrmLogin returnForm1 = null; + private FrmLogin returnForm1 = null; + private LoadingProgress _loadingProgress; + public FrmMain(FrmLogin F1) { InitializeComponent(); + _loadingProgress = new LoadingProgress(); + + #region 防止背景闪屏方法 this.DoubleBuffered = true;//设置本窗体 SetStyle(ControlStyles.UserPaint, true); @@ -553,9 +558,17 @@ namespace EOM.TSHotelManager.FormUI { notifyIcon1.Dispose(); } - private void muNavBar_SelectChanged(object sender, MenuItem item) + + private void cpUITheme_ValueChanged(object sender, ColorEventArgs e) { - switch (item.Text) + AntdUI.Style.Db.SetPrimary(e.Value); + Refresh(); + } + + private void muNavBar_SelectChanged(object sender, MenuSelectEventArgs e) + { + _loadingProgress.Show(); + switch (e.Value.Text) { case "客房管理": pnlMID.Controls.Clear(); @@ -585,12 +598,8 @@ namespace EOM.TSHotelManager.FormUI frmSellThing.Show(); break; } - } + _loadingProgress.Close(); - private void cpUITheme_ValueChanged(object sender, ColorEventArgs e) - { - AntdUI.Style.Db.SetPrimary(e.Value); - Refresh(); } } } diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.resx b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.resx index f705fd0..4ac33fd 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.resx +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.resx @@ -1,7 +1,7 @@  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs index 5e3959d..2897de1 100644 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs +++ b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs @@ -14,6 +14,7 @@ using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using jvncorelib.EntityLib; namespace EOM.TSHotelManager.FormUI { @@ -66,6 +67,10 @@ namespace EOM.TSHotelManager.FormUI private void btnRoom_Click(object sender, EventArgs e) { + if (lblMark == "Mark") + { + return; + } LoadRoomInfo(); FrmRoomManager.ReadInfo(); } @@ -168,15 +173,18 @@ namespace EOM.TSHotelManager.FormUI { this.CanPenetrate(); this.Region = new Region(GetRoundRectPath(new RectangleF(0, 0, this.Width, this.Height), 6f)); - us_CustoNo = romCustoInfo.CustoNo; - us_CustoName = romCustoInfo.CustoName; - us_CustoSex = romCustoInfo.CustoSex == 1 ? "男" : "女"; - us_CustoTel = romCustoInfo.CustoTel; - us_CustoID = romCustoInfo.CustoID; - us_CustoBirthday = romCustoInfo.CustoBirth == null ? "" : Convert.ToDateTime(romCustoInfo.CustoBirth).ToString(); - us_CustoPassportType = romCustoInfo.PassportType; - us_CustoType = romCustoInfo.CustoType; - us_CustoAddress = romCustoInfo.CustoAdress; + if (!romCustoInfo.IsNullOrEmpty()) + { + us_CustoNo = romCustoInfo.CustoNo; + us_CustoName = romCustoInfo.CustoName; + us_CustoSex = romCustoInfo.CustoSex == 1 ? "男" : "女"; + us_CustoTel = romCustoInfo.CustoTel; + us_CustoID = romCustoInfo.CustoID; + us_CustoBirthday = romCustoInfo.CustoBirth == null ? "" : Convert.ToDateTime(romCustoInfo.CustoBirth).ToString(); + us_CustoPassportType = romCustoInfo.PassportType; + us_CustoType = romCustoInfo.CustoType; + us_CustoAddress = romCustoInfo.CustoAdress; + } switch (romRoomInfo.RoomStateId) { case 0: @@ -207,6 +215,11 @@ namespace EOM.TSHotelManager.FormUI } private void cmsMain_Opening(object sender, CancelEventArgs e) { + if (lblMark=="Mark") + { + e.Cancel = true; + return; + } Dictionary room = new Dictionary(); room.Add("no", btnRoom.Text.Split("\n\n")[1].ToString()); var result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, room); diff --git a/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj b/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj index 3443575..b861c05 100644 --- a/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj +++ b/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj @@ -12,6 +12,8 @@ x64 TS酒店管理系统 logo.ico + $(SolutionDir)packages\Fody\build\Fody.targets + false diff --git a/EOM.TSHotelManager.FormUI/AppInterface/FrmLogin.cs b/EOM.TSHotelManager.FormUI/AppInterface/FrmLogin.cs index 1c3b67f..04e8630 100644 --- a/EOM.TSHotelManager.FormUI/AppInterface/FrmLogin.cs +++ b/EOM.TSHotelManager.FormUI/AppInterface/FrmLogin.cs @@ -1,6 +1,6 @@ /* * MIT License - *Copyright (c) 2021~2024 易开元(EOM) + *Copyright (c) 2021 易开元(EOM) *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.cs b/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.cs index e278e8f..87c82da 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.cs +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmBackgroundSystem.cs @@ -1,6 +1,6 @@ /* * MIT License - *Copyright (c) 2021~2024 易开元(EOM) + *Copyright (c) 2021 易开元(EOM) *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal diff --git a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs index d26844b..b855449 100644 --- a/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs +++ b/EOM.TSHotelManager.FormUI/AppMain/FrmMain.cs @@ -1,6 +1,6 @@ /* * MIT License - *Copyright (c) 2021~2024 易开元(EOM) + *Copyright (c) 2021 易开元(EOM) *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucHistory.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucHistory.cs index ebcb778..345d3c5 100644 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucHistory.cs +++ b/EOM.TSHotelManager.FormUI/AppUserControls/ucHistory.cs @@ -1,6 +1,6 @@ /* * MIT License - *Copyright (c) 2021~2024 易开元(EOM) + *Copyright (c) 2021 易开元(EOM) *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucNavBar.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucNavBar.cs index 7bb1e2a..eb8ffe4 100644 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucNavBar.cs +++ b/EOM.TSHotelManager.FormUI/AppUserControls/ucNavBar.cs @@ -1,6 +1,6 @@ /* * MIT License - *Copyright (c) 2021~2024 易开元(EOM) + *Copyright (c) 2021 易开元(EOM) *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs index 63ee9f1..2fa95b4 100644 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs +++ b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoom.cs @@ -17,35 +17,39 @@ namespace EOM.TSHotelManager.FormUI } + ResponseMsg result = new ResponseMsg(); + Dictionary getParam = new Dictionary(); + string postParam = string.Empty; + #region 存放房间信息类 //用于结算、转房显示信息用 - public static string rm_RoomNo; - public static string rm_CustoNo; - public static string rm_RoomType; - public static string rm_RoomMoney; + public static string? rm_RoomNo; + public static string? rm_CustoNo; + public static string? rm_RoomType; + public static string? rm_RoomMoney; public static int rm_RoomStateId; - public static string co_RoomNo; - public static string co_CustoNo; + public static string? co_RoomNo; + public static string? co_CustoNo; public static DateTime? co_CheckTime; - public static string co_RoomPosition; - public static string co_RoomState; - public static string co_CustoName; - public static string co_CustoType; + public static string? co_RoomPosition; + public static string? co_RoomState; + public static string? co_CustoName; + public static string? co_CustoType; #endregion #region 存放用户信息类 //用于房态图、查看用户信息用 - public static string us_CustoNo; - public static string us_RoomNo; - public static string us_CustoName; - public static string us_CustoBirthday; - public static string us_CustoSex; - public static string us_CustoTel; + public static string? us_CustoNo; + public static string? us_RoomNo; + public static string? us_CustoName; + public static string? us_CustoBirthday; + public static string? us_CustoSex; + public static string? us_CustoTel; public static int us_CustoPassportType; - public static string us_CustoAddress; + public static string? us_CustoAddress; public static int us_CustoType; - public static string us_CustoID; + public static string? us_CustoID; #endregion #region 实例化房态图的房间信息 @@ -158,20 +162,20 @@ namespace EOM.TSHotelManager.FormUI } - static List roomInfo = null; + private static List? roomInfo = null; private void ucRoom_Load(object sender, EventArgs e) { this.CanPenetrate(); this.Region = new Region(GetRoundRectPath(new RectangleF(0, 0, this.Width, this.Height), 6f)); - if (!romCustoInfo.IsNullOrEmpty()) + if (romCustoInfo != null) { us_CustoNo = romCustoInfo.CustoNo; us_CustoName = romCustoInfo.CustoName; us_CustoSex = romCustoInfo.CustoSex == 1 ? "男" : "女"; us_CustoTel = romCustoInfo.CustoTel; us_CustoID = romCustoInfo.CustoID; - us_CustoBirthday = romCustoInfo.CustoBirth == null ? "" : Convert.ToDateTime(romCustoInfo.CustoBirth).ToString(); + us_CustoBirthday = romCustoInfo.CustoBirth == default ? "" : Convert.ToDateTime(romCustoInfo.CustoBirth).ToString(); us_CustoPassportType = romCustoInfo.PassportType; us_CustoType = romCustoInfo.CustoType; us_CustoAddress = romCustoInfo.CustoAdress; @@ -195,10 +199,9 @@ namespace EOM.TSHotelManager.FormUI break; } btnRoom.BackgroundImageLayout = AntdUI.TFit.Cover; - roomInfo = btnRoom.Text.Split("\n\n").ToList(); } - Room r = null; + Room r; private void tsmiReserRoom_Click(object sender, EventArgs e) { FrmReserManager frm = new FrmReserManager(); @@ -211,17 +214,25 @@ namespace EOM.TSHotelManager.FormUI e.Cancel = true; return; } - Dictionary room = new Dictionary(); - room.Add("no", btnRoom.Text.Split("\n\n")[1].ToString()); - var result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, room); + var roomText = btnRoom.Text?.Split("\n\n"); + if (roomText == null || roomText.Length < 2) + { + UIMessageBox.Show("房间信息不完整!", "来自小T提示", UIStyle.Red); + return; + } + getParam = new Dictionary + { + { "no", roomText[1] } + }; + result = HttpHelper.Request("Room/SelectRoomByRoomNo", string.Empty, getParam); if (result.statusCode != 200) { UIMessageBox.Show("接口服务异常!", "来自小T提示", UIStyle.Red); return; } - r = HttpHelper.JsonToModel(result.message); - if (btnRoom.Text.Split("\n\n")[1].ToString() != "") + r = HttpHelper.JsonToModel(result.message!)!; + if (r.RoomStateId == 1) { tsmiCheckIn.Enabled = false; tsmiCheckOut.Enabled = true; @@ -230,7 +241,7 @@ namespace EOM.TSHotelManager.FormUI tsmiChangeRoom.Enabled = true; tsmiReserRoom.Enabled = false; } - else if (r.RoomStateId == 3 || r.RoomStateId == 2) + else if (r.RoomStateId == 2 || r.RoomStateId == 3) { tsmiCheckIn.Enabled = false; tsmiCheckOut.Enabled = false; @@ -248,7 +259,7 @@ namespace EOM.TSHotelManager.FormUI tsmiChangeRoom.Enabled = false; tsmiReserRoom.Enabled = false; } - else if (btnRoom.Text.Split("\n\n")[2].ToString() == "") + else { tsmiCheckIn.Enabled = true; tsmiCheckOut.Enabled = false; @@ -261,51 +272,65 @@ namespace EOM.TSHotelManager.FormUI private void tsmiCheckIn_Click(object sender, EventArgs e) { - if (r.RoomStateId == 4) + if (romCustoInfo != null && romRoomInfo != null) { - rm_CustoNo = roomInfo[2]; - rm_RoomNo = roomInfo[1]; - rm_RoomType = roomInfo[0]; - rm_RoomMoney = Convert.ToDecimal(romRoomInfo.RoomMoney).ToString(); - rm_RoomStateId = 4; - UIMessageBox.ShowInfo("欢迎入住,请先注册客户信息!"); - FrmReserList frm = new FrmReserList(); - frm.ShowDialog(); - return; + if (r.RoomStateId == 4) + { + rm_CustoNo = romCustoInfo.CustoNo; + rm_RoomNo = romRoomInfo.RoomNo; + rm_RoomType = romRoomInfo.RoomName; + rm_RoomMoney = Convert.ToDecimal(romRoomInfo.RoomMoney).ToString(); + rm_RoomStateId = 4; + UIMessageBox.ShowInfo("欢迎入住,请先注册客户信息!"); + FrmReserList frm = new FrmReserList(); + frm.ShowDialog(); + return; + } + else + { + rm_CustoNo = romCustoInfo.CustoNo; + rm_RoomNo = romRoomInfo.RoomNo; + rm_RoomType = romRoomInfo.RoomName; + rm_RoomMoney = Convert.ToDecimal(romRoomInfo.RoomMoney).ToString(); + FrmCheckIn frm = new FrmCheckIn(); + frm.Show(); + } } else { - rm_CustoNo = roomInfo[2]; - rm_RoomNo = roomInfo[1]; - rm_RoomType = roomInfo[0]; - rm_RoomMoney = Convert.ToDecimal(romRoomInfo.RoomMoney).ToString(); - FrmCheckIn frm = new FrmCheckIn(); - frm.Show(); + UIMessageBox.Show("房间信息不完整!", "来自小T提示", UIStyle.Red); } } private void tsmiCheckOut_Click(object sender, EventArgs e) { - rm_CustoNo = roomInfo[2]; - rm_RoomNo = roomInfo[1]; - rm_RoomType = roomInfo[0]; + rm_CustoNo = romRoomInfo.CustoNo; + rm_RoomNo = romRoomInfo.RoomNo; + rm_RoomType = romRoomInfo.RoomName; FrmCheckOutForm frm = new FrmCheckOutForm(); frm.Show(); } - public static string RoomNo; - public static string CustoNo; - public static string RoomState; + public static string? RoomNo; + public static string? CustoNo; + public static string? RoomState; private void tsmiChangeRoom_Click(object sender, EventArgs e) { - bool tf = UIMessageBox.Show("确定要进行转房吗?", "来自小T的提醒", UIStyle.Orange, UIMessageBoxButtons.OKCancel); - if (tf) + if (romCustoInfo != null && romRoomInfo != null) { - RoomNo = roomInfo[1]; - CustoNo = roomInfo[2]; - RoomState = roomInfo[0]; - FrmChangeRoom frm = new FrmChangeRoom(); - frm.Show(); + bool tf = UIMessageBox.Show("确定要进行转房吗?", "来自小T的提醒", UIStyle.Orange, UIMessageBoxButtons.OKCancel); + if (tf) + { + RoomNo = romRoomInfo.RoomNo; + CustoNo = romCustoInfo.CustoNo; + RoomState = romRoomInfo.RoomState; + FrmChangeRoom frm = new FrmChangeRoom(); + frm.Show(); + } + } + else + { + UIMessageBox.Show("房间信息不完整!", "来自小T提示", UIStyle.Red); } } @@ -318,21 +343,47 @@ namespace EOM.TSHotelManager.FormUI private void tsmiChangeState_Click(object sender, EventArgs e) { - Dictionary room = new Dictionary + if (r.RoomStateId == 4) { - { "roomno", roomInfo[1] } - }; - var result = HttpHelper.Request("Room/SelectRoomStateIdByRoomNo", null, room); - - if (result.statusCode != 200) + bool tf = UIMessageBox.Show("当前房间已被预约,确认更改状态后将会删除原本预约状态及信息,你确定吗?", "来自小T的提醒", UIStyle.Red, UIMessageBoxButtons.OKCancel); + if (tf) + { + getParam = new Dictionary() + { + {"no",r.RoomNo } + }; + result = HttpHelper.Request("Reser/SelectReserInfoByRoomNo", null, getParam); + if (result.statusCode != 200) + { + UIMessageBox.Show("SelectReserInfoByRoomNo+接口服务异常!", "来自小T提示", UIStyle.Red); + return; + } + else + { + var reser = new Reser + { + ReserId = HttpHelper.JsonToModel(result.message!)!.ReserId + }; + result = HttpHelper.Request("Reser/DeleteReserInfo", HttpHelper.ModelToJson(reser), null); + if (result.statusCode != 200) + { + UIMessageBox.Show("DeleteReserInfo+接口服务异常!", "来自小T提示", UIStyle.Red); + return; + } + } + } + } + if (romCustoInfo != null && romRoomInfo != null) { - UIMessageBox.Show("SelectRoomStateIdByRoomNo+接口服务异常!", "来自小T提示", UIStyle.Red); - return; + rm_RoomStateId = romRoomInfo.RoomStateId; + rm_RoomNo = romRoomInfo.RoomNo; + FrmRoomStateManager frsm = new FrmRoomStateManager(); + frsm.ShowDialog(); + } + else + { + UIMessageBox.Show("房间信息不完整!", "来自小T提示", UIStyle.Red); } - rm_RoomStateId = Convert.ToInt32(result.message); - rm_RoomNo = roomInfo[1]; - FrmRoomStateManager frsm = new FrmRoomStateManager(); - frsm.ShowDialog(); } } } diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.Designer.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.Designer.cs deleted file mode 100644 index 26426af..0000000 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.Designer.cs +++ /dev/null @@ -1,202 +0,0 @@ -namespace EOM.TSHotelManager.FormUI -{ - partial class ucRoomList - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - components = new System.ComponentModel.Container(); - cmsMain = new System.Windows.Forms.ContextMenuStrip(components); - tsmiReserRoom = new System.Windows.Forms.ToolStripMenuItem(); - tsmiCheckIn = new System.Windows.Forms.ToolStripMenuItem(); - tsmiCheckOut = new System.Windows.Forms.ToolStripMenuItem(); - tsmiChangeRoom = new System.Windows.Forms.ToolStripMenuItem(); - tsmiSelectUserInfo = new System.Windows.Forms.ToolStripMenuItem(); - tsmiChangeState = new System.Windows.Forms.ToolStripMenuItem(); - lblCustoName = new System.Windows.Forms.Label(); - lblRoomType = new System.Windows.Forms.Label(); - lblRoomNo = new System.Windows.Forms.Label(); - uttTips = new Sunny.UI.UIToolTip(components); - lblMark = new Sunny.UI.UILabel(); - cmsMain.SuspendLayout(); - SuspendLayout(); - // - // cmsMain - // - cmsMain.ImageScalingSize = new System.Drawing.Size(28, 28); - cmsMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { tsmiReserRoom, tsmiCheckIn, tsmiCheckOut, tsmiChangeRoom, tsmiSelectUserInfo, tsmiChangeState }); - cmsMain.Name = "cmsMain"; - cmsMain.Size = new System.Drawing.Size(149, 136); - cmsMain.Opening += cmsMain_Opening; - // - // tsmiReserRoom - // - tsmiReserRoom.Name = "tsmiReserRoom"; - tsmiReserRoom.Size = new System.Drawing.Size(148, 22); - tsmiReserRoom.Text = "预约房间"; - tsmiReserRoom.Click += tsmiReserRoom_Click; - // - // tsmiCheckIn - // - tsmiCheckIn.Name = "tsmiCheckIn"; - tsmiCheckIn.Size = new System.Drawing.Size(148, 22); - tsmiCheckIn.Text = "入住房间"; - tsmiCheckIn.Click += tsmiCheckIn_Click; - // - // tsmiCheckOut - // - tsmiCheckOut.Name = "tsmiCheckOut"; - tsmiCheckOut.Size = new System.Drawing.Size(148, 22); - tsmiCheckOut.Text = "结算退房"; - tsmiCheckOut.Click += tsmiCheckOut_Click; - // - // tsmiChangeRoom - // - tsmiChangeRoom.Name = "tsmiChangeRoom"; - tsmiChangeRoom.Size = new System.Drawing.Size(148, 22); - tsmiChangeRoom.Text = "转换房间"; - tsmiChangeRoom.Click += tsmiChangeRoom_Click; - // - // tsmiSelectUserInfo - // - tsmiSelectUserInfo.Name = "tsmiSelectUserInfo"; - tsmiSelectUserInfo.Size = new System.Drawing.Size(148, 22); - tsmiSelectUserInfo.Text = "查看用户信息"; - tsmiSelectUserInfo.Click += tsmiSelectUserInfo_Click; - // - // tsmiChangeState - // - tsmiChangeState.Name = "tsmiChangeState"; - tsmiChangeState.Size = new System.Drawing.Size(148, 22); - tsmiChangeState.Text = "修改房间状态"; - tsmiChangeState.Click += tsmiChangeState_Click; - // - // lblCustoName - // - lblCustoName.AutoSize = true; - lblCustoName.BackColor = System.Drawing.Color.Transparent; - lblCustoName.ContextMenuStrip = cmsMain; - lblCustoName.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134); - lblCustoName.Location = new System.Drawing.Point(37, 75); - lblCustoName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - lblCustoName.Name = "lblCustoName"; - lblCustoName.Size = new System.Drawing.Size(81, 17); - lblCustoName.TabIndex = 10; - lblCustoName.Text = "CustoName"; - lblCustoName.MouseClick += lblCustoNo_MouseClick; - // - // lblRoomType - // - lblRoomType.AutoSize = true; - lblRoomType.BackColor = System.Drawing.Color.Transparent; - lblRoomType.ContextMenuStrip = cmsMain; - lblRoomType.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134); - lblRoomType.Location = new System.Drawing.Point(37, 9); - lblRoomType.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - lblRoomType.Name = "lblRoomType"; - lblRoomType.Size = new System.Drawing.Size(61, 17); - lblRoomType.TabIndex = 9; - lblRoomType.Text = "RoomTy"; - lblRoomType.MouseClick += lblRoomType_MouseClick; - // - // lblRoomNo - // - lblRoomNo.AutoSize = true; - lblRoomNo.BackColor = System.Drawing.Color.Transparent; - lblRoomNo.ContextMenuStrip = cmsMain; - lblRoomNo.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134); - lblRoomNo.ForeColor = System.Drawing.Color.Black; - lblRoomNo.Location = new System.Drawing.Point(37, 42); - lblRoomNo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - lblRoomNo.Name = "lblRoomNo"; - lblRoomNo.Size = new System.Drawing.Size(63, 17); - lblRoomNo.TabIndex = 8; - lblRoomNo.Text = "RoomNo"; - lblRoomNo.MouseClick += lblRoomNo_MouseClick; - // - // uttTips - // - uttTips.BackColor = System.Drawing.Color.FromArgb(54, 54, 54); - uttTips.ForeColor = System.Drawing.Color.FromArgb(239, 239, 239); - uttTips.OwnerDraw = true; - uttTips.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; - uttTips.ToolTipTitle = "点击提示"; - // - // lblMark - // - lblMark.Font = new System.Drawing.Font("微软雅黑", 12F); - lblMark.ForeColor = System.Drawing.Color.FromArgb(48, 48, 48); - lblMark.Location = new System.Drawing.Point(91, 33); - lblMark.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - lblMark.Name = "lblMark"; - lblMark.Size = new System.Drawing.Size(18, 33); - lblMark.TabIndex = 11; - lblMark.Text = "uiLabel1"; - lblMark.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - lblMark.Visible = false; - // - // ucRoomList - // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); - AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - BackColor = System.Drawing.SystemColors.MenuHighlight; - BackgroundImage = Properties.Resources.可住状态; - BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - ContextMenuStrip = cmsMain; - Controls.Add(lblMark); - Controls.Add(lblCustoName); - Controls.Add(lblRoomType); - Controls.Add(lblRoomNo); - DoubleBuffered = true; - Margin = new System.Windows.Forms.Padding(4); - Name = "ucRoomList"; - Size = new System.Drawing.Size(122, 102); - uttTips.SetToolTip(this, "a)、点击鼠标左键查看房间信息\r\nb)、点击鼠标右键打开选项菜单\r\nc)、快速双击鼠标左键可快速入住/查看信息"); - Load += ucRoomList_Load; - SizeChanged += ucRoomList_SizeChanged; - Click += ucRoomList_Click; - DoubleClick += ucRoomList_DoubleClick; - MouseClick += ucRoomList_MouseClick; - cmsMain.ResumeLayout(false); - ResumeLayout(false); - PerformLayout(); - } - - #endregion - private System.Windows.Forms.ContextMenuStrip cmsMain; - private System.Windows.Forms.ToolStripMenuItem tsmiCheckIn; - private System.Windows.Forms.ToolStripMenuItem tsmiCheckOut; - private System.Windows.Forms.ToolStripMenuItem tsmiSelectUserInfo; - private System.Windows.Forms.ToolStripMenuItem tsmiChangeState; - private System.Windows.Forms.ToolStripMenuItem tsmiChangeRoom; - private System.Windows.Forms.ToolStripMenuItem tsmiReserRoom; - public System.Windows.Forms.Label lblCustoName; - public System.Windows.Forms.Label lblRoomType; - public System.Windows.Forms.Label lblRoomNo; - private Sunny.UI.UIToolTip uttTips; - public Sunny.UI.UILabel lblMark; - } -} diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.cs deleted file mode 100644 index 70a59e4..0000000 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.cs +++ /dev/null @@ -1,499 +0,0 @@ -/* - * MIT License - *Copyright (c) 2021~2024 易开元(EOM) - - *Permission is hereby granted, free of charge, to any person obtaining a copy - *of this software and associated documentation files (the "Software"), to deal - *in the Software without restriction, including without limitation the rights - *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - *copies of the Software, and to permit persons to whom the Software is - *furnished to do so, subject to the following conditions: - - *The above copyright notice and this permission notice shall be included in all - *copies or substantial portions of the Software. - - *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - *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. - * - */ -using EOM.TSHotelManager.Common; -using EOM.TSHotelManager.Common.Core; -using EOM.TSHotelManager.FormUI.Properties; -using SqlSugar; -using Sunny.UI; -using System.ComponentModel; -using System.Drawing.Drawing2D; -using System.Runtime.InteropServices; - -namespace EOM.TSHotelManager.FormUI -{ - public partial class ucRoomList : UserControl - { - FrmRoomManager frm = null; - Room r = null; - - public ucRoomList() - { - InitializeComponent(); - this.BorderStyle = BorderStyle.None; - //traninfo = LoadRoomInfo(co_RoomNo, co_CustoNo, co_RoomPosition, co_CheckTime, co_RoomState); - //string Roomno, string Custono, string Roompo, string Checktime, string Roomstate - } - - #region 房态图圆角代码 - public GraphicsPath GetRoundRectPath(RectangleF rect, float radius) - { - return GetRoundRectPath(rect.X, rect.Y, rect.Width, rect.Height, radius); - } - public GraphicsPath GetRoundRectPath(float X, float Y, float width, float height, float radius) - { - GraphicsPath path = new GraphicsPath(); - path.AddLine(X + radius, Y, (X + width) - (radius * 2f), Y); - path.AddArc((X + width) - (radius * 2f), Y, radius * 2f, radius * 2f, 270f, 100f); - path.AddLine((float)(X + width), (float)(Y + radius), (float)(X + width), (float)((Y + height) - (radius * 2f))); - path.AddArc((float)((X + width) - (radius * 2f)), (float)((Y + height) - (radius * 2f)), (float)(radius * 2f), (float)(radius * 2f), 0f, 100f); - path.AddLine((float)((X + width) - (radius * 2f)), (float)(Y + height), (float)(X + radius), (float)(Y + height)); - path.AddArc(X, (Y + height) - (radius * 2f), radius * 2f, radius * 2f, 100f, 100f); - path.AddLine(X, (Y + height) - (radius * 2f), X, Y + radius); - path.AddArc(X, Y, radius * 2f, radius * 2f, 180f, 100f); - path.CloseFigure(); - return path; - } - - //窗体圆角代码开始 - public void SetWindowRegion() - { - System.Drawing.Drawing2D.GraphicsPath FormPath; - FormPath = new System.Drawing.Drawing2D.GraphicsPath(); - Rectangle rect = new Rectangle(0, 22, this.Width, this.Height - 22); - //this.Left-10,this.Top-10,this.Width-10,this.Height-10); - FormPath = GetRoundedRectPath(rect, 30); - this.Region = new Region(FormPath); - } - private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius) - { - int diameter = radius; - Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter)); - GraphicsPath path = new GraphicsPath(); - // 左上角 - path.AddArc(arcRect, 180, 90); - // 右上角 - arcRect.X = rect.Right - diameter; - path.AddArc(arcRect, 270, 90); - // 右下角 - arcRect.Y = rect.Bottom - diameter; - path.AddArc(arcRect, 0, 90); - // 左下角 - arcRect.X = rect.Left; - path.AddArc(arcRect, 90, 90); - path.CloseFigure(); - return path; - } - protected override void OnResize(System.EventArgs e) - { - this.Region = null; - SetWindowRegion(); - } - #endregion - - private const uint WS_EX_LAYERED = 0x80000; - private const int WS_EX_TRANSPARENT = 0x20; - private const int GWL_STYLE = (-16); - private const int GWL_EXSTYLE = (-20); - [DllImport("user32", EntryPoint = "SetWindowLong")] - private static extern uint SetWindowLong( - IntPtr hwnd, - int nIndex, - uint dwNewLong - ); - [DllImport("user32", EntryPoint = "GetWindowLong")] - private static extern uint GetWindowLong( - IntPtr hwnd, - int nIndex - ); - /// - /// 使窗口有鼠标穿透功能 - /// - public void CanPenetrate() - { - uint intExTemp = GetWindowLong(this.Handle, GWL_EXSTYLE); - uint oldGWLEx = SetWindowLong(this.Handle, GWL_EXSTYLE, WS_EX_TRANSPARENT | WS_EX_LAYERED); - } - - - #region 存放房间信息类 - public static string rm_RoomNo; - public static string rm_CustoNo; - public static string rm_CustoName; - public static string rm_RoomType; - public static string rm_RoomMoney; - public static DateTime? rm_CheckTime; - public static int rm_RoomStateId; - public static string co_RoomNo; - public static string co_CustoNo; - public static DateTime? co_CheckTime; - public static string co_RoomPosition; - public static string co_RoomState; - public static string co_CustoName; - public static string co_CustoType; - public static string co_PersonNum; - #endregion - - #region 存放用户信息类 - public static string us_CustoNo; - public static string us_RoomNo; - public static string us_CustoName; - public static string us_CustoBirthday; - public static string us_CustoSex; - public static string us_CustoTel; - public static int us_CustoPassportType; - public static string us_CustoAddress; - public static int us_CustoType; - public static string us_CustoID; - #endregion - - #region 实例化房态图的房间信息 - public string romTypeName; - public Room romRoomInfo = new Room(); - public Custo romCustoInfo = new Custo(); - #endregion - - #region 鼠标点击房态图传值到类 - private void ucRoomList_Click(object sender, EventArgs e) - { - LoadRoomInfo(); - } - #endregion - - #region 房态图加载事件方法 - private void ucRoomList_Load(object sender, EventArgs e) - { - this.CanPenetrate(); - this.Region = new Region(GetRoundRectPath(new RectangleF(0, 0, this.Width, this.Height), 6f)); - us_CustoNo = romCustoInfo.CustoNo; - us_CustoName = romCustoInfo.CustoName; - us_CustoSex = romCustoInfo.CustoSex == 1 ? "男" : "女"; - us_CustoTel = romCustoInfo.CustoTel; - us_CustoID = romCustoInfo.CustoID; - us_CustoBirthday = romCustoInfo.CustoBirth == null ? "" : Convert.ToDateTime(romCustoInfo.CustoBirth).ToString(); - us_CustoPassportType = romCustoInfo.PassportType; - us_CustoType = romCustoInfo.CustoType; - us_CustoAddress = romCustoInfo.CustoAdress; - switch (romRoomInfo.RoomStateId) - { - case 0: - BackgroundImage = Resources.可住状态; - break; - case 1: - BackgroundImage = Resources.已住状态; - break; - case 2: - BackgroundImage = Resources.维修状态; - break; - case 3: - BackgroundImage = Resources.脏房状态; - break; - case 4: - BackgroundImage = Resources.预约状态; - break; - } - - } - #endregion - - #region 当右键菜单打开时事件方法 - private void cmsMain_Opening(object sender, CancelEventArgs e) - { - Dictionary room = new Dictionary(); - room.Add("no", lblRoomNo.Text); - var result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, room); - - if (result.statusCode != 200) - { - UIMessageBox.Show("接口服务异常!", "来自小T提示", UIStyle.Red); - return; - } - r = HttpHelper.JsonToModel(result.message); - if (lblCustoName.Text != "") - { - tsmiCheckIn.Enabled = false; - tsmiCheckOut.Enabled = true; - tsmiSelectUserInfo.Enabled = true; - tsmiChangeState.Enabled = false; - tsmiChangeRoom.Enabled = true; - tsmiReserRoom.Enabled = false; - } - else if (r.RoomStateId == 3 || r.RoomStateId == 2) - { - tsmiCheckIn.Enabled = false; - tsmiCheckOut.Enabled = false; - tsmiSelectUserInfo.Enabled = false; - tsmiChangeState.Enabled = true; - tsmiChangeRoom.Enabled = false; - tsmiReserRoom.Enabled = false; - } - else if (r.RoomStateId == 4) - { - tsmiCheckIn.Enabled = true; - tsmiCheckOut.Enabled = false; - tsmiSelectUserInfo.Enabled = false; - tsmiChangeState.Enabled = true; - tsmiChangeRoom.Enabled = false; - tsmiReserRoom.Enabled = false; - } - else if (lblCustoName.Text == "") - { - tsmiCheckIn.Enabled = true; - tsmiCheckOut.Enabled = false; - tsmiSelectUserInfo.Enabled = false; - tsmiChangeState.Enabled = true; - tsmiChangeRoom.Enabled = false; - tsmiReserRoom.Enabled = true; - } - - - } - #endregion - - #region 入住房间事件方法 - private void tsmiCheckIn_Click(object sender, EventArgs e) - { - if (r.RoomStateId == 4) - { - rm_CustoNo = lblCustoName.Text; - rm_RoomNo = lblRoomNo.Text; - rm_RoomType = lblRoomType.Text; - rm_RoomMoney = Convert.ToDecimal(romRoomInfo.RoomMoney).ToString(); - rm_RoomStateId = 4; - UIMessageBox.ShowInfo("欢迎入住,请先注册客户信息!"); - FrmReserList frm = new FrmReserList(); - frm.ShowDialog(); - return; - } - else - { - rm_CustoNo = lblCustoName.Text; - rm_RoomNo = lblRoomNo.Text; - rm_RoomType = lblRoomType.Text; - rm_RoomMoney = Convert.ToDecimal(romRoomInfo.RoomMoney).ToString(); - FrmCheckIn frm = new FrmCheckIn(); - frm.Show(); - } - - - - } - #endregion - - #region 退房事件方法 - private void tsmiCheckOut_Click(object sender, EventArgs e) - { - rm_CustoNo = lblCustoName.Text; - rm_RoomNo = lblRoomNo.Text; - rm_RoomType = lblRoomType.Text; - FrmCheckOutForm frm = new FrmCheckOutForm(); - frm.Show(); - } - #endregion - - #region 双击进入入住/退房事件方法 - private void ucRoomList_DoubleClick(object sender, EventArgs e) - { - List custos = new List(); - if (!lblCustoName.Text.IsNullOrEmpty()) - { - Dictionary dic = new Dictionary() - { - { "no",lblRoomNo.Text.Trim() } - }; - var result = HttpHelper.Request("Room/SelectRoomByRoomNo", null, dic); - if (result.statusCode != 200) - { - UIMessageBox.ShowError("SelectRoomByRoomNo+接口服务异常,请提交Issue或尝试更新版本!"); - return; - } - - Room r = HttpHelper.JsonToModel(result.message); - switch (r.RoomStateId) - { - case 1: - rm_CustoNo = lblCustoName.Text; - FrmSelectCustoInfo frmSelectCustoInfo = new FrmSelectCustoInfo(); - frmSelectCustoInfo.Show(); - break; - } - } - else if (lblCustoName.Text.IsNullOrEmpty() && romRoomInfo.RoomStateId == 0) - { - rm_RoomNo = lblRoomNo.Text; - FrmCheckIn frm = new FrmCheckIn(); - frm.Show(); - } - else - { - return; - } - } - #endregion - - private void tsmiSelectUserInfo_Click(object sender, EventArgs e) - { - rm_CustoNo = lblCustoName.Text; - FrmSelectCustoInfo frm = new FrmSelectCustoInfo(); - frm.Show(); - } - - #region 修改房间状态 - private void tsmiChangeState_Click(object sender, EventArgs e) - { - Dictionary room = new Dictionary - { - { "roomno", lblRoomNo.Text } - }; - var result = HttpHelper.Request("Room/SelectRoomStateIdByRoomNo", null, room); - - if (result.statusCode != 200) - { - UIMessageBox.Show("SelectRoomStateIdByRoomNo+接口服务异常!", "来自小T提示", UIStyle.Red); - return; - } - rm_RoomStateId = Convert.ToInt32(result.message); - rm_RoomNo = lblRoomNo.Text; - FrmRoomStateManager frsm = new FrmRoomStateManager(); - frsm.ShowDialog(); - } - #endregion - - public static string RoomNo; - public static string CustoNo; - public static string RoomState; - private void tsmiChangeRoom_Click(object sender, EventArgs e) - { - bool tf = UIMessageBox.Show("确定要进行转房吗?", "来自小T的提醒", UIStyle.Orange, UIMessageBoxButtons.OKCancel); - if (tf) - { - RoomNo = lblRoomNo.Text; - CustoNo = lblCustoName.Text; - RoomState = lblRoomType.Text; - FrmChangeRoom frm = new FrmChangeRoom(); - frm.Show(); - } - - } - - private void tsmiReserRoom_Click(object sender, EventArgs e) - { - FrmReserManager frm = new FrmReserManager(); - - frm.Show(); - - } - - private void ucRoomList_SizeChanged(object sender, EventArgs e) - { - this.Width = 125; - this.Height = 85; - } - - public void LoadRoomInfo() - { - co_RoomNo = romRoomInfo.RoomNo; - co_CustoNo = romRoomInfo.CustoName; - romTypeName = romRoomInfo.RoomName; - co_CheckTime = romRoomInfo.CheckTime; - co_RoomPosition = romRoomInfo.RoomPosition; - co_RoomState = romRoomInfo.RoomState; - - } - - private void ucRoomList_MouseClick(object sender, MouseEventArgs e) - { - try - { - if (lblMark.Text.Trim().IsNullOrEmpty()) - { - LoadRoomInfo(); - FrmRoomManager.ReadInfo(); - } - else - { - cmsMain.Enabled = false; - return; - } - } - catch (Exception) - { - - } - } - - private void lblRoomType_MouseClick(object sender, MouseEventArgs e) - { - try - { - if (lblMark.Text.Trim().IsNullOrEmpty()) - { - LoadRoomInfo(); - FrmRoomManager.ReadInfo(); - } - else - { - cmsMain.Enabled = false; - return; - } - } - catch (Exception) - { - - } - } - - private void lblRoomNo_MouseClick(object sender, MouseEventArgs e) - { - try - { - if (lblMark.Text.Trim().IsNullOrEmpty()) - { - LoadRoomInfo(); - FrmRoomManager.ReadInfo(); - } - else - { - cmsMain.Enabled = false; - return; - } - } - catch (Exception) - { - - } - } - - private void lblCustoNo_MouseClick(object sender, MouseEventArgs e) - { - try - { - if (lblMark.Text.Trim().IsNullOrEmpty()) - { - LoadRoomInfo(); - FrmRoomManager.ReadInfo(); - } - else - { - cmsMain.Enabled = false; - return; - } - } - catch (Exception) - { - - } - } - - } -} diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.resx b/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.resx deleted file mode 100644 index a82a4a3..0000000 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucRoomList.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 123, 17 - - \ No newline at end of file diff --git a/EOM.TSHotelManager.FormUI/AppUserControls/ucVipType.cs b/EOM.TSHotelManager.FormUI/AppUserControls/ucVipType.cs index ea6a678..428cc64 100644 --- a/EOM.TSHotelManager.FormUI/AppUserControls/ucVipType.cs +++ b/EOM.TSHotelManager.FormUI/AppUserControls/ucVipType.cs @@ -1,6 +1,6 @@ /* * MIT License - *Copyright (c) 2021~2024 易开元(EOM) + *Copyright (c) 2021 易开元(EOM) *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the "Software"), to deal diff --git a/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj b/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj index b861c05..c0e3f96 100644 --- a/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj +++ b/EOM.TSHotelManager.FormUI/EOM.TSHotelManager.FormUI.csproj @@ -15,27 +15,6 @@ $(SolutionDir)packages\Fody\build\Fody.targets false - Form @@ -185,9 +164,6 @@ UserControl - - UserControl - UserControl -- Gitee