SVN-Revision: r483
This commit is contained in:
tdx
2025-04-14 01:56:45 +00:00
parent f84692ea87
commit 453da6c084
11 changed files with 1337 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lskj.Util;
using Lskj.Business;
using System.Windows.Forms;
using Lskj.Model;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Data;
namespace Lskj.PubApiSetModule
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicApiSetModel dynamicModel = new DynamicApiSetModel(obj);
FrmMain main = new FrmMain();
this.SubForm = main;
main.Model = dynamicModel;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.PubApiSetModule.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
/// <summary>
/// 入口模型
/// </summary>
public class DynamicApiSetModel : DynamicModel
{
/// <summary>
/// 初始化默认参数(1.标题、2、用户ID、3.用户名、4.权限、5.模块编号、6.菜单ID)
/// </summary>
/// <param name="args">The arguments.</param>
public DynamicApiSetModel(string[] args) : base(args)
{
+742
View File
@@ -0,0 +1,742 @@
namespace Lskj.PubApiSetModule
{
partial class FrmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
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.sendGcMain = new DevExpress.XtraGrid.GridControl();
this.sendMainView = new DevExpress.XtraGrid.Views.Grid.GridView();
this.titleColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.urlColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.dllcoidColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.contextMenuIdColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.reqDataTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.reqDataTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.resDataTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.resDataTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.methodColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.methodComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.datasourceColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.datasourceMemoExEdit = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit();
this.actionTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.actionTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.eTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.eTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.actionDelayColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.finshDataPmColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.finshActionColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.isSucceedCondColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.isSucceedCondMemoExEdit = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit();
this.tokenApiIdColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.tokenTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.tokenTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.pmsTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.pmsTypeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.ContentTypeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.allowShowMsgColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.allowShowMsgComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.sendGcDetail = new DevExpress.XtraGrid.GridControl();
this.sendDetailView = new DevExpress.XtraGrid.Views.Grid.GridView();
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.eTypeCodeColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.eTypeCodeComboBox = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
this.disableTagColumn = new DevExpress.XtraGrid.Columns.GridColumn();
this.disableTagComboBox = 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();
((System.ComponentModel.ISupportInitialize)(this.sendGcMain)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.sendMainView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.reqDataTypeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.resDataTypeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.methodComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.datasourceMemoExEdit)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.actionTypeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.eTypeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.isSucceedCondMemoExEdit)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tokenTypeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pmsTypeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.allowShowMsgComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.sendGcDetail)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.sendDetailView)).BeginInit();
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.eTypeCodeComboBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.disableTagComboBox)).BeginInit();
this.SuspendLayout();
//
// tabMain
//
this.tabMain.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.tabMain.BorderStylePage = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
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.TabIndex = 6;
this.tabMain.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.sendPage,
this.getPage});
//
// sendPage
//
this.sendPage.Controls.Add(this.splitControlSend);
this.sendPage.Name = "sendPage";
this.sendPage.Size = new System.Drawing.Size(852, 526);
this.sendPage.Text = "推送接口";
//
// splitControlSend
//
this.splitControlSend.Appearance.BackColor = System.Drawing.Color.Transparent;
this.splitControlSend.Appearance.Options.UseBackColor = true;
this.splitControlSend.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.splitControlSend.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitControlSend.Horizontal = false;
this.splitControlSend.Location = new System.Drawing.Point(0, 0);
this.splitControlSend.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.splitControlSend.Name = "splitControlSend";
this.splitControlSend.Panel1.Controls.Add(this.sendGcMain);
this.splitControlSend.Panel1.Text = "Panel1";
this.splitControlSend.Panel2.Controls.Add(this.sendGcDetail);
this.splitControlSend.Panel2.Text = "Panel2";
this.splitControlSend.Size = new System.Drawing.Size(852, 526);
this.splitControlSend.SplitterPosition = 237;
this.splitControlSend.TabIndex = 4;
this.splitControlSend.Text = "splitContainerControl1";
//
// sendGcMain
//
this.sendGcMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.sendGcMain.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
gridLevelNode1.RelationName = "Level1";
this.sendGcMain.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] {
gridLevelNode1});
this.sendGcMain.Location = new System.Drawing.Point(0, 0);
this.sendGcMain.MainView = this.sendMainView;
this.sendGcMain.Margin = new System.Windows.Forms.Padding(4);
this.sendGcMain.Name = "sendGcMain";
this.sendGcMain.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.reqDataTypeComboBox,
this.resDataTypeComboBox,
this.methodComboBox,
this.datasourceMemoExEdit,
this.actionTypeComboBox,
this.eTypeComboBox,
this.isSucceedCondMemoExEdit,
this.tokenTypeComboBox,
this.pmsTypeComboBox,
this.allowShowMsgComboBox,
this.eTypeCodeComboBox,
this.disableTagComboBox});
this.sendGcMain.Size = new System.Drawing.Size(852, 237);
this.sendGcMain.TabIndex = 5;
this.sendGcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.sendMainView});
//
// sendMainView
//
this.sendMainView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.sendMainView.Appearance.HeaderPanel.Options.UseFont = true;
this.sendMainView.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.sendMainView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.sendMainView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.sendMainView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.sendMainView.Appearance.Preview.Options.UseFont = true;
this.sendMainView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.sendMainView.Appearance.Row.Options.UseBackColor = true;
this.sendMainView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.sendMainView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.titleColumn,
this.urlColumn,
this.dllcoidColumn,
this.contextMenuIdColumn,
this.reqDataTypeColumn,
this.resDataTypeColumn,
this.methodColumn,
this.datasourceColumn,
this.actionTypeColumn,
this.eTypeColumn,
this.eTypeCodeColumn,
this.actionDelayColumn,
this.finshDataPmColumn,
this.finshActionColumn,
this.isSucceedCondColumn,
this.tokenApiIdColumn,
this.tokenTypeColumn,
this.pmsTypeColumn,
this.ContentTypeColumn,
this.allowShowMsgColumn,
this.disableTagColumn});
this.sendMainView.GridControl = this.sendGcMain;
this.sendMainView.IndicatorWidth = 40;
this.sendMainView.Name = "sendMainView";
this.sendMainView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
this.sendMainView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
this.sendMainView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
this.sendMainView.OptionsFilter.ShowAllTableValuesInFilterPopup = true;
this.sendMainView.OptionsFind.FindNullPrompt = "";
this.sendMainView.OptionsSelection.MultiSelect = true;
this.sendMainView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
this.sendMainView.OptionsView.AllowHtmlDrawHeaders = true;
this.sendMainView.OptionsView.ColumnAutoWidth = false;
this.sendMainView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
this.sendMainView.OptionsView.RowAutoHeight = true;
this.sendMainView.OptionsView.ShowGroupPanel = false;
this.sendMainView.PaintStyleName = "Skin";
//
// titleColumn
//
this.titleColumn.Caption = "接口标题";
this.titleColumn.FieldName = "title";
this.titleColumn.Name = "titleColumn";
this.titleColumn.Visible = true;
this.titleColumn.VisibleIndex = 0;
//
// urlColumn
//
this.urlColumn.Caption = "请求地址";
this.urlColumn.FieldName = "url";
this.urlColumn.Name = "urlColumn";
this.urlColumn.Visible = true;
this.urlColumn.VisibleIndex = 1;
this.urlColumn.Width = 150;
//
// dllcoidColumn
//
this.dllcoidColumn.Caption = "模块地址";
this.dllcoidColumn.FieldName = "dllcoid";
this.dllcoidColumn.Name = "dllcoidColumn";
this.dllcoidColumn.Visible = true;
this.dllcoidColumn.VisibleIndex = 2;
//
// contextMenuIdColumn
//
this.contextMenuIdColumn.Caption = "右键编码";
this.contextMenuIdColumn.FieldName = "contextMenuId";
this.contextMenuIdColumn.Name = "contextMenuIdColumn";
this.contextMenuIdColumn.Visible = true;
this.contextMenuIdColumn.VisibleIndex = 3;
//
// reqDataTypeColumn
//
this.reqDataTypeColumn.Caption = "请求数据类型";
this.reqDataTypeColumn.ColumnEdit = this.reqDataTypeComboBox;
this.reqDataTypeColumn.FieldName = "reqDataType";
this.reqDataTypeColumn.Name = "reqDataTypeColumn";
this.reqDataTypeColumn.Visible = true;
this.reqDataTypeColumn.VisibleIndex = 4;
this.reqDataTypeColumn.Width = 85;
//
// reqDataTypeComboBox
//
this.reqDataTypeComboBox.AutoHeight = false;
this.reqDataTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.reqDataTypeComboBox.Name = "reqDataTypeComboBox";
//
// resDataTypeColumn
//
this.resDataTypeColumn.Caption = "返回数据类型";
this.resDataTypeColumn.ColumnEdit = this.resDataTypeComboBox;
this.resDataTypeColumn.FieldName = "resDataType";
this.resDataTypeColumn.Name = "resDataTypeColumn";
this.resDataTypeColumn.Visible = true;
this.resDataTypeColumn.VisibleIndex = 5;
this.resDataTypeColumn.Width = 85;
//
// resDataTypeComboBox
//
this.resDataTypeComboBox.AutoHeight = false;
this.resDataTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.resDataTypeComboBox.Name = "resDataTypeComboBox";
//
// methodColumn
//
this.methodColumn.Caption = "请求方法";
this.methodColumn.ColumnEdit = this.methodComboBox;
this.methodColumn.FieldName = "method";
this.methodColumn.Name = "methodColumn";
this.methodColumn.Visible = true;
this.methodColumn.VisibleIndex = 6;
//
// methodComboBox
//
this.methodComboBox.AutoHeight = false;
this.methodComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.methodComboBox.Name = "methodComboBox";
//
// datasourceColumn
//
this.datasourceColumn.Caption = "请求数据源";
this.datasourceColumn.ColumnEdit = this.datasourceMemoExEdit;
this.datasourceColumn.FieldName = "datasource";
this.datasourceColumn.Name = "datasourceColumn";
this.datasourceColumn.Visible = true;
this.datasourceColumn.VisibleIndex = 7;
this.datasourceColumn.Width = 100;
//
// datasourceMemoExEdit
//
this.datasourceMemoExEdit.AutoHeight = false;
this.datasourceMemoExEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.datasourceMemoExEdit.Name = "datasourceMemoExEdit";
//
// actionTypeColumn
//
this.actionTypeColumn.Caption = "触发方式";
this.actionTypeColumn.ColumnEdit = this.actionTypeComboBox;
this.actionTypeColumn.FieldName = "actionType";
this.actionTypeColumn.Name = "actionTypeColumn";
this.actionTypeColumn.Visible = true;
this.actionTypeColumn.VisibleIndex = 8;
//
// actionTypeComboBox
//
this.actionTypeComboBox.AutoHeight = false;
this.actionTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.actionTypeComboBox.Name = "actionTypeComboBox";
//
// eTypeColumn
//
this.eTypeColumn.Caption = "事件名称";
this.eTypeColumn.ColumnEdit = this.eTypeComboBox;
this.eTypeColumn.FieldName = "eType";
this.eTypeColumn.Name = "eTypeColumn";
this.eTypeColumn.Visible = true;
this.eTypeColumn.VisibleIndex = 10;
//
// eTypeComboBox
//
this.eTypeComboBox.AutoHeight = false;
this.eTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.eTypeComboBox.Name = "eTypeComboBox";
//
// actionDelayColumn
//
this.actionDelayColumn.Caption = "循环间隔";
this.actionDelayColumn.FieldName = "actionDelay";
this.actionDelayColumn.Name = "actionDelayColumn";
this.actionDelayColumn.Visible = true;
this.actionDelayColumn.VisibleIndex = 9;
//
// finshDataPmColumn
//
this.finshDataPmColumn.Caption = "后处理参数";
this.finshDataPmColumn.FieldName = "finshDataPm";
this.finshDataPmColumn.Name = "finshDataPmColumn";
this.finshDataPmColumn.Visible = true;
this.finshDataPmColumn.VisibleIndex = 12;
//
// finshActionColumn
//
this.finshActionColumn.Caption = "后处理逻辑";
this.finshActionColumn.FieldName = "finshAction";
this.finshActionColumn.Name = "finshActionColumn";
this.finshActionColumn.Visible = true;
this.finshActionColumn.VisibleIndex = 11;
this.finshActionColumn.Width = 100;
//
// isSucceedCondColumn
//
this.isSucceedCondColumn.Caption = "执行成功条件";
this.isSucceedCondColumn.ColumnEdit = this.isSucceedCondMemoExEdit;
this.isSucceedCondColumn.FieldName = "isSucceedCond";
this.isSucceedCondColumn.Name = "isSucceedCondColumn";
this.isSucceedCondColumn.Visible = true;
this.isSucceedCondColumn.VisibleIndex = 13;
//
// isSucceedCondMemoExEdit
//
this.isSucceedCondMemoExEdit.AutoHeight = false;
this.isSucceedCondMemoExEdit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.isSucceedCondMemoExEdit.Name = "isSucceedCondMemoExEdit";
//
// tokenApiIdColumn
//
this.tokenApiIdColumn.Caption = "Token编号";
this.tokenApiIdColumn.FieldName = "tokenApiId";
this.tokenApiIdColumn.Name = "tokenApiIdColumn";
this.tokenApiIdColumn.Visible = true;
this.tokenApiIdColumn.VisibleIndex = 17;
//
// tokenTypeColumn
//
this.tokenTypeColumn.Caption = "Token类型";
this.tokenTypeColumn.ColumnEdit = this.tokenTypeComboBox;
this.tokenTypeColumn.FieldName = "tokenType";
this.tokenTypeColumn.Name = "tokenTypeColumn";
this.tokenTypeColumn.Visible = true;
this.tokenTypeColumn.VisibleIndex = 14;
//
// tokenTypeComboBox
//
this.tokenTypeComboBox.AutoHeight = false;
this.tokenTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.tokenTypeComboBox.Name = "tokenTypeComboBox";
//
// pmsTypeColumn
//
this.pmsTypeColumn.Caption = "参数类型";
this.pmsTypeColumn.ColumnEdit = this.pmsTypeComboBox;
this.pmsTypeColumn.FieldName = "pmsType";
this.pmsTypeColumn.Name = "pmsTypeColumn";
this.pmsTypeColumn.Visible = true;
this.pmsTypeColumn.VisibleIndex = 15;
//
// pmsTypeComboBox
//
this.pmsTypeComboBox.AutoHeight = false;
this.pmsTypeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.pmsTypeComboBox.Name = "pmsTypeComboBox";
//
// ContentTypeColumn
//
this.ContentTypeColumn.Caption = "ContentType";
this.ContentTypeColumn.FieldName = "ContentType";
this.ContentTypeColumn.Name = "ContentTypeColumn";
this.ContentTypeColumn.Visible = true;
this.ContentTypeColumn.VisibleIndex = 16;
//
// allowShowMsgColumn
//
this.allowShowMsgColumn.Caption = "是否弹出提示";
this.allowShowMsgColumn.ColumnEdit = this.allowShowMsgComboBox;
this.allowShowMsgColumn.FieldName = "allowShowMsg";
this.allowShowMsgColumn.Name = "allowShowMsgColumn";
this.allowShowMsgColumn.Visible = true;
this.allowShowMsgColumn.VisibleIndex = 18;
//
// allowShowMsgComboBox
//
this.allowShowMsgComboBox.AutoHeight = false;
this.allowShowMsgComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.allowShowMsgComboBox.Name = "allowShowMsgComboBox";
//
// sendGcDetail
//
this.sendGcDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.sendGcDetail.EmbeddedNavigator.Margin = new System.Windows.Forms.Padding(4);
gridLevelNode2.RelationName = "Level1";
this.sendGcDetail.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] {
gridLevelNode2});
this.sendGcDetail.Location = new System.Drawing.Point(0, 0);
this.sendGcDetail.MainView = this.sendDetailView;
this.sendGcDetail.Margin = new System.Windows.Forms.Padding(4);
this.sendGcDetail.Name = "sendGcDetail";
this.sendGcDetail.Size = new System.Drawing.Size(852, 284);
this.sendGcDetail.TabIndex = 5;
this.sendGcDetail.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.sendDetailView});
//
// sendDetailView
//
this.sendDetailView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.sendDetailView.Appearance.HeaderPanel.Options.UseFont = true;
this.sendDetailView.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.sendDetailView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.sendDetailView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.sendDetailView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.sendDetailView.Appearance.Preview.Options.UseFont = true;
this.sendDetailView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.sendDetailView.Appearance.Row.Options.UseBackColor = true;
this.sendDetailView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.sendDetailView.GridControl = this.sendGcDetail;
this.sendDetailView.IndicatorWidth = 40;
this.sendDetailView.Name = "sendDetailView";
this.sendDetailView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
this.sendDetailView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
this.sendDetailView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
this.sendDetailView.OptionsFilter.ShowAllTableValuesInFilterPopup = true;
this.sendDetailView.OptionsFind.FindNullPrompt = "";
this.sendDetailView.OptionsSelection.MultiSelect = true;
this.sendDetailView.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
this.sendDetailView.OptionsView.AllowHtmlDrawHeaders = true;
this.sendDetailView.OptionsView.ColumnAutoWidth = false;
this.sendDetailView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
this.sendDetailView.OptionsView.RowAutoHeight = true;
this.sendDetailView.OptionsView.ShowGroupPanel = false;
this.sendDetailView.PaintStyleName = "Skin";
//
// 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";
//
// eTypeCodeColumn
//
this.eTypeCodeColumn.Caption = "事件类型";
this.eTypeCodeColumn.ColumnEdit = this.eTypeCodeComboBox;
this.eTypeCodeColumn.FieldName = "eTypeCode";
this.eTypeCodeColumn.Name = "eTypeCodeColumn";
this.eTypeCodeColumn.Visible = true;
this.eTypeCodeColumn.VisibleIndex = 19;
//
// eTypeCodeComboBox
//
this.eTypeCodeComboBox.AutoHeight = false;
this.eTypeCodeComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.eTypeCodeComboBox.Name = "eTypeCodeComboBox";
//
// disableTagColumn
//
this.disableTagColumn.Caption = "是否禁用";
this.disableTagColumn.ColumnEdit = this.disableTagComboBox;
this.disableTagColumn.FieldName = "disableTag";
this.disableTagColumn.Name = "disableTagColumn";
this.disableTagColumn.Visible = true;
this.disableTagColumn.VisibleIndex = 20;
//
// disableTagComboBox
//
this.disableTagComboBox.AutoHeight = false;
this.disableTagComboBox.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.disableTagComboBox.Name = "disableTagComboBox";
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
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.Controls.Add(this.tabMain);
this.Name = "FrmMain";
this.Text = "FrmMain";
((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit();
this.tabMain.ResumeLayout(false);
this.sendPage.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitControlSend)).EndInit();
this.splitControlSend.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sendGcMain)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.sendMainView)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.reqDataTypeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.resDataTypeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.methodComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.datasourceMemoExEdit)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.actionTypeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.eTypeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.isSucceedCondMemoExEdit)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tokenTypeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pmsTypeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.allowShowMsgComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.sendGcDetail)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.sendDetailView)).EndInit();
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.eTypeCodeComboBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.disableTagComboBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
public DevExpress.XtraTab.XtraTabControl tabMain;
private DevExpress.XtraTab.XtraTabPage sendPage;
private DevExpress.XtraTab.XtraTabPage getPage;
private DevExpress.XtraEditors.SplitContainerControl splitControlSend;
private DevExpress.XtraEditors.SplitContainerControl splitControlGet;
public DevExpress.XtraGrid.GridControl sendGcMain;
private DevExpress.XtraGrid.Views.Grid.GridView sendMainView;
public DevExpress.XtraGrid.GridControl sendGcDetail;
private DevExpress.XtraGrid.Views.Grid.GridView sendDetailView;
public DevExpress.XtraGrid.GridControl getGcMain;
private DevExpress.XtraGrid.Views.Grid.GridView getMainView;
public DevExpress.XtraGrid.GridControl getGcDetail;
private DevExpress.XtraGrid.Views.Grid.GridView getDetailView;
private DevExpress.XtraGrid.Columns.GridColumn titleColumn;
private DevExpress.XtraGrid.Columns.GridColumn urlColumn;
private DevExpress.XtraGrid.Columns.GridColumn dllcoidColumn;
private DevExpress.XtraGrid.Columns.GridColumn contextMenuIdColumn;
private DevExpress.XtraGrid.Columns.GridColumn reqDataTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn resDataTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn methodColumn;
private DevExpress.XtraGrid.Columns.GridColumn datasourceColumn;
private DevExpress.XtraGrid.Columns.GridColumn actionTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn eTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn actionDelayColumn;
private DevExpress.XtraGrid.Columns.GridColumn finshDataPmColumn;
private DevExpress.XtraGrid.Columns.GridColumn finshActionColumn;
private DevExpress.XtraGrid.Columns.GridColumn isSucceedCondColumn;
private DevExpress.XtraGrid.Columns.GridColumn tokenApiIdColumn;
private DevExpress.XtraGrid.Columns.GridColumn tokenTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn pmsTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn ContentTypeColumn;
private DevExpress.XtraGrid.Columns.GridColumn allowShowMsgColumn;
private DevExpress.XtraEditors.Repository.RepositoryItemComboBox reqDataTypeComboBox;
private DevExpress.XtraEditors.Repository.RepositoryItemComboBox resDataTypeComboBox;
private DevExpress.XtraEditors.Repository.RepositoryItemComboBox m
+134
View File
@@ -0,0 +1,134 @@
using Lskj.Business.Impl;
using Lskj.Control;
using Lskj.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.PubApiSetModule
{
public partial class FrmMain : BaseForm
{
public DynamicApiSetModel Model;
public SqlDataAdapter SendMainAdapterObj;
public SqlDataAdapter SendDetailAdapterObj;
public FrmMain()
{
InitializeComponent();
this.Load += OnFrmMainLoad;
}
/// <summary>
/// 初始化时
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnFrmMainLoad(object sender, EventArgs e)
{
InitEventApiTable();
InitColumnsData();
InitDataSource();
}
/// <summary>
/// 初始化数据源
/// </summary>
private void InitDataSource()
{
//SendMain
SendMainAdapterObj = BaseImpl.GetAdapterResult("select * from p_systemeventapitab");
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;
}
/// <summary>
/// 初始化表格数据源
/// </summary>
private void InitColumnsData()
{
//reqDataType
reqDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "Json" });
reqDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "Text" });
reqDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "Xml" });
//resDataType
resDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "Json" });
resDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "Text" });
resDataTypeComboBox.Items.Add(new ComBoxModel() { Value = 2, Text = "Xml" });
//method
methodComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "Get" });
methodComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "Post" });
//actionType
actionTypeComboBox.Items.Add(new ComBoxModel() { Value = 0, Text = "手动触发" });
actionTypeComboBox.Items.Add(new ComBoxModel() { Value = 1, Text = "循环触发" });
//eType
eTypeComboBox.Items.Add(new ComBoxModel() { Value = "AfterModuleDataChange", Text = "数据改变后" });
eTypeComboBox.Items.Add(new ComBoxModel() { Value = "BeforeModuleDataChange", Text = "数据改变前" });
eTypeComboBox.Items.Add(new ComBoxModel() { Value = "AfterModuleContextMenu", Text = "右键执行后" });
eTypeComboBox.Items.Add(new ComBoxModel() { Value = "BeforeModuleContextMenu", Text = "右键执行前" });
eTypeComboBox.Items.Add(new ComBoxModel() { Value = "AfterModuleAuditStateChange", Text = "审核执行后" });
eTypeComboBox.Items.Add(new ComBoxModel() { Value = "BeforeModuleAuditStateChange", Text = "审核执行前" });
//tokenType
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 = "反审" });
//allowShowMsg
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 = "禁用" });
}
/// <summary>
/// 构建数据表
/// </summary>
private bool InitEventApiTable()
{
try
{
Dictionary<string, string> colDic = new Dictionary<string, string>();
colDic.Add("title", "varchar(200)");
colDic.Add("url", "varchar(1000)");
colDic.Add("dllcoid", "varchar(100)");
colDic.Add("contextMenuId", "int");
colDic.Add("reqDataType", "int");
colDic.Add("resDataType", "int");
colDic.Add("method", "int");
colDic.Add("datasource", "varchar(8000)");
colDic.Add("actionType", "int");
colDic.Add("actionDelay", "int");
colDic.Add("eType", "varchar(1000)");
colDic.Add("finshAction", "varchar(8000)");
colDic.Add("orderValue", "int");
colDic.Add("isSucceedCond", "varchar(100)");
colDic.Add("tokenApiId", "int");
colDic.Add("tokenType", "int");
colDic.Add("dynamicToken", "varchar(200)");
colDic.Add("pmsType", "int");
colDic.Add("allowShowMsg", "int");
colDic.Add("ContentType", "varchar(200)");
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)//存在日志表
{
DataTable columnsTab = SqlHelper.ExecuteDataTable(string.Format("select name from syscolumns where id=object_id('p_systemEventApiTab')"));
foreach (KeyValuePair<string, string> colunmField in colDic)
{
DataRow[] dataRows = columnsTab.Select().Where(n => (n["name"] + "").Equals(colunmField.Key)).ToArray();
if (dataRows.Length == 0)
{
string addColSql =
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8908B998-4FF9-4748-A9CF-BD256C6FA0BB}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Lskj.PubApiSetModule</RootNamespace>
<AssemblyName>Lskj.PubApiSetModule</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Debug\Lib\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Pdf.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ComBoxModel.cs" />
<Compile Include="DllBaseClass.cs" />
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
<Project>{7EAFCCC2-A18F-49E9-85C6-A984966CFD01}</Project>
<Name>Lskj.Business</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
<Project>{447CDC40-659F-4CCA-9ED6-8E818B4CF8BF}</Project>
<Name>Lskj.Control</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
<Project>{2A1BE6AC-1077-491B-A754-C5822FE8121E}</Project>
<Name>Lskj.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
<Name>Lskj.Model</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
<Project>{A51BF642-6543-4DE3-8948-83F558B72BD4}</Project>
<Name>Lskj.Util</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -0,0 +1,9 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubApiSetModule")]
[assembly: AssemblyDescr
@@ -0,0 +1,40 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubApiSetModule.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1 @@
//----------------------------------------------------------------------------
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>