init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubAdd3", "Lskj.PubAdd3\Lskj.PubAdd3.csproj", "{BD50FF9A-A360-4F32-9E51-A280B34072CC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.Common", "..\..\..\..\..\V30\插件库\Lskj.PubModule\Lskj.Common\Lskj.Common.csproj", "{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommonLib", "..\..\..\..\..\V30\LS_Main\ERP3.0\CommonLib\CommonLib.csproj", "{3E8E6529-5D8A-4F17-8C41-27CD7380178D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubAdd", "..\Lskj.PubAdd\Lskj.PubAdd\Lskj.PubAdd.csproj", "{71CD67E1-8492-4E3C-B343-9FC48AB0E368}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubAdd2", "..\Lskj.Add2\Lskj.Add2\Lskj.PubAdd2.csproj", "{2F1171BB-1A05-4A12-9A38-02806DDEB598}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|Any CPU.ActiveCfg = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|Mixed Platforms.Build.0 = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|x86.ActiveCfg = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|x86.Build.0 = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|Any CPU.ActiveCfg = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|Mixed Platforms.ActiveCfg = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|Mixed Platforms.Build.0 = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|x86.ActiveCfg = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|x86.Build.0 = Release|x86
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|x86.ActiveCfg = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Any CPU.Build.0 = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|x86.ActiveCfg = Release|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Debug|x86.ActiveCfg = Debug|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Release|Any CPU.Build.0 = Release|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{3E8E6529-5D8A-4F17-8C41-27CD7380178D}.Release|x86.ActiveCfg = Release|Any CPU
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Debug|Any CPU.ActiveCfg = Debug|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Debug|Mixed Platforms.Build.0 = Debug|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Debug|x86.ActiveCfg = Debug|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Debug|x86.Build.0 = Debug|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Release|Any CPU.ActiveCfg = Release|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Release|Mixed Platforms.ActiveCfg = Release|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Release|Mixed Platforms.Build.0 = Release|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Release|x86.ActiveCfg = Release|x86
{71CD67E1-8492-4E3C-B343-9FC48AB0E368}.Release|x86.Build.0 = Release|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Debug|Any CPU.ActiveCfg = Debug|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Debug|Mixed Platforms.Build.0 = Debug|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Debug|x86.ActiveCfg = Debug|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Debug|x86.Build.0 = Debug|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Release|Any CPU.ActiveCfg = Release|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Release|Mixed Platforms.ActiveCfg = Release|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Release|Mixed Platforms.Build.0 = Release|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Release|x86.ActiveCfg = Release|x86
{2F1171BB-1A05-4A12-9A38-02806DDEB598}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;
using CommonLib.utils;
using System.Windows.Forms;
namespace Lskj.PubAdd3 {
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm {
public DllBaseClass() {
}
public DllBaseClass(string[] obj) {
try {
FrmMain add = new FrmMain();
this.SubForm = add;
add.FormText = obj[0].ToString();
add.OperatorId = obj[1].ToString();
add.OperatorName = obj[2].ToString();
add.Privilege = obj[3].ToString();
add.DLLCoid = obj[4].ToString();
add.ModuleDllCoid = obj[5].ToString();
add.IsView = obj[6].ToString();
add.ObjectId = obj[7].ToString();
if (obj.Length > 8) {
add.key = obj[8];
}
if (obj.Length > 9) {
add.keyValue = obj[9];
}
if (obj.Length > 10) {
add.dllSql = (obj[10]+"").TrimStart('#');
}
if (obj.Length > 11)
{
add.TreeParentValue = obj[11] + "";
}
if (obj.Length > 14)
{
add.SearchObject = obj[13];
}
if (obj.Length > 15)
{
add.jsonData = obj[14];
}
if (obj.Length >= 16)
{
add.MenuSaveStateObj = obj[15];
}
if (obj.Length >= 17)
{
add.SelectRowObj = obj[16];
}
//MessageBox.Show(add.dllSql.ToString() + " Josn:" + add.jsonData.ToString() + " KeyValue:" + add.keyValue.ToString());
}
catch (Exception ex) {
PubUtil.WriteLog("Lskj.ProductSpecies.dll----参数错误" + ex.Message);
MessageBox.Show(ex.Message);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+310
View File
@@ -0,0 +1,310 @@
namespace Lskj.PubAdd3
{
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.panel1 = new System.Windows.Forms.Panel();
this.tabMain = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
this.plMain = new System.Windows.Forms.Panel();
this.plBotton = new System.Windows.Forms.Panel();
this.btnPrint = new DevExpress.XtraEditors.DropDownButton();
this.pMprint = new DevExpress.XtraBars.PopupMenu();
this.barManager1 = new DevExpress.XtraBars.BarManager();
this.barDockControl1 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl2 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl3 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl5 = new DevExpress.XtraBars.BarDockControl();
this.btnCopyAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnFile = new DevExpress.XtraEditors.SimpleButton();
this.btnClear = new DevExpress.XtraEditors.SimpleButton();
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnUpdate = new DevExpress.XtraEditors.SimpleButton();
this.btnApply = new DevExpress.XtraEditors.SimpleButton();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit();
this.tabMain.SuspendLayout();
this.xtraTabPage1.SuspendLayout();
this.plBotton.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pMprint)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Gray;
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 503);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(676, 1);
this.panel1.TabIndex = 4;
//
// tabMain
//
this.tabMain.Appearance.BackColor = System.Drawing.Color.Transparent;
this.tabMain.Appearance.Options.UseBackColor = true;
this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabMain.Location = new System.Drawing.Point(0, 0);
this.tabMain.Name = "tabMain";
this.tabMain.SelectedTabPage = this.xtraTabPage1;
this.tabMain.Size = new System.Drawing.Size(676, 503);
this.tabMain.TabIndex = 5;
this.tabMain.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage1});
this.tabMain.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.tabMain_SelectedPageChanged);
this.tabMain.SelectedPageChanging += new DevExpress.XtraTab.TabPageChangingEventHandler(this.tabMain_SelectedPageChanging);
//
// xtraTabPage1
//
this.xtraTabPage1.Appearance.PageClient.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.xtraTabPage1.Appearance.PageClient.Options.UseBackColor = true;
this.xtraTabPage1.Controls.Add(this.plMain);
this.xtraTabPage1.Controls.Add(this.plBotton);
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(670, 474);
this.xtraTabPage1.Text = "员工档案";
//
// plMain
//
this.plMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
this.plMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.plMain.Location = new System.Drawing.Point(0, 0);
this.plMain.Name = "plMain";
this.plMain.Size = new System.Drawing.Size(670, 436);
this.plMain.TabIndex = 3;
//
// plBotton
//
this.plBotton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
this.plBotton.Controls.Add(this.btnPrint);
this.plBotton.Controls.Add(this.btnCopyAdd);
this.plBotton.Controls.Add(this.btnFile);
this.plBotton.Controls.Add(this.btnClear);
this.plBotton.Controls.Add(this.btnAdd);
this.plBotton.Controls.Add(this.btnUpdate);
this.plBotton.Controls.Add(this.btnApply);
this.plBotton.Controls.Add(this.btnClose);
this.plBotton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.plBotton.Location = new System.Drawing.Point(0, 436);
this.plBotton.Name = "plBotton";
this.plBotton.Padding = new System.Windows.Forms.Padding(5);
this.plBotton.Size = new System.Drawing.Size(670, 38);
this.plBotton.TabIndex = 2;
//
// btnPrint
//
this.btnPrint.AllowFocus = false;
this.btnPrint.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnPrint.Appearance.Options.UseFont = true;
this.btnPrint.Dock = System.Windows.Forms.DockStyle.Right;
this.btnPrint.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show;
this.btnPrint.DropDownControl = this.pMprint;
this.btnPrint.Location = new System.Drawing.Point(111, 5);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(74, 28);
this.btnPrint.TabIndex = 14;
this.btnPrint.Text = "打印单据";
//
// pMprint
//
this.pMprint.Manager = this.barManager1;
this.pMprint.Name = "pMprint";
//
// barManager1
//
this.barManager1.DockControls.Add(this.barDockControl1);
this.barManager1.DockControls.Add(this.barDockControl2);
this.barManager1.DockControls.Add(this.barDockControl3);
this.barManager1.DockControls.Add(this.barDockControl5);
this.barManager1.Form = this;
this.barManager1.MaxItemId = 0;
//
// barDockControl1
//
this.barDockControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.barDockControl1.Location = new System.Drawing.Point(0, 0);
this.barDockControl1.Size = new System.Drawing.Size(676, 0);
//
// barDockControl2
//
this.barDockControl2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.barDockControl2.Location = new System.Drawing.Point(0, 504);
this.barDockControl2.Size = new System.Drawing.Size(676, 0);
//
// barDockControl3
//
this.barDockControl3.Dock = System.Windows.Forms.DockStyle.Left;
this.barDockControl3.Location = new System.Drawing.Point(0, 0);
this.barDockControl3.Size = new System.Drawing.Size(0, 504);
//
// barDockControl5
//
this.barDockControl5.Dock = System.Windows.Forms.DockStyle.Right;
this.barDockControl5.Location = new System.Drawing.Point(676, 0);
this.barDockControl5.Size = new System.Drawing.Size(0, 504);
//
// btnCopyAdd
//
this.btnCopyAdd.Dock = System.Windows.Forms.DockStyle.Left;
this.btnCopyAdd.Location = new System.Drawing.Point(5, 5);
this.btnCopyAdd.Name = "btnCopyAdd";
this.btnCopyAdd.Size = new System.Drawing.Size(80, 28);
this.btnCopyAdd.TabIndex = 12;
this.btnCopyAdd.Text = "复制新增";
this.btnCopyAdd.Click += new System.EventHandler(this.btnCopyAdd_Click);
//
// btnFile
//
this.btnFile.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnFile.Appearance.Options.UseFont = true;
this.btnFile.Dock = System.Windows.Forms.DockStyle.Right;
this.btnFile.Location = new System.Drawing.Point(185, 5);
this.btnFile.Name = "btnFile";
this.btnFile.Size = new System.Drawing.Size(80, 28);
this.btnFile.TabIndex = 0;
this.btnFile.TabStop = false;
this.btnFile.Text = "附件管理";
this.btnFile.Click += new System.EventHandler(this.btnFile_Click);
//
// btnClear
//
this.btnClear.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnClear.Appearance.Options.UseFont = true;
this.btnClear.Dock = System.Windows.Forms.DockStyle.Right;
this.btnClear.Location = new System.Drawing.Point(265, 5);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(80, 28);
this.btnClear.TabIndex = 0;
this.btnClear.TabStop = false;
this.btnClear.Text = "清除页面(&D)";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// btnAdd
//
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.Dock = System.Windows.Forms.DockStyle.Right;
this.btnAdd.Location = new System.Drawing.Point(345, 5);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(80, 28);
this.btnAdd.TabIndex = 0;
this.btnAdd.TabStop = false;
this.btnAdd.Text = "增加保存(&A)";
this.btnAdd.Click += new System.EventHandler(this.btnSave_Click);
//
// btnUpdate
//
this.btnUpdate.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnUpdate.Appearance.Options.UseFont = true;
this.btnUpdate.Dock = System.Windows.Forms.DockStyle.Right;
this.btnUpdate.Location = new System.Drawing.Point(425, 5);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(80, 28);
this.btnUpdate.TabIndex = 0;
this.btnUpdate.TabStop = false;
this.btnUpdate.Text = "修改保存(&E)";
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
//
// btnApply
//
this.btnApply.Dock = System.Windows.Forms.DockStyle.Right;
this.btnApply.Location = new System.Drawing.Point(505, 5);
this.btnApply.Name = "btnApply";
this.btnApply.Size = new System.Drawing.Size(80, 28);
this.btnApply.TabIndex = 13;
this.btnApply.Text = "提交审核";
this.btnApply.Click += new System.EventHandler(this.btnApply_Click);
//
// btnClose
//
this.btnClose.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnClose.Appearance.Options.UseFont = true;
this.btnClose.Dock = System.Windows.Forms.DockStyle.Right;
this.btnClose.Location = new System.Drawing.Point(585, 5);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(80, 28);
this.btnClose.TabIndex = 0;
this.btnClose.TabStop = false;
this.btnClose.Text = "退出(&C)";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// 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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(676, 504);
this.Controls.Add(this.tabMain);
this.Controls.Add(this.panel1);
this.Controls.Add(this.barDockControl3);
this.Controls.Add(this.barDockControl5);
this.Controls.Add(this.barDockControl2);
this.Controls.Add(this.barDockControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.LookAndFeel.SkinName = "Office 2010 Blue";
this.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Office2003;
this.MaximizeBox = false;
this.Name = "FrmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "";
((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit();
this.tabMain.ResumeLayout(false);
this.xtraTabPage1.ResumeLayout(false);
this.plBotton.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pMprint)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private DevExpress.XtraTab.XtraTabControl tabMain;
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
private System.Windows.Forms.Panel plMain;
private System.Windows.Forms.Panel plBotton;
private DevExpress.XtraEditors.SimpleButton btnClear;
private DevExpress.XtraEditors.SimpleButton btnFile;
private DevExpress.XtraEditors.SimpleButton btnAdd;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraEditors.SimpleButton btnUpdate;
private DevExpress.XtraEditors.SimpleButton btnCopyAdd;
private DevExpress.XtraEditors.SimpleButton btnApply;
private DevExpress.XtraEditors.DropDownButton btnPrint;
private DevExpress.XtraBars.PopupMenu pMprint;
private DevExpress.XtraBars.BarManager barManager1;
private DevExpress.XtraBars.BarDockControl barDockControl1;
private DevExpress.XtraBars.BarDockControl barDockControl2;
private DevExpress.XtraBars.BarDockControl barDockControl3;
private DevExpress.XtraBars.BarDockControl barDockControl5;
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,142 @@
<?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>{BD50FF9A-A360-4F32-9E51-A280B34072CC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.PubAdd3</RootNamespace>
<AssemblyName>Lskj.PubAdd3</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" />
<Reference Include="DevExpress.Printing.v13.1.Core, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Utils.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraBars.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\DevExpress\DXperience 13.1\Bin\Framework\DevExpress.XtraBars.v13.1.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraEditors.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraPrinting.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<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">
<HintPath>..\..\..\引用DLL\Dxper.LocalizationCHS.Win.v13.1.5.dll</HintPath>
</Reference>
<Reference Include="Lskj.Common, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\引用DLL\Lskj.Common.dll</HintPath>
</Reference>
<Reference Include="System" />
<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="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
<SubType>Designer</SubType>
</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="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\CommonLib\CommonLib.csproj">
<Project>{3E8E6529-5D8A-4F17-8C41-27CD7380178D}</Project>
<Name>CommonLib</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>
@@ -0,0 +1,233 @@
namespace Lskj.PubAdd3
{
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.gridList = new Lskj.MyControl.GridControlEx();
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.pl_down.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// pl_down
//
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, 461);
this.pl_down.Name = "pl_down";
this.pl_down.Size = new System.Drawing.Size(704, 41);
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(458, 10);
this.btnImport.Name = "btnImport";
this.btnImport.Size = new System.Drawing.Size(75, 23);
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(541, 10);
this.btnExport.Name = "btnExport";
this.btnExport.Size = new System.Drawing.Size(75, 23);
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(623, 10);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(75, 23);
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(126, 10);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(75, 23);
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(209, 10);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(75, 23);
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(292, 10);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(75, 23);
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(375, 10);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 23);
this.btnSave.TabIndex = 0;
this.btnSave.Text = "保存(&S)";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// 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, 38);
this.gridList.Name = "gridList";
this.gridList.pnlMain = null;
this.gridList.RowColorCondtion = null;
this.gridList.Size = new System.Drawing.Size(704, 423);
this.gridList.SourceType = 0;
this.gridList.Sql = null;
this.gridList.sqlC = null;
this.gridList.SumFieldsTable = null;
this.gridList.TabIndex = 2;
this.gridList.UnAllowEditChangeColor = true;
//
// panel2
//
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, 38);
this.panel2.TabIndex = 3;
//
// 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(378, 7);
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(167, 9);
this.txtKey.Name = "txtKey";
this.txtKey.Size = new System.Drawing.Size(204, 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(121, 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 = "查询";
//
// 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,569 @@
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;
namespace Lskj.PubAdd3
{
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; }
// 删除条件权限
private string deleteCond;
// 添加条件权限
private string addCond;
//主表数据
private DataTable dtSystemDlltab;
//主键数据
private DataTable idFiledKey;
/// <summary>
/// 是否报表
/// </summary>
public bool HasReport { get; set; }
/// <summary>
///
/// </summary>
private string modifyCond;
private string printCond = string.Empty;
private string exportCond = string.Empty;
private bool gridEdited = false;
bool addEnable = false;
bool deleteEnable = false;
bool importEnable = false;
bool exportEnable = false;
bool searchEnable = false;
/// <summary>
///
/// </summary>
private bool needModified;
/// <summary>
/// 条件颜色
/// </summary>
private DataTable dtSysColorList;
/// <summary>
/// DbDataAdapter
/// </summary>
private SqlDataAdapter da { get; set; }
/// <summary>
/// 操作Dataset
/// </summary>
private DataSet ds = new DataSet();
public DataTable dtSum { get; set; }
public Panel_TabPage() {
InitializeComponent();
}
/// <summary>
/// 初始化数据
/// </summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e)
{
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") && (Privilege=="0");
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();
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 && (Privilege=="0");
btnDelete.Enabled = deleteEnable && (Privilege == "0");
btnImport.Enabled = importEnable && (Privilege == "0");
btnExport.Enabled = exportEnable;
btnCondSearch.Enabled = searchEnable;
btnUpdate.Enabled = needModified;
btnSave.Enabled = needModified;
}
// 当前标签为报表
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 = 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);
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];
//加载筛选框
cbField.DataSource = cbSearchFiled;
cbField.DisplayMember = "username1";
cbField.ValueMember = "fieldname";
if (autoRefresh == "1")
{
InitData(gridList.Sql);
}
}
private void gridView_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
{
setButtonStatus();
//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 && (Privilege == "0");
// btnDelete.Enabled = isDelete && (Privilege == "0");
// btnUpdate.Enabled = isUpdate && (Privilege == "0");
// btnSave.Enabled = (Privilege == "0");
//}
}
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)) && (Privilege == "0");
}
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(addCond))
//{
// string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(addCond, OperatorId, OperatorName));
// isAdd = Convert.ToBoolean(Evaluator.Eval(tempCond)) && (Privilege == "0");
//}
// 删除权限
if (!string.IsNullOrEmpty(deleteCond))
{
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(deleteCond, OperatorId, OperatorName));
isDelete = Convert.ToBoolean(Evaluator.Eval(tempCond)) && (Privilege == "0");
}
// 修改、保存权限
if (!string.IsNullOrEmpty(modifyCond))
{
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(modifyCond, OperatorId, OperatorName));
isUpdate = Convert.ToBoolean(Evaluator.Eval(tempCond)) && needModified;
gridList.gridView.OptionsBehavior.Editable = isUpdate;
}
btnAdd.Enabled = isAdd;
btnDelete.Enabled = isDelete;
btnUpdate.Enabled = btnSave.Enabled = isUpdate;
}
btnAdd.Enabled = isAdd;
btnExport.Enabled = isExport;
btnPrint.Enabled = isPrint;
btnImport.Enabled = isAdd;
}
#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 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) {
string noDeleteIds = string.Empty;
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)
{
//删除检查
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("@modid",SqlDbType.VarChar,20),
new SqlParameter("@keyvalue",SqlDbType.VarChar,40),
pMsg,
returnValue
};
param[0].Value = DLLCoid;
param[1].Value = dr[idFiledKey.Rows[0]["fieldname"] + ""];
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_VerifyCanDelete", "baseSave", param);
string msg = pMsg.Value.ToString();
int rVaule = Convert.ToInt32(returnValue.Value.ToString());
if (rVaule == 1)
{
ids += "'" + dr[idFiledKey.Rows[0]["fieldname"] + ""] + "',";
}
else
{
noDeleteIds += dr[idFiledKey.Rows[0]["fieldname"] + ""] + " >> " + msg + "\n";
}
}
else
{
noDeleteIds += dr[idFiledKey.Rows[0]["fieldname"] + ""] + " >>不符删除合条件\n";
}
}
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);
string strHint = "记录删除成功";
if (!string.IsNullOrEmpty(noDeleteIds))
strHint = strHint + ",但是发现如下记录不符合删除条件\n" + noDeleteIds;
MessageBox.Show(strHint, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else {
string strHint = "没有符合删除条件的记录";
if (!string.IsNullOrEmpty(noDeleteIds))
strHint = strHint + ",发现如下记录不符合删除条件\n" + noDeleteIds;
MessageBox.Show(strHint, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
private void btnAdd_Click(object sender, EventArgs e) {
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);
}
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) {
frmImport frm = new frmImport(gridList, dtSystemDlltab.Rows[0]["SQLDT1"].ToString(), objectId, objectValue, OperatorId,OperatorName, "");
frm.ShowDialog();
}
public bool UpdateModel() {
int[] rows = gridList.gridView.GetSelectedRows();
if (rows.Length > 0) {
DataRow dr = gridList.gridView.GetDataRow(rows[0]);
//判断修改条件是否符合
Boolean canModify = string.IsNullOrEmpty(modifyCond);
if (needModified == true) {
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);
return true;
}
private void btnUpdate_Click(object sender, EventArgs e) {
if (dtSystemDlltab.Rows[0]["AddDllName"] + ""=="")
return;
UpdateModel();
}
private void btnSave_Click(object sender, EventArgs e) {
try {
da.Update(ds);
}
catch (Exception ex) {
if (ex.Message.IndexOf("ix", StringComparison.OrdinalIgnoreCase) != -1) {
MessageBox.Show("系统检测到录入信息重复,请检查", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
else {
MessageBox.Show(ex.Message);
return;
}
}
MessageBox.Show("修改成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
/// <summary>
/// 初始化数据
/// </summary>
/// <param name="sql"></param>
public void InitData(string sql) {
int oldRowHandle = (gridList.gridView).FocusedRowHandle;
string field = cbField.SelectedValue.ToString();
string strWhere = PubClass.ReplaceWhereCond(sql) + " and (dbo.P_getpy(" + field + ") like '%" + txtKey.Text + "%' or " + field + " like '%" + txtKey.Text + "%')";
//这个绑定数据源
sql = PubClass.ReqSqlParam(sql, OperatorId, OperatorName);
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();
}
private void btnCondSearch_Click(object sender, EventArgs e) {
InitData(gridList.Sql);
}
}
}
@@ -0,0 +1,147 @@
<?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>
<metadata name="pl_down.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnImport.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnExport.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnPrint.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnAdd.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnDelete.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnUpdate.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="btnSave.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Lskj.PubAdd3
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmMain());
}
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubAdd3")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Lskj.PubAdd3")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("4e0bbc98-71ab-4dd9-8e06-10d6f19cae05")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.12")]
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.18408
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubAdd3.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.PubAdd3.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;
}
}
}
}
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.18408
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubAdd3.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>