diff --git a/插件库/Lskj.PubApiSetModule/FrmMain.Designer.cs b/插件库/Lskj.PubApiSetModule/FrmMain.Designer.cs index ef8344e..9dfed8c 100644 --- a/插件库/Lskj.PubApiSetModule/FrmMain.Designer.cs +++ b/插件库/Lskj.PubApiSetModule/FrmMain.Designer.cs @@ -107,38 +107,38 @@ namespace Lskj.PubApiSetModule this.btnPmsRefresh = new DevExpress.XtraEditors.SimpleButton(); this.getPage = new DevExpress.XtraTab.XtraTabPage(); this.splitControlGet = new DevExpress.XtraEditors.SplitContainerControl(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.btnGetApiSave = new DevExpress.XtraEditors.SimpleButton(); - this.btnGetApiDelete = new DevExpress.XtraEditors.SimpleButton(); - this.btnGetApiAdd = new DevExpress.XtraEditors.SimpleButton(); - this.btnGetApiRefresh = new DevExpress.XtraEditors.SimpleButton(); this.getGcMain = new DevExpress.XtraGrid.GridControl(); this.getMainView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.getIdColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getDescriptionColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getTableNameColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getActionTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn(); + this.getActionTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); this.getPrimaryKeyColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getOutputKeyColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getAfterSqlColumn = new DevExpress.XtraGrid.Columns.GridColumn(); - this.getIsLoginColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getAfterSqlMemoExEdit = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit(); - this.getActionTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); + this.getIsLoginColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getIsLoginComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); - this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); - this.btnGetApiPmsSave = new DevExpress.XtraEditors.SimpleButton(); - this.btnGetApiPmsDelete = new DevExpress.XtraEditors.SimpleButton(); - this.btnGetApiPmsAdd = new DevExpress.XtraEditors.SimpleButton(); - this.btnGetApiPmsRefresh = new DevExpress.XtraEditors.SimpleButton(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.btnGetApiSave = new DevExpress.XtraEditors.SimpleButton(); + this.btnGetApiDelete = new DevExpress.XtraEditors.SimpleButton(); + this.btnGetApiAdd = new DevExpress.XtraEditors.SimpleButton(); + this.btnGetApiRefresh = new DevExpress.XtraEditors.SimpleButton(); this.getGcDetail = new DevExpress.XtraGrid.GridControl(); this.getDetailView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.getPmsIdColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getPmsFileNameColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getPmsDefaultValueColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getPmsDisInsertColumn = new DevExpress.XtraGrid.Columns.GridColumn(); - this.getPmsDisUpdateColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getPmsDisInsertComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); + this.getPmsDisUpdateColumn = new DevExpress.XtraGrid.Columns.GridColumn(); this.getPmsDisUpdateComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); + this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); + this.btnGetApiPmsSave = new DevExpress.XtraEditors.SimpleButton(); + this.btnGetApiPmsDelete = new DevExpress.XtraEditors.SimpleButton(); + this.btnGetApiPmsAdd = new DevExpress.XtraEditors.SimpleButton(); + this.btnGetApiPmsRefresh = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit(); this.tabMain.SuspendLayout(); this.sendPage.SuspendLayout(); @@ -173,17 +173,17 @@ namespace Lskj.PubApiSetModule this.getPage.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitControlGet)).BeginInit(); this.splitControlGet.SuspendLayout(); - this.flowLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.getGcMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.getMainView)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.getAfterSqlMemoExEdit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.getActionTypeComboBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.getAfterSqlMemoExEdit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.getIsLoginComboBox)).BeginInit(); - this.flowLayoutPanel2.SuspendLayout(); + this.flowLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.getGcDetail)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.getDetailView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.getPmsDisInsertComboBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.getPmsDisUpdateComboBox)).BeginInit(); + this.flowLayoutPanel2.SuspendLayout(); this.SuspendLayout(); // // tabMain @@ -971,63 +971,6 @@ namespace Lskj.PubApiSetModule this.splitControlGet.TabIndex = 5; this.splitControlGet.Text = "splitContainerControl1"; // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Controls.Add(this.btnGetApiSave); - this.flowLayoutPanel1.Controls.Add(this.btnGetApiDelete); - this.flowLayoutPanel1.Controls.Add(this.btnGetApiAdd); - this.flowLayoutPanel1.Controls.Add(this.btnGetApiRefresh); - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 203); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(915, 34); - this.flowLayoutPanel1.TabIndex = 23; - // - // btnGetApiSave - // - this.btnGetApiSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiSave.Appearance.Options.UseFont = true; - this.btnGetApiSave.Location = new System.Drawing.Point(832, 3); - this.btnGetApiSave.Name = "btnGetApiSave"; - this.btnGetApiSave.Size = new System.Drawing.Size(80, 28); - this.btnGetApiSave.TabIndex = 13; - this.btnGetApiSave.TabStop = false; - this.btnGetApiSave.Text = "保存(&S)"; - // - // btnGetApiDelete - // - this.btnGetApiDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiDelete.Appearance.Options.UseFont = true; - this.btnGetApiDelete.Location = new System.Drawing.Point(746, 3); - this.btnGetApiDelete.Name = "btnGetApiDelete"; - this.btnGetApiDelete.Size = new System.Drawing.Size(80, 28); - this.btnGetApiDelete.TabIndex = 14; - this.btnGetApiDelete.TabStop = false; - this.btnGetApiDelete.Text = "删除(&D)"; - // - // btnGetApiAdd - // - this.btnGetApiAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiAdd.Appearance.Options.UseFont = true; - this.btnGetApiAdd.Location = new System.Drawing.Point(660, 3); - this.btnGetApiAdd.Name = "btnGetApiAdd"; - this.btnGetApiAdd.Size = new System.Drawing.Size(80, 28); - this.btnGetApiAdd.TabIndex = 15; - this.btnGetApiAdd.TabStop = false; - this.btnGetApiAdd.Text = "新增(&A)"; - // - // btnGetApiRefresh - // - this.btnGetApiRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiRefresh.Appearance.Options.UseFont = true; - this.btnGetApiRefresh.Location = new System.Drawing.Point(574, 3); - this.btnGetApiRefresh.Name = "btnGetApiRefresh"; - this.btnGetApiRefresh.Size = new System.Drawing.Size(80, 28); - this.btnGetApiRefresh.TabIndex = 16; - this.btnGetApiRefresh.TabStop = false; - this.btnGetApiRefresh.Text = "刷新(&R)"; - // // getGcMain // this.getGcMain.Dock = System.Windows.Forms.DockStyle.Fill; @@ -1111,7 +1054,7 @@ namespace Lskj.PubApiSetModule this.getTableNameColumn.Name = "getTableNameColumn"; this.getTableNameColumn.Visible = true; this.getTableNameColumn.VisibleIndex = 2; - this.getTableNameColumn.Width = 100; + this.getTableNameColumn.Width = 150; // // getActionTypeColumn // @@ -1121,6 +1064,14 @@ namespace Lskj.PubApiSetModule this.getActionTypeColumn.Name = "getActionTypeColumn"; this.getActionTypeColumn.Visible = true; this.getActionTypeColumn.VisibleIndex = 3; + this.getActionTypeColumn.Width = 100; + // + // getActionTypeComboBox + // + this.getActionTypeComboBox.AutoHeight = false; + this.getActionTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.getActionTypeComboBox.Name = "getActionTypeComboBox"; // // getPrimaryKeyColumn // @@ -1138,7 +1089,7 @@ namespace Lskj.PubApiSetModule this.getOutputKeyColumn.Name = "getOutputKeyColumn"; this.getOutputKeyColumn.Visible = true; this.getOutputKeyColumn.VisibleIndex = 5; - this.getOutputKeyColumn.Width = 150; + this.getOutputKeyColumn.Width = 200; // // getAfterSqlColumn // @@ -1150,6 +1101,13 @@ namespace Lskj.PubApiSetModule this.getAfterSqlColumn.VisibleIndex = 6; this.getAfterSqlColumn.Width = 100; // + // getAfterSqlMemoExEdit + // + this.getAfterSqlMemoExEdit.AutoHeight = false; + this.getAfterSqlMemoExEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.getAfterSqlMemoExEdit.Name = "getAfterSqlMemoExEdit"; + // // getIsLoginColumn // this.getIsLoginColumn.Caption = "登陆验证"; @@ -1158,20 +1116,7 @@ namespace Lskj.PubApiSetModule this.getIsLoginColumn.Name = "getIsLoginColumn"; this.getIsLoginColumn.Visible = true; this.getIsLoginColumn.VisibleIndex = 7; - // - // getAfterSqlMemoExEdit - // - this.getAfterSqlMemoExEdit.AutoHeight = false; - this.getAfterSqlMemoExEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.getAfterSqlMemoExEdit.Name = "getAfterSqlMemoExEdit"; - // - // getActionTypeComboBox - // - this.getActionTypeComboBox.AutoHeight = false; - this.getActionTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.getActionTypeComboBox.Name = "getActionTypeComboBox"; + this.getIsLoginColumn.Width = 100; // // getIsLoginComboBox // @@ -1180,62 +1125,62 @@ namespace Lskj.PubApiSetModule new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.getIsLoginComboBox.Name = "getIsLoginComboBox"; // - // flowLayoutPanel2 + // flowLayoutPanel1 // - this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsSave); - this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsDelete); - this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsAdd); - this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsRefresh); - this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; - this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowLayoutPanel2.Location = new System.Drawing.Point(0, 250); - this.flowLayoutPanel2.Name = "flowLayoutPanel2"; - this.flowLayoutPanel2.Size = new System.Drawing.Size(915, 34); - this.flowLayoutPanel2.TabIndex = 24; + this.flowLayoutPanel1.Controls.Add(this.btnGetApiSave); + this.flowLayoutPanel1.Controls.Add(this.btnGetApiDelete); + this.flowLayoutPanel1.Controls.Add(this.btnGetApiAdd); + this.flowLayoutPanel1.Controls.Add(this.btnGetApiRefresh); + this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 203); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(915, 34); + this.flowLayoutPanel1.TabIndex = 23; // - // btnGetApiPmsSave + // btnGetApiSave // - this.btnGetApiPmsSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiPmsSave.Appearance.Options.UseFont = true; - this.btnGetApiPmsSave.Location = new System.Drawing.Point(832, 3); - this.btnGetApiPmsSave.Name = "btnGetApiPmsSave"; - this.btnGetApiPmsSave.Size = new System.Drawing.Size(80, 28); - this.btnGetApiPmsSave.TabIndex = 13; - this.btnGetApiPmsSave.TabStop = false; - this.btnGetApiPmsSave.Text = "保存(&S)"; + this.btnGetApiSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiSave.Appearance.Options.UseFont = true; + this.btnGetApiSave.Location = new System.Drawing.Point(832, 3); + this.btnGetApiSave.Name = "btnGetApiSave"; + this.btnGetApiSave.Size = new System.Drawing.Size(80, 28); + this.btnGetApiSave.TabIndex = 13; + this.btnGetApiSave.TabStop = false; + this.btnGetApiSave.Text = "保存(&S)"; // - // btnGetApiPmsDelete + // btnGetApiDelete // - this.btnGetApiPmsDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiPmsDelete.Appearance.Options.UseFont = true; - this.btnGetApiPmsDelete.Location = new System.Drawing.Point(746, 3); - this.btnGetApiPmsDelete.Name = "btnGetApiPmsDelete"; - this.btnGetApiPmsDelete.Size = new System.Drawing.Size(80, 28); - this.btnGetApiPmsDelete.TabIndex = 14; - this.btnGetApiPmsDelete.TabStop = false; - this.btnGetApiPmsDelete.Text = "删除(&D)"; + this.btnGetApiDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiDelete.Appearance.Options.UseFont = true; + this.btnGetApiDelete.Location = new System.Drawing.Point(746, 3); + this.btnGetApiDelete.Name = "btnGetApiDelete"; + this.btnGetApiDelete.Size = new System.Drawing.Size(80, 28); + this.btnGetApiDelete.TabIndex = 14; + this.btnGetApiDelete.TabStop = false; + this.btnGetApiDelete.Text = "删除(&D)"; // - // btnGetApiPmsAdd + // btnGetApiAdd // - this.btnGetApiPmsAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiPmsAdd.Appearance.Options.UseFont = true; - this.btnGetApiPmsAdd.Location = new System.Drawing.Point(660, 3); - this.btnGetApiPmsAdd.Name = "btnGetApiPmsAdd"; - this.btnGetApiPmsAdd.Size = new System.Drawing.Size(80, 28); - this.btnGetApiPmsAdd.TabIndex = 15; - this.btnGetApiPmsAdd.TabStop = false; - this.btnGetApiPmsAdd.Text = "新增(&A)"; + this.btnGetApiAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiAdd.Appearance.Options.UseFont = true; + this.btnGetApiAdd.Location = new System.Drawing.Point(660, 3); + this.btnGetApiAdd.Name = "btnGetApiAdd"; + this.btnGetApiAdd.Size = new System.Drawing.Size(80, 28); + this.btnGetApiAdd.TabIndex = 15; + this.btnGetApiAdd.TabStop = false; + this.btnGetApiAdd.Text = "新增(&A)"; // - // btnGetApiPmsRefresh + // btnGetApiRefresh // - this.btnGetApiPmsRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnGetApiPmsRefresh.Appearance.Options.UseFont = true; - this.btnGetApiPmsRefresh.Location = new System.Drawing.Point(574, 3); - this.btnGetApiPmsRefresh.Name = "btnGetApiPmsRefresh"; - this.btnGetApiPmsRefresh.Size = new System.Drawing.Size(80, 28); - this.btnGetApiPmsRefresh.TabIndex = 16; - this.btnGetApiPmsRefresh.TabStop = false; - this.btnGetApiPmsRefresh.Text = "刷新(&R)"; + this.btnGetApiRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiRefresh.Appearance.Options.UseFont = true; + this.btnGetApiRefresh.Location = new System.Drawing.Point(574, 3); + this.btnGetApiRefresh.Name = "btnGetApiRefresh"; + this.btnGetApiRefresh.Size = new System.Drawing.Size(80, 28); + this.btnGetApiRefresh.TabIndex = 16; + this.btnGetApiRefresh.TabStop = false; + this.btnGetApiRefresh.Text = "刷新(&R)"; // // getGcDetail // @@ -1326,6 +1271,13 @@ namespace Lskj.PubApiSetModule this.getPmsDisInsertColumn.Visible = true; this.getPmsDisInsertColumn.VisibleIndex = 3; // + // getPmsDisInsertComboBox + // + this.getPmsDisInsertComboBox.AutoHeight = false; + this.getPmsDisInsertComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.getPmsDisInsertComboBox.Name = "getPmsDisInsertComboBox"; + // // getPmsDisUpdateColumn // this.getPmsDisUpdateColumn.Caption = "禁止更新"; @@ -1334,13 +1286,6 @@ namespace Lskj.PubApiSetModule this.getPmsDisUpdateColumn.Visible = true; this.getPmsDisUpdateColumn.VisibleIndex = 4; // - // getPmsDisInsertComboBox - // - this.getPmsDisInsertComboBox.AutoHeight = false; - this.getPmsDisInsertComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.getPmsDisInsertComboBox.Name = "getPmsDisInsertComboBox"; - // // getPmsDisUpdateComboBox // this.getPmsDisUpdateComboBox.AutoHeight = false; @@ -1348,6 +1293,63 @@ namespace Lskj.PubApiSetModule new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.getPmsDisUpdateComboBox.Name = "getPmsDisUpdateComboBox"; // + // flowLayoutPanel2 + // + this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsSave); + this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsDelete); + this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsAdd); + this.flowLayoutPanel2.Controls.Add(this.btnGetApiPmsRefresh); + this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.flowLayoutPanel2.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowLayoutPanel2.Location = new System.Drawing.Point(0, 250); + this.flowLayoutPanel2.Name = "flowLayoutPanel2"; + this.flowLayoutPanel2.Size = new System.Drawing.Size(915, 34); + this.flowLayoutPanel2.TabIndex = 24; + // + // btnGetApiPmsSave + // + this.btnGetApiPmsSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiPmsSave.Appearance.Options.UseFont = true; + this.btnGetApiPmsSave.Location = new System.Drawing.Point(832, 3); + this.btnGetApiPmsSave.Name = "btnGetApiPmsSave"; + this.btnGetApiPmsSave.Size = new System.Drawing.Size(80, 28); + this.btnGetApiPmsSave.TabIndex = 13; + this.btnGetApiPmsSave.TabStop = false; + this.btnGetApiPmsSave.Text = "保存(&S)"; + // + // btnGetApiPmsDelete + // + this.btnGetApiPmsDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiPmsDelete.Appearance.Options.UseFont = true; + this.btnGetApiPmsDelete.Location = new System.Drawing.Point(746, 3); + this.btnGetApiPmsDelete.Name = "btnGetApiPmsDelete"; + this.btnGetApiPmsDelete.Size = new System.Drawing.Size(80, 28); + this.btnGetApiPmsDelete.TabIndex = 14; + this.btnGetApiPmsDelete.TabStop = false; + this.btnGetApiPmsDelete.Text = "删除(&D)"; + // + // btnGetApiPmsAdd + // + this.btnGetApiPmsAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiPmsAdd.Appearance.Options.UseFont = true; + this.btnGetApiPmsAdd.Location = new System.Drawing.Point(660, 3); + this.btnGetApiPmsAdd.Name = "btnGetApiPmsAdd"; + this.btnGetApiPmsAdd.Size = new System.Drawing.Size(80, 28); + this.btnGetApiPmsAdd.TabIndex = 15; + this.btnGetApiPmsAdd.TabStop = false; + this.btnGetApiPmsAdd.Text = "新增(&A)"; + // + // btnGetApiPmsRefresh + // + this.btnGetApiPmsRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnGetApiPmsRefresh.Appearance.Options.UseFont = true; + this.btnGetApiPmsRefresh.Location = new System.Drawing.Point(574, 3); + this.btnGetApiPmsRefresh.Name = "btnGetApiPmsRefresh"; + this.btnGetApiPmsRefresh.Size = new System.Drawing.Size(80, 28); + this.btnGetApiPmsRefresh.TabIndex = 16; + this.btnGetApiPmsRefresh.TabStop = false; + this.btnGetApiPmsRefresh.Text = "刷新(&R)"; + // // FrmMain // this.Appearance.BackColor = System.Drawing.SystemColors.Control; @@ -1393,17 +1395,17 @@ namespace Lskj.PubApiSetModule this.getPage.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitControlGet)).EndInit(); this.splitControlGet.ResumeLayout(false); - this.flowLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.getGcMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.getMainView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.getAfterSqlMemoExEdit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.getActionTypeComboBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.getAfterSqlMemoExEdit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.getIsLoginComboBox)).EndInit(); - this.flowLayoutPanel2.ResumeLayout(false); + this.flowLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.getGcDetail)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.getDetailView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.getPmsDisInsertComboBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.getPmsDisUpdateComboBox)).EndInit(); + this.flowLayoutPanel2.ResumeLayout(false); this.ResumeLayout(false); } diff --git a/插件库/Lskj.PubApiSetModule/FrmMain.cs b/插件库/Lskj.PubApiSetModule/FrmMain.cs index 41078e1..c5784ea 100644 --- a/插件库/Lskj.PubApiSetModule/FrmMain.cs +++ b/插件库/Lskj.PubApiSetModule/FrmMain.cs @@ -1,6 +1,7 @@ using DevExpress.XtraEditors.Repository; using DevExpress.XtraGrid.Columns; using DevExpress.XtraGrid.Views.Grid; +using Kdbndp; using Lskj.Business.Impl; using Lskj.Control; using Lskj.Core; @@ -20,10 +21,10 @@ namespace Lskj.PubApiSetModule public partial class FrmMain : BaseForm { public DynamicApiSetModel Model; - public SqlDataAdapter SendMainAdapterObj; - public SqlDataAdapter SendDetailAdapterObj; - public SqlDataAdapter GetMainAdapterObj; - public SqlDataAdapter GetDetailAdapterObj; + public object SendMainAdapterObj; + public object SendDetailAdapterObj; + public object GetMainAdapterObj; + public object GetDetailAdapterObj; public FrmMain() { InitializeComponent(); @@ -57,6 +58,7 @@ namespace Lskj.PubApiSetModule private void InitEvents() { splitControlSend.SplitterPositionChanged += OnSplitContainerPositionChanged; + splitControlGet.SplitterPositionChanged += OnSplitContainerPositionChanged; #region send sendMainView.CustomColumnDisplayText += OnCustomColumnDisplayText; sendDetailView.CustomColumnDisplayText += OnCustomColumnDisplayText; @@ -155,7 +157,14 @@ namespace Lskj.PubApiSetModule { if (sendGcMain.DataSource != null && sendGcMain.DataSource is DataTable sourceTable) { - SendMainAdapterObj.Update(sourceTable); + if (SendMainAdapterObj is SqlDataAdapter sqlDataAdapter) + { + sqlDataAdapter.Update(sourceTable); + } + else if (SendMainAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + kdbndpDataAdapter.Update(sourceTable); + } int rowHandle = sendMainView.FocusedRowHandle; InitApiTabDataSource(); sendMainView.FocusedRowHandle = rowHandle; @@ -165,7 +174,14 @@ namespace Lskj.PubApiSetModule { if (sendGcDetail.DataSource != null && sendGcDetail.DataSource is DataTable sourceTable) { - SendDetailAdapterObj.Update(sourceTable); + if (SendDetailAdapterObj is SqlDataAdapter sqlDataAdapter) + { + sqlDataAdapter.Update(sourceTable); + } + else if (SendDetailAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + kdbndpDataAdapter.Update(sourceTable); + } DataRow focusedRow = sendMainView.GetFocusedDataRow(); string apiId = focusedRow["id"] + ""; int rowHandle = sendDetailView.FocusedRowHandle; @@ -177,7 +193,14 @@ namespace Lskj.PubApiSetModule { if (getGcMain.DataSource != null && getGcMain.DataSource is DataTable sourceTable) { - GetMainAdapterObj.Update(sourceTable); + if (GetMainAdapterObj is SqlDataAdapter sqlDataAdapter) + { + sqlDataAdapter.Update(sourceTable); + } + else if (GetMainAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + kdbndpDataAdapter.Update(sourceTable); + } DataRow focusedRow = getMainView.GetFocusedDataRow(); string apiId = focusedRow["id"] + ""; int rowHandle = getMainView.FocusedRowHandle; @@ -189,7 +212,14 @@ namespace Lskj.PubApiSetModule { if (getGcDetail.DataSource != null && getGcDetail.DataSource is DataTable sourceTable) { - GetDetailAdapterObj.Update(sourceTable); + if (GetDetailAdapterObj is SqlDataAdapter sqlDataAdapter) + { + sqlDataAdapter.Update(sourceTable); + } + else if (GetDetailAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + kdbndpDataAdapter.Update(sourceTable); + } DataRow focusedRow = getDetailView.GetFocusedDataRow(); string apiId = focusedRow["id"] + ""; int rowHandle = getDetailView.FocusedRowHandle; @@ -214,15 +244,16 @@ namespace Lskj.PubApiSetModule else if (sender == btnPmsRefresh) { DataRow focusedRow = sendMainView.GetFocusedDataRow(); - string apiId = focusedRow["id"] + ""; - int rowHandle = sendDetailView.FocusedRowHandle; - InitApiPmsTabDataSource(apiId); - sendDetailView.FocusedRowHandle = rowHandle; + if (focusedRow != null) + { + string apiId = focusedRow["id"] + ""; + int rowHandle = sendDetailView.FocusedRowHandle; + InitApiPmsTabDataSource(apiId); + sendDetailView.FocusedRowHandle = rowHandle; + } } else if (sender == btnGetApiRefresh) { - DataRow focusedRow = getMainView.GetFocusedDataRow(); - string apiId = focusedRow["id"] + ""; int rowHandle = getMainView.FocusedRowHandle; InitGetApiTabDataSource(); getMainView.FocusedRowHandle = rowHandle; @@ -230,10 +261,13 @@ namespace Lskj.PubApiSetModule else if (sender == btnGetApiPmsRefresh) { DataRow focusedRow = getDetailView.GetFocusedDataRow(); - string apiId = focusedRow["id"] + ""; - int rowHandle = getDetailView.FocusedRowHandle; - InitGetApiPmsTabDataSource(apiId); - getDetailView.FocusedRowHandle = rowHandle; + if (focusedRow != null) + { + string apiId = focusedRow["id"] + ""; + int rowHandle = getDetailView.FocusedRowHandle; + InitGetApiPmsTabDataSource(apiId); + getDetailView.FocusedRowHandle = rowHandle; + } } } /// @@ -313,9 +347,17 @@ namespace Lskj.PubApiSetModule { //SendMain SendMainAdapterObj = BaseImpl.GetAdapterResult("select * from p_systemeventapitab"); - SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(SendMainAdapterObj); DataTable sendMainTable = new DataTable(); - SendMainAdapterObj.Fill(sendMainTable); + if (SendMainAdapterObj is SqlDataAdapter sqlDataAdapter) + { + SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(sqlDataAdapter); + sqlDataAdapter.Fill(sendMainTable); + } + else if (SendMainAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + KdbndpCommandBuilder sqlCommandBuilder = new KdbndpCommandBuilder(kdbndpDataAdapter); + kdbndpDataAdapter.Fill(sendMainTable); + } sendGcMain.DataSource = sendMainTable; } /// @@ -325,9 +367,17 @@ namespace Lskj.PubApiSetModule { //SendDetail SendDetailAdapterObj = BaseImpl.GetAdapterResult($"select * from p_systemeventapipmstab where apiid = '{apiId}'"); - SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(SendDetailAdapterObj); DataTable sendDetailTable = new DataTable(); - SendDetailAdapterObj.Fill(sendDetailTable); + if (SendDetailAdapterObj is SqlDataAdapter sqlDataAdapter) + { + SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(sqlDataAdapter); + sqlDataAdapter.Fill(sendDetailTable); + } + else if (SendDetailAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + KdbndpCommandBuilder sqlCommandBuilder = new KdbndpCommandBuilder(kdbndpDataAdapter); + kdbndpDataAdapter.Fill(sendDetailTable); + } sendGcDetail.DataSource = sendDetailTable; } /// @@ -337,9 +387,17 @@ namespace Lskj.PubApiSetModule { //SendMain GetMainAdapterObj = BaseImpl.GetAdapterResult("select * from P_SystemToLsApiTab"); - SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(GetMainAdapterObj); DataTable getMainTable = new DataTable(); - GetMainAdapterObj.Fill(getMainTable); + if (GetMainAdapterObj is SqlDataAdapter sqlDataAdapter) + { + SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(sqlDataAdapter); + sqlDataAdapter.Fill(getMainTable); + } + else if (SendDetailAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + KdbndpCommandBuilder sqlCommandBuilder = new KdbndpCommandBuilder(kdbndpDataAdapter); + kdbndpDataAdapter.Fill(getMainTable); + } getGcMain.DataSource = getMainTable; } /// @@ -349,9 +407,17 @@ namespace Lskj.PubApiSetModule { //SendDetail GetDetailAdapterObj = BaseImpl.GetAdapterResult($"select * from P_SystemToLsApiPmsTab where mainId = '{apiId}'"); - SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(GetDetailAdapterObj); DataTable getDetailTable = new DataTable(); - GetDetailAdapterObj.Fill(getDetailTable); + if (GetDetailAdapterObj is SqlDataAdapter sqlDataAdapter) + { + SqlCommandBuilder sqlCommandBuilder = new SqlCommandBuilder(sqlDataAdapter); + sqlDataAdapter.Fill(getDetailTable); + } + else if (GetDetailAdapterObj is KdbndpDataAdapter kdbndpDataAdapter) + { + KdbndpCommandBuilder sqlCommandBuilder = new KdbndpCommandBuilder(kdbndpDataAdapter); + kdbndpDataAdapter.Fill(getDetailTable); + } getGcDetail.DataSource = getDetailTable; } /// @@ -426,6 +492,7 @@ namespace Lskj.PubApiSetModule 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" }); + valueEncryptTypeComboBox.Items.Add(new ComBoxModel() { Value = 5, Text = "RSA" }); #endregion #region 朗速接口主表 getIdColumn.OptionsColumn.AllowEdit = false; @@ -591,6 +658,7 @@ namespace Lskj.PubApiSetModule colDic.Add("valueDataType", "int"); colDic.Add("unionPmsId", "int"); colDic.Add("valueEncryptType", "int"); + colDic.Add("encryptKey", "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); @@ -969,4 +1037,15 @@ namespace Lskj.PubApiSetModule #endregion /// /// 设置分割条位置 - \ No newline at end of file + /// + private void InitlizeSpiltLocation() + { + try + { + string splitControlSendWidth = IniHelper.Read("PubApiSetModule_SplitControlSendWidth");//通过Key获取Value值 + if (!string.IsNullOrEmpty(splitControlSendWidth)) + { + splitControlSend.SplitterPosition = Convert.ToInt32(splitControlSendWidth); + } + string splitControlGetWidth = IniHelper.Read("PubApiSetModule_SplitControlGetWidth");//通过Key获取Value值 + if (!string.IsNullOrEmpty(splitControlGe \ No newline at end of file diff --git a/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj b/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj index 7e0c4d6..a8b8296 100644 --- a/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj +++ b/插件库/Lskj.PubApiSetModule/Lskj.PubApiSetModule.csproj @@ -42,6 +42,10 @@ + + False + ..\..\引用DLL\Kdbndp.dll + False ..\..\引用DLL\Newtonsoft.Json.dll