From 63ebd8f46bbe6ef146de15d88cb0381a7d15cb37 Mon Sep 17 00:00:00 2001 From: lg <999544862qq.com> Date: 星期五, 13 九月 2024 11:59:30 +0800 Subject: [PATCH] 基础资料管理 --- DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.cs | 267 +++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.cs | 267 +++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.Designer.cs | 871 ++++++++++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.Designer.cs | 630 +++++++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.cs | 267 +++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.Designer.cs | 591 ++++++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.cs | 271 +++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.cs | 267 +++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.Designer.cs | 910 ++++++++++ DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.Designer.cs | 749 ++++++++ 10 files changed, 5,090 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.Designer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.Designer.cs new file mode 100644 index 0000000..1305def --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.Designer.cs @@ -0,0 +1,910 @@ +锘� +namespace Gs.DevApp.DevFrm.BasicData +{ + partial class FrmCustomer + { + + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + //BQSetControlObject + this.lb_isStatus = new DevExpress.XtraEditors.LabelControl(); + this.txt_isStatus = new DevExpress.XtraEditors.TextEdit(); + this.gv_isStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_saleGuid = new DevExpress.XtraEditors.LabelControl(); + this.txt_saleGuid = new DevExpress.XtraEditors.TextEdit(); + this.gv_saleGuid = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_remark = new DevExpress.XtraEditors.LabelControl(); + this.txt_remark = new DevExpress.XtraEditors.TextEdit(); + this.gv_remark = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_createBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_createBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_createTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_createTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_conFax = new DevExpress.XtraEditors.LabelControl(); + this.txt_conFax = new DevExpress.XtraEditors.TextEdit(); + this.gv_conFax = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_conTel = new DevExpress.XtraEditors.LabelControl(); + this.txt_conTel = new DevExpress.XtraEditors.TextEdit(); + this.gv_conTel = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_conPeople = new DevExpress.XtraEditors.LabelControl(); + this.txt_conPeople = new DevExpress.XtraEditors.TextEdit(); + this.gv_conPeople = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_land = new DevExpress.XtraEditors.LabelControl(); + this.txt_land = new DevExpress.XtraEditors.TextEdit(); + this.gv_land = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_address = new DevExpress.XtraEditors.LabelControl(); + this.txt_address = new DevExpress.XtraEditors.TextEdit(); + this.gv_address = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_engName = new DevExpress.XtraEditors.LabelControl(); + this.txt_engName = new DevExpress.XtraEditors.TextEdit(); + this.gv_engName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_simpleName = new DevExpress.XtraEditors.LabelControl(); + this.txt_simpleName = new DevExpress.XtraEditors.TextEdit(); + this.gv_simpleName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_fullName = new DevExpress.XtraEditors.LabelControl(); + this.txt_fullName = new DevExpress.XtraEditors.TextEdit(); + this.gv_fullName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_factory = new DevExpress.XtraEditors.LabelControl(); + this.txt_factory = new DevExpress.XtraEditors.TextEdit(); + this.gv_factory = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_itemNo = new DevExpress.XtraEditors.LabelControl(); + this.txt_itemNo = new DevExpress.XtraEditors.TextEdit(); + this.gv_itemNo = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_guid = new DevExpress.XtraEditors.LabelControl(); + this.txt_guid = new DevExpress.XtraEditors.TextEdit(); + this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn(); + + //BQSetControlInfo + // + //lb_isStatus + // + this.lb_isStatus.Location = new System.Drawing.Point(270, 148); + this.lb_isStatus.Name = "lb_isStatus"; + this.lb_isStatus.Size = new System.Drawing.Size(150, 21); + this.lb_isStatus.TabIndex = 267; + this.lb_isStatus.Tag = "isStatus"; + this.lb_isStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_isStatus.Text = "鐘舵�侊細"; + // + //txt_isStatus + // + this.txt_isStatus.Location = new System.Drawing.Point(330, 148); + this.txt_isStatus.Name = "lb_isStatus"; + this.txt_isStatus.Size = new System.Drawing.Size(150, 21); + this.txt_isStatus.TabIndex = 267; + this.txt_isStatus.Tag = "isStatus"; + this.txt_isStatus.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Options.UseFont = true; + this.gv_isStatus.FieldName = "isStatus"; + this.gv_isStatus.Caption = "鐘舵��"; + this.gv_isStatus.MinWidth = 25; + this.gv_isStatus.Visible = true; + this.gv_isStatus.Width = 94; + this.gv_isStatus.OptionsColumn.AllowEdit = false; + this.gv_isStatus.VisibleIndex = 0; + + // + //lb_saleGuid + // + this.lb_saleGuid.Location = new System.Drawing.Point(20, 148); + this.lb_saleGuid.Name = "lb_saleGuid"; + this.lb_saleGuid.Size = new System.Drawing.Size(150, 21); + this.lb_saleGuid.TabIndex = 262; + this.lb_saleGuid.Tag = "saleGuid"; + this.lb_saleGuid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_saleGuid.Text = "閿�鍞憳锛�"; + // + //txt_saleGuid + // + this.txt_saleGuid.Location = new System.Drawing.Point(80, 148); + this.txt_saleGuid.Name = "lb_saleGuid"; + this.txt_saleGuid.Size = new System.Drawing.Size(150, 21); + this.txt_saleGuid.TabIndex = 262; + this.txt_saleGuid.Tag = "saleGuid"; + this.txt_saleGuid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_saleGuid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_saleGuid.AppearanceCell.Options.UseFont = true; + this.gv_saleGuid.FieldName = "saleGuid"; + this.gv_saleGuid.Caption = "閿�鍞憳"; + this.gv_saleGuid.MinWidth = 25; + this.gv_saleGuid.Visible = true; + this.gv_saleGuid.Width = 94; + this.gv_saleGuid.OptionsColumn.AllowEdit = false; + this.gv_saleGuid.VisibleIndex = 0; + + // + //lb_remark + // + this.lb_remark.Location = new System.Drawing.Point(770, 116); + this.lb_remark.Name = "lb_remark"; + this.lb_remark.Size = new System.Drawing.Size(150, 21); + this.lb_remark.TabIndex = 258; + this.lb_remark.Tag = "remark"; + this.lb_remark.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_remark.Text = "澶囨敞锛�"; + // + //txt_remark + // + this.txt_remark.Location = new System.Drawing.Point(830, 116); + this.txt_remark.Name = "lb_remark"; + this.txt_remark.Size = new System.Drawing.Size(150, 21); + this.txt_remark.TabIndex = 258; + this.txt_remark.Tag = "remark"; + this.txt_remark.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Options.UseFont = true; + this.gv_remark.FieldName = "remark"; + this.gv_remark.Caption = "澶囨敞"; + this.gv_remark.MinWidth = 25; + this.gv_remark.Visible = true; + this.gv_remark.Width = 94; + this.gv_remark.OptionsColumn.AllowEdit = false; + this.gv_remark.VisibleIndex = 0; + + // + //lb_lastUpdateBy + // + this.lb_lastUpdateBy.Location = new System.Drawing.Point(520, 116); + this.lb_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.lb_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateBy.TabIndex = 252; + this.lb_lastUpdateBy.Tag = "lastUpdateBy"; + this.lb_lastUpdateBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateBy.Text = "鏇存柊鑰咃細"; + // + //txt_lastUpdateBy + // + this.txt_lastUpdateBy.Location = new System.Drawing.Point(580, 116); + this.txt_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.txt_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateBy.TabIndex = 252; + this.txt_lastUpdateBy.Tag = "lastUpdateBy"; + this.txt_lastUpdateBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateBy.FieldName = "lastUpdateBy"; + this.gv_lastUpdateBy.Caption = "鏇存柊鑰�"; + this.gv_lastUpdateBy.MinWidth = 25; + this.gv_lastUpdateBy.Visible = true; + this.gv_lastUpdateBy.Width = 94; + this.gv_lastUpdateBy.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateBy.VisibleIndex = 0; + + // + //lb_lastUpdateTime + // + this.lb_lastUpdateTime.Location = new System.Drawing.Point(270, 116); + this.lb_lastUpdateTime.Name = "lb_lastUpdateTime"; + this.lb_lastUpdateTime.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateTime.TabIndex = 247; + this.lb_lastUpdateTime.Tag = "lastUpdateTime"; + this.lb_lastUpdateTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateTime.Text = "鏈�鍚庢洿鏂版椂闂达細"; + // + //txt_lastUpdateTime + // + this.txt_lastUpdateTime.Location = new System.Drawing.Point(330, 116); + this.txt_lastUpdateTime.Name = "lb_lastUpdateTime"; + this.txt_lastUpdateTime.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateTime.TabIndex = 247; + this.txt_lastUpdateTime.Tag = "lastUpdateTime"; + this.txt_lastUpdateTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTime.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateTime.FieldName = "lastUpdateTime"; + this.gv_lastUpdateTime.Caption = "鏈�鍚庢洿鏂版椂闂�"; + this.gv_lastUpdateTime.MinWidth = 25; + this.gv_lastUpdateTime.Visible = true; + this.gv_lastUpdateTime.Width = 94; + this.gv_lastUpdateTime.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateTime.VisibleIndex = 0; + + // + //lb_createBy + // + this.lb_createBy.Location = new System.Drawing.Point(20, 116); + this.lb_createBy.Name = "lb_createBy"; + this.lb_createBy.Size = new System.Drawing.Size(150, 21); + this.lb_createBy.TabIndex = 243; + this.lb_createBy.Tag = "createBy"; + this.lb_createBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createBy.Text = "寤虹珛鑰咃細"; + // + //txt_createBy + // + this.txt_createBy.Location = new System.Drawing.Point(80, 116); + this.txt_createBy.Name = "lb_createBy"; + this.txt_createBy.Size = new System.Drawing.Size(150, 21); + this.txt_createBy.TabIndex = 243; + this.txt_createBy.Tag = "createBy"; + this.txt_createBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Options.UseFont = true; + this.gv_createBy.FieldName = "createBy"; + this.gv_createBy.Caption = "寤虹珛鑰�"; + this.gv_createBy.MinWidth = 25; + this.gv_createBy.Visible = true; + this.gv_createBy.Width = 94; + this.gv_createBy.OptionsColumn.AllowEdit = false; + this.gv_createBy.VisibleIndex = 0; + + // + //lb_createTime + // + this.lb_createTime.Location = new System.Drawing.Point(770, 84); + this.lb_createTime.Name = "lb_createTime"; + this.lb_createTime.Size = new System.Drawing.Size(150, 21); + this.lb_createTime.TabIndex = 240; + this.lb_createTime.Tag = "createTime"; + this.lb_createTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createTime.Text = "寤虹珛鏃堕棿锛�"; + // + //txt_createTime + // + this.txt_createTime.Location = new System.Drawing.Point(830, 84); + this.txt_createTime.Name = "lb_createTime"; + this.txt_createTime.Size = new System.Drawing.Size(150, 21); + this.txt_createTime.TabIndex = 240; + this.txt_createTime.Tag = "createTime"; + this.txt_createTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Options.UseFont = true; + this.gv_createTime.FieldName = "createTime"; + this.gv_createTime.Caption = "寤虹珛鏃堕棿"; + this.gv_createTime.MinWidth = 25; + this.gv_createTime.Visible = true; + this.gv_createTime.Width = 94; + this.gv_createTime.OptionsColumn.AllowEdit = false; + this.gv_createTime.VisibleIndex = 0; + + // + //lb_conFax + // + this.lb_conFax.Location = new System.Drawing.Point(520, 84); + this.lb_conFax.Name = "lb_conFax"; + this.lb_conFax.Size = new System.Drawing.Size(150, 21); + this.lb_conFax.TabIndex = 235; + this.lb_conFax.Tag = "conFax"; + this.lb_conFax.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_conFax.Text = "鑱旂郴浼犵湡锛�"; + // + //txt_conFax + // + this.txt_conFax.Location = new System.Drawing.Point(580, 84); + this.txt_conFax.Name = "lb_conFax"; + this.txt_conFax.Size = new System.Drawing.Size(150, 21); + this.txt_conFax.TabIndex = 235; + this.txt_conFax.Tag = "conFax"; + this.txt_conFax.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conFax.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conFax.AppearanceCell.Options.UseFont = true; + this.gv_conFax.FieldName = "conFax"; + this.gv_conFax.Caption = "鑱旂郴浼犵湡"; + this.gv_conFax.MinWidth = 25; + this.gv_conFax.Visible = true; + this.gv_conFax.Width = 94; + this.gv_conFax.OptionsColumn.AllowEdit = false; + this.gv_conFax.VisibleIndex = 0; + + // + //lb_conTel + // + this.lb_conTel.Location = new System.Drawing.Point(270, 84); + this.lb_conTel.Name = "lb_conTel"; + this.lb_conTel.Size = new System.Drawing.Size(150, 21); + this.lb_conTel.TabIndex = 231; + this.lb_conTel.Tag = "conTel"; + this.lb_conTel.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_conTel.Text = "鑱旂郴浜虹數璇濓細"; + // + //txt_conTel + // + this.txt_conTel.Location = new System.Drawing.Point(330, 84); + this.txt_conTel.Name = "lb_conTel"; + this.txt_conTel.Size = new System.Drawing.Size(150, 21); + this.txt_conTel.TabIndex = 231; + this.txt_conTel.Tag = "conTel"; + this.txt_conTel.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conTel.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conTel.AppearanceCell.Options.UseFont = true; + this.gv_conTel.FieldName = "conTel"; + this.gv_conTel.Caption = "鑱旂郴浜虹數璇�"; + this.gv_conTel.MinWidth = 25; + this.gv_conTel.Visible = true; + this.gv_conTel.Width = 94; + this.gv_conTel.OptionsColumn.AllowEdit = false; + this.gv_conTel.VisibleIndex = 0; + + // + //lb_conPeople + // + this.lb_conPeople.Location = new System.Drawing.Point(20, 84); + this.lb_conPeople.Name = "lb_conPeople"; + this.lb_conPeople.Size = new System.Drawing.Size(150, 21); + this.lb_conPeople.TabIndex = 228; + this.lb_conPeople.Tag = "conPeople"; + this.lb_conPeople.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_conPeople.Text = "鑱旂郴浜猴細"; + // + //txt_conPeople + // + this.txt_conPeople.Location = new System.Drawing.Point(80, 84); + this.txt_conPeople.Name = "lb_conPeople"; + this.txt_conPeople.Size = new System.Drawing.Size(150, 21); + this.txt_conPeople.TabIndex = 228; + this.txt_conPeople.Tag = "conPeople"; + this.txt_conPeople.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conPeople.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conPeople.AppearanceCell.Options.UseFont = true; + this.gv_conPeople.FieldName = "conPeople"; + this.gv_conPeople.Caption = "鑱旂郴浜�"; + this.gv_conPeople.MinWidth = 25; + this.gv_conPeople.Visible = true; + this.gv_conPeople.Width = 94; + this.gv_conPeople.OptionsColumn.AllowEdit = false; + this.gv_conPeople.VisibleIndex = 0; + + // + //lb_land + // + this.lb_land.Location = new System.Drawing.Point(770, 52); + this.lb_land.Name = "lb_land"; + this.lb_land.Size = new System.Drawing.Size(150, 21); + this.lb_land.TabIndex = 226; + this.lb_land.Tag = "land"; + this.lb_land.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_land.Text = "鍦板尯锛�"; + // + //txt_land + // + this.txt_land.Location = new System.Drawing.Point(830, 52); + this.txt_land.Name = "lb_land"; + this.txt_land.Size = new System.Drawing.Size(150, 21); + this.txt_land.TabIndex = 226; + this.txt_land.Tag = "land"; + this.txt_land.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_land.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_land.AppearanceCell.Options.UseFont = true; + this.gv_land.FieldName = "land"; + this.gv_land.Caption = "鍦板尯"; + this.gv_land.MinWidth = 25; + this.gv_land.Visible = true; + this.gv_land.Width = 94; + this.gv_land.OptionsColumn.AllowEdit = false; + this.gv_land.VisibleIndex = 0; + + // + //lb_address + // + this.lb_address.Location = new System.Drawing.Point(520, 52); + this.lb_address.Name = "lb_address"; + this.lb_address.Size = new System.Drawing.Size(150, 21); + this.lb_address.TabIndex = 222; + this.lb_address.Tag = "address"; + this.lb_address.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_address.Text = "鍦板潃锛�"; + // + //txt_address + // + this.txt_address.Location = new System.Drawing.Point(580, 52); + this.txt_address.Name = "lb_address"; + this.txt_address.Size = new System.Drawing.Size(150, 21); + this.txt_address.TabIndex = 222; + this.txt_address.Tag = "address"; + this.txt_address.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_address.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_address.AppearanceCell.Options.UseFont = true; + this.gv_address.FieldName = "address"; + this.gv_address.Caption = "鍦板潃"; + this.gv_address.MinWidth = 25; + this.gv_address.Visible = true; + this.gv_address.Width = 94; + this.gv_address.OptionsColumn.AllowEdit = false; + this.gv_address.VisibleIndex = 0; + + // + //lb_engName + // + this.lb_engName.Location = new System.Drawing.Point(270, 52); + this.lb_engName.Name = "lb_engName"; + this.lb_engName.Size = new System.Drawing.Size(150, 21); + this.lb_engName.TabIndex = 219; + this.lb_engName.Tag = "engName"; + this.lb_engName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_engName.Text = "瀹㈡埛鑻辨枃鍚嶏細"; + // + //txt_engName + // + this.txt_engName.Location = new System.Drawing.Point(330, 52); + this.txt_engName.Name = "lb_engName"; + this.txt_engName.Size = new System.Drawing.Size(150, 21); + this.txt_engName.TabIndex = 219; + this.txt_engName.Tag = "engName"; + this.txt_engName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_engName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_engName.AppearanceCell.Options.UseFont = true; + this.gv_engName.FieldName = "engName"; + this.gv_engName.Caption = "瀹㈡埛鑻辨枃鍚�"; + this.gv_engName.MinWidth = 25; + this.gv_engName.Visible = true; + this.gv_engName.Width = 94; + this.gv_engName.OptionsColumn.AllowEdit = false; + this.gv_engName.VisibleIndex = 0; + + // + //lb_simpleName + // + this.lb_simpleName.Location = new System.Drawing.Point(20, 52); + this.lb_simpleName.Name = "lb_simpleName"; + this.lb_simpleName.Size = new System.Drawing.Size(150, 21); + this.lb_simpleName.TabIndex = 217; + this.lb_simpleName.Tag = "simpleName"; + this.lb_simpleName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_simpleName.Text = "瀹㈡埛绠�绉帮細"; + // + //txt_simpleName + // + this.txt_simpleName.Location = new System.Drawing.Point(80, 52); + this.txt_simpleName.Name = "lb_simpleName"; + this.txt_simpleName.Size = new System.Drawing.Size(150, 21); + this.txt_simpleName.TabIndex = 217; + this.txt_simpleName.Tag = "simpleName"; + this.txt_simpleName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_simpleName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_simpleName.AppearanceCell.Options.UseFont = true; + this.gv_simpleName.FieldName = "simpleName"; + this.gv_simpleName.Caption = "瀹㈡埛绠�绉�"; + this.gv_simpleName.MinWidth = 25; + this.gv_simpleName.Visible = true; + this.gv_simpleName.Width = 94; + this.gv_simpleName.OptionsColumn.AllowEdit = false; + this.gv_simpleName.VisibleIndex = 0; + + // + //lb_fullName + // + this.lb_fullName.Location = new System.Drawing.Point(770, 20); + this.lb_fullName.Name = "lb_fullName"; + this.lb_fullName.Size = new System.Drawing.Size(150, 21); + this.lb_fullName.TabIndex = 216; + this.lb_fullName.Tag = "fullName"; + this.lb_fullName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_fullName.Text = "瀹㈡埛鍏ㄧО锛�"; + // + //txt_fullName + // + this.txt_fullName.Location = new System.Drawing.Point(830, 20); + this.txt_fullName.Name = "lb_fullName"; + this.txt_fullName.Size = new System.Drawing.Size(150, 21); + this.txt_fullName.TabIndex = 216; + this.txt_fullName.Tag = "fullName"; + this.txt_fullName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_fullName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_fullName.AppearanceCell.Options.UseFont = true; + this.gv_fullName.FieldName = "fullName"; + this.gv_fullName.Caption = "瀹㈡埛鍏ㄧО"; + this.gv_fullName.MinWidth = 25; + this.gv_fullName.Visible = true; + this.gv_fullName.Width = 94; + this.gv_fullName.OptionsColumn.AllowEdit = false; + this.gv_fullName.VisibleIndex = 0; + + // + //lb_factory + // + this.lb_factory.Location = new System.Drawing.Point(520, 20); + this.lb_factory.Name = "lb_factory"; + this.lb_factory.Size = new System.Drawing.Size(150, 21); + this.lb_factory.TabIndex = 213; + this.lb_factory.Tag = "factory"; + this.lb_factory.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_factory.Text = "宸ュ巶缂栧彿锛�"; + // + //txt_factory + // + this.txt_factory.Location = new System.Drawing.Point(580, 20); + this.txt_factory.Name = "lb_factory"; + this.txt_factory.Size = new System.Drawing.Size(150, 21); + this.txt_factory.TabIndex = 213; + this.txt_factory.Tag = "factory"; + this.txt_factory.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_factory.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_factory.AppearanceCell.Options.UseFont = true; + this.gv_factory.FieldName = "factory"; + this.gv_factory.Caption = "宸ュ巶缂栧彿"; + this.gv_factory.MinWidth = 25; + this.gv_factory.Visible = true; + this.gv_factory.Width = 94; + this.gv_factory.OptionsColumn.AllowEdit = false; + this.gv_factory.VisibleIndex = 0; + + // + //lb_itemNo + // + this.lb_itemNo.Location = new System.Drawing.Point(270, 20); + this.lb_itemNo.Name = "lb_itemNo"; + this.lb_itemNo.Size = new System.Drawing.Size(150, 21); + this.lb_itemNo.TabIndex = 211; + this.lb_itemNo.Tag = "itemNo"; + this.lb_itemNo.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_itemNo.Text = "瀹㈡埛缂栫爜锛�"; + // + //txt_itemNo + // + this.txt_itemNo.Location = new System.Drawing.Point(330, 20); + this.txt_itemNo.Name = "lb_itemNo"; + this.txt_itemNo.Size = new System.Drawing.Size(150, 21); + this.txt_itemNo.TabIndex = 211; + this.txt_itemNo.Tag = "itemNo"; + this.txt_itemNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Options.UseFont = true; + this.gv_itemNo.FieldName = "itemNo"; + this.gv_itemNo.Caption = "瀹㈡埛缂栫爜"; + this.gv_itemNo.MinWidth = 25; + this.gv_itemNo.Visible = true; + this.gv_itemNo.Width = 94; + this.gv_itemNo.OptionsColumn.AllowEdit = false; + this.gv_itemNo.VisibleIndex = 0; + + // + //lb_guid + // + this.lb_guid.Location = new System.Drawing.Point(20, 20); + this.lb_guid.Name = "lb_guid"; + this.lb_guid.Size = new System.Drawing.Size(150, 21); + this.lb_guid.TabIndex = 210; + this.lb_guid.Tag = "guid"; + this.lb_guid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_guid.Text = "guid锛�"; + // + //txt_guid + // + this.txt_guid.Location = new System.Drawing.Point(80, 20); + this.txt_guid.Name = "lb_guid"; + this.txt_guid.Size = new System.Drawing.Size(150, 21); + this.txt_guid.TabIndex = 210; + this.txt_guid.Tag = "guid"; + this.txt_guid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Options.UseFont = true; + this.gv_guid.FieldName = "guid"; + this.gv_guid.Caption = "guid"; + this.gv_guid.MinWidth = 25; + this.gv_guid.Visible = true; + this.gv_guid.Width = 94; + this.gv_guid.OptionsColumn.AllowEdit = false; + this.gv_guid.VisibleIndex = 0; + + this.toolBarMenu1 = new Gs.DevApp.UserControl.ToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.PageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // toolBarMenu1 + // + this.toolBarMenu1.actions = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 531); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_guid,this.gv_itemNo,this.gv_factory,this.gv_fullName,this.gv_simpleName,this.gv_engName,this.gv_address,this.gv_land,this.gv_conPeople,this.gv_conTel,this.gv_conFax,this.gv_createTime,this.gv_createBy,this.gv_lastUpdateTime,this.gv_lastUpdateBy,this.gv_remark,this.gv_saleGuid,this.gv_isStatus}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 531); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.RowsCount = 50; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(76, 20); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(585, 426); + this.panel1.TabIndex = 1; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(61, 388); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(112, 388); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + // + // category1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1128, 682); + this.Controls.Add(this.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + //BQAddControltoMContainer + this.panel1.Controls.Add(this.lb_isStatus); + this.panel1.Controls.Add(this.txt_isStatus); + + this.panel1.Controls.Add(this.lb_saleGuid); + this.panel1.Controls.Add(this.txt_saleGuid); + + this.panel1.Controls.Add(this.lb_remark); + this.panel1.Controls.Add(this.txt_remark); + + this.panel1.Controls.Add(this.lb_lastUpdateBy); + this.panel1.Controls.Add(this.txt_lastUpdateBy); + + this.panel1.Controls.Add(this.lb_lastUpdateTime); + this.panel1.Controls.Add(this.txt_lastUpdateTime); + + this.panel1.Controls.Add(this.lb_createBy); + this.panel1.Controls.Add(this.txt_createBy); + + this.panel1.Controls.Add(this.lb_createTime); + this.panel1.Controls.Add(this.txt_createTime); + + this.panel1.Controls.Add(this.lb_conFax); + this.panel1.Controls.Add(this.txt_conFax); + + this.panel1.Controls.Add(this.lb_conTel); + this.panel1.Controls.Add(this.txt_conTel); + + this.panel1.Controls.Add(this.lb_conPeople); + this.panel1.Controls.Add(this.txt_conPeople); + + this.panel1.Controls.Add(this.lb_land); + this.panel1.Controls.Add(this.txt_land); + + this.panel1.Controls.Add(this.lb_address); + this.panel1.Controls.Add(this.txt_address); + + this.panel1.Controls.Add(this.lb_engName); + this.panel1.Controls.Add(this.txt_engName); + + this.panel1.Controls.Add(this.lb_simpleName); + this.panel1.Controls.Add(this.txt_simpleName); + + this.panel1.Controls.Add(this.lb_fullName); + this.panel1.Controls.Add(this.txt_fullName); + + this.panel1.Controls.Add(this.lb_factory); + this.panel1.Controls.Add(this.txt_factory); + + this.panel1.Controls.Add(this.lb_itemNo); + this.panel1.Controls.Add(this.txt_itemNo); + + this.panel1.Controls.Add(this.lb_guid); + this.panel1.Controls.Add(this.txt_guid); + + this.Name = "category1"; + this.Text = ""; + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + } + #endregion + private UserControl.ToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.PageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + //BQCreateConrolObejct + private DevExpress.XtraEditors.LabelControl lb_isStatus; + private DevExpress.XtraEditors.TextEdit txt_isStatus; + private DevExpress.XtraGrid.Columns.GridColumn gv_isStatus; + + private DevExpress.XtraEditors.LabelControl lb_saleGuid; + private DevExpress.XtraEditors.TextEdit txt_saleGuid; + private DevExpress.XtraGrid.Columns.GridColumn gv_saleGuid; + + private DevExpress.XtraEditors.LabelControl lb_remark; + private DevExpress.XtraEditors.TextEdit txt_remark; + private DevExpress.XtraGrid.Columns.GridColumn gv_remark; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateBy; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateBy; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateTime; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateTime; + + private DevExpress.XtraEditors.LabelControl lb_createBy; + private DevExpress.XtraEditors.TextEdit txt_createBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; + + private DevExpress.XtraEditors.LabelControl lb_createTime; + private DevExpress.XtraEditors.TextEdit txt_createTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_createTime; + + private DevExpress.XtraEditors.LabelControl lb_conFax; + private DevExpress.XtraEditors.TextEdit txt_conFax; + private DevExpress.XtraGrid.Columns.GridColumn gv_conFax; + + private DevExpress.XtraEditors.LabelControl lb_conTel; + private DevExpress.XtraEditors.TextEdit txt_conTel; + private DevExpress.XtraGrid.Columns.GridColumn gv_conTel; + + private DevExpress.XtraEditors.LabelControl lb_conPeople; + private DevExpress.XtraEditors.TextEdit txt_conPeople; + private DevExpress.XtraGrid.Columns.GridColumn gv_conPeople; + + private DevExpress.XtraEditors.LabelControl lb_land; + private DevExpress.XtraEditors.TextEdit txt_land; + private DevExpress.XtraGrid.Columns.GridColumn gv_land; + + private DevExpress.XtraEditors.LabelControl lb_address; + private DevExpress.XtraEditors.TextEdit txt_address; + private DevExpress.XtraGrid.Columns.GridColumn gv_address; + + private DevExpress.XtraEditors.LabelControl lb_engName; + private DevExpress.XtraEditors.TextEdit txt_engName; + private DevExpress.XtraGrid.Columns.GridColumn gv_engName; + + private DevExpress.XtraEditors.LabelControl lb_simpleName; + private DevExpress.XtraEditors.TextEdit txt_simpleName; + private DevExpress.XtraGrid.Columns.GridColumn gv_simpleName; + + private DevExpress.XtraEditors.LabelControl lb_fullName; + private DevExpress.XtraEditors.TextEdit txt_fullName; + private DevExpress.XtraGrid.Columns.GridColumn gv_fullName; + + private DevExpress.XtraEditors.LabelControl lb_factory; + private DevExpress.XtraEditors.TextEdit txt_factory; + private DevExpress.XtraGrid.Columns.GridColumn gv_factory; + + private DevExpress.XtraEditors.LabelControl lb_itemNo; + private DevExpress.XtraEditors.TextEdit txt_itemNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_itemNo; + + private DevExpress.XtraEditors.LabelControl lb_guid; + private DevExpress.XtraEditors.TextEdit txt_guid; + private DevExpress.XtraGrid.Columns.GridColumn gv_guid; + + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.cs new file mode 100644 index 0000000..6397c2e --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmCustomer.cs @@ -0,0 +1,267 @@ +锘縰sing DevExpress.XtraEditors; +using DevExpress.XtraGrid.Views.Base; +using DevExpress.XtraGrid.Views.Grid; +using DevExpress.XtraGrid.Views.Grid.ViewInfo; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm.BasicData +{ + public partial class FrmCustomer : DevExpress.XtraEditors.XtraForm + { + public FrmCustomer() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + pageBar1.PagerEvent += PageBar1_PagerEvent; + getPageList(1, UtilityHelper.GetPageSize()); + } + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) + { + //// 鑾峰彇GridView缁勪欢 + //GridView view = sender as GridView; + //// 纭繚view涓嶄负null + //if (view == null) return; + //// 鑾峰彇搴旂敤鐨勭瓫閫夊櫒淇℃伅 + //string filter = view.ActiveFilterString; + //MessageBox.Show(filter); + //getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + GridHitInfo info = gridView1.CalcHitInfo(e.Location); + if (info.InRow) + { + GridView view = info.View as GridView; + if (view != null) + { + DataRow row = view.GetDataRow(info.RowHandle); + if (row != null) + { + string rowGuid = (row["guid"].ToString()); + getModel(rowGuid, false, 999); + } + } + } + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + /// <summary> + /// 鏌ヨ浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) + { + Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns); + frm.UpdateParent += Frm_UpdateParent; + frm.ShowDialog(); + } + /// <summary> + /// 鏌ヨ鍥炶皟 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) + { + string strWhere = e.Data; + MessageBox.Show(strWhere); + } + + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + } + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + dr["userName"].ToString() + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + var _obj = new + { + guidList = dr["guid"].ToString(),//涓诲缓 + }; + string strJson = ""; + try + { + strJson = UtilityHelper.HttpPost("", "User/DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(dr["guid"].ToString(), true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 1); + lbGuid.Text = ""; + UtilityHelper.CleanValue(this.panel1.Controls, true); + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + var _obj = new + { + guid = lbGuid.Text.Trim(),//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "User/EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnable(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "createTime", "asc", "", ""); + string json = JsonConvert.SerializeObject(pgq); + try + { + string strReturn = UtilityHelper.HttpPost("", "Customer/GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + int dddd = dd.rtnData.pages;//鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RowsCount = pageSize;//姣忛〉鏄剧ず + pageBar1.setTxt(); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.ChangeTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "Customer/GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} + diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.Designer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.Designer.cs new file mode 100644 index 0000000..816de21 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.Designer.cs @@ -0,0 +1,630 @@ +锘� +namespace Gs.DevApp.DevFrm.BasicData +{ + partial class FrmDepartment + { + + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + //BQSetControlObject + this.lb_remark = new DevExpress.XtraEditors.LabelControl(); + this.txt_remark = new DevExpress.XtraEditors.TextEdit(); + this.gv_remark = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_isStatus = new DevExpress.XtraEditors.LabelControl(); + this.txt_isStatus = new DevExpress.XtraEditors.TextEdit(); + this.gv_isStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_createTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_createTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_createBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_createBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_fameGuid = new DevExpress.XtraEditors.LabelControl(); + this.txt_fameGuid = new DevExpress.XtraEditors.TextEdit(); + this.gv_fameGuid = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_departmentName = new DevExpress.XtraEditors.LabelControl(); + this.txt_departmentName = new DevExpress.XtraEditors.TextEdit(); + this.gv_departmentName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_factory = new DevExpress.XtraEditors.LabelControl(); + this.txt_factory = new DevExpress.XtraEditors.TextEdit(); + this.gv_factory = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_itemNo = new DevExpress.XtraEditors.LabelControl(); + this.txt_itemNo = new DevExpress.XtraEditors.TextEdit(); + this.gv_itemNo = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_guid = new DevExpress.XtraEditors.LabelControl(); + this.txt_guid = new DevExpress.XtraEditors.TextEdit(); + this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn(); + + //BQSetControlInfo + // + //lb_remark + // + this.lb_remark.Location = new System.Drawing.Point(520, 84); + this.lb_remark.Name = "lb_remark"; + this.lb_remark.Size = new System.Drawing.Size(150, 21); + this.lb_remark.TabIndex = 235; + this.lb_remark.Tag = "remark"; + this.lb_remark.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_remark.Text = "remark锛�"; + // + //txt_remark + // + this.txt_remark.Location = new System.Drawing.Point(580, 84); + this.txt_remark.Name = "lb_remark"; + this.txt_remark.Size = new System.Drawing.Size(150, 21); + this.txt_remark.TabIndex = 235; + this.txt_remark.Tag = "remark"; + this.txt_remark.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Options.UseFont = true; + this.gv_remark.FieldName = "remark"; + this.gv_remark.Caption = "remark"; + this.gv_remark.MinWidth = 25; + this.gv_remark.Visible = true; + this.gv_remark.Width = 94; + this.gv_remark.OptionsColumn.AllowEdit = false; + this.gv_remark.VisibleIndex = 0; + + // + //lb_isStatus + // + this.lb_isStatus.Location = new System.Drawing.Point(270, 84); + this.lb_isStatus.Name = "lb_isStatus"; + this.lb_isStatus.Size = new System.Drawing.Size(150, 21); + this.lb_isStatus.TabIndex = 231; + this.lb_isStatus.Tag = "isStatus"; + this.lb_isStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_isStatus.Text = "isStatus锛�"; + // + //txt_isStatus + // + this.txt_isStatus.Location = new System.Drawing.Point(330, 84); + this.txt_isStatus.Name = "lb_isStatus"; + this.txt_isStatus.Size = new System.Drawing.Size(150, 21); + this.txt_isStatus.TabIndex = 231; + this.txt_isStatus.Tag = "isStatus"; + this.txt_isStatus.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Options.UseFont = true; + this.gv_isStatus.FieldName = "isStatus"; + this.gv_isStatus.Caption = "isStatus"; + this.gv_isStatus.MinWidth = 25; + this.gv_isStatus.Visible = true; + this.gv_isStatus.Width = 94; + this.gv_isStatus.OptionsColumn.AllowEdit = false; + this.gv_isStatus.VisibleIndex = 0; + + // + //lb_lastUpdateTime + // + this.lb_lastUpdateTime.Location = new System.Drawing.Point(20, 84); + this.lb_lastUpdateTime.Name = "lb_lastUpdateTime"; + this.lb_lastUpdateTime.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateTime.TabIndex = 228; + this.lb_lastUpdateTime.Tag = "lastUpdateTime"; + this.lb_lastUpdateTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateTime.Text = "鏈�鍚庝慨鏀规棩鏈燂細"; + // + //txt_lastUpdateTime + // + this.txt_lastUpdateTime.Location = new System.Drawing.Point(80, 84); + this.txt_lastUpdateTime.Name = "lb_lastUpdateTime"; + this.txt_lastUpdateTime.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateTime.TabIndex = 228; + this.txt_lastUpdateTime.Tag = "lastUpdateTime"; + this.txt_lastUpdateTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTime.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateTime.FieldName = "lastUpdateTime"; + this.gv_lastUpdateTime.Caption = "鏈�鍚庝慨鏀规棩鏈�"; + this.gv_lastUpdateTime.MinWidth = 25; + this.gv_lastUpdateTime.Visible = true; + this.gv_lastUpdateTime.Width = 94; + this.gv_lastUpdateTime.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateTime.VisibleIndex = 0; + + // + //lb_lastUpdateBy + // + this.lb_lastUpdateBy.Location = new System.Drawing.Point(770, 52); + this.lb_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.lb_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateBy.TabIndex = 226; + this.lb_lastUpdateBy.Tag = "lastUpdateBy"; + this.lb_lastUpdateBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateBy.Text = "鏈�鍚庝慨鏀逛汉锛�"; + // + //txt_lastUpdateBy + // + this.txt_lastUpdateBy.Location = new System.Drawing.Point(830, 52); + this.txt_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.txt_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateBy.TabIndex = 226; + this.txt_lastUpdateBy.Tag = "lastUpdateBy"; + this.txt_lastUpdateBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateBy.FieldName = "lastUpdateBy"; + this.gv_lastUpdateBy.Caption = "鏈�鍚庝慨鏀逛汉"; + this.gv_lastUpdateBy.MinWidth = 25; + this.gv_lastUpdateBy.Visible = true; + this.gv_lastUpdateBy.Width = 94; + this.gv_lastUpdateBy.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateBy.VisibleIndex = 0; + + // + //lb_createTime + // + this.lb_createTime.Location = new System.Drawing.Point(520, 52); + this.lb_createTime.Name = "lb_createTime"; + this.lb_createTime.Size = new System.Drawing.Size(150, 21); + this.lb_createTime.TabIndex = 222; + this.lb_createTime.Tag = "createTime"; + this.lb_createTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createTime.Text = "鍒涘缓鏃ユ湡锛�"; + // + //txt_createTime + // + this.txt_createTime.Location = new System.Drawing.Point(580, 52); + this.txt_createTime.Name = "lb_createTime"; + this.txt_createTime.Size = new System.Drawing.Size(150, 21); + this.txt_createTime.TabIndex = 222; + this.txt_createTime.Tag = "createTime"; + this.txt_createTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Options.UseFont = true; + this.gv_createTime.FieldName = "createTime"; + this.gv_createTime.Caption = "鍒涘缓鏃ユ湡"; + this.gv_createTime.MinWidth = 25; + this.gv_createTime.Visible = true; + this.gv_createTime.Width = 94; + this.gv_createTime.OptionsColumn.AllowEdit = false; + this.gv_createTime.VisibleIndex = 0; + + // + //lb_createBy + // + this.lb_createBy.Location = new System.Drawing.Point(270, 52); + this.lb_createBy.Name = "lb_createBy"; + this.lb_createBy.Size = new System.Drawing.Size(150, 21); + this.lb_createBy.TabIndex = 219; + this.lb_createBy.Tag = "createBy"; + this.lb_createBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createBy.Text = "鍒涘缓浜猴細"; + // + //txt_createBy + // + this.txt_createBy.Location = new System.Drawing.Point(330, 52); + this.txt_createBy.Name = "lb_createBy"; + this.txt_createBy.Size = new System.Drawing.Size(150, 21); + this.txt_createBy.TabIndex = 219; + this.txt_createBy.Tag = "createBy"; + this.txt_createBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Options.UseFont = true; + this.gv_createBy.FieldName = "createBy"; + this.gv_createBy.Caption = "鍒涘缓浜�"; + this.gv_createBy.MinWidth = 25; + this.gv_createBy.Visible = true; + this.gv_createBy.Width = 94; + this.gv_createBy.OptionsColumn.AllowEdit = false; + this.gv_createBy.VisibleIndex = 0; + + // + //lb_fameGuid + // + this.lb_fameGuid.Location = new System.Drawing.Point(20, 52); + this.lb_fameGuid.Name = "lb_fameGuid"; + this.lb_fameGuid.Size = new System.Drawing.Size(150, 21); + this.lb_fameGuid.TabIndex = 217; + this.lb_fameGuid.Tag = "fameGuid"; + this.lb_fameGuid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_fameGuid.Text = "涓荤锛�"; + // + //txt_fameGuid + // + this.txt_fameGuid.Location = new System.Drawing.Point(80, 52); + this.txt_fameGuid.Name = "lb_fameGuid"; + this.txt_fameGuid.Size = new System.Drawing.Size(150, 21); + this.txt_fameGuid.TabIndex = 217; + this.txt_fameGuid.Tag = "fameGuid"; + this.txt_fameGuid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_fameGuid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_fameGuid.AppearanceCell.Options.UseFont = true; + this.gv_fameGuid.FieldName = "fameGuid"; + this.gv_fameGuid.Caption = "涓荤"; + this.gv_fameGuid.MinWidth = 25; + this.gv_fameGuid.Visible = true; + this.gv_fameGuid.Width = 94; + this.gv_fameGuid.OptionsColumn.AllowEdit = false; + this.gv_fameGuid.VisibleIndex = 0; + + // + //lb_departmentName + // + this.lb_departmentName.Location = new System.Drawing.Point(770, 20); + this.lb_departmentName.Name = "lb_departmentName"; + this.lb_departmentName.Size = new System.Drawing.Size(150, 21); + this.lb_departmentName.TabIndex = 216; + this.lb_departmentName.Tag = "departmentName"; + this.lb_departmentName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_departmentName.Text = "閮ㄩ棬鍚嶇О锛�"; + // + //txt_departmentName + // + this.txt_departmentName.Location = new System.Drawing.Point(830, 20); + this.txt_departmentName.Name = "lb_departmentName"; + this.txt_departmentName.Size = new System.Drawing.Size(150, 21); + this.txt_departmentName.TabIndex = 216; + this.txt_departmentName.Tag = "departmentName"; + this.txt_departmentName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_departmentName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_departmentName.AppearanceCell.Options.UseFont = true; + this.gv_departmentName.FieldName = "departmentName"; + this.gv_departmentName.Caption = "閮ㄩ棬鍚嶇О"; + this.gv_departmentName.MinWidth = 25; + this.gv_departmentName.Visible = true; + this.gv_departmentName.Width = 94; + this.gv_departmentName.OptionsColumn.AllowEdit = false; + this.gv_departmentName.VisibleIndex = 0; + + // + //lb_factory + // + this.lb_factory.Location = new System.Drawing.Point(520, 20); + this.lb_factory.Name = "lb_factory"; + this.lb_factory.Size = new System.Drawing.Size(150, 21); + this.lb_factory.TabIndex = 213; + this.lb_factory.Tag = "factory"; + this.lb_factory.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_factory.Text = "宸ュ巶缂栫爜锛�"; + // + //txt_factory + // + this.txt_factory.Location = new System.Drawing.Point(580, 20); + this.txt_factory.Name = "lb_factory"; + this.txt_factory.Size = new System.Drawing.Size(150, 21); + this.txt_factory.TabIndex = 213; + this.txt_factory.Tag = "factory"; + this.txt_factory.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_factory.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_factory.AppearanceCell.Options.UseFont = true; + this.gv_factory.FieldName = "factory"; + this.gv_factory.Caption = "宸ュ巶缂栫爜"; + this.gv_factory.MinWidth = 25; + this.gv_factory.Visible = true; + this.gv_factory.Width = 94; + this.gv_factory.OptionsColumn.AllowEdit = false; + this.gv_factory.VisibleIndex = 0; + + // + //lb_itemNo + // + this.lb_itemNo.Location = new System.Drawing.Point(270, 20); + this.lb_itemNo.Name = "lb_itemNo"; + this.lb_itemNo.Size = new System.Drawing.Size(150, 21); + this.lb_itemNo.TabIndex = 211; + this.lb_itemNo.Tag = "itemNo"; + this.lb_itemNo.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_itemNo.Text = "缂栧彿锛�"; + // + //txt_itemNo + // + this.txt_itemNo.Location = new System.Drawing.Point(330, 20); + this.txt_itemNo.Name = "lb_itemNo"; + this.txt_itemNo.Size = new System.Drawing.Size(150, 21); + this.txt_itemNo.TabIndex = 211; + this.txt_itemNo.Tag = "itemNo"; + this.txt_itemNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Options.UseFont = true; + this.gv_itemNo.FieldName = "itemNo"; + this.gv_itemNo.Caption = "缂栧彿"; + this.gv_itemNo.MinWidth = 25; + this.gv_itemNo.Visible = true; + this.gv_itemNo.Width = 94; + this.gv_itemNo.OptionsColumn.AllowEdit = false; + this.gv_itemNo.VisibleIndex = 0; + + // + //lb_guid + // + this.lb_guid.Location = new System.Drawing.Point(20, 20); + this.lb_guid.Name = "lb_guid"; + this.lb_guid.Size = new System.Drawing.Size(150, 21); + this.lb_guid.TabIndex = 210; + this.lb_guid.Tag = "guid"; + this.lb_guid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_guid.Text = "guid锛�"; + // + //txt_guid + // + this.txt_guid.Location = new System.Drawing.Point(80, 20); + this.txt_guid.Name = "lb_guid"; + this.txt_guid.Size = new System.Drawing.Size(150, 21); + this.txt_guid.TabIndex = 210; + this.txt_guid.Tag = "guid"; + this.txt_guid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Options.UseFont = true; + this.gv_guid.FieldName = "guid"; + this.gv_guid.Caption = "guid"; + this.gv_guid.MinWidth = 25; + this.gv_guid.Visible = true; + this.gv_guid.Width = 94; + this.gv_guid.OptionsColumn.AllowEdit = false; + this.gv_guid.VisibleIndex = 0; + + this.toolBarMenu1 = new Gs.DevApp.UserControl.ToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.PageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // toolBarMenu1 + // + this.toolBarMenu1.actions = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 531); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_guid,this.gv_itemNo,this.gv_factory,this.gv_departmentName,this.gv_fameGuid,this.gv_createBy,this.gv_createTime,this.gv_lastUpdateBy,this.gv_lastUpdateTime,this.gv_isStatus,this.gv_remark}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 531); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.RowsCount = 50; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(76, 20); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(585, 426); + this.panel1.TabIndex = 1; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(61, 388); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(112, 388); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + // + // category1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1128, 682); + this.Controls.Add(this.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + //BQAddControltoMContainer + this.panel1.Controls.Add(this.lb_remark); + this.panel1.Controls.Add(this.txt_remark); + + this.panel1.Controls.Add(this.lb_isStatus); + this.panel1.Controls.Add(this.txt_isStatus); + + this.panel1.Controls.Add(this.lb_lastUpdateTime); + this.panel1.Controls.Add(this.txt_lastUpdateTime); + + this.panel1.Controls.Add(this.lb_lastUpdateBy); + this.panel1.Controls.Add(this.txt_lastUpdateBy); + + this.panel1.Controls.Add(this.lb_createTime); + this.panel1.Controls.Add(this.txt_createTime); + + this.panel1.Controls.Add(this.lb_createBy); + this.panel1.Controls.Add(this.txt_createBy); + + this.panel1.Controls.Add(this.lb_fameGuid); + this.panel1.Controls.Add(this.txt_fameGuid); + + this.panel1.Controls.Add(this.lb_departmentName); + this.panel1.Controls.Add(this.txt_departmentName); + + this.panel1.Controls.Add(this.lb_factory); + this.panel1.Controls.Add(this.txt_factory); + + this.panel1.Controls.Add(this.lb_itemNo); + this.panel1.Controls.Add(this.txt_itemNo); + + this.panel1.Controls.Add(this.lb_guid); + this.panel1.Controls.Add(this.txt_guid); + + this.Name = "category1"; + this.Text = ""; + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + } + #endregion + private UserControl.ToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.PageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + //BQCreateConrolObejct + private DevExpress.XtraEditors.LabelControl lb_remark; + private DevExpress.XtraEditors.TextEdit txt_remark; + private DevExpress.XtraGrid.Columns.GridColumn gv_remark; + + private DevExpress.XtraEditors.LabelControl lb_isStatus; + private DevExpress.XtraEditors.TextEdit txt_isStatus; + private DevExpress.XtraGrid.Columns.GridColumn gv_isStatus; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateTime; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateTime; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateBy; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateBy; + + private DevExpress.XtraEditors.LabelControl lb_createTime; + private DevExpress.XtraEditors.TextEdit txt_createTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_createTime; + + private DevExpress.XtraEditors.LabelControl lb_createBy; + private DevExpress.XtraEditors.TextEdit txt_createBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; + + private DevExpress.XtraEditors.LabelControl lb_fameGuid; + private DevExpress.XtraEditors.TextEdit txt_fameGuid; + private DevExpress.XtraGrid.Columns.GridColumn gv_fameGuid; + + private DevExpress.XtraEditors.LabelControl lb_departmentName; + private DevExpress.XtraEditors.TextEdit txt_departmentName; + private DevExpress.XtraGrid.Columns.GridColumn gv_departmentName; + + private DevExpress.XtraEditors.LabelControl lb_factory; + private DevExpress.XtraEditors.TextEdit txt_factory; + private DevExpress.XtraGrid.Columns.GridColumn gv_factory; + + private DevExpress.XtraEditors.LabelControl lb_itemNo; + private DevExpress.XtraEditors.TextEdit txt_itemNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_itemNo; + + private DevExpress.XtraEditors.LabelControl lb_guid; + private DevExpress.XtraEditors.TextEdit txt_guid; + private DevExpress.XtraGrid.Columns.GridColumn gv_guid; + + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.cs new file mode 100644 index 0000000..afde7b4 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDepartment.cs @@ -0,0 +1,267 @@ +锘縰sing DevExpress.XtraEditors; +using DevExpress.XtraGrid.Views.Base; +using DevExpress.XtraGrid.Views.Grid; +using DevExpress.XtraGrid.Views.Grid.ViewInfo; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm.BasicData +{ + public partial class FrmDepartment : DevExpress.XtraEditors.XtraForm + { + public FrmDepartment() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + pageBar1.PagerEvent += PageBar1_PagerEvent; + getPageList(1, UtilityHelper.GetPageSize()); + } + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) + { + //// 鑾峰彇GridView缁勪欢 + //GridView view = sender as GridView; + //// 纭繚view涓嶄负null + //if (view == null) return; + //// 鑾峰彇搴旂敤鐨勭瓫閫夊櫒淇℃伅 + //string filter = view.ActiveFilterString; + //MessageBox.Show(filter); + //getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + GridHitInfo info = gridView1.CalcHitInfo(e.Location); + if (info.InRow) + { + GridView view = info.View as GridView; + if (view != null) + { + DataRow row = view.GetDataRow(info.RowHandle); + if (row != null) + { + string rowGuid = (row["guid"].ToString()); + getModel(rowGuid, false, 999); + } + } + } + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + /// <summary> + /// 鏌ヨ浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) + { + Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns); + frm.UpdateParent += Frm_UpdateParent; + frm.ShowDialog(); + } + /// <summary> + /// 鏌ヨ鍥炶皟 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) + { + string strWhere = e.Data; + MessageBox.Show(strWhere); + } + + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + } + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + dr["userName"].ToString() + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + var _obj = new + { + guidList = dr["guid"].ToString(),//涓诲缓 + }; + string strJson = ""; + try + { + strJson = UtilityHelper.HttpPost("", "User/DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(dr["guid"].ToString(), true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 1); + lbGuid.Text = ""; + UtilityHelper.CleanValue(this.panel1.Controls, true); + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + var _obj = new + { + guid = lbGuid.Text.Trim(),//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "User/EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnable(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "createTime", "asc", "", ""); + string json = JsonConvert.SerializeObject(pgq); + try + { + string strReturn = UtilityHelper.HttpPost("", "DepartMent/GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + int dddd = dd.rtnData.pages;//鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RowsCount = pageSize;//姣忛〉鏄剧ず + pageBar1.setTxt(); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.ChangeTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "DepartMent/GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} + diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.Designer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.Designer.cs new file mode 100644 index 0000000..ba1e17d --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.Designer.cs @@ -0,0 +1,591 @@ +锘� +namespace Gs.DevApp.DevFrm.BasicData +{ + partial class FrmDictionary + { + + + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + //BQSetControlObject + this.lb_lastUpdateTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_remark = new DevExpress.XtraEditors.LabelControl(); + this.txt_remark = new DevExpress.XtraEditors.TextEdit(); + this.gv_remark = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_createTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_createTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_createBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_createBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_isStatus = new DevExpress.XtraEditors.LabelControl(); + this.txt_isStatus = new DevExpress.XtraEditors.TextEdit(); + this.gv_isStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_category = new DevExpress.XtraEditors.LabelControl(); + this.txt_category = new DevExpress.XtraEditors.TextEdit(); + this.gv_category = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_name = new DevExpress.XtraEditors.LabelControl(); + this.txt_name = new DevExpress.XtraEditors.TextEdit(); + this.gv_name = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_itemNo = new DevExpress.XtraEditors.LabelControl(); + this.txt_itemNo = new DevExpress.XtraEditors.TextEdit(); + this.gv_itemNo = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_guid = new DevExpress.XtraEditors.LabelControl(); + this.txt_guid = new DevExpress.XtraEditors.TextEdit(); + this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn(); + + //BQSetControlInfo + // + //lb_lastUpdateTime + // + this.lb_lastUpdateTime.Location = new System.Drawing.Point(270, 84); + this.lb_lastUpdateTime.Name = "lb_lastUpdateTime"; + this.lb_lastUpdateTime.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateTime.TabIndex = 231; + this.lb_lastUpdateTime.Tag = "lastUpdateTime"; + this.lb_lastUpdateTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateTime.Text = "鏇存柊鏃堕棿锛�"; + // + //txt_lastUpdateTime + // + this.txt_lastUpdateTime.Location = new System.Drawing.Point(330, 84); + this.txt_lastUpdateTime.Name = "lb_lastUpdateTime"; + this.txt_lastUpdateTime.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateTime.TabIndex = 231; + this.txt_lastUpdateTime.Tag = "lastUpdateTime"; + this.txt_lastUpdateTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTime.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateTime.FieldName = "lastUpdateTime"; + this.gv_lastUpdateTime.Caption = "鏇存柊鏃堕棿"; + this.gv_lastUpdateTime.MinWidth = 25; + this.gv_lastUpdateTime.Visible = true; + this.gv_lastUpdateTime.Width = 94; + this.gv_lastUpdateTime.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateTime.VisibleIndex = 0; + + // + //lb_lastUpdateBy + // + this.lb_lastUpdateBy.Location = new System.Drawing.Point(20, 84); + this.lb_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.lb_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateBy.TabIndex = 228; + this.lb_lastUpdateBy.Tag = "lastUpdateBy"; + this.lb_lastUpdateBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateBy.Text = "鏇存柊鑰咃細"; + // + //txt_lastUpdateBy + // + this.txt_lastUpdateBy.Location = new System.Drawing.Point(80, 84); + this.txt_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.txt_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateBy.TabIndex = 228; + this.txt_lastUpdateBy.Tag = "lastUpdateBy"; + this.txt_lastUpdateBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateBy.FieldName = "lastUpdateBy"; + this.gv_lastUpdateBy.Caption = "鏇存柊鑰�"; + this.gv_lastUpdateBy.MinWidth = 25; + this.gv_lastUpdateBy.Visible = true; + this.gv_lastUpdateBy.Width = 94; + this.gv_lastUpdateBy.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateBy.VisibleIndex = 0; + + // + //lb_remark + // + this.lb_remark.Location = new System.Drawing.Point(770, 52); + this.lb_remark.Name = "lb_remark"; + this.lb_remark.Size = new System.Drawing.Size(150, 21); + this.lb_remark.TabIndex = 226; + this.lb_remark.Tag = "remark"; + this.lb_remark.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_remark.Text = "澶囨敞锛�"; + // + //txt_remark + // + this.txt_remark.Location = new System.Drawing.Point(830, 52); + this.txt_remark.Name = "lb_remark"; + this.txt_remark.Size = new System.Drawing.Size(150, 21); + this.txt_remark.TabIndex = 226; + this.txt_remark.Tag = "remark"; + this.txt_remark.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Options.UseFont = true; + this.gv_remark.FieldName = "remark"; + this.gv_remark.Caption = "澶囨敞"; + this.gv_remark.MinWidth = 25; + this.gv_remark.Visible = true; + this.gv_remark.Width = 94; + this.gv_remark.OptionsColumn.AllowEdit = false; + this.gv_remark.VisibleIndex = 0; + + // + //lb_createTime + // + this.lb_createTime.Location = new System.Drawing.Point(520, 52); + this.lb_createTime.Name = "lb_createTime"; + this.lb_createTime.Size = new System.Drawing.Size(150, 21); + this.lb_createTime.TabIndex = 222; + this.lb_createTime.Tag = "createTime"; + this.lb_createTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createTime.Text = "寤虹珛鏃堕棿锛�"; + // + //txt_createTime + // + this.txt_createTime.Location = new System.Drawing.Point(580, 52); + this.txt_createTime.Name = "lb_createTime"; + this.txt_createTime.Size = new System.Drawing.Size(150, 21); + this.txt_createTime.TabIndex = 222; + this.txt_createTime.Tag = "createTime"; + this.txt_createTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Options.UseFont = true; + this.gv_createTime.FieldName = "createTime"; + this.gv_createTime.Caption = "寤虹珛鏃堕棿"; + this.gv_createTime.MinWidth = 25; + this.gv_createTime.Visible = true; + this.gv_createTime.Width = 94; + this.gv_createTime.OptionsColumn.AllowEdit = false; + this.gv_createTime.VisibleIndex = 0; + + // + //lb_createBy + // + this.lb_createBy.Location = new System.Drawing.Point(270, 52); + this.lb_createBy.Name = "lb_createBy"; + this.lb_createBy.Size = new System.Drawing.Size(150, 21); + this.lb_createBy.TabIndex = 219; + this.lb_createBy.Tag = "createBy"; + this.lb_createBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createBy.Text = "寤虹珛鑰咃細"; + // + //txt_createBy + // + this.txt_createBy.Location = new System.Drawing.Point(330, 52); + this.txt_createBy.Name = "lb_createBy"; + this.txt_createBy.Size = new System.Drawing.Size(150, 21); + this.txt_createBy.TabIndex = 219; + this.txt_createBy.Tag = "createBy"; + this.txt_createBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Options.UseFont = true; + this.gv_createBy.FieldName = "createBy"; + this.gv_createBy.Caption = "寤虹珛鑰�"; + this.gv_createBy.MinWidth = 25; + this.gv_createBy.Visible = true; + this.gv_createBy.Width = 94; + this.gv_createBy.OptionsColumn.AllowEdit = false; + this.gv_createBy.VisibleIndex = 0; + + // + //lb_isStatus + // + this.lb_isStatus.Location = new System.Drawing.Point(20, 52); + this.lb_isStatus.Name = "lb_isStatus"; + this.lb_isStatus.Size = new System.Drawing.Size(150, 21); + this.lb_isStatus.TabIndex = 217; + this.lb_isStatus.Tag = "isStatus"; + this.lb_isStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_isStatus.Text = "鐘舵�侊細"; + // + //txt_isStatus + // + this.txt_isStatus.Location = new System.Drawing.Point(80, 52); + this.txt_isStatus.Name = "lb_isStatus"; + this.txt_isStatus.Size = new System.Drawing.Size(150, 21); + this.txt_isStatus.TabIndex = 217; + this.txt_isStatus.Tag = "isStatus"; + this.txt_isStatus.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Options.UseFont = true; + this.gv_isStatus.FieldName = "isStatus"; + this.gv_isStatus.Caption = "鐘舵��"; + this.gv_isStatus.MinWidth = 25; + this.gv_isStatus.Visible = true; + this.gv_isStatus.Width = 94; + this.gv_isStatus.OptionsColumn.AllowEdit = false; + this.gv_isStatus.VisibleIndex = 0; + + // + //lb_category + // + this.lb_category.Location = new System.Drawing.Point(770, 20); + this.lb_category.Name = "lb_category"; + this.lb_category.Size = new System.Drawing.Size(150, 21); + this.lb_category.TabIndex = 216; + this.lb_category.Tag = "category"; + this.lb_category.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_category.Text = "绫诲埆锛�"; + // + //txt_category + // + this.txt_category.Location = new System.Drawing.Point(830, 20); + this.txt_category.Name = "lb_category"; + this.txt_category.Size = new System.Drawing.Size(150, 21); + this.txt_category.TabIndex = 216; + this.txt_category.Tag = "category"; + this.txt_category.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_category.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_category.AppearanceCell.Options.UseFont = true; + this.gv_category.FieldName = "category"; + this.gv_category.Caption = "绫诲埆"; + this.gv_category.MinWidth = 25; + this.gv_category.Visible = true; + this.gv_category.Width = 94; + this.gv_category.OptionsColumn.AllowEdit = false; + this.gv_category.VisibleIndex = 0; + + // + //lb_name + // + this.lb_name.Location = new System.Drawing.Point(520, 20); + this.lb_name.Name = "lb_name"; + this.lb_name.Size = new System.Drawing.Size(150, 21); + this.lb_name.TabIndex = 213; + this.lb_name.Tag = "name"; + this.lb_name.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_name.Text = "鍚嶇О锛�"; + // + //txt_name + // + this.txt_name.Location = new System.Drawing.Point(580, 20); + this.txt_name.Name = "lb_name"; + this.txt_name.Size = new System.Drawing.Size(150, 21); + this.txt_name.TabIndex = 213; + this.txt_name.Tag = "name"; + this.txt_name.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_name.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_name.AppearanceCell.Options.UseFont = true; + this.gv_name.FieldName = "name"; + this.gv_name.Caption = "鍚嶇О"; + this.gv_name.MinWidth = 25; + this.gv_name.Visible = true; + this.gv_name.Width = 94; + this.gv_name.OptionsColumn.AllowEdit = false; + this.gv_name.VisibleIndex = 0; + + // + //lb_itemNo + // + this.lb_itemNo.Location = new System.Drawing.Point(270, 20); + this.lb_itemNo.Name = "lb_itemNo"; + this.lb_itemNo.Size = new System.Drawing.Size(150, 21); + this.lb_itemNo.TabIndex = 211; + this.lb_itemNo.Tag = "itemNo"; + this.lb_itemNo.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_itemNo.Text = "缂栧彿锛�"; + // + //txt_itemNo + // + this.txt_itemNo.Location = new System.Drawing.Point(330, 20); + this.txt_itemNo.Name = "lb_itemNo"; + this.txt_itemNo.Size = new System.Drawing.Size(150, 21); + this.txt_itemNo.TabIndex = 211; + this.txt_itemNo.Tag = "itemNo"; + this.txt_itemNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Options.UseFont = true; + this.gv_itemNo.FieldName = "itemNo"; + this.gv_itemNo.Caption = "缂栧彿"; + this.gv_itemNo.MinWidth = 25; + this.gv_itemNo.Visible = true; + this.gv_itemNo.Width = 94; + this.gv_itemNo.OptionsColumn.AllowEdit = false; + this.gv_itemNo.VisibleIndex = 0; + + // + //lb_guid + // + this.lb_guid.Location = new System.Drawing.Point(20, 20); + this.lb_guid.Name = "lb_guid"; + this.lb_guid.Size = new System.Drawing.Size(150, 21); + this.lb_guid.TabIndex = 210; + this.lb_guid.Tag = "guid"; + this.lb_guid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_guid.Text = "guid锛�"; + // + //txt_guid + // + this.txt_guid.Location = new System.Drawing.Point(80, 20); + this.txt_guid.Name = "lb_guid"; + this.txt_guid.Size = new System.Drawing.Size(150, 21); + this.txt_guid.TabIndex = 210; + this.txt_guid.Tag = "guid"; + this.txt_guid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Options.UseFont = true; + this.gv_guid.FieldName = "guid"; + this.gv_guid.Caption = "guid"; + this.gv_guid.MinWidth = 25; + this.gv_guid.Visible = true; + this.gv_guid.Width = 94; + this.gv_guid.OptionsColumn.AllowEdit = false; + this.gv_guid.VisibleIndex = 0; + + this.toolBarMenu1 = new Gs.DevApp.UserControl.ToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.PageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // toolBarMenu1 + // + this.toolBarMenu1.actions = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 531); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_guid,this.gv_itemNo,this.gv_name,this.gv_category,this.gv_isStatus,this.gv_createBy,this.gv_createTime,this.gv_remark,this.gv_lastUpdateBy,this.gv_lastUpdateTime}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 531); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.RowsCount = 50; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(76, 20); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(585, 426); + this.panel1.TabIndex = 1; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(61, 388); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(112, 388); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + // + // category1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1128, 682); + this.Controls.Add(this.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + //BQAddControltoMContainer + this.panel1.Controls.Add(this.lb_lastUpdateTime); + this.panel1.Controls.Add(this.txt_lastUpdateTime); + + this.panel1.Controls.Add(this.lb_lastUpdateBy); + this.panel1.Controls.Add(this.txt_lastUpdateBy); + + this.panel1.Controls.Add(this.lb_remark); + this.panel1.Controls.Add(this.txt_remark); + + this.panel1.Controls.Add(this.lb_createTime); + this.panel1.Controls.Add(this.txt_createTime); + + this.panel1.Controls.Add(this.lb_createBy); + this.panel1.Controls.Add(this.txt_createBy); + + this.panel1.Controls.Add(this.lb_isStatus); + this.panel1.Controls.Add(this.txt_isStatus); + + this.panel1.Controls.Add(this.lb_category); + this.panel1.Controls.Add(this.txt_category); + + this.panel1.Controls.Add(this.lb_name); + this.panel1.Controls.Add(this.txt_name); + + this.panel1.Controls.Add(this.lb_itemNo); + this.panel1.Controls.Add(this.txt_itemNo); + + this.panel1.Controls.Add(this.lb_guid); + this.panel1.Controls.Add(this.txt_guid); + + this.Name = "category1"; + this.Text = ""; + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + } + #endregion + private UserControl.ToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.PageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + //BQCreateConrolObejct + private DevExpress.XtraEditors.LabelControl lb_lastUpdateTime; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateTime; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateBy; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateBy; + + private DevExpress.XtraEditors.LabelControl lb_remark; + private DevExpress.XtraEditors.TextEdit txt_remark; + private DevExpress.XtraGrid.Columns.GridColumn gv_remark; + + private DevExpress.XtraEditors.LabelControl lb_createTime; + private DevExpress.XtraEditors.TextEdit txt_createTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_createTime; + + private DevExpress.XtraEditors.LabelControl lb_createBy; + private DevExpress.XtraEditors.TextEdit txt_createBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; + + private DevExpress.XtraEditors.LabelControl lb_isStatus; + private DevExpress.XtraEditors.TextEdit txt_isStatus; + private DevExpress.XtraGrid.Columns.GridColumn gv_isStatus; + + private DevExpress.XtraEditors.LabelControl lb_category; + private DevExpress.XtraEditors.TextEdit txt_category; + private DevExpress.XtraGrid.Columns.GridColumn gv_category; + + private DevExpress.XtraEditors.LabelControl lb_name; + private DevExpress.XtraEditors.TextEdit txt_name; + private DevExpress.XtraGrid.Columns.GridColumn gv_name; + + private DevExpress.XtraEditors.LabelControl lb_itemNo; + private DevExpress.XtraEditors.TextEdit txt_itemNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_itemNo; + + private DevExpress.XtraEditors.LabelControl lb_guid; + private DevExpress.XtraEditors.TextEdit txt_guid; + private DevExpress.XtraGrid.Columns.GridColumn gv_guid; + + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.cs new file mode 100644 index 0000000..7e1ede8 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmDictionary.cs @@ -0,0 +1,267 @@ +锘縰sing DevExpress.XtraEditors; +using DevExpress.XtraGrid.Views.Base; +using DevExpress.XtraGrid.Views.Grid; +using DevExpress.XtraGrid.Views.Grid.ViewInfo; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm.BasicData +{ + public partial class FrmDictionary : DevExpress.XtraEditors.XtraForm + { + public FrmDictionary() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + pageBar1.PagerEvent += PageBar1_PagerEvent; + getPageList(1, UtilityHelper.GetPageSize()); + } + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) + { + //// 鑾峰彇GridView缁勪欢 + //GridView view = sender as GridView; + //// 纭繚view涓嶄负null + //if (view == null) return; + //// 鑾峰彇搴旂敤鐨勭瓫閫夊櫒淇℃伅 + //string filter = view.ActiveFilterString; + //MessageBox.Show(filter); + //getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + GridHitInfo info = gridView1.CalcHitInfo(e.Location); + if (info.InRow) + { + GridView view = info.View as GridView; + if (view != null) + { + DataRow row = view.GetDataRow(info.RowHandle); + if (row != null) + { + string rowGuid = (row["guid"].ToString()); + getModel(rowGuid, false, 999); + } + } + } + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + /// <summary> + /// 鏌ヨ浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) + { + Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns); + frm.UpdateParent += Frm_UpdateParent; + frm.ShowDialog(); + } + /// <summary> + /// 鏌ヨ鍥炶皟 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) + { + string strWhere = e.Data; + MessageBox.Show(strWhere); + } + + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + } + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + dr["userName"].ToString() + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + var _obj = new + { + guidList = dr["guid"].ToString(),//涓诲缓 + }; + string strJson = ""; + try + { + strJson = UtilityHelper.HttpPost("", "User/DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(dr["guid"].ToString(), true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 1); + lbGuid.Text = ""; + UtilityHelper.CleanValue(this.panel1.Controls, true); + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + var _obj = new + { + guid = lbGuid.Text.Trim(),//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "User/EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnable(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "createTime", "asc", "", ""); + string json = JsonConvert.SerializeObject(pgq); + try + { + string strReturn = UtilityHelper.HttpPost("", "Dictionary/GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + int dddd = dd.rtnData.pages;//鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RowsCount = pageSize;//姣忛〉鏄剧ず + pageBar1.setTxt(); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.ChangeTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "Dictionary/GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} + diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.Designer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.Designer.cs new file mode 100644 index 0000000..483b67e --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.Designer.cs @@ -0,0 +1,749 @@ +锘� +namespace Gs.DevApp.DevFrm.BasicData +{ + partial class FrmStaff + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + //BQSetControlObject + this.lb_lineNumber = new DevExpress.XtraEditors.LabelControl(); + this.txt_lineNumber = new DevExpress.XtraEditors.TextEdit(); + this.gv_lineNumber = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_isStatus = new DevExpress.XtraEditors.LabelControl(); + this.txt_isStatus = new DevExpress.XtraEditors.TextEdit(); + this.gv_isStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_remark = new DevExpress.XtraEditors.LabelControl(); + this.txt_remark = new DevExpress.XtraEditors.TextEdit(); + this.gv_remark = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_startTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_startTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_startTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateTtime = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateTtime = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateTtime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_createTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_createTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_createBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_createBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_phoneNumber = new DevExpress.XtraEditors.LabelControl(); + this.txt_phoneNumber = new DevExpress.XtraEditors.TextEdit(); + this.gv_phoneNumber = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_positionCode = new DevExpress.XtraEditors.LabelControl(); + this.txt_positionCode = new DevExpress.XtraEditors.TextEdit(); + this.gv_positionCode = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_departmentGuid = new DevExpress.XtraEditors.LabelControl(); + this.txt_departmentGuid = new DevExpress.XtraEditors.TextEdit(); + this.gv_departmentGuid = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_staffName = new DevExpress.XtraEditors.LabelControl(); + this.txt_staffName = new DevExpress.XtraEditors.TextEdit(); + this.gv_staffName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_itemNo = new DevExpress.XtraEditors.LabelControl(); + this.txt_itemNo = new DevExpress.XtraEditors.TextEdit(); + this.gv_itemNo = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_guid = new DevExpress.XtraEditors.LabelControl(); + this.txt_guid = new DevExpress.XtraEditors.TextEdit(); + this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn(); + + //BQSetControlInfo + // + //lb_lineNumber + // + this.lb_lineNumber.Location = new System.Drawing.Point(270, 116); + this.lb_lineNumber.Name = "lb_lineNumber"; + this.lb_lineNumber.Size = new System.Drawing.Size(150, 21); + this.lb_lineNumber.TabIndex = 247; + this.lb_lineNumber.Tag = "lineNumber"; + this.lb_lineNumber.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lineNumber.Text = "鐢熶骇绾匡細"; + // + //txt_lineNumber + // + this.txt_lineNumber.Location = new System.Drawing.Point(330, 116); + this.txt_lineNumber.Name = "lb_lineNumber"; + this.txt_lineNumber.Size = new System.Drawing.Size(150, 21); + this.txt_lineNumber.TabIndex = 247; + this.txt_lineNumber.Tag = "lineNumber"; + this.txt_lineNumber.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lineNumber.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lineNumber.AppearanceCell.Options.UseFont = true; + this.gv_lineNumber.FieldName = "lineNumber"; + this.gv_lineNumber.Caption = "鐢熶骇绾�"; + this.gv_lineNumber.MinWidth = 25; + this.gv_lineNumber.Visible = true; + this.gv_lineNumber.Width = 94; + this.gv_lineNumber.OptionsColumn.AllowEdit = false; + this.gv_lineNumber.VisibleIndex = 0; + + // + //lb_isStatus + // + this.lb_isStatus.Location = new System.Drawing.Point(20, 116); + this.lb_isStatus.Name = "lb_isStatus"; + this.lb_isStatus.Size = new System.Drawing.Size(150, 21); + this.lb_isStatus.TabIndex = 243; + this.lb_isStatus.Tag = "isStatus"; + this.lb_isStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_isStatus.Text = "鐘舵�侊細"; + // + //txt_isStatus + // + this.txt_isStatus.Location = new System.Drawing.Point(80, 116); + this.txt_isStatus.Name = "lb_isStatus"; + this.txt_isStatus.Size = new System.Drawing.Size(150, 21); + this.txt_isStatus.TabIndex = 243; + this.txt_isStatus.Tag = "isStatus"; + this.txt_isStatus.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Options.UseFont = true; + this.gv_isStatus.FieldName = "isStatus"; + this.gv_isStatus.Caption = "鐘舵��"; + this.gv_isStatus.MinWidth = 25; + this.gv_isStatus.Visible = true; + this.gv_isStatus.Width = 94; + this.gv_isStatus.OptionsColumn.AllowEdit = false; + this.gv_isStatus.VisibleIndex = 0; + + // + //lb_remark + // + this.lb_remark.Location = new System.Drawing.Point(770, 84); + this.lb_remark.Name = "lb_remark"; + this.lb_remark.Size = new System.Drawing.Size(150, 21); + this.lb_remark.TabIndex = 240; + this.lb_remark.Tag = "remark"; + this.lb_remark.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_remark.Text = "澶囨敞锛�"; + // + //txt_remark + // + this.txt_remark.Location = new System.Drawing.Point(830, 84); + this.txt_remark.Name = "lb_remark"; + this.txt_remark.Size = new System.Drawing.Size(150, 21); + this.txt_remark.TabIndex = 240; + this.txt_remark.Tag = "remark"; + this.txt_remark.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Options.UseFont = true; + this.gv_remark.FieldName = "remark"; + this.gv_remark.Caption = "澶囨敞"; + this.gv_remark.MinWidth = 25; + this.gv_remark.Visible = true; + this.gv_remark.Width = 94; + this.gv_remark.OptionsColumn.AllowEdit = false; + this.gv_remark.VisibleIndex = 0; + + // + //lb_startTime + // + this.lb_startTime.Location = new System.Drawing.Point(520, 84); + this.lb_startTime.Name = "lb_startTime"; + this.lb_startTime.Size = new System.Drawing.Size(150, 21); + this.lb_startTime.TabIndex = 235; + this.lb_startTime.Tag = "startTime"; + this.lb_startTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_startTime.Text = "鍏ヨ亴鏃堕棿锛�"; + // + //txt_startTime + // + this.txt_startTime.Location = new System.Drawing.Point(580, 84); + this.txt_startTime.Name = "lb_startTime"; + this.txt_startTime.Size = new System.Drawing.Size(150, 21); + this.txt_startTime.TabIndex = 235; + this.txt_startTime.Tag = "startTime"; + this.txt_startTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_startTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_startTime.AppearanceCell.Options.UseFont = true; + this.gv_startTime.FieldName = "startTime"; + this.gv_startTime.Caption = "鍏ヨ亴鏃堕棿"; + this.gv_startTime.MinWidth = 25; + this.gv_startTime.Visible = true; + this.gv_startTime.Width = 94; + this.gv_startTime.OptionsColumn.AllowEdit = false; + this.gv_startTime.VisibleIndex = 0; + + // + //lb_lastUpdateBy + // + this.lb_lastUpdateBy.Location = new System.Drawing.Point(270, 84); + this.lb_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.lb_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateBy.TabIndex = 231; + this.lb_lastUpdateBy.Tag = "lastUpdateBy"; + this.lb_lastUpdateBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateBy.Text = "鏇存柊鑰咃細"; + // + //txt_lastUpdateBy + // + this.txt_lastUpdateBy.Location = new System.Drawing.Point(330, 84); + this.txt_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.txt_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateBy.TabIndex = 231; + this.txt_lastUpdateBy.Tag = "lastUpdateBy"; + this.txt_lastUpdateBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateBy.FieldName = "lastUpdateBy"; + this.gv_lastUpdateBy.Caption = "鏇存柊鑰�"; + this.gv_lastUpdateBy.MinWidth = 25; + this.gv_lastUpdateBy.Visible = true; + this.gv_lastUpdateBy.Width = 94; + this.gv_lastUpdateBy.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateBy.VisibleIndex = 0; + + // + //lb_lastUpdateTtime + // + this.lb_lastUpdateTtime.Location = new System.Drawing.Point(20, 84); + this.lb_lastUpdateTtime.Name = "lb_lastUpdateTtime"; + this.lb_lastUpdateTtime.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateTtime.TabIndex = 228; + this.lb_lastUpdateTtime.Tag = "lastUpdateTtime"; + this.lb_lastUpdateTtime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateTtime.Text = "鏈�杩戞洿鏂版椂闂达細"; + // + //txt_lastUpdateTtime + // + this.txt_lastUpdateTtime.Location = new System.Drawing.Point(80, 84); + this.txt_lastUpdateTtime.Name = "lb_lastUpdateTtime"; + this.txt_lastUpdateTtime.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateTtime.TabIndex = 228; + this.txt_lastUpdateTtime.Tag = "lastUpdateTtime"; + this.txt_lastUpdateTtime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTtime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTtime.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateTtime.FieldName = "lastUpdateTtime"; + this.gv_lastUpdateTtime.Caption = "鏈�杩戞洿鏂版椂闂�"; + this.gv_lastUpdateTtime.MinWidth = 25; + this.gv_lastUpdateTtime.Visible = true; + this.gv_lastUpdateTtime.Width = 94; + this.gv_lastUpdateTtime.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateTtime.VisibleIndex = 0; + + // + //lb_createTime + // + this.lb_createTime.Location = new System.Drawing.Point(770, 52); + this.lb_createTime.Name = "lb_createTime"; + this.lb_createTime.Size = new System.Drawing.Size(150, 21); + this.lb_createTime.TabIndex = 226; + this.lb_createTime.Tag = "createTime"; + this.lb_createTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createTime.Text = "寤虹珛鏃堕棿锛�"; + // + //txt_createTime + // + this.txt_createTime.Location = new System.Drawing.Point(830, 52); + this.txt_createTime.Name = "lb_createTime"; + this.txt_createTime.Size = new System.Drawing.Size(150, 21); + this.txt_createTime.TabIndex = 226; + this.txt_createTime.Tag = "createTime"; + this.txt_createTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Options.UseFont = true; + this.gv_createTime.FieldName = "createTime"; + this.gv_createTime.Caption = "寤虹珛鏃堕棿"; + this.gv_createTime.MinWidth = 25; + this.gv_createTime.Visible = true; + this.gv_createTime.Width = 94; + this.gv_createTime.OptionsColumn.AllowEdit = false; + this.gv_createTime.VisibleIndex = 0; + + // + //lb_createBy + // + this.lb_createBy.Location = new System.Drawing.Point(520, 52); + this.lb_createBy.Name = "lb_createBy"; + this.lb_createBy.Size = new System.Drawing.Size(150, 21); + this.lb_createBy.TabIndex = 222; + this.lb_createBy.Tag = "createBy"; + this.lb_createBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createBy.Text = "寤虹珛鑰咃細"; + // + //txt_createBy + // + this.txt_createBy.Location = new System.Drawing.Point(580, 52); + this.txt_createBy.Name = "lb_createBy"; + this.txt_createBy.Size = new System.Drawing.Size(150, 21); + this.txt_createBy.TabIndex = 222; + this.txt_createBy.Tag = "createBy"; + this.txt_createBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Options.UseFont = true; + this.gv_createBy.FieldName = "createBy"; + this.gv_createBy.Caption = "寤虹珛鑰�"; + this.gv_createBy.MinWidth = 25; + this.gv_createBy.Visible = true; + this.gv_createBy.Width = 94; + this.gv_createBy.OptionsColumn.AllowEdit = false; + this.gv_createBy.VisibleIndex = 0; + + // + //lb_phoneNumber + // + this.lb_phoneNumber.Location = new System.Drawing.Point(270, 52); + this.lb_phoneNumber.Name = "lb_phoneNumber"; + this.lb_phoneNumber.Size = new System.Drawing.Size(150, 21); + this.lb_phoneNumber.TabIndex = 219; + this.lb_phoneNumber.Tag = "phoneNumber"; + this.lb_phoneNumber.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_phoneNumber.Text = "鎵嬫満鍙凤細"; + // + //txt_phoneNumber + // + this.txt_phoneNumber.Location = new System.Drawing.Point(330, 52); + this.txt_phoneNumber.Name = "lb_phoneNumber"; + this.txt_phoneNumber.Size = new System.Drawing.Size(150, 21); + this.txt_phoneNumber.TabIndex = 219; + this.txt_phoneNumber.Tag = "phoneNumber"; + this.txt_phoneNumber.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_phoneNumber.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_phoneNumber.AppearanceCell.Options.UseFont = true; + this.gv_phoneNumber.FieldName = "phoneNumber"; + this.gv_phoneNumber.Caption = "鎵嬫満鍙�"; + this.gv_phoneNumber.MinWidth = 25; + this.gv_phoneNumber.Visible = true; + this.gv_phoneNumber.Width = 94; + this.gv_phoneNumber.OptionsColumn.AllowEdit = false; + this.gv_phoneNumber.VisibleIndex = 0; + + // + //lb_positionCode + // + this.lb_positionCode.Location = new System.Drawing.Point(20, 52); + this.lb_positionCode.Name = "lb_positionCode"; + this.lb_positionCode.Size = new System.Drawing.Size(150, 21); + this.lb_positionCode.TabIndex = 217; + this.lb_positionCode.Tag = "positionCode"; + this.lb_positionCode.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_positionCode.Text = "鑱屼綅缂栧彿锛�"; + // + //txt_positionCode + // + this.txt_positionCode.Location = new System.Drawing.Point(80, 52); + this.txt_positionCode.Name = "lb_positionCode"; + this.txt_positionCode.Size = new System.Drawing.Size(150, 21); + this.txt_positionCode.TabIndex = 217; + this.txt_positionCode.Tag = "positionCode"; + this.txt_positionCode.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_positionCode.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_positionCode.AppearanceCell.Options.UseFont = true; + this.gv_positionCode.FieldName = "positionCode"; + this.gv_positionCode.Caption = "鑱屼綅缂栧彿"; + this.gv_positionCode.MinWidth = 25; + this.gv_positionCode.Visible = true; + this.gv_positionCode.Width = 94; + this.gv_positionCode.OptionsColumn.AllowEdit = false; + this.gv_positionCode.VisibleIndex = 0; + + // + //lb_departmentGuid + // + this.lb_departmentGuid.Location = new System.Drawing.Point(770, 20); + this.lb_departmentGuid.Name = "lb_departmentGuid"; + this.lb_departmentGuid.Size = new System.Drawing.Size(150, 21); + this.lb_departmentGuid.TabIndex = 216; + this.lb_departmentGuid.Tag = "departmentGuid"; + this.lb_departmentGuid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_departmentGuid.Text = "閮ㄩ棬锛�"; + // + //txt_departmentGuid + // + this.txt_departmentGuid.Location = new System.Drawing.Point(830, 20); + this.txt_departmentGuid.Name = "lb_departmentGuid"; + this.txt_departmentGuid.Size = new System.Drawing.Size(150, 21); + this.txt_departmentGuid.TabIndex = 216; + this.txt_departmentGuid.Tag = "departmentGuid"; + this.txt_departmentGuid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_departmentGuid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_departmentGuid.AppearanceCell.Options.UseFont = true; + this.gv_departmentGuid.FieldName = "departmentGuid"; + this.gv_departmentGuid.Caption = "閮ㄩ棬"; + this.gv_departmentGuid.MinWidth = 25; + this.gv_departmentGuid.Visible = true; + this.gv_departmentGuid.Width = 94; + this.gv_departmentGuid.OptionsColumn.AllowEdit = false; + this.gv_departmentGuid.VisibleIndex = 0; + + // + //lb_staffName + // + this.lb_staffName.Location = new System.Drawing.Point(520, 20); + this.lb_staffName.Name = "lb_staffName"; + this.lb_staffName.Size = new System.Drawing.Size(150, 21); + this.lb_staffName.TabIndex = 213; + this.lb_staffName.Tag = "staffName"; + this.lb_staffName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_staffName.Text = "鍛樺伐濮撳悕锛�"; + // + //txt_staffName + // + this.txt_staffName.Location = new System.Drawing.Point(580, 20); + this.txt_staffName.Name = "lb_staffName"; + this.txt_staffName.Size = new System.Drawing.Size(150, 21); + this.txt_staffName.TabIndex = 213; + this.txt_staffName.Tag = "staffName"; + this.txt_staffName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_staffName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_staffName.AppearanceCell.Options.UseFont = true; + this.gv_staffName.FieldName = "staffName"; + this.gv_staffName.Caption = "鍛樺伐濮撳悕"; + this.gv_staffName.MinWidth = 25; + this.gv_staffName.Visible = true; + this.gv_staffName.Width = 94; + this.gv_staffName.OptionsColumn.AllowEdit = false; + this.gv_staffName.VisibleIndex = 0; + + // + //lb_itemNo + // + this.lb_itemNo.Location = new System.Drawing.Point(270, 20); + this.lb_itemNo.Name = "lb_itemNo"; + this.lb_itemNo.Size = new System.Drawing.Size(150, 21); + this.lb_itemNo.TabIndex = 211; + this.lb_itemNo.Tag = "itemNo"; + this.lb_itemNo.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_itemNo.Text = "鍛樺伐缂栫爜锛�"; + // + //txt_itemNo + // + this.txt_itemNo.Location = new System.Drawing.Point(330, 20); + this.txt_itemNo.Name = "lb_itemNo"; + this.txt_itemNo.Size = new System.Drawing.Size(150, 21); + this.txt_itemNo.TabIndex = 211; + this.txt_itemNo.Tag = "itemNo"; + this.txt_itemNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Options.UseFont = true; + this.gv_itemNo.FieldName = "itemNo"; + this.gv_itemNo.Caption = "鍛樺伐缂栫爜"; + this.gv_itemNo.MinWidth = 25; + this.gv_itemNo.Visible = true; + this.gv_itemNo.Width = 94; + this.gv_itemNo.OptionsColumn.AllowEdit = false; + this.gv_itemNo.VisibleIndex = 0; + + // + //lb_guid + // + this.lb_guid.Location = new System.Drawing.Point(20, 20); + this.lb_guid.Name = "lb_guid"; + this.lb_guid.Size = new System.Drawing.Size(150, 21); + this.lb_guid.TabIndex = 210; + this.lb_guid.Tag = "guid"; + this.lb_guid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_guid.Text = "guid锛�"; + // + //txt_guid + // + this.txt_guid.Location = new System.Drawing.Point(80, 20); + this.txt_guid.Name = "lb_guid"; + this.txt_guid.Size = new System.Drawing.Size(150, 21); + this.txt_guid.TabIndex = 210; + this.txt_guid.Tag = "guid"; + this.txt_guid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Options.UseFont = true; + this.gv_guid.FieldName = "guid"; + this.gv_guid.Caption = "guid"; + this.gv_guid.MinWidth = 25; + this.gv_guid.Visible = true; + this.gv_guid.Width = 94; + this.gv_guid.OptionsColumn.AllowEdit = false; + this.gv_guid.VisibleIndex = 0; + + this.toolBarMenu1 = new Gs.DevApp.UserControl.ToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.PageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // toolBarMenu1 + // + this.toolBarMenu1.actions = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 531); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_guid,this.gv_itemNo,this.gv_staffName,this.gv_departmentGuid,this.gv_positionCode,this.gv_phoneNumber,this.gv_createBy,this.gv_createTime,this.gv_lastUpdateTtime,this.gv_lastUpdateBy,this.gv_startTime,this.gv_remark,this.gv_isStatus,this.gv_lineNumber}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 531); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.RowsCount = 50; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(76, 20); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(585, 426); + this.panel1.TabIndex = 1; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(61, 388); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(112, 388); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + // + // category1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1128, 682); + this.Controls.Add(this.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + //BQAddControltoMContainer + this.panel1.Controls.Add(this.lb_lineNumber); + this.panel1.Controls.Add(this.txt_lineNumber); + + this.panel1.Controls.Add(this.lb_isStatus); + this.panel1.Controls.Add(this.txt_isStatus); + + this.panel1.Controls.Add(this.lb_remark); + this.panel1.Controls.Add(this.txt_remark); + + this.panel1.Controls.Add(this.lb_startTime); + this.panel1.Controls.Add(this.txt_startTime); + + this.panel1.Controls.Add(this.lb_lastUpdateBy); + this.panel1.Controls.Add(this.txt_lastUpdateBy); + + this.panel1.Controls.Add(this.lb_lastUpdateTtime); + this.panel1.Controls.Add(this.txt_lastUpdateTtime); + + this.panel1.Controls.Add(this.lb_createTime); + this.panel1.Controls.Add(this.txt_createTime); + + this.panel1.Controls.Add(this.lb_createBy); + this.panel1.Controls.Add(this.txt_createBy); + + this.panel1.Controls.Add(this.lb_phoneNumber); + this.panel1.Controls.Add(this.txt_phoneNumber); + + this.panel1.Controls.Add(this.lb_positionCode); + this.panel1.Controls.Add(this.txt_positionCode); + + this.panel1.Controls.Add(this.lb_departmentGuid); + this.panel1.Controls.Add(this.txt_departmentGuid); + + this.panel1.Controls.Add(this.lb_staffName); + this.panel1.Controls.Add(this.txt_staffName); + + this.panel1.Controls.Add(this.lb_itemNo); + this.panel1.Controls.Add(this.txt_itemNo); + + this.panel1.Controls.Add(this.lb_guid); + this.panel1.Controls.Add(this.txt_guid); + + this.Name = "category1"; + this.Text = ""; + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + } + #endregion + private UserControl.ToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.PageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + //BQCreateConrolObejct + private DevExpress.XtraEditors.LabelControl lb_lineNumber; + private DevExpress.XtraEditors.TextEdit txt_lineNumber; + private DevExpress.XtraGrid.Columns.GridColumn gv_lineNumber; + + private DevExpress.XtraEditors.LabelControl lb_isStatus; + private DevExpress.XtraEditors.TextEdit txt_isStatus; + private DevExpress.XtraGrid.Columns.GridColumn gv_isStatus; + + private DevExpress.XtraEditors.LabelControl lb_remark; + private DevExpress.XtraEditors.TextEdit txt_remark; + private DevExpress.XtraGrid.Columns.GridColumn gv_remark; + + private DevExpress.XtraEditors.LabelControl lb_startTime; + private DevExpress.XtraEditors.TextEdit txt_startTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_startTime; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateBy; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateBy; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateTtime; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateTtime; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateTtime; + + private DevExpress.XtraEditors.LabelControl lb_createTime; + private DevExpress.XtraEditors.TextEdit txt_createTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_createTime; + + private DevExpress.XtraEditors.LabelControl lb_createBy; + private DevExpress.XtraEditors.TextEdit txt_createBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; + + private DevExpress.XtraEditors.LabelControl lb_phoneNumber; + private DevExpress.XtraEditors.TextEdit txt_phoneNumber; + private DevExpress.XtraGrid.Columns.GridColumn gv_phoneNumber; + + private DevExpress.XtraEditors.LabelControl lb_positionCode; + private DevExpress.XtraEditors.TextEdit txt_positionCode; + private DevExpress.XtraGrid.Columns.GridColumn gv_positionCode; + + private DevExpress.XtraEditors.LabelControl lb_departmentGuid; + private DevExpress.XtraEditors.TextEdit txt_departmentGuid; + private DevExpress.XtraGrid.Columns.GridColumn gv_departmentGuid; + + private DevExpress.XtraEditors.LabelControl lb_staffName; + private DevExpress.XtraEditors.TextEdit txt_staffName; + private DevExpress.XtraGrid.Columns.GridColumn gv_staffName; + + private DevExpress.XtraEditors.LabelControl lb_itemNo; + private DevExpress.XtraEditors.TextEdit txt_itemNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_itemNo; + + private DevExpress.XtraEditors.LabelControl lb_guid; + private DevExpress.XtraEditors.TextEdit txt_guid; + private DevExpress.XtraGrid.Columns.GridColumn gv_guid; + + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.cs new file mode 100644 index 0000000..a752f7d --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmStaff.cs @@ -0,0 +1,267 @@ +锘縰sing DevExpress.XtraEditors; +using DevExpress.XtraGrid.Views.Base; +using DevExpress.XtraGrid.Views.Grid; +using DevExpress.XtraGrid.Views.Grid.ViewInfo; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm.BasicData +{ + public partial class FrmStaff : DevExpress.XtraEditors.XtraForm + { + public FrmStaff() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + pageBar1.PagerEvent += PageBar1_PagerEvent; + getPageList(1, UtilityHelper.GetPageSize()); + } + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) + { + //// 鑾峰彇GridView缁勪欢 + //GridView view = sender as GridView; + //// 纭繚view涓嶄负null + //if (view == null) return; + //// 鑾峰彇搴旂敤鐨勭瓫閫夊櫒淇℃伅 + //string filter = view.ActiveFilterString; + //MessageBox.Show(filter); + //getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + GridHitInfo info = gridView1.CalcHitInfo(e.Location); + if (info.InRow) + { + GridView view = info.View as GridView; + if (view != null) + { + DataRow row = view.GetDataRow(info.RowHandle); + if (row != null) + { + string rowGuid = (row["guid"].ToString()); + getModel(rowGuid, false, 999); + } + } + } + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + /// <summary> + /// 鏌ヨ浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) + { + Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns); + frm.UpdateParent += Frm_UpdateParent; + frm.ShowDialog(); + } + /// <summary> + /// 鏌ヨ鍥炶皟 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) + { + string strWhere = e.Data; + MessageBox.Show(strWhere); + } + + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + } + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + dr["userName"].ToString() + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + var _obj = new + { + guidList = dr["guid"].ToString(),//涓诲缓 + }; + string strJson = ""; + try + { + strJson = UtilityHelper.HttpPost("", "User/DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(dr["guid"].ToString(), true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 1); + lbGuid.Text = ""; + UtilityHelper.CleanValue(this.panel1.Controls, true); + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + var _obj = new + { + guid = lbGuid.Text.Trim(),//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "User/EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnable(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "createTime", "asc", "", ""); + string json = JsonConvert.SerializeObject(pgq); + try + { + string strReturn = UtilityHelper.HttpPost("", "Staff/GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + int dddd = dd.rtnData.pages;//鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RowsCount = pageSize;//姣忛〉鏄剧ず + pageBar1.setTxt(); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.ChangeTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "Staff/GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} + diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.Designer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.Designer.cs new file mode 100644 index 0000000..cf7b2ef --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.Designer.cs @@ -0,0 +1,871 @@ +锘� +namespace Gs.DevApp.DevFrm.BasicData +{ + partial class FrmSupplier + { + + + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + //BQSetControlObject + this.lb_t3 = new DevExpress.XtraEditors.LabelControl(); + this.txt_t3 = new DevExpress.XtraEditors.TextEdit(); + this.gv_t3 = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_t2 = new DevExpress.XtraEditors.LabelControl(); + this.txt_t2 = new DevExpress.XtraEditors.TextEdit(); + this.gv_t2 = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_t1 = new DevExpress.XtraEditors.LabelControl(); + this.txt_t1 = new DevExpress.XtraEditors.TextEdit(); + this.gv_t1 = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_lastUpdateTtime = new DevExpress.XtraEditors.LabelControl(); + this.txt_lastUpdateTtime = new DevExpress.XtraEditors.TextEdit(); + this.gv_lastUpdateTtime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createBy = new DevExpress.XtraEditors.LabelControl(); + this.txt_createBy = new DevExpress.XtraEditors.TextEdit(); + this.gv_createBy = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_createTime = new DevExpress.XtraEditors.LabelControl(); + this.txt_createTime = new DevExpress.XtraEditors.TextEdit(); + this.gv_createTime = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_conFax = new DevExpress.XtraEditors.LabelControl(); + this.txt_conFax = new DevExpress.XtraEditors.TextEdit(); + this.gv_conFax = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_conTel = new DevExpress.XtraEditors.LabelControl(); + this.txt_conTel = new DevExpress.XtraEditors.TextEdit(); + this.gv_conTel = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_conPeople = new DevExpress.XtraEditors.LabelControl(); + this.txt_conPeople = new DevExpress.XtraEditors.TextEdit(); + this.gv_conPeople = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_isStatus = new DevExpress.XtraEditors.LabelControl(); + this.txt_isStatus = new DevExpress.XtraEditors.TextEdit(); + this.gv_isStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_remark = new DevExpress.XtraEditors.LabelControl(); + this.txt_remark = new DevExpress.XtraEditors.TextEdit(); + this.gv_remark = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_engName = new DevExpress.XtraEditors.LabelControl(); + this.txt_engName = new DevExpress.XtraEditors.TextEdit(); + this.gv_engName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_fullName = new DevExpress.XtraEditors.LabelControl(); + this.txt_fullName = new DevExpress.XtraEditors.TextEdit(); + this.gv_fullName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_simpleName = new DevExpress.XtraEditors.LabelControl(); + this.txt_simpleName = new DevExpress.XtraEditors.TextEdit(); + this.gv_simpleName = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_itemNo = new DevExpress.XtraEditors.LabelControl(); + this.txt_itemNo = new DevExpress.XtraEditors.TextEdit(); + this.gv_itemNo = new DevExpress.XtraGrid.Columns.GridColumn(); + + this.lb_guid = new DevExpress.XtraEditors.LabelControl(); + this.txt_guid = new DevExpress.XtraEditors.TextEdit(); + this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn(); + + //BQSetControlInfo + // + //lb_t3 + // + this.lb_t3.Location = new System.Drawing.Point(20, 148); + this.lb_t3.Name = "lb_t3"; + this.lb_t3.Size = new System.Drawing.Size(150, 21); + this.lb_t3.TabIndex = 262; + this.lb_t3.Tag = "t3"; + this.lb_t3.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_t3.Text = "t3锛�"; + // + //txt_t3 + // + this.txt_t3.Location = new System.Drawing.Point(80, 148); + this.txt_t3.Name = "lb_t3"; + this.txt_t3.Size = new System.Drawing.Size(150, 21); + this.txt_t3.TabIndex = 262; + this.txt_t3.Tag = "t3"; + this.txt_t3.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_t3.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_t3.AppearanceCell.Options.UseFont = true; + this.gv_t3.FieldName = "t3"; + this.gv_t3.Caption = "t3"; + this.gv_t3.MinWidth = 25; + this.gv_t3.Visible = true; + this.gv_t3.Width = 94; + this.gv_t3.OptionsColumn.AllowEdit = false; + this.gv_t3.VisibleIndex = 0; + + // + //lb_t2 + // + this.lb_t2.Location = new System.Drawing.Point(770, 116); + this.lb_t2.Name = "lb_t2"; + this.lb_t2.Size = new System.Drawing.Size(150, 21); + this.lb_t2.TabIndex = 258; + this.lb_t2.Tag = "t2"; + this.lb_t2.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_t2.Text = "t2锛�"; + // + //txt_t2 + // + this.txt_t2.Location = new System.Drawing.Point(830, 116); + this.txt_t2.Name = "lb_t2"; + this.txt_t2.Size = new System.Drawing.Size(150, 21); + this.txt_t2.TabIndex = 258; + this.txt_t2.Tag = "t2"; + this.txt_t2.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_t2.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_t2.AppearanceCell.Options.UseFont = true; + this.gv_t2.FieldName = "t2"; + this.gv_t2.Caption = "t2"; + this.gv_t2.MinWidth = 25; + this.gv_t2.Visible = true; + this.gv_t2.Width = 94; + this.gv_t2.OptionsColumn.AllowEdit = false; + this.gv_t2.VisibleIndex = 0; + + // + //lb_t1 + // + this.lb_t1.Location = new System.Drawing.Point(520, 116); + this.lb_t1.Name = "lb_t1"; + this.lb_t1.Size = new System.Drawing.Size(150, 21); + this.lb_t1.TabIndex = 252; + this.lb_t1.Tag = "t1"; + this.lb_t1.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_t1.Text = "t1锛�"; + // + //txt_t1 + // + this.txt_t1.Location = new System.Drawing.Point(580, 116); + this.txt_t1.Name = "lb_t1"; + this.txt_t1.Size = new System.Drawing.Size(150, 21); + this.txt_t1.TabIndex = 252; + this.txt_t1.Tag = "t1"; + this.txt_t1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_t1.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_t1.AppearanceCell.Options.UseFont = true; + this.gv_t1.FieldName = "t1"; + this.gv_t1.Caption = "t1"; + this.gv_t1.MinWidth = 25; + this.gv_t1.Visible = true; + this.gv_t1.Width = 94; + this.gv_t1.OptionsColumn.AllowEdit = false; + this.gv_t1.VisibleIndex = 0; + + // + //lb_lastUpdateBy + // + this.lb_lastUpdateBy.Location = new System.Drawing.Point(270, 116); + this.lb_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.lb_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateBy.TabIndex = 247; + this.lb_lastUpdateBy.Tag = "lastUpdateBy"; + this.lb_lastUpdateBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateBy.Text = "鏇存柊鑰咃細"; + // + //txt_lastUpdateBy + // + this.txt_lastUpdateBy.Location = new System.Drawing.Point(330, 116); + this.txt_lastUpdateBy.Name = "lb_lastUpdateBy"; + this.txt_lastUpdateBy.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateBy.TabIndex = 247; + this.txt_lastUpdateBy.Tag = "lastUpdateBy"; + this.txt_lastUpdateBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateBy.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateBy.FieldName = "lastUpdateBy"; + this.gv_lastUpdateBy.Caption = "鏇存柊鑰�"; + this.gv_lastUpdateBy.MinWidth = 25; + this.gv_lastUpdateBy.Visible = true; + this.gv_lastUpdateBy.Width = 94; + this.gv_lastUpdateBy.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateBy.VisibleIndex = 0; + + // + //lb_lastUpdateTtime + // + this.lb_lastUpdateTtime.Location = new System.Drawing.Point(20, 116); + this.lb_lastUpdateTtime.Name = "lb_lastUpdateTtime"; + this.lb_lastUpdateTtime.Size = new System.Drawing.Size(150, 21); + this.lb_lastUpdateTtime.TabIndex = 243; + this.lb_lastUpdateTtime.Tag = "lastUpdateTtime"; + this.lb_lastUpdateTtime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_lastUpdateTtime.Text = "鏈�鍚庢洿鏂版椂闂达細"; + // + //txt_lastUpdateTtime + // + this.txt_lastUpdateTtime.Location = new System.Drawing.Point(80, 116); + this.txt_lastUpdateTtime.Name = "lb_lastUpdateTtime"; + this.txt_lastUpdateTtime.Size = new System.Drawing.Size(150, 21); + this.txt_lastUpdateTtime.TabIndex = 243; + this.txt_lastUpdateTtime.Tag = "lastUpdateTtime"; + this.txt_lastUpdateTtime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTtime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_lastUpdateTtime.AppearanceCell.Options.UseFont = true; + this.gv_lastUpdateTtime.FieldName = "lastUpdateTtime"; + this.gv_lastUpdateTtime.Caption = "鏈�鍚庢洿鏂版椂闂�"; + this.gv_lastUpdateTtime.MinWidth = 25; + this.gv_lastUpdateTtime.Visible = true; + this.gv_lastUpdateTtime.Width = 94; + this.gv_lastUpdateTtime.OptionsColumn.AllowEdit = false; + this.gv_lastUpdateTtime.VisibleIndex = 0; + + // + //lb_createBy + // + this.lb_createBy.Location = new System.Drawing.Point(770, 84); + this.lb_createBy.Name = "lb_createBy"; + this.lb_createBy.Size = new System.Drawing.Size(150, 21); + this.lb_createBy.TabIndex = 240; + this.lb_createBy.Tag = "createBy"; + this.lb_createBy.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createBy.Text = "寤虹珛鑰咃細"; + // + //txt_createBy + // + this.txt_createBy.Location = new System.Drawing.Point(830, 84); + this.txt_createBy.Name = "lb_createBy"; + this.txt_createBy.Size = new System.Drawing.Size(150, 21); + this.txt_createBy.TabIndex = 240; + this.txt_createBy.Tag = "createBy"; + this.txt_createBy.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createBy.AppearanceCell.Options.UseFont = true; + this.gv_createBy.FieldName = "createBy"; + this.gv_createBy.Caption = "寤虹珛鑰�"; + this.gv_createBy.MinWidth = 25; + this.gv_createBy.Visible = true; + this.gv_createBy.Width = 94; + this.gv_createBy.OptionsColumn.AllowEdit = false; + this.gv_createBy.VisibleIndex = 0; + + // + //lb_createTime + // + this.lb_createTime.Location = new System.Drawing.Point(520, 84); + this.lb_createTime.Name = "lb_createTime"; + this.lb_createTime.Size = new System.Drawing.Size(150, 21); + this.lb_createTime.TabIndex = 235; + this.lb_createTime.Tag = "createTime"; + this.lb_createTime.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_createTime.Text = "寤虹珛鏃堕棿锛�"; + // + //txt_createTime + // + this.txt_createTime.Location = new System.Drawing.Point(580, 84); + this.txt_createTime.Name = "lb_createTime"; + this.txt_createTime.Size = new System.Drawing.Size(150, 21); + this.txt_createTime.TabIndex = 235; + this.txt_createTime.Tag = "createTime"; + this.txt_createTime.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_createTime.AppearanceCell.Options.UseFont = true; + this.gv_createTime.FieldName = "createTime"; + this.gv_createTime.Caption = "寤虹珛鏃堕棿"; + this.gv_createTime.MinWidth = 25; + this.gv_createTime.Visible = true; + this.gv_createTime.Width = 94; + this.gv_createTime.OptionsColumn.AllowEdit = false; + this.gv_createTime.VisibleIndex = 0; + + // + //lb_conFax + // + this.lb_conFax.Location = new System.Drawing.Point(270, 84); + this.lb_conFax.Name = "lb_conFax"; + this.lb_conFax.Size = new System.Drawing.Size(150, 21); + this.lb_conFax.TabIndex = 231; + this.lb_conFax.Tag = "conFax"; + this.lb_conFax.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_conFax.Text = "鑱旂郴浼犵湡锛�"; + // + //txt_conFax + // + this.txt_conFax.Location = new System.Drawing.Point(330, 84); + this.txt_conFax.Name = "lb_conFax"; + this.txt_conFax.Size = new System.Drawing.Size(150, 21); + this.txt_conFax.TabIndex = 231; + this.txt_conFax.Tag = "conFax"; + this.txt_conFax.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conFax.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conFax.AppearanceCell.Options.UseFont = true; + this.gv_conFax.FieldName = "conFax"; + this.gv_conFax.Caption = "鑱旂郴浼犵湡"; + this.gv_conFax.MinWidth = 25; + this.gv_conFax.Visible = true; + this.gv_conFax.Width = 94; + this.gv_conFax.OptionsColumn.AllowEdit = false; + this.gv_conFax.VisibleIndex = 0; + + // + //lb_conTel + // + this.lb_conTel.Location = new System.Drawing.Point(20, 84); + this.lb_conTel.Name = "lb_conTel"; + this.lb_conTel.Size = new System.Drawing.Size(150, 21); + this.lb_conTel.TabIndex = 228; + this.lb_conTel.Tag = "conTel"; + this.lb_conTel.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_conTel.Text = "鑱旂郴鐢佃瘽锛�"; + // + //txt_conTel + // + this.txt_conTel.Location = new System.Drawing.Point(80, 84); + this.txt_conTel.Name = "lb_conTel"; + this.txt_conTel.Size = new System.Drawing.Size(150, 21); + this.txt_conTel.TabIndex = 228; + this.txt_conTel.Tag = "conTel"; + this.txt_conTel.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conTel.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conTel.AppearanceCell.Options.UseFont = true; + this.gv_conTel.FieldName = "conTel"; + this.gv_conTel.Caption = "鑱旂郴鐢佃瘽"; + this.gv_conTel.MinWidth = 25; + this.gv_conTel.Visible = true; + this.gv_conTel.Width = 94; + this.gv_conTel.OptionsColumn.AllowEdit = false; + this.gv_conTel.VisibleIndex = 0; + + // + //lb_conPeople + // + this.lb_conPeople.Location = new System.Drawing.Point(770, 52); + this.lb_conPeople.Name = "lb_conPeople"; + this.lb_conPeople.Size = new System.Drawing.Size(150, 21); + this.lb_conPeople.TabIndex = 226; + this.lb_conPeople.Tag = "conPeople"; + this.lb_conPeople.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_conPeople.Text = "鑱旂郴浜猴細"; + // + //txt_conPeople + // + this.txt_conPeople.Location = new System.Drawing.Point(830, 52); + this.txt_conPeople.Name = "lb_conPeople"; + this.txt_conPeople.Size = new System.Drawing.Size(150, 21); + this.txt_conPeople.TabIndex = 226; + this.txt_conPeople.Tag = "conPeople"; + this.txt_conPeople.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conPeople.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_conPeople.AppearanceCell.Options.UseFont = true; + this.gv_conPeople.FieldName = "conPeople"; + this.gv_conPeople.Caption = "鑱旂郴浜�"; + this.gv_conPeople.MinWidth = 25; + this.gv_conPeople.Visible = true; + this.gv_conPeople.Width = 94; + this.gv_conPeople.OptionsColumn.AllowEdit = false; + this.gv_conPeople.VisibleIndex = 0; + + // + //lb_isStatus + // + this.lb_isStatus.Location = new System.Drawing.Point(520, 52); + this.lb_isStatus.Name = "lb_isStatus"; + this.lb_isStatus.Size = new System.Drawing.Size(150, 21); + this.lb_isStatus.TabIndex = 222; + this.lb_isStatus.Tag = "isStatus"; + this.lb_isStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_isStatus.Text = "鐘舵�侊細"; + // + //txt_isStatus + // + this.txt_isStatus.Location = new System.Drawing.Point(580, 52); + this.txt_isStatus.Name = "lb_isStatus"; + this.txt_isStatus.Size = new System.Drawing.Size(150, 21); + this.txt_isStatus.TabIndex = 222; + this.txt_isStatus.Tag = "isStatus"; + this.txt_isStatus.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_isStatus.AppearanceCell.Options.UseFont = true; + this.gv_isStatus.FieldName = "isStatus"; + this.gv_isStatus.Caption = "鐘舵��"; + this.gv_isStatus.MinWidth = 25; + this.gv_isStatus.Visible = true; + this.gv_isStatus.Width = 94; + this.gv_isStatus.OptionsColumn.AllowEdit = false; + this.gv_isStatus.VisibleIndex = 0; + + // + //lb_remark + // + this.lb_remark.Location = new System.Drawing.Point(270, 52); + this.lb_remark.Name = "lb_remark"; + this.lb_remark.Size = new System.Drawing.Size(150, 21); + this.lb_remark.TabIndex = 219; + this.lb_remark.Tag = "remark"; + this.lb_remark.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_remark.Text = "澶囨敞锛�"; + // + //txt_remark + // + this.txt_remark.Location = new System.Drawing.Point(330, 52); + this.txt_remark.Name = "lb_remark"; + this.txt_remark.Size = new System.Drawing.Size(150, 21); + this.txt_remark.TabIndex = 219; + this.txt_remark.Tag = "remark"; + this.txt_remark.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_remark.AppearanceCell.Options.UseFont = true; + this.gv_remark.FieldName = "remark"; + this.gv_remark.Caption = "澶囨敞"; + this.gv_remark.MinWidth = 25; + this.gv_remark.Visible = true; + this.gv_remark.Width = 94; + this.gv_remark.OptionsColumn.AllowEdit = false; + this.gv_remark.VisibleIndex = 0; + + // + //lb_engName + // + this.lb_engName.Location = new System.Drawing.Point(20, 52); + this.lb_engName.Name = "lb_engName"; + this.lb_engName.Size = new System.Drawing.Size(150, 21); + this.lb_engName.TabIndex = 217; + this.lb_engName.Tag = "engName"; + this.lb_engName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_engName.Text = "渚涘簲鍟嗚嫳鏂囧悕锛�"; + // + //txt_engName + // + this.txt_engName.Location = new System.Drawing.Point(80, 52); + this.txt_engName.Name = "lb_engName"; + this.txt_engName.Size = new System.Drawing.Size(150, 21); + this.txt_engName.TabIndex = 217; + this.txt_engName.Tag = "engName"; + this.txt_engName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_engName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_engName.AppearanceCell.Options.UseFont = true; + this.gv_engName.FieldName = "engName"; + this.gv_engName.Caption = "渚涘簲鍟嗚嫳鏂囧悕"; + this.gv_engName.MinWidth = 25; + this.gv_engName.Visible = true; + this.gv_engName.Width = 94; + this.gv_engName.OptionsColumn.AllowEdit = false; + this.gv_engName.VisibleIndex = 0; + + // + //lb_fullName + // + this.lb_fullName.Location = new System.Drawing.Point(770, 20); + this.lb_fullName.Name = "lb_fullName"; + this.lb_fullName.Size = new System.Drawing.Size(150, 21); + this.lb_fullName.TabIndex = 216; + this.lb_fullName.Tag = "fullName"; + this.lb_fullName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_fullName.Text = "渚涘簲鍟嗗叏绉帮細"; + // + //txt_fullName + // + this.txt_fullName.Location = new System.Drawing.Point(830, 20); + this.txt_fullName.Name = "lb_fullName"; + this.txt_fullName.Size = new System.Drawing.Size(150, 21); + this.txt_fullName.TabIndex = 216; + this.txt_fullName.Tag = "fullName"; + this.txt_fullName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_fullName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_fullName.AppearanceCell.Options.UseFont = true; + this.gv_fullName.FieldName = "fullName"; + this.gv_fullName.Caption = "渚涘簲鍟嗗叏绉�"; + this.gv_fullName.MinWidth = 25; + this.gv_fullName.Visible = true; + this.gv_fullName.Width = 94; + this.gv_fullName.OptionsColumn.AllowEdit = false; + this.gv_fullName.VisibleIndex = 0; + + // + //lb_simpleName + // + this.lb_simpleName.Location = new System.Drawing.Point(520, 20); + this.lb_simpleName.Name = "lb_simpleName"; + this.lb_simpleName.Size = new System.Drawing.Size(150, 21); + this.lb_simpleName.TabIndex = 213; + this.lb_simpleName.Tag = "simpleName"; + this.lb_simpleName.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_simpleName.Text = "渚涘簲鍟嗙畝绉帮細"; + // + //txt_simpleName + // + this.txt_simpleName.Location = new System.Drawing.Point(580, 20); + this.txt_simpleName.Name = "lb_simpleName"; + this.txt_simpleName.Size = new System.Drawing.Size(150, 21); + this.txt_simpleName.TabIndex = 213; + this.txt_simpleName.Tag = "simpleName"; + this.txt_simpleName.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_simpleName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_simpleName.AppearanceCell.Options.UseFont = true; + this.gv_simpleName.FieldName = "simpleName"; + this.gv_simpleName.Caption = "渚涘簲鍟嗙畝绉�"; + this.gv_simpleName.MinWidth = 25; + this.gv_simpleName.Visible = true; + this.gv_simpleName.Width = 94; + this.gv_simpleName.OptionsColumn.AllowEdit = false; + this.gv_simpleName.VisibleIndex = 0; + + // + //lb_itemNo + // + this.lb_itemNo.Location = new System.Drawing.Point(270, 20); + this.lb_itemNo.Name = "lb_itemNo"; + this.lb_itemNo.Size = new System.Drawing.Size(150, 21); + this.lb_itemNo.TabIndex = 211; + this.lb_itemNo.Tag = "itemNo"; + this.lb_itemNo.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_itemNo.Text = "渚涘簲鍟嗙紪鍙凤細"; + // + //txt_itemNo + // + this.txt_itemNo.Location = new System.Drawing.Point(330, 20); + this.txt_itemNo.Name = "lb_itemNo"; + this.txt_itemNo.Size = new System.Drawing.Size(150, 21); + this.txt_itemNo.TabIndex = 211; + this.txt_itemNo.Tag = "itemNo"; + this.txt_itemNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemNo.AppearanceCell.Options.UseFont = true; + this.gv_itemNo.FieldName = "itemNo"; + this.gv_itemNo.Caption = "渚涘簲鍟嗙紪鍙�"; + this.gv_itemNo.MinWidth = 25; + this.gv_itemNo.Visible = true; + this.gv_itemNo.Width = 94; + this.gv_itemNo.OptionsColumn.AllowEdit = false; + this.gv_itemNo.VisibleIndex = 0; + + // + //lb_guid + // + this.lb_guid.Location = new System.Drawing.Point(20, 20); + this.lb_guid.Name = "lb_guid"; + this.lb_guid.Size = new System.Drawing.Size(150, 21); + this.lb_guid.TabIndex = 210; + this.lb_guid.Tag = "guid"; + this.lb_guid.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_guid.Text = "guid锛�"; + // + //txt_guid + // + this.txt_guid.Location = new System.Drawing.Point(80, 20); + this.txt_guid.Name = "lb_guid"; + this.txt_guid.Size = new System.Drawing.Size(150, 21); + this.txt_guid.TabIndex = 210; + this.txt_guid.Tag = "guid"; + this.txt_guid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Options.UseFont = true; + this.gv_guid.FieldName = "guid"; + this.gv_guid.Caption = "guid"; + this.gv_guid.MinWidth = 25; + this.gv_guid.Visible = true; + this.gv_guid.Width = 94; + this.gv_guid.OptionsColumn.AllowEdit = false; + this.gv_guid.VisibleIndex = 0; + + this.toolBarMenu1 = new Gs.DevApp.UserControl.ToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.PageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // toolBarMenu1 + // + this.toolBarMenu1.actions = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 531); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_guid,this.gv_itemNo,this.gv_simpleName,this.gv_fullName,this.gv_engName,this.gv_remark,this.gv_isStatus,this.gv_conPeople,this.gv_conTel,this.gv_conFax,this.gv_createTime,this.gv_createBy,this.gv_lastUpdateTtime,this.gv_lastUpdateBy,this.gv_t1,this.gv_t2,this.gv_t3}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 531); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.RowsCount = 50; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(76, 20); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(585, 426); + this.panel1.TabIndex = 1; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(61, 388); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(112, 388); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + // + // category1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1128, 682); + this.Controls.Add(this.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + //BQAddControltoMContainer + this.panel1.Controls.Add(this.lb_t3); + this.panel1.Controls.Add(this.txt_t3); + + this.panel1.Controls.Add(this.lb_t2); + this.panel1.Controls.Add(this.txt_t2); + + this.panel1.Controls.Add(this.lb_t1); + this.panel1.Controls.Add(this.txt_t1); + + this.panel1.Controls.Add(this.lb_lastUpdateBy); + this.panel1.Controls.Add(this.txt_lastUpdateBy); + + this.panel1.Controls.Add(this.lb_lastUpdateTtime); + this.panel1.Controls.Add(this.txt_lastUpdateTtime); + + this.panel1.Controls.Add(this.lb_createBy); + this.panel1.Controls.Add(this.txt_createBy); + + this.panel1.Controls.Add(this.lb_createTime); + this.panel1.Controls.Add(this.txt_createTime); + + this.panel1.Controls.Add(this.lb_conFax); + this.panel1.Controls.Add(this.txt_conFax); + + this.panel1.Controls.Add(this.lb_conTel); + this.panel1.Controls.Add(this.txt_conTel); + + this.panel1.Controls.Add(this.lb_conPeople); + this.panel1.Controls.Add(this.txt_conPeople); + + this.panel1.Controls.Add(this.lb_isStatus); + this.panel1.Controls.Add(this.txt_isStatus); + + this.panel1.Controls.Add(this.lb_remark); + this.panel1.Controls.Add(this.txt_remark); + + this.panel1.Controls.Add(this.lb_engName); + this.panel1.Controls.Add(this.txt_engName); + + this.panel1.Controls.Add(this.lb_fullName); + this.panel1.Controls.Add(this.txt_fullName); + + this.panel1.Controls.Add(this.lb_simpleName); + this.panel1.Controls.Add(this.txt_simpleName); + + this.panel1.Controls.Add(this.lb_itemNo); + this.panel1.Controls.Add(this.txt_itemNo); + + this.panel1.Controls.Add(this.lb_guid); + this.panel1.Controls.Add(this.txt_guid); + + this.Name = "category1"; + this.Text = ""; + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + } + #endregion + private UserControl.ToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.PageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + //BQCreateConrolObejct + private DevExpress.XtraEditors.LabelControl lb_t3; + private DevExpress.XtraEditors.TextEdit txt_t3; + private DevExpress.XtraGrid.Columns.GridColumn gv_t3; + + private DevExpress.XtraEditors.LabelControl lb_t2; + private DevExpress.XtraEditors.TextEdit txt_t2; + private DevExpress.XtraGrid.Columns.GridColumn gv_t2; + + private DevExpress.XtraEditors.LabelControl lb_t1; + private DevExpress.XtraEditors.TextEdit txt_t1; + private DevExpress.XtraGrid.Columns.GridColumn gv_t1; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateBy; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateBy; + + private DevExpress.XtraEditors.LabelControl lb_lastUpdateTtime; + private DevExpress.XtraEditors.TextEdit txt_lastUpdateTtime; + private DevExpress.XtraGrid.Columns.GridColumn gv_lastUpdateTtime; + + private DevExpress.XtraEditors.LabelControl lb_createBy; + private DevExpress.XtraEditors.TextEdit txt_createBy; + private DevExpress.XtraGrid.Columns.GridColumn gv_createBy; + + private DevExpress.XtraEditors.LabelControl lb_createTime; + private DevExpress.XtraEditors.TextEdit txt_createTime; + private DevExpress.XtraGrid.Columns.GridColumn gv_createTime; + + private DevExpress.XtraEditors.LabelControl lb_conFax; + private DevExpress.XtraEditors.TextEdit txt_conFax; + private DevExpress.XtraGrid.Columns.GridColumn gv_conFax; + + private DevExpress.XtraEditors.LabelControl lb_conTel; + private DevExpress.XtraEditors.TextEdit txt_conTel; + private DevExpress.XtraGrid.Columns.GridColumn gv_conTel; + + private DevExpress.XtraEditors.LabelControl lb_conPeople; + private DevExpress.XtraEditors.TextEdit txt_conPeople; + private DevExpress.XtraGrid.Columns.GridColumn gv_conPeople; + + private DevExpress.XtraEditors.LabelControl lb_isStatus; + private DevExpress.XtraEditors.TextEdit txt_isStatus; + private DevExpress.XtraGrid.Columns.GridColumn gv_isStatus; + + private DevExpress.XtraEditors.LabelControl lb_remark; + private DevExpress.XtraEditors.TextEdit txt_remark; + private DevExpress.XtraGrid.Columns.GridColumn gv_remark; + + private DevExpress.XtraEditors.LabelControl lb_engName; + private DevExpress.XtraEditors.TextEdit txt_engName; + private DevExpress.XtraGrid.Columns.GridColumn gv_engName; + + private DevExpress.XtraEditors.LabelControl lb_fullName; + private DevExpress.XtraEditors.TextEdit txt_fullName; + private DevExpress.XtraGrid.Columns.GridColumn gv_fullName; + + private DevExpress.XtraEditors.LabelControl lb_simpleName; + private DevExpress.XtraEditors.TextEdit txt_simpleName; + private DevExpress.XtraGrid.Columns.GridColumn gv_simpleName; + + private DevExpress.XtraEditors.LabelControl lb_itemNo; + private DevExpress.XtraEditors.TextEdit txt_itemNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_itemNo; + + private DevExpress.XtraEditors.LabelControl lb_guid; + private DevExpress.XtraEditors.TextEdit txt_guid; + private DevExpress.XtraGrid.Columns.GridColumn gv_guid; + + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.cs new file mode 100644 index 0000000..d5f0bf5 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/FrmSupplier.cs @@ -0,0 +1,271 @@ +锘縰sing DevExpress.XtraEditors; +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; +using Gs.DevApp.ToolBox; +using Gs.DevApp.Entity; +using Newtonsoft.Json; +using DevExpress.XtraGrid.Views.Grid.ViewInfo; +using DevExpress.XtraGrid.Views.Grid; + +namespace Gs.DevApp.DevFrm.BasicData +{ + public partial class FrmSupplier : DevExpress.XtraEditors.XtraForm + { + public FrmSupplier() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + pageBar1.PagerEvent += PageBar1_PagerEvent; + getPageList(1, UtilityHelper.GetPageSize()); + } + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) + { + //// 鑾峰彇GridView缁勪欢 + //GridView view = sender as GridView; + //// 纭繚view涓嶄负null + //if (view == null) return; + //// 鑾峰彇搴旂敤鐨勭瓫閫夊櫒淇℃伅 + //string filter = view.ActiveFilterString; + //MessageBox.Show(filter); + //getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + GridHitInfo info = gridView1.CalcHitInfo(e.Location); + if (info.InRow) + { + GridView view = info.View as GridView; + if (view != null) + { + DataRow row = view.GetDataRow(info.RowHandle); + if (row != null) + { + string rowGuid = (row["guid"].ToString()); + getModel(rowGuid, false, 999); + } + } + } + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + /// <summary> + /// 鏌ヨ浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) + { + Gs.DevApp.UserControl.ShowFilter frm = new Gs.DevApp.UserControl.ShowFilter(gridView1.Columns); + frm.UpdateParent += Frm_UpdateParent; + frm.ShowDialog(); + } + /// <summary> + /// 鏌ヨ鍥炶皟 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) + { + string strWhere = e.Data; + MessageBox.Show(strWhere); + } + + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + } + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + dr["userName"].ToString() + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + var _obj = new + { + guidList = dr["guid"].ToString(),//涓诲缓 + }; + string strJson = ""; + try + { + strJson = UtilityHelper.HttpPost("", "Supplier/DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + DataRow dr = gridView1.GetFocusedDataRow(); + if (dr == null || string.IsNullOrEmpty(dr["guid"].ToString())) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(dr["guid"].ToString(), true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.ChangeTab(xtraTabControl1, 1); + lbGuid.Text = ""; + UtilityHelper.CleanValue(this.panel1.Controls, true); + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + var _obj = new + { + guid = lbGuid.Text.Trim(),//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "User/EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnable(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "createTime", "asc", "", ""); + string json = JsonConvert.SerializeObject(pgq); + try + { + string strReturn = UtilityHelper.HttpPost("", "Supplier/GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + int dddd = dd.rtnData.pages;//鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RowsCount = pageSize;//姣忛〉鏄剧ず + pageBar1.setTxt(); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.ChangeTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", "Supplier/GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.GetDataByJson(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} + -- Gitblit v1.9.3