init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using CommonLib;
|
||||
using CommonLib.utils;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace EmployeeManager
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass:IForm
|
||||
{
|
||||
public static string m_myName = "";
|
||||
|
||||
public DllBaseClass()
|
||||
{
|
||||
}
|
||||
//以数组传入参数,容易扩展
|
||||
public DllBaseClass(string[] args)
|
||||
{
|
||||
string dllid = args[4].ToString();
|
||||
FrmMain _FrmMain = new FrmMain();
|
||||
//------------------自定义的参数解析过程----------------
|
||||
try
|
||||
{
|
||||
if (args.Length == 0)
|
||||
_FrmMain.Text = "没有参数";
|
||||
else
|
||||
{
|
||||
_FrmMain.Text = args[0].ToString();
|
||||
_FrmMain.ModuleId = args[5].ToString();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PubUtil.WriteLog("ModuleInit错误:" + ex.Message);
|
||||
}
|
||||
SubForm = _FrmMain;
|
||||
//------------------解析完毕,准备调用有关窗体----------------
|
||||
//_FrmMain.ShowDialog();
|
||||
//_FrmMain.Close();
|
||||
//_FrmMain.Dispose();
|
||||
//_FrmMain = null;
|
||||
}
|
||||
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
Generated
+487
@@ -0,0 +1,487 @@
|
||||
namespace EmployeeManager
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.gridControl2 = new DevExpress.XtraGrid.GridControl();
|
||||
this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.tagname = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.softmodule = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.tagid = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.orderid = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.Mix_apellation = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.Mix_Bak = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.tmp1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.bases1 = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.Ban = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.Tag = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.Id = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.BtnAdd = new System.Windows.Forms.Button();
|
||||
this.BtnPrint = new System.Windows.Forms.Button();
|
||||
this.BtnOut = new System.Windows.Forms.Button();
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.BtnDel = new System.Windows.Forms.Button();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.lblFLTXT = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.splitterControl1 = new DevExpress.XtraEditors.SplitterControl();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
|
||||
this.panel4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.gridControl2);
|
||||
this.panel3.Controls.Add(this.panel4);
|
||||
this.panel3.Controls.Add(this.panel1);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(250, 572);
|
||||
this.panel3.TabIndex = 13;
|
||||
//
|
||||
// gridControl2
|
||||
//
|
||||
this.gridControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControl2.Location = new System.Drawing.Point(0, 27);
|
||||
this.gridControl2.MainView = this.gridView2;
|
||||
this.gridControl2.Name = "gridControl2";
|
||||
this.gridControl2.Size = new System.Drawing.Size(250, 503);
|
||||
this.gridControl2.TabIndex = 0;
|
||||
this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.gridView2});
|
||||
this.gridControl2.Click += new System.EventHandler(this.gridControl2_Click);
|
||||
//
|
||||
// gridView2
|
||||
//
|
||||
this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||
this.tagname,
|
||||
this.softmodule,
|
||||
this.tagid});
|
||||
this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
||||
this.gridView2.GridControl = this.gridControl2;
|
||||
this.gridView2.Name = "gridView2";
|
||||
this.gridView2.OptionsBehavior.FocusLeaveOnTab = true;
|
||||
this.gridView2.OptionsCustomization.AllowGroup = false;
|
||||
this.gridView2.OptionsCustomization.AllowSort = false;
|
||||
this.gridView2.OptionsSelection.EnableAppearanceHideSelection = false;
|
||||
this.gridView2.OptionsSelection.MultiSelect = true;
|
||||
this.gridView2.OptionsView.AllowCellMerge = true;
|
||||
this.gridView2.OptionsView.EnableAppearanceOddRow = true;
|
||||
this.gridView2.OptionsView.ShowGroupPanel = false;
|
||||
this.gridView2.ViewCaption = "基础信息类别";
|
||||
this.gridView2.Click += new System.EventHandler(this.gridView2_Click);
|
||||
//
|
||||
// tagname
|
||||
//
|
||||
this.tagname.Caption = "所属类别";
|
||||
this.tagname.FieldName = "tagname";
|
||||
this.tagname.Name = "tagname";
|
||||
this.tagname.OptionsColumn.AllowEdit = false;
|
||||
this.tagname.Visible = true;
|
||||
this.tagname.VisibleIndex = 1;
|
||||
this.tagname.Width = 96;
|
||||
//
|
||||
// softmodule
|
||||
//
|
||||
this.softmodule.Caption = "类别名称";
|
||||
this.softmodule.FieldName = "softmodule";
|
||||
this.softmodule.Name = "softmodule";
|
||||
this.softmodule.OptionsColumn.AllowEdit = false;
|
||||
this.softmodule.Visible = true;
|
||||
this.softmodule.VisibleIndex = 0;
|
||||
this.softmodule.Width = 73;
|
||||
//
|
||||
// tagid
|
||||
//
|
||||
this.tagid.Caption = "tagid";
|
||||
this.tagid.FieldName = "tagid";
|
||||
this.tagid.Name = "tagid";
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel4.Controls.Add(this.labelControl1);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel4.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(250, 27);
|
||||
this.panel4.TabIndex = 7;
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Appearance.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelControl1.Location = new System.Drawing.Point(5, 6);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(90, 14);
|
||||
this.labelControl1.TabIndex = 3;
|
||||
this.labelControl1.Text = "基础资料类别";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 530);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(250, 42);
|
||||
this.panel1.TabIndex = 1;
|
||||
//
|
||||
// gridControl1
|
||||
//
|
||||
this.gridControl1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControl1.Location = new System.Drawing.Point(256, 27);
|
||||
this.gridControl1.MainView = this.gridView1;
|
||||
this.gridControl1.Name = "gridControl1";
|
||||
this.gridControl1.Size = new System.Drawing.Size(644, 503);
|
||||
this.gridControl1.TabIndex = 14;
|
||||
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||
this.gridView1});
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripMenuItem1});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 26);
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(124, 22);
|
||||
this.toolStripMenuItem1.Text = "复制数据";
|
||||
this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click);
|
||||
//
|
||||
// gridView1
|
||||
//
|
||||
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||
this.orderid,
|
||||
this.Mix_apellation,
|
||||
this.Mix_Bak,
|
||||
this.tmp1,
|
||||
this.bases1,
|
||||
this.Ban,
|
||||
this.Tag,
|
||||
this.Id});
|
||||
this.gridView1.GridControl = this.gridControl1;
|
||||
this.gridView1.Name = "gridView1";
|
||||
this.gridView1.OptionsSelection.MultiSelect = true;
|
||||
this.gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;
|
||||
this.gridView1.OptionsView.ShowFooter = true;
|
||||
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||
this.gridView1.ViewCaption = "基础信息资料";
|
||||
//
|
||||
// orderid
|
||||
//
|
||||
this.orderid.Caption = "序号";
|
||||
this.orderid.FieldName = "orderid";
|
||||
this.orderid.Name = "orderid";
|
||||
this.orderid.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] {
|
||||
new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Count, "productid", "{0,0}")});
|
||||
this.orderid.Visible = true;
|
||||
this.orderid.VisibleIndex = 0;
|
||||
this.orderid.Width = 68;
|
||||
//
|
||||
// Mix_apellation
|
||||
//
|
||||
this.Mix_apellation.Caption = "类别名称";
|
||||
this.Mix_apellation.FieldName = "Mix_apellation";
|
||||
this.Mix_apellation.Name = "Mix_apellation";
|
||||
this.Mix_apellation.Visible = true;
|
||||
this.Mix_apellation.VisibleIndex = 1;
|
||||
this.Mix_apellation.Width = 156;
|
||||
//
|
||||
// Mix_Bak
|
||||
//
|
||||
this.Mix_Bak.Caption = "备注";
|
||||
this.Mix_Bak.FieldName = "Mix_Bak";
|
||||
this.Mix_Bak.Name = "Mix_Bak";
|
||||
this.Mix_Bak.Visible = true;
|
||||
this.Mix_Bak.VisibleIndex = 2;
|
||||
this.Mix_Bak.Width = 187;
|
||||
//
|
||||
// tmp1
|
||||
//
|
||||
this.tmp1.Caption = "其它1";
|
||||
this.tmp1.FieldName = "tmp1";
|
||||
this.tmp1.Name = "tmp1";
|
||||
this.tmp1.Visible = true;
|
||||
this.tmp1.VisibleIndex = 3;
|
||||
this.tmp1.Width = 103;
|
||||
//
|
||||
// bases1
|
||||
//
|
||||
this.bases1.Caption = "自定义1";
|
||||
this.bases1.FieldName = "bases1";
|
||||
this.bases1.Name = "bases1";
|
||||
this.bases1.Visible = true;
|
||||
this.bases1.VisibleIndex = 4;
|
||||
this.bases1.Width = 97;
|
||||
//
|
||||
// Ban
|
||||
//
|
||||
this.Ban.Caption = "禁用";
|
||||
this.Ban.FieldName = "Ban";
|
||||
this.Ban.Name = "Ban";
|
||||
this.Ban.UnboundType = DevExpress.Data.UnboundColumnType.Boolean;
|
||||
this.Ban.Visible = true;
|
||||
this.Ban.VisibleIndex = 5;
|
||||
this.Ban.Width = 37;
|
||||
//
|
||||
// Tag
|
||||
//
|
||||
this.Tag.AppearanceCell.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.Tag.AppearanceCell.BorderColor = System.Drawing.Color.Gray;
|
||||
this.Tag.AppearanceCell.Options.UseBackColor = true;
|
||||
this.Tag.AppearanceCell.Options.UseBorderColor = true;
|
||||
this.Tag.AppearanceHeader.BackColor = System.Drawing.Color.Gray;
|
||||
this.Tag.AppearanceHeader.BackColor2 = System.Drawing.Color.OliveDrab;
|
||||
this.Tag.AppearanceHeader.BorderColor = System.Drawing.Color.OliveDrab;
|
||||
this.Tag.AppearanceHeader.Font = new System.Drawing.Font("Times New Roman", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(1)), true);
|
||||
this.Tag.AppearanceHeader.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.Tag.AppearanceHeader.Options.UseBackColor = true;
|
||||
this.Tag.AppearanceHeader.Options.UseBorderColor = true;
|
||||
this.Tag.AppearanceHeader.Options.UseFont = true;
|
||||
this.Tag.AppearanceHeader.Options.UseForeColor = true;
|
||||
this.Tag.Caption = "主ID";
|
||||
this.Tag.FieldName = "Tag";
|
||||
this.Tag.Name = "Tag";
|
||||
this.Tag.OptionsColumn.AllowEdit = false;
|
||||
this.Tag.Width = 48;
|
||||
//
|
||||
// Id
|
||||
//
|
||||
this.Id.Caption = "Id";
|
||||
this.Id.FieldName = "Id";
|
||||
this.Id.Name = "Id";
|
||||
this.Id.OptionsColumn.AllowEdit = false;
|
||||
this.Id.Width = 38;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.BtnAdd);
|
||||
this.panel2.Controls.Add(this.BtnPrint);
|
||||
this.panel2.Controls.Add(this.BtnOut);
|
||||
this.panel2.Controls.Add(this.btnClose);
|
||||
this.panel2.Controls.Add(this.BtnDel);
|
||||
this.panel2.Controls.Add(this.btnSave);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel2.Location = new System.Drawing.Point(250, 530);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(650, 42);
|
||||
this.panel2.TabIndex = 16;
|
||||
//
|
||||
// BtnAdd
|
||||
//
|
||||
this.BtnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnAdd.Location = new System.Drawing.Point(328, 8);
|
||||
this.BtnAdd.Name = "BtnAdd";
|
||||
this.BtnAdd.Size = new System.Drawing.Size(75, 26);
|
||||
this.BtnAdd.TabIndex = 16;
|
||||
this.BtnAdd.Text = "增加(&A)";
|
||||
this.BtnAdd.UseVisualStyleBackColor = true;
|
||||
this.BtnAdd.Click += new System.EventHandler(this.button7_Click);
|
||||
//
|
||||
// BtnPrint
|
||||
//
|
||||
this.BtnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnPrint.Location = new System.Drawing.Point(252, 8);
|
||||
this.BtnPrint.Name = "BtnPrint";
|
||||
this.BtnPrint.Size = new System.Drawing.Size(75, 26);
|
||||
this.BtnPrint.TabIndex = 15;
|
||||
this.BtnPrint.Text = "打印(&P)";
|
||||
this.BtnPrint.UseVisualStyleBackColor = true;
|
||||
this.BtnPrint.Click += new System.EventHandler(this.BtnPrint_Click);
|
||||
//
|
||||
// BtnOut
|
||||
//
|
||||
this.BtnOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnOut.Location = new System.Drawing.Point(176, 8);
|
||||
this.BtnOut.Name = "BtnOut";
|
||||
this.BtnOut.Size = new System.Drawing.Size(75, 26);
|
||||
this.BtnOut.TabIndex = 14;
|
||||
this.BtnOut.Text = "导出(&O)";
|
||||
this.BtnOut.UseVisualStyleBackColor = true;
|
||||
this.BtnOut.Click += new System.EventHandler(this.BtnOut_Click);
|
||||
//
|
||||
// btnClose
|
||||
//
|
||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClose.Location = new System.Drawing.Point(567, 8);
|
||||
this.btnClose.Name = "btnClose";
|
||||
this.btnClose.Size = new System.Drawing.Size(75, 26);
|
||||
this.btnClose.TabIndex = 12;
|
||||
this.btnClose.Text = "关闭(&C)";
|
||||
this.btnClose.UseVisualStyleBackColor = true;
|
||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click_1);
|
||||
//
|
||||
// BtnDel
|
||||
//
|
||||
this.BtnDel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BtnDel.Location = new System.Drawing.Point(491, 8);
|
||||
this.BtnDel.Name = "BtnDel";
|
||||
this.BtnDel.Size = new System.Drawing.Size(75, 26);
|
||||
this.BtnDel.TabIndex = 11;
|
||||
this.BtnDel.Text = "删除(&D)";
|
||||
this.BtnDel.UseVisualStyleBackColor = true;
|
||||
this.BtnDel.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSave.Location = new System.Drawing.Point(405, 8);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(84, 26);
|
||||
this.btnSave.TabIndex = 3;
|
||||
this.btnSave.Text = "修改保存(&S)";
|
||||
this.btnSave.UseVisualStyleBackColor = true;
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel5.Controls.Add(this.lblFLTXT);
|
||||
this.panel5.Controls.Add(this.labelControl2);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel5.Location = new System.Drawing.Point(256, 0);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(644, 27);
|
||||
this.panel5.TabIndex = 18;
|
||||
//
|
||||
// lblFLTXT
|
||||
//
|
||||
this.lblFLTXT.Appearance.Font = new System.Drawing.Font("宋体", 10.5F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblFLTXT.Appearance.ForeColor = System.Drawing.Color.Blue;
|
||||
this.lblFLTXT.Location = new System.Drawing.Point(137, 6);
|
||||
this.lblFLTXT.Name = "lblFLTXT";
|
||||
this.lblFLTXT.Size = new System.Drawing.Size(0, 14);
|
||||
this.lblFLTXT.TabIndex = 4;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Appearance.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelControl2.Location = new System.Drawing.Point(5, 6);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(135, 14);
|
||||
this.labelControl2.TabIndex = 3;
|
||||
this.labelControl2.Text = "当前基础资料类别:";
|
||||
//
|
||||
// splitterControl1
|
||||
//
|
||||
this.splitterControl1.Location = new System.Drawing.Point(250, 0);
|
||||
this.splitterControl1.Name = "splitterControl1";
|
||||
this.splitterControl1.Size = new System.Drawing.Size(6, 530);
|
||||
this.splitterControl1.TabIndex = 19;
|
||||
this.splitterControl1.TabStop = false;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(900, 572);
|
||||
this.Controls.Add(this.gridControl1);
|
||||
this.Controls.Add(this.panel5);
|
||||
this.Controls.Add(this.splitterControl1);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FrmMain";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "基础资料管理";
|
||||
this.Load += new System.EventHandler(this.FrmMain_Load);
|
||||
this.panel3.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel4.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.panel5.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn orderid;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn Mix_apellation;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn Mix_Bak;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn tmp1;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn Tag;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Button BtnPrint;
|
||||
private System.Windows.Forms.Button BtnOut;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
private System.Windows.Forms.Button BtnDel;
|
||||
private System.Windows.Forms.Button btnSave;
|
||||
private DevExpress.XtraGrid.GridControl gridControl2;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn tagname;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn softmodule;
|
||||
private System.Windows.Forms.Button BtnAdd;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn tagid;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn bases1;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn Ban;
|
||||
private DevExpress.XtraGrid.Columns.GridColumn Id;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.LabelControl lblFLTXT;
|
||||
private DevExpress.XtraEditors.SplitterControl splitterControl1;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,270 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Data.SqlClient;
|
||||
using CommonLib;
|
||||
using DevExpress.XtraPrinting;
|
||||
using DevExpress.XtraPrinting.Preview;
|
||||
using System.IO;
|
||||
using Lskj.DBUtility.Helper;
|
||||
using System.Data.Common;
|
||||
|
||||
|
||||
//DllBaseClass
|
||||
namespace EmployeeManager
|
||||
{
|
||||
|
||||
public partial class FrmMain : Form
|
||||
{
|
||||
public string ModuleId { set; get; }
|
||||
public FrmMain()
|
||||
{
|
||||
// this.textBox1=PubUtil.
|
||||
//DevExpress.XtraGrid.Localization.GridResLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraGridCHS();
|
||||
//DevExpress.XtraEditors.Controls.Localizer.Active = new Dxper.LocalizationCHS.Win.XtraEditorsCHS();
|
||||
//DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraLayoutCHS();
|
||||
//DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraPrintingCHS();
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
private DbHelper dbHelper = Lskj.DBUtility.DbHelperFactory.GetDbHelper();
|
||||
private DbDataAdapter da;
|
||||
private DataSet ds = new DataSet();
|
||||
|
||||
|
||||
private void FrmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
Ls.dx.SelectRow(gridView2);
|
||||
|
||||
if (Ls.sysstr.str3 == "2")
|
||||
{
|
||||
Ls.dx.SelectRow(gridView1);
|
||||
BtnDel.Enabled = false;
|
||||
BtnAdd.Enabled = false;
|
||||
btnSave.Enabled = false;
|
||||
}
|
||||
|
||||
dbHelper.ConnectionString = SqlHelper.conn.ConnectionString;
|
||||
try
|
||||
{
|
||||
string subidstr = "|" + ERPInfo.Instance.SubSysId + "|";
|
||||
string sql = "select id,tagid,trim(softmodule) as softmodule ,tagname from P_BaseMixInfoTypeTab where charindex('" + subidstr + "',useed)>0 order by orderid ";
|
||||
sql = @"select id,tagid,rtrim(softmodule) as softmodule,tagname
|
||||
from P_BaseMixInfoTypeTab
|
||||
where SoftModule in ('公用信息','人员档案','客户信息','供应商管理','采购申请单','采购订单')
|
||||
order by SoftModule,tagid ";
|
||||
da = dbHelper.CreateDataAdapter2(sql);
|
||||
ds.Tables.Clear();
|
||||
da.Fill(ds);
|
||||
gridControl2.DataSource = ds.Tables[0];
|
||||
LoadData();
|
||||
|
||||
// gridControl2.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PubUtil.WriteLog("基础数据模块错误:" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void btnSave_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder((SqlDataAdapter)da);
|
||||
da.Update(ds);
|
||||
MessageBox.Show("修改成功");
|
||||
//MessageBox("修改成功", "朗速科技");
|
||||
}
|
||||
|
||||
private void button2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Qbtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
FrmTest f = new FrmTest();
|
||||
f.ShowDialog();
|
||||
f.Dispose();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
gridView1.OptionsFind.AlwaysVisible = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void btnClose_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
|
||||
}
|
||||
|
||||
private void BtnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
Ls.dx.Preview(gridControl1, gridView1.ViewCaption);
|
||||
|
||||
}
|
||||
|
||||
private void BtnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Ls.dx.SaveXls(gridControl1);
|
||||
|
||||
}
|
||||
|
||||
private void gridView2_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
LoadData();
|
||||
|
||||
}
|
||||
private void LoadData()
|
||||
{
|
||||
try
|
||||
{
|
||||
string ID = gridView2.GetFocusedRowCellValue("tagid").ToString();
|
||||
|
||||
string sql = "select Id,Mix_apellation,Mix_Bak,Tag,Ban,tmp1,tmp2,orderid,bases1,bases2 from dbo.P_BaseMixInfoTab " +
|
||||
" where tag=" + ID + " order by orderid ";
|
||||
da = dbHelper.CreateDataAdapter2(sql);
|
||||
|
||||
ds.Tables.Clear();
|
||||
da.Fill(ds);
|
||||
gridControl1.DataSource = ds.Tables[0];
|
||||
|
||||
string cap = gridView2.GetFocusedRowCellValue("softmodule").ToString() + "." + gridView2.GetFocusedRowCellValue("tagname").ToString();
|
||||
gridView1.ViewCaption = cap;
|
||||
lblFLTXT.Text = cap;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PubUtil.WriteLog("基础数据模块错误:" + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void button7_Click(object sender, EventArgs e)
|
||||
{
|
||||
string Lid = gridView2.GetFocusedRowCellValue("tagid").ToString();
|
||||
int val = dbHelper.ExecuteSql("insert P_BaseMixInfoTab(orderid,mix_no,Mix_apellation,Mix_Bak,Tag) " +
|
||||
" select " + (gridView1.RowCount+1)+ ",'输入编号','输入类别','输入备注'," + Lid + " ");
|
||||
|
||||
LoadData();
|
||||
gridView1.MoveLast();
|
||||
//gridView1.IsLastRow=true;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder((SqlDataAdapter) da);
|
||||
da.Update(ds);
|
||||
MessageBox.Show("修改成功");
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBoxButtons messButton = MessageBoxButtons.OKCancel;
|
||||
DialogResult dr = MessageBox.Show("确定删除数据吗?", "朗速科技", messButton);
|
||||
if (dr == DialogResult.OK)//如果点击“确定”按钮
|
||||
{
|
||||
string Lid = gridView1.GetFocusedRowCellValue("Id").ToString();
|
||||
int val = dbHelper.ExecuteSql("delete P_BaseMixInfoTab where Id=" + Lid + "");
|
||||
gridView1.DeleteSelectedRows();
|
||||
LoadData();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void toolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Clipboard.SetText(this.gridView1.GetCli
|
||||
// Clipboard.SetText(gridView1.GetSelectedRows);
|
||||
//.GetClipboardContent().GetData(DataFormats.Text).ToString());
|
||||
// gridControl1.
|
||||
// gridView1.GetSelectedRows
|
||||
Ls.dx.CopyTitle(gridView1);
|
||||
}
|
||||
|
||||
private void gridControl2_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void toolStripMenuItem2_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region 窗体关闭事件
|
||||
protected override void OnClosed(EventArgs e)
|
||||
{
|
||||
if (PubUtil.ModuleForms.ContainsKey(ModuleId))
|
||||
{
|
||||
DllModule dm = PubUtil.ModuleForms[ModuleId];
|
||||
if (dm != null)
|
||||
{
|
||||
dm.ModuleForm = null;
|
||||
dm.ModuleInPtr = IntPtr.Zero;
|
||||
PubUtil.ModuleForms.Remove(ModuleId);
|
||||
}
|
||||
}
|
||||
this.Dispose();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
SqlConnection connection = new SqlConnection(connectionString);
|
||||
SqlCommand cmd = new SqlCommand();
|
||||
SqlDataAdapter da = new SqlDataAdapter(cmd);
|
||||
da.DeleteCommand = new SqlCommand("", connection);
|
||||
da.InsertCommand = new SqlCommand("", connection);
|
||||
da.UpdateCommand = new SqlCommand("", connection);
|
||||
|
||||
|
||||
SqlCommandBuilder myCommandBuilder = new SqlCommandBuilder(da);
|
||||
da.DeleteCommand = myCommandBuilder.GetDeleteCommand();
|
||||
da.InsertCommand = myCommandBuilder.GetInsertCommand();
|
||||
da.UpdateCommand = myCommandBuilder.GetUpdateCommand();
|
||||
|
||||
DataTable tb=(DataTable)datagridview1.DataSource;
|
||||
da.Update(tb);
|
||||
|
||||
*/
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+116
@@ -0,0 +1,116 @@
|
||||
namespace EmployeeManager
|
||||
{
|
||||
partial class FrmTest
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.listBox1 = new System.Windows.Forms.ListBox();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// listBox1
|
||||
//
|
||||
this.listBox1.FormattingEnabled = true;
|
||||
this.listBox1.ItemHeight = 12;
|
||||
this.listBox1.Location = new System.Drawing.Point(160, 217);
|
||||
this.listBox1.Name = "listBox1";
|
||||
this.listBox1.Size = new System.Drawing.Size(94, 52);
|
||||
this.listBox1.TabIndex = 11;
|
||||
//
|
||||
// comboBox1
|
||||
//
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Items.AddRange(new object[] {
|
||||
"测试1",
|
||||
"测试2",
|
||||
"测试3"});
|
||||
this.comboBox1.Location = new System.Drawing.Point(147, 171);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(121, 20);
|
||||
this.comboBox1.TabIndex = 10;
|
||||
//
|
||||
// checkedListBox1
|
||||
//
|
||||
this.checkedListBox1.FormattingEnabled = true;
|
||||
this.checkedListBox1.Items.AddRange(new object[] {
|
||||
"测试1",
|
||||
"测试2",
|
||||
"测试3"});
|
||||
this.checkedListBox1.Location = new System.Drawing.Point(147, 66);
|
||||
this.checkedListBox1.Name = "checkedListBox1";
|
||||
this.checkedListBox1.Size = new System.Drawing.Size(120, 84);
|
||||
this.checkedListBox1.TabIndex = 9;
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(177, 17);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(78, 16);
|
||||
this.checkBox1.TabIndex = 8;
|
||||
this.checkBox1.Text = "checkBox1";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(314, 202);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 12;
|
||||
this.button1.Text = "关闭";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// FrmTest
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(415, 286);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.listBox1);
|
||||
this.Controls.Add(this.comboBox1);
|
||||
this.Controls.Add(this.checkedListBox1);
|
||||
this.Controls.Add(this.checkBox1);
|
||||
this.Name = "FrmTest";
|
||||
this.Text = "FrmTest";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListBox listBox1;
|
||||
private System.Windows.Forms.ComboBox comboBox1;
|
||||
private System.Windows.Forms.CheckedListBox checkedListBox1;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace EmployeeManager
|
||||
{
|
||||
public partial class FrmTest : Form
|
||||
{
|
||||
public FrmTest()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("测试窗口");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace EmployeeManager
|
||||
{
|
||||
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("WindowsFormsApplication1")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("WindowsFormsApplication1")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("20cb6705-2bc9-47ce-b9d5-91a3873914db")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.1022
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace EmployeeManager.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("EmployeeManager.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>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.1022
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace EmployeeManager.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>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?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>{71026A31-F7DB-40C6-9213-72557F99BEA5}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>EmployeeManager</RootNamespace>
|
||||
<AssemblyName>PubBaseInfo</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\publish\lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
</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="CommonLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ff69f2be1369550, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\CommonLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Data.v13.1">
|
||||
<HintPath>..\..\..\Lib\DevExpress.Data.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Printing.v13.1.Core">
|
||||
<HintPath>..\..\..\Lib\DevExpress.Printing.v13.1.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Utils.v13.1">
|
||||
<HintPath>..\..\..\Lib\DevExpress.Utils.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraEditors.v13.1">
|
||||
<HintPath>..\..\..\Lib\DevExpress.XtraEditors.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraGrid.v13.1">
|
||||
<HintPath>..\..\..\Lib\DevExpress.XtraGrid.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraLayout.v13.1">
|
||||
<HintPath>..\..\..\Lib\DevExpress.XtraLayout.v13.1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraPrinting.v13.1">
|
||||
<HintPath>..\..\..\Lib\DevExpress.XtraPrinting.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.DBUtility">
|
||||
<HintPath>..\..\引用DLL\Lskj.DBUtility.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lskj.DevFx">
|
||||
<HintPath>..\..\引用DLL\Lskj.DevFx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<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="FrmTest.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmTest.Designer.cs">
|
||||
<DependentUpon>FrmTest.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ls.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmTest.resx">
|
||||
<DependentUpon>FrmTest.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>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="a.ico" />
|
||||
</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,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PubBaseInfo", "PubBaseInfo.csproj", "{71026A31-F7DB-40C6-9213-72557F99BEA5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{71026A31-F7DB-40C6-9213-72557F99BEA5}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{71026A31-F7DB-40C6-9213-72557F99BEA5}.Debug|x86.Build.0 = Debug|x86
|
||||
{71026A31-F7DB-40C6-9213-72557F99BEA5}.Release|x86.ActiveCfg = Release|x86
|
||||
{71026A31-F7DB-40C6-9213-72557F99BEA5}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
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>
|
||||
@@ -0,0 +1,316 @@
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using System.Management;
|
||||
using System.Net;
|
||||
using System.Globalization;
|
||||
using System.Data.SqlClient;
|
||||
using CommonLib;
|
||||
using DevExpress.XtraPrinting;
|
||||
using DevExpress.XtraPrinting.Preview;
|
||||
using DevExpress.Utils;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraGrid;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using DevExpress.XtraGrid.Views.Base;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using DevExpress.XtraGrid.Views.Grid.ViewInfo;
|
||||
|
||||
|
||||
|
||||
namespace Ls
|
||||
{
|
||||
public class sysstr
|
||||
{
|
||||
public static string str1;
|
||||
public static string str2;
|
||||
public static string showid;
|
||||
public static string str3;
|
||||
public static string str4;
|
||||
public static string str5;
|
||||
public static string str6;
|
||||
public static string str7;
|
||||
public static string str8;
|
||||
}
|
||||
public class dx
|
||||
{
|
||||
|
||||
public static int SaveXls(DevExpress.XtraGrid.GridControl GridControlPub)
|
||||
{
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.Title = "导出Excel";
|
||||
saveFileDialog.Filter = "Excel文件(*.xls)|*.xls|Excel2007|*.xlsx|PDF文件|*.PDF|RTF文件|*.RTF|HTML文件|*.html";
|
||||
DialogResult dialogResult = saveFileDialog.ShowDialog();
|
||||
if (dialogResult == DialogResult.OK)
|
||||
{
|
||||
DevExpress.XtraPrinting.XlsExportOptions options = new DevExpress.XtraPrinting.XlsExportOptions();
|
||||
if (saveFileDialog.FilterIndex == 1)
|
||||
{
|
||||
GridControlPub.ExportToXls(saveFileDialog.FileName);
|
||||
}
|
||||
if (saveFileDialog.FilterIndex == 2)
|
||||
{
|
||||
GridControlPub.ExportToXlsx(saveFileDialog.FileName);
|
||||
}
|
||||
if (saveFileDialog.FilterIndex == 3)
|
||||
{
|
||||
GridControlPub.ExportToPdf(saveFileDialog.FileName);
|
||||
}
|
||||
if (saveFileDialog.FilterIndex == 4)
|
||||
{
|
||||
GridControlPub.ExportToRtf(saveFileDialog.FileName);
|
||||
}
|
||||
if (saveFileDialog.FilterIndex == 5)
|
||||
{
|
||||
GridControlPub.ExportToHtml(saveFileDialog.FileName);
|
||||
}
|
||||
DevExpress.XtraEditors.XtraMessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
public static int Preview(DevExpress.XtraGrid.GridControl GridControlPub, string prnTitle)
|
||||
{
|
||||
PrintingSystem ps = null;
|
||||
DevExpress.XtraPrinting.PrintableComponentLink link = null;
|
||||
ps = new DevExpress.XtraPrinting.PrintingSystem();
|
||||
link = new DevExpress.XtraPrinting.PrintableComponentLink(ps);
|
||||
ps.Links.Add(link);
|
||||
link.Component = GridControlPub;//这里可以是可打印的部件
|
||||
string _PrintHeader = prnTitle;
|
||||
PageHeaderFooter phf = link.PageHeaderFooter as PageHeaderFooter;
|
||||
phf.Header.Content.Clear();
|
||||
phf.Header.Content.AddRange(new string[] { "", _PrintHeader, "" });
|
||||
phf.Header.Font = new System.Drawing.Font("宋体", 14, System.Drawing.FontStyle.Bold); phf.Header.LineAlignment = BrickAlignment.Center;
|
||||
link.CreateDocument(); //建立文档
|
||||
ps.PreviewFormEx.Show();
|
||||
return 1;
|
||||
}
|
||||
public static int CopyTitle(DevExpress.XtraGrid.Views.Grid.GridView gridView1)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
StringBuilder stringBuilder2 = new StringBuilder();
|
||||
foreach (GridColumn gridColumn in gridView1.Columns)
|
||||
{
|
||||
if (gridColumn.Visible)
|
||||
{
|
||||
stringBuilder.AppendFormat("{0} ", gridColumn.Caption);
|
||||
}
|
||||
}
|
||||
int[] selectedRows = gridView1.GetSelectedRows();
|
||||
int[] array = selectedRows;
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
int rowHandle = array[i];
|
||||
foreach (GridColumn gridColumn in gridView1.Columns)
|
||||
{
|
||||
if (gridColumn.Visible)
|
||||
{
|
||||
stringBuilder2.AppendFormat("{0} ", gridView1.GetRowCellDisplayText(rowHandle, gridColumn.FieldName));
|
||||
}
|
||||
}
|
||||
stringBuilder2.AppendLine();
|
||||
}
|
||||
Clipboard.SetText(stringBuilder.ToString() + "\r\n" + stringBuilder2.ToString());
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static string SetRowNb(object sender, RowIndicatorCustomDrawEventArgs e)
|
||||
{
|
||||
e.Appearance.TextOptions.HAlignment = HorzAlignment.Far;
|
||||
if (e.Info.IsRowIndicator)
|
||||
{
|
||||
if (e.RowHandle >= 0)
|
||||
{
|
||||
e.Info.DisplayText = (e.RowHandle + 1).ToString();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static string SelectRow(DevExpress.XtraGrid.Views.Grid.GridView GridViewpub)
|
||||
{
|
||||
GridViewpub.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
||||
GridViewpub.OptionsBehavior.Editable = false;
|
||||
GridViewpub.OptionsSelection.EnableAppearanceFocusedCell = false;
|
||||
return "";
|
||||
}
|
||||
|
||||
public static string Group(DevExpress.XtraGrid.Views.Grid.GridView GridViewpub)
|
||||
{
|
||||
if (GridViewpub.OptionsView.ShowGroupPanel == true)
|
||||
{
|
||||
GridViewpub.OptionsView.ShowGroupPanel = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
GridViewpub.OptionsView.ShowGroupPanel = true;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
public static string find(DevExpress.XtraGrid.Views.Grid.GridView GridViewpub)
|
||||
{
|
||||
if (GridViewpub.OptionsFind.AlwaysVisible == true)
|
||||
{
|
||||
GridViewpub.OptionsFind.AlwaysVisible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
GridViewpub.OptionsFind.AlwaysVisible = true;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
public class Ado
|
||||
{
|
||||
public static string message()
|
||||
{
|
||||
return Ls.Net.GetLocalHost();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class contentsAdo
|
||||
{
|
||||
public static string message()
|
||||
{
|
||||
return Ls.Reg.GetRegistData("ServerName");
|
||||
}
|
||||
}
|
||||
//注册表访问
|
||||
public class Reg
|
||||
{
|
||||
public static string GetRegistData(string name)
|
||||
{
|
||||
string registData;
|
||||
RegistryKey hkml = Registry.CurrentUser;
|
||||
RegistryKey software = hkml.OpenSubKey("AA_LS_Erp V2.0", true);
|
||||
if (software == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
RegistryKey aimdir = software.OpenSubKey("File", true);
|
||||
if (aimdir == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
registData = aimdir.GetValue(name).ToString();
|
||||
if (registData == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return registData;
|
||||
}
|
||||
|
||||
public static void WTRegedit(string name, string tovalue)
|
||||
{
|
||||
RegistryKey hkml = Registry.CurrentUser;
|
||||
RegistryKey software = hkml.CreateSubKey("AA_LS_Erp V2.0");
|
||||
RegistryKey aimdir = software.CreateSubKey("File");
|
||||
aimdir.SetValue(name, tovalue);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void SetValue(string keyName, string valueName, object value)
|
||||
{
|
||||
Registry.SetValue(keyName, valueName, value, RegistryValueKind.String);
|
||||
}
|
||||
|
||||
public static object GetValue(string keyName, string valueName, object defaultValue)
|
||||
{
|
||||
object obj1 = Registry.GetValue(keyName, valueName, defaultValue);
|
||||
if (obj1 == null)
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
return obj1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class Net
|
||||
{
|
||||
|
||||
public static string GetLocalHost()
|
||||
{
|
||||
return Dns.GetHostName();
|
||||
}
|
||||
//获取本地IP地址
|
||||
public static IPAddress[] GetLocalIP()
|
||||
{
|
||||
string name = Dns.GetHostName();
|
||||
IPHostEntry me = Dns.GetHostEntry(name);
|
||||
return me.AddressList;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class IO
|
||||
{
|
||||
|
||||
//建目录
|
||||
public static bool CreatePath(string strPath)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (strPath.Length == 0)
|
||||
{ return false; }
|
||||
|
||||
if (Directory.Exists(strPath))
|
||||
{ return true; }
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(strPath));
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//写文本日志 try catch (Exception ex)
|
||||
|
||||
public static void WriteLog(string strFile, string strLog)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (File.Exists(strFile))
|
||||
{
|
||||
using (StreamWriter sw1 = File.AppendText(strFile))
|
||||
{
|
||||
//", DateTime.Now.ToString("yyMMdd-HHmmss")
|
||||
sw1.WriteLine("[" + System.DateTime.Now.ToString("yyMMdd-HHmmss") + "]" + strLog);
|
||||
sw1.Close();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (IO.CreatePath(strFile))
|
||||
{
|
||||
using (StreamWriter sw2 = File.CreateText(strFile))
|
||||
{
|
||||
sw2.WriteLine("[" + System.DateTime.Now.ToString("yyMMdd-HHmmss") + "]" + strLog);
|
||||
sw2.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user