基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.UserSkins;
|
||||
using DevExpress.Skins;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using Lskj.Business;
|
||||
|
||||
namespace Lskj.PubPower
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
DynamicPowerModel moduleModel = new DynamicPowerModel(obj);
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
main.PubPowerModel = moduleModel;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PubPower.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
Generated
+108
@@ -0,0 +1,108 @@
|
||||
namespace Lskj.PubPower
|
||||
{
|
||||
partial class FrmAddRole
|
||||
{
|
||||
/// <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(FrmAddRole));
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnOK = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.txtEdit = new DevExpress.XtraEditors.TextEdit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(13, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(101, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "请输入角色名称:";
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCancel.Appearance.Options.UseFont = true;
|
||||
this.btnCancel.Location = new System.Drawing.Point(132, 79);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(80, 28);
|
||||
this.btnCancel.TabIndex = 20;
|
||||
this.btnCancel.TabStop = false;
|
||||
this.btnCancel.Text = "取消(&C)";
|
||||
this.btnCancel.Click += new System.EventHandler(this.OnBtnCancelClick);
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnOK.Appearance.Options.UseFont = true;
|
||||
this.btnOK.Location = new System.Drawing.Point(40, 79);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(80, 28);
|
||||
this.btnOK.TabIndex = 19;
|
||||
this.btnOK.TabStop = false;
|
||||
this.btnOK.Text = "确定(&O)";
|
||||
this.btnOK.Click += new System.EventHandler(this.OnBtnOKClick);
|
||||
//
|
||||
// txtEdit
|
||||
//
|
||||
this.txtEdit.Location = new System.Drawing.Point(40, 38);
|
||||
this.txtEdit.Name = "txtEdit";
|
||||
this.txtEdit.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.txtEdit.Properties.Appearance.Options.UseFont = true;
|
||||
this.txtEdit.Size = new System.Drawing.Size(172, 28);
|
||||
this.txtEdit.TabIndex = 21;
|
||||
//
|
||||
// FrmAddRole
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(219, 114);
|
||||
this.Controls.Add(this.txtEdit);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmAddRole";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.SimpleButton btnCancel;
|
||||
private DevExpress.XtraEditors.SimpleButton btnOK;
|
||||
private DevExpress.XtraEditors.TextEdit txtEdit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
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 Lskj.Control;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
|
||||
namespace Lskj.PubPower
|
||||
{
|
||||
public partial class FrmAddRole : Form
|
||||
{
|
||||
public string RoleName;
|
||||
public Label LabelObj { get { return label1; } }
|
||||
|
||||
public FrmAddRole()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:确定事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2019-06-21 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
void OnBtnOKClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.txtEdit.Text))
|
||||
{
|
||||
MessageUtil.Show(this.label1.Text.Replace(":", "!"));
|
||||
return;
|
||||
}
|
||||
|
||||
this.RoleName = this.txtEdit.Text;
|
||||
this.Close();
|
||||
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("确定事件出错!", ex);
|
||||
//MessageUtil.Show("确定事件出错!" + ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:取消事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2019-06-21 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
void OnBtnCancelClick(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Generated
+522
@@ -0,0 +1,522 @@
|
||||
namespace Lskj.PubPower
|
||||
{
|
||||
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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.employeeName = new Lskj.Control.LabelTextEdit();
|
||||
this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.gridControlEx2 = new Lskj.Control.GridControlEx();
|
||||
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.btn_deleteRole = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btn_Add = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.gridControlEx3 = new Lskj.Control.GridControlEx();
|
||||
this.MenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.btn_delete = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.gridControlEx4 = new Lskj.Control.GridControlEx();
|
||||
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.复制权限ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.清空ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.treeList1 = new DevExpress.XtraTreeList.TreeList();
|
||||
this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
|
||||
this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.gridControlEx1 = new Lskj.Control.GridControlEx();
|
||||
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.btn_copy = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btn_paste = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.SelectedStaff = new Lskj.Control.LabelTextEdit();
|
||||
this.BeCopiedPeople = new Lskj.Control.LabelTextEdit();
|
||||
this.employeeId = new Lskj.Control.LabelTextEdit();
|
||||
this.btn_unfold = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btn_save = new DevExpress.XtraEditors.SimpleButton();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
|
||||
this.xtraTabControl1.SuspendLayout();
|
||||
this.xtraTabPage1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
|
||||
this.panelControl1.SuspendLayout();
|
||||
this.MenuStrip.SuspendLayout();
|
||||
this.xtraTabPage2.SuspendLayout();
|
||||
this.contextMenuStrip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
|
||||
this.panelControl2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
|
||||
this.splitContainer2.Panel1.SuspendLayout();
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit();
|
||||
this.xtraTabControl2.SuspendLayout();
|
||||
this.xtraTabPage3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeList1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit();
|
||||
this.xtraTabPage4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
|
||||
this.panelControl4.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// employeeName
|
||||
//
|
||||
this.employeeName.BackColor = System.Drawing.Color.Transparent;
|
||||
this.employeeName.EditText = "";
|
||||
this.employeeName.FontSize = 0F;
|
||||
this.employeeName.LabelText = "人员";
|
||||
this.employeeName.Location = new System.Drawing.Point(9, 5);
|
||||
this.employeeName.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.employeeName.Model = null;
|
||||
this.employeeName.Name = "employeeName";
|
||||
this.employeeName.NullText = "";
|
||||
this.employeeName.ReadOnly = false;
|
||||
this.employeeName.Required = false;
|
||||
this.employeeName.Size = new System.Drawing.Size(173, 18);
|
||||
this.employeeName.TabIndex = 2;
|
||||
//
|
||||
// xtraTabControl1
|
||||
//
|
||||
this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.xtraTabControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.xtraTabControl1.Name = "xtraTabControl1";
|
||||
this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(362, 580);
|
||||
this.xtraTabControl1.TabIndex = 0;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1,
|
||||
this.xtraTabPage2});
|
||||
this.xtraTabControl1.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.xtraTabControl1_SelectedPageChanged);
|
||||
//
|
||||
// xtraTabPage1
|
||||
//
|
||||
this.xtraTabPage1.Controls.Add(this.splitContainer1);
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(356, 551);
|
||||
this.xtraTabPage1.Text = "角色";
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.gridControlEx2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.panelControl1);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.gridControlEx3);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(356, 551);
|
||||
this.splitContainer1.SplitterDistance = 265;
|
||||
this.splitContainer1.SplitterWidth = 3;
|
||||
this.splitContainer1.TabIndex = 3;
|
||||
//
|
||||
// gridControlEx2
|
||||
//
|
||||
this.gridControlEx2.AdapterObj = null;
|
||||
this.gridControlEx2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControlEx2.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridControlEx2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.gridControlEx2.Name = "gridControlEx2";
|
||||
this.gridControlEx2.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gridControlEx2.Size = new System.Drawing.Size(356, 238);
|
||||
this.gridControlEx2.TabIndex = 2;
|
||||
//
|
||||
// panelControl1
|
||||
//
|
||||
this.panelControl1.Controls.Add(this.btn_deleteRole);
|
||||
this.panelControl1.Controls.Add(this.btn_Add);
|
||||
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panelControl1.Location = new System.Drawing.Point(0, 238);
|
||||
this.panelControl1.Name = "panelControl1";
|
||||
this.panelControl1.Size = new System.Drawing.Size(356, 27);
|
||||
this.panelControl1.TabIndex = 3;
|
||||
//
|
||||
// btn_deleteRole
|
||||
//
|
||||
this.btn_deleteRole.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btn_deleteRole.Location = new System.Drawing.Point(219, 3);
|
||||
this.btn_deleteRole.Name = "btn_deleteRole";
|
||||
this.btn_deleteRole.Size = new System.Drawing.Size(64, 20);
|
||||
this.btn_deleteRole.TabIndex = 0;
|
||||
this.btn_deleteRole.Text = "删除角色";
|
||||
this.btn_deleteRole.Click += new System.EventHandler(this.btn_deleteRole_Click);
|
||||
//
|
||||
// btn_Add
|
||||
//
|
||||
this.btn_Add.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btn_Add.Location = new System.Drawing.Point(288, 3);
|
||||
this.btn_Add.Name = "btn_Add";
|
||||
this.btn_Add.Size = new System.Drawing.Size(64, 20);
|
||||
this.btn_Add.TabIndex = 0;
|
||||
this.btn_Add.Text = "新增角色";
|
||||
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
|
||||
//
|
||||
// gridControlEx3
|
||||
//
|
||||
this.gridControlEx3.AdapterObj = null;
|
||||
this.gridControlEx3.ContextMenuStrip = this.MenuStrip;
|
||||
this.gridControlEx3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControlEx3.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridControlEx3.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.gridControlEx3.Name = "gridControlEx3";
|
||||
this.gridControlEx3.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gridControlEx3.Size = new System.Drawing.Size(356, 283);
|
||||
this.gridControlEx3.TabIndex = 3;
|
||||
//
|
||||
// MenuStrip
|
||||
//
|
||||
this.MenuStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.MenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.btn_delete});
|
||||
this.MenuStrip.Name = "MenuStrip";
|
||||
this.MenuStrip.Size = new System.Drawing.Size(149, 26);
|
||||
//
|
||||
// btn_delete
|
||||
//
|
||||
this.btn_delete.Name = "btn_delete";
|
||||
this.btn_delete.Size = new System.Drawing.Size(148, 22);
|
||||
this.btn_delete.Text = "删除权限分配";
|
||||
this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
|
||||
//
|
||||
// xtraTabPage2
|
||||
//
|
||||
this.xtraTabPage2.Controls.Add(this.gridControlEx4);
|
||||
this.xtraTabPage2.Name = "xtraTabPage2";
|
||||
this.xtraTabPage2.Size = new System.Drawing.Size(356, 551);
|
||||
this.xtraTabPage2.Text = "人员";
|
||||
//
|
||||
// gridControlEx4
|
||||
//
|
||||
this.gridControlEx4.AdapterObj = null;
|
||||
this.gridControlEx4.ContextMenuStrip = this.contextMenuStrip;
|
||||
this.gridControlEx4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControlEx4.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridControlEx4.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.gridControlEx4.Name = "gridControlEx4";
|
||||
this.gridControlEx4.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gridControlEx4.Size = new System.Drawing.Size(356, 551);
|
||||
this.gridControlEx4.TabIndex = 1;
|
||||
//
|
||||
// contextMenuStrip
|
||||
//
|
||||
this.contextMenuStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.复制权限ToolStripMenuItem,
|
||||
this.清空ToolStripMenuItem});
|
||||
this.contextMenuStrip.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip.Size = new System.Drawing.Size(125, 48);
|
||||
//
|
||||
// 复制权限ToolStripMenuItem
|
||||
//
|
||||
this.复制权限ToolStripMenuItem.Name = "复制权限ToolStripMenuItem";
|
||||
this.复制权限ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
|
||||
this.复制权限ToolStripMenuItem.Text = "复制权限";
|
||||
this.复制权限ToolStripMenuItem.Click += new System.EventHandler(this.btn_copy_Click);
|
||||
//
|
||||
// 清空ToolStripMenuItem
|
||||
//
|
||||
this.清空ToolStripMenuItem.Name = "清空ToolStripMenuItem";
|
||||
this.清空ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
|
||||
this.清空ToolStripMenuItem.Text = "清空";
|
||||
this.清空ToolStripMenuItem.Click += new System.EventHandler(this.btn_empty_Click);
|
||||
//
|
||||
// panelControl2
|
||||
//
|
||||
this.panelControl2.Controls.Add(this.splitContainer2);
|
||||
this.panelControl2.Controls.Add(this.panelControl4);
|
||||
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panelControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panelControl2.Name = "panelControl2";
|
||||
this.panelControl2.Size = new System.Drawing.Size(1099, 621);
|
||||
this.panelControl2.TabIndex = 1;
|
||||
//
|
||||
// splitContainer2
|
||||
//
|
||||
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer2.Location = new System.Drawing.Point(2, 2);
|
||||
this.splitContainer2.Name = "splitContainer2";
|
||||
//
|
||||
// splitContainer2.Panel1
|
||||
//
|
||||
this.splitContainer2.Panel1.Controls.Add(this.xtraTabControl1);
|
||||
//
|
||||
// splitContainer2.Panel2
|
||||
//
|
||||
this.splitContainer2.Panel2.Controls.Add(this.xtraTabControl2);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1095, 580);
|
||||
this.splitContainer2.SplitterDistance = 362;
|
||||
this.splitContainer2.SplitterWidth = 3;
|
||||
this.splitContainer2.TabIndex = 2;
|
||||
//
|
||||
// xtraTabControl2
|
||||
//
|
||||
this.xtraTabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.xtraTabControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.xtraTabControl2.Name = "xtraTabControl2";
|
||||
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage3;
|
||||
this.xtraTabControl2.Size = new System.Drawing.Size(730, 580);
|
||||
this.xtraTabControl2.TabIndex = 3;
|
||||
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage3,
|
||||
this.xtraTabPage4});
|
||||
//
|
||||
// xtraTabPage3
|
||||
//
|
||||
this.xtraTabPage3.Controls.Add(this.treeList1);
|
||||
this.xtraTabPage3.Name = "xtraTabPage3";
|
||||
this.xtraTabPage3.Size = new System.Drawing.Size(724, 551);
|
||||
this.xtraTabPage3.Text = "权限设置表";
|
||||
//
|
||||
// treeList1
|
||||
//
|
||||
this.treeList1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.treeList1.Location = new System.Drawing.Point(0, 0);
|
||||
this.treeList1.Name = "treeList1";
|
||||
this.treeList1.OptionsBehavior.EnableFiltering = true;
|
||||
this.treeList1.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.treeList1.OptionsClipboard.CopyNodeHierarchy = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.treeList1.OptionsFilter.FilterMode = DevExpress.XtraTreeList.FilterMode.Smart;
|
||||
this.treeList1.OptionsFind.AllowFindPanel = true;
|
||||
this.treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
||||
this.repositoryItemCheckEdit1});
|
||||
this.treeList1.Size = new System.Drawing.Size(724, 551);
|
||||
this.treeList1.TabIndex = 2;
|
||||
this.treeList1.CellValueChanging += new DevExpress.XtraTreeList.CellValueChangedEventHandler(this.treeList_CellValueChanging);
|
||||
//
|
||||
// repositoryItemCheckEdit1
|
||||
//
|
||||
this.repositoryItemCheckEdit1.AutoHeight = false;
|
||||
this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
|
||||
//
|
||||
// xtraTabPage4
|
||||
//
|
||||
this.xtraTabPage4.Controls.Add(this.gridControlEx1);
|
||||
this.xtraTabPage4.Name = "xtraTabPage4";
|
||||
this.xtraTabPage4.Size = new System.Drawing.Size(724, 551);
|
||||
this.xtraTabPage4.Text = "添加人员";
|
||||
//
|
||||
// gridControlEx1
|
||||
//
|
||||
this.gridControlEx1.AdapterObj = null;
|
||||
this.gridControlEx1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControlEx1.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridControlEx1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.gridControlEx1.Name = "gridControlEx1";
|
||||
this.gridControlEx1.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gridControlEx1.Size = new System.Drawing.Size(724, 551);
|
||||
this.gridControlEx1.TabIndex = 0;
|
||||
//
|
||||
// panelControl4
|
||||
//
|
||||
this.panelControl4.Controls.Add(this.btn_copy);
|
||||
this.panelControl4.Controls.Add(this.btn_paste);
|
||||
this.panelControl4.Controls.Add(this.SelectedStaff);
|
||||
this.panelControl4.Controls.Add(this.BeCopiedPeople);
|
||||
this.panelControl4.Controls.Add(this.employeeId);
|
||||
this.panelControl4.Controls.Add(this.employeeName);
|
||||
this.panelControl4.Controls.Add(this.btn_unfold);
|
||||
this.panelControl4.Controls.Add(this.btn_save);
|
||||
this.panelControl4.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panelControl4.Location = new System.Drawing.Point(2, 582);
|
||||
this.panelControl4.Name = "panelControl4";
|
||||
this.panelControl4.Size = new System.Drawing.Size(1095, 37);
|
||||
this.panelControl4.TabIndex = 1;
|
||||
//
|
||||
// btn_copy
|
||||
//
|
||||
this.btn_copy.Location = new System.Drawing.Point(571, 5);
|
||||
this.btn_copy.Name = "btn_copy";
|
||||
this.btn_copy.Size = new System.Drawing.Size(64, 20);
|
||||
this.btn_copy.TabIndex = 7;
|
||||
this.btn_copy.Text = "复制";
|
||||
//
|
||||
// btn_paste
|
||||
//
|
||||
this.btn_paste.Location = new System.Drawing.Point(822, 5);
|
||||
this.btn_paste.Name = "btn_paste";
|
||||
this.btn_paste.Size = new System.Drawing.Size(64, 20);
|
||||
this.btn_paste.TabIndex = 6;
|
||||
this.btn_paste.Text = "粘贴";
|
||||
//
|
||||
// SelectedStaff
|
||||
//
|
||||
this.SelectedStaff.BackColor = System.Drawing.Color.Transparent;
|
||||
this.SelectedStaff.EditText = "";
|
||||
this.SelectedStaff.FontSize = 0F;
|
||||
this.SelectedStaff.LabelText = "选中人员";
|
||||
this.SelectedStaff.Location = new System.Drawing.Point(642, 5);
|
||||
this.SelectedStaff.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.SelectedStaff.Model = null;
|
||||
this.SelectedStaff.Name = "SelectedStaff";
|
||||
this.SelectedStaff.NullText = "";
|
||||
this.SelectedStaff.ReadOnly = false;
|
||||
this.SelectedStaff.Required = false;
|
||||
this.SelectedStaff.Size = new System.Drawing.Size(173, 18);
|
||||
this.SelectedStaff.TabIndex = 5;
|
||||
//
|
||||
// BeCopiedPeople
|
||||
//
|
||||
this.BeCopiedPeople.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BeCopiedPeople.EditText = "";
|
||||
this.BeCopiedPeople.FontSize = 0F;
|
||||
this.BeCopiedPeople.LabelText = "被复制人员";
|
||||
this.BeCopiedPeople.Location = new System.Drawing.Point(391, 5);
|
||||
this.BeCopiedPeople.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.BeCopiedPeople.Model = null;
|
||||
this.BeCopiedPeople.Name = "BeCopiedPeople";
|
||||
this.BeCopiedPeople.NullText = "";
|
||||
this.BeCopiedPeople.ReadOnly = false;
|
||||
this.BeCopiedPeople.Required = false;
|
||||
this.BeCopiedPeople.Size = new System.Drawing.Size(173, 18);
|
||||
this.BeCopiedPeople.TabIndex = 4;
|
||||
//
|
||||
// employeeId
|
||||
//
|
||||
this.employeeId.BackColor = System.Drawing.Color.Transparent;
|
||||
this.employeeId.EditText = "";
|
||||
this.employeeId.FontSize = 0F;
|
||||
this.employeeId.LabelText = "工号";
|
||||
this.employeeId.Location = new System.Drawing.Point(200, 5);
|
||||
this.employeeId.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.employeeId.Model = null;
|
||||
this.employeeId.Name = "employeeId";
|
||||
this.employeeId.NullText = "";
|
||||
this.employeeId.ReadOnly = false;
|
||||
this.employeeId.Required = false;
|
||||
this.employeeId.Size = new System.Drawing.Size(173, 18);
|
||||
this.employeeId.TabIndex = 3;
|
||||
//
|
||||
// btn_unfold
|
||||
//
|
||||
this.btn_unfold.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btn_unfold.Location = new System.Drawing.Point(953, 9);
|
||||
this.btn_unfold.Name = "btn_unfold";
|
||||
this.btn_unfold.Size = new System.Drawing.Size(64, 20);
|
||||
this.btn_unfold.TabIndex = 0;
|
||||
this.btn_unfold.Text = "一键展开";
|
||||
this.btn_unfold.Click += new System.EventHandler(this.OnAllExpandClick);
|
||||
//
|
||||
// btn_save
|
||||
//
|
||||
this.btn_save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btn_save.Location = new System.Drawing.Point(1023, 9);
|
||||
this.btn_save.Name = "btn_save";
|
||||
this.btn_save.Size = new System.Drawing.Size(64, 20);
|
||||
this.btn_save.TabIndex = 0;
|
||||
this.btn_save.Text = "保存";
|
||||
this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1099, 621);
|
||||
this.Controls.Add(this.panelControl2);
|
||||
this.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "权限设置器";
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
|
||||
this.xtraTabControl1.ResumeLayout(false);
|
||||
this.xtraTabPage1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
|
||||
this.panelControl1.ResumeLayout(false);
|
||||
this.MenuStrip.ResumeLayout(false);
|
||||
this.xtraTabPage2.ResumeLayout(false);
|
||||
this.contextMenuStrip.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
|
||||
this.panelControl2.ResumeLayout(false);
|
||||
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit();
|
||||
this.xtraTabControl2.ResumeLayout(false);
|
||||
this.xtraTabPage3.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeList1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit();
|
||||
this.xtraTabPage4.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
|
||||
this.panelControl4.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.PanelControl panelControl2;
|
||||
private Control.LabelTextEdit employeeName;
|
||||
private DevExpress.XtraTab.XtraTabControl xtraTabControl1;
|
||||
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
|
||||
private DevExpress.XtraTab.XtraTabPage xtraTabPage2;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl4;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_save;
|
||||
private Control.GridControlEx gridControlEx4;
|
||||
private System.Windows.Forms.ContextMenuStrip MenuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem btn_delete;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private Control.GridControlEx gridControlEx2;
|
||||
private Control.GridControlEx gridControlEx3;
|
||||
private System.Windows.Forms.SplitContainer splitContainer2;
|
||||
private DevExpress.XtraTab.XtraTabControl xtraTabControl2;
|
||||
private DevExpress.XtraTab.XtraTabPage xtraTabPage3;
|
||||
private DevExpress.XtraTreeList.TreeList treeList1;
|
||||
private DevExpress.XtraTab.XtraTabPage xtraTabPage4;
|
||||
private Control.GridControlEx gridControlEx1;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl1;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_Add;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_deleteRole;
|
||||
private Control.LabelTextEdit employeeId;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem 复制权限ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 清空ToolStripMenuItem;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_unfold;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_copy;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_paste;
|
||||
private Control.LabelTextEdit SelectedStaff;
|
||||
private Control.LabelTextEdit BeCopiedPeople;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,126 @@
|
||||
<?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="MenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>151, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
|
||||
namespace Lskj.PubPower
|
||||
{
|
||||
partial class FrmPermissionToCopy
|
||||
{
|
||||
/// <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.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btn_determine = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.employeeId = new Lskj.Control.LabelTextEdit();
|
||||
this.employeeName = new Lskj.Control.LabelTextEdit();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.gridControlEx4 = new Lskj.Control.GridControlEx();
|
||||
this.treeList1 = new DevExpress.XtraTreeList.TreeList();
|
||||
this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeList1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.btn_determine);
|
||||
this.panel1.Controls.Add(this.employeeId);
|
||||
this.panel1.Controls.Add(this.employeeName);
|
||||
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(1150, 41);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// btn_determine
|
||||
//
|
||||
this.btn_determine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btn_determine.Location = new System.Drawing.Point(1052, 8);
|
||||
this.btn_determine.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.btn_determine.Name = "btn_determine";
|
||||
this.btn_determine.Size = new System.Drawing.Size(85, 25);
|
||||
this.btn_determine.TabIndex = 6;
|
||||
this.btn_determine.Text = "确定";
|
||||
this.btn_determine.Click += new System.EventHandler(this.btn_determine_Click);
|
||||
//
|
||||
// employeeId
|
||||
//
|
||||
this.employeeId.BackColor = System.Drawing.Color.Transparent;
|
||||
this.employeeId.EditText = "";
|
||||
this.employeeId.FontSize = 0F;
|
||||
this.employeeId.LabelText = "工号";
|
||||
this.employeeId.Location = new System.Drawing.Point(269, 8);
|
||||
this.employeeId.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.employeeId.Model = null;
|
||||
this.employeeId.Name = "employeeId";
|
||||
this.employeeId.NullText = "";
|
||||
this.employeeId.ReadOnly = false;
|
||||
this.employeeId.Required = false;
|
||||
this.employeeId.Size = new System.Drawing.Size(231, 22);
|
||||
this.employeeId.TabIndex = 5;
|
||||
//
|
||||
// employeeName
|
||||
//
|
||||
this.employeeName.BackColor = System.Drawing.Color.Transparent;
|
||||
this.employeeName.EditText = "";
|
||||
this.employeeName.FontSize = 0F;
|
||||
this.employeeName.LabelText = "人员";
|
||||
this.employeeName.Location = new System.Drawing.Point(14, 8);
|
||||
this.employeeName.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.employeeName.Model = null;
|
||||
this.employeeName.Name = "employeeName";
|
||||
this.employeeName.NullText = "";
|
||||
this.employeeName.ReadOnly = false;
|
||||
this.employeeName.Required = false;
|
||||
this.employeeName.Size = new System.Drawing.Size(231, 22);
|
||||
this.employeeName.TabIndex = 4;
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.gridControlEx4);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.treeList1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1150, 530);
|
||||
this.splitContainer1.SplitterDistance = 297;
|
||||
this.splitContainer1.TabIndex = 1;
|
||||
//
|
||||
// gridControlEx4
|
||||
//
|
||||
this.gridControlEx4.AdapterObj = null;
|
||||
this.gridControlEx4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridControlEx4.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridControlEx4.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.gridControlEx4.Name = "gridControlEx4";
|
||||
this.gridControlEx4.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gridControlEx4.Size = new System.Drawing.Size(297, 530);
|
||||
this.gridControlEx4.TabIndex = 2;
|
||||
//
|
||||
// treeList1
|
||||
//
|
||||
this.treeList1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.treeList1.Location = new System.Drawing.Point(0, 0);
|
||||
this.treeList1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.treeList1.Name = "treeList1";
|
||||
this.treeList1.OptionsClipboard.AllowCopy = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.treeList1.OptionsClipboard.CopyNodeHierarchy = DevExpress.Utils.DefaultBoolean.True;
|
||||
this.treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
|
||||
this.repositoryItemCheckEdit1});
|
||||
this.treeList1.Size = new System.Drawing.Size(849, 530);
|
||||
this.treeList1.TabIndex = 3;
|
||||
//
|
||||
// repositoryItemCheckEdit1
|
||||
//
|
||||
this.repositoryItemCheckEdit1.AutoHeight = false;
|
||||
this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
|
||||
//
|
||||
// FrmPermissionToCopy
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1150, 571);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "FrmPermissionToCopy";
|
||||
this.Text = "复制权限";
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeList1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private Control.GridControlEx gridControlEx4;
|
||||
private DevExpress.XtraTreeList.TreeList treeList1;
|
||||
private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1;
|
||||
private Control.LabelTextEdit employeeId;
|
||||
private Control.LabelTextEdit employeeName;
|
||||
private DevExpress.XtraEditors.SimpleButton btn_determine;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,453 @@
|
||||
using DevExpress.XtraEditors.Repository;
|
||||
using DevExpress.XtraTreeList.Columns;
|
||||
using DevExpress.XtraTreeList.Nodes;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Core;
|
||||
using Lskj.Model;
|
||||
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 Lskj.PubPower
|
||||
{
|
||||
public partial class FrmPermissionToCopy : BaseForm
|
||||
{
|
||||
|
||||
public DynamicPowerModel PubPowerModel;
|
||||
/// <summary>
|
||||
/// 选中行的集合
|
||||
/// </summary>
|
||||
private List<DataRow> rows = new List<DataRow>();
|
||||
public List<string> readPurview = new List<string>();
|
||||
public List<string> editPurview = new List<string>();
|
||||
private List<string> idlist = new List<string>();
|
||||
/// <summary>
|
||||
/// 记录选中角色选中行的行号之后
|
||||
/// </summary>
|
||||
private string rolePositionAfter = string.Empty;
|
||||
/// <summary>
|
||||
/// 记录选中人员选中行的行号之后
|
||||
/// </summary>
|
||||
private string operPositionAfter = string.Empty;
|
||||
/// <summary>
|
||||
/// 记录选中角色选中行的行号之前
|
||||
/// </summary>
|
||||
private string rolePositionBefore = string.Empty;
|
||||
/// <summary>
|
||||
/// 记录选中人员选中行的行号之前
|
||||
/// </summary>
|
||||
private string operPositionBefore = string.Empty;
|
||||
/// <summary>
|
||||
/// 获取左侧选中的名称
|
||||
/// </summary>
|
||||
private string id = string.Empty;
|
||||
/// <summary>
|
||||
/// 获取临时选中的名称
|
||||
/// </summary>
|
||||
private string empid = string.Empty;
|
||||
private bool Operatorflag = false;
|
||||
/// <summary>
|
||||
/// treeList绑定的表
|
||||
/// </summary>
|
||||
DataTable dt = new DataTable();
|
||||
/// <summary>
|
||||
/// 角色表
|
||||
/// </summary>
|
||||
DataTable Roletable = new DataTable();
|
||||
/// <summary>
|
||||
/// 员工表
|
||||
/// </summary>
|
||||
DataTable employeetable = new DataTable();
|
||||
|
||||
|
||||
public FrmPermissionToCopy()
|
||||
{
|
||||
if (DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
InitializeComponent();
|
||||
//InitializeDeps();
|
||||
InitializeColumns();
|
||||
InitializeUsers();
|
||||
creatTreeListControl();
|
||||
BindGridTreeView();
|
||||
this.gridControlEx4.GridView.Click += new EventHandler(OnGridView2Click);//人员表点击
|
||||
this.gridControlEx4.GridView.BestFitColumns();//设置根据内容填充列宽
|
||||
xtraTabControl1_SelectedPageChanged();
|
||||
this.employeeName.TextEdit.EditValueChanged += new EventHandler(OnUserEditValueChanged);
|
||||
this.employeeId.TextEdit.EditValueChanged += new EventHandler(OnUserEditValueChanged);
|
||||
|
||||
//this.department.TextEdit.EditValueChanged += new EventHandler(OnDepEditValueChanged);
|
||||
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#region 私有方法
|
||||
|
||||
/// <summary>
|
||||
/// 筛选赋权限表
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
private DataTable GetNewDt(DataTable newdt)
|
||||
{
|
||||
idlist.Clear();
|
||||
string sqlwhere = string.Empty;
|
||||
foreach (DataRow item in newdt.Rows)
|
||||
{
|
||||
idlist.Add(item["员工ID"] + " and ");
|
||||
}
|
||||
foreach (string id in idlist)
|
||||
{
|
||||
sqlwhere = sqlwhere + string.Format("员工ID !={0}", id);
|
||||
}
|
||||
|
||||
sqlwhere = !string.IsNullOrEmpty(sqlwhere) ? sqlwhere.Trim().Substring(0, sqlwhere.Length - 4) : "1=1";
|
||||
newdt = SqlHelper.ExecuteDataTable("select * from P_employeeBaseView where " + sqlwhere);
|
||||
return newdt;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取选中行数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-09-27 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="node">The node.</param>
|
||||
/// <returns>DataRow.</returns>
|
||||
private DataRow GetForcedNodeDataRow(TreeListNode node)
|
||||
{
|
||||
DataRowView dataRowView = this.treeList1.GetDataRecordByNode(node) as DataRowView;
|
||||
return dataRowView != null ? dataRowView.Row : null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 默认绑定列数据
|
||||
/// </summary>
|
||||
private void InitializeColumns()
|
||||
{
|
||||
this.gridControlEx4.GridView.Columns.AddVisible("员工ID", "员工ID");
|
||||
this.gridControlEx4.GridView.Columns.AddVisible("员工工号", "员工工号");
|
||||
this.gridControlEx4.GridView.Columns.AddVisible("员工姓名", "员工姓名");
|
||||
this.gridControlEx4.GridView.Columns.AddVisible("所属部门", "所属部门");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:默认加载表格数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-09-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void InitializeUsers()
|
||||
{
|
||||
/// <summary>
|
||||
/// 人员和角色绑定的表
|
||||
/// </summary>
|
||||
Roletable = PowerImpl.GetWorkRole("", "");
|
||||
employeetable = PowerImpl.GetWorkEmployee();
|
||||
this.gridControlEx4.GridControl.DataSource = employeetable;
|
||||
}
|
||||
/// <summary>
|
||||
/// 动态创建TreeList的Column,一列为图层名,一列为是否统计列Check控件
|
||||
/// </summary>
|
||||
private void creatTreeListControl()
|
||||
{
|
||||
|
||||
TreeListColumn treeListColumnName = new TreeListColumn();
|
||||
treeListColumnName.Caption = "系统名称";
|
||||
treeListColumnName.FieldName = "Caption";
|
||||
treeListColumnName.MinWidth = 38;
|
||||
treeListColumnName.Visible = true;
|
||||
treeListColumnName.VisibleIndex = 0;
|
||||
treeListColumnName.Width = 400;
|
||||
|
||||
TreeListColumn treeListColumnMenuId = new TreeListColumn();
|
||||
treeListColumnMenuId.Caption = "菜单id";
|
||||
treeListColumnMenuId.FieldName = "MenuId";
|
||||
treeListColumnMenuId.Visible = true;
|
||||
treeListColumnMenuId.VisibleIndex = 1;
|
||||
|
||||
TreeListColumn treeListColumnReadflag = new TreeListColumn();
|
||||
RepositoryItemCheckEdit checkEdit = new RepositoryItemCheckEdit();
|
||||
checkEdit.ValueChecked = 1;
|
||||
checkEdit.ValueUnchecked = 0;
|
||||
checkEdit.ValueGrayed = 3;
|
||||
treeListColumnReadflag.ColumnEdit = checkEdit;
|
||||
treeListColumnReadflag.Caption = "只读权限";
|
||||
treeListColumnReadflag.FieldName = "Readflag";
|
||||
treeListColumnReadflag.Name = "treeListColumnReadflagValue";
|
||||
treeListColumnReadflag.Visible = true;
|
||||
treeListColumnReadflag.VisibleIndex = 2;
|
||||
|
||||
TreeListColumn treeListColumnEditflag = new TreeListColumn();
|
||||
treeListColumnEditflag.ColumnEdit = checkEdit;
|
||||
treeListColumnEditflag.Caption = "操作权限";
|
||||
treeListColumnEditflag.FieldName = "Editflag";
|
||||
treeListColumnEditflag.Name = "treeListColumnEditflagValue";
|
||||
treeListColumnEditflag.Visible = true;
|
||||
treeListColumnEditflag.VisibleIndex = 3;
|
||||
|
||||
this.treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
|
||||
treeListColumnName,
|
||||
treeListColumnMenuId,
|
||||
treeListColumnReadflag,
|
||||
treeListColumnEditflag
|
||||
});
|
||||
this.treeList1.Nodes.Clear();
|
||||
this.treeList1.Refresh();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:绑定表格树结构</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2017-09-04 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="treeTable">The tree table.</param>
|
||||
public void BindGridTreeView()
|
||||
{
|
||||
DataTable treeTable = PowerImpl.GetMenuTreeViewData();
|
||||
//节点前显示复选框
|
||||
//this.treeList1.OptionsView.ShowCheckBoxes = true;
|
||||
// this.treeList1.OptionsBehavior.Editable = false;
|
||||
|
||||
dt.Columns.Add("ID");
|
||||
dt.Columns.Add("PARENTID");
|
||||
//(节点编码的名称)
|
||||
dt.Columns.Add("Caption");
|
||||
dt.Columns.Add("MenuId");
|
||||
dt.Columns.Add("Readflag", typeof(int));
|
||||
dt.Columns.Add("Editflag", typeof(int));
|
||||
if (treeTable != null && treeTable.Rows.Count > 0)
|
||||
{
|
||||
List<string> idlist = new List<string>();
|
||||
this.Tag = treeTable.Rows[0];
|
||||
DataColumnCollection dcc = treeTable.Columns;
|
||||
for (int i = 0; i < treeTable.Rows.Count; i++)
|
||||
{
|
||||
DataRow dr = treeTable.Rows[i];
|
||||
DataRow dr1 = dt.NewRow();
|
||||
string tnKey = dr["id"] + "";
|
||||
string tnStr = dr["MenuCaption"] + "";
|
||||
string pKey = dr["parentId"] + "";
|
||||
string MenuId = dr["MenuId"] + "";
|
||||
if (idlist.Contains(tnKey))
|
||||
{
|
||||
tnKey += "re" + i;
|
||||
}
|
||||
dr1["ID"] = tnKey;
|
||||
dr1["PARENTID"] = pKey;
|
||||
dr1["Caption"] = tnStr;
|
||||
dr1["MenuId"] = MenuId;
|
||||
dr1["Readflag"] = 0;
|
||||
dr1["editflag"] = 0;
|
||||
dt.Rows.Add(dr1);
|
||||
idlist.Add(tnKey);
|
||||
}
|
||||
this.treeList1.DataSource = dt;
|
||||
this.treeList1.KeyFieldName = "ID";
|
||||
this.treeList1.ParentFieldName = "PARENTID";
|
||||
//this.treeList1.Columns[0].Caption = "系统名称";
|
||||
//this.treeList1.Columns[0].Width = 500;
|
||||
this.treeList1.Columns[0].OptionsColumn.AllowEdit = false;
|
||||
this.treeList1.Columns[1].Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:用户值改变后</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-06-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
void OnUserEditValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string mc = this.employeeName.EditText;
|
||||
string dc = this.employeeId.EditText;
|
||||
DataTable table = PowerImpl.GetWorkFlowUsers(mc, dc);
|
||||
this.gridControlEx4.gridControl.DataSource = table;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:初始化部门数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-06-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
//private void InitializeDeps()
|
||||
//{
|
||||
|
||||
// DataTable table = WorkFlowBillImpl.GetDeps();
|
||||
// this.department.ValueMember = "departmentid";
|
||||
// this.department.ValueField = "departmentid";
|
||||
// this.department.TextField = "departmentname";
|
||||
// this.department.SetDataSource(table);
|
||||
//}
|
||||
/// <summary>
|
||||
/// 获取所有选中的集合
|
||||
/// </summary>
|
||||
/// <param name="parentNode"></param>
|
||||
private void GetListKeyID()
|
||||
{
|
||||
editPurview.Clear();
|
||||
readPurview.Clear();
|
||||
DataTable masterdt = (DataTable)treeList1.DataSource;
|
||||
for (int i = 0; i < masterdt.Rows.Count; i++)
|
||||
{
|
||||
if (masterdt.Rows[i]["ID"].ToString().Length > 4 && masterdt.Rows[i]["Editflag"] + "" == "1")
|
||||
{
|
||||
editPurview.Add(masterdt.Rows[i]["MenuId"] + "");
|
||||
}
|
||||
else
|
||||
if (masterdt.Rows[i]["ID"].ToString().Length > 4 && masterdt.Rows[i]["Readflag"] + "" == "1")
|
||||
{
|
||||
readPurview.Add(masterdt.Rows[i]["MenuId"] + "");
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取选择状态有权限的节点集合
|
||||
/// </summary>
|
||||
/// <param name="parentNode">父级节点</param>
|
||||
private void GetNodeCheckedID(string[] ReadPurview, string[] EditPurview)
|
||||
{
|
||||
rows.Clear();
|
||||
foreach (DataRow item in dt.Rows)
|
||||
{
|
||||
if (ReadPurview.Contains(item["MenuId"] + ""))
|
||||
{
|
||||
item["Readflag"] = "1";
|
||||
}
|
||||
if (EditPurview.Contains(item["MenuId"] + ""))
|
||||
{
|
||||
item["editflag"] = "1";
|
||||
}
|
||||
if (!EditPurview.Contains(item["MenuId"] + ""))
|
||||
{
|
||||
item["editflag"] = "0";
|
||||
}
|
||||
if (!ReadPurview.Contains(item["MenuId"] + ""))
|
||||
{
|
||||
item["Readflag"] = "0";
|
||||
}
|
||||
rows.Add(item);
|
||||
}
|
||||
this.treeList1.DataSource = rows.CopyToDataTable();
|
||||
this.treeList1.CollapseAll();
|
||||
}
|
||||
|
||||
#endregion
|
||||
#region 点击事件
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 单击查询人员表里的数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnGridView2Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataRow mSelectRow = this.gridControlEx4.GridView.GetFocusedDataRow();
|
||||
operPositionAfter = this.gridControlEx4.GridView.FocusedRowHandle.ToString();
|
||||
if (mSelectRow != null)
|
||||
{
|
||||
id = mSelectRow["员工ID"] + "";
|
||||
operPositionBefore = id;
|
||||
Second(id);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 点击人员详细信息的方法
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
private void Second(string Secondid)
|
||||
{
|
||||
id = Secondid;
|
||||
// 验证删除存储过程
|
||||
string tipMsg = string.Empty;
|
||||
try
|
||||
{
|
||||
DataSet ds = BaseImpl.getAuthorityByEmpid(1, id, "", "", out tipMsg);
|
||||
string editPurview = ds.Tables.Count > 0 ? ds.Tables[0].Rows[0]["pid"] + "" : string.Empty;
|
||||
string[] EditPurview = editPurview.Trim().TrimEnd(',').Split(',');
|
||||
DataSet ds2 = BaseImpl.getAuthorityByEmpid(2, id, "", "", out tipMsg);
|
||||
string readPurview = ds2.Tables.Count > 0 ? ds2.Tables[0].Rows[0]["pid"] + "" : string.Empty;
|
||||
string[] ReadPurview = readPurview.Trim().TrimEnd(',').Split(',');
|
||||
GetNodeCheckedID(ReadPurview, EditPurview);
|
||||
Operatorflag = true;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageUtil.Show("权限表无此人!");
|
||||
this.gridControlEx4.GridView.SelectRowHandler(0);
|
||||
Second("1");
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 默认选中第一行
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void xtraTabControl1_SelectedPageChanged()
|
||||
{
|
||||
operPositionAfter = string.IsNullOrWhiteSpace(operPositionAfter) ? "0" : operPositionAfter;
|
||||
operPositionBefore = string.IsNullOrWhiteSpace(operPositionBefore) ? employeetable.Rows[0]["员工ID"] + "" : operPositionBefore;
|
||||
this.gridControlEx4.GridView.SelectRowHandler(int.Parse(operPositionAfter));//设置默认选中行
|
||||
Second(operPositionBefore);
|
||||
|
||||
}
|
||||
|
||||
private void btn_determine_Click(object sender, EventArgs e)
|
||||
{
|
||||
GetListKeyID();
|
||||
this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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,176 @@
|
||||
<?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>{F9D85AB9-300C-4BF6-87D6-29127755117A}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.PubPower</RootNamespace>
|
||||
<AssemblyName>Lskj.PubPower</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\Lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.PubPower.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.BonusSkins.v15.2" />
|
||||
<Reference Include="DevExpress.Data.v15.2" />
|
||||
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.RichEdit.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Spreadsheet.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Utils.v15.2" />
|
||||
<Reference Include="DevExpress.Sparkline.v15.2.Core" />
|
||||
<Reference Include="DevExpress.XtraBars.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraCharts.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraCharts.v15.2.UI, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2" />
|
||||
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraReports.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraReports.v15.2.Extensions, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraRichEdit.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraScheduler.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraScheduler.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraSpreadsheet.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraTreeList.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="FastReport, Version=2017.1.16.0, Culture=neutral, PublicKeyToken=417583d16d08abed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\FastReport.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="itextsharp">
|
||||
<HintPath>..\..\引用DLL\itextsharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lskj.Data">
|
||||
<HintPath>..\..\Debug\Lskj.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lskj.Util">
|
||||
<HintPath>..\..\Debug\Lskj.Util.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NPOI">
|
||||
<HintPath>..\..\引用DLL\NPOI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="O2S.Components.PDFView4NET">
|
||||
<HintPath>..\..\引用DLL\O2S.Components.PDFView4NET.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Runtime.Remoting" />
|
||||
<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="FrmAddRole.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmAddRole.Designer.cs">
|
||||
<DependentUpon>FrmAddRole.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="FrmPermissionToCopy.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmPermissionToCopy.Designer.cs">
|
||||
<DependentUpon>FrmPermissionToCopy.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FrmAddRole.resx">
|
||||
<DependentUpon>FrmAddRole.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmPermissionToCopy.resx">
|
||||
<DependentUpon>FrmPermissionToCopy.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\licenses.licx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<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>
|
||||
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
|
||||
<Project>{7EAFCCC2-A18F-49E9-85C6-A984966CFD01}</Project>
|
||||
<Name>Lskj.Business</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
|
||||
<Project>{447CDC40-659F-4CCA-9ED6-8E818B4CF8BF}</Project>
|
||||
<Name>Lskj.Control</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
|
||||
<Project>{2a1be6ac-1077-491b-a754-c5822fe8121e}</Project>
|
||||
<Name>Lskj.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
|
||||
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
|
||||
<Name>Lskj.Model</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<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,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.UserSkins;
|
||||
using DevExpress.Skins;
|
||||
using DevExpress.LookAndFeel;
|
||||
|
||||
namespace Lskj.PubPower
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
BonusSkins.Register();
|
||||
SkinManager.EnableFormSkins();
|
||||
UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
|
||||
Application.Run(new FrmMain());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Lskj.PubPower")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Lskj.PubPower")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2013")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("9006f149-aa49-4b8e-ba69-386d945fa738")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubPower.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.PubPower.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.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubPower.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.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,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.XLS" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-10.3.8.0" newVersion="10.3.8.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.Presentation" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.3.6.0" newVersion="5.3.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.Doc" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.3.15.0" newVersion="8.3.15.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user