diff --git a/PEIS/Entity/DictHTypeFItem.cs b/PEIS/Entity/DictHTypeFItem.cs new file mode 100644 index 0000000..643e375 --- /dev/null +++ b/PEIS/Entity/DictHTypeFItem.cs @@ -0,0 +1,66 @@ +using PEIS.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace PEIS.Entity +{ + /// + /// 接害类型(危害因素)与检查项目关系表 + /// + public class DictHTypeFItem : ObjectData + { + public override string TableName => "Dict_HTypeFItem"; + /// + /// 接害类型ID + /// + public Int64 HID { get; set; } + /// + /// 检查项目ID + /// + public Int64 FID { get; set; } + /// + /// 检查项目编码 + /// + public string FeeItemCode{ get; set; } + /// + /// 排序 + /// + public int Sort { get; set; } + } + public class HTypeFItemInfo + { + /// + /// ID + /// + public Int64 ID { get; set; } + /// + /// 接害类型ID + /// + public Int64 HID { get; set; } + /// + /// 检查项目ID + /// + public Int64 FID { get; set; } + /// + /// 检查项目编码 + /// + public string FeeItemCode { get; set; } + /// + /// 检查项目名称 + /// + public string FeeItemName { get; set; } + /// + /// 排序 + /// + public int Sort { get; set; } + public Decimal? SettlePrice { get; set; } + public String Unit { get; set; } + public String UnitName { get; set; } + public String DeptName { get; set; } + public String ItemClass { get; set; } + public Decimal Price { get; set; } + public bool isNew { get; set; } = false; + } +} diff --git a/PEIS/Entity/DictHazardTypecs.cs b/PEIS/Entity/DictHazardTypecs.cs new file mode 100644 index 0000000..12892c1 --- /dev/null +++ b/PEIS/Entity/DictHazardTypecs.cs @@ -0,0 +1,29 @@ +using PEIS.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace PEIS.Entity +{ + /// + /// 接害(危害、有害)类型 + /// + public class DictHazardType : ObjectData + { + public override string TableName => "Dict_HazardType"; + /// + /// 名字 + /// + public String Name { get; set; } + /// + /// 编码 + /// + public String Code { get; set; } + /// + /// 排序 + /// + public int Sort { get; set; } + + } +} diff --git a/PEIS/Model/Setting/HazardTypeModel.cs b/PEIS/Model/Setting/HazardTypeModel.cs new file mode 100644 index 0000000..5f63090 --- /dev/null +++ b/PEIS/Model/Setting/HazardTypeModel.cs @@ -0,0 +1,45 @@ +using PEIS.Entity; +using PEIS.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace PEIS.Model.Setting +{ + public class HazardTypeModel : IModel + { + public List GetItems() + { + return DAOHelp.GetDataBySQL("Select * from Dict_HazardType Order By Sort"); + } + public List GetFeeItems() + { + return DAOHelp.GetDataBySQL("Select * From vi_FeeItem"); + } + public List GetHTypeFItem(Int64 hId) + { + return DAOHelp.GetDataBySQL($@"SELECT + H.ID, + H.HID, + H.FID, + H.FeeItemCode, + H.Sort, + F.FeeItemName, + F.SettlePrice, + F.Unit, + F.UnitName, + F.DeptName, + F.ItemClass, + F.Price + FROM Dict_HTypeFItem H + LEFT JOIN vi_FeeItem F ON H.FID=F.ID + WHERE H.HID={hId}"); + } + + public List GetDictHTypeFItem(Int64 hID) + { + return DAOHelp.GetDataBySQL($"Select * From Dict_HTypeFItem a where a.HID={hID}"); + } + } +} diff --git a/PEIS/PEIS.csproj b/PEIS/PEIS.csproj index 88093cb..33b09fe 100644 --- a/PEIS/PEIS.csproj +++ b/PEIS/PEIS.csproj @@ -196,16 +196,20 @@ + + + + @@ -436,7 +440,14 @@ DictionaryTEditFrom.cs + + Form + + + HazardTypeForm.cs + + Form @@ -640,6 +651,9 @@ DictionaryTEditFrom.cs + + HazardTypeForm.cs + PermissionForm.cs diff --git a/PEIS/Presenter/HazardTypePresenter.cs b/PEIS/Presenter/HazardTypePresenter.cs new file mode 100644 index 0000000..388ad81 --- /dev/null +++ b/PEIS/Presenter/HazardTypePresenter.cs @@ -0,0 +1,34 @@ +using PEIS.Base; +using PEIS.Model; +using PEIS.Model.Setting; +using PEIS.View.Setting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace PEIS.Presenter +{ + internal class HazardTypePresenter: Presenter + { + public HazardTypePresenter(IHazardTypeView view) : base(view) + { + } + protected override void OnViewSet() + { + View.GetHazardTypeItem += (send, arg) => + { + View.ShowHazardTypeItem(new HazardTypeModel().GetItems()); + }; + View.GetFeeItem += (send, arg) => + { + View.ShowFeeItem(new HazardTypeModel().GetFeeItems()); + }; + View.GetHTypeFItem += (send,arg)=> + { + View.ShowHTypeFItem(new HazardTypeModel().GetHTypeFItem(arg.Eid)); + }; + } + + } +} diff --git a/PEIS/View/MainForm.Designer.cs b/PEIS/View/MainForm.Designer.cs index d6302a1..645b2d9 100644 --- a/PEIS/View/MainForm.Designer.cs +++ b/PEIS/View/MainForm.Designer.cs @@ -59,6 +59,7 @@ namespace PEIS.View this.NbiDept = new DevExpress.XtraNavBar.NavBarItem(); this.NbiPermission = new DevExpress.XtraNavBar.NavBarItem(); this.NbiDictionary = new DevExpress.XtraNavBar.NavBarItem(); + this.NbiHazardType = new DevExpress.XtraNavBar.NavBarItem(); this.NbgReg = new DevExpress.XtraNavBar.NavBarGroup(); this.NbiEnrollmentSearch = new DevExpress.XtraNavBar.NavBarItem(); this.NbiEnrollmentPerson = new DevExpress.XtraNavBar.NavBarItem(); @@ -403,7 +404,8 @@ namespace PEIS.View this.NbiPackage, this.NbiDept, this.NbiPermission, - this.NbiDictionary}); + this.NbiDictionary, + this.NbiHazardType}); this.NbcMain.Location = new System.Drawing.Point(1, 46); this.NbcMain.Name = "NbcMain"; this.NbcMain.OptionsNavPane.ExpandedWidth = 100; @@ -422,7 +424,8 @@ namespace PEIS.View new DevExpress.XtraNavBar.NavBarItemLink(this.navBarItem16), new DevExpress.XtraNavBar.NavBarItemLink(this.NbiDept), new DevExpress.XtraNavBar.NavBarItemLink(this.NbiPermission), - new DevExpress.XtraNavBar.NavBarItemLink(this.NbiDictionary)}); + new DevExpress.XtraNavBar.NavBarItemLink(this.NbiDictionary), + new DevExpress.XtraNavBar.NavBarItemLink(this.NbiHazardType)}); this.NbgSetting.Name = "NbgSetting"; // // NbiFeeItem @@ -469,6 +472,12 @@ namespace PEIS.View this.NbiDictionary.Name = "NbiDictionary"; this.NbiDictionary.Visible = false; // + // NbiHazardType + // + this.NbiHazardType.Caption = "接害类型"; + this.NbiHazardType.LargeImage = ((System.Drawing.Image)(resources.GetObject("NbiHazardType.LargeImage"))); + this.NbiHazardType.Name = "NbiHazardType"; + // // NbgReg // this.NbgReg.Caption = "检前登记"; @@ -670,6 +679,7 @@ namespace PEIS.View private System.Windows.Forms.Panel stepPanel; private StepViewer stepViewer2; private DevExpress.XtraNavBar.NavBarItem NbiDictionary; + private DevExpress.XtraNavBar.NavBarItem NbiHazardType; } } diff --git a/PEIS/View/MainForm.cs b/PEIS/View/MainForm.cs index fe44ad1..0b4b0d5 100644 --- a/PEIS/View/MainForm.cs +++ b/PEIS/View/MainForm.cs @@ -66,6 +66,7 @@ namespace PEIS.View NbiConclusion.LinkClicked += (s, e) => AddTab("NbiConclusion", e.Link.Item); NbiDept.LinkClicked += (s, e) => AddTab("NbiDept", e.Link.Item); NbiDictionary.LinkClicked+= (s, e) => AddTab("NbiDictionary", e.Link.Item);//字典管理 + NbiHazardType.LinkClicked += (s, e) => AddTab("NbiHazardType", e.Link.Item);//接害类型 // 人次统计表 NbiPeopleCount.LinkClicked += (s, e) => AddTab("NbiPeopleCount", e.Link.Item); // 权限管理 @@ -281,6 +282,8 @@ namespace PEIS.View return new PermissionForm(); case "NbiDictionary": return new DictionaryForm(); + case "NbiHazardType": + return new HazardTypeForm(); default: return null; } diff --git a/PEIS/View/MainForm.resx b/PEIS/View/MainForm.resx index bf90ff6..b39e7a1 100644 --- a/PEIS/View/MainForm.resx +++ b/PEIS/View/MainForm.resx @@ -323,6 +323,65 @@ eK0VDd2jOIOUJjBEt4J80Qr6dPWQ/qMFhRwGc3HuYrJ8OUB/d0V4+aIukP5WkIx/QboJunuEly/qAtF3 BfGBcJLq6KegrKhiBV+oxer9DHUBe/uDyOUA+tiztSLvPTKFHvxvUK6D+NPpP8MLMjJMP3kZuqKG9W0v EH3MIDresyvYJyODa03QX1P/wu5lWbbexyJUP7qx7M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6hQL7uDRe/tPU1f0GMOxpxjaDCnUAAAAASUVO + RK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAALtJREFUSEtj + oDuwjX6rZRPz2oGaGGQm1HgIcIj5qGIb+/o/LTDIbKg1DAxg24GCNrGvQtFdRTYGmgU2E8iGWoNkEbIg + hQCrmcPbItuY15IgNpiGsUnFQH0ELYLwXzaAJYAAxCYVQ/QRYRE1wAi1CMjeD5YAAhCbVAzSN7gsogYY + oRbBMh0IoGdGYjBEHwGLQJUViA2mYWxSMbQSBbFxWgQVohiMNItoXZXTrXECArCUQk0MMhNqPL0AAwMA + gVq/Q20bmn0AAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAALtJREFUSEtj + oDuwjX6rZRPz2oGaGGQm1HgIcIj5qGIb+/o/LTDIbKg1DAxg24GCNrGvQtFdRTYGmgU2E8iGWoNkEbIg + hQCrmcPbItuY15IgNpiGsUnFQH0ELYLwXzaAJYAAxCYVQ/QRYRE1wAi1CMjeD5YAAhCbVAzSN7gsogYY + oRbBMh0IoGdGYjBEHwGLQJUViA2mYWxSMbQSBbFxWgQVohiMNItoXZXTrXECArCUQk0MMhNqPL0AAwMA + gVq/Q20bmn0AAAAASUVORK5CYII= @@ -437,56 +496,6 @@ lPVNqM1T/O7hTD/C85foE/9zzQuW6rEkUHG/TcmBCt5xet0HYl5UvCE31wDrvEZpxNlofT/ebe3KrLGZ OFt7nlIJzFY2WbOz7sT5kaJT85JSBdX9cXh4pCg1A2byDJ/EE2zWMryC2dxztFq/AeyqBenl+b8bAAAA AElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABGdBTUEAALGPC/xhBQAAALtJREFUSEtj - oDuwjX6rZRPz2oGaGGQm1HgIcIj5qGIb+/o/LTDIbKg1DAx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Ij5qGIb+/o/LTDIbKg1DAxg24GCNrGvQtFdRTYGmgU2E8iGWoNkEbIg - hQCrmcPbItuY15IgNpiGsUnFQH0ELYLwXzaAJYAAxCYVQ/QRYRE1wAi1CMjeD5YAAhCbVAzSN7gsogYY - oRbBMh0IoGdGYjBEHwGLQJUViA2mYWxSMbQSBbFxWgQVohiMNItoXZXTrXECArCUQk0MMhNqPL0AAwMA - gVq/Q20bmn0AAAAASUVORK5CYII= diff --git a/PEIS/View/Setting/HazardTypeForm.Designer.cs b/PEIS/View/Setting/HazardTypeForm.Designer.cs new file mode 100644 index 0000000..ae80d62 --- /dev/null +++ b/PEIS/View/Setting/HazardTypeForm.Designer.cs @@ -0,0 +1,753 @@ +namespace PEIS.View.Setting +{ + partial class HazardTypeForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.gCHazardType = new DevExpress.XtraGrid.GridControl(); + this.gVHazardType = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.ID = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gcName = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gcCode = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gcSort = new DevExpress.XtraGrid.Columns.GridColumn(); + this.panel2 = new System.Windows.Forms.Panel(); + this.opMenuHdType = new PEIS.View.UControl.OpMenu(); + this.label2 = new System.Windows.Forms.Label(); + this.gCHFeelItem = new DevExpress.XtraGrid.GridControl(); + this.gVHFeelItem = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.FeeItemCode2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.Sort = new DevExpress.XtraGrid.Columns.GridColumn(); + this.HID = new DevExpress.XtraGrid.Columns.GridColumn(); + this.FID = new DevExpress.XtraGrid.Columns.GridColumn(); + this.FeeItemName2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.ItemClass2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.Price2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.SettlePrice2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.Unit2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.UnitName2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.DeptName2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.panel3 = new System.Windows.Forms.Panel(); + this.opMenuRelation = new PEIS.View.UControl.OpMenu(); + this.label1 = new System.Windows.Forms.Label(); + this.panel1 = new System.Windows.Forms.Panel(); + this.gCFeelItem = new DevExpress.XtraGrid.GridControl(); + this.gVFeelItem = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.ID1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.KeyNo = new DevExpress.XtraGrid.Columns.GridColumn(); + this.FeeItemCode = new DevExpress.XtraGrid.Columns.GridColumn(); + this.FeeItemName = new DevExpress.XtraGrid.Columns.GridColumn(); + this.ItemClass = new DevExpress.XtraGrid.Columns.GridColumn(); + this.Price = new DevExpress.XtraGrid.Columns.GridColumn(); + this.SettlePrice = new DevExpress.XtraGrid.Columns.GridColumn(); + this.Unit = new DevExpress.XtraGrid.Columns.GridColumn(); + this.UnitName = new DevExpress.XtraGrid.Columns.GridColumn(); + this.DeptCode = new DevExpress.XtraGrid.Columns.GridColumn(); + this.DeptName = new DevExpress.XtraGrid.Columns.GridColumn(); + this.IsHide = new DevExpress.XtraGrid.Columns.GridColumn(); + this.panel4 = new System.Windows.Forms.Panel(); + this.opMenuItem = new PEIS.View.UControl.OpMenu(); + this.label3 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gCHazardType)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gVHazardType)).BeginInit(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gCHFeelItem)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gVHFeelItem)).BeginInit(); + this.panel3.SuspendLayout(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gCFeelItem)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gVFeelItem)).BeginInit(); + this.panel4.SuspendLayout(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.AutoScroll = true; + this.splitContainer1.Panel1.Controls.Add(this.gCHazardType); + this.splitContainer1.Panel1.Controls.Add(this.panel2); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.gCHFeelItem); + this.splitContainer1.Panel2.Controls.Add(this.panel3); + this.splitContainer1.Size = new System.Drawing.Size(756, 743); + this.splitContainer1.SplitterDistance = 266; + this.splitContainer1.TabIndex = 0; + // + // gCHazardType + // + this.gCHazardType.Dock = System.Windows.Forms.DockStyle.Fill; + this.gCHazardType.Location = new System.Drawing.Point(0, 46); + this.gCHazardType.MainView = this.gVHazardType; + this.gCHazardType.Name = "gCHazardType"; + this.gCHazardType.Size = new System.Drawing.Size(266, 697); + this.gCHazardType.TabIndex = 1; + this.gCHazardType.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gVHazardType}); + // + // gVHazardType + // + this.gVHazardType.Appearance.ViewCaption.Options.UseTextOptions = true; + this.gVHazardType.Appearance.ViewCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; + this.gVHazardType.Appearance.ViewCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; + this.gVHazardType.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.ID, + this.gcName, + this.gcCode, + this.gcSort}); + this.gVHazardType.GridControl = this.gCHazardType; + this.gVHazardType.Name = "gVHazardType"; + this.gVHazardType.OptionsView.ShowGroupPanel = false; + this.gVHazardType.OptionsView.ShowPreviewRowLines = DevExpress.Utils.DefaultBoolean.False; + this.gVHazardType.OptionsView.ShowVerticalLines = DevExpress.Utils.DefaultBoolean.False; + this.gVHazardType.ViewCaption = "接害类型"; + // + // ID + // + this.ID.Caption = "主键"; + this.ID.FieldName = "ID"; + this.ID.Name = "ID"; + this.ID.OptionsColumn.AllowEdit = false; + this.ID.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.ID.OptionsFilter.AllowAutoFilter = false; + this.ID.OptionsFilter.AllowFilter = false; + // + // gcName + // + this.gcName.Caption = "名字"; + this.gcName.FieldName = "Name"; + this.gcName.Name = "gcName"; + this.gcName.OptionsColumn.AllowEdit = false; + this.gcName.OptionsColumn.AllowFocus = false; + this.gcName.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.True; + this.gcName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.gcName.OptionsFilter.AllowAutoFilter = false; + this.gcName.OptionsFilter.AllowFilter = false; + this.gcName.Visible = true; + this.gcName.VisibleIndex = 0; + this.gcName.Width = 188; + // + // gcCode + // + this.gcCode.Caption = "编码"; + this.gcCode.FieldName = "Code"; + this.gcCode.Name = "gcCode"; + this.gcCode.OptionsColumn.AllowEdit = false; + this.gcCode.OptionsColumn.AllowFocus = false; + this.gcCode.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; + this.gcCode.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.gcCode.OptionsFilter.AllowAutoFilter = false; + this.gcCode.OptionsFilter.AllowFilter = false; + this.gcCode.Visible = true; + this.gcCode.VisibleIndex = 1; + this.gcCode.Width = 60; + // + // gcSort + // + this.gcSort.Caption = "排序"; + this.gcSort.FieldName = "Sort"; + this.gcSort.Name = "gcSort"; + this.gcSort.OptionsColumn.AllowEdit = false; + this.gcSort.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; + this.gcSort.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.gcSort.OptionsFilter.AllowAutoFilter = false; + this.gcSort.OptionsFilter.AllowFilter = false; + // + // panel2 + // + this.panel2.Controls.Add(this.opMenuHdType); + this.panel2.Controls.Add(this.label2); + this.panel2.Dock = System.Windows.Forms.DockStyle.Top; + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(266, 46); + this.panel2.TabIndex = 0; + // + // opMenuHdType + // + this.opMenuHdType.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.opMenuHdType.Dock = System.Windows.Forms.DockStyle.Fill; + this.opMenuHdType.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.opMenuHdType.Location = new System.Drawing.Point(79, 0); + this.opMenuHdType.Margin = new System.Windows.Forms.Padding(2, 4, 2, 4); + this.opMenuHdType.Name = "opMenuHdType"; + this.opMenuHdType.Size = new System.Drawing.Size(187, 46); + this.opMenuHdType.TabIndex = 3; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Left; + this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label2.Location = new System.Drawing.Point(0, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(79, 46); + this.label2.TabIndex = 2; + this.label2.Text = "接害类型"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // gCHFeelItem + // + this.gCHFeelItem.Dock = System.Windows.Forms.DockStyle.Fill; + this.gCHFeelItem.Location = new System.Drawing.Point(0, 46); + this.gCHFeelItem.MainView = this.gVHFeelItem; + this.gCHFeelItem.Name = "gCHFeelItem"; + this.gCHFeelItem.Size = new System.Drawing.Size(486, 697); + this.gCHFeelItem.TabIndex = 2; + this.gCHFeelItem.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gVHFeelItem}); + // + // gVHFeelItem + // + this.gVHFeelItem.Appearance.ViewCaption.Options.UseTextOptions = true; + this.gVHFeelItem.Appearance.ViewCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; + this.gVHFeelItem.Appearance.ViewCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; + this.gVHFeelItem.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn1, + this.FeeItemCode2, + this.Sort, + this.HID, + this.FID, + this.FeeItemName2, + this.ItemClass2, + this.Price2, + this.SettlePrice2, + this.Unit2, + this.UnitName2, + this.DeptName2}); + this.gVHFeelItem.GridControl = this.gCHFeelItem; + this.gVHFeelItem.Name = "gVHFeelItem"; + this.gVHFeelItem.OptionsView.ShowGroupPanel = false; + this.gVHFeelItem.OptionsView.ShowPreviewRowLines = DevExpress.Utils.DefaultBoolean.False; + this.gVHFeelItem.OptionsView.ShowVerticalLines = DevExpress.Utils.DefaultBoolean.False; + this.gVHFeelItem.ViewCaption = "关联项目"; + // + // gridColumn1 + // + this.gridColumn1.Caption = "ID"; + this.gridColumn1.FieldName = "ID"; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.OptionsColumn.AllowEdit = false; + this.gridColumn1.OptionsColumn.AllowFocus = false; + this.gridColumn1.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.gridColumn1.OptionsFilter.AllowAutoFilter = false; + this.gridColumn1.OptionsFilter.AllowFilter = false; + // + // FeeItemCode2 + // + this.FeeItemCode2.Caption = "检查项目编码"; + this.FeeItemCode2.FieldName = "FeeItemCode"; + this.FeeItemCode2.Name = "FeeItemCode2"; + this.FeeItemCode2.OptionsColumn.AllowEdit = false; + this.FeeItemCode2.OptionsColumn.AllowFocus = false; + this.FeeItemCode2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.FeeItemCode2.OptionsFilter.AllowAutoFilter = false; + this.FeeItemCode2.OptionsFilter.AllowFilter = false; + // + // Sort + // + this.Sort.Caption = "顺序"; + this.Sort.FieldName = "Sort"; + this.Sort.Name = "Sort"; + this.Sort.OptionsColumn.AllowEdit = false; + this.Sort.OptionsColumn.AllowFocus = false; + this.Sort.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.Sort.OptionsFilter.AllowAutoFilter = false; + this.Sort.OptionsFilter.AllowFilter = false; + // + // HID + // + this.HID.Caption = "接害类型ID"; + this.HID.FieldName = "HID"; + this.HID.Name = "HID"; + this.HID.OptionsColumn.AllowEdit = false; + this.HID.OptionsColumn.AllowFocus = false; + this.HID.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.HID.OptionsFilter.AllowAutoFilter = false; + this.HID.OptionsFilter.AllowFilter = false; + this.HID.Width = 40; + // + // FID + // + this.FID.Caption = "检查项目ID"; + this.FID.FieldName = "FID"; + this.FID.Name = "FID"; + this.FID.OptionsColumn.AllowEdit = false; + this.FID.OptionsColumn.AllowFocus = false; + this.FID.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.FID.OptionsFilter.AllowAutoFilter = false; + this.FID.OptionsFilter.AllowFilter = false; + // + // FeeItemName2 + // + this.FeeItemName2.Caption = "检查项目"; + this.FeeItemName2.FieldName = "FeeItemName"; + this.FeeItemName2.Name = "FeeItemName2"; + this.FeeItemName2.OptionsColumn.AllowEdit = false; + this.FeeItemName2.OptionsColumn.AllowFocus = false; + this.FeeItemName2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.FeeItemName2.OptionsFilter.AllowAutoFilter = false; + this.FeeItemName2.OptionsFilter.AllowFilter = false; + this.FeeItemName2.Visible = true; + this.FeeItemName2.VisibleIndex = 0; + this.FeeItemName2.Width = 175; + // + // ItemClass2 + // + this.ItemClass2.Caption = "项目类型"; + this.ItemClass2.FieldName = "ItemClass"; + this.ItemClass2.Name = "ItemClass2"; + this.ItemClass2.OptionsColumn.AllowEdit = false; + this.ItemClass2.OptionsColumn.AllowFocus = false; + this.ItemClass2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.ItemClass2.OptionsFilter.AllowAutoFilter = false; + this.ItemClass2.OptionsFilter.AllowFilter = false; + this.ItemClass2.Visible = true; + this.ItemClass2.VisibleIndex = 1; + this.ItemClass2.Width = 46; + // + // Price2 + // + this.Price2.Caption = "价格"; + this.Price2.FieldName = "Price"; + this.Price2.Name = "Price2"; + this.Price2.OptionsColumn.AllowEdit = false; + this.Price2.OptionsColumn.AllowFocus = false; + this.Price2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.Price2.OptionsFilter.AllowAutoFilter = false; + this.Price2.OptionsFilter.AllowFilter = false; + this.Price2.Visible = true; + this.Price2.VisibleIndex = 2; + this.Price2.Width = 46; + // + // SettlePrice2 + // + this.SettlePrice2.Caption = "折扣价"; + this.SettlePrice2.FieldName = "SettlePrice"; + this.SettlePrice2.Name = "SettlePrice2"; + this.SettlePrice2.OptionsColumn.AllowEdit = false; + this.SettlePrice2.OptionsColumn.AllowFocus = false; + this.SettlePrice2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.SettlePrice2.OptionsFilter.AllowAutoFilter = false; + this.SettlePrice2.OptionsFilter.AllowFilter = false; + this.SettlePrice2.Visible = true; + this.SettlePrice2.VisibleIndex = 3; + this.SettlePrice2.Width = 46; + // + // Unit2 + // + this.Unit2.Caption = "单位"; + this.Unit2.FieldName = "Unit"; + this.Unit2.Name = "Unit2"; + this.Unit2.OptionsColumn.AllowEdit = false; + this.Unit2.OptionsColumn.AllowFocus = false; + this.Unit2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.Unit2.OptionsFilter.AllowAutoFilter = false; + this.Unit2.OptionsFilter.AllowFilter = false; + this.Unit2.Visible = true; + this.Unit2.VisibleIndex = 4; + this.Unit2.Width = 46; + // + // UnitName2 + // + this.UnitName2.Caption = "单位类型"; + this.UnitName2.FieldName = "UnitName"; + this.UnitName2.Name = "UnitName2"; + this.UnitName2.OptionsColumn.AllowEdit = false; + this.UnitName2.OptionsColumn.AllowFocus = false; + this.UnitName2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.UnitName2.OptionsFilter.AllowAutoFilter = false; + this.UnitName2.OptionsFilter.AllowFilter = false; + this.UnitName2.Visible = true; + this.UnitName2.VisibleIndex = 5; + this.UnitName2.Width = 46; + // + // DeptName2 + // + this.DeptName2.Caption = "科室"; + this.DeptName2.FieldName = "DeptName"; + this.DeptName2.Name = "DeptName2"; + this.DeptName2.OptionsColumn.AllowEdit = false; + this.DeptName2.OptionsColumn.AllowFocus = false; + this.DeptName2.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.DeptName2.OptionsFilter.AllowAutoFilter = false; + this.DeptName2.OptionsFilter.AllowFilter = false; + this.DeptName2.Visible = true; + this.DeptName2.VisibleIndex = 6; + this.DeptName2.Width = 63; + // + // panel3 + // + this.panel3.Controls.Add(this.opMenuRelation); + this.panel3.Controls.Add(this.label1); + this.panel3.Dock = System.Windows.Forms.DockStyle.Top; + this.panel3.Location = new System.Drawing.Point(0, 0); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(486, 46); + this.panel3.TabIndex = 1; + // + // opMenuRelation + // + this.opMenuRelation.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.opMenuRelation.Dock = System.Windows.Forms.DockStyle.Fill; + this.opMenuRelation.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.opMenuRelation.Location = new System.Drawing.Point(79, 0); + this.opMenuRelation.Margin = new System.Windows.Forms.Padding(2, 4, 2, 4); + this.opMenuRelation.Name = "opMenuRelation"; + this.opMenuRelation.Size = new System.Drawing.Size(407, 46); + this.opMenuRelation.TabIndex = 4; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Left; + this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.Location = new System.Drawing.Point(0, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(79, 46); + this.label1.TabIndex = 3; + this.label1.Text = "关联检查"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panel1 + // + this.panel1.AutoScroll = true; + this.panel1.Controls.Add(this.gCFeelItem); + this.panel1.Controls.Add(this.panel4); + this.panel1.Dock = System.Windows.Forms.DockStyle.Right; + this.panel1.Location = new System.Drawing.Point(756, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(642, 743); + this.panel1.TabIndex = 1; + // + // gCFeelItem + // + this.gCFeelItem.Dock = System.Windows.Forms.DockStyle.Fill; + this.gCFeelItem.Location = new System.Drawing.Point(0, 46); + this.gCFeelItem.MainView = this.gVFeelItem; + this.gCFeelItem.Name = "gCFeelItem"; + this.gCFeelItem.Size = new System.Drawing.Size(642, 697); + this.gCFeelItem.TabIndex = 3; + this.gCFeelItem.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gVFeelItem}); + // + // gVFeelItem + // + this.gVFeelItem.Appearance.ViewCaption.Options.UseTextOptions = true; + this.gVFeelItem.Appearance.ViewCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; + this.gVFeelItem.Appearance.ViewCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; + this.gVFeelItem.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.ID1, + this.KeyNo, + this.FeeItemCode, + this.FeeItemName, + this.ItemClass, + this.Price, + this.SettlePrice, + this.Unit, + this.UnitName, + this.DeptCode, + this.DeptName, + this.IsHide}); + this.gVFeelItem.GridControl = this.gCFeelItem; + this.gVFeelItem.Name = "gVFeelItem"; + this.gVFeelItem.OptionsView.ShowGroupPanel = false; + this.gVFeelItem.OptionsView.ShowPreviewRowLines = DevExpress.Utils.DefaultBoolean.False; + this.gVFeelItem.OptionsView.ShowVerticalLines = DevExpress.Utils.DefaultBoolean.False; + this.gVFeelItem.OptionsView.ShowViewCaption = true; + this.gVFeelItem.ViewCaption = "双击添加到接害类型下,再进行保存"; + // + // ID1 + // + this.ID1.Caption = "ID"; + this.ID1.FieldName = "ID"; + this.ID1.Name = "ID1"; + this.ID1.OptionsColumn.AllowEdit = false; + this.ID1.OptionsColumn.AllowFocus = false; + this.ID1.OptionsFilter.AllowAutoFilter = false; + this.ID1.OptionsFilter.AllowFilter = false; + // + // KeyNo + // + this.KeyNo.Caption = "KeyNo"; + this.KeyNo.FieldName = "KeyNo"; + this.KeyNo.Name = "KeyNo"; + this.KeyNo.OptionsColumn.AllowEdit = false; + this.KeyNo.OptionsColumn.AllowFocus = false; + this.KeyNo.OptionsFilter.AllowAutoFilter = false; + this.KeyNo.OptionsFilter.AllowFilter = false; + // + // FeeItemCode + // + this.FeeItemCode.Caption = "FeeItemCode"; + this.FeeItemCode.FieldName = "FeeItemCode"; + this.FeeItemCode.Name = "FeeItemCode"; + this.FeeItemCode.OptionsColumn.AllowEdit = false; + this.FeeItemCode.OptionsColumn.AllowFocus = false; + this.FeeItemCode.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.FeeItemCode.OptionsFilter.AllowAutoFilter = false; + this.FeeItemCode.OptionsFilter.AllowFilter = false; + // + // FeeItemName + // + this.FeeItemName.Caption = "项目名称"; + this.FeeItemName.FieldName = "FeeItemName"; + this.FeeItemName.Name = "FeeItemName"; + this.FeeItemName.OptionsColumn.AllowEdit = false; + this.FeeItemName.OptionsColumn.AllowFocus = false; + this.FeeItemName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.FeeItemName.OptionsFilter.AllowAutoFilter = false; + this.FeeItemName.OptionsFilter.AllowFilter = false; + this.FeeItemName.Visible = true; + this.FeeItemName.VisibleIndex = 0; + this.FeeItemName.Width = 170; + // + // ItemClass + // + this.ItemClass.Caption = "项目类型"; + this.ItemClass.FieldName = "ItemClass"; + this.ItemClass.Name = "ItemClass"; + this.ItemClass.OptionsColumn.AllowEdit = false; + this.ItemClass.OptionsColumn.AllowFocus = false; + this.ItemClass.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.ItemClass.OptionsFilter.AllowAutoFilter = false; + this.ItemClass.OptionsFilter.AllowFilter = false; + this.ItemClass.Visible = true; + this.ItemClass.VisibleIndex = 1; + this.ItemClass.Width = 83; + // + // Price + // + this.Price.Caption = "价格"; + this.Price.FieldName = "Price"; + this.Price.Name = "Price"; + this.Price.OptionsColumn.AllowEdit = false; + this.Price.OptionsColumn.AllowFocus = false; + this.Price.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.Price.OptionsFilter.AllowAutoFilter = false; + this.Price.OptionsFilter.AllowFilter = false; + this.Price.Visible = true; + this.Price.VisibleIndex = 2; + this.Price.Width = 83; + // + // SettlePrice + // + this.SettlePrice.Caption = "折扣价"; + this.SettlePrice.FieldName = "SettlePrice"; + this.SettlePrice.Name = "SettlePrice"; + this.SettlePrice.OptionsColumn.AllowEdit = false; + this.SettlePrice.OptionsColumn.AllowFocus = false; + this.SettlePrice.OptionsColumn.AllowSize = false; + this.SettlePrice.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.SettlePrice.OptionsFilter.AllowAutoFilter = false; + this.SettlePrice.OptionsFilter.AllowFilter = false; + this.SettlePrice.Visible = true; + this.SettlePrice.VisibleIndex = 3; + this.SettlePrice.Width = 83; + // + // Unit + // + this.Unit.Caption = "单位"; + this.Unit.FieldName = "Unit"; + this.Unit.Name = "Unit"; + this.Unit.OptionsColumn.AllowEdit = false; + this.Unit.OptionsColumn.AllowFocus = false; + this.Unit.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.Unit.OptionsFilter.AllowAutoFilter = false; + this.Unit.OptionsFilter.AllowFilter = false; + this.Unit.Visible = true; + this.Unit.VisibleIndex = 4; + this.Unit.Width = 83; + // + // UnitName + // + this.UnitName.Caption = "单位类型"; + this.UnitName.FieldName = "UnitName"; + this.UnitName.Name = "UnitName"; + this.UnitName.OptionsColumn.AllowEdit = false; + this.UnitName.OptionsColumn.AllowFocus = false; + this.UnitName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.UnitName.OptionsFilter.AllowAutoFilter = false; + this.UnitName.OptionsFilter.AllowFilter = false; + this.UnitName.Visible = true; + this.UnitName.VisibleIndex = 5; + this.UnitName.Width = 83; + // + // DeptCode + // + this.DeptCode.Caption = "科室编码"; + this.DeptCode.FieldName = "DeptCode"; + this.DeptCode.Name = "DeptCode"; + this.DeptCode.OptionsColumn.AllowEdit = false; + this.DeptCode.OptionsColumn.AllowFocus = false; + this.DeptCode.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.DeptCode.OptionsFilter.AllowAutoFilter = false; + this.DeptCode.OptionsFilter.AllowFilter = false; + // + // DeptName + // + this.DeptName.Caption = "科室"; + this.DeptName.FieldName = "DeptName"; + this.DeptName.Name = "DeptName"; + this.DeptName.OptionsColumn.AllowEdit = false; + this.DeptName.OptionsColumn.AllowFocus = false; + this.DeptName.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.DeptName.OptionsFilter.AllowAutoFilter = false; + this.DeptName.OptionsFilter.AllowFilter = false; + this.DeptName.Visible = true; + this.DeptName.VisibleIndex = 6; + this.DeptName.Width = 89; + // + // IsHide + // + this.IsHide.Caption = "IsHide"; + this.IsHide.FieldName = "IsHide"; + this.IsHide.Name = "IsHide"; + this.IsHide.OptionsColumn.AllowEdit = false; + this.IsHide.OptionsColumn.AllowFocus = false; + this.IsHide.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; + this.IsHide.OptionsFilter.AllowAutoFilter = false; + this.IsHide.OptionsFilter.AllowFilter = false; + // + // panel4 + // + this.panel4.Controls.Add(this.opMenuItem); + this.panel4.Controls.Add(this.label3); + this.panel4.Dock = System.Windows.Forms.DockStyle.Top; + this.panel4.Location = new System.Drawing.Point(0, 0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(642, 46); + this.panel4.TabIndex = 2; + // + // opMenuItem + // + this.opMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.opMenuItem.Dock = System.Windows.Forms.DockStyle.Fill; + this.opMenuItem.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.opMenuItem.Location = new System.Drawing.Point(79, 0); + this.opMenuItem.Margin = new System.Windows.Forms.Padding(2, 4, 2, 4); + this.opMenuItem.Name = "opMenuItem"; + this.opMenuItem.Size = new System.Drawing.Size(563, 46); + this.opMenuItem.TabIndex = 5; + // + // label3 + // + this.label3.Dock = System.Windows.Forms.DockStyle.Left; + this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label3.Location = new System.Drawing.Point(0, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(79, 46); + this.label3.TabIndex = 4; + this.label3.Text = "检查项目"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HazardTypeForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; + this.ClientSize = new System.Drawing.Size(1398, 743); + this.Controls.Add(this.splitContainer1); + this.Controls.Add(this.panel1); + this.Name = "HazardTypeForm"; + this.Text = "HazardTypeForm"; + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gCHazardType)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gVHazardType)).EndInit(); + this.panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gCHFeelItem)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gVHFeelItem)).EndInit(); + this.panel3.ResumeLayout(false); + this.panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gCFeelItem)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gVFeelItem)).EndInit(); + this.panel4.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel2; + private DevExpress.XtraGrid.GridControl gCHazardType; + private DevExpress.XtraGrid.Views.Grid.GridView gVHazardType; + private DevExpress.XtraGrid.Columns.GridColumn ID; + private DevExpress.XtraGrid.Columns.GridColumn gcName; + private DevExpress.XtraGrid.Columns.GridColumn gcCode; + private DevExpress.XtraGrid.Columns.GridColumn gcSort; + private DevExpress.XtraGrid.GridControl gCHFeelItem; + private DevExpress.XtraGrid.Views.Grid.GridView gVHFeelItem; + private System.Windows.Forms.Panel panel3; + private DevExpress.XtraGrid.GridControl gCFeelItem; + private DevExpress.XtraGrid.Views.Grid.GridView gVFeelItem; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Label label2; + private UControl.OpMenu opMenuHdType; + private UControl.OpMenu opMenuRelation; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label3; + private UControl.OpMenu opMenuItem; + private DevExpress.XtraGrid.Columns.GridColumn ID1; + private DevExpress.XtraGrid.Columns.GridColumn FeeItemName; + private DevExpress.XtraGrid.Columns.GridColumn KeyNo; + private DevExpress.XtraGrid.Columns.GridColumn FeeItemCode; + private DevExpress.XtraGrid.Columns.GridColumn ItemClass; + private DevExpress.XtraGrid.Columns.GridColumn Price; + private DevExpress.XtraGrid.Columns.GridColumn SettlePrice; + private DevExpress.XtraGrid.Columns.GridColumn Unit; + private DevExpress.XtraGrid.Columns.GridColumn UnitName; + private DevExpress.XtraGrid.Columns.GridColumn DeptCode; + private DevExpress.XtraGrid.Columns.GridColumn DeptName; + private DevExpress.XtraGrid.Columns.GridColumn IsHide; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraGrid.Columns.GridColumn FID; + private DevExpress.XtraGrid.Columns.GridColumn FeeItemName2; + private DevExpress.XtraGrid.Columns.GridColumn ItemClass2; + private DevExpress.XtraGrid.Columns.GridColumn Price2; + private DevExpress.XtraGrid.Columns.GridColumn FeeItemCode2; + private DevExpress.XtraGrid.Columns.GridColumn Sort; + private DevExpress.XtraGrid.Columns.GridColumn HID; + private DevExpress.XtraGrid.Columns.GridColumn SettlePrice2; + private DevExpress.XtraGrid.Columns.GridColumn Unit2; + private DevExpress.XtraGrid.Columns.GridColumn UnitName2; + private DevExpress.XtraGrid.Columns.GridColumn DeptName2; + } +} \ No newline at end of file diff --git a/PEIS/View/Setting/HazardTypeForm.cs b/PEIS/View/Setting/HazardTypeForm.cs new file mode 100644 index 0000000..6c40252 --- /dev/null +++ b/PEIS/View/Setting/HazardTypeForm.cs @@ -0,0 +1,244 @@ +using PEIS.Base; +using PEIS.Entity; +using PEIS.Event; +using PEIS.Presenter; +using PEIS.Utils; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading; +using System.Windows.Forms; +/// +/// 接害(危害、有害)类型维护 +/// +namespace PEIS.View.Setting +{ + public partial class HazardTypeForm : ViewBase,IHazardTypeView + { + public bool isChange = false; + public HazardTypeForm() + { + InitializeComponent(); + //接害类型菜单 + opMenuHdType.TsmiAdd.Visible = false; + opMenuHdType.TsmiDelete.Visible = false; + opMenuHdType.TsmiSave.Visible = false; + opMenuHdType.TstbKey.TextChanged += TstbKey_TextChanged; + opMenuHdType.TsmiRefresh.Click += TsmiRefresh_Click; + + gVHazardType.FocusedRowChanged += GVHazardType_FocusedRowChanged; + //关联菜单 + opMenuRelation.TsmiRefresh.Visible = true; + opMenuRelation.TsmiAdd.Visible = false; + opMenuRelation.TsmiDelete.Visible = true; + opMenuRelation.TsmiSave.Visible = true; + opMenuRelation.TsmiSearch.Visible = false; + opMenuRelation.TstbKey.Visible = false; + opMenuRelation.TsmiSave.Click += TsmiSave_Click; + opMenuRelation.TsmiDelete.Click += TsmiDelete_Click; + opMenuRelation.TsmiRefresh.Click += TsmiRefresh_Click2; + + //检查项目菜单 + opMenuItem.TsmiRefresh.Visible = true; + opMenuItem.TsmiRefresh.Click += TsmiRefresh_Click1; + opMenuItem.TsmiAdd.Visible = false; + opMenuItem.TsmiDelete.Visible = false; + opMenuItem.TsmiSave.Visible = false; + opMenuItem.TsmiSearch.Visible = false; + opMenuItem.TstbKey.Visible = false; + + gVFeelItem.DoubleClick += GVFeelItem_DoubleClick; + + Shown += HazardTypeForm_Shown; + } + + private void HazardTypeForm_Shown(object sender, EventArgs e) + { + ThreadPool.QueueUserWorkItem(s => + { + LoadHazardType(); + LoadFeeItem(); + }); + } + #region 接害类型 + public void LoadHazardType() + { + GetHazardTypeItem?.Invoke(this,new Args()); + } + public event EventHandler> GetHazardTypeItem; + public void ShowHazardTypeItem(List hazardTypes) + { + Invoke(new Action(() => { gCHazardType.DataSource = null; gCHazardType.DataSource = hazardTypes;})); + } + private void TstbKey_TextChanged(object sender, EventArgs e) + { + var textValue = (sender as ToolStripTextBox).Text; + if (!string.IsNullOrEmpty(textValue)&&!textValue.Equals("输入条件查询")) + { + gVHazardType.ApplyFindFilter(textValue); + } + else + { + gVHazardType.ApplyFindFilter(""); + } + } + private void TsmiRefresh_Click(object sender, EventArgs e) + { + LoadHazardType(); + } + private void GVHazardType_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) + { + LoadHTypeFItem(); + } + #endregion + #region 检查项目 + //FeeItemModel + public event EventHandler> GetFeeItem; + public void ShowFeeItem(List feeItems) + { + Invoke(new Action(() =>{gCFeelItem.DataSource = null; gCFeelItem.DataSource = feeItems; })); + } + public void LoadFeeItem() + { + GetFeeItem?.Invoke(this, new Args()); + } + private void TsmiRefresh_Click1(object sender, EventArgs e) + { + LoadFeeItem(); + } + private void GVFeelItem_DoubleClick(object sender, EventArgs e) + { + int feeItemIndex = gVFeelItem.FocusedRowHandle; + var feeItemRow = gVFeelItem.GetRow(feeItemIndex) as FeeItem; + int hazardTypeIndex=gVHazardType.FocusedRowHandle; + var hazardTypeRow = gVHazardType.GetRow(hazardTypeIndex) as DictHazardType; + if (hazardTypeRow == null) + { + Global.Msg("info", "没有接害类型"); + return; + } + var HFeelItem= gCHFeelItem.DataSource as List; + var alradlyData=HFeelItem?.Where(p => p.FID == feeItemRow.ID).FirstOrDefault(); + if (alradlyData!=null) + { + Global.Msg("info", "项目已经存在"); + return; + } + isChange = true; + HTypeFItemInfo hTypeFItem = new HTypeFItemInfo(); + hTypeFItem.ID = HFeelItem.Count == 0 ? 1 : (HFeelItem.Select(p => p.ID).OrderByDescending(p => p).ToList()[0]+1); + hTypeFItem.HID = hazardTypeRow.ID; + hTypeFItem.FID = feeItemRow.ID; + hTypeFItem.FeeItemCode = feeItemRow.FeeItemCode; + hTypeFItem.FeeItemName = feeItemRow.FeeItemName; + hTypeFItem.Sort = HFeelItem.Count + 1; + hTypeFItem.SettlePrice = feeItemRow.SettlePrice; + hTypeFItem.Unit = feeItemRow.Unit; + hTypeFItem.UnitName = feeItemRow.UnitName; + hTypeFItem.DeptName = feeItemRow.DeptName; + hTypeFItem.ItemClass = feeItemRow.ItemClass; + hTypeFItem.Price = feeItemRow.Price; + hTypeFItem.isNew = true; + HFeelItem.Add(hTypeFItem); + Invoke(new Action(() => { gCHFeelItem.DataSource = null; gCHFeelItem.DataSource = HFeelItem; })); + } + #endregion + #region 接害类型关联检查项目 + //接害类型关联检查项目 + public event EventHandler> GetHTypeFItem; + public void ShowHTypeFItem(List feeItems) + { + Invoke(new Action(() => { gCHFeelItem.DataSource = null; gCHFeelItem.DataSource = feeItems; })); + } + public void LoadHTypeFItem() + { + int hazardTypeIndex = gVHazardType.FocusedRowHandle; + var hazardTypeRow = gVHazardType.GetRow(hazardTypeIndex) as DictHazardType; + GetHTypeFItem?.Invoke(this, new Args() { Eid = hazardTypeRow.ID }); + } + private void TsmiSave_Click(object sender, EventArgs e) + { + if (isChange) + { + var HFeelItem = gCHFeelItem.DataSource as List; + if (HFeelItem != null && HFeelItem.Count > 0) + { + int hazardTypeIndex = gVHazardType.FocusedRowHandle; + var hazardTypeRow = gVHazardType.GetRow(hazardTypeIndex) as DictHazardType; + Model.Setting.HazardTypeModel hazardType = new Model.Setting.HazardTypeModel(); + var alreadlydata = hazardType.GetDictHTypeFItem(hazardTypeRow.ID); + if (alreadlydata != null && alreadlydata.Count > 0) + { + foreach (var item in alreadlydata) + { + item.Delete(); + } + } + foreach (var item in HFeelItem) + { + DictHTypeFItem dictHType = new DictHTypeFItem(); + dictHType.FID = item.FID; + dictHType.HID = item.HID; + dictHType.FeeItemCode = item.FeeItemCode; + dictHType.Sort = item.Sort; + dictHType.Save(); + } + } + else + { + Global.Msg("info", "没有需要保存的数据"); + } + isChange = false; + } + else + { + Global.Msg("info", "数据已经保存"); + } + + } + private void TsmiDelete_Click(object sender, EventArgs e) + { + int hazardTypeIndex = gVHFeelItem.FocusedRowHandle; + var hazardTypeRow = gVHFeelItem.GetRow(hazardTypeIndex) as HTypeFItemInfo; + if (hazardTypeRow!=null) + { + var resultDel = Global.MsgDelete($"是否确认删除{hazardTypeRow.FeeItemName}"); + if (resultDel) + { + if (hazardTypeRow.isNew) + { + var HFeelItemData = gVHFeelItem.DataSource as List; + HFeelItemData.Remove(hazardTypeRow); + Invoke(new Action(() => { gCHFeelItem.DataSource = null; gCHFeelItem.DataSource = HFeelItemData; })); + } + else + { + DictHTypeFItem dictHType = new DictHTypeFItem(); + dictHType.ID = hazardTypeRow.ID; + var result = dictHType.Delete(); + if (result) + { + LoadHTypeFItem(); + } + } + } + } + else { + Global.Msg("info", "无删除数据"); + } + } + private void TsmiRefresh_Click2(object sender, EventArgs e) + { + LoadHTypeFItem(); + } + #endregion + protected override object CreatePresenter() + { + return new HazardTypePresenter(this); + } + } +} diff --git a/PEIS/View/Setting/HazardTypeForm.resx b/PEIS/View/Setting/HazardTypeForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PEIS/View/Setting/HazardTypeForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PEIS/View/Setting/IHazardTypeView.cs b/PEIS/View/Setting/IHazardTypeView.cs new file mode 100644 index 0000000..edf0eb4 --- /dev/null +++ b/PEIS/View/Setting/IHazardTypeView.cs @@ -0,0 +1,26 @@ +using PEIS.Base; +using PEIS.Entity; +using PEIS.Event; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace PEIS.View.Setting +{ + /// + /// 接害(危害、有害)类型 + /// + internal interface IHazardTypeView : IViewBase + { + //接害类型 + event EventHandler> GetHazardTypeItem; + void ShowHazardTypeItem(List hazardTypes); + //检查项目 + event EventHandler> GetFeeItem; + void ShowFeeItem(List feeItems); + //接害类型关联检查项目 + event EventHandler> GetHTypeFItem; + void ShowHTypeFItem(List feeItems); + } +}