init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using CommonLib;
|
||||
using CommonLib.utils;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.MyControl;
|
||||
|
||||
namespace Lskj.PubModuleDetailBrp
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm {
|
||||
public DllBaseClass() {
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj) {
|
||||
try {
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
main.FormText = obj[0];
|
||||
main.OperatorId = obj[1];
|
||||
main.OperatorName = obj[2];
|
||||
|
||||
|
||||
GridControlEx.OperatorId = main.OperatorId;
|
||||
GridControlEx.OperatorName = main.OperatorName;
|
||||
|
||||
main.Privilege = obj[3];
|
||||
main.DLLCoid = obj[4];
|
||||
main.ModuleId = obj[5];
|
||||
if (obj.Length > 6)
|
||||
main.ModuleDllId = obj[6];
|
||||
if (obj.Length > 7)
|
||||
main.LeftCond = obj[7];
|
||||
|
||||
main.Params = new string[10];
|
||||
for (int i = 8; i < obj.Length; i++)
|
||||
{
|
||||
main.Params[i - 8] = obj[i];
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
PubUtil.WriteLog("Lskj.PubModule.dll----参数错误" + ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
+598
@@ -0,0 +1,598 @@
|
||||
namespace Lskj.PubModuleDetailBrp
|
||||
{
|
||||
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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
|
||||
this.plLeft = new System.Windows.Forms.Panel();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.gridLeft = new Lskj.MyControl.GridControlEx();
|
||||
this.tvLeft = new Lskj.MyControl.TreeViewEx();
|
||||
this.pl_right_where = new System.Windows.Forms.Panel();
|
||||
this.cmsGrid = new System.Windows.Forms.ContextMenuStrip();
|
||||
this.splitterControl1 = new DevExpress.XtraEditors.SplitterControl();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.BtnDel = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.BtnAdd = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.pl_search = new System.Windows.Forms.Panel();
|
||||
this.pnlFunc = new System.Windows.Forms.Panel();
|
||||
this.ddbPrint = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.pm_print = new DevExpress.XtraBars.PopupMenu();
|
||||
this.barManager1 = new DevExpress.XtraBars.BarManager();
|
||||
this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
|
||||
this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
|
||||
this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
|
||||
this.barDockControlRight = new DevExpress.XtraBars.BarDockControl();
|
||||
this.ddbOper = new DevExpress.XtraEditors.DropDownButton();
|
||||
this.pm_oper = new DevExpress.XtraBars.PopupMenu();
|
||||
this.btnCondSearch_1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.txtKey = new System.Windows.Forms.TextBox();
|
||||
this.cbField = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.gcMain = new Lskj.MyControl.GridControlEx();
|
||||
this.plRightGrid = new System.Windows.Forms.Panel();
|
||||
this.tabMain = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.splitterControl2 = new DevExpress.XtraEditors.SplitterControl();
|
||||
this.plBottomMain = new System.Windows.Forms.Panel();
|
||||
this.tabBottomMain = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.plTopMain = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.plBrp = new DevExpress.XtraEditors.PanelControl();
|
||||
this.cbBrp = new System.Windows.Forms.ComboBox();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.plLeft.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.pl_search.SuspendLayout();
|
||||
this.pnlFunc.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_print)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_oper)).BeginInit();
|
||||
this.plRightGrid.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit();
|
||||
this.plBottomMain.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabBottomMain)).BeginInit();
|
||||
this.plTopMain.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
|
||||
this.splitContainerControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plBrp)).BeginInit();
|
||||
this.plBrp.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// plLeft
|
||||
//
|
||||
this.plLeft.Controls.Add(this.panel1);
|
||||
this.plLeft.Controls.Add(this.tvLeft);
|
||||
this.plLeft.Controls.Add(this.pl_right_where);
|
||||
this.plLeft.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.plLeft.Location = new System.Drawing.Point(0, 0);
|
||||
this.plLeft.Name = "plLeft";
|
||||
this.plLeft.Size = new System.Drawing.Size(208, 730);
|
||||
this.plLeft.TabIndex = 2;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.panel1.Controls.Add(this.gridLeft);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 37);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(208, 693);
|
||||
this.panel1.TabIndex = 3;
|
||||
this.panel1.Resize += new System.EventHandler(this.panel1_Resize);
|
||||
//
|
||||
// gridLeft
|
||||
//
|
||||
this.gridLeft.bomCaption = null;
|
||||
this.gridLeft.bomSql = null;
|
||||
this.gridLeft.ConstSql = null;
|
||||
this.gridLeft.detailEnableCond = null;
|
||||
this.gridLeft.detailEnableMsg = null;
|
||||
this.gridLeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridLeft.loadBom = null;
|
||||
this.gridLeft.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridLeft.Name = "gridLeft";
|
||||
this.gridLeft.pnlMain = null;
|
||||
this.gridLeft.RowColorCondtion = null;
|
||||
this.gridLeft.Size = new System.Drawing.Size(208, 693);
|
||||
this.gridLeft.SourceType = 0;
|
||||
this.gridLeft.Sql = null;
|
||||
this.gridLeft.sqlC = null;
|
||||
this.gridLeft.SumFieldsTable = null;
|
||||
this.gridLeft.TabIndex = 0;
|
||||
this.gridLeft.UnAllowEditChangeColor = false;
|
||||
//
|
||||
// tvLeft
|
||||
//
|
||||
this.tvLeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tvLeft.Location = new System.Drawing.Point(0, 37);
|
||||
this.tvLeft.MyAfterSelect = null;
|
||||
this.tvLeft.Name = "tvLeft";
|
||||
this.tvLeft.Size = new System.Drawing.Size(208, 693);
|
||||
this.tvLeft.TabIndex = 3;
|
||||
//
|
||||
// pl_right_where
|
||||
//
|
||||
this.pl_right_where.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.pl_right_where.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_right_where.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_right_where.Name = "pl_right_where";
|
||||
this.pl_right_where.Size = new System.Drawing.Size(208, 37);
|
||||
this.pl_right_where.TabIndex = 2;
|
||||
//
|
||||
// cmsGrid
|
||||
//
|
||||
this.cmsGrid.Name = "cmsGrid";
|
||||
this.cmsGrid.Size = new System.Drawing.Size(61, 4);
|
||||
this.cmsGrid.Opening += new System.ComponentModel.CancelEventHandler(this.cmsGrid_Opening);
|
||||
//
|
||||
// splitterControl1
|
||||
//
|
||||
this.splitterControl1.Location = new System.Drawing.Point(208, 0);
|
||||
this.splitterControl1.Name = "splitterControl1";
|
||||
this.splitterControl1.Size = new System.Drawing.Size(6, 730);
|
||||
this.splitterControl1.TabIndex = 8;
|
||||
this.splitterControl1.TabStop = false;
|
||||
//
|
||||
// panel6
|
||||
//
|
||||
this.panel6.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.panel6.Controls.Add(this.plBrp);
|
||||
this.panel6.Controls.Add(this.btnSave);
|
||||
this.panel6.Controls.Add(this.BtnDel);
|
||||
this.panel6.Controls.Add(this.BtnAdd);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 411);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(687, 36);
|
||||
this.panel6.TabIndex = 1;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSave.Appearance.Options.UseFont = true;
|
||||
this.btnSave.Location = new System.Drawing.Point(618, 5);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnSave.TabIndex = 37;
|
||||
this.btnSave.Text = "保存(&S)";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// BtnDel
|
||||
//
|
||||
this.BtnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnDel.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.BtnDel.Appearance.Options.UseFont = true;
|
||||
this.BtnDel.Location = new System.Drawing.Point(549, 5);
|
||||
this.BtnDel.Name = "BtnDel";
|
||||
this.BtnDel.Size = new System.Drawing.Size(63, 26);
|
||||
this.BtnDel.TabIndex = 36;
|
||||
this.BtnDel.Text = "删除(&D)";
|
||||
this.BtnDel.Click += new System.EventHandler(this.BtnDel_Click);
|
||||
//
|
||||
// BtnAdd
|
||||
//
|
||||
this.BtnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.BtnAdd.Appearance.Options.UseFont = true;
|
||||
this.BtnAdd.Location = new System.Drawing.Point(480, 5);
|
||||
this.BtnAdd.Name = "BtnAdd";
|
||||
this.BtnAdd.Size = new System.Drawing.Size(63, 26);
|
||||
this.BtnAdd.TabIndex = 35;
|
||||
this.BtnAdd.Text = "增加(&A)";
|
||||
this.BtnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
|
||||
//
|
||||
// pl_search
|
||||
//
|
||||
this.pl_search.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
|
||||
this.pl_search.Controls.Add(this.pnlFunc);
|
||||
this.pl_search.Controls.Add(this.btnCondSearch_1);
|
||||
this.pl_search.Controls.Add(this.txtKey);
|
||||
this.pl_search.Controls.Add(this.cbField);
|
||||
this.pl_search.Controls.Add(this.label1);
|
||||
this.pl_search.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_search.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_search.Name = "pl_search";
|
||||
this.pl_search.Size = new System.Drawing.Size(687, 36);
|
||||
this.pl_search.TabIndex = 0;
|
||||
//
|
||||
// pnlFunc
|
||||
//
|
||||
this.pnlFunc.Controls.Add(this.ddbPrint);
|
||||
this.pnlFunc.Controls.Add(this.ddbOper);
|
||||
this.pnlFunc.Controls.Add(this.barDockControlLeft);
|
||||
this.pnlFunc.Controls.Add(this.barDockControlRight);
|
||||
this.pnlFunc.Controls.Add(this.barDockControlBottom);
|
||||
this.pnlFunc.Controls.Add(this.barDockControlTop);
|
||||
this.pnlFunc.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.pnlFunc.Location = new System.Drawing.Point(523, 0);
|
||||
this.pnlFunc.Name = "pnlFunc";
|
||||
this.pnlFunc.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.pnlFunc.Size = new System.Drawing.Size(164, 36);
|
||||
this.pnlFunc.TabIndex = 34;
|
||||
//
|
||||
// ddbPrint
|
||||
//
|
||||
this.ddbPrint.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ddbPrint.Appearance.Options.UseFont = true;
|
||||
this.ddbPrint.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.ddbPrint.DropDownControl = this.pm_print;
|
||||
this.ddbPrint.Location = new System.Drawing.Point(83, 4);
|
||||
this.ddbPrint.Name = "ddbPrint";
|
||||
this.ddbPrint.Size = new System.Drawing.Size(75, 24);
|
||||
this.ddbPrint.TabIndex = 12;
|
||||
this.ddbPrint.Text = "常用打印";
|
||||
//
|
||||
// pm_print
|
||||
//
|
||||
this.pm_print.Manager = this.barManager1;
|
||||
this.pm_print.Name = "pm_print";
|
||||
//
|
||||
// barManager1
|
||||
//
|
||||
this.barManager1.DockControls.Add(this.barDockControlTop);
|
||||
this.barManager1.DockControls.Add(this.barDockControlBottom);
|
||||
this.barManager1.DockControls.Add(this.barDockControlLeft);
|
||||
this.barManager1.DockControls.Add(this.barDockControlRight);
|
||||
this.barManager1.Form = this;
|
||||
this.barManager1.MaxItemId = 0;
|
||||
//
|
||||
// barDockControlTop
|
||||
//
|
||||
this.barDockControlTop.CausesValidation = true;
|
||||
this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.barDockControlTop.Location = new System.Drawing.Point(4, 4);
|
||||
this.barDockControlTop.Size = new System.Drawing.Size(156, 0);
|
||||
//
|
||||
// barDockControlBottom
|
||||
//
|
||||
this.barDockControlBottom.CausesValidation = true;
|
||||
this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.barDockControlBottom.Location = new System.Drawing.Point(4, 32);
|
||||
this.barDockControlBottom.Size = new System.Drawing.Size(156, 0);
|
||||
//
|
||||
// barDockControlLeft
|
||||
//
|
||||
this.barDockControlLeft.CausesValidation = true;
|
||||
this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.barDockControlLeft.Location = new System.Drawing.Point(4, 4);
|
||||
this.barDockControlLeft.Size = new System.Drawing.Size(0, 28);
|
||||
//
|
||||
// barDockControlRight
|
||||
//
|
||||
this.barDockControlRight.CausesValidation = true;
|
||||
this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.barDockControlRight.Location = new System.Drawing.Point(160, 4);
|
||||
this.barDockControlRight.Size = new System.Drawing.Size(0, 28);
|
||||
//
|
||||
// ddbOper
|
||||
//
|
||||
this.ddbOper.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ddbOper.Appearance.Options.UseFont = true;
|
||||
this.ddbOper.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
|
||||
this.ddbOper.DropDownControl = this.pm_oper;
|
||||
this.ddbOper.Location = new System.Drawing.Point(5, 4);
|
||||
this.ddbOper.Name = "ddbOper";
|
||||
this.ddbOper.Size = new System.Drawing.Size(75, 24);
|
||||
this.ddbOper.TabIndex = 13;
|
||||
this.ddbOper.Text = "常用操作";
|
||||
//
|
||||
// pm_oper
|
||||
//
|
||||
this.pm_oper.Manager = this.barManager1;
|
||||
this.pm_oper.Name = "pm_oper";
|
||||
//
|
||||
// btnCondSearch_1
|
||||
//
|
||||
this.btnCondSearch_1.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCondSearch_1.Appearance.Options.UseFont = true;
|
||||
this.btnCondSearch_1.Location = new System.Drawing.Point(245, 5);
|
||||
this.btnCondSearch_1.Name = "btnCondSearch_1";
|
||||
this.btnCondSearch_1.Size = new System.Drawing.Size(63, 24);
|
||||
this.btnCondSearch_1.TabIndex = 33;
|
||||
this.btnCondSearch_1.Text = "查询(&Q)";
|
||||
this.btnCondSearch_1.Visible = false;
|
||||
this.btnCondSearch_1.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// txtKey
|
||||
//
|
||||
this.txtKey.Location = new System.Drawing.Point(128, 7);
|
||||
this.txtKey.Name = "txtKey";
|
||||
this.txtKey.Size = new System.Drawing.Size(110, 21);
|
||||
this.txtKey.TabIndex = 32;
|
||||
this.txtKey.Visible = false;
|
||||
this.txtKey.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtKey_KeyDown);
|
||||
//
|
||||
// cbField
|
||||
//
|
||||
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbField.FormattingEnabled = true;
|
||||
this.cbField.Location = new System.Drawing.Point(39, 7);
|
||||
this.cbField.Name = "cbField";
|
||||
this.cbField.Size = new System.Drawing.Size(81, 20);
|
||||
this.cbField.TabIndex = 1;
|
||||
this.cbField.Tag = "";
|
||||
this.cbField.Visible = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(8, 11);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(29, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "查询";
|
||||
this.label1.Visible = false;
|
||||
//
|
||||
// gcMain
|
||||
//
|
||||
this.gcMain.bomCaption = null;
|
||||
this.gcMain.bomSql = null;
|
||||
this.gcMain.ConstSql = null;
|
||||
this.gcMain.detailEnableCond = null;
|
||||
this.gcMain.detailEnableMsg = null;
|
||||
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gcMain.loadBom = null;
|
||||
this.gcMain.Location = new System.Drawing.Point(0, 36);
|
||||
this.gcMain.Name = "gcMain";
|
||||
this.gcMain.pnlMain = null;
|
||||
this.gcMain.RowColorCondtion = null;
|
||||
this.gcMain.Size = new System.Drawing.Size(687, 375);
|
||||
this.gcMain.SourceType = 0;
|
||||
this.gcMain.Sql = null;
|
||||
this.gcMain.sqlC = null;
|
||||
this.gcMain.SumFieldsTable = null;
|
||||
this.gcMain.TabIndex = 2;
|
||||
this.gcMain.UnAllowEditChangeColor = true;
|
||||
//
|
||||
// plRightGrid
|
||||
//
|
||||
this.plRightGrid.Controls.Add(this.tabMain);
|
||||
this.plRightGrid.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.plRightGrid.Location = new System.Drawing.Point(907, 0);
|
||||
this.plRightGrid.Name = "plRightGrid";
|
||||
this.plRightGrid.Size = new System.Drawing.Size(293, 730);
|
||||
this.plRightGrid.TabIndex = 9;
|
||||
//
|
||||
// tabMain
|
||||
//
|
||||
this.tabMain.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabMain.Appearance.Options.UseFont = true;
|
||||
this.tabMain.AppearancePage.Header.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabMain.AppearancePage.Header.Options.UseFont = true;
|
||||
this.tabMain.AppearancePage.HeaderActive.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabMain.AppearancePage.HeaderActive.ForeColor = System.Drawing.Color.Blue;
|
||||
this.tabMain.AppearancePage.HeaderActive.Options.UseFont = true;
|
||||
this.tabMain.AppearancePage.HeaderActive.Options.UseForeColor = true;
|
||||
this.tabMain.AppearancePage.PageClient.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabMain.AppearancePage.PageClient.Options.UseFont = true;
|
||||
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.LookAndFeel.SkinName = "Office 2013 Light Gray";
|
||||
this.tabMain.LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
this.tabMain.Name = "tabMain";
|
||||
this.tabMain.Size = new System.Drawing.Size(293, 730);
|
||||
this.tabMain.TabIndex = 2;
|
||||
//
|
||||
// splitterControl2
|
||||
//
|
||||
this.splitterControl2.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.splitterControl2.Location = new System.Drawing.Point(901, 0);
|
||||
this.splitterControl2.Name = "splitterControl2";
|
||||
this.splitterControl2.Size = new System.Drawing.Size(6, 730);
|
||||
this.splitterControl2.TabIndex = 10;
|
||||
this.splitterControl2.TabStop = false;
|
||||
//
|
||||
// plBottomMain
|
||||
//
|
||||
this.plBottomMain.Controls.Add(this.tabBottomMain);
|
||||
this.plBottomMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plBottomMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.plBottomMain.Name = "plBottomMain";
|
||||
this.plBottomMain.Size = new System.Drawing.Size(687, 277);
|
||||
this.plBottomMain.TabIndex = 12;
|
||||
//
|
||||
// tabBottomMain
|
||||
//
|
||||
this.tabBottomMain.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
|
||||
this.tabBottomMain.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabBottomMain.Appearance.Options.UseBackColor = true;
|
||||
this.tabBottomMain.Appearance.Options.UseFont = true;
|
||||
this.tabBottomMain.AppearancePage.Header.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabBottomMain.AppearancePage.Header.Options.UseFont = true;
|
||||
this.tabBottomMain.AppearancePage.HeaderActive.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabBottomMain.AppearancePage.HeaderActive.ForeColor = System.Drawing.Color.Blue;
|
||||
this.tabBottomMain.AppearancePage.HeaderActive.Options.UseFont = true;
|
||||
this.tabBottomMain.AppearancePage.HeaderActive.Options.UseForeColor = true;
|
||||
this.tabBottomMain.AppearancePage.PageClient.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tabBottomMain.AppearancePage.PageClient.Options.UseFont = true;
|
||||
this.tabBottomMain.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.tabBottomMain.BorderStylePage = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.tabBottomMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabBottomMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabBottomMain.LookAndFeel.SkinName = "Office 2013 Light Gray";
|
||||
this.tabBottomMain.LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
this.tabBottomMain.Name = "tabBottomMain";
|
||||
this.tabBottomMain.Size = new System.Drawing.Size(687, 277);
|
||||
this.tabBottomMain.TabIndex = 3;
|
||||
//
|
||||
// plTopMain
|
||||
//
|
||||
this.plTopMain.Controls.Add(this.gcMain);
|
||||
this.plTopMain.Controls.Add(this.panel6);
|
||||
this.plTopMain.Controls.Add(this.pl_search);
|
||||
this.plTopMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plTopMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTopMain.Name = "plTopMain";
|
||||
this.plTopMain.Size = new System.Drawing.Size(687, 447);
|
||||
this.plTopMain.TabIndex = 13;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.splitContainerControl1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(214, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(687, 730);
|
||||
this.panel2.TabIndex = 15;
|
||||
//
|
||||
// splitContainerControl1
|
||||
//
|
||||
this.splitContainerControl1.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel2;
|
||||
this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainerControl1.Horizontal = false;
|
||||
this.splitContainerControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainerControl1.Name = "splitContainerControl1";
|
||||
this.splitContainerControl1.Panel1.Controls.Add(this.plTopMain);
|
||||
this.splitContainerControl1.Panel1.Text = "Panel1";
|
||||
this.splitContainerControl1.Panel2.Controls.Add(this.plBottomMain);
|
||||
this.splitContainerControl1.Panel2.Text = "Panel2";
|
||||
this.splitContainerControl1.Size = new System.Drawing.Size(687, 730);
|
||||
this.splitContainerControl1.SplitterPosition = 447;
|
||||
this.splitContainerControl1.TabIndex = 14;
|
||||
//
|
||||
// plBrp
|
||||
//
|
||||
this.plBrp.Controls.Add(this.cbBrp);
|
||||
this.plBrp.Controls.Add(this.labelControl2);
|
||||
this.plBrp.Location = new System.Drawing.Point(3, 4);
|
||||
this.plBrp.LookAndFeel.SkinName = "VS2010";
|
||||
this.plBrp.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Style3D;
|
||||
this.plBrp.Name = "plBrp";
|
||||
this.plBrp.Size = new System.Drawing.Size(246, 29);
|
||||
this.plBrp.TabIndex = 38;
|
||||
//
|
||||
// cbBrp
|
||||
//
|
||||
this.cbBrp.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbBrp.FormattingEnabled = true;
|
||||
this.cbBrp.Location = new System.Drawing.Point(57, 4);
|
||||
this.cbBrp.Name = "cbBrp";
|
||||
this.cbBrp.Size = new System.Drawing.Size(185, 20);
|
||||
this.cbBrp.TabIndex = 19;
|
||||
this.cbBrp.SelectedIndexChanged += new System.EventHandler(this.cbBrp_SelectedIndexChanged);
|
||||
this.cbBrp.Click += new System.EventHandler(this.cbBrp_Click);
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelControl2.Location = new System.Drawing.Point(5, 8);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(48, 12);
|
||||
this.labelControl2.TabIndex = 16;
|
||||
this.labelControl2.Text = "选择模版";
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.ClientSize = new System.Drawing.Size(1200, 730);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.splitterControl2);
|
||||
this.Controls.Add(this.plRightGrid);
|
||||
this.Controls.Add(this.splitterControl1);
|
||||
this.Controls.Add(this.plLeft);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.LookAndFeel.SkinName = "Office 2010 Blue";
|
||||
this.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Office2003;
|
||||
this.Name = "FrmMain";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.FrmGridTree_Load);
|
||||
this.plLeft.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.pl_search.ResumeLayout(false);
|
||||
this.pl_search.PerformLayout();
|
||||
this.pnlFunc.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_print)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pm_oper)).EndInit();
|
||||
this.plRightGrid.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit();
|
||||
this.plBottomMain.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabBottomMain)).EndInit();
|
||||
this.plTopMain.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
|
||||
this.splitContainerControl1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.plBrp)).EndInit();
|
||||
this.plBrp.ResumeLayout(false);
|
||||
this.plBrp.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel plLeft;
|
||||
private System.Windows.Forms.ContextMenuStrip cmsGrid;
|
||||
private DevExpress.XtraEditors.SplitterControl splitterControl1;
|
||||
private System.Windows.Forms.Panel panel6;
|
||||
public System.Windows.Forms.Panel pl_search;
|
||||
private System.Windows.Forms.ComboBox cbField;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox txtKey;
|
||||
private DevExpress.XtraEditors.SimpleButton btnCondSearch_1;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnAdd;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnDel;
|
||||
private MyControl.GridControlEx gcMain;
|
||||
private System.Windows.Forms.Panel pl_right_where;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel plRightGrid;
|
||||
private DevExpress.XtraEditors.SplitterControl splitterControl2;
|
||||
private DevExpress.XtraTab.XtraTabControl tabMain;
|
||||
private MyControl.TreeViewEx tvLeft;
|
||||
private System.Windows.Forms.Panel plBottomMain;
|
||||
private System.Windows.Forms.Panel plTopMain;
|
||||
private DevExpress.XtraTab.XtraTabControl tabBottomMain;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private MyControl.GridControlEx gridLeft;
|
||||
private System.Windows.Forms.Panel pnlFunc;
|
||||
private DevExpress.XtraEditors.DropDownButton ddbPrint;
|
||||
private DevExpress.XtraEditors.DropDownButton ddbOper;
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlTop;
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlBottom;
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlLeft;
|
||||
private DevExpress.XtraBars.BarDockControl barDockControlRight;
|
||||
private DevExpress.XtraBars.PopupMenu pm_print;
|
||||
private DevExpress.XtraBars.BarManager barManager1;
|
||||
private DevExpress.XtraBars.PopupMenu pm_oper;
|
||||
private DevExpress.XtraEditors.SplitContainerControl splitContainerControl1;
|
||||
private DevExpress.XtraEditors.PanelControl plBrp;
|
||||
private System.Windows.Forms.ComboBox cbBrp;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,195 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6350AFE3-DAD0-4394-BD30-F78AA79CCACD}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.PubModuleDetailBrp</RootNamespace>
|
||||
<AssemblyName>Lskj.PubModuleDetailBrp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\publish\lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Data.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.Data.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Printing.v13.1.Core, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.Printing.v13.1.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Utils.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.Utils.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Xpo.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.Xpo.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraBars.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.XtraBars.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraEditors.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.XtraEditors.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.XtraGrid.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraLayout.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.XtraLayout.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraPrinting.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.XtraPrinting.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraTreeList.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\publish\DevExpress.XtraTreeList.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dxper.LocalizationCHS.Win.v13.1.5, Version=13.1.5.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\Dxper.LocalizationCHS.Win.v13.1.5.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.JScript" />
|
||||
<Reference Include="NPOI, Version=2.0.6.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\NPOI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<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="DllBaseClass.cs" />
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Panel_TabPage.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Panel_TabPage.Designer.cs">
|
||||
<DependentUpon>Panel_TabPage.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Panel_TabPage.resx">
|
||||
<DependentUpon>Panel_TabPage.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<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>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<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>
|
||||
<None Include="Resources\qq.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\run.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\www.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="a.ico" />
|
||||
<Content Include="Resources\downloading.png" />
|
||||
<Content Include="Resources\empty.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CommonLib\CommonLib.csproj">
|
||||
<Project>{3E8E6529-5D8A-4F17-8C41-27CD7380178D}</Project>
|
||||
<Name>CommonLib</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\ControlLib\ControlLib.csproj">
|
||||
<Project>{73C024E7-D9DC-44C3-BABC-2AA1544ECCF9}</Project>
|
||||
<Name>ControlLib</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Common\Lskj.Common.csproj">
|
||||
<Project>{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}</Project>
|
||||
<Name>Lskj.Common</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Excel\Lskj.Excel.csproj">
|
||||
<Project>{BD7394C7-C5FA-4D94-9BA1-AD8AB8270370}</Project>
|
||||
<Name>Lskj.Excel</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.MyControl\Lskj.MyControl.csproj">
|
||||
<Project>{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}</Project>
|
||||
<Name>Lskj.MyControl</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.PubUtils\Lskj.PubUtils.csproj">
|
||||
<Project>{752386CB-FD63-4565-980F-E8F72A520F77}</Project>
|
||||
<Name>Lskj.PubUtils</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
+236
@@ -0,0 +1,236 @@
|
||||
namespace Lskj.PubModuleDetailBrp
|
||||
{
|
||||
partial class Panel_TabPage {
|
||||
/// <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 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.pl_down = new System.Windows.Forms.Panel();
|
||||
this.btnImport = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnExport = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnPrint = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnDelete = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnUpdate = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btnCondSearch = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.txtKey = new System.Windows.Forms.TextBox();
|
||||
this.cbField = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.gridList = new Lskj.MyControl.GridControlEx();
|
||||
this.pl_down.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pl_down
|
||||
//
|
||||
this.pl_down.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
|
||||
this.pl_down.Controls.Add(this.btnImport);
|
||||
this.pl_down.Controls.Add(this.btnExport);
|
||||
this.pl_down.Controls.Add(this.btnPrint);
|
||||
this.pl_down.Controls.Add(this.btnAdd);
|
||||
this.pl_down.Controls.Add(this.btnDelete);
|
||||
this.pl_down.Controls.Add(this.btnUpdate);
|
||||
this.pl_down.Controls.Add(this.btnSave);
|
||||
this.pl_down.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pl_down.Location = new System.Drawing.Point(0, 466);
|
||||
this.pl_down.Name = "pl_down";
|
||||
this.pl_down.Size = new System.Drawing.Size(704, 36);
|
||||
this.pl_down.TabIndex = 1;
|
||||
//
|
||||
// btnImport
|
||||
//
|
||||
this.btnImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnImport.Location = new System.Drawing.Point(496, 5);
|
||||
this.btnImport.Name = "btnImport";
|
||||
this.btnImport.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnImport.TabIndex = 7;
|
||||
this.btnImport.Text = "导入(&I)";
|
||||
this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
|
||||
//
|
||||
// btnExport
|
||||
//
|
||||
this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnExport.Location = new System.Drawing.Point(565, 5);
|
||||
this.btnExport.Name = "btnExport";
|
||||
this.btnExport.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnExport.TabIndex = 6;
|
||||
this.btnExport.Text = "导出(&E)";
|
||||
this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
|
||||
//
|
||||
// btnPrint
|
||||
//
|
||||
this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnPrint.Location = new System.Drawing.Point(634, 5);
|
||||
this.btnPrint.Name = "btnPrint";
|
||||
this.btnPrint.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnPrint.TabIndex = 5;
|
||||
this.btnPrint.Text = "打印(&P)";
|
||||
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.Location = new System.Drawing.Point(220, 5);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnAdd.TabIndex = 3;
|
||||
this.btnAdd.Text = "增加(&A)";
|
||||
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
|
||||
//
|
||||
// btnDelete
|
||||
//
|
||||
this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDelete.Location = new System.Drawing.Point(289, 5);
|
||||
this.btnDelete.Name = "btnDelete";
|
||||
this.btnDelete.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnDelete.TabIndex = 2;
|
||||
this.btnDelete.Text = "删除(&D)";
|
||||
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
||||
//
|
||||
// btnUpdate
|
||||
//
|
||||
this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnUpdate.Location = new System.Drawing.Point(358, 5);
|
||||
this.btnUpdate.Name = "btnUpdate";
|
||||
this.btnUpdate.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnUpdate.TabIndex = 1;
|
||||
this.btnUpdate.Text = "修改(&U)";
|
||||
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSave.Location = new System.Drawing.Point(427, 5);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnSave.TabIndex = 0;
|
||||
this.btnSave.Text = "保存(&S)";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
|
||||
this.panel2.Controls.Add(this.btnCondSearch);
|
||||
this.panel2.Controls.Add(this.txtKey);
|
||||
this.panel2.Controls.Add(this.cbField);
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(704, 36);
|
||||
this.panel2.TabIndex = 3;
|
||||
this.panel2.Visible = false;
|
||||
//
|
||||
// btnCondSearch
|
||||
//
|
||||
this.btnCondSearch.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCondSearch.Appearance.Options.UseFont = true;
|
||||
this.btnCondSearch.Location = new System.Drawing.Point(269, 4);
|
||||
this.btnCondSearch.Name = "btnCondSearch";
|
||||
this.btnCondSearch.Size = new System.Drawing.Size(63, 26);
|
||||
this.btnCondSearch.TabIndex = 37;
|
||||
this.btnCondSearch.Text = "查询";
|
||||
this.btnCondSearch.Click += new System.EventHandler(this.btnCondSearch_Click);
|
||||
//
|
||||
// txtKey
|
||||
//
|
||||
this.txtKey.Location = new System.Drawing.Point(136, 9);
|
||||
this.txtKey.Name = "txtKey";
|
||||
this.txtKey.Size = new System.Drawing.Size(126, 21);
|
||||
this.txtKey.TabIndex = 36;
|
||||
//
|
||||
// cbField
|
||||
//
|
||||
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbField.FormattingEnabled = true;
|
||||
this.cbField.Location = new System.Drawing.Point(40, 9);
|
||||
this.cbField.Name = "cbField";
|
||||
this.cbField.Size = new System.Drawing.Size(88, 20);
|
||||
this.cbField.TabIndex = 35;
|
||||
this.cbField.Tag = "";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(6, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(29, 12);
|
||||
this.label1.TabIndex = 34;
|
||||
this.label1.Text = "查询";
|
||||
//
|
||||
// gridList
|
||||
//
|
||||
this.gridList.bomCaption = null;
|
||||
this.gridList.bomSql = null;
|
||||
this.gridList.ConstSql = null;
|
||||
this.gridList.detailEnableCond = null;
|
||||
this.gridList.detailEnableMsg = null;
|
||||
this.gridList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridList.loadBom = null;
|
||||
this.gridList.Location = new System.Drawing.Point(0, 36);
|
||||
this.gridList.Name = "gridList";
|
||||
this.gridList.pnlMain = null;
|
||||
this.gridList.RowColorCondtion = null;
|
||||
this.gridList.Size = new System.Drawing.Size(704, 430);
|
||||
this.gridList.SourceType = 0;
|
||||
this.gridList.Sql = null;
|
||||
this.gridList.sqlC = null;
|
||||
this.gridList.SumFieldsTable = null;
|
||||
this.gridList.TabIndex = 2;
|
||||
this.gridList.UnAllowEditChangeColor = true;
|
||||
//
|
||||
// Panel_TabPage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.gridList);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.pl_down);
|
||||
this.Name = "Panel_TabPage";
|
||||
this.Size = new System.Drawing.Size(704, 502);
|
||||
this.pl_down.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel pl_down;
|
||||
private DevExpress.XtraEditors.SimpleButton btnAdd;
|
||||
private DevExpress.XtraEditors.SimpleButton btnDelete;
|
||||
private DevExpress.XtraEditors.SimpleButton btnUpdate;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnImport;
|
||||
private DevExpress.XtraEditors.SimpleButton btnExport;
|
||||
private DevExpress.XtraEditors.SimpleButton btnPrint;
|
||||
public MyControl.GridControlEx gridList;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private DevExpress.XtraEditors.SimpleButton btnCondSearch;
|
||||
private System.Windows.Forms.TextBox txtKey;
|
||||
private System.Windows.Forms.ComboBox cbField;
|
||||
private System.Windows.Forms.Label label1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,795 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Common;
|
||||
using CommonLib;
|
||||
using CommonLib.utils;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using ExcelPlus;
|
||||
using System.Data.SqlClient;
|
||||
using Lskj.MyControl;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraTab;
|
||||
|
||||
namespace Lskj.PubModuleDetailBrp
|
||||
{
|
||||
public partial class Panel_TabPage : UserControl {
|
||||
//模块ID
|
||||
public string DLLCoid { get; set; }
|
||||
//管理员Id
|
||||
public string OperatorId { get; set; }
|
||||
//管理员名称
|
||||
public string OperatorName { get; set; }
|
||||
//权限
|
||||
public string Privilege { get; set; }
|
||||
//窗体标题
|
||||
public string FormText { get; set; }
|
||||
//对象Id
|
||||
public string objectId { get; set; }
|
||||
//对象值
|
||||
public string objectValue { get; set; }
|
||||
public string dllSql { get; set; }
|
||||
public string autoRefresh { get; set; }
|
||||
/// <summary>
|
||||
/// 是否报表
|
||||
/// </summary>
|
||||
public bool HasReport { get; set; }
|
||||
|
||||
private string addCond; // 添加条件
|
||||
private string deleteCond; // 删除条件
|
||||
private string modifyCond; // 修改条件
|
||||
private string printCond=string.Empty;
|
||||
private string exportCond=string.Empty;
|
||||
private string oldSql = string.Empty;
|
||||
|
||||
|
||||
bool addEnable = false;
|
||||
bool deleteEnable = false;
|
||||
bool importEnable = false;
|
||||
bool exportEnable = false;
|
||||
bool searchEnable = false;
|
||||
|
||||
/// <summary>
|
||||
/// 必须录入字段
|
||||
/// </summary>
|
||||
private DataRow[] nullableFields;
|
||||
private string mParmaryKey;
|
||||
|
||||
//主表数据
|
||||
private DataTable dtSystemDlltab;
|
||||
private DataTable dtSum;
|
||||
//主键数据
|
||||
private DataTable idFiledKey;
|
||||
private bool needModified;
|
||||
private bool gridEdited = false;
|
||||
private int mEnterOrder; // 0.默认列跳转,1为行跳转
|
||||
/// <summary>
|
||||
/// 条件颜色
|
||||
/// </summary>
|
||||
private DataTable dtSysColorList;
|
||||
/// <summary>
|
||||
/// DbDataAdapter
|
||||
/// </summary>
|
||||
private SqlDataAdapter da;
|
||||
/// <summary>
|
||||
/// 操作Dataset
|
||||
/// </summary>
|
||||
private DataSet ds = new DataSet();
|
||||
public string pageText;
|
||||
public int parentPriv;
|
||||
public DataTable dtColumns = new DataTable();
|
||||
public Panel_TabPage() {
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初始化数据
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnLoad(EventArgs e) {
|
||||
RefreshTabPageTitle();
|
||||
nullableFields = dtColumns.Rows.OfType<DataRow>().Where(x => x["tagid"] + "" == "1").ToArray();
|
||||
dtSystemDlltab = CommonLib.SqlHelper.ExecuteDataSet("select * from P_systemDlltab where DLLCoid='" + DLLCoid + "'").Tables[0];
|
||||
if (dtSystemDlltab != null && dtSystemDlltab.Rows.Count > 0) {
|
||||
addCond = dtSystemDlltab.Rows[0]["addCond"] + "";
|
||||
deleteCond = dtSystemDlltab.Rows[0]["deleteCond"] + "";
|
||||
modifyCond = dtSystemDlltab.Rows[0]["modifyCond"].ToString();
|
||||
needModified = dtSystemDlltab.Rows[0]["modifyEnable"].ToString() == "1";
|
||||
gridEdited = (string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["selfEdit"] + "") || dtSystemDlltab.Rows[0]["selfEdit"] + "" == "0" || dtSystemDlltab.Rows[0]["selfEdit"] + "" == "False") ? false : true;
|
||||
gridList.gridView.OptionsBehavior.Editable = gridEdited;
|
||||
if (dtSystemDlltab.Columns.Contains("exportCond"))
|
||||
exportCond = dtSystemDlltab.Rows[0]["exportCond"].ToString();
|
||||
if (dtSystemDlltab.Columns.Contains("printCond"))
|
||||
printCond = dtSystemDlltab.Rows[0]["printCond"].ToString();
|
||||
if (dtSystemDlltab.Columns.Contains("EnterOrder"))
|
||||
mEnterOrder = string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["EnterOrder"] + "") ? 0 : Convert.ToInt32(dtSystemDlltab.Rows[0]["EnterOrder"] + "");
|
||||
|
||||
addEnable = dtSystemDlltab.Rows[0]["addEnable"] + "" == "1";
|
||||
deleteEnable = dtSystemDlltab.Rows[0]["deleteEnable"] + "" == "1";
|
||||
importEnable = dtSystemDlltab.Rows[0]["importEnable"] + "" == "1";
|
||||
exportEnable = dtSystemDlltab.Rows[0]["exportEnable"] + "" == "1";
|
||||
searchEnable = dtSystemDlltab.Rows[0]["searchEnable"] + "" == "1";
|
||||
|
||||
btnAdd.Enabled = addEnable;
|
||||
btnDelete.Enabled = deleteEnable;
|
||||
btnImport.Enabled = importEnable;
|
||||
btnExport.Enabled = exportEnable;
|
||||
btnCondSearch.Enabled = searchEnable;
|
||||
btnUpdate.Enabled = needModified;
|
||||
btnSave.Enabled = needModified;
|
||||
//gridList.gridView.OptionsBehavior.Editable = true;
|
||||
if (parentPriv != 1)
|
||||
{
|
||||
gridList.gridView.OptionsBehavior.Editable = false;
|
||||
addCond = addCond.Trim() == "" ? " 1<>1 " : addCond + " and 1<>1";
|
||||
modifyCond = modifyCond.Trim() == "" ? "1<>1" : modifyCond + " and 1<>1";
|
||||
deleteCond = deleteCond.Trim() == "" ? "1<>1" : deleteCond + " and 1<>1";
|
||||
|
||||
btnImport.Visible = false;
|
||||
btnAdd.Visible = false;
|
||||
btnSave.Visible = false;
|
||||
btnDelete.Visible = false;
|
||||
btnUpdate.Visible = false;
|
||||
btnImport.Enabled = false;
|
||||
btnAdd.Enabled = false;
|
||||
btnSave.Enabled = false;
|
||||
btnDelete.Enabled = false;
|
||||
btnUpdate.Enabled = false;
|
||||
}
|
||||
|
||||
setButtonStatus();
|
||||
}
|
||||
// 当前标签为报表
|
||||
if (HasReport)
|
||||
{
|
||||
btnAdd.Visible = btnDelete.Visible = btnImport.Visible = btnUpdate.Visible = btnSave.Visible = false;
|
||||
}
|
||||
idFiledKey = SqlHelper.ExecuteDataSet("select top 1 * from P_systemwordbooktab where tab='" + DLLCoid + "' order by orderid").Tables[0];
|
||||
GridMenu gm =null;
|
||||
mParmaryKey = idFiledKey.Rows[0]["fieldname"] + "";
|
||||
if (parentPriv == 1)
|
||||
{
|
||||
gm = new GridMenu(FormText, OperatorId, OperatorName, Privilege, DLLCoid, "", gridList.gridControl);
|
||||
gm.DirId = dtSystemDlltab.Rows[0]["dirid"] + "";
|
||||
gm.filedKey = idFiledKey.Rows[0]["fieldname"].ToString();
|
||||
|
||||
gm.BindGridMenuWQ(DLLCoid);
|
||||
gm.OnGridMenuClickRefreshData += new EventHandler(gm_OnGridMenuClickRefreshData);
|
||||
}
|
||||
gridList.gridControl.DoubleClick += new EventHandler(gridControl_DoubleClick);
|
||||
gridList.gridView.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(gridView_SelectionChanged);
|
||||
dtSysColorList = SqlHelper.ExecuteDataSet("select * from P_systemwordbookcolor where tab='" + DLLCoid + "' and isnull(useflag,0)=0 order by orderid").Tables[0];
|
||||
gridList.gridView.RowStyle += new RowStyleEventHandler(gridView_RowStyle);
|
||||
DataTable cbSearchFiled = SqlHelper.ExecuteDataSet("select * from P_systemwordbooktab where tab='" + DLLCoid + "' and ifSearch =0 and isnull(username1,'')<>''").Tables[0];
|
||||
|
||||
|
||||
//查询统计列
|
||||
string isSumSql = "select * from p_systemwordbooktab where tab='" + DLLCoid + "' and isnull(vislble,0)=0 and isnull(calcExpr,'')<>''order by calcOrder asc";
|
||||
dtSum = SqlHelper.ExecuteDataSet(isSumSql).Tables[0];
|
||||
gridList.SumFieldsTable = dtSum;
|
||||
|
||||
//加载筛选框
|
||||
cbField.DataSource = cbSearchFiled;
|
||||
cbField.DisplayMember = "username1";
|
||||
cbField.ValueMember = "fieldname";
|
||||
|
||||
if (autoRefresh == "1") {
|
||||
InitData(gridList.Sql);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 执行右键菜单后刷新表格数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void gm_OnGridMenuClickRefreshData(object sender, EventArgs e)
|
||||
{
|
||||
InitData(gridList.Sql);
|
||||
}
|
||||
|
||||
#region 行颜色
|
||||
private void gridView_RowStyle(object sender, RowStyleEventArgs e) {
|
||||
if (e.RowHandle >= 0) {
|
||||
DataRow row = gridList.gridView.GetDataRow(e.RowHandle);
|
||||
string cond = string.Empty;
|
||||
string color = string.Empty;
|
||||
string forecolor = string.Empty;
|
||||
foreach (DataRow dr in dtSysColorList.Rows) {
|
||||
|
||||
//string[] strSplit = dr["condition"].ToString().Split('=');
|
||||
//if (strSplit.Length >= 2)
|
||||
//{
|
||||
// string filed = strSplit[0].Replace("{", "").Replace("}", "");
|
||||
// string value = strSplit[1];
|
||||
// if (value == row[filed] + "")
|
||||
// {
|
||||
// System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(dr["backcolor"].ToString());
|
||||
// System.Drawing.Color foreColor = System.Drawing.ColorTranslator.FromHtml(dr["forcecolor"].ToString());
|
||||
// e.Appearance.BackColor = color;
|
||||
// e.Appearance.ForeColor = foreColor;
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
List<string> condition = PubClass.GetParamValue(dr["condition"].ToString());
|
||||
cond = dr["condition"].ToString();
|
||||
foreach (string item in condition) {
|
||||
string filedName = item.Replace("{", "").Replace("}", "");
|
||||
cond = cond.Replace(item, row[filedName].ToString());
|
||||
}
|
||||
cond = PubClass.SqlToCode(cond);
|
||||
color = dr["backcolor"] + "";
|
||||
forecolor = dr["forcecolor"].ToString() + "";
|
||||
|
||||
string obj = Evaluator.Eval(cond) + "";
|
||||
if (obj.IndexOf("true", StringComparison.OrdinalIgnoreCase) != -1) {
|
||||
if (!string.IsNullOrEmpty(color)) {
|
||||
System.Drawing.Color color1 = System.Drawing.ColorTranslator.FromHtml(color);
|
||||
e.Appearance.BackColor = color1;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(forecolor)) {
|
||||
System.Drawing.Color foreColor = System.Drawing.ColorTranslator.FromHtml(forecolor);
|
||||
e.Appearance.ForeColor = foreColor;
|
||||
|
||||
}
|
||||
FontStyle fst = new FontStyle();
|
||||
if (dr["ifBold"].ToString() == "1") {
|
||||
fst = fst | FontStyle.Bold;
|
||||
}
|
||||
if (dr["ifItalic"].ToString() == "1") {
|
||||
fst = fst | FontStyle.Italic;
|
||||
}
|
||||
if (dr["ifStrickOut"].ToString() == "1") {
|
||||
fst = fst | FontStyle.Strikeout;
|
||||
}
|
||||
if (dr["ifUnderLine"].ToString() == "1") {
|
||||
fst = fst | FontStyle.Underline;
|
||||
}
|
||||
e.Appearance.Font = new Font(e.Appearance.Font, fst);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void gridView_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
|
||||
{
|
||||
/*
|
||||
int[] rows = gridList.gridView.GetSelectedRows();
|
||||
if (rows != null && rows.Length > 0)
|
||||
{
|
||||
DataRow row = gridList.gridView.GetDataRow(rows[0]);
|
||||
bool isAdd = true;
|
||||
bool isDelete = true;
|
||||
bool isUpdate = true;
|
||||
// 添加权限
|
||||
if (!string.IsNullOrEmpty(addCond))
|
||||
{
|
||||
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(addCond, OperatorId, OperatorName));
|
||||
isAdd = Convert.ToBoolean(Evaluator.Eval(tempCond));
|
||||
}
|
||||
// 删除权限
|
||||
if (!string.IsNullOrEmpty(deleteCond))
|
||||
{
|
||||
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(deleteCond, OperatorId, OperatorName));
|
||||
isDelete = Convert.ToBoolean(Evaluator.Eval(tempCond));
|
||||
}
|
||||
// 修改、保存权限
|
||||
if (!string.IsNullOrEmpty(modifyCond))
|
||||
{
|
||||
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(modifyCond, OperatorId, OperatorName));
|
||||
isUpdate = Convert.ToBoolean(Evaluator.Eval(tempCond));
|
||||
gridList.gridView.OptionsBehavior.Editable = isUpdate;
|
||||
}
|
||||
btnAdd.Enabled = isAdd;
|
||||
btnDelete.Enabled = isDelete;
|
||||
btnUpdate.Enabled = btnSave.Enabled = isUpdate;
|
||||
}
|
||||
*/
|
||||
|
||||
setButtonStatus();
|
||||
}
|
||||
|
||||
private void setButtonStatus()
|
||||
{
|
||||
bool isAdd = true;
|
||||
bool isDelete = true;
|
||||
bool isUpdate = true;
|
||||
bool isExport = true;
|
||||
bool isPrint = true;
|
||||
// 添加权限
|
||||
if (!string.IsNullOrEmpty(addCond))
|
||||
{
|
||||
string tempCond = PubClass.SqlToCode( PubClass.ReqSqlParam(addCond, OperatorId, OperatorName));
|
||||
isAdd = Convert.ToBoolean(Evaluator.Eval(tempCond)) && addEnable;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(exportCond))
|
||||
{
|
||||
string tempCond = PubClass.SqlToCode(PubClass.ReqSqlParam(exportCond, OperatorId, OperatorName));
|
||||
isExport = Convert.ToBoolean(Evaluator.Eval(tempCond)) && exportEnable;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(printCond))
|
||||
{
|
||||
string tempCond = PubClass.SqlToCode(PubClass.ReqSqlParam(printCond, OperatorId, OperatorName));
|
||||
isPrint = Convert.ToBoolean(Evaluator.Eval(tempCond));
|
||||
}
|
||||
|
||||
int[] rows = gridList.gridView.GetSelectedRows();
|
||||
if (rows != null && rows.Length > 0)
|
||||
{
|
||||
DataRow row = gridList.gridView.GetDataRow(rows[0]);
|
||||
|
||||
// 删除权限
|
||||
if (!string.IsNullOrEmpty(deleteCond))
|
||||
{
|
||||
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(deleteCond, OperatorId, OperatorName));
|
||||
isDelete = Convert.ToBoolean(Evaluator.Eval(tempCond)) && deleteEnable;
|
||||
}
|
||||
// 修改、保存权限
|
||||
|
||||
if (!string.IsNullOrEmpty(modifyCond))
|
||||
{
|
||||
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(modifyCond, OperatorId, OperatorName));
|
||||
//MessageBox.Show(tempCond);
|
||||
isUpdate = Convert.ToBoolean(Evaluator.Eval(tempCond)) && needModified;
|
||||
gridList.gridView.OptionsBehavior.Editable = isUpdate && gridEdited ;
|
||||
}
|
||||
btnAdd.Enabled = isAdd;
|
||||
btnDelete.Enabled = isDelete;
|
||||
btnUpdate.Enabled = btnSave.Enabled = isUpdate;
|
||||
}
|
||||
|
||||
btnAdd.Enabled = isAdd;
|
||||
btnDelete.Enabled = isDelete;
|
||||
btnUpdate.Enabled = btnSave.Enabled = isUpdate;
|
||||
btnImport.Enabled = btnAdd.Enabled;
|
||||
btnExport.Enabled = isExport;
|
||||
btnPrint.Enabled = isPrint;
|
||||
}
|
||||
|
||||
private void gridControl_DoubleClick(object sender, EventArgs e) {
|
||||
if (!string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["AddDllName"] + ""))
|
||||
UpdateModel();
|
||||
}
|
||||
|
||||
private void btnPrint_Click(object sender, EventArgs e) {
|
||||
PubClass.Preview(gridList.gridControl);
|
||||
}
|
||||
|
||||
private void btnDelete_Click(object sender, EventArgs e) {
|
||||
int[] rowid = gridList.gridView.GetSelectedRows();
|
||||
if (rowid.Length == 0) {
|
||||
MessageBox.Show("没有选择要删除数据", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
}
|
||||
else {
|
||||
if (MessageBox.Show("您确定要删除选中记录?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
|
||||
string ids = string.Empty;
|
||||
foreach (int rid in rowid) {
|
||||
DataRow dr = gridList.gridView.GetDataRow(rid);
|
||||
//判断删除条件是否符合
|
||||
Boolean canDelete = string.IsNullOrEmpty(deleteCond);
|
||||
string tempCond = deleteCond;
|
||||
if (!canDelete) {
|
||||
tempCond = PubClass.ReqSqlParam(tempCond, OperatorId, OperatorName);
|
||||
tempCond = PubClass.ReqSqlWhere(dr, tempCond);
|
||||
canDelete = Convert.ToBoolean(Evaluator.Eval(tempCond));
|
||||
}
|
||||
if (canDelete)
|
||||
ids += "'" + dr[idFiledKey.Rows[0]["fieldname"] + ""] + "',";
|
||||
}
|
||||
if (ids != string.Empty) {
|
||||
string sql = "delete from " + dtSystemDlltab.Rows[0]["SQLDT1"] + " where " + idFiledKey.Rows[0]["fieldname"] + " in(" + ids.Trim(',') + ")";
|
||||
SqlHelper.ExecuteNonQuery(sql);
|
||||
InitData(gridList.Sql);
|
||||
MessageBox.Show("记录删除成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
else {
|
||||
MessageBox.Show("没有符合删除条件的记录", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnAdd_Click(object sender, EventArgs e) {
|
||||
if (string.IsNullOrEmpty(objectValue))
|
||||
{
|
||||
XtraMessageBox.Show("请选择条数据后再添加", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["AddDllName"] + ""))
|
||||
{
|
||||
string[] args = {
|
||||
FormText,
|
||||
OperatorId,
|
||||
OperatorName,
|
||||
Privilege,
|
||||
DLLCoid,
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
objectId,
|
||||
objectValue,
|
||||
dllSql
|
||||
};
|
||||
IForm form = PubUtil.LoadDllForm(dtSystemDlltab.Rows[0]["AddDllName"] + "", args);
|
||||
DialogResult result = form.SubForm.ShowDialog();
|
||||
InitData(gridList.Sql);
|
||||
RefreshTabPageTitle();
|
||||
}
|
||||
else
|
||||
{
|
||||
AddRow(gridList.gridView);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加行
|
||||
/// </summary>
|
||||
/// <param name="view"></param>
|
||||
protected void AddRow(DevExpress.XtraGrid.Views.Grid.GridView view) {
|
||||
int prevDataRowIndex = view.GetFocusedDataSourceRowIndex();
|
||||
view.AddNewRow();
|
||||
DataTable dt = null;
|
||||
if (!string.IsNullOrEmpty(dllSql) && dllSql.Contains("select")) {
|
||||
dt = SqlHelper.ExecuteDataSet(dllSql).Tables[0];
|
||||
}
|
||||
//默认值
|
||||
foreach (GridColumn item in view.Columns)
|
||||
{
|
||||
if (item.Tag != null)
|
||||
{
|
||||
MyTagModel cmt = item.Tag as MyTagModel;
|
||||
if (cmt != null)
|
||||
{
|
||||
string defaultValue = PubClass.GetDefaultValue(cmt.DefaultValue.ToString(), OperatorId, OperatorName);
|
||||
if (item.FieldName.ToUpper().Equals(objectId.ToUpper()))
|
||||
{
|
||||
view.SetRowCellValue(view.FocusedRowHandle, item, objectValue);
|
||||
}
|
||||
else if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
foreach (DataColumn dc in dt.Columns)
|
||||
{
|
||||
if (dc.ColumnName.ToUpper() == item.FieldName.ToUpper())
|
||||
{
|
||||
view.SetRowCellValue(view.FocusedRowHandle, item, dt.Rows[0][dc.ColumnName]);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(defaultValue))
|
||||
{
|
||||
view.SetRowCellValue(view.FocusedRowHandle, item, defaultValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出Excel
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnExport_Click(object sender, EventArgs e) {
|
||||
PubClass.SaveXls(gridList.gridControl);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导入Excel
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
string columnPrefix = PubClass.GetColumnPrefix(dtSystemDlltab.Rows[0]["SQLDT1"].ToString());
|
||||
frmImport frm = new frmImport(gridList, dtSystemDlltab.Rows[0]["SQLDT1"].ToString(), objectId, objectValue, OperatorId, OperatorName, columnPrefix, objectId, objectValue);
|
||||
DialogResult result = frm.ShowDialog();
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
InitData(oldSql);
|
||||
RefreshTabPageTitle();
|
||||
}
|
||||
}
|
||||
|
||||
public bool UpdateModel() {
|
||||
if (dtSystemDlltab.Rows[0]["AddDllName"] + "" == "")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int[] rows = gridList.gridView.GetSelectedRows();
|
||||
if (rows.Length > 0)
|
||||
{
|
||||
DataRow dr = gridList.gridView.GetDataRow(rows[0]);
|
||||
//判断修改条件是否符合
|
||||
Boolean canModify = string.IsNullOrEmpty(modifyCond);
|
||||
if (needModified)
|
||||
{
|
||||
string tempCond = modifyCond;
|
||||
if (!canModify)
|
||||
{
|
||||
tempCond = PubClass.ReqSqlParam(tempCond, OperatorId, OperatorName);
|
||||
tempCond = PubClass.ReqSqlWhere(dr, tempCond);
|
||||
canModify = Convert.ToBoolean(Evaluator.Eval(tempCond));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
canModify = false;
|
||||
}
|
||||
canModify = canModify && (!Privilege.Equals("1"));
|
||||
string productId = dr[idFiledKey.Rows[0]["fieldname"] + ""].ToString();
|
||||
string[] args = {
|
||||
FormText,
|
||||
OperatorId,
|
||||
OperatorName,
|
||||
Privilege,
|
||||
DLLCoid,
|
||||
"",
|
||||
Convert.ToInt32(!canModify).ToString(),
|
||||
productId,
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
dllSql
|
||||
};
|
||||
IForm form = PubUtil.LoadDllForm(dtSystemDlltab.Rows[0]["AddDllName"] + "", args);
|
||||
form.SubForm.ShowDialog();
|
||||
}
|
||||
InitData(gridList.Sql);
|
||||
RefreshTabPageTitle();
|
||||
return true;
|
||||
}
|
||||
|
||||
private void btnUpdate_Click(object sender, EventArgs e) {
|
||||
UpdateModel();
|
||||
}
|
||||
|
||||
private void btnSave_Click(object sender, EventArgs e) {
|
||||
try
|
||||
{
|
||||
da.Update(ds);
|
||||
(gridList.gridControl.DataSource as DataTable).AcceptChanges();
|
||||
}
|
||||
catch (InvalidOperationException ioe)
|
||||
{
|
||||
// 多表保存失败
|
||||
gridSave();
|
||||
return;
|
||||
}
|
||||
catch (DBConcurrencyException dce)
|
||||
{
|
||||
// 并发异常
|
||||
XtraMessageBox.Show("数据已更新,请刷新后重试.");
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex.Message.IndexOf("ix", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
XtraMessageBox.Show("系统检测到录入信息重复,请检查", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
XtraMessageBox.Show(ex.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
XtraMessageBox.Show("修改成功");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 表格必须录入验证
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool gridRequired()
|
||||
{
|
||||
DataTable dtBillItem = gridList.gridControl.DataSource as DataTable;
|
||||
DataColumnCollection dtBillRow = dtBillItem.Columns;
|
||||
GridView gridView = gridList.gridView;
|
||||
GridColumnCollection gridColumns = gridView.Columns;
|
||||
|
||||
foreach (DataRow drGrid in dtBillItem.Rows)
|
||||
{
|
||||
foreach (DataRow dr in nullableFields)
|
||||
{
|
||||
string fieldName = dr["fieldName"] + "";
|
||||
string fieldText = dr["username1"] + "";
|
||||
if (string.IsNullOrEmpty(drGrid[fieldName] + ""))
|
||||
{
|
||||
XtraMessageBox.Show(string.Format("[{0}] 不能为空", fieldText));
|
||||
gridView.Focus();
|
||||
gridView.FocusedRowHandle = dtBillItem.Rows.IndexOf(drGrid);
|
||||
gridView.FocusedColumn = gridColumns[fieldName];
|
||||
gridView.SelectCell(gridView.FocusedRowHandle, gridColumns[fieldName]);
|
||||
gridView.ShowEditorByMouse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 多表表格修改
|
||||
/// </summary>
|
||||
private void gridSave()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (dtSystemDlltab == null || dtSystemDlltab.Rows.Count == 0) return;
|
||||
|
||||
string tabName = dtSystemDlltab.Rows[0]["SQLDT1"] + "";
|
||||
if (string.IsNullOrEmpty(tabName))
|
||||
{
|
||||
XtraMessageBox.Show("检测到未设置表名");
|
||||
return;
|
||||
}
|
||||
|
||||
List<string> mList = new List<string>();
|
||||
StringBuilder mBuilder = new StringBuilder();
|
||||
|
||||
DataColumnCollection columns = SqlHelper.ExecuteDataTable(string.Format("select * from {0} where 1<>1", tabName)).Columns;
|
||||
|
||||
DataTable dtTable = gridList.gridControl.DataSource as DataTable;
|
||||
List<DataRow> modifiedRows = dtTable.Rows.Cast<DataRow>().Where(x => x.RowState == DataRowState.Modified || x.RowState == DataRowState.Added).ToList();
|
||||
foreach (DataRow row in modifiedRows)
|
||||
{
|
||||
string updateSql = "update {0} set {1} where {2}='{3}';";
|
||||
string insertSql = "insert into {0}({1}) values({2});";
|
||||
string updateFields = string.Empty;
|
||||
string insertFields = string.Empty;
|
||||
string insertValues = string.Empty;
|
||||
|
||||
foreach (DataColumn col in columns)
|
||||
{
|
||||
// 区分大小写匹配列
|
||||
DataRow hasContainRow = dtColumns.Rows.Cast<DataRow>().FirstOrDefault(x => x["fieldname"] + "" == col.ColumnName);
|
||||
if (hasContainRow != null && col.ColumnName != mParmaryKey)
|
||||
{
|
||||
if (row.RowState == DataRowState.Modified)
|
||||
{
|
||||
// 禁编列不更新
|
||||
if (hasContainRow["edit"] + "" == "0")
|
||||
{
|
||||
updateFields += string.Format("{0}='{1}',", col.ColumnName, row[col.ColumnName]);
|
||||
}
|
||||
}
|
||||
else if (row.RowState == DataRowState.Added)
|
||||
{
|
||||
insertFields += col.ColumnName + ",";
|
||||
insertValues += "'" + row[col.ColumnName] + "',";
|
||||
}
|
||||
}
|
||||
}
|
||||
updateFields = updateFields.TrimEnd(',');
|
||||
insertFields = insertFields.TrimEnd(',');
|
||||
insertValues = insertValues.TrimEnd(',');
|
||||
|
||||
if (!string.IsNullOrEmpty(updateFields))
|
||||
{
|
||||
updateSql = string.Format(updateSql, tabName, updateFields, mParmaryKey, row[mParmaryKey]);
|
||||
mList.Add(updateSql);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(insertFields))
|
||||
{
|
||||
insertSql = string.Format(insertSql, tabName, insertFields, insertValues);
|
||||
mList.Add(insertSql);
|
||||
}
|
||||
}
|
||||
|
||||
// 由于数据sql长度限制,每次只保存10条数据
|
||||
int resultCount = 0;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i < mList.Count; i++)
|
||||
{
|
||||
if (i == mList.Count - 1 || (i != 0 && i % 10 == 0))
|
||||
{
|
||||
if (i == mList.Count - 1)
|
||||
mBuilder.Append(mList[i]);
|
||||
|
||||
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
|
||||
pMsg.Direction = ParameterDirection.Output;
|
||||
SqlParameter returnValue = new SqlParameter("@return", SqlDbType.Int, 4);
|
||||
returnValue.Direction = ParameterDirection.ReturnValue;
|
||||
SqlParameter[] param =
|
||||
{
|
||||
new SqlParameter("@baseSql",SqlDbType.VarChar,8000),
|
||||
new SqlParameter("@saveType",SqlDbType.Int),
|
||||
new SqlParameter("@modid",SqlDbType.VarChar,20),
|
||||
new SqlParameter("@tablename",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@keyfield",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@keyvalue",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@Operatorid",SqlDbType.Int),
|
||||
new SqlParameter("@operatorname",SqlDbType.VarChar,50),
|
||||
pMsg,
|
||||
returnValue
|
||||
};
|
||||
param[0].Value = mBuilder.ToString();
|
||||
param[1].Value = 8;// --8新增保存,9修改保存,10 删除条码
|
||||
param[2].Value = DLLCoid;
|
||||
param[3].Value = tabName;
|
||||
param[4].Value = mParmaryKey;
|
||||
param[5].Value = "";
|
||||
param[6].Value = OperatorId;
|
||||
param[7].Value = OperatorName;
|
||||
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "P_BaseSave", "baseSave", param);
|
||||
string rMsg = pMsg.Value.ToString();
|
||||
resultCount += Convert.ToInt32(returnValue.Value.ToString());
|
||||
|
||||
if (returnValue.Value + "" != "1")
|
||||
{
|
||||
XtraMessageBox.Show("保存失败.错误原因:" + rMsg);
|
||||
break;
|
||||
}
|
||||
|
||||
mBuilder.Clear();
|
||||
}
|
||||
mBuilder.Append(mList[i]);
|
||||
}
|
||||
if (resultCount > 0)
|
||||
{
|
||||
if (resultCount == mList.Count)
|
||||
{
|
||||
(gridList.gridControl.DataSource as DataTable).AcceptChanges();
|
||||
XtraMessageBox.Show("保存成功");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
XtraMessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初始化数据
|
||||
/// </summary>
|
||||
/// <param name="sql"></param>
|
||||
public void InitData(string sql) {
|
||||
this.oldSql = sql;
|
||||
int oldRowHandle = (gridList.gridView).FocusedRowHandle;
|
||||
da = SqlHelper.ExecuteAdapter(CommandType.Text, sql);
|
||||
if (ds != null && ds.Tables.Count > 0)
|
||||
ds.Clear();
|
||||
da.Fill(ds);
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder(da);
|
||||
gridList.gridControl.DataSource = ds.Tables[0];
|
||||
(gridList.gridView).ClearSelection();
|
||||
(gridList.gridView).FocusedRowHandle = oldRowHandle;
|
||||
(gridList.gridView).SelectRow(oldRowHandle);
|
||||
|
||||
setButtonStatus();
|
||||
}
|
||||
/// <summary>
|
||||
/// 刷新标题
|
||||
/// </summary>
|
||||
private void RefreshTabPageTitle()
|
||||
{
|
||||
try
|
||||
{
|
||||
(this.Parent.Parent as XtraTabControl).SelectedTabPage.Text = FormText + "(" + ds.Tables[0].Rows.Count + ")";
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private void btnCondSearch_Click(object sender, EventArgs e) {
|
||||
InitData(gridList.Sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下
|
||||
// 特性集控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Lskj.PubModuleDetailBrp")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Lskj.PubModuleDetailBrp")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("b1e28475-0aee-4601-a7b4-8f9420185abc")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,93 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubModuleDetailBrp.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <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 {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.PubModuleDetailBrp.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 使用此强类型资源类,为所有资源查找
|
||||
/// 重写当前线程的 CurrentUICulture 属性。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap qq {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("qq", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap run {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("run", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap www {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("www", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="qq" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\qq.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="run" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\run.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="www" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\resources\www.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubModuleDetailBrp.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
Reference in New Issue
Block a user