From 1b88d2b3271f733359fc60fa8e2e348f6fe666b4 Mon Sep 17 00:00:00 2001 From: wyf Date: Mon, 14 Apr 2025 09:11:10 +0000 Subject: [PATCH] SVN r493 SVN-Revision: r493 --- 插件库/Lskj.PubApiSetModule/ComBoxModel.cs | Bin 329 -> 327 bytes .../Lskj.PubApiSetModule/FrmMain.Designer.cs | 481 +++++++++--------- 插件库/Lskj.PubApiSetModule/FrmMain.cs | 163 ++++-- .../Lskj.PubApiSetModule.csproj | 6 +- 4 files changed, 383 insertions(+), 267 deletions(-) diff --git a/插件库/Lskj.PubApiSetModule/ComBoxModel.cs b/插件库/Lskj.PubApiSetModule/ComBoxModel.cs index bdf8a0809dc2c5f775096ff19a61bb206d4c3d93..b51bff982a6bc714410aed67fee84c70cbf6fb93 100644 GIT binary patch delta 283 zcmV+$0p$M40>=W7HGdFD{(UnfIWa%F!o+ZJID!Sdq{{~!2c9BEz)@U@%X#TqRh)4< z#&)*OpL!MR52UuC#Y@H*77#j=m}E?}xe&r*O##6+t9(a1T4ckDhHD{&xwci3}637^0f>iVMd(Q_EcaGmSU0r>r0~MOgtt3>3@3b#D}j&oqMT3IHFMh zjE0Ctt~J&=E$l3gm?(as{FdtyT>NDGXF=YJ=fQv5#i~J8)}(c%NEe46z8R0hH&M3O zt@WBT2wnZ@a965|glA(|4)LOvWbGfb8+&S|wy2XPry#j{^lp={a>N?4#IZj=6c98& h7&swyYVE(8QWWDC?e>9aGphkzbIT8067r&Z6dwnHi4_0< delta 285 zcmV+&0pkA00?7i9HGlN|-6F5od8wZibjqZdhc0!vsHRO(^-zHG7G)KgcJOiQ^*e)> zg-GEUf}8kJi-Q#tb`Ygksrg-Zn#K}R@;in!W1k2IYP3ppU9e**>+bpZE+4KS;Cpi7 zmP;Bn#FLSPHL0}iIS41{*X@hpJ1G7ILE3PBnr}Orz9flUPJdQ=n=!|PZ^i}V@XOn- zxgYwEGB(2j(a42vEc=p9!d~Vrlh6S4K-ucyL&g(9Nz;G>gxnvx`DH;@7Kj@Bm}-#< z^v1`4w{$NY2C>+1TF@CEHq%}bfS~q`KtNLFuVHG+b(;CebGMIuJMQAmZ%l@RE>fqL jDIrTj*; private void InitializeComponent() { - DevExpress.XtraGrid.GridLevelNode gridLevelNode3 = new DevExpress.XtraGrid.GridLevelNode(); - DevExpress.XtraGrid.GridLevelNode gridLevelNode4 = new DevExpress.XtraGrid.GridLevelNode(); DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode(); DevExpress.XtraGrid.GridLevelNode gridLevelNode2 = new DevExpress.XtraGrid.GridLevelNode(); + DevExpress.XtraGrid.GridLevelNode gridLevelNode3 = new DevExpress.XtraGrid.GridLevelNode(); + DevExpress.XtraGrid.GridLevelNode gridLevelNode4 = new DevExpress.XtraGrid.GridLevelNode(); this.tabMain = new DevExpress.XtraTab.XtraTabControl(); this.sendPage = new DevExpress.XtraTab.XtraTabPage(); this.splitControlSend = new DevExpress.XtraEditors.SplitContainerControl(); - this.getPage = new DevExpress.XtraTab.XtraTabPage(); - this.splitControlGet = new DevExpress.XtraEditors.SplitContainerControl(); - this.getGcMain = new DevExpress.XtraGrid.GridControl(); - this.getMainView = new DevExpress.XtraGrid.Views.Grid.GridView(); - this.getGcDetail = new DevExpress.XtraGrid.GridControl(); - this.getDetailView = new DevExpress.XtraGrid.Views.Grid.GridView(); - this.flowPanelTop = new System.Windows.Forms.FlowLayoutPanel(); this.sendGcMain = new DevExpress.XtraGrid.GridControl(); this.sendMainView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.idColumn = new DevExpress.XtraGrid.Columns.GridColumn(); @@ -79,7 +72,10 @@ namespace Lskj.PubApiSetModule this.allowShowMsgComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); this.disableTagColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.disableTagComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); - this.flowPanelBottom = new System.Windows.Forms.FlowLayoutPanel(); + this.flowPanelTop = new System.Windows.Forms.FlowLayoutPanel(); + this.btnApiSave = new DevExpress.XtraEditors.SimpleButton(); + this.btnApiDelete = new DevExpress.XtraEditors.SimpleButton(); + this.btnApiAdd = new DevExpress.XtraEditors.SimpleButton(); this.sendGcDetail = new DevExpress.XtraGrid.GridControl(); this.sendDetailView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.pmsIdColumn = new DevExpress.XtraGrid.Columns.GridColumn(); @@ -98,25 +94,23 @@ namespace Lskj.PubApiSetModule this.unionPmsIdColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.valueDataTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.valueDataTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); - this.btnApiSave = new DevExpress.XtraEditors.SimpleButton(); - this.btnApiDelete = new DevExpress.XtraEditors.SimpleButton(); - this.btnApiAdd = new DevExpress.XtraEditors.SimpleButton(); + this.flowPanelBottom = new System.Windows.Forms.FlowLayoutPanel(); this.btnPmsSave = new DevExpress.XtraEditors.SimpleButton(); this.btnPmsDelete = new DevExpress.XtraEditors.SimpleButton(); this.btnPmsAdd = new DevExpress.XtraEditors.SimpleButton(); + this.getPage = new DevExpress.XtraTab.XtraTabPage(); + this.splitControlGet = new DevExpress.XtraEditors.SplitContainerControl(); + this.getGcMain = new DevExpress.XtraGrid.GridControl(); + this.getMainView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.getGcDetail = new DevExpress.XtraGrid.GridControl(); + this.getDetailView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.valueEncryptTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn(); + this.valueEncryptTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); ((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit(); this.tabMain.SuspendLayout(); this.sendPage.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitControlSend)).BeginInit(); this.splitControlSend.SuspendLayout(); - this.getPage.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitControlGet)).BeginInit(); - this.splitControlGet.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.getGcMain)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.getMainView)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.getGcDetail)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.getDetailView)).BeginInit(); - this.flowPanelTop.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.sendGcMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sendMainView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.reqDataTypeComboBox)).BeginInit(); @@ -131,7 +125,7 @@ namespace Lskj.PubApiSetModule ((System.ComponentModel.ISupportInitialize)(this.pmsTypeComboBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.allowShowMsgComboBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.disableTagComboBox)).BeginInit(); - this.flowPanelBottom.SuspendLayout(); + this.flowPanelTop.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.sendGcDetail)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sendDetailView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pmTypeComboBox)).BeginInit(); @@ -140,6 +134,15 @@ namespace Lskj.PubApiSetModule ((System.ComponentModel.ISupportInitialize)(this.allowNullComboBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pmsDataSourceMemoExEdit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.valueDataTypeComboBox)).BeginInit(); + this.flowPanelBottom.SuspendLayout(); + this.getPage.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitControlGet)).BeginInit(); + this.splitControlGet.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.getGcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.getMainView)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.getGcDetail)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.getDetailView)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.valueEncryptTypeComboBox)).BeginInit(); this.SuspendLayout(); // // tabMain @@ -150,7 +153,7 @@ namespace Lskj.PubApiSetModule this.tabMain.Location = new System.Drawing.Point(0, 0); this.tabMain.Name = "tabMain"; this.tabMain.SelectedTabPage = this.sendPage; - this.tabMain.Size = new System.Drawing.Size(858, 555); + this.tabMain.Size = new System.Drawing.Size(1012, 555); this.tabMain.TabIndex = 6; this.tabMain.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.sendPage, @@ -160,7 +163,7 @@ namespace Lskj.PubApiSetModule // this.sendPage.Controls.Add(this.splitControlSend); this.sendPage.Name = "sendPage"; - this.sendPage.Size = new System.Drawing.Size(852, 526); + this.sendPage.Size = new System.Drawing.Size(1006, 526); this.sendPage.Text = "推送接口"; // // splitControlSend @@ -179,140 +182,11 @@ namespace Lskj.PubApiSetModule this.splitControlSend.Panel2.Controls.Add(this.sendGcDetail); this.splitControlSend.Panel2.Controls.Add(this.flowPanelBottom); this.splitControlSend.Panel2.Text = "Panel2"; - this.splitControlSend.Size = new System.Drawing.Size(852, 526); + this.splitControlSend.Size = new System.Drawing.Size(1006, 526); this.splitControlSend.SplitterPosition = 237; this.splitControlSend.TabIndex = 4; this.splitControlSend.Text = "splitContainerControl1"; // - // getPage - // - this.getPage.Controls.Add(this.splitControlGet); - this.getPage.Name = "getPage"; - this.getPage.Size = new System.Drawing.Size(852, 526); - this.getPage.Text = "接收接口"; - // - // splitControlGet - // - this.splitControlGet.Appearance.BackColor = System.Drawing.Color.Transparent; - this.splitControlGet.Appearance.Options.UseBackColor = true; - this.splitControlGet.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; - this.splitControlGet.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitControlGet.Horizontal = false; - this.splitControlGet.Location = new System.Drawing.Point(0, 0); - this.splitControlGet.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.splitControlGet.Name = "splitControlGet"; - this.splitControlGet.Panel1.Controls.Add(this.getGcMain); - this.splitControlGet.Panel1.Text = "Panel1"; - this.splitControlGet.Panel2.Controls.Add(this.getGcDetail); - this.splitControlGet.Panel2.Text = "Panel2"; - this.splitControlGet.Size = new System.Drawing.Size(852, 526); - this.splitControlGet.SplitterPosition = 237; - this.splitControlGet.TabIndex = 5; - this.splitControlGet.Text = "splitContainerControl1"; - // - // getGcMain - // - this.getGcMain.Dock = System.Windows.Forms.DockStyle.Fill; - this.getGcMain.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4); - gridLevelNode3.RelationName = "Level1"; - this.getGcMain.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { - gridLevelNode3}); - this.getGcMain.Location = new System.Drawing.Point(0, 0); - this.getGcMain.MainView = this.getMainView; - this.getGcMain.Margin = new System.Windows.Forms.Padding(4); - this.getGcMain.Name = "getGcMain"; - this.getGcMain.Size = new System.Drawing.Size(852, 237); - this.getGcMain.TabIndex = 5; - this.getGcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { - this.getMainView}); - // - // getMainView - // - this.getMainView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F); - this.getMainView.Appearance.HeaderPanel.Options.UseFont = true; - this.getMainView.Appearance.HeaderPanel.Options.UseTextOptions = true; - this.getMainView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - this.getMainView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; - this.getMainView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F); - this.getMainView.Appearance.Preview.Options.UseFont = true; - this.getMainView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F); - this.getMainView.Appearance.Row.Options.UseBackColor = true; - this.getMainView.Appearance.Row.Options.UseFont = true; - this.getMainView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.getMainView.GridControl = this.getGcMain; - this.getMainView.IndicatorWidth = 40; - this.getMainView.Name = "getMainView"; - this.getMainView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True; - this.getMainView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False; - this.getMainView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false; - this.getMainView.OptionsFilter.ShowAllTableValuesInFilterPopup = true; - this.getMainView.OptionsFind.FindNullPrompt = ""; - this.getMainView.OptionsSelection.MultiSelect = true; - this.getMainView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect; - this.getMainView.OptionsView.AllowHtmlDrawHeaders = true; - this.getMainView.OptionsView.ColumnAutoWidth = false; - this.getMainView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True; - this.getMainView.OptionsView.RowAutoHeight = true; - this.getMainView.OptionsView.ShowGroupPanel = false; - this.getMainView.PaintStyleName = "Skin"; - // - // getGcDetail - // - this.getGcDetail.Dock = System.Windows.Forms.DockStyle.Fill; - this.getGcDetail.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4); - gridLevelNode4.RelationName = "Level1"; - this.getGcDetail.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { - gridLevelNode4}); - this.getGcDetail.Location = new System.Drawing.Point(0, 0); - this.getGcDetail.MainView = this.getDetailView; - this.getGcDetail.Margin = new System.Windows.Forms.Padding(4); - this.getGcDetail.Name = "getGcDetail"; - this.getGcDetail.Size = new System.Drawing.Size(852, 284); - this.getGcDetail.TabIndex = 5; - this.getGcDetail.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { - this.getDetailView}); - // - // getDetailView - // - this.getDetailView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F); - this.getDetailView.Appearance.HeaderPanel.Options.UseFont = true; - this.getDetailView.Appearance.HeaderPanel.Options.UseTextOptions = true; - this.getDetailView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - this.getDetailView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; - this.getDetailView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F); - this.getDetailView.Appearance.Preview.Options.UseFont = true; - this.getDetailView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F); - this.getDetailView.Appearance.Row.Options.UseBackColor = true; - this.getDetailView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; - this.getDetailView.GridControl = this.getGcDetail; - this.getDetailView.IndicatorWidth = 40; - this.getDetailView.Name = "getDetailView"; - this.getDetailView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True; - this.getDetailView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False; - this.getDetailView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false; - this.getDetailView.OptionsFilter.ShowAllTableValuesInFilterPopup = true; - this.getDetailView.OptionsFind.FindNullPrompt = ""; - this.getDetailView.OptionsSelection.MultiSelect = true; - this.getDetailView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect; - this.getDetailView.OptionsView.AllowHtmlDrawHeaders = true; - this.getDetailView.OptionsView.ColumnAutoWidth = false; - this.getDetailView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True; - this.getDetailView.OptionsView.RowAutoHeight = true; - this.getDetailView.OptionsView.ShowGroupPanel = false; - this.getDetailView.PaintStyleName = "Skin"; - // - // flowPanelTop - // - this.flowPanelTop.Controls.Add(this.btnApiSave); - this.flowPanelTop.Controls.Add(this.btnApiDelete); - this.flowPanelTop.Controls.Add(this.btnApiAdd); - this.flowPanelTop.Dock = System.Windows.Forms.DockStyle.Bottom; - this.flowPanelTop.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowPanelTop.Location = new System.Drawing.Point(0, 203); - this.flowPanelTop.Name = "flowPanelTop"; - this.flowPanelTop.Size = new System.Drawing.Size(852, 34); - this.flowPanelTop.TabIndex = 22; - // // sendGcMain // this.sendGcMain.Dock = System.Windows.Forms.DockStyle.Fill; @@ -337,7 +211,7 @@ namespace Lskj.PubApiSetModule this.allowShowMsgComboBox, this.eTypeCodeComboBox, this.disableTagComboBox}); - this.sendGcMain.Size = new System.Drawing.Size(852, 203); + this.sendGcMain.Size = new System.Drawing.Size(1006, 203); this.sendGcMain.TabIndex = 23; this.sendGcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.sendMainView}); @@ -527,6 +401,7 @@ namespace Lskj.PubApiSetModule this.eTypeColumn.Name = "eTypeColumn"; this.eTypeColumn.Visible = true; this.eTypeColumn.VisibleIndex = 11; + this.eTypeColumn.Width = 100; // // eTypeComboBox // @@ -542,7 +417,7 @@ namespace Lskj.PubApiSetModule this.eTypeCodeColumn.FieldName = "eTypeCode"; this.eTypeCodeColumn.Name = "eTypeCodeColumn"; this.eTypeCodeColumn.Visible = true; - this.eTypeCodeColumn.VisibleIndex = 20; + this.eTypeCodeColumn.VisibleIndex = 12; // // eTypeCodeComboBox // @@ -565,7 +440,8 @@ namespace Lskj.PubApiSetModule this.finshDataPmColumn.FieldName = "finshDataPm"; this.finshDataPmColumn.Name = "finshDataPmColumn"; this.finshDataPmColumn.Visible = true; - this.finshDataPmColumn.VisibleIndex = 13; + this.finshDataPmColumn.VisibleIndex = 14; + this.finshDataPmColumn.Width = 80; // // finshActionColumn // @@ -573,7 +449,7 @@ namespace Lskj.PubApiSetModule this.finshActionColumn.FieldName = "finshAction"; this.finshActionColumn.Name = "finshActionColumn"; this.finshActionColumn.Visible = true; - this.finshActionColumn.VisibleIndex = 12; + this.finshActionColumn.VisibleIndex = 13; this.finshActionColumn.Width = 100; // // isSucceedCondColumn @@ -583,7 +459,7 @@ namespace Lskj.PubApiSetModule this.isSucceedCondColumn.FieldName = "isSucceedCond"; this.isSucceedCondColumn.Name = "isSucceedCondColumn"; this.isSucceedCondColumn.Visible = true; - this.isSucceedCondColumn.VisibleIndex = 14; + this.isSucceedCondColumn.VisibleIndex = 15; // // isSucceedCondMemoExEdit // @@ -598,7 +474,7 @@ namespace Lskj.PubApiSetModule this.tokenApiIdColumn.FieldName = "tokenApiId"; this.tokenApiIdColumn.Name = "tokenApiIdColumn"; this.tokenApiIdColumn.Visible = true; - this.tokenApiIdColumn.VisibleIndex = 18; + this.tokenApiIdColumn.VisibleIndex = 19; // // tokenTypeColumn // @@ -607,7 +483,7 @@ namespace Lskj.PubApiSetModule this.tokenTypeColumn.FieldName = "tokenType"; this.tokenTypeColumn.Name = "tokenTypeColumn"; this.tokenTypeColumn.Visible = true; - this.tokenTypeColumn.VisibleIndex = 15; + this.tokenTypeColumn.VisibleIndex = 16; // // tokenTypeComboBox // @@ -623,7 +499,7 @@ namespace Lskj.PubApiSetModule this.pmsTypeColumn.FieldName = "pmsType"; this.pmsTypeColumn.Name = "pmsTypeColumn"; this.pmsTypeColumn.Visible = true; - this.pmsTypeColumn.VisibleIndex = 16; + this.pmsTypeColumn.VisibleIndex = 17; // // pmsTypeComboBox // @@ -638,7 +514,7 @@ namespace Lskj.PubApiSetModule this.ContentTypeColumn.FieldName = "ContentType"; this.ContentTypeColumn.Name = "ContentTypeColumn"; this.ContentTypeColumn.Visible = true; - this.ContentTypeColumn.VisibleIndex = 17; + this.ContentTypeColumn.VisibleIndex = 18; // // allowShowMsgColumn // @@ -647,7 +523,7 @@ namespace Lskj.PubApiSetModule this.allowShowMsgColumn.FieldName = "allowShowMsg"; this.allowShowMsgColumn.Name = "allowShowMsgColumn"; this.allowShowMsgColumn.Visible = true; - this.allowShowMsgColumn.VisibleIndex = 19; + this.allowShowMsgColumn.VisibleIndex = 20; // // allowShowMsgComboBox // @@ -672,17 +548,50 @@ namespace Lskj.PubApiSetModule new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.disableTagComboBox.Name = "disableTagComboBox"; // - // flowPanelBottom + // flowPanelTop // - this.flowPanelBottom.Controls.Add(this.btnPmsSave); - this.flowPanelBottom.Controls.Add(this.btnPmsDelete); - this.flowPanelBottom.Controls.Add(this.btnPmsAdd); - this.flowPanelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; - this.flowPanelBottom.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowPanelBottom.Location = new System.Drawing.Point(0, 250); - this.flowPanelBottom.Name = "flowPanelBottom"; - this.flowPanelBottom.Size = new System.Drawing.Size(852, 34); - this.flowPanelBottom.TabIndex = 23; + this.flowPanelTop.Controls.Add(this.btnApiSave); + this.flowPanelTop.Controls.Add(this.btnApiDelete); + this.flowPanelTop.Controls.Add(this.btnApiAdd); + this.flowPanelTop.Dock = System.Windows.Forms.DockStyle.Bottom; + this.flowPanelTop.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowPanelTop.Location = new System.Drawing.Point(0, 203); + this.flowPanelTop.Name = "flowPanelTop"; + this.flowPanelTop.Size = new System.Drawing.Size(1006, 34); + this.flowPanelTop.TabIndex = 22; + // + // btnApiSave + // + this.btnApiSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnApiSave.Appearance.Options.UseFont = true; + this.btnApiSave.Location = new System.Drawing.Point(923, 3); + this.btnApiSave.Name = "btnApiSave"; + this.btnApiSave.Size = new System.Drawing.Size(80, 28); + this.btnApiSave.TabIndex = 13; + this.btnApiSave.TabStop = false; + this.btnApiSave.Text = "保存(&S)"; + // + // btnApiDelete + // + this.btnApiDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnApiDelete.Appearance.Options.UseFont = true; + this.btnApiDelete.Location = new System.Drawing.Point(837, 3); + this.btnApiDelete.Name = "btnApiDelete"; + this.btnApiDelete.Size = new System.Drawing.Size(80, 28); + this.btnApiDelete.TabIndex = 14; + this.btnApiDelete.TabStop = false; + this.btnApiDelete.Text = "删除(&D)"; + // + // btnApiAdd + // + this.btnApiAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnApiAdd.Appearance.Options.UseFont = true; + this.btnApiAdd.Location = new System.Drawing.Point(751, 3); + this.btnApiAdd.Name = "btnApiAdd"; + this.btnApiAdd.Size = new System.Drawing.Size(80, 28); + this.btnApiAdd.TabIndex = 15; + this.btnApiAdd.TabStop = false; + this.btnApiAdd.Text = "新增(&A)"; // // sendGcDetail // @@ -701,8 +610,9 @@ namespace Lskj.PubApiSetModule this.pmsDataSourceMemoExEdit, this.allowNullComboBox, this.valueMemoExEdit, - this.valueDataTypeComboBox}); - this.sendGcDetail.Size = new System.Drawing.Size(852, 250); + this.valueDataTypeComboBox, + this.valueEncryptTypeComboBox}); + this.sendGcDetail.Size = new System.Drawing.Size(1006, 250); this.sendGcDetail.TabIndex = 24; this.sendGcDetail.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.sendDetailView}); @@ -729,7 +639,8 @@ namespace Lskj.PubApiSetModule this.pmsAllowNullColumn, this.pmsDataSourceColumn, this.unionPmsIdColumn, - this.valueDataTypeColumn}); + this.valueDataTypeColumn, + this.valueEncryptTypeColumn}); this.sendDetailView.GridControl = this.sendGcDetail; this.sendDetailView.IndicatorWidth = 40; this.sendDetailView.Name = "sendDetailView"; @@ -771,6 +682,7 @@ namespace Lskj.PubApiSetModule this.pmsNameColumn.Name = "pmsNameColumn"; this.pmsNameColumn.Visible = true; this.pmsNameColumn.VisibleIndex = 3; + this.pmsNameColumn.Width = 100; // // pmTypeColumn // @@ -812,7 +724,7 @@ namespace Lskj.PubApiSetModule this.valueTypeColumn.FieldName = "valueType"; this.valueTypeColumn.Name = "valueTypeColumn"; this.valueTypeColumn.Visible = true; - this.valueTypeColumn.VisibleIndex = 6; + this.valueTypeColumn.VisibleIndex = 5; // // valueTypeComboBox // @@ -828,7 +740,7 @@ namespace Lskj.PubApiSetModule this.pmsAllowNullColumn.FieldName = "allowNull"; this.pmsAllowNullColumn.Name = "pmsAllowNullColumn"; this.pmsAllowNullColumn.Visible = true; - this.pmsAllowNullColumn.VisibleIndex = 8; + this.pmsAllowNullColumn.VisibleIndex = 9; // // allowNullComboBox // @@ -844,7 +756,7 @@ namespace Lskj.PubApiSetModule this.pmsDataSourceColumn.FieldName = "pmsDataSource"; this.pmsDataSourceColumn.Name = "pmsDataSourceColumn"; this.pmsDataSourceColumn.Visible = true; - this.pmsDataSourceColumn.VisibleIndex = 7; + this.pmsDataSourceColumn.VisibleIndex = 8; this.pmsDataSourceColumn.Width = 100; // // pmsDataSourceMemoExEdit @@ -860,7 +772,7 @@ namespace Lskj.PubApiSetModule this.unionPmsIdColumn.FieldName = "unionPmsId"; this.unionPmsIdColumn.Name = "unionPmsIdColumn"; this.unionPmsIdColumn.Visible = true; - this.unionPmsIdColumn.VisibleIndex = 9; + this.unionPmsIdColumn.VisibleIndex = 10; // // valueDataTypeColumn // @@ -869,7 +781,7 @@ namespace Lskj.PubApiSetModule this.valueDataTypeColumn.FieldName = "valueDataType"; this.valueDataTypeColumn.Name = "valueDataTypeColumn"; this.valueDataTypeColumn.Visible = true; - this.valueDataTypeColumn.VisibleIndex = 5; + this.valueDataTypeColumn.VisibleIndex = 6; // // valueDataTypeComboBox // @@ -878,44 +790,23 @@ namespace Lskj.PubApiSetModule new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.valueDataTypeComboBox.Name = "valueDataTypeComboBox"; // - // btnApiSave + // flowPanelBottom // - this.btnApiSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnApiSave.Appearance.Options.UseFont = true; - this.btnApiSave.Location = new System.Drawing.Point(769, 3); - this.btnApiSave.Name = "btnApiSave"; - this.btnApiSave.Size = new System.Drawing.Size(80, 28); - this.btnApiSave.TabIndex = 13; - this.btnApiSave.TabStop = false; - this.btnApiSave.Text = "保存(&S)"; - // - // btnApiDelete - // - this.btnApiDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnApiDelete.Appearance.Options.UseFont = true; - this.btnApiDelete.Location = new System.Drawing.Point(683, 3); - this.btnApiDelete.Name = "btnApiDelete"; - this.btnApiDelete.Size = new System.Drawing.Size(80, 28); - this.btnApiDelete.TabIndex = 14; - this.btnApiDelete.TabStop = false; - this.btnApiDelete.Text = "删除(&D)"; - // - // btnApiAdd - // - this.btnApiAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnApiAdd.Appearance.Options.UseFont = true; - this.btnApiAdd.Location = new System.Drawing.Point(597, 3); - this.btnApiAdd.Name = "btnApiAdd"; - this.btnApiAdd.Size = new System.Drawing.Size(80, 28); - this.btnApiAdd.TabIndex = 15; - this.btnApiAdd.TabStop = false; - this.btnApiAdd.Text = "新增(&A)"; + this.flowPanelBottom.Controls.Add(this.btnPmsSave); + this.flowPanelBottom.Controls.Add(this.btnPmsDelete); + this.flowPanelBottom.Controls.Add(this.btnPmsAdd); + this.flowPanelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; + this.flowPanelBottom.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowPanelBottom.Location = new System.Drawing.Point(0, 250); + this.flowPanelBottom.Name = "flowPanelBottom"; + this.flowPanelBottom.Size = new System.Drawing.Size(1006, 34); + this.flowPanelBottom.TabIndex = 23; // // btnPmsSave // this.btnPmsSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnPmsSave.Appearance.Options.UseFont = true; - this.btnPmsSave.Location = new System.Drawing.Point(769, 3); + this.btnPmsSave.Location = new System.Drawing.Point(923, 3); this.btnPmsSave.Name = "btnPmsSave"; this.btnPmsSave.Size = new System.Drawing.Size(80, 28); this.btnPmsSave.TabIndex = 16; @@ -926,7 +817,7 @@ namespace Lskj.PubApiSetModule // this.btnPmsDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnPmsDelete.Appearance.Options.UseFont = true; - this.btnPmsDelete.Location = new System.Drawing.Point(683, 3); + this.btnPmsDelete.Location = new System.Drawing.Point(837, 3); this.btnPmsDelete.Name = "btnPmsDelete"; this.btnPmsDelete.Size = new System.Drawing.Size(80, 28); this.btnPmsDelete.TabIndex = 17; @@ -937,13 +828,146 @@ namespace Lskj.PubApiSetModule // this.btnPmsAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnPmsAdd.Appearance.Options.UseFont = true; - this.btnPmsAdd.Location = new System.Drawing.Point(597, 3); + this.btnPmsAdd.Location = new System.Drawing.Point(751, 3); this.btnPmsAdd.Name = "btnPmsAdd"; this.btnPmsAdd.Size = new System.Drawing.Size(80, 28); this.btnPmsAdd.TabIndex = 18; this.btnPmsAdd.TabStop = false; this.btnPmsAdd.Text = "新增(&A)"; // + // getPage + // + this.getPage.Controls.Add(this.splitControlGet); + this.getPage.Name = "getPage"; + this.getPage.Size = new System.Drawing.Size(1006, 526); + this.getPage.Text = "接收接口"; + // + // splitControlGet + // + this.splitControlGet.Appearance.BackColor = System.Drawing.Color.Transparent; + this.splitControlGet.Appearance.Options.UseBackColor = true; + this.splitControlGet.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; + this.splitControlGet.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitControlGet.Horizontal = false; + this.splitControlGet.Location = new System.Drawing.Point(0, 0); + this.splitControlGet.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.splitControlGet.Name = "splitControlGet"; + this.splitControlGet.Panel1.Controls.Add(this.getGcMain); + this.splitControlGet.Panel1.Text = "Panel1"; + this.splitControlGet.Panel2.Controls.Add(this.getGcDetail); + this.splitControlGet.Panel2.Text = "Panel2"; + this.splitControlGet.Size = new System.Drawing.Size(1006, 526); + this.splitControlGet.SplitterPosition = 237; + this.splitControlGet.TabIndex = 5; + this.splitControlGet.Text = "splitContainerControl1"; + // + // getGcMain + // + this.getGcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.getGcMain.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4); + gridLevelNode3.RelationName = "Level1"; + this.getGcMain.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { + gridLevelNode3}); + this.getGcMain.Location = new System.Drawing.Point(0, 0); + this.getGcMain.MainView = this.getMainView; + this.getGcMain.Margin = new System.Windows.Forms.Padding(4); + this.getGcMain.Name = "getGcMain"; + this.getGcMain.Size = new System.Drawing.Size(1006, 237); + this.getGcMain.TabIndex = 5; + this.getGcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.getMainView}); + // + // getMainView + // + this.getMainView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F); + this.getMainView.Appearance.HeaderPanel.Options.UseFont = true; + this.getMainView.Appearance.HeaderPanel.Options.UseTextOptions = true; + this.getMainView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; + this.getMainView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; + this.getMainView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F); + this.getMainView.Appearance.Preview.Options.UseFont = true; + this.getMainView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F); + this.getMainView.Appearance.Row.Options.UseBackColor = true; + this.getMainView.Appearance.Row.Options.UseFont = true; + this.getMainView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; + this.getMainView.GridControl = this.getGcMain; + this.getMainView.IndicatorWidth = 40; + this.getMainView.Name = "getMainView"; + this.getMainView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True; + this.getMainView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False; + this.getMainView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false; + this.getMainView.OptionsFilter.ShowAllTableValuesInFilterPopup = true; + this.getMainView.OptionsFind.FindNullPrompt = ""; + this.getMainView.OptionsSelection.MultiSelect = true; + this.getMainView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect; + this.getMainView.OptionsView.AllowHtmlDrawHeaders = true; + this.getMainView.OptionsView.ColumnAutoWidth = false; + this.getMainView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True; + this.getMainView.OptionsView.RowAutoHeight = true; + this.getMainView.OptionsView.ShowGroupPanel = false; + this.getMainView.PaintStyleName = "Skin"; + // + // getGcDetail + // + this.getGcDetail.Dock = System.Windows.Forms.DockStyle.Fill; + this.getGcDetail.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4); + gridLevelNode4.RelationName = "Level1"; + this.getGcDetail.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { + gridLevelNode4}); + this.getGcDetail.Location = new System.Drawing.Point(0, 0); + this.getGcDetail.MainView = this.getDetailView; + this.getGcDetail.Margin = new System.Windows.Forms.Padding(4); + this.getGcDetail.Name = "getGcDetail"; + this.getGcDetail.Size = new System.Drawing.Size(1006, 284); + this.getGcDetail.TabIndex = 5; + this.getGcDetail.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.getDetailView}); + // + // getDetailView + // + this.getDetailView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F); + this.getDetailView.Appearance.HeaderPanel.Options.UseFont = true; + this.getDetailView.Appearance.HeaderPanel.Options.UseTextOptions = true; + this.getDetailView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; + this.getDetailView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; + this.getDetailView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F); + this.getDetailView.Appearance.Preview.Options.UseFont = true; + this.getDetailView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F); + this.getDetailView.Appearance.Row.Options.UseBackColor = true; + this.getDetailView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; + this.getDetailView.GridControl = this.getGcDetail; + this.getDetailView.IndicatorWidth = 40; + this.getDetailView.Name = "getDetailView"; + this.getDetailView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True; + this.getDetailView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False; + this.getDetailView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false; + this.getDetailView.OptionsFilter.ShowAllTableValuesInFilterPopup = true; + this.getDetailView.OptionsFind.FindNullPrompt = ""; + this.getDetailView.OptionsSelection.MultiSelect = true; + this.getDetailView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect; + this.getDetailView.OptionsView.AllowHtmlDrawHeaders = true; + this.getDetailView.OptionsView.ColumnAutoWidth = false; + this.getDetailView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True; + this.getDetailView.OptionsView.RowAutoHeight = true; + this.getDetailView.OptionsView.ShowGroupPanel = false; + this.getDetailView.PaintStyleName = "Skin"; + // + // valueEncryptTypeColumn + // + this.valueEncryptTypeColumn.Caption = "值转换类型"; + this.valueEncryptTypeColumn.ColumnEdit = this.valueEncryptTypeComboBox; + this.valueEncryptTypeColumn.FieldName = "valueEncryptType"; + this.valueEncryptTypeColumn.Name = "valueEncryptTypeColumn"; + this.valueEncryptTypeColumn.Visible = true; + this.valueEncryptTypeColumn.VisibleIndex = 7; + // + // valueEncryptTypeComboBox + // + this.valueEncryptTypeComboBox.AutoHeight = false; + this.valueEncryptTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.valueEncryptTypeComboBox.Name = "valueEncryptTypeComboBox"; + // // FrmMain // this.Appearance.BackColor = System.Drawing.SystemColors.Control; @@ -951,7 +975,7 @@ namespace Lskj.PubApiSetModule this.Appearance.Options.UseFont = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(858, 555); + this.ClientSize = new System.Drawing.Size(1012, 555); this.Controls.Add(this.tabMain); this.Name = "FrmMain"; this.Text = "FrmMain"; @@ -960,14 +984,6 @@ namespace Lskj.PubApiSetModule this.sendPage.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitControlSend)).EndInit(); this.splitControlSend.ResumeLayout(false); - this.getPage.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitControlGet)).EndInit(); - this.splitControlGet.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.getGcMain)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.getMainView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.getGcDetail)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.getDetailView)).EndInit(); - this.flowPanelTop.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.sendGcMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sendMainView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.reqDataTypeComboBox)).EndInit(); @@ -982,7 +998,7 @@ namespace Lskj.PubApiSetModule ((System.ComponentModel.ISupportInitialize)(this.pmsTypeComboBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.allowShowMsgComboBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.disableTagComboBox)).EndInit(); - this.flowPanelBottom.ResumeLayout(false); + this.flowPanelTop.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.sendGcDetail)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sendDetailView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pmTypeComboBox)).EndInit(); @@ -991,6 +1007,15 @@ namespace Lskj.PubApiSetModule ((System.ComponentModel.ISupportInitialize)(this.allowNullComboBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pmsDataSourceMemoExEdit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.valueDataTypeComboBox)).EndInit(); + this.flowPanelBottom.ResumeLayout(false); + this.getPage.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitControlGet)).EndInit(); + this.splitControlGet.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.getGcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.getMainView)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.getGcDetail)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.getDetailView)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.valueEncryptTypeComboBox)).EndInit(); this.ResumeLayout(false); } @@ -1054,4 +1079,6 @@ namespace Lskj.PubApiSetModule private DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit valueMemoExEdit; private DevExpress.XtraGrid.Columns.GridColumn valueTypeColumn; private DevExpress.XtraEditors.Repository.RepositoryItemComboBox valueTypeComboBox; - private DevExpress.XtraGrid.Columns.Gr \ No newline at end of file + private DevExpress.XtraGrid.Columns.GridColumn pmsAllowNullColumn; + private DevExpress.XtraEditors.Repository.RepositoryItemComboBox allowNullComboBox; + private DevExpress.XtraGrid.Columns.GridColumn pm \ No newline at end of file diff --git a/插件库/Lskj.PubApiSetModule/FrmMain.cs b/插件库/Lskj.PubApiSetModule/FrmMain.cs index 8ba5d54..347f486 100644 --- a/插件库/Lskj.PubApiSetModule/FrmMain.cs +++ b/插件库/Lskj.PubApiSetModule/FrmMain.cs @@ -1,4 +1,7 @@ -using Lskj.Business.Impl; +using DevExpress.XtraEditors.Repository; +using DevExpress.XtraGrid.Columns; +using DevExpress.XtraGrid.Views.Grid; +using Lskj.Business.Impl; using Lskj.Control; using Lskj.Core; using Lskj.Util; @@ -43,8 +46,12 @@ namespace Lskj.PubApiSetModule /// private void InitEvents() { - splitControlSend.SplitterPositionChanged += OnSplitContainerPositionChanged; ; - sendMainView.FocusedRowObjectChanged += OnSendMainViewFocusedRowObjectChanged; + splitControlSend.SplitterPositionChanged += OnSplitContainerPositionChanged; + sendMainView.CustomColumnDisplayText += OnCustomColumnDisplayText; + sendDetailView.CustomColumnDisplayText += OnCustomColumnDisplayText; + sendMainView.InitNewRow += OnViewInitNewRow; + sendDetailView.InitNewRow += OnViewInitNewRow; + sendMainView.FocusedRowObjectChanged += OnFocusedRowObjectChanged; btnApiAdd.Click += OnBtnAddClick; btnApiDelete.Click += OnBtnDeleteClick; btnApiSave.Click += OnBtnSaveClick; @@ -93,18 +100,24 @@ namespace Lskj.PubApiSetModule { if (sender == btnApiSave) { - sendMainView.UpdateCurrentRow(); - if (sendMainView.DataSource != null && sendMainView.DataSource is DataTable sourceTable) + if (sendGcMain.DataSource != null && sendGcMain.DataSource is DataTable sourceTable) { SendMainAdapterObj.Update(sourceTable); + int rowHandle = sendMainView.FocusedRowHandle; + InitApiTabDataSource(); + sendMainView.FocusedRowHandle = rowHandle; } } else if (sender == btnPmsSave) { - sendDetailView.UpdateCurrentRow(); - if (sendDetailView.DataSource != null && sendDetailView.DataSource is DataTable sourceTable) + if (sendGcDetail.DataSource != null && sendGcDetail.DataSource is DataTable sourceTable) { SendDetailAdapterObj.Update(sourceTable); + DataRow focusedRow = sendMainView.GetFocusedDataRow(); + string apiId = focusedRow["id"] + ""; + int rowHandle = sendDetailView.FocusedRowHandle; + InitApiPmsTabDataSource(apiId); + sendDetailView.FocusedRowHandle = rowHandle; } } } @@ -113,7 +126,7 @@ namespace Lskj.PubApiSetModule /// /// /// - private void OnSendMainViewFocusedRowObjectChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs e) + private void OnFocusedRowObjectChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs e) { if (e.Row is DataRowView dataRowView) { @@ -122,7 +135,41 @@ namespace Lskj.PubApiSetModule InitApiPmsTabDataSource(apiId); } } + /// + /// 显示下拉框的值 + /// + /// + /// + private void OnCustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) + { + if (e.Column.ColumnEdit is RepositoryItemComboBox repositoryItemCombo) + { + ComBoxModel comBoxModel = repositoryItemCombo.Items.Cast().Where(n => (n.Value + "").Equals(e.Value + "")).FirstOrDefault(); + if (comBoxModel != null) + { + e.DisplayText = comBoxModel.ToString(); + } + } + } + /// + /// 添加行时 + /// + /// + /// + private void OnViewInitNewRow(object sender, InitNewRowEventArgs e) + { + GridView gridView = (GridView)sender; + if (gridView == sendMainView) + { + } + else if (gridView == sendDetailView) + { + DataRow parentRow = sendMainView.GetFocusedDataRow(); + DataRow dataRow = gridView.GetDataRow(e.RowHandle); + dataRow["apiId"] = parentRow["id"]; + } + } /// /// 初始化接口主表数据源 /// @@ -130,14 +177,10 @@ namespace Lskj.PubApiSetModule { //SendMain SendMainAdapterObj = BaseImpl.GetAdapterResult("select * from p_systemeventapitab"); + SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(SendMainAdapterObj); DataTable sendMainTable = new DataTable(); SendMainAdapterObj.Fill(sendMainTable); sendGcMain.DataSource = sendMainTable; - //SendDetail - SendDetailAdapterObj = BaseImpl.GetAdapterResult("select * from p_systemeventapipmstab"); - DataTable sendDetailTable = new DataTable(); - SendMainAdapterObj.Fill(sendDetailTable); - sendGcDetail.DataSource = sendDetailTable; } /// /// 初始化接口明细表数据源 @@ -146,8 +189,9 @@ namespace Lskj.PubApiSetModule { //SendDetail SendDetailAdapterObj = BaseImpl.GetAdapterResult($"select * from p_systemeventapipmstab where apiid = '{apiId}'"); + SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(SendDetailAdapterObj); DataTable sendDetailTable = new DataTable(); - SendMainAdapterObj.Fill(sendDetailTable); + SendDetailAdapterObj.Fill(sendDetailTable); sendGcDetail.DataSource = sendDetailTable; } /// @@ -178,44 +222,82 @@ namespace Lskj.PubApiSetModule eTypeComboBox.Items.Add(new ComBoxModel() { Value = "BeforeModuleContextMenu", Text = "右键执行前" }); eTypeComboBox.Items.Add(new ComBoxModel() { Value = "AfterModuleAuditStateChange", Text = "审核执行后" }); eTypeComboBox.Items.Add(new ComBoxModel() { Value = "BeforeModuleAuditStateChange", Text = "审核执行前" }); + eTypeComboBox.Items.Add(new ComBoxModel() { Value = "AfterUploadFile", Text = "文件上传后" }); //tokenType - tokenTypeComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "Token文本" }); - tokenTypeComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "Cookie" }); + tokenTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "Token文本" }); + tokenTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "Cookie" }); //eTypeCode - eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "新增" }); - eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = "2", Text = "更新" }); - eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = "3", Text = "删除" }); - eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = "21", Text = "提交审核" }); - eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = "31", Text = "审核" }); - eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = "32", Text = "反审" }); + eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "新增" }); + eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "更新" }); + eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = 3, Text = "删除" }); + eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = 21, Text = "提交审核" }); + eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = 31, Text = "审核" }); + eTypeCodeComboBox.Items.Add(new ComBoxModel() { Value = 32, Text = "反审" }); //pmsType - pmsTypeComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "老版" }); - pmsTypeComboBox.Items.Add(new ComBoxModel() { Value = "2", Text = "新版" }); + pmsTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "老版" }); + pmsTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "新版" }); //allowShowMsg - allowShowMsgComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "不提示" }); - allowShowMsgComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "提示" }); + allowShowMsgComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "不提示" }); + allowShowMsgComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "提示" }); //disableTag - disableTagComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "启用" }); - disableTagComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "禁用" }); + disableTagComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "启用" }); + disableTagComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "禁用" }); #endregion #region 明细表 pmsIdColumn.OptionsColumn.AllowEdit = false; //pmType - pmTypeComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "发送参数" }); - pmTypeComboBox.Items.Add(new ComBoxModel() { Value = "2", Text = "Header参数" }); - pmTypeComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "接收参数" }); + pmTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "发送参数" }); + pmTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "Header参数" }); + pmTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "接收参数" }); //valueType - valueTypeComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "json值" }); - valueTypeComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "json对象" }); - valueTypeComboBox.Items.Add(new ComBoxModel() { Value = "2", Text = "json数组" }); + valueTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "json值" }); + valueTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "json对象" }); + valueTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "json数组" }); //valueDataType - valueDataTypeComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "文本" }); - valueDataTypeComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "整数" }); - valueDataTypeComboBox.Items.Add(new ComBoxModel() { Value = "2", Text = "小数" }); + valueDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "文本" }); + valueDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "整数" }); + valueDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "小数" }); //allowNull - allowNullComboBox.Items.Add(new ComBoxModel() { Value = "1", Text = "必填" }); - allowNullComboBox.Items.Add(new ComBoxModel() { Value = "0", Text = "非必填" }); + allowNullComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "必填" }); + allowNullComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "非必填" }); + //valueEncryptType + valueEncryptTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "UTF8MD5小写" }); + valueEncryptTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "UTF8MD5大写" }); + valueEncryptTypeComboBox.Items.Add(new ComBoxModel() { Value = 3, Text = "URL地址加密" }); + valueEncryptTypeComboBox.Items.Add(new ComBoxModel() { Value = 4, Text = "URL文件Base64" }); #endregion + sendMainView.OptionsBehavior.EditorShowMode = DevExpress.Utils.EditorShowMode.MouseDown; + foreach (GridColumn gridColumn in sendMainView.Columns) + { + if (gridColumn.ColumnEdit is RepositoryItemComboBox repositoryItemCombo) + { + repositoryItemCombo.ParseEditValue += (s, e) => + { + if (e.Value is ComBoxModel comBoxModel) + { + e.Value = comBoxModel.Value; + e.Handled = true; + } + }; + repositoryItemCombo.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; + } + } + sendDetailView.OptionsBehavior.EditorShowMode = DevExpress.Utils.EditorShowMode.MouseDown; + foreach (GridColumn gridColumn in sendDetailView.Columns) + { + if (gridColumn.ColumnEdit is RepositoryItemComboBox repositoryItemCombo) + { + repositoryItemCombo.ParseEditValue += (s, e) => + { + if (e.Value is ComBoxModel comBoxModel) + { + e.Value = comBoxModel.Value; + e.Handled = true; + } + }; + repositoryItemCombo.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; + } + } } /// /// 构建数据表 @@ -245,6 +327,8 @@ namespace Lskj.PubApiSetModule colDic.Add("pmsType", "int"); colDic.Add("allowShowMsg", "int"); colDic.Add("ContentType", "varchar(200)"); + colDic.Add("eTypeCode", "int"); + colDic.Add("disableTag", "int"); string isExitApiTab = "select top 1 * from sysObjects where Id=OBJECT_ID(N'p_systemEventApiTab') and xtype='U'"; DataTable apiTab = SqlHelper.ExecuteDataTable(isExitApiTab); if (apiTab.Rows.Count > 0)//存在日志表 @@ -295,6 +379,7 @@ namespace Lskj.PubApiSetModule colDic.Add("value", "varchar(8000)"); colDic.Add("valueDataType", "int"); colDic.Add("unionPmsId", "int"); + colDic.Add("valueEncryptType", "int"); colDic.Add("allowNull", "int"); string isExitApiTab = "select top 1 * from sysObjects where Id=OBJECT_ID(N'P_systemEventApiPmsTab') and xtype='U'"; DataTable apiTab = SqlHelper.ExecuteDataTable(isExitApiTab); diff --git a/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj b/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj index 5a94ffd..7e0c4d6 100644 --- a/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj +++ b/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj @@ -5,7 +5,7 @@ Debug AnyCPU {8908B998-4FF9-4748-A9CF-BD256C6FA0BB} - WinExe + Library Lskj.PubApiSetModule Lskj.PubApiSetModule v4.0 @@ -31,6 +31,9 @@ prompt 4 + + + @@ -67,6 +70,7 @@ FrmMain.cs + ResXFileCodeGenerator Resources.Designer.cs