基线 SVN r240
SVN-Revision: r240
@@ -0,0 +1,83 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class CornerLab
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.cb_mark = new Lskj.Control.CircleButton();
|
||||
this.lbl_mark_num = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cb_mark
|
||||
//
|
||||
this.cb_mark.BackColor = System.Drawing.Color.Red;
|
||||
this.cb_mark.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||||
this.cb_mark.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cb_mark.FlatAppearance.BorderSize = 0;
|
||||
this.cb_mark.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cb_mark.ImageEnter = null;
|
||||
this.cb_mark.ImageNormal = null;
|
||||
this.cb_mark.Location = new System.Drawing.Point(0, 0);
|
||||
this.cb_mark.Name = "cb_mark";
|
||||
this.cb_mark.Radius = 24;
|
||||
this.cb_mark.Size = new System.Drawing.Size(24, 24);
|
||||
this.cb_mark.TabIndex = 5;
|
||||
this.cb_mark.UseVisualStyleBackColor = false;
|
||||
this.cb_mark.Visible = false;
|
||||
//
|
||||
// lbl_mark_num
|
||||
//
|
||||
this.lbl_mark_num.AutoSize = true;
|
||||
this.lbl_mark_num.BackColor = System.Drawing.Color.Red;
|
||||
this.lbl_mark_num.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lbl_mark_num.ForeColor = System.Drawing.Color.White;
|
||||
this.lbl_mark_num.Location = new System.Drawing.Point(3, 6);
|
||||
this.lbl_mark_num.Name = "lbl_mark_num";
|
||||
this.lbl_mark_num.Size = new System.Drawing.Size(19, 12);
|
||||
this.lbl_mark_num.TabIndex = 6;
|
||||
this.lbl_mark_num.Text = "99";
|
||||
this.lbl_mark_num.Visible = false;
|
||||
//
|
||||
// CornerLab
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.lbl_mark_num);
|
||||
this.Controls.Add(this.cb_mark);
|
||||
this.Name = "CornerLab";
|
||||
this.Size = new System.Drawing.Size(24, 24);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.MenuItem_Paint);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Lskj.Control.CircleButton cb_mark;
|
||||
private System.Windows.Forms.Label lbl_mark_num;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class CornerLab : UserControl
|
||||
{
|
||||
public CornerLab()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 设置公共圆角的角标数量
|
||||
/// <summary>
|
||||
/// <para>说明:设置公共圆角的角标数量</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-06-21 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="PaintEventArgs"/> instance containing the event data.</param>
|
||||
public void SetMenuNum(int num)
|
||||
{
|
||||
if (num < 1)
|
||||
{
|
||||
this.cb_mark.Visible = false;
|
||||
this.lbl_mark_num.Visible = false;
|
||||
this.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.cb_mark.Visible = true;
|
||||
this.lbl_mark_num.Visible = true;
|
||||
this.lbl_mark_num.BringToFront();
|
||||
|
||||
if (num < 10)
|
||||
{
|
||||
this.lbl_mark_num.Location = new Point(6, 6);
|
||||
}
|
||||
if (num > 99)
|
||||
num = 99;
|
||||
this.lbl_mark_num.Text = num + "";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// <para>说明:重绘圆角</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="PaintEventArgs"/> instance containing the event data.</param>
|
||||
private void MenuItem_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
int thisWidth = this.Width;
|
||||
int thisHeight = this.Height;
|
||||
int angle = 20;
|
||||
if (angle > 0)
|
||||
{
|
||||
System.Drawing.Graphics g = CreateGraphics();
|
||||
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
|
||||
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
|
||||
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
|
||||
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
|
||||
oPath.CloseAllFigures();
|
||||
Region = new System.Drawing.Region(oPath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?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="lbl_mark_num.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,931 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class MainPanelControlEx
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainPanelControlEx));
|
||||
this.plRightLine = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_right = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_bottom_right = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_bottom_right_main = new System.Windows.Forms.Panel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.pl_center_main_bottom_left = new System.Windows.Forms.Panel();
|
||||
this.pl_center_main_bottom_left_main = new System.Windows.Forms.Panel();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.lblShortcutset = new System.Windows.Forms.Label();
|
||||
this.pl_center_main_right_container = new System.Windows.Forms.Panel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.tslCompany = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsmi_account_book = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStripLabel2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsmi_userName = new System.Windows.Forms.ToolStripLabel();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.tsmi_split = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.pl_center = new System.Windows.Forms.Panel();
|
||||
this.tabMain = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtpFirst = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.pl_center_main = new System.Windows.Forms.Panel();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.pl_center_left = new System.Windows.Forms.Panel();
|
||||
this.tv_left = new Lskj.Main3.Control.TreeViewCustom();
|
||||
this.xtpDesktop = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.plDesktop = new System.Windows.Forms.Panel();
|
||||
this.moduleWebView1 = new Lskj.Control.ModuleWebView();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.plMain = new System.Windows.Forms.Panel();
|
||||
this.plBottom = new System.Windows.Forms.Panel();
|
||||
this.plTop = new System.Windows.Forms.Panel();
|
||||
this.pl_top_center = new System.Windows.Forms.Panel();
|
||||
this.lueUserName = new Lskj.Control.AutoGridLookUp();
|
||||
this.menuMain = new System.Windows.Forms.MenuStrip();
|
||||
this.pic_search = new System.Windows.Forms.PictureBox();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.pl_top_right = new System.Windows.Forms.Panel();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.lblMenuTitle = new System.Windows.Forms.Label();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.lblSetting = new System.Windows.Forms.Label();
|
||||
this.lbUserName = new System.Windows.Forms.Label();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.lblSwapUser = new System.Windows.Forms.Label();
|
||||
this.btnMax = new System.Windows.Forms.Button();
|
||||
this.btnMin = new System.Windows.Forms.Button();
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.pl_top_left = new System.Windows.Forms.Panel();
|
||||
this.lblSubTitle = new System.Windows.Forms.Label();
|
||||
this.mark_timer = new System.Windows.Forms.Timer(this.components);
|
||||
this.autoGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.pl_center_main_right.SuspendLayout();
|
||||
this.pl_center_main_bottom_right.SuspendLayout();
|
||||
this.pl_center_main_bottom_left.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.pl_center_main_right_container.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.pl_center.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit();
|
||||
this.tabMain.SuspendLayout();
|
||||
this.xtpFirst.SuspendLayout();
|
||||
this.pl_center_main.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.pl_center_left.SuspendLayout();
|
||||
this.xtpDesktop.SuspendLayout();
|
||||
this.plDesktop.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.plMain.SuspendLayout();
|
||||
this.plBottom.SuspendLayout();
|
||||
this.plTop.SuspendLayout();
|
||||
this.pl_top_center.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pic_search)).BeginInit();
|
||||
this.pl_top_right.SuspendLayout();
|
||||
this.pl_top_left.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.autoGridLookUpEdit1View)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// plRightLine
|
||||
//
|
||||
this.plRightLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(187)))), ((int)(((byte)(187)))));
|
||||
this.plRightLine.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.plRightLine.Location = new System.Drawing.Point(0, 0);
|
||||
this.plRightLine.Name = "plRightLine";
|
||||
this.plRightLine.Size = new System.Drawing.Size(2, 584);
|
||||
this.plRightLine.TabIndex = 6;
|
||||
//
|
||||
// pl_center_main_right
|
||||
//
|
||||
this.pl_center_main_right.Controls.Add(this.pl_center_main_bottom_right);
|
||||
this.pl_center_main_right.Controls.Add(this.pl_center_main_bottom_left);
|
||||
this.pl_center_main_right.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_right.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_right.Name = "pl_center_main_right";
|
||||
this.pl_center_main_right.Size = new System.Drawing.Size(162, 584);
|
||||
this.pl_center_main_right.TabIndex = 5;
|
||||
//
|
||||
// pl_center_main_bottom_right
|
||||
//
|
||||
this.pl_center_main_bottom_right.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
|
||||
this.pl_center_main_bottom_right.Controls.Add(this.pl_center_main_bottom_right_main);
|
||||
this.pl_center_main_bottom_right.Controls.Add(this.label4);
|
||||
this.pl_center_main_bottom_right.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_center_main_bottom_right.Location = new System.Drawing.Point(0, 312);
|
||||
this.pl_center_main_bottom_right.Name = "pl_center_main_bottom_right";
|
||||
this.pl_center_main_bottom_right.Size = new System.Drawing.Size(162, 272);
|
||||
this.pl_center_main_bottom_right.TabIndex = 1;
|
||||
//
|
||||
// pl_center_main_bottom_right_main
|
||||
//
|
||||
this.pl_center_main_bottom_right_main.AutoScroll = true;
|
||||
this.pl_center_main_bottom_right_main.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
|
||||
this.pl_center_main_bottom_right_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_bottom_right_main.Location = new System.Drawing.Point(0, 20);
|
||||
this.pl_center_main_bottom_right_main.Name = "pl_center_main_bottom_right_main";
|
||||
this.pl_center_main_bottom_right_main.Size = new System.Drawing.Size(162, 252);
|
||||
this.pl_center_main_bottom_right_main.TabIndex = 3;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
|
||||
this.label4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(86)))), ((int)(((byte)(86)))));
|
||||
this.label4.Location = new System.Drawing.Point(0, 0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(162, 20);
|
||||
this.label4.TabIndex = 2;
|
||||
this.label4.Text = " 快捷报表通道";
|
||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.label4.DoubleClick += new System.EventHandler(this.OnShortCutDoubleClick);
|
||||
//
|
||||
// pl_center_main_bottom_left
|
||||
//
|
||||
this.pl_center_main_bottom_left.Controls.Add(this.pl_center_main_bottom_left_main);
|
||||
this.pl_center_main_bottom_left.Controls.Add(this.panel6);
|
||||
this.pl_center_main_bottom_left.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_center_main_bottom_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_bottom_left.Name = "pl_center_main_bottom_left";
|
||||
this.pl_center_main_bottom_left.Size = new System.Drawing.Size(162, 312);
|
||||
this.pl_center_main_bottom_left.TabIndex = 0;
|
||||
//
|
||||
// pl_center_main_bottom_left_main
|
||||
//
|
||||
this.pl_center_main_bottom_left_main.AutoScroll = true;
|
||||
this.pl_center_main_bottom_left_main.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230)))));
|
||||
this.pl_center_main_bottom_left_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_bottom_left_main.Location = new System.Drawing.Point(0, 20);
|
||||
this.pl_center_main_bottom_left_main.Name = "pl_center_main_bottom_left_main";
|
||||
this.pl_center_main_bottom_left_main.Size = new System.Drawing.Size(162, 292);
|
||||
this.pl_center_main_bottom_left_main.TabIndex = 3;
|
||||
//
|
||||
// panel6
|
||||
//
|
||||
this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
|
||||
this.panel6.Controls.Add(this.lblShortcutset);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(162, 20);
|
||||
this.panel6.TabIndex = 1;
|
||||
//
|
||||
// lblShortcutset
|
||||
//
|
||||
this.lblShortcutset.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
|
||||
this.lblShortcutset.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblShortcutset.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblShortcutset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(85)))), ((int)(((byte)(85)))), ((int)(((byte)(85)))));
|
||||
this.lblShortcutset.Location = new System.Drawing.Point(0, 0);
|
||||
this.lblShortcutset.Name = "lblShortcutset";
|
||||
this.lblShortcutset.Size = new System.Drawing.Size(162, 20);
|
||||
this.lblShortcutset.TabIndex = 0;
|
||||
this.lblShortcutset.Text = " 快捷操作通道";
|
||||
this.lblShortcutset.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.lblShortcutset.DoubleClick += new System.EventHandler(this.OnShortCutDoubleClick);
|
||||
//
|
||||
// pl_center_main_right_container
|
||||
//
|
||||
this.pl_center_main_right_container.Controls.Add(this.plRightLine);
|
||||
this.pl_center_main_right_container.Controls.Add(this.pl_center_main_right);
|
||||
this.pl_center_main_right_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main_right_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_main_right_container.Name = "pl_center_main_right_container";
|
||||
this.pl_center_main_right_container.Size = new System.Drawing.Size(162, 584);
|
||||
this.pl_center_main_right_container.TabIndex = 6;
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.Controls.Add(this.pl_center_main_right_container);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel5.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(162, 584);
|
||||
this.panel5.TabIndex = 1;
|
||||
//
|
||||
// tslCompany
|
||||
//
|
||||
this.tslCompany.Name = "tslCompany";
|
||||
this.tslCompany.Size = new System.Drawing.Size(0, 27);
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tslCompany,
|
||||
this.toolStripSeparator2,
|
||||
this.tsmi_account_book,
|
||||
this.toolStripLabel2,
|
||||
this.tsmi_userName,
|
||||
this.toolStripSeparator1,
|
||||
this.toolStripLabel1,
|
||||
this.tsmi_split});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1275, 30);
|
||||
this.toolStrip1.TabIndex = 8;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// toolStripSeparator2
|
||||
//
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// tsmi_account_book
|
||||
//
|
||||
this.tsmi_account_book.Name = "tsmi_account_book";
|
||||
this.tsmi_account_book.Size = new System.Drawing.Size(92, 27);
|
||||
this.tsmi_account_book.Text = "账套:默认帐套";
|
||||
//
|
||||
// toolStripLabel2
|
||||
//
|
||||
this.toolStripLabel2.Name = "toolStripLabel2";
|
||||
this.toolStripLabel2.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// tsmi_userName
|
||||
//
|
||||
this.tsmi_userName.Name = "tsmi_userName";
|
||||
this.tsmi_userName.Size = new System.Drawing.Size(92, 27);
|
||||
this.tsmi_userName.Text = "用户名:管理员";
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// toolStripLabel1
|
||||
//
|
||||
this.toolStripLabel1.Name = "toolStripLabel1";
|
||||
this.toolStripLabel1.Size = new System.Drawing.Size(81, 27);
|
||||
this.toolStripLabel1.Text = "版本号:V6.0";
|
||||
//
|
||||
// tsmi_split
|
||||
//
|
||||
this.tsmi_split.Name = "tsmi_split";
|
||||
this.tsmi_split.Size = new System.Drawing.Size(6, 30);
|
||||
//
|
||||
// pl_center
|
||||
//
|
||||
this.pl_center.Controls.Add(this.tabMain);
|
||||
this.pl_center.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center.Name = "pl_center";
|
||||
this.pl_center.Size = new System.Drawing.Size(1275, 611);
|
||||
this.pl_center.TabIndex = 2;
|
||||
//
|
||||
// tabMain
|
||||
//
|
||||
this.tabMain.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.tabMain.Appearance.Options.UseBackColor = true;
|
||||
this.tabMain.AppearancePage.Header.Font = new System.Drawing.Font("宋体", 9F);
|
||||
this.tabMain.AppearancePage.Header.ForeColor = System.Drawing.Color.Black;
|
||||
this.tabMain.AppearancePage.Header.Options.UseFont = true;
|
||||
this.tabMain.AppearancePage.Header.Options.UseForeColor = true;
|
||||
this.tabMain.AppearancePage.Header.Options.UseTextOptions = true;
|
||||
this.tabMain.AppearancePage.Header.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.tabMain.AppearancePage.Header.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
|
||||
this.tabMain.AppearancePage.PageClient.Font = new System.Drawing.Font("宋体", 9F);
|
||||
this.tabMain.AppearancePage.PageClient.Options.UseFont = true;
|
||||
this.tabMain.BackgroundImage = global::Lskj.Main3.Properties.Resources.tab_bg;
|
||||
this.tabMain.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InActiveTabPageHeader;
|
||||
this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabMain.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tabMain.Name = "tabMain";
|
||||
this.tabMain.SelectedTabPage = this.xtpFirst;
|
||||
this.tabMain.Size = new System.Drawing.Size(1275, 611);
|
||||
this.tabMain.TabIndex = 0;
|
||||
this.tabMain.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtpFirst,
|
||||
this.xtpDesktop});
|
||||
this.tabMain.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.OnSelectedPageChanged);
|
||||
this.tabMain.CloseButtonClick += new System.EventHandler(this.OnTabMainClick);
|
||||
this.tabMain.DoubleClick += new System.EventHandler(this.OnTabMainClick);
|
||||
//
|
||||
// xtpFirst
|
||||
//
|
||||
this.xtpFirst.Appearance.PageClient.BackColor = System.Drawing.Color.Black;
|
||||
this.xtpFirst.Appearance.PageClient.Options.UseBackColor = true;
|
||||
this.xtpFirst.Controls.Add(this.pl_center_main);
|
||||
this.xtpFirst.Controls.Add(this.pl_center_left);
|
||||
this.xtpFirst.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.xtpFirst.Name = "xtpFirst";
|
||||
this.xtpFirst.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.xtpFirst.Size = new System.Drawing.Size(1269, 584);
|
||||
this.xtpFirst.Text = " 功能导航 ";
|
||||
//
|
||||
// pl_center_main
|
||||
//
|
||||
this.pl_center_main.BackColor = System.Drawing.Color.White;
|
||||
this.pl_center_main.Controls.Add(this.panel1);
|
||||
this.pl_center_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_center_main.Location = new System.Drawing.Point(141, 0);
|
||||
this.pl_center_main.Name = "pl_center_main";
|
||||
this.pl_center_main.Size = new System.Drawing.Size(1128, 584);
|
||||
this.pl_center_main.TabIndex = 1;
|
||||
this.pl_center_main.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDoubleClick);
|
||||
this.pl_center_main.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDown);
|
||||
this.pl_center_main.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseMove);
|
||||
this.pl_center_main.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseUp);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panel1.Controls.Add(this.panel5);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new System.Drawing.Point(966, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(162, 584);
|
||||
this.panel1.TabIndex = 7;
|
||||
//
|
||||
// pl_center_left
|
||||
//
|
||||
this.pl_center_left.AutoScroll = true;
|
||||
this.pl_center_left.BackColor = System.Drawing.Color.White;
|
||||
this.pl_center_left.Controls.Add(this.tv_left);
|
||||
this.pl_center_left.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_center_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_center_left.Name = "pl_center_left";
|
||||
this.pl_center_left.Padding = new System.Windows.Forms.Padding(4);
|
||||
this.pl_center_left.Size = new System.Drawing.Size(141, 584);
|
||||
this.pl_center_left.TabIndex = 0;
|
||||
//
|
||||
// tv_left
|
||||
//
|
||||
this.tv_left.AutoScroll = true;
|
||||
this.tv_left.BackColor = System.Drawing.Color.White;
|
||||
this.tv_left.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tv_left.Location = new System.Drawing.Point(4, 4);
|
||||
this.tv_left.Name = "tv_left";
|
||||
this.tv_left.Size = new System.Drawing.Size(133, 576);
|
||||
this.tv_left.TabIndex = 1;
|
||||
//
|
||||
// xtpDesktop
|
||||
//
|
||||
this.xtpDesktop.Appearance.PageClient.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.xtpDesktop.Appearance.PageClient.Options.UseBackColor = true;
|
||||
this.xtpDesktop.Controls.Add(this.plDesktop);
|
||||
this.xtpDesktop.Name = "xtpDesktop";
|
||||
this.xtpDesktop.PageVisible = false;
|
||||
this.xtpDesktop.ShowCloseButton = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.xtpDesktop.Size = new System.Drawing.Size(1269, 584);
|
||||
this.xtpDesktop.Text = " 我的桌面 ";
|
||||
//
|
||||
// plDesktop
|
||||
//
|
||||
this.plDesktop.AutoScroll = true;
|
||||
this.plDesktop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.plDesktop.Controls.Add(this.moduleWebView1);
|
||||
this.plDesktop.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plDesktop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plDesktop.Name = "plDesktop";
|
||||
this.plDesktop.Size = new System.Drawing.Size(1269, 584);
|
||||
this.plDesktop.TabIndex = 1;
|
||||
//
|
||||
// moduleWebView1
|
||||
//
|
||||
this.moduleWebView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.moduleWebView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.moduleWebView1.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.moduleWebView1.Name = "moduleWebView1";
|
||||
this.moduleWebView1.Size = new System.Drawing.Size(1269, 584);
|
||||
this.moduleWebView1.TabIndex = 0;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.pl_center);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel4.Location = new System.Drawing.Point(0, 55);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(1275, 611);
|
||||
this.panel4.TabIndex = 3;
|
||||
//
|
||||
// plMain
|
||||
//
|
||||
this.plMain.Controls.Add(this.panel4);
|
||||
this.plMain.Controls.Add(this.plBottom);
|
||||
this.plMain.Controls.Add(this.plTop);
|
||||
this.plMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.plMain.Name = "plMain";
|
||||
this.plMain.Size = new System.Drawing.Size(1275, 696);
|
||||
this.plMain.TabIndex = 2;
|
||||
//
|
||||
// plBottom
|
||||
//
|
||||
this.plBottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.plBottom.Controls.Add(this.toolStrip1);
|
||||
this.plBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.plBottom.Location = new System.Drawing.Point(0, 666);
|
||||
this.plBottom.Name = "plBottom";
|
||||
this.plBottom.Size = new System.Drawing.Size(1275, 30);
|
||||
this.plBottom.TabIndex = 1;
|
||||
//
|
||||
// plTop
|
||||
//
|
||||
this.plTop.Controls.Add(this.pl_top_center);
|
||||
this.plTop.Controls.Add(this.panel3);
|
||||
this.plTop.Controls.Add(this.pl_top_right);
|
||||
this.plTop.Controls.Add(this.pl_top_left);
|
||||
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.plTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTop.Name = "plTop";
|
||||
this.plTop.Size = new System.Drawing.Size(1275, 55);
|
||||
this.plTop.TabIndex = 0;
|
||||
//
|
||||
// pl_top_center
|
||||
//
|
||||
this.pl_top_center.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(87)))), ((int)(((byte)(167)))));
|
||||
this.pl_top_center.Controls.Add(this.lueUserName);
|
||||
this.pl_top_center.Controls.Add(this.menuMain);
|
||||
this.pl_top_center.Controls.Add(this.pic_search);
|
||||
this.pl_top_center.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_top_center.Location = new System.Drawing.Point(245, 0);
|
||||
this.pl_top_center.Name = "pl_top_center";
|
||||
this.pl_top_center.Size = new System.Drawing.Size(614, 55);
|
||||
this.pl_top_center.TabIndex = 3;
|
||||
//
|
||||
// lueUserName
|
||||
//
|
||||
this.lueUserName.DataSource = null;
|
||||
this.lueUserName.EditValue = "";
|
||||
this.lueUserName.Location = new System.Drawing.Point(220, 13);
|
||||
this.lueUserName.Name = "lueUserName";
|
||||
this.lueUserName.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(108)))), ((int)(((byte)(185)))));
|
||||
this.lueUserName.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.lueUserName.Properties.Appearance.ForeColor = System.Drawing.Color.White;
|
||||
this.lueUserName.Properties.Appearance.Options.UseBackColor = true;
|
||||
this.lueUserName.Properties.Appearance.Options.UseFont = true;
|
||||
this.lueUserName.Properties.Appearance.Options.UseForeColor = true;
|
||||
this.lueUserName.Size = new System.Drawing.Size(147, 26);
|
||||
this.lueUserName.TabIndex = 58;
|
||||
this.lueUserName.OnPopupClosed += new System.EventHandler(this.OnUserNamePopupClosed);
|
||||
//
|
||||
// menuMain
|
||||
//
|
||||
this.menuMain.BackColor = System.Drawing.Color.Transparent;
|
||||
this.menuMain.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.menuMain.Font = new System.Drawing.Font("宋体", 9F);
|
||||
this.menuMain.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||
this.menuMain.Location = new System.Drawing.Point(-6, 14);
|
||||
this.menuMain.Name = "menuMain";
|
||||
this.menuMain.Size = new System.Drawing.Size(202, 24);
|
||||
this.menuMain.TabIndex = 0;
|
||||
this.menuMain.Text = "menuStrip1";
|
||||
//
|
||||
// pic_search
|
||||
//
|
||||
this.pic_search.ErrorImage = null;
|
||||
this.pic_search.Image = global::Lskj.Main3.Properties.Resources.search_default;
|
||||
this.pic_search.InitialImage = null;
|
||||
this.pic_search.Location = new System.Drawing.Point(367, 13);
|
||||
this.pic_search.Name = "pic_search";
|
||||
this.pic_search.Size = new System.Drawing.Size(46, 25);
|
||||
this.pic_search.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pic_search.TabIndex = 57;
|
||||
this.pic_search.TabStop = false;
|
||||
this.pic_search.Click += new System.EventHandler(this.OnSearchClick);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.BackgroundImage = global::Lskj.Main3.Properties.Resources.split;
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel3.Location = new System.Drawing.Point(226, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(19, 55);
|
||||
this.panel3.TabIndex = 1;
|
||||
//
|
||||
// pl_top_right
|
||||
//
|
||||
this.pl_top_right.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pl_top_right.BackgroundImage")));
|
||||
this.pl_top_right.Controls.Add(this.button6);
|
||||
this.pl_top_right.Controls.Add(this.label3);
|
||||
this.pl_top_right.Controls.Add(this.label2);
|
||||
this.pl_top_right.Controls.Add(this.button5);
|
||||
this.pl_top_right.Controls.Add(this.label1);
|
||||
this.pl_top_right.Controls.Add(this.button4);
|
||||
this.pl_top_right.Controls.Add(this.lblMenuTitle);
|
||||
this.pl_top_right.Controls.Add(this.button3);
|
||||
this.pl_top_right.Controls.Add(this.lblSetting);
|
||||
this.pl_top_right.Controls.Add(this.lbUserName);
|
||||
this.pl_top_right.Controls.Add(this.button2);
|
||||
this.pl_top_right.Controls.Add(this.button1);
|
||||
this.pl_top_right.Controls.Add(this.lblSwapUser);
|
||||
this.pl_top_right.Controls.Add(this.btnMax);
|
||||
this.pl_top_right.Controls.Add(this.btnMin);
|
||||
this.pl_top_right.Controls.Add(this.btnClose);
|
||||
this.pl_top_right.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.pl_top_right.Location = new System.Drawing.Point(859, 0);
|
||||
this.pl_top_right.Name = "pl_top_right";
|
||||
this.pl_top_right.Size = new System.Drawing.Size(416, 55);
|
||||
this.pl_top_right.TabIndex = 1;
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button6.BackgroundImage = global::Lskj.Main3.Properties.Resources.icon_setting;
|
||||
this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button6.FlatAppearance.BorderSize = 0;
|
||||
this.button6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button6.Location = new System.Drawing.Point(150, 29);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(21, 23);
|
||||
this.button6.TabIndex = 55;
|
||||
this.button6.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label3.ForeColor = System.Drawing.Color.White;
|
||||
this.label3.Location = new System.Drawing.Point(169, 35);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 56;
|
||||
this.label3.Text = "分辨率";
|
||||
this.label3.LostFocus += new System.EventHandler(this.label3_LostFocus);
|
||||
this.label3.MouseClick += new System.Windows.Forms.MouseEventHandler(this.label3_MouseClick);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label2.ForeColor = System.Drawing.Color.White;
|
||||
this.label2.Location = new System.Drawing.Point(16, 34);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 54;
|
||||
this.label2.Text = "切换系统";
|
||||
this.label2.LostFocus += new System.EventHandler(this.label2_LostFocus);
|
||||
this.label2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.label2_MouseClick);
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.BackgroundImage = global::Lskj.Main3.Properties.Resources.swapuser;
|
||||
this.button5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button5.FlatAppearance.BorderSize = 0;
|
||||
this.button5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button5.Location = new System.Drawing.Point(-3, 30);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(21, 23);
|
||||
this.button5.TabIndex = 53;
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label1.ForeColor = System.Drawing.Color.White;
|
||||
this.label1.Location = new System.Drawing.Point(16, 8);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 52;
|
||||
this.label1.Text = "切换账套";
|
||||
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||
this.label1.LostFocus += new System.EventHandler(this.label1_LostFocus);
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.BackgroundImage = global::Lskj.Main3.Properties.Resources.swapuser;
|
||||
this.button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button4.FlatAppearance.BorderSize = 0;
|
||||
this.button4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button4.Location = new System.Drawing.Point(-3, 3);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(21, 23);
|
||||
this.button4.TabIndex = 51;
|
||||
this.button4.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblMenuTitle
|
||||
//
|
||||
this.lblMenuTitle.AutoSize = true;
|
||||
this.lblMenuTitle.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblMenuTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblMenuTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblMenuTitle.Location = new System.Drawing.Point(77, 34);
|
||||
this.lblMenuTitle.Name = "lblMenuTitle";
|
||||
this.lblMenuTitle.Size = new System.Drawing.Size(0, 12);
|
||||
this.lblMenuTitle.TabIndex = 46;
|
||||
this.lblMenuTitle.Click += new System.EventHandler(this.OnMenuTitleClick);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.BackgroundImage = global::Lskj.Main3.Properties.Resources.icon_setting;
|
||||
this.button3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button3.FlatAppearance.BorderSize = 0;
|
||||
this.button3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button3.Location = new System.Drawing.Point(83, 3);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(21, 23);
|
||||
this.button3.TabIndex = 20;
|
||||
this.button3.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblSetting
|
||||
//
|
||||
this.lblSetting.AutoSize = true;
|
||||
this.lblSetting.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSetting.ForeColor = System.Drawing.Color.White;
|
||||
this.lblSetting.Location = new System.Drawing.Point(102, 8);
|
||||
this.lblSetting.Name = "lblSetting";
|
||||
this.lblSetting.Size = new System.Drawing.Size(29, 12);
|
||||
this.lblSetting.TabIndex = 21;
|
||||
this.lblSetting.Text = "换肤";
|
||||
this.lblSetting.Click += new System.EventHandler(this.OnSettingClick);
|
||||
this.lblSetting.MouseLeave += new System.EventHandler(this.OnSettingMouseLeave);
|
||||
//
|
||||
// lbUserName
|
||||
//
|
||||
this.lbUserName.AutoSize = true;
|
||||
this.lbUserName.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lbUserName.ForeColor = System.Drawing.Color.White;
|
||||
this.lbUserName.Location = new System.Drawing.Point(218, 8);
|
||||
this.lbUserName.Name = "lbUserName";
|
||||
this.lbUserName.Size = new System.Drawing.Size(41, 12);
|
||||
this.lbUserName.TabIndex = 8;
|
||||
this.lbUserName.Text = "管理员";
|
||||
this.lbUserName.Click += new System.EventHandler(this.OnUserNameClick);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.BackgroundImage = global::Lskj.Main3.Properties.Resources.swapuser;
|
||||
this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button2.FlatAppearance.BorderSize = 0;
|
||||
this.button2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button2.Location = new System.Drawing.Point(140, 4);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(21, 23);
|
||||
this.button2.TabIndex = 8;
|
||||
this.button2.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
|
||||
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.button1.FlatAppearance.BorderSize = 0;
|
||||
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button1.Location = new System.Drawing.Point(199, 3);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(21, 23);
|
||||
this.button1.TabIndex = 6;
|
||||
this.button1.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblSwapUser
|
||||
//
|
||||
this.lblSwapUser.AutoSize = true;
|
||||
this.lblSwapUser.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSwapUser.ForeColor = System.Drawing.Color.White;
|
||||
this.lblSwapUser.Location = new System.Drawing.Point(159, 8);
|
||||
this.lblSwapUser.Name = "lblSwapUser";
|
||||
this.lblSwapUser.Size = new System.Drawing.Size(29, 12);
|
||||
this.lblSwapUser.TabIndex = 9;
|
||||
this.lblSwapUser.Text = "切换";
|
||||
this.lblSwapUser.Click += new System.EventHandler(this.OnSwapUserClick);
|
||||
//
|
||||
// btnMax
|
||||
//
|
||||
this.btnMax.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMax.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMax.BackgroundImage")));
|
||||
this.btnMax.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnMax.FlatAppearance.BorderSize = 0;
|
||||
this.btnMax.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMax.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMax.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnMax.Location = new System.Drawing.Point(355, 2);
|
||||
this.btnMax.Name = "btnMax";
|
||||
this.btnMax.Size = new System.Drawing.Size(30, 23);
|
||||
this.btnMax.TabIndex = 7;
|
||||
this.btnMax.UseVisualStyleBackColor = false;
|
||||
this.btnMax.Click += new System.EventHandler(this.OnBtnMaxClick);
|
||||
this.btnMax.MouseLeave += new System.EventHandler(this.OnBtnMaxMouseLeave);
|
||||
this.btnMax.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnBtnMaxMouseMove);
|
||||
//
|
||||
// btnMin
|
||||
//
|
||||
this.btnMin.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMin.BackgroundImage")));
|
||||
this.btnMin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnMin.FlatAppearance.BorderSize = 0;
|
||||
this.btnMin.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnMin.Location = new System.Drawing.Point(324, 2);
|
||||
this.btnMin.Name = "btnMin";
|
||||
this.btnMin.Size = new System.Drawing.Size(30, 23);
|
||||
this.btnMin.TabIndex = 5;
|
||||
this.btnMin.UseVisualStyleBackColor = false;
|
||||
this.btnMin.Click += new System.EventHandler(this.OnBtnMinClick);
|
||||
this.btnMin.MouseLeave += new System.EventHandler(this.OnBtnMinMouseLeave);
|
||||
this.btnMin.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnBtnMinMouseMove);
|
||||
//
|
||||
// btnClose
|
||||
//
|
||||
this.btnClose.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
|
||||
this.btnClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnClose.FlatAppearance.BorderSize = 0;
|
||||
this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnClose.Location = new System.Drawing.Point(385, 2);
|
||||
this.btnClose.Name = "btnClose";
|
||||
this.btnClose.Size = new System.Drawing.Size(30, 23);
|
||||
this.btnClose.TabIndex = 4;
|
||||
this.btnClose.UseVisualStyleBackColor = false;
|
||||
this.btnClose.Click += new System.EventHandler(this.OnBtnCloseClick);
|
||||
this.btnClose.MouseLeave += new System.EventHandler(this.OnBtnCloseMouseLeave);
|
||||
this.btnClose.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnBtnCloseMouseMove);
|
||||
//
|
||||
// pl_top_left
|
||||
//
|
||||
this.pl_top_left.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pl_top_left.BackgroundImage")));
|
||||
this.pl_top_left.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.pl_top_left.Controls.Add(this.lblSubTitle);
|
||||
this.pl_top_left.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_top_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_left.Name = "pl_top_left";
|
||||
this.pl_top_left.Size = new System.Drawing.Size(226, 55);
|
||||
this.pl_top_left.TabIndex = 0;
|
||||
this.pl_top_left.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDoubleClick);
|
||||
this.pl_top_left.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseDown);
|
||||
this.pl_top_left.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseMove);
|
||||
this.pl_top_left.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnTopMouseUp);
|
||||
//
|
||||
// lblSubTitle
|
||||
//
|
||||
this.lblSubTitle.AutoSize = true;
|
||||
this.lblSubTitle.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblSubTitle.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblSubTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblSubTitle.Location = new System.Drawing.Point(45, 11);
|
||||
this.lblSubTitle.Name = "lblSubTitle";
|
||||
this.lblSubTitle.Size = new System.Drawing.Size(96, 30);
|
||||
this.lblSubTitle.TabIndex = 1;
|
||||
this.lblSubTitle.Text = "朗速ERP";
|
||||
//
|
||||
// mark_timer
|
||||
//
|
||||
this.mark_timer.Interval = 5000;
|
||||
//
|
||||
// autoGridLookUpEdit1View
|
||||
//
|
||||
this.autoGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
||||
this.autoGridLookUpEdit1View.Name = "autoGridLookUpEdit1View";
|
||||
this.autoGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
|
||||
this.autoGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
|
||||
//
|
||||
// MainPanelControlEx
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.plMain);
|
||||
this.Name = "MainPanelControlEx";
|
||||
this.Size = new System.Drawing.Size(1275, 696);
|
||||
this.pl_center_main_right.ResumeLayout(false);
|
||||
this.pl_center_main_bottom_right.ResumeLayout(false);
|
||||
this.pl_center_main_bottom_left.ResumeLayout(false);
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.pl_center_main_right_container.ResumeLayout(false);
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.pl_center.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit();
|
||||
this.tabMain.ResumeLayout(false);
|
||||
this.xtpFirst.ResumeLayout(false);
|
||||
this.pl_center_main.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.pl_center_left.ResumeLayout(false);
|
||||
this.xtpDesktop.ResumeLayout(false);
|
||||
this.plDesktop.ResumeLayout(false);
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.plMain.ResumeLayout(false);
|
||||
this.plBottom.ResumeLayout(false);
|
||||
this.plBottom.PerformLayout();
|
||||
this.plTop.ResumeLayout(false);
|
||||
this.pl_top_center.ResumeLayout(false);
|
||||
this.pl_top_center.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pic_search)).EndInit();
|
||||
this.pl_top_right.ResumeLayout(false);
|
||||
this.pl_top_right.PerformLayout();
|
||||
this.pl_top_left.ResumeLayout(false);
|
||||
this.pl_top_left.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.autoGridLookUpEdit1View)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel plRightLine;
|
||||
private System.Windows.Forms.Panel pl_center_main_right;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_right;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_right_main;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_left;
|
||||
private System.Windows.Forms.Panel panel6;
|
||||
private System.Windows.Forms.Panel pl_center_main_right_container;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private System.Windows.Forms.ToolStripLabel tslCompany;
|
||||
private System.Windows.Forms.ToolStrip toolStrip1;
|
||||
private System.Windows.Forms.ToolStripLabel tsmi_account_book;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripLabel2;
|
||||
private System.Windows.Forms.ToolStripLabel tsmi_userName;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
|
||||
private System.Windows.Forms.ToolStripSeparator tsmi_split;
|
||||
private System.Windows.Forms.Panel pl_center;
|
||||
public DevExpress.XtraTab.XtraTabControl tabMain;
|
||||
private DevExpress.XtraTab.XtraTabPage xtpFirst;
|
||||
private System.Windows.Forms.Panel pl_center_main;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private DevExpress.XtraTab.XtraTabPage xtpDesktop;
|
||||
private System.Windows.Forms.Panel plDesktop;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Panel plMain;
|
||||
private System.Windows.Forms.Panel plBottom;
|
||||
private System.Windows.Forms.Timer mark_timer;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView autoGridLookUpEdit1View;
|
||||
private System.Windows.Forms.Panel pl_center_left;
|
||||
private TreeViewCustom tv_left;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
|
||||
private Lskj.Control.ModuleWebView moduleWebView1;
|
||||
private System.Windows.Forms.Panel pl_center_main_bottom_left_main;
|
||||
private System.Windows.Forms.Label lblShortcutset;
|
||||
private System.Windows.Forms.Panel plTop;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.Panel pl_top_left;
|
||||
private System.Windows.Forms.Label lblSubTitle;
|
||||
private System.Windows.Forms.Panel pl_top_center;
|
||||
private System.Windows.Forms.MenuStrip menuMain;
|
||||
private System.Windows.Forms.Panel pl_top_right;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Label lblMenuTitle;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Label lblSetting;
|
||||
private System.Windows.Forms.Label lbUserName;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label lblSwapUser;
|
||||
private System.Windows.Forms.Button btnMax;
|
||||
private System.Windows.Forms.Button btnMin;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
private Lskj.Control.AutoGridLookUp lueUserName;
|
||||
public System.Windows.Forms.PictureBox pic_search;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
<?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="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>360, 20</value>
|
||||
</metadata>
|
||||
<metadata name="menuMain.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>703, 20</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="pl_top_right.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAf4AAAA7CAIAAAAVX3/BAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
EwAACxMBAJqcGAAAAONJREFUeF7t1EENADAIALG9ZxCJ2ETINamGvj8LQIr6AXLUD5CjfoAc9QPkqB8g
|
||||
R/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoH
|
||||
yFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76
|
||||
AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUD5CjfoAc9QPkqB8gR/0AOeoHyFE/QI76AXLUDxAz
|
||||
exgaPWhUCQq9AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="button1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAERSURBVEhL7dGhasJRFAZw2cA0MEy0q8GwZjVPWHbB
|
||||
pNmsSR9jL6H4ADZ9gRlWt2AUxphBg4Jcv+9ylev1D+ce3WBh4SfH757DB5oyxvwq+/Hyfvtj/mRBCUaw
|
||||
dDgXIWlXXVCABfQh7/RcxrezG23BADpBRl3gW5irC77hPsgoC/y5wlxdsIK7ICNm6yCztAVjaAYZtYBv
|
||||
Ya4uqMAnNODG4cyMb2c32gKqwhvw/yDOzJJ2Lyo4yDlJb0exBRmowbOAO9w93sYUtOELpjAUTIC7vIkq
|
||||
qMMHPHiZhLtz4K1Y8AqP3vdYTzDjLBVsIO19j8WbLWepwHizlr2VCnberGVvpYKyN2vZW6ngav8FotMC
|
||||
k9oDEt5FdrFvjwAAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="btnMax.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEcSURBVEhLY6AU/P//nySMAYTaL/gC8T4g/gzE/8nE
|
||||
L4F4ORBr4rUQqKBFsP7wSy7PwulMglJ5QKE0cjCLnF4ZT0THCqGWM++AZvpgtRAkAbTsBbOwbAGQi9Ug
|
||||
UjG7eUibUOs5kKXi2CzcB/IZkIlVM7mYL3PRfqDZ9dgs/ERJMOLCXJ4F04Fmr8dmIYiHVRMlmMM6ugto
|
||||
9mGyLJx969N/fBibHootxCYOwjSxEB+mmoWw4MKFkdUh64NhsizEJg7CI8dCEE1XC/HhoWEhPoxNDzIm
|
||||
2UJKMT4L6V5407168hWsPUirClgCw0IQAEogmhgCEtRoYrwHmom9iQEDQAV+QAxqRH0BYmwNJGIwrBGl
|
||||
hWwZVgtJBegG4sf/GQCj6eDe5TPWMAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="btnMin.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEFSURBVEhLY2AWU6MI////nySMYYDk8v++QLwPiD8D
|
||||
8X8y8UsgXg7EmngtBCpokZj38SV/yuzpbBqOeUCxNHIwh1lYmWDplhWSS36/A5rpg9VCkATQshdsWq4F
|
||||
yJopwTyBdW2SS/+ALBXHZuE+kM+QNVADi7Sf3w80ux6bhZ8oCUZcGOQJoNnrsVn4H1khtTBvaEsX0OzD
|
||||
oxZSDY9aiFUTJXjUQqyaKMGD30KgIqIBNv34LMRaeINNIhKg6wVhfIU3jaqnczirJ1/xuR9oVQFLYFgI
|
||||
wkAJRBND3YEaTYz3QDOxNzFgGKjAD4hBjagvQIytgUQMhjWitJAtw2ohqRjdQPz4PwMAbPpIkp2I5VkA
|
||||
AAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="btnClose.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFvSURBVEhLY6AU/P//nySMAYTaL/gC8T4g/gzE/8nE
|
||||
L4F4ORBr4rUQqKBFsP7wSy7PwulMglJ5QKE0cjCLnF4ZT0THCqGWM++AZvpgtRAkAbTsBbOwbAGQi9Ug
|
||||
UjG7eUibUOs5kKXi2CzcB/IZkIlVM7mYL3PRfqDZ9dgs/ERJMOLCXJ4F04Fmr8dmIYiHVRMlmMM6ugto
|
||||
9mGSLFQ3t61o2XXugqyGbjG6HEgMKHcRpAZdDoTJsrB11/mLs299+t9/6sFTZEtBbJAYSA5kKbIeGCbL
|
||||
QjktfbjBMEuRLUN3CDImy0IQRrZ0wumHL0CYkGUgTLaFIAyyFGYRzGJ8loEwRRaCDKebhXQNUmyJBpsY
|
||||
Nr1kWYgrWyBbStVsAcrUIEux+QJkKdUzPiUYn4V0L7zpXj35CtYepFUFLIFhIQgAJRBNDAEJajQx3gPN
|
||||
xN7EgAGgAj8gBjWivgAxtgYSMRjWiNJCtgyrhaQCdAPx4/8MAG6r9s+X5DldAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="pl_top_left.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAWsAAAA7CAIAAAAy3TxsAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
EwAACxMBAJqcGAAABmtJREFUeF7t3HlsFFUcB3D/tgkGRYMaDYkGAyIISIhXTIyCQRIhRqmlgAVBpdTS
|
||||
lkMFBQJSQKhAC4RiqRCxtRe9tktLty30oC0L9L5LW7r0tN1uW7bnbv3tvDfbZTVk+gJ/zOb7yyf0vZk3
|
||||
w1/zzbyZt/PY4ysiAADEIEEAQBwSBADEIUEAQBwSBADEIUEAQBwSBADEIUEAQBwSBADEIUEAQBwSBADE
|
||||
IUEAQBwSBADEIUEAQNyjShA394iIqw3N/9wL19U77QIAl/FIEuSZNdGNHf1jcm0/f5Ntn+wZ9dzaWPsw
|
||||
AFC7h58g0zcmDAyP8vCQKjqvibYvC8watVipeza9znE8AKjXQ06Q93++zFLDXibzMM1oVgbl8L5Uc/01
|
||||
TgcCgBopTZA3tqQExpaFptX6/n7daZddQPgNnhByVRpM7+1MO6Wt4X255vglOx0LAGqkKEHi8u/wS1+q
|
||||
kkbjtA0XHzyGKvVWy1vfX4ovcN4eoqlyOhYAVEpRgngF51XfNfEAkGrHhSLHARXNPXyHXCEp1Qu2aItu
|
||||
d/O+XHujSmi8m8OxAKBeSmcxq47m8gyQ6rh8H7Fwm7bVaOZb5docpl+yN6PTNMj7Ug0OW5YHZnkE5bR0
|
||||
m3vNwx/t0dlPDgAqpTRBdkUU8ySQakv4Ddrofjjbanu7Ml4Wq/XjfRlfHs/jfblq7vbO2JS4KbSQ96Vy
|
||||
PD8AqJHSBIkvaObX/dgYpcYHu9I///Uq78vV0z9EtxgntNW8L5dGb5i24eKZtFrelwtzGQC1U5ogDe3j
|
||||
K8RGLdaSRiPvyNXeMzB9Y8JTq6L8z+rn+mvmbE6micxJbfW5jPql+zL1dV18nFy0y+m/AADVUZQgU71i
|
||||
+HX/f1XZbPIOLZyyOsrpKLv1J/P5ULm+PpXvNAYA1EhRgnifLuCX/v01Mmrdfo6vWCcLt2m3/nEjsbC5
|
||||
saM/u6Jj54Wi+QEpbNdnh/iUp804sHiPjiY7aUUtD1haAgCqoChBghIq2PXvWMUN3a/78aWlfmH6utY+
|
||||
vkNah8pbY2PhuvqXvomnMUnXDWVNxlnfJTmejT2RBQCVUpQgBTWd/IqXK76gme16+dv4m/X8GUdgbNmH
|
||||
u9IpL5glezN0xa20PTK7kUa+uD6O7j7o1oMNZqXRG9h5AECNFCWI5f53tuyXcoQygm05EFtmDw4ye3Oy
|
||||
vc2eob7inUDjr5a3s/H28grOY6cCADVSlCD8cpcqp7KDbfT8zfZjuZqW3he+iqOkmOWbdFJbbX9lY+i6
|
||||
dzq1hra//UMqddka1tRb992ArDmWy04FACo1sQTpGxh5enU0bVm6L5O6maVtbEBIyvgaEJrU2H/dP9dP
|
||||
QyFCjWBpDWt+NZ8NdfUOvvtjKjsWANRrYgnCJh1000Ht2tZetje3soPtPZ95e6ZPIkVGe88AdYsbjdM3
|
||||
JrAEcT+cTSPZ90HotoU2smMBQNUmkCD1bX2sy35l96SnbQFIcYPtt3Mm8/CywCzKBVJpsO3VFbe+6pNE
|
||||
3U/2Z1F3kkfkvAANNbLK2iZ7/s3OAwBqpyhBhkYsdPGvPmp7bOEhfStoXcg1aicU2pa6d5oGWXYciiu3
|
||||
Wsf6B0a2nbvJthCauRQ1dNPgkkYj3rwAuBhFCcLmKazd3TdEgUKNd6RHpBQZoWm1O/4sKm0y3m7r2x1Z
|
||||
bM8Own5iN0V6dPLFkWw3d9sXmNl5AMAFKEqQ/TGlVQYTNWb6JFIi/BJdSm22soMSJLuiIyavaW3wNcfs
|
||||
IOxp67FkfE8IwGUpSpBJHpFTVtnuI3zOXKdQYEtRW7r5Z0Gi85qcsoMckRaeUrLYTwIArkdRgtj99FcR
|
||||
5QJbHlbZPP7VsrDLdZ8evLJot25lUM4J+c0uNRyPBQDXM7EE8QvTUzQsP3CF2ot2p7Ok+G9dKWt/YiVe
|
||||
uAC4voklyIxNtucghi4zzWuou2CrNiq36W6XeWjEYh4crW3pPRhXTnOc2b7J8/xT3NxtYwDAhU0sQchx
|
||||
TRWFSPkd4+I96VO9Yp5dG/v8utj5ASnz/DWv+Sa/uf1ScHJVd9+Q9+lCpwMBwPVMOEEI3WhQiIxYrBar
|
||||
rSzSH/pneNRi7B+609lv/ywIALg2kQQBAGCQIAAgDgkCAOKQIAAgDgkCAOKQIAAgDgkCAOKQIAAgDgkC
|
||||
AOKQIAAgDgkCAOKQIAAgDgkCAOKQIAAgDgkCAOKQIAAgakXEv9pvbBi+WcreAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="mark_timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>585, 20</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,71 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class MenuBar2
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MenuBar2));
|
||||
this.btnDesktop = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnDesktop
|
||||
//
|
||||
this.btnDesktop.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnDesktop.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDesktop.BackgroundImage")));
|
||||
this.btnDesktop.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnDesktop.FlatAppearance.BorderSize = 0;
|
||||
this.btnDesktop.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnDesktop.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnDesktop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDesktop.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.btnDesktop.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(162)))), ((int)(((byte)(194)))));
|
||||
this.btnDesktop.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnDesktop.Name = "btnDesktop";
|
||||
this.btnDesktop.Padding = new System.Windows.Forms.Padding(20, 3, 3, 3);
|
||||
this.btnDesktop.Size = new System.Drawing.Size(130, 44);
|
||||
this.btnDesktop.TabIndex = 9;
|
||||
this.btnDesktop.Text = "我的桌面";
|
||||
this.btnDesktop.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnDesktop.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// MenuBar
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.btnDesktop);
|
||||
this.Name = "MenuBar";
|
||||
this.Size = new System.Drawing.Size(136, 50);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnDesktop;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
/******************************
|
||||
* 说明:自定义菜单
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-16
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Main3.Properties;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义菜单
|
||||
/// </summary>
|
||||
public partial class MenuBar2 : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 默认选中菜单
|
||||
/// </summary>
|
||||
private static Button defaultButton;
|
||||
private ButtonHoverEventHandler hoverEvent;
|
||||
public delegate void ButtonHoverEventHandler(Button before, Button after);
|
||||
|
||||
public MenuBar2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:获取菜单按钮</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>Button.</returns>
|
||||
public Button GetButton()
|
||||
{
|
||||
return this.btnDesktop;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置默认选中的Button</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
public void SetDefaultSelectMenu(MenuBar2 item)
|
||||
{
|
||||
defaultButton = item.btnDesktop;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置菜单状态状态</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="state">The state.</param>
|
||||
public void SetButtonState(MenuButtonState state)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case MenuButtonState.defaultState:
|
||||
this.btnDesktop.BackgroundImage = Resources.left_default;
|
||||
break;
|
||||
case MenuButtonState.selectState:
|
||||
this.btnDesktop.BackgroundImage = Resources.left_select;
|
||||
break;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:注册鼠标划过事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="hoverEvent">The hover event.</param>
|
||||
/// <param name="eventType">Type of the event.</param>
|
||||
public void SetHoverEvent(ButtonHoverEventHandler hoverEvent,MenuEventType eventType)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.hoverEvent = hoverEvent;
|
||||
switch (eventType)
|
||||
{
|
||||
case MenuEventType.MouseClickEvent:
|
||||
this.btnDesktop.MouseMove += new MouseEventHandler(btnDesktop_MouseMove);
|
||||
this.btnDesktop.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
case MenuEventType.MouseHoverEvent:
|
||||
default:
|
||||
this.btnDesktop.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标划过菜单时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换菜单</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktio_MouseEvent(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Button button = sender as Button;
|
||||
if (button != null)
|
||||
{
|
||||
if (defaultButton != null)
|
||||
defaultButton.BackgroundImage = Resources.left_default;
|
||||
button.BackgroundImage = Resources.left_select;
|
||||
}
|
||||
|
||||
|
||||
if (defaultButton != button)
|
||||
{
|
||||
if (hoverEvent != null)
|
||||
{
|
||||
this.hoverEvent(defaultButton, button);
|
||||
}
|
||||
defaultButton = button;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 菜单状态
|
||||
/// </summary>
|
||||
//public enum MenuButtonState
|
||||
//{
|
||||
// defaultState,
|
||||
// selectState
|
||||
//}
|
||||
///// <summary>
|
||||
///// 菜单事件
|
||||
///// </summary>
|
||||
//public enum MenuEventType
|
||||
//{
|
||||
// MouseHoverEvent = 0,
|
||||
// MouseClickEvent = 1
|
||||
//}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?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="btnDesktop.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="btnDesktop.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAAIIAAAAvCAYAAAAvgRLNAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEBSURBVHhe7dihSkRBGIbhCV6SiFbTegniVdiNZt0t
|
||||
gmY1isli0m4xKbtgEQWDXsLIfmCbds7COesTnjR/fPmZmbJ58lJBCIQQCCEQQiCEQAiBEAIhBEIIhBAI
|
||||
IRBCIIRACIEQAiEEQgiEEIjOIUzOF/Xw9r1unbbPGYfOIexdLOrN80+dPnzV3bN5c4bh6y2Epaun73pw
|
||||
+dacY9h6DeHP0d1H3Z6+NucZppWEsHR8/9mcZ5hWthF2ZjbCmPQawrU7wmj1FsLs0athzDqH4B9hPXQO
|
||||
gfUgBEIIhBAIIRBCIIRACIEQAiEEQgiEEAghEEIghEAIgRACIQSibJSyz39Xyi/35fd5AzdXNAAAAABJ
|
||||
RU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,118 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class Menu_Item
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.btn_item_title = new System.Windows.Forms.Label();
|
||||
this.btn_item_img = new System.Windows.Forms.Button();
|
||||
this.lbl_mark_num = new System.Windows.Forms.Label();
|
||||
this.cb_mark = new Lskj.Control.CircleButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn_item_title
|
||||
//
|
||||
this.btn_item_title.Location = new System.Drawing.Point(0, 92);
|
||||
this.btn_item_title.Name = "btn_item_title";
|
||||
this.btn_item_title.Size = new System.Drawing.Size(110, 29);
|
||||
this.btn_item_title.TabIndex = 3;
|
||||
this.btn_item_title.Text = "采购请购单审核";
|
||||
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// btn_item_img
|
||||
//
|
||||
this.btn_item_img.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.BackgroundImage = global::Lskj.Main3.Properties.Resources.default_icon;
|
||||
this.btn_item_img.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btn_item_img.FlatAppearance.BorderSize = 0;
|
||||
this.btn_item_img.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btn_item_img.Location = new System.Drawing.Point(15, 6);
|
||||
this.btn_item_img.Name = "btn_item_img";
|
||||
this.btn_item_img.Size = new System.Drawing.Size(80, 80);
|
||||
this.btn_item_img.TabIndex = 2;
|
||||
this.btn_item_img.UseVisualStyleBackColor = false;
|
||||
this.btn_item_img.Paint += new System.Windows.Forms.PaintEventHandler(this.MenuItem_Paint);
|
||||
this.btn_item_img.MouseLeave += new System.EventHandler(this.btn_item_img_MouseLeave);
|
||||
this.btn_item_img.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btn_item_img_MouseMove);
|
||||
//
|
||||
// lbl_mark_num
|
||||
//
|
||||
this.lbl_mark_num.AutoSize = true;
|
||||
this.lbl_mark_num.BackColor = System.Drawing.Color.Red;
|
||||
this.lbl_mark_num.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lbl_mark_num.ForeColor = System.Drawing.Color.White;
|
||||
this.lbl_mark_num.Location = new System.Drawing.Point(81, 6);
|
||||
this.lbl_mark_num.Name = "lbl_mark_num";
|
||||
this.lbl_mark_num.Size = new System.Drawing.Size(19, 12);
|
||||
this.lbl_mark_num.TabIndex = 5;
|
||||
this.lbl_mark_num.Text = "99";
|
||||
this.lbl_mark_num.Visible = false;
|
||||
//
|
||||
// cb_mark
|
||||
//
|
||||
this.cb_mark.BackColor = System.Drawing.Color.Red;
|
||||
this.cb_mark.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.cb_mark.FlatAppearance.BorderSize = 0;
|
||||
this.cb_mark.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.cb_mark.ImageEnter = null;
|
||||
this.cb_mark.ImageNormal = null;
|
||||
this.cb_mark.Location = new System.Drawing.Point(77, 0);
|
||||
this.cb_mark.Name = "cb_mark";
|
||||
this.cb_mark.Radius = 24;
|
||||
this.cb_mark.Size = new System.Drawing.Size(24, 24);
|
||||
this.cb_mark.TabIndex = 4;
|
||||
this.cb_mark.UseVisualStyleBackColor = false;
|
||||
this.cb_mark.Visible = false;
|
||||
//
|
||||
// Menu_Item
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.Controls.Add(this.lbl_mark_num);
|
||||
this.Controls.Add(this.cb_mark);
|
||||
this.Controls.Add(this.btn_item_img);
|
||||
this.Controls.Add(this.btn_item_title);
|
||||
this.Name = "Menu_Item";
|
||||
this.Size = new System.Drawing.Size(110, 127);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btn_item_img;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Label btn_item_title;
|
||||
private Lskj.Control.CircleButton cb_mark;
|
||||
private System.Windows.Forms.Label lbl_mark_num;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
/******************************
|
||||
* 说明:自定义功能模块
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-16
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义功能模块
|
||||
/// </summary>
|
||||
public partial class Menu_Item : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 圆角
|
||||
/// </summary>
|
||||
private int _radius;
|
||||
private Image _defaultImg, _hoverImg;
|
||||
|
||||
/// <summary>
|
||||
/// 所在行数
|
||||
/// </summary>
|
||||
public int menuRow;
|
||||
/// <summary>
|
||||
/// 所在子菜单
|
||||
/// </summary>
|
||||
public string menuNode;
|
||||
|
||||
|
||||
public Menu_Item()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public Button GetButton()
|
||||
{
|
||||
return this.btn_item_img;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置模块显示名称</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="text">The text.</param>
|
||||
public void SetMenuCaption(string text)
|
||||
{
|
||||
this.btn_item_title.Text = text;
|
||||
this.toolTip1.SetToolTip(this.btn_item_title, text);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置背景图标</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="img">The img.</param>
|
||||
public void SetMenuImg(Image img)
|
||||
{
|
||||
this._defaultImg = img;
|
||||
this.btn_item_img.BackgroundImage = img;
|
||||
this.btn_item_img.BackgroundImageLayout = ImageLayout.Center;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置选中背景图标</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="img">The img.</param>
|
||||
public void SetMenuHoverImg(Image img)
|
||||
{
|
||||
this._hoverImg = img;
|
||||
}
|
||||
public void SetMenuNum(int num)
|
||||
{
|
||||
if (Business.SystemInfo.Instance.DisableShowNotify)//角标禁显
|
||||
{
|
||||
this.cb_mark.Visible = false;
|
||||
this.lbl_mark_num.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (num < 1)
|
||||
{
|
||||
this.cb_mark.Visible = false;
|
||||
this.lbl_mark_num.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.cb_mark.Visible = true;
|
||||
this.lbl_mark_num.Visible = true;
|
||||
this.lbl_mark_num.BringToFront();
|
||||
|
||||
if (num < 10)
|
||||
{
|
||||
this.lbl_mark_num.Location = new Point(84, 6);
|
||||
}
|
||||
if (num > 99)
|
||||
num = 99;
|
||||
this.lbl_mark_num.Text = num + "";
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:选中背景图片</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btn_item_img_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
//(sender as Button).BackgroundImage = hoverImg;
|
||||
//(sender as Button).BackgroundImageLayout = ImageLayout.Center;
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.White;
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:还原背景</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btn_item_img_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.FromArgb(240, 240, 240);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Browsable(true)]
|
||||
[Description("圆角弧度(0为不要圆角)")]
|
||||
public int SetRoundRadius
|
||||
{
|
||||
get
|
||||
{
|
||||
return _radius;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value < 0) { _radius = 0; }
|
||||
else { _radius = value; }
|
||||
base.Refresh();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:重绘圆角</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="PaintEventArgs"/> instance containing the event data.</param>
|
||||
private void MenuItem_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Drawing.Drawing2D.GraphicsPath oPath = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
int thisWidth = this.Width;
|
||||
int thisHeight = this.Height;
|
||||
int angle = _radius;
|
||||
if (angle > 0)
|
||||
{
|
||||
System.Drawing.Graphics g = CreateGraphics();
|
||||
oPath.AddArc(x, y, angle, angle, 180, 90); // 左上角
|
||||
oPath.AddArc(thisWidth - angle, y, angle, angle, 270, 90); // 右上角
|
||||
oPath.AddArc(thisWidth - angle, thisHeight - angle, angle, angle, 0, 90); // 右下角
|
||||
oPath.AddArc(x, thisHeight - angle, angle, angle, 90, 90); // 左下角
|
||||
oPath.CloseAllFigures();
|
||||
Region = new System.Drawing.Region(oPath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?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="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="btn_item_title.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btn_item_img.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lbl_mark_num.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="cb_mark.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,105 @@
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class NewMenuBar
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.PanelDesktop = new System.Windows.Forms.Panel();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panelImg = new System.Windows.Forms.Panel();
|
||||
this.PanelDesktop.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// PanelDesktop
|
||||
//
|
||||
this.PanelDesktop.Controls.Add(this.labelTitle);
|
||||
this.PanelDesktop.Controls.Add(this.panel1);
|
||||
this.PanelDesktop.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.PanelDesktop.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.PanelDesktop.Location = new System.Drawing.Point(0, 0);
|
||||
this.PanelDesktop.Name = "PanelDesktop";
|
||||
this.PanelDesktop.Size = new System.Drawing.Size(172, 37);
|
||||
this.PanelDesktop.TabIndex = 9;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.labelTitle.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(162)))), ((int)(((byte)(194)))));
|
||||
this.labelTitle.Location = new System.Drawing.Point(37, 0);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(135, 37);
|
||||
this.labelTitle.TabIndex = 2;
|
||||
this.labelTitle.Text = "测试模块";
|
||||
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.panelImg);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(37, 37);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panelImg
|
||||
//
|
||||
this.panelImg.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.panelImg.BackgroundImage = global::Lskj.Main3.Properties.Resources.arrows;
|
||||
this.panelImg.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.panelImg.Location = new System.Drawing.Point(7, 6);
|
||||
this.panelImg.Name = "panelImg";
|
||||
this.panelImg.Size = new System.Drawing.Size(23, 25);
|
||||
this.panelImg.TabIndex = 0;
|
||||
//
|
||||
// NewMenuBar
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Controls.Add(this.PanelDesktop);
|
||||
this.Name = "NewMenuBar";
|
||||
this.Size = new System.Drawing.Size(172, 37);
|
||||
this.PanelDesktop.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public System.Windows.Forms.Panel PanelDesktop;
|
||||
public System.Windows.Forms.Panel panelImg;
|
||||
public System.Windows.Forms.Label labelTitle;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
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.Main3.Control
|
||||
{
|
||||
public partial class NewMenuBar : UserControl
|
||||
{
|
||||
public NewMenuBar()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.panelImg.BackgroundImageLayout = ImageLayout.Stretch;//设置背景图片自动适应
|
||||
}
|
||||
|
||||
|
||||
private PanelHoverEventHandler hoverEvent;
|
||||
public delegate void PanelHoverEventHandler(NewMenuBar before, NewMenuBar after);
|
||||
|
||||
|
||||
private static NewMenuBar defaultMenuBar;
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:获取主体panel</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>Button.</returns>
|
||||
public NewMenuBar GetNewMenuBar()
|
||||
{
|
||||
return this;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置默认选中的Panel</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
public void SetDefaultSelectMenu(NewMenuBar item)
|
||||
{
|
||||
defaultMenuBar = item;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置菜单状态状态</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="state">The state.</param>
|
||||
public void SetButtonState(MenuButtonState state)
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case MenuButtonState.defaultState:
|
||||
this.labelTitle.BackColor = Color.White;
|
||||
this.labelTitle.ForeColor = Color.FromArgb(151, 162, 194);
|
||||
|
||||
break;
|
||||
case MenuButtonState.selectState:
|
||||
this.labelTitle.BackColor = Color.FromArgb(0, 131, 232);
|
||||
this.labelTitle.ForeColor = Color.FromArgb(195, 219, 255);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:注册鼠标划过事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="hoverEvent">The hover event.</param>
|
||||
/// <param name="eventType">Type of the event.</param>
|
||||
public void SetHoverEvent(PanelHoverEventHandler hoverEvent, MenuEventType eventType)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.hoverEvent = hoverEvent;
|
||||
switch (eventType)
|
||||
{
|
||||
case MenuEventType.MouseClickEvent:
|
||||
//this.btn_item_title.MouseMove += new MouseEventHandler(btnDesktop_MouseMove);
|
||||
//this.btn_item_title.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panelImg.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.labelTitle.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panel1.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panelImg.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.labelTitle.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panel1.MouseClick += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
case MenuEventType.MouseHoverEvent:
|
||||
default:
|
||||
this.panelImg.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.labelTitle.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
this.panel1.MouseMove += new MouseEventHandler(this.btnDesktio_MouseEvent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标划过菜单时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换菜单</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnDesktio_MouseEvent(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
NewMenuBar item = null;
|
||||
if (sender is Panel)
|
||||
{
|
||||
item = (sender as Panel).Parent.Parent as NewMenuBar;
|
||||
if (item == null)
|
||||
{
|
||||
item = (sender as Panel).Parent.Parent.Parent as NewMenuBar;
|
||||
}
|
||||
}
|
||||
if (sender is Label)
|
||||
{
|
||||
item = (sender as Label).Parent.Parent as NewMenuBar;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
if (defaultMenuBar != null)
|
||||
{
|
||||
defaultMenuBar.labelTitle.BackColor = Color.White;
|
||||
defaultMenuBar.panel1.BackColor = Color.White;
|
||||
defaultMenuBar.labelTitle.ForeColor = Color.FromArgb(151, 162, 194);
|
||||
}
|
||||
|
||||
item.labelTitle.BackColor = Color.FromArgb(0, 131, 232);
|
||||
item.panel1.BackColor = Color.FromArgb(0, 131, 232);
|
||||
item.labelTitle.ForeColor = Color.FromArgb(195, 219, 255);
|
||||
}
|
||||
|
||||
|
||||
if (defaultMenuBar != item)
|
||||
{
|
||||
if (hoverEvent != null)
|
||||
{
|
||||
this.hoverEvent(defaultMenuBar, item);
|
||||
}
|
||||
defaultMenuBar = item;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 菜单状态
|
||||
/// </summary>
|
||||
public enum MenuButtonState
|
||||
{
|
||||
defaultState,
|
||||
selectState
|
||||
}
|
||||
/// <summary>
|
||||
/// 菜单事件
|
||||
/// </summary>
|
||||
public enum MenuEventType
|
||||
{
|
||||
MouseHoverEvent = 0,
|
||||
MouseClickEvent = 1
|
||||
}
|
||||
}
|
||||
@@ -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,97 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class ResSelectForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.BtnRes1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.BtnRes2 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.BtnRes3 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// BtnRes1
|
||||
//
|
||||
this.BtnRes1.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BtnRes1.Appearance.Options.UseBackColor = true;
|
||||
this.BtnRes1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.BtnRes1.Location = new System.Drawing.Point(2, 2);
|
||||
this.BtnRes1.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.BtnRes1.Name = "BtnRes1";
|
||||
this.BtnRes1.Size = new System.Drawing.Size(108, 18);
|
||||
this.BtnRes1.TabIndex = 0;
|
||||
this.BtnRes1.Tag = "1";
|
||||
this.BtnRes1.Text = "1920*1080";
|
||||
//
|
||||
// BtnRes2
|
||||
//
|
||||
this.BtnRes2.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BtnRes2.Appearance.Options.UseBackColor = true;
|
||||
this.BtnRes2.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.BtnRes2.Location = new System.Drawing.Point(2, 26);
|
||||
this.BtnRes2.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.BtnRes2.Name = "BtnRes2";
|
||||
this.BtnRes2.Size = new System.Drawing.Size(108, 18);
|
||||
this.BtnRes2.TabIndex = 1;
|
||||
this.BtnRes2.Tag = "0.948";
|
||||
this.BtnRes2.Text = "1600*900";
|
||||
//
|
||||
// BtnRes3
|
||||
//
|
||||
this.BtnRes3.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.BtnRes3.Appearance.Options.UseBackColor = true;
|
||||
this.BtnRes3.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.BtnRes3.Location = new System.Drawing.Point(2, 49);
|
||||
this.BtnRes3.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.BtnRes3.Name = "BtnRes3";
|
||||
this.BtnRes3.Size = new System.Drawing.Size(108, 18);
|
||||
this.BtnRes3.TabIndex = 2;
|
||||
this.BtnRes3.Tag = "0.894";
|
||||
this.BtnRes3.Text = "1366*768";
|
||||
//
|
||||
// ResSelectForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Controls.Add(this.BtnRes3);
|
||||
this.Controls.Add(this.BtnRes2);
|
||||
this.Controls.Add(this.BtnRes1);
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Name = "ResSelectForm";
|
||||
this.Size = new System.Drawing.Size(112, 70);
|
||||
this.Load += new System.EventHandler(this.OnResSelectForm_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.SimpleButton BtnRes1;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnRes2;
|
||||
private DevExpress.XtraEditors.SimpleButton BtnRes3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Util;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class ResSelectForm : UserControl
|
||||
{
|
||||
public ResSelectForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private MouseClickEventHanlder _clickEvent = null;
|
||||
public delegate void MouseClickEventHanlder(object sender, EventArgs e);
|
||||
private void OnResSelectForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
switch (Lskj.Control.Model.AutoSizeChange.value.ToString())
|
||||
{
|
||||
case "1":
|
||||
this.BtnRes1.Enabled = false;
|
||||
this.BtnRes1.Appearance.BackColor = Color.LightGray;
|
||||
break;
|
||||
case "0.948":
|
||||
this.BtnRes2.Enabled = false;
|
||||
this.BtnRes2.Appearance.BackColor = Color.LightGray;
|
||||
break;
|
||||
case "0.894":
|
||||
this.BtnRes3.Enabled = false;
|
||||
this.BtnRes3.Appearance.BackColor = Color.LightGray;
|
||||
break;
|
||||
}
|
||||
this.BtnRes1.MouseClick += OnMouseClick;
|
||||
this.BtnRes2.MouseClick += OnMouseClick;
|
||||
this.BtnRes3.MouseClick += OnMouseClick;
|
||||
}
|
||||
public void SetClickEvent(MouseClickEventHanlder clickEvent)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._clickEvent = clickEvent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
private void OnMouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DevExpress.XtraEditors.SimpleButton btn = (DevExpress.XtraEditors.SimpleButton)sender;
|
||||
this.Hide();
|
||||
if (MessageUtil.Show("更改分辨率将退回至主界面\r\n是否继续?", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.value = Convert.ToDouble(btn.Tag);
|
||||
IniHelper.Write(string.Format("DefaultControlScaling_{0}", "Save"), btn.Tag.ToString());
|
||||
_clickEvent(this, e);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,688 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SkinControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SkinControl));
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.skinItem8 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem9 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem10 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem11 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem12 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem13 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem14 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem29 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem30 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem31 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem32 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem33 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem34 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem35 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem22 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem23 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem24 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem25 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem26 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem27 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem28 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem15 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem16 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem17 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem18 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem19 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem20 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem21 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem1 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem2 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem3 = new Lskj.Main3.Control.SkinItem();
|
||||
this.skinItem4 = new Lskj.Main3.Control.SkinItem();
|
||||
this.si_office_2013_light_gray = new Lskj.Main3.Control.SkinItem();
|
||||
this.si_office_2013_dark_gray = new Lskj.Main3.Control.SkinItem();
|
||||
this.si_office_2013_white = new Lskj.Main3.Control.SkinItem();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.skinItem29);
|
||||
this.panel1.Controls.Add(this.skinItem30);
|
||||
this.panel1.Controls.Add(this.skinItem31);
|
||||
this.panel1.Controls.Add(this.skinItem32);
|
||||
this.panel1.Controls.Add(this.skinItem33);
|
||||
this.panel1.Controls.Add(this.skinItem34);
|
||||
this.panel1.Controls.Add(this.skinItem35);
|
||||
this.panel1.Controls.Add(this.skinItem22);
|
||||
this.panel1.Controls.Add(this.skinItem23);
|
||||
this.panel1.Controls.Add(this.skinItem24);
|
||||
this.panel1.Controls.Add(this.skinItem25);
|
||||
this.panel1.Controls.Add(this.skinItem26);
|
||||
this.panel1.Controls.Add(this.skinItem27);
|
||||
this.panel1.Controls.Add(this.skinItem28);
|
||||
this.panel1.Controls.Add(this.skinItem15);
|
||||
this.panel1.Controls.Add(this.skinItem16);
|
||||
this.panel1.Controls.Add(this.skinItem17);
|
||||
this.panel1.Controls.Add(this.skinItem18);
|
||||
this.panel1.Controls.Add(this.skinItem19);
|
||||
this.panel1.Controls.Add(this.skinItem20);
|
||||
this.panel1.Controls.Add(this.skinItem21);
|
||||
this.panel1.Controls.Add(this.skinItem1);
|
||||
this.panel1.Controls.Add(this.skinItem2);
|
||||
this.panel1.Controls.Add(this.skinItem3);
|
||||
this.panel1.Controls.Add(this.skinItem4);
|
||||
this.panel1.Controls.Add(this.si_office_2013_light_gray);
|
||||
this.panel1.Controls.Add(this.si_office_2013_dark_gray);
|
||||
this.panel1.Controls.Add(this.si_office_2013_white);
|
||||
this.panel1.Controls.Add(this.panel2);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(919, 380);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(919, 32);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(3, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "标准皮肤";
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.skinItem8);
|
||||
this.panel3.Controls.Add(this.skinItem9);
|
||||
this.panel3.Controls.Add(this.skinItem10);
|
||||
this.panel3.Controls.Add(this.skinItem11);
|
||||
this.panel3.Controls.Add(this.skinItem12);
|
||||
this.panel3.Controls.Add(this.skinItem13);
|
||||
this.panel3.Controls.Add(this.skinItem14);
|
||||
this.panel3.Controls.Add(this.panel4);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 380);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(919, 127);
|
||||
this.panel3.TabIndex = 1;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.panel4.Controls.Add(this.label2);
|
||||
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(919, 32);
|
||||
this.panel4.TabIndex = 1;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(3, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "主题皮肤";
|
||||
//
|
||||
// skinItem8
|
||||
//
|
||||
this.skinItem8.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem8.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem8.Location = new System.Drawing.Point(789, 38);
|
||||
this.skinItem8.Name = "skinItem8";
|
||||
this.skinItem8.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem8.SkinImage = global::Lskj.Main3.Properties.Resources.blueprint;
|
||||
this.skinItem8.SkinTag = "Blueprint";
|
||||
this.skinItem8.SkinText = "BulePrint";
|
||||
this.skinItem8.TabIndex = 13;
|
||||
this.skinItem8.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem9
|
||||
//
|
||||
this.skinItem9.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem9.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem9.Location = new System.Drawing.Point(658, 38);
|
||||
this.skinItem9.Name = "skinItem9";
|
||||
this.skinItem9.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem9.SkinImage = global::Lskj.Main3.Properties.Resources.mcskin;
|
||||
this.skinItem9.SkinTag = "McSkin";
|
||||
this.skinItem9.SkinText = "McSkin";
|
||||
this.skinItem9.TabIndex = 16;
|
||||
this.skinItem9.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem10
|
||||
//
|
||||
this.skinItem10.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem10.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem10.Location = new System.Drawing.Point(527, 38);
|
||||
this.skinItem10.Name = "skinItem10";
|
||||
this.skinItem10.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem10.SkinImage = global::Lskj.Main3.Properties.Resources.xmas_blue;
|
||||
this.skinItem10.SkinTag = "Xmas 2008 Blue";
|
||||
this.skinItem10.SkinText = "Xmas(Blue)";
|
||||
this.skinItem10.TabIndex = 15;
|
||||
this.skinItem10.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem11
|
||||
//
|
||||
this.skinItem11.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem11.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem11.Location = new System.Drawing.Point(396, 38);
|
||||
this.skinItem11.Name = "skinItem11";
|
||||
this.skinItem11.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem11.SkinImage = global::Lskj.Main3.Properties.Resources.valentine;
|
||||
this.skinItem11.SkinTag = "Valentine";
|
||||
this.skinItem11.SkinText = "Valentine";
|
||||
this.skinItem11.TabIndex = 14;
|
||||
this.skinItem11.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem12
|
||||
//
|
||||
this.skinItem12.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem12.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem12.Location = new System.Drawing.Point(265, 38);
|
||||
this.skinItem12.Name = "skinItem12";
|
||||
this.skinItem12.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem12.SkinImage = global::Lskj.Main3.Properties.Resources.summer;
|
||||
this.skinItem12.SkinTag = "Summer 2008";
|
||||
this.skinItem12.SkinText = "Summer";
|
||||
this.skinItem12.TabIndex = 12;
|
||||
this.skinItem12.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem13
|
||||
//
|
||||
this.skinItem13.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem13.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem13.Location = new System.Drawing.Point(134, 38);
|
||||
this.skinItem13.Name = "skinItem13";
|
||||
this.skinItem13.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem13.SkinImage = global::Lskj.Main3.Properties.Resources.springtime;
|
||||
this.skinItem13.SkinTag = "Springtime";
|
||||
this.skinItem13.SkinText = "Springtime";
|
||||
this.skinItem13.TabIndex = 11;
|
||||
this.skinItem13.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem14
|
||||
//
|
||||
this.skinItem14.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem14.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem14.Location = new System.Drawing.Point(3, 38);
|
||||
this.skinItem14.Name = "skinItem14";
|
||||
this.skinItem14.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem14.SkinImage = global::Lskj.Main3.Properties.Resources.pumpkin;
|
||||
this.skinItem14.SkinTag = "Pumpkin";
|
||||
this.skinItem14.SkinText = "Pumpkin";
|
||||
this.skinItem14.TabIndex = 10;
|
||||
this.skinItem14.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem29
|
||||
//
|
||||
this.skinItem29.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem29.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem29.Location = new System.Drawing.Point(789, 293);
|
||||
this.skinItem29.Name = "skinItem29";
|
||||
this.skinItem29.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem29.SkinImage = global::Lskj.Main3.Properties.Resources.the_asphalt_world;
|
||||
this.skinItem29.SkinTag = "The Asphalt World";
|
||||
this.skinItem29.SkinText = "The Asphalt World";
|
||||
this.skinItem29.TabIndex = 41;
|
||||
this.skinItem29.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem30
|
||||
//
|
||||
this.skinItem30.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem30.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem30.Location = new System.Drawing.Point(658, 293);
|
||||
this.skinItem30.Name = "skinItem30";
|
||||
this.skinItem30.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem30.SkinImage = global::Lskj.Main3.Properties.Resources.sharp;
|
||||
this.skinItem30.SkinTag = "Sharp";
|
||||
this.skinItem30.SkinText = "Sharp";
|
||||
this.skinItem30.TabIndex = 44;
|
||||
this.skinItem30.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem31
|
||||
//
|
||||
this.skinItem31.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem31.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem31.Location = new System.Drawing.Point(527, 293);
|
||||
this.skinItem31.Name = "skinItem31";
|
||||
this.skinItem31.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem31.SkinImage = global::Lskj.Main3.Properties.Resources.money_twins;
|
||||
this.skinItem31.SkinTag = "Money Twins";
|
||||
this.skinItem31.SkinText = "Money Twins";
|
||||
this.skinItem31.TabIndex = 43;
|
||||
this.skinItem31.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem32
|
||||
//
|
||||
this.skinItem32.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem32.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem32.Location = new System.Drawing.Point(396, 293);
|
||||
this.skinItem32.Name = "skinItem32";
|
||||
this.skinItem32.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem32.SkinImage = global::Lskj.Main3.Properties.Resources.metropolis;
|
||||
this.skinItem32.SkinTag = "Metropolis";
|
||||
this.skinItem32.SkinText = "Metropolis";
|
||||
this.skinItem32.TabIndex = 42;
|
||||
this.skinItem32.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem33
|
||||
//
|
||||
this.skinItem33.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem33.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem33.Location = new System.Drawing.Point(265, 293);
|
||||
this.skinItem33.Name = "skinItem33";
|
||||
this.skinItem33.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem33.SkinImage = global::Lskj.Main3.Properties.Resources.london_liquid_sky;
|
||||
this.skinItem33.SkinTag = "London Liquid Sky";
|
||||
this.skinItem33.SkinText = "London Liquid Sky";
|
||||
this.skinItem33.TabIndex = 40;
|
||||
this.skinItem33.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem34
|
||||
//
|
||||
this.skinItem34.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem34.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem34.Location = new System.Drawing.Point(134, 293);
|
||||
this.skinItem34.Name = "skinItem34";
|
||||
this.skinItem34.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem34.SkinImage = global::Lskj.Main3.Properties.Resources.liquid_sky;
|
||||
this.skinItem34.SkinTag = "Liquid Sky";
|
||||
this.skinItem34.SkinText = "Liquid Sky";
|
||||
this.skinItem34.TabIndex = 39;
|
||||
this.skinItem34.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem35
|
||||
//
|
||||
this.skinItem35.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem35.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem35.Location = new System.Drawing.Point(3, 293);
|
||||
this.skinItem35.Name = "skinItem35";
|
||||
this.skinItem35.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem35.SkinImage = global::Lskj.Main3.Properties.Resources.lilian;
|
||||
this.skinItem35.SkinTag = "Lilian";
|
||||
this.skinItem35.SkinText = "Lilian";
|
||||
this.skinItem35.TabIndex = 38;
|
||||
this.skinItem35.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem22
|
||||
//
|
||||
this.skinItem22.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem22.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem22.Location = new System.Drawing.Point(789, 207);
|
||||
this.skinItem22.Name = "skinItem22";
|
||||
this.skinItem22.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem22.SkinImage = global::Lskj.Main3.Properties.Resources.imaginary;
|
||||
this.skinItem22.SkinTag = "iMaginary";
|
||||
this.skinItem22.SkinText = "iMaginary";
|
||||
this.skinItem22.TabIndex = 34;
|
||||
this.skinItem22.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem23
|
||||
//
|
||||
this.skinItem23.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem23.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem23.Location = new System.Drawing.Point(658, 207);
|
||||
this.skinItem23.Name = "skinItem23";
|
||||
this.skinItem23.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem23.SkinImage = global::Lskj.Main3.Properties.Resources.glassoceans;
|
||||
this.skinItem23.SkinTag = "Glass Oceans";
|
||||
this.skinItem23.SkinText = "Glass Oceans";
|
||||
this.skinItem23.TabIndex = 37;
|
||||
this.skinItem23.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem24
|
||||
//
|
||||
this.skinItem24.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem24.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem24.Location = new System.Drawing.Point(527, 207);
|
||||
this.skinItem24.Name = "skinItem24";
|
||||
this.skinItem24.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem24.SkinImage = global::Lskj.Main3.Properties.Resources.foggy;
|
||||
this.skinItem24.SkinTag = "Foggy";
|
||||
this.skinItem24.SkinText = "Foggy";
|
||||
this.skinItem24.TabIndex = 36;
|
||||
this.skinItem24.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem25
|
||||
//
|
||||
this.skinItem25.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem25.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem25.Location = new System.Drawing.Point(396, 207);
|
||||
this.skinItem25.Name = "skinItem25";
|
||||
this.skinItem25.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem25.SkinImage = global::Lskj.Main3.Properties.Resources.darkside;
|
||||
this.skinItem25.SkinTag = "DevExpress Dark Style";
|
||||
this.skinItem25.SkinText = "Dark Style";
|
||||
this.skinItem25.TabIndex = 35;
|
||||
this.skinItem25.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem26
|
||||
//
|
||||
this.skinItem26.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem26.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem26.Location = new System.Drawing.Point(265, 207);
|
||||
this.skinItem26.Name = "skinItem26";
|
||||
this.skinItem26.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem26.SkinImage = global::Lskj.Main3.Properties.Resources.caffee;
|
||||
this.skinItem26.SkinTag = "Coffee";
|
||||
this.skinItem26.SkinText = "Coffee";
|
||||
this.skinItem26.TabIndex = 33;
|
||||
this.skinItem26.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem27
|
||||
//
|
||||
this.skinItem27.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem27.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem27.Location = new System.Drawing.Point(134, 207);
|
||||
this.skinItem27.Name = "skinItem27";
|
||||
this.skinItem27.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem27.SkinImage = global::Lskj.Main3.Properties.Resources.caramel;
|
||||
this.skinItem27.SkinTag = "Caramel";
|
||||
this.skinItem27.SkinText = "Caramel";
|
||||
this.skinItem27.TabIndex = 32;
|
||||
this.skinItem27.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem28
|
||||
//
|
||||
this.skinItem28.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem28.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem28.Location = new System.Drawing.Point(3, 207);
|
||||
this.skinItem28.Name = "skinItem28";
|
||||
this.skinItem28.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem28.SkinImage = global::Lskj.Main3.Properties.Resources.blue;
|
||||
this.skinItem28.SkinTag = "Blue";
|
||||
this.skinItem28.SkinText = "Blue";
|
||||
this.skinItem28.TabIndex = 31;
|
||||
this.skinItem28.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem15
|
||||
//
|
||||
this.skinItem15.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem15.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem15.Location = new System.Drawing.Point(789, 121);
|
||||
this.skinItem15.Name = "skinItem15";
|
||||
this.skinItem15.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem15.SkinImage = global::Lskj.Main3.Properties.Resources.vs_2010;
|
||||
this.skinItem15.SkinTag = "VS2010";
|
||||
this.skinItem15.SkinText = "VS2010";
|
||||
this.skinItem15.TabIndex = 27;
|
||||
this.skinItem15.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem16
|
||||
//
|
||||
this.skinItem16.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem16.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem16.Location = new System.Drawing.Point(658, 121);
|
||||
this.skinItem16.Name = "skinItem16";
|
||||
this.skinItem16.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem16.SkinImage = global::Lskj.Main3.Properties.Resources.seven;
|
||||
this.skinItem16.SkinTag = "Serven";
|
||||
this.skinItem16.SkinText = "Serven";
|
||||
this.skinItem16.TabIndex = 30;
|
||||
this.skinItem16.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem17
|
||||
//
|
||||
this.skinItem17.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem17.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem17.Location = new System.Drawing.Point(527, 121);
|
||||
this.skinItem17.Name = "skinItem17";
|
||||
this.skinItem17.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem17.SkinImage = global::Lskj.Main3.Properties.Resources.seven_classic;
|
||||
this.skinItem17.SkinTag = "Seven Classic";
|
||||
this.skinItem17.SkinText = "Seven Classic";
|
||||
this.skinItem17.TabIndex = 29;
|
||||
this.skinItem17.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem18
|
||||
//
|
||||
this.skinItem18.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem18.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem18.Location = new System.Drawing.Point(396, 121);
|
||||
this.skinItem18.Name = "skinItem18";
|
||||
this.skinItem18.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem18.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_silver;
|
||||
this.skinItem18.SkinTag = "Office 2010 Silver";
|
||||
this.skinItem18.SkinText = "Office 2007 Silver";
|
||||
this.skinItem18.TabIndex = 28;
|
||||
this.skinItem18.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem19
|
||||
//
|
||||
this.skinItem19.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem19.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem19.Location = new System.Drawing.Point(265, 121);
|
||||
this.skinItem19.Name = "skinItem19";
|
||||
this.skinItem19.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem19.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_pink;
|
||||
this.skinItem19.SkinTag = "Office 2007 Pink";
|
||||
this.skinItem19.SkinText = "Office 2007 Pink";
|
||||
this.skinItem19.TabIndex = 26;
|
||||
this.skinItem19.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem20
|
||||
//
|
||||
this.skinItem20.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem20.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem20.Location = new System.Drawing.Point(134, 121);
|
||||
this.skinItem20.Name = "skinItem20";
|
||||
this.skinItem20.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem20.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_green;
|
||||
this.skinItem20.SkinTag = "Office 2007 Green";
|
||||
this.skinItem20.SkinText = "Office 2007 Green";
|
||||
this.skinItem20.TabIndex = 25;
|
||||
this.skinItem20.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem21
|
||||
//
|
||||
this.skinItem21.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem21.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem21.Location = new System.Drawing.Point(3, 121);
|
||||
this.skinItem21.Name = "skinItem21";
|
||||
this.skinItem21.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem21.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_black;
|
||||
this.skinItem21.SkinTag = "Office 2007 Black";
|
||||
this.skinItem21.SkinText = "Office 2007 Black";
|
||||
this.skinItem21.TabIndex = 24;
|
||||
this.skinItem21.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem1
|
||||
//
|
||||
this.skinItem1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem1.Location = new System.Drawing.Point(789, 35);
|
||||
this.skinItem1.Name = "skinItem1";
|
||||
this.skinItem1.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem1.SkinImage = global::Lskj.Main3.Properties.Resources.office_2007_blue;
|
||||
this.skinItem1.SkinTag = "Office 2007 Blue";
|
||||
this.skinItem1.SkinText = "Office 2007 Blue";
|
||||
this.skinItem1.TabIndex = 20;
|
||||
this.skinItem1.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem2
|
||||
//
|
||||
this.skinItem2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem2.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem2.Location = new System.Drawing.Point(658, 35);
|
||||
this.skinItem2.Name = "skinItem2";
|
||||
this.skinItem2.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem2.SkinImage = global::Lskj.Main3.Properties.Resources.office_2010_silver;
|
||||
this.skinItem2.SkinTag = "Office 2010 Silver";
|
||||
this.skinItem2.SkinText = "Office 2010 Silver";
|
||||
this.skinItem2.TabIndex = 23;
|
||||
this.skinItem2.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem3
|
||||
//
|
||||
this.skinItem3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem3.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem3.Location = new System.Drawing.Point(527, 35);
|
||||
this.skinItem3.Name = "skinItem3";
|
||||
this.skinItem3.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem3.SkinImage = global::Lskj.Main3.Properties.Resources.office_2010_black;
|
||||
this.skinItem3.SkinTag = "Office 2010 Black";
|
||||
this.skinItem3.SkinText = "Office 2010 Black";
|
||||
this.skinItem3.TabIndex = 22;
|
||||
this.skinItem3.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// skinItem4
|
||||
//
|
||||
this.skinItem4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.skinItem4.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.skinItem4.Location = new System.Drawing.Point(396, 35);
|
||||
this.skinItem4.Name = "skinItem4";
|
||||
this.skinItem4.Size = new System.Drawing.Size(125, 80);
|
||||
this.skinItem4.SkinImage = global::Lskj.Main3.Properties.Resources.office_2010_bule;
|
||||
this.skinItem4.SkinTag = "Office 2010 Blue";
|
||||
this.skinItem4.SkinText = "Office 2010 Blue";
|
||||
this.skinItem4.TabIndex = 21;
|
||||
this.skinItem4.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// si_office_2013_light_gray
|
||||
//
|
||||
this.si_office_2013_light_gray.BackColor = System.Drawing.Color.Transparent;
|
||||
this.si_office_2013_light_gray.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.si_office_2013_light_gray.Location = new System.Drawing.Point(265, 35);
|
||||
this.si_office_2013_light_gray.Name = "si_office_2013_light_gray";
|
||||
this.si_office_2013_light_gray.Size = new System.Drawing.Size(125, 80);
|
||||
this.si_office_2013_light_gray.SkinImage = global::Lskj.Main3.Properties.Resources.devexpress_2013_light_gray;
|
||||
this.si_office_2013_light_gray.SkinTag = "Office 2013 Light Gray";
|
||||
this.si_office_2013_light_gray.SkinText = "Office 2013 Light";
|
||||
this.si_office_2013_light_gray.TabIndex = 19;
|
||||
this.si_office_2013_light_gray.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// si_office_2013_dark_gray
|
||||
//
|
||||
this.si_office_2013_dark_gray.BackColor = System.Drawing.Color.Transparent;
|
||||
this.si_office_2013_dark_gray.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.si_office_2013_dark_gray.Location = new System.Drawing.Point(134, 35);
|
||||
this.si_office_2013_dark_gray.Name = "si_office_2013_dark_gray";
|
||||
this.si_office_2013_dark_gray.Size = new System.Drawing.Size(125, 80);
|
||||
this.si_office_2013_dark_gray.SkinImage = global::Lskj.Main3.Properties.Resources.devexpress_2013_gray;
|
||||
this.si_office_2013_dark_gray.SkinTag = "Office 2013 Dark Gray";
|
||||
this.si_office_2013_dark_gray.SkinText = "Office 2013 Dark";
|
||||
this.si_office_2013_dark_gray.TabIndex = 18;
|
||||
this.si_office_2013_dark_gray.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// si_office_2013_white
|
||||
//
|
||||
this.si_office_2013_white.BackColor = System.Drawing.Color.Transparent;
|
||||
this.si_office_2013_white.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.si_office_2013_white.Location = new System.Drawing.Point(3, 35);
|
||||
this.si_office_2013_white.Name = "si_office_2013_white";
|
||||
this.si_office_2013_white.Size = new System.Drawing.Size(125, 80);
|
||||
this.si_office_2013_white.SkinImage = ((System.Drawing.Image)(resources.GetObject("si_office_2013_white.SkinImage")));
|
||||
this.si_office_2013_white.SkinTag = "Office 2013 White";
|
||||
this.si_office_2013_white.SkinText = "Office 2013 White";
|
||||
this.si_office_2013_white.TabIndex = 17;
|
||||
this.si_office_2013_white.OnSkinItemClick += new System.EventHandler(this.skinItem_OnSkinItemClick);
|
||||
//
|
||||
// SkinControl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "SkinControl";
|
||||
this.Size = new System.Drawing.Size(919, 507);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel4.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private SkinItem skinItem8;
|
||||
private SkinItem skinItem9;
|
||||
private SkinItem skinItem10;
|
||||
private SkinItem skinItem11;
|
||||
private SkinItem skinItem12;
|
||||
private SkinItem skinItem13;
|
||||
private SkinItem skinItem14;
|
||||
private SkinItem skinItem1;
|
||||
private SkinItem skinItem2;
|
||||
private SkinItem skinItem3;
|
||||
private SkinItem skinItem4;
|
||||
private SkinItem si_office_2013_light_gray;
|
||||
private SkinItem si_office_2013_dark_gray;
|
||||
private SkinItem si_office_2013_white;
|
||||
private SkinItem skinItem29;
|
||||
private SkinItem skinItem30;
|
||||
private SkinItem skinItem31;
|
||||
private SkinItem skinItem32;
|
||||
private SkinItem skinItem33;
|
||||
private SkinItem skinItem34;
|
||||
private SkinItem skinItem35;
|
||||
private SkinItem skinItem22;
|
||||
private SkinItem skinItem23;
|
||||
private SkinItem skinItem24;
|
||||
private SkinItem skinItem25;
|
||||
private SkinItem skinItem26;
|
||||
private SkinItem skinItem27;
|
||||
private SkinItem skinItem28;
|
||||
private SkinItem skinItem15;
|
||||
private SkinItem skinItem16;
|
||||
private SkinItem skinItem17;
|
||||
private SkinItem skinItem18;
|
||||
private SkinItem skinItem19;
|
||||
private SkinItem skinItem20;
|
||||
private SkinItem skinItem21;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/******************************
|
||||
* 说明:自定义皮肤控件
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-09-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using Lskj.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义皮肤控件
|
||||
/// </summary>
|
||||
public partial class SkinControl : UserControl
|
||||
{
|
||||
public string SkinName;
|
||||
|
||||
public SkinControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:界面加载时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="e">包含事件数据的 <see cref="T:System.EventArgs" />。</param>
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnLoad(e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:点击皮肤</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
|
||||
private void skinItem_OnSkinItemClick(object sender, System.EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SkinName = sender + "";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
<?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="panel1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem29.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem30.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem31.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem32.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem33.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem34.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem35.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem22.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem23.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem24.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem25.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem26.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem27.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem28.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem15.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem16.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem17.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem18.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem19.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem20.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem21.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="si_office_2013_light_gray.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="si_office_2013_dark_gray.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="si_office_2013_white.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="si_office_2013_white.SkinImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||
DAAACwwBP0AiyAAAAlFJREFUaEPtmbFqFFEUQB8IQkAQrARBsBIEWysrK0Gwk3xAOgvDm1UshEjAVrAV
|
||||
/ACxCwRSiUWctwlYiUKqgCCkCgiCIAh6Z7LCdffs3fXeHbORPXAgsDPn3TfZpHiTFiw4Kdzbvpiq/qNU
|
||||
1e9Trj+mXNbS6tvLg0/nlPu752XgVRl4O1XlJzp3m3n47qwMtCKDb+HAlse2mVyW5OuxLANsiN9xuL+1
|
||||
883ceXUq9epbstBLWfDryACzdKb06hvyZJ7LV+QQF+vCMLlckyf9VDzABbrWRW/nijzldRl6H6PT2mw6
|
||||
l822VfVvy88X8DpLFxSaJA1L0L2WLiiknXZYgnqWLiikjUA9SxcU0kagnqULCmkjUM/SBYW0Eahn6YJC
|
||||
2gjUs3RBIW0E6lm6oJA2AvUsXVBIG4F6li4opI1APUsXFNJGoJ6lCwppI1DP0gWFtBGoZ+mCQtoI1LN0
|
||||
QSFtBOpZuqCQNgL1LF1QSBuBepYuKKSNQD1LFxTSRqCepQsKaSNQz9IFhbQRqGfpgkLaCNSzdDEcac88
|
||||
662Uy4PU27k0uMrHcHuSLpobm0OtXJ4dnYGWpcEncYYHnKQLCv1h/Vk2uCEbW2s32LwLmBbsGbrI5aoM
|
||||
+EQCn0aCY51yU3ivYZiqf739KrkOd2FTeJ3hTMnlpgz1Qob6got1YSc8/nD66Ey0ecFRf8OFZ2Xn3H1z
|
||||
RjazLL+dTVnwx8gAPvfkway3x/z/lFzOiSviaxhqksc09DjaP9h+JUPtwrC/nbOhx9G86G7+EzVvH0/M
|
||||
0Av+e1L6BZusjCgZKTN7AAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="panel2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="panel3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem9.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem10.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem13.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="skinItem14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="panel4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,92 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SkinItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.btn_item_title = new System.Windows.Forms.Label();
|
||||
this.btn_item_img = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn_item_title
|
||||
//
|
||||
this.btn_item_title.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btn_item_title.Font = new System.Drawing.Font("宋体", 8F);
|
||||
this.btn_item_title.Location = new System.Drawing.Point(0, 54);
|
||||
this.btn_item_title.Name = "btn_item_title";
|
||||
this.btn_item_title.Size = new System.Drawing.Size(125, 26);
|
||||
this.btn_item_title.TabIndex = 5;
|
||||
this.btn_item_title.Tag = "Office 2013 White";
|
||||
this.btn_item_title.Text = "Office 2013 White";
|
||||
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.btn_item_title.Click += new System.EventHandler(this.SkinItem_Click);
|
||||
this.btn_item_title.MouseLeave += new System.EventHandler(this.SkinItem_MouseLeave);
|
||||
this.btn_item_title.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SkinItem_MouseMove);
|
||||
//
|
||||
// btn_item_img
|
||||
//
|
||||
this.btn_item_img.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.BackgroundImage = global::Lskj.Main3.Properties.Resources.office_2013;
|
||||
this.btn_item_img.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btn_item_img.FlatAppearance.BorderSize = 0;
|
||||
this.btn_item_img.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btn_item_img.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btn_item_img.Location = new System.Drawing.Point(39, 5);
|
||||
this.btn_item_img.Name = "btn_item_img";
|
||||
this.btn_item_img.Size = new System.Drawing.Size(48, 48);
|
||||
this.btn_item_img.TabIndex = 4;
|
||||
this.btn_item_img.UseVisualStyleBackColor = false;
|
||||
this.btn_item_img.Click += new System.EventHandler(this.SkinItem_Click);
|
||||
this.btn_item_img.MouseLeave += new System.EventHandler(this.SkinItem_MouseLeave);
|
||||
this.btn_item_img.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SkinItem_MouseMove);
|
||||
//
|
||||
// SkinItem
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.Transparent;
|
||||
this.Controls.Add(this.btn_item_img);
|
||||
this.Controls.Add(this.btn_item_title);
|
||||
this.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.Name = "SkinItem";
|
||||
this.Size = new System.Drawing.Size(125, 80);
|
||||
this.Click += new System.EventHandler(this.SkinItem_Click);
|
||||
this.MouseLeave += new System.EventHandler(this.SkinItem_MouseLeave);
|
||||
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.SkinItem_MouseMove);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Button btn_item_img;
|
||||
private System.Windows.Forms.Label btn_item_title;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
/******************************
|
||||
* 说明:自定义皮肤选择控件
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-09-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义皮肤选择控件
|
||||
/// </summary>
|
||||
public partial class SkinItem : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Occurs when [on skin item click].
|
||||
/// </summary>
|
||||
[Description("设置皮肤点击事件")]
|
||||
public event EventHandler OnSkinItemClick;
|
||||
|
||||
public SkinItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the skin image.
|
||||
/// </summary>
|
||||
/// <value>The skin image.</value>
|
||||
[Description("设置皮肤图标"), Category("皮肤"), DefaultValue(null)]
|
||||
public Image SkinImage
|
||||
{
|
||||
get
|
||||
{
|
||||
return btn_item_img.BackgroundImage;
|
||||
}
|
||||
set
|
||||
{
|
||||
btn_item_img.BackgroundImage = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the skin text.
|
||||
/// </summary>
|
||||
/// <value>The skin text.</value>
|
||||
[Description("设置皮肤文本"), Category("皮肤"), DefaultValue("")]
|
||||
public string SkinText
|
||||
{
|
||||
get
|
||||
{
|
||||
return btn_item_title.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
btn_item_title.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the skin tag.
|
||||
/// </summary>
|
||||
/// <value>The skin tag.</value>
|
||||
[Description("设置皮肤Tag"), Category("皮肤"), DefaultValue("")]
|
||||
public string SkinTag
|
||||
{
|
||||
get
|
||||
{
|
||||
return btn_item_title.Tag + "";
|
||||
}
|
||||
set
|
||||
{
|
||||
btn_item_title.Tag = value + "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void SkinItem_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.FromArgb(205, 230, 247);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标离开时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void SkinItem_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = Color.Transparent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换皮肤</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void SkinItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string skinName = this.btn_item_title.Tag + "";
|
||||
|
||||
UserLookAndFeel.Default.SetSkinStyle(skinName);
|
||||
if (this.OnSkinItemClick != null)
|
||||
OnSkinItemClick(skinName, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
<?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="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,111 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SubItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lblTitle = new System.Windows.Forms.Label();
|
||||
this.plCenter = new System.Windows.Forms.Panel();
|
||||
this.picImage = new System.Windows.Forms.PictureBox();
|
||||
this.plTop = new System.Windows.Forms.Panel();
|
||||
this.plCenter.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picImage)).BeginInit();
|
||||
this.plTop.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblTitle
|
||||
//
|
||||
this.lblTitle.AutoSize = true;
|
||||
this.lblTitle.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTitle.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTitle.Location = new System.Drawing.Point(19, 13);
|
||||
this.lblTitle.Name = "lblTitle";
|
||||
this.lblTitle.Size = new System.Drawing.Size(0, 19);
|
||||
this.lblTitle.TabIndex = 0;
|
||||
//
|
||||
// plCenter
|
||||
//
|
||||
this.plCenter.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plCenter.Controls.Add(this.picImage);
|
||||
this.plCenter.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plCenter.Location = new System.Drawing.Point(0, 40);
|
||||
this.plCenter.Name = "plCenter";
|
||||
this.plCenter.Size = new System.Drawing.Size(175, 114);
|
||||
this.plCenter.TabIndex = 3;
|
||||
this.plCenter.MouseClick += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseClick);
|
||||
this.plCenter.MouseLeave += new System.EventHandler(this.plCenter_MouseLeave);
|
||||
this.plCenter.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
//
|
||||
// picImage
|
||||
//
|
||||
this.picImage.Location = new System.Drawing.Point(51, 20);
|
||||
this.picImage.Name = "picImage";
|
||||
this.picImage.Size = new System.Drawing.Size(64, 64);
|
||||
this.picImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.picImage.TabIndex = 0;
|
||||
this.picImage.TabStop = false;
|
||||
this.picImage.MouseClick += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseClick);
|
||||
this.picImage.MouseLeave += new System.EventHandler(this.plCenter_MouseLeave);
|
||||
this.picImage.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
//
|
||||
// plTop
|
||||
//
|
||||
this.plTop.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plTop.Controls.Add(this.lblTitle);
|
||||
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.plTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTop.Name = "plTop";
|
||||
this.plTop.Size = new System.Drawing.Size(175, 40);
|
||||
this.plTop.TabIndex = 2;
|
||||
this.plTop.MouseClick += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseClick);
|
||||
this.plTop.MouseLeave += new System.EventHandler(this.plCenter_MouseLeave);
|
||||
this.plTop.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
//
|
||||
// SubItem
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(172)))), ((int)(((byte)(212)))));
|
||||
this.Controls.Add(this.plCenter);
|
||||
this.Controls.Add(this.plTop);
|
||||
this.Name = "SubItem";
|
||||
this.Size = new System.Drawing.Size(175, 154);
|
||||
this.plCenter.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.picImage)).EndInit();
|
||||
this.plTop.ResumeLayout(false);
|
||||
this.plTop.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lblTitle;
|
||||
private System.Windows.Forms.Panel plCenter;
|
||||
private System.Windows.Forms.PictureBox picImage;
|
||||
private System.Windows.Forms.Panel plTop;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
/******************************
|
||||
* 说明:自定义子系统模块
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Business.Impl;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定义子系统模块
|
||||
/// </summary>
|
||||
public partial class SubItem : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 鼠标划过颜色
|
||||
/// </summary>
|
||||
private string _moveColor = "#eac205";
|
||||
/// <summary>
|
||||
/// 默认颜色
|
||||
/// </summary>
|
||||
public string DefaultColor;
|
||||
/// <summary>
|
||||
/// 是否可用
|
||||
/// </summary>
|
||||
public Boolean IsUsed;
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
public string SubName;
|
||||
|
||||
public SubItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private HoverEventHandler _hoverEvent = null;
|
||||
/// <summary>
|
||||
/// 鼠标划过控件
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public delegate void HoverEventHandler(SubItem sender);
|
||||
|
||||
private MouseClickEventHanlder _clickEvent = null;
|
||||
/// <summary>
|
||||
/// 鼠标点击控件
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public delegate void MouseClickEventHanlder(SubItem sender);
|
||||
|
||||
/// <summary>
|
||||
/// label对象
|
||||
/// </summary>
|
||||
public Label GetLabel { get { return lblTitle; } }
|
||||
/// <summary>
|
||||
/// PictureBox对象
|
||||
/// </summary>
|
||||
public PictureBox GetPictureBox { get { return picImage; } }
|
||||
/// <summary>
|
||||
/// <para>说明:注册鼠标划过事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="hoverEvent">The hover event.</param>
|
||||
public void SetHoverEvent(HoverEventHandler hoverEvent)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._hoverEvent = hoverEvent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:注册点击事件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="clickEvent">The click event.</param>
|
||||
public void SetClickEvent(MouseClickEventHanlder clickEvent)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._clickEvent = clickEvent;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#region 改变背景色
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = ColorTranslator.FromHtml(_moveColor);
|
||||
this.Cursor = Cursors.Hand;
|
||||
if (_hoverEvent != null)
|
||||
{
|
||||
this._hoverEvent(this);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标离开时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void plCenter_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.BackColor = ColorTranslator.FromHtml(DefaultColor);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击事件
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标点击时:</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="System.Windows.Forms.MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_clickEvent != null)
|
||||
{
|
||||
if (IsUsed)
|
||||
{
|
||||
_clickEvent(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(SubName + ResourceKeys.SubSystemUnEnabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -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,48 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class SubItemForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// SubItemForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.Name = "SubItemForm";
|
||||
this.Size = new System.Drawing.Size(192, 195);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
/***********************
|
||||
* 说明:子系统快捷窗口
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class SubItemForm : UserControl
|
||||
{
|
||||
public SubItemForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Hide();
|
||||
}
|
||||
/// <summary>
|
||||
/// 控件状态
|
||||
/// </summary>
|
||||
public bool _isFocus = false;
|
||||
/// <summary>
|
||||
/// 子系统按钮点击回调
|
||||
/// </summary>
|
||||
public EventHandler OnbtnSubItemClick;
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:数据填充排布</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-02 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetDataSource(DataRow[] dt)
|
||||
{
|
||||
int index = 1;
|
||||
int height = 0;
|
||||
int x = 0;
|
||||
int formHeight = 0;
|
||||
foreach (DataRow item in dt)
|
||||
{
|
||||
SimpleButton btnSub = new SimpleButton();
|
||||
btnSub.Width = 96;
|
||||
btnSub.Click += new EventHandler(OnSubItemClick);
|
||||
btnSub.Location = new Point(10 + x, 5 + height);
|
||||
int y = btnSub.Location.Y;
|
||||
x = 96 + 5;
|
||||
if (index % 2 == 0)
|
||||
{
|
||||
height = y + btnSub.Height + 10;
|
||||
x = 0;
|
||||
formHeight = height;
|
||||
}
|
||||
else
|
||||
{
|
||||
formHeight = height + btnSub.Height + 10;
|
||||
}
|
||||
btnSub.Text = item["SubSysName"] + "";
|
||||
btnSub.Tag = item["SubSysId"] + "";
|
||||
this.Controls.Add(btnSub);
|
||||
index++;
|
||||
}
|
||||
this.Height = formHeight;
|
||||
this.Width = this.Width + 25;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:套账填充排布</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-02 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetAccountsSource(DataTable dt)
|
||||
{
|
||||
int height = 0;
|
||||
int width = 0;
|
||||
int formWidth = 0;
|
||||
for (int i = dt.Rows.Count; i > 0; i--)
|
||||
{
|
||||
DataRow item = dt.Rows[i - 1];
|
||||
SimpleButton btnSub = new SimpleButton();
|
||||
btnSub.Appearance.Options.UseTextOptions = true;
|
||||
btnSub.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
|
||||
btnSub.BackColor = Color.Transparent;
|
||||
btnSub.Click += new EventHandler(OnSubItemClick);
|
||||
btnSub.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
btnSub.Text = item["ShowName"] + "";
|
||||
btnSub.Tag = item;
|
||||
this.Controls.Add(btnSub);
|
||||
|
||||
height = height + btnSub.Height;
|
||||
if (formWidth < btnSub.Width)
|
||||
{
|
||||
formWidth = btnSub.Width;
|
||||
}
|
||||
}
|
||||
this.Height = height+2;
|
||||
this.Width = formWidth+37;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:点击子系统</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-03 </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>
|
||||
private void OnSubItemClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (OnbtnSubItemClick != null)
|
||||
OnbtnSubItemClick(sender, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,70 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class TreeNodeCustom
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.btnTreeNode = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnTreeNode
|
||||
//
|
||||
this.btnTreeNode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(87)))), ((int)(((byte)(167)))));
|
||||
this.btnTreeNode.BackgroundImage = global::Lskj.Main3.Properties.Resources.node_default;
|
||||
this.btnTreeNode.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnTreeNode.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnTreeNode.FlatAppearance.BorderSize = 0;
|
||||
this.btnTreeNode.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnTreeNode.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnTreeNode.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnTreeNode.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.btnTreeNode.ForeColor = System.Drawing.Color.White;
|
||||
this.btnTreeNode.Location = new System.Drawing.Point(0, 0);
|
||||
this.btnTreeNode.Name = "btnTreeNode";
|
||||
this.btnTreeNode.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
|
||||
this.btnTreeNode.Size = new System.Drawing.Size(130, 31);
|
||||
this.btnTreeNode.TabIndex = 0;
|
||||
this.btnTreeNode.Text = "我的桌面";
|
||||
this.btnTreeNode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnTreeNode.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// TreeNodeCustom
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.btnTreeNode);
|
||||
this.Name = "TreeNodeCustom";
|
||||
this.Size = new System.Drawing.Size(130, 31);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public System.Windows.Forms.Button btnTreeNode;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/***********************
|
||||
* 说明:主界面左菜单节点
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class TreeNodeCustom : UserControl
|
||||
{
|
||||
public TreeNodeCustom()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,59 @@
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
partial class TreeViewCustom
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.plTreeView = new System.Windows.Forms.Panel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// plTreeView
|
||||
//
|
||||
this.plTreeView.AutoScroll = true;
|
||||
this.plTreeView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.plTreeView.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTreeView.Name = "plTreeView";
|
||||
this.plTreeView.Size = new System.Drawing.Size(140, 452);
|
||||
this.plTreeView.TabIndex = 0;
|
||||
//
|
||||
// TreeViewCustom
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.AutoScroll = true;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(87)))), ((int)(((byte)(167)))));
|
||||
this.Controls.Add(this.plTreeView);
|
||||
this.Name = "TreeViewCustom";
|
||||
this.Size = new System.Drawing.Size(140, 452);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel plTreeView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,418 @@
|
||||
/***********************
|
||||
* 说明:主界面左菜单树
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-04-25
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Lskj.Main3.Control
|
||||
{
|
||||
public partial class TreeViewCustom : UserControl
|
||||
{
|
||||
#region 公有属性
|
||||
/// <summary>
|
||||
/// 父节点字段
|
||||
/// </summary>
|
||||
public string ParentField;
|
||||
/// <summary>
|
||||
/// 显示节点文本字段
|
||||
/// </summary>
|
||||
public string TextField;
|
||||
/// <summary>
|
||||
/// 父节点关联子节点位数
|
||||
/// </summary>
|
||||
public int ParentKeyLength;
|
||||
/// <summary>
|
||||
/// 左侧菜单点击回调
|
||||
/// </summary>
|
||||
/// <param name="after">The after.</param>
|
||||
public delegate void ButtonClickEventHandler(Button after);
|
||||
/// <summary>
|
||||
/// 左侧菜单事件注册
|
||||
/// </summary>
|
||||
public ButtonClickEventHandler OnButtonClickEvent;
|
||||
#endregion
|
||||
|
||||
#region 私有属性
|
||||
/// <summary>
|
||||
/// 上次显示节点
|
||||
/// </summary>
|
||||
private string _lastTreeNode;
|
||||
/// <summary>
|
||||
/// 上次显示按钮ID
|
||||
/// </summary>
|
||||
private string _lastMenuId;
|
||||
/// 数据源
|
||||
/// </summary>
|
||||
private DataTable _dataSource;
|
||||
/// <summary>
|
||||
/// 缓存菜单,按照节点缓存
|
||||
/// </summary>
|
||||
private Dictionary<string, List<TreeNodeCustom>> _dicTreeNodes = new Dictionary<string, List<TreeNodeCustom>>();
|
||||
/// <summary>
|
||||
/// 缓存所有按钮
|
||||
/// </summary>
|
||||
private Dictionary<string, Button> _dicButtons = new Dictionary<string, Button>();
|
||||
#endregion
|
||||
|
||||
#region Api
|
||||
[DllImport("user32.dll")]
|
||||
public static extern int SendMessage(IntPtr hWnd, Int32 wMsg, bool wParam, Int32 lParam);
|
||||
|
||||
private const int WM_SETREDRAW = 11;
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:停止绘制</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="parent"></param>
|
||||
public static void SuspendDrawing(System.Windows.Forms.Control parent)
|
||||
{
|
||||
SendMessage(parent.Handle, WM_SETREDRAW, false, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:开始绘制</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="parent"></param>
|
||||
public static void ResumeDrawing(System.Windows.Forms.Control parent)
|
||||
{
|
||||
SendMessage(parent.Handle, WM_SETREDRAW, true, 0);
|
||||
parent.Refresh();
|
||||
}
|
||||
#endregion
|
||||
|
||||
public TreeViewCustom()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
if (m.Msg == 0x0014) return;
|
||||
base.WndProc(ref m);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:检查是否包含父节点</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private List<TreeNodeCustom> getParentNodes(string parent)
|
||||
{
|
||||
string parentKey = parent.Length == ParentKeyLength ? parent : parent.Substring(0, parent.Length - ParentKeyLength);
|
||||
List<TreeNodeCustom> treeNodeList = new List<TreeNodeCustom>();
|
||||
|
||||
if (_dicTreeNodes == null)
|
||||
_dicTreeNodes = new Dictionary<string, List<TreeNodeCustom>>();
|
||||
|
||||
if (_dicTreeNodes.ContainsKey(parentKey))
|
||||
{
|
||||
treeNodeList = _dicTreeNodes[parentKey];
|
||||
}
|
||||
else
|
||||
{
|
||||
_dicTreeNodes.Add(parentKey, treeNodeList);
|
||||
}
|
||||
return treeNodeList;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:加载菜单</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetDataSource(DataTable dtTable)
|
||||
{
|
||||
int index = 1;
|
||||
this._dataSource = dtTable;
|
||||
if (_dataSource == null || _dataSource.Rows.Count == 0) return;
|
||||
|
||||
// 获取根节点
|
||||
DataRow[] rootRows = _dataSource.Rows.Cast<DataRow>().Where(x => (x[ParentField] + "").Length == ParentKeyLength || (x[ParentField] + "").Length == ParentKeyLength * 2).ToArray();
|
||||
foreach (DataRow item in _dataSource.Rows)
|
||||
{
|
||||
int length = (item[ParentField] + "").Length;
|
||||
TreeNodeCustom treeNode = new TreeNodeCustom();
|
||||
treeNode.Dock = DockStyle.Top;
|
||||
treeNode.Tag = item[ParentField] + "";
|
||||
treeNode.TabIndex = index;
|
||||
|
||||
if (length == ParentKeyLength)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node_default;
|
||||
treeNode.btnTreeNode.Font = new Font("微软雅黑", 12);
|
||||
}
|
||||
else if (length / ParentKeyLength == 2)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node2_default;
|
||||
treeNode.btnTreeNode.Padding = new Padding(20, 1, 3, 3);
|
||||
treeNode.btnTreeNode.Font = new Font("微软雅黑", 11);
|
||||
}
|
||||
else
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node3_default;
|
||||
treeNode.btnTreeNode.Padding = new Padding(30, 1, 3, 3);
|
||||
treeNode.btnTreeNode.Font = new Font("微软雅黑", 10);
|
||||
}
|
||||
|
||||
treeNode.btnTreeNode.Name = index + "";
|
||||
treeNode.btnTreeNode.Text = item[TextField] + "";
|
||||
treeNode.btnTreeNode.Tag = item;
|
||||
treeNode.btnTreeNode.Click += new EventHandler(btnTreeNode_Click);
|
||||
treeNode.btnTreeNode.MouseMove += new MouseEventHandler(btnTreeNode_MouseMove);
|
||||
treeNode.btnTreeNode.MouseLeave += new EventHandler(btnTreeNode_MouseLeave);
|
||||
|
||||
plTreeView.Controls.Add(treeNode);
|
||||
_dicButtons.Add(index + "", treeNode.btnTreeNode);
|
||||
|
||||
List<TreeNodeCustom> parentNodes = getParentNodes(item[ParentField] + "");
|
||||
parentNodes.Add(treeNode);
|
||||
// 隐藏需要放在添加后,否则出现顺序错乱
|
||||
treeNode.Visible = length == ParentKeyLength;
|
||||
index++;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:树点击</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void btnTreeNode_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SuspendDrawing(plTreeView);
|
||||
TreeNodeCustom treeNode = (sender as Button).Parent as TreeNodeCustom;
|
||||
if (treeNode != null)
|
||||
{
|
||||
string nodeValue = treeNode.Tag + "";
|
||||
if (_lastTreeNode == null)
|
||||
{
|
||||
_lastTreeNode = nodeValue;
|
||||
}
|
||||
if (nodeValue.Length == ParentKeyLength)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = _dicTreeNodes[nodeValue][0].Visible ? Lskj.Main3.Properties.Resources.node_default : Lskj.Main3.Properties.Resources.node_select;
|
||||
}
|
||||
if (nodeValue.Length == ParentKeyLength * 2)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = _dicTreeNodes[nodeValue][0].Visible ? Lskj.Main3.Properties.Resources.node2_default : Lskj.Main3.Properties.Resources.node2_select;
|
||||
}
|
||||
// 末节点
|
||||
if (nodeValue.Length == ParentKeyLength * 3)
|
||||
{
|
||||
treeNode.btnTreeNode.BackgroundImage = Lskj.Main3.Properties.Resources.node3_select;
|
||||
if (!string.IsNullOrEmpty(_lastMenuId) && _lastMenuId != treeNode.btnTreeNode.Name)
|
||||
{
|
||||
_dicButtons[_lastMenuId].BackgroundImage = Lskj.Main3.Properties.Resources.node3_default;
|
||||
}
|
||||
_lastMenuId = treeNode.btnTreeNode.Name;
|
||||
}
|
||||
List<TreeNodeCustom> treeNodes = new List<TreeNodeCustom>();
|
||||
// 展开当前点击节点
|
||||
if (_dicTreeNodes.ContainsKey(nodeValue))
|
||||
{
|
||||
treeNodes = _dicTreeNodes[nodeValue];
|
||||
foreach (TreeNodeCustom node in treeNodes)
|
||||
{
|
||||
string menuKey = node.Tag + "";
|
||||
if (menuKey.Length == ParentKeyLength) continue;
|
||||
node.Visible = !node.Visible;
|
||||
Application.DoEvents();// 处理当前消息队列中的所有windows消息
|
||||
}
|
||||
}
|
||||
// 点击根节点隐藏所有子节点
|
||||
if (nodeValue.Length == ParentKeyLength && !_dicTreeNodes[nodeValue][0].Visible)
|
||||
{
|
||||
treeNodes = getChildNodes(nodeValue);
|
||||
foreach (TreeNodeCustom node in treeNodes)
|
||||
{
|
||||
node.Visible = false;
|
||||
//Application.DoEvents();// 处理当前消息队列中的所有windows消息
|
||||
}
|
||||
}
|
||||
// 点击末节点
|
||||
if (nodeValue.Length == ParentKeyLength * 3)
|
||||
{
|
||||
if (OnButtonClickEvent != null)
|
||||
{
|
||||
this.OnButtonClickEvent(treeNode.btnTreeNode);
|
||||
}
|
||||
}
|
||||
_lastTreeNode = nodeValue;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
ResumeDrawing(plTreeView);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void btnTreeNode_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Button button = sender as Button;
|
||||
if (button != null)
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
|
||||
TreeNodeCustom treeNode = button.Parent as TreeNodeCustom;
|
||||
string treeNodeTag = treeNode.Tag + "";
|
||||
if (treeNodeTag.Length == ParentKeyLength)
|
||||
{
|
||||
}
|
||||
else if (treeNodeTag.Length == ParentKeyLength * 2)
|
||||
{
|
||||
// 第一级节点
|
||||
if (_dicTreeNodes.ContainsKey(treeNodeTag) && _dicTreeNodes[treeNodeTag].Count > 0)
|
||||
{
|
||||
button.BackgroundImage = _dicTreeNodes[treeNodeTag][0].Visible ? Lskj.Main3.Properties.Resources.node2_select : Lskj.Main3.Properties.Resources.node2_move;
|
||||
}
|
||||
else
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node2_move;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 末节点
|
||||
if (button.Name != _lastMenuId)
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node3_move;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标离开</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void btnTreeNode_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Button button = sender as Button;
|
||||
if (button != null)
|
||||
{
|
||||
this.Cursor = Cursors.Hand;
|
||||
|
||||
TreeNodeCustom treeNode = button.Parent as TreeNodeCustom;
|
||||
string treeNodeTag = treeNode.Tag + "";
|
||||
if (treeNodeTag.Length == ParentKeyLength)
|
||||
{
|
||||
}
|
||||
else if (treeNodeTag.Length == ParentKeyLength * 2)
|
||||
{
|
||||
// 第一级节点
|
||||
if (_dicTreeNodes.ContainsKey(treeNodeTag) && _dicTreeNodes[treeNodeTag].Count > 0)
|
||||
{
|
||||
button.BackgroundImage = _dicTreeNodes[treeNodeTag][0].Visible ? Lskj.Main3.Properties.Resources.node2_select : Lskj.Main3.Properties.Resources.node2_default;
|
||||
}
|
||||
else
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node2_default;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 末节点
|
||||
if (button.Name != _lastMenuId)
|
||||
{
|
||||
button.BackgroundImage = Lskj.Main3.Properties.Resources.node3_default;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取子节点</para>
|
||||
/// <para>创建人 龚宇超</para>
|
||||
/// <para>创建日期:2018-04-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private List<TreeNodeCustom> getChildNodes(string nodeValue)
|
||||
{
|
||||
List<TreeNodeCustom> treeNodes = new List<TreeNodeCustom>();
|
||||
|
||||
// 获取第3个节点之后的节点
|
||||
DataRow[] rowChilds = _dataSource.Rows.Cast<DataRow>().Where(x => (x[ParentField] + "").Length == nodeValue.Length * 2 && (x[ParentField] + "").Substring(0, nodeValue.Length) == nodeValue).ToArray();
|
||||
|
||||
foreach (DataRow item in rowChilds)
|
||||
{
|
||||
if (_dicTreeNodes.ContainsKey(item[ParentField] + ""))
|
||||
{
|
||||
List<TreeNodeCustom> nodeChilds = _dicTreeNodes[item[ParentField] + ""];
|
||||
foreach (TreeNodeCustom node in nodeChilds)
|
||||
{
|
||||
treeNodes.Add(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
return treeNodes;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmConfig
|
||||
{
|
||||
/// <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(FrmConfig));
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.txtDBName = new System.Windows.Forms.TextBox();
|
||||
this.txtServerName = new System.Windows.Forms.TextBox();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnConnect = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnExit = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.txtDBName);
|
||||
this.groupBox1.Controls.Add(this.txtServerName);
|
||||
this.groupBox1.Controls.Add(this.labelControl2);
|
||||
this.groupBox1.Controls.Add(this.labelControl1);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 13);
|
||||
this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.groupBox1.Size = new System.Drawing.Size(291, 93);
|
||||
this.groupBox1.TabIndex = 4;
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// txtDBName
|
||||
//
|
||||
this.txtDBName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtDBName.Location = new System.Drawing.Point(89, 55);
|
||||
this.txtDBName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtDBName.MaxLength = 50;
|
||||
this.txtDBName.Name = "txtDBName";
|
||||
this.txtDBName.Size = new System.Drawing.Size(185, 26);
|
||||
this.txtDBName.TabIndex = 7;
|
||||
//
|
||||
// txtServerName
|
||||
//
|
||||
this.txtServerName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtServerName.Location = new System.Drawing.Point(89, 19);
|
||||
this.txtServerName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtServerName.MaxLength = 50;
|
||||
this.txtServerName.Name = "txtServerName";
|
||||
this.txtServerName.Size = new System.Drawing.Size(185, 26);
|
||||
this.txtServerName.TabIndex = 6;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Location = new System.Drawing.Point(14, 60);
|
||||
this.labelControl2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(75, 18);
|
||||
this.labelControl2.TabIndex = 5;
|
||||
this.labelControl2.Text = "数据库名称";
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Location = new System.Drawing.Point(14, 24);
|
||||
this.labelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(75, 18);
|
||||
this.labelControl1.TabIndex = 4;
|
||||
this.labelControl1.Text = "数据库地址";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(8, 26);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(0, 18);
|
||||
this.label1.TabIndex = 0;
|
||||
//
|
||||
// btnConnect
|
||||
//
|
||||
this.btnConnect.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnConnect.Location = new System.Drawing.Point(26, 114);
|
||||
this.btnConnect.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.btnConnect.Name = "btnConnect";
|
||||
this.btnConnect.Size = new System.Drawing.Size(71, 30);
|
||||
this.btnConnect.TabIndex = 8;
|
||||
this.btnConnect.Text = "测试连接";
|
||||
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSave.Location = new System.Drawing.Point(124, 114);
|
||||
this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(71, 30);
|
||||
this.btnSave.TabIndex = 9;
|
||||
this.btnSave.Text = "保存配置";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// btnExit
|
||||
//
|
||||
this.btnExit.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExit.Location = new System.Drawing.Point(218, 114);
|
||||
this.btnExit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.btnExit.Name = "btnExit";
|
||||
this.btnExit.Size = new System.Drawing.Size(71, 30);
|
||||
this.btnExit.TabIndex = 10;
|
||||
this.btnExit.Text = "退出";
|
||||
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
||||
//
|
||||
// FrmConfig
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(318, 164);
|
||||
this.Controls.Add(this.btnExit);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.btnConnect);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmConfig";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "数据库连接配置";
|
||||
this.Load += new System.EventHandler(this.FrmConfig_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.SimpleButton btnConnect;
|
||||
private System.Windows.Forms.TextBox txtDBName;
|
||||
private System.Windows.Forms.TextBox txtServerName;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnExit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
/******************************
|
||||
* 说明:数据库配置界面
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-09
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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 DevExpress.XtraEditors;
|
||||
using Lskj.Core;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Main3.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using System.IO;
|
||||
using Lskj.Business;
|
||||
using Lskj.Control.Model;
|
||||
using System.Net;
|
||||
using DevExpress.Utils.OAuth.Provider;
|
||||
using Lskj.Util;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库配置界面
|
||||
/// </summary>
|
||||
public partial class FrmConfig : XtraForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 默认下载地址
|
||||
/// </summary>
|
||||
public string filePath = string.Empty;
|
||||
/// <summary>
|
||||
/// 返回地址值
|
||||
/// </summary>
|
||||
public string outText = string.Empty;
|
||||
|
||||
public FrmConfig()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void FrmConfig_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DBConfig.Instance.ReadConfig(true);
|
||||
this.txtServerName.Text = DBConfig.Instance.ServerName;
|
||||
this.txtDBName.Text = DBConfig.Instance.DataBase;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:测试数据库连接</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnConnect_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
ConnectServer();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:保存配置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
ConnectServer(true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:退出配置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:连接服务器</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="isSave">if set to <c>true</c> [is save].</param>
|
||||
private void ConnectServer(bool isSave = false)
|
||||
{
|
||||
string serverName = this.txtServerName.Text.Trim();
|
||||
string dbName = this.txtDBName.Text.Trim();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(serverName))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ServerNameIsNull);
|
||||
return;
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(dbName))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ServerDBIsNull);
|
||||
return;
|
||||
}
|
||||
DBConfig.Instance.ServerName = serverName;
|
||||
DBConfig.Instance.DataBase = dbName;
|
||||
|
||||
// 测试数据库连接
|
||||
try
|
||||
{
|
||||
if (DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
if (DelphiHelper.Delphi_Init(new StringBuilder(DBConfig.Instance.GetDelphiConnection())) == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnConnectServer + "[By Delphi]");
|
||||
return;
|
||||
}
|
||||
if (isSave)
|
||||
{
|
||||
DBConfig.Instance.WriteConfig();
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectSuccess);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
//IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "0");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,243 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmConfigLocal
|
||||
{
|
||||
/// <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(FrmConfigLocal));
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.txtPort = new System.Windows.Forms.TextBox();
|
||||
this.txtIP = new System.Windows.Forms.TextBox();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnConnect = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnExit = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.txtZTName = new System.Windows.Forms.TextBox();
|
||||
this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.txtZT = new DevExpress.XtraEditors.GridLookUpEdit();
|
||||
this.gridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtZT.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridLookUpEdit1View)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.txtZT);
|
||||
this.groupBox1.Controls.Add(this.txtZTName);
|
||||
this.groupBox1.Controls.Add(this.labelControl4);
|
||||
this.groupBox1.Controls.Add(this.labelControl3);
|
||||
this.groupBox1.Controls.Add(this.txtPort);
|
||||
this.groupBox1.Controls.Add(this.txtIP);
|
||||
this.groupBox1.Controls.Add(this.labelControl2);
|
||||
this.groupBox1.Controls.Add(this.labelControl1);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 13);
|
||||
this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.groupBox1.Size = new System.Drawing.Size(291, 159);
|
||||
this.groupBox1.TabIndex = 4;
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// txtPort
|
||||
//
|
||||
this.txtPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtPort.Location = new System.Drawing.Point(66, 89);
|
||||
this.txtPort.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtPort.MaxLength = 50;
|
||||
this.txtPort.Name = "txtPort";
|
||||
this.txtPort.Size = new System.Drawing.Size(210, 26);
|
||||
this.txtPort.TabIndex = 7;
|
||||
//
|
||||
// txtIP
|
||||
//
|
||||
this.txtIP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtIP.Location = new System.Drawing.Point(66, 53);
|
||||
this.txtIP.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtIP.MaxLength = 50;
|
||||
this.txtIP.Name = "txtIP";
|
||||
this.txtIP.Size = new System.Drawing.Size(210, 26);
|
||||
this.txtIP.TabIndex = 6;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Location = new System.Drawing.Point(16, 94);
|
||||
this.labelControl2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(45, 18);
|
||||
this.labelControl2.TabIndex = 5;
|
||||
this.labelControl2.Text = "端口号";
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Location = new System.Drawing.Point(16, 58);
|
||||
this.labelControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(44, 18);
|
||||
this.labelControl1.TabIndex = 4;
|
||||
this.labelControl1.Text = "IP地址";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(8, 26);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(0, 18);
|
||||
this.label1.TabIndex = 0;
|
||||
//
|
||||
// btnConnect
|
||||
//
|
||||
this.btnConnect.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnConnect.Location = new System.Drawing.Point(28, 180);
|
||||
this.btnConnect.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.btnConnect.Name = "btnConnect";
|
||||
this.btnConnect.Size = new System.Drawing.Size(71, 30);
|
||||
this.btnConnect.TabIndex = 8;
|
||||
this.btnConnect.Text = "测试连接";
|
||||
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSave.Location = new System.Drawing.Point(126, 180);
|
||||
this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(71, 30);
|
||||
this.btnSave.TabIndex = 9;
|
||||
this.btnSave.Text = "保存配置";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// btnExit
|
||||
//
|
||||
this.btnExit.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExit.Location = new System.Drawing.Point(220, 180);
|
||||
this.btnExit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.btnExit.Name = "btnExit";
|
||||
this.btnExit.Size = new System.Drawing.Size(71, 30);
|
||||
this.btnExit.TabIndex = 10;
|
||||
this.btnExit.Text = "退出";
|
||||
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
||||
//
|
||||
// labelControl3
|
||||
//
|
||||
this.labelControl3.Location = new System.Drawing.Point(16, 23);
|
||||
this.labelControl3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl3.Name = "labelControl3";
|
||||
this.labelControl3.Size = new System.Drawing.Size(30, 18);
|
||||
this.labelControl3.TabIndex = 8;
|
||||
this.labelControl3.Text = "账套";
|
||||
//
|
||||
// txtZTName
|
||||
//
|
||||
this.txtZTName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtZTName.Location = new System.Drawing.Point(66, 123);
|
||||
this.txtZTName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtZTName.MaxLength = 50;
|
||||
this.txtZTName.Name = "txtZTName";
|
||||
this.txtZTName.Size = new System.Drawing.Size(210, 26);
|
||||
this.txtZTName.TabIndex = 11;
|
||||
//
|
||||
// labelControl4
|
||||
//
|
||||
this.labelControl4.Location = new System.Drawing.Point(16, 128);
|
||||
this.labelControl4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.labelControl4.Name = "labelControl4";
|
||||
this.labelControl4.Size = new System.Drawing.Size(45, 18);
|
||||
this.labelControl4.TabIndex = 10;
|
||||
this.labelControl4.Text = "账套名";
|
||||
//
|
||||
// txtZT
|
||||
//
|
||||
this.txtZT.EditValue = "";
|
||||
this.txtZT.Location = new System.Drawing.Point(66, 20);
|
||||
this.txtZT.Name = "txtZT";
|
||||
this.txtZT.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 9.5F);
|
||||
this.txtZT.Properties.Appearance.Options.UseFont = true;
|
||||
this.txtZT.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.txtZT.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.txtZT.Properties.View = this.gridLookUpEdit1View;
|
||||
this.txtZT.Size = new System.Drawing.Size(210, 26);
|
||||
this.txtZT.TabIndex = 12;
|
||||
//
|
||||
// gridLookUpEdit1View
|
||||
//
|
||||
this.gridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
||||
this.gridLookUpEdit1View.Name = "gridLookUpEdit1View";
|
||||
this.gridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
|
||||
this.gridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
|
||||
//
|
||||
// FrmConfigLocal
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(318, 223);
|
||||
this.Controls.Add(this.btnExit);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.btnConnect);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmConfigLocal";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "服务器直连配置";
|
||||
this.Load += new System.EventHandler(this.FrmConfig_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtZT.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridLookUpEdit1View)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.SimpleButton btnConnect;
|
||||
private System.Windows.Forms.TextBox txtPort;
|
||||
private System.Windows.Forms.TextBox txtIP;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnExit;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl3;
|
||||
private System.Windows.Forms.TextBox txtZTName;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl4;
|
||||
private DevExpress.XtraEditors.GridLookUpEdit txtZT;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView gridLookUpEdit1View;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,274 @@
|
||||
using DevExpress.XtraEditors;
|
||||
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.Core;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Util;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
public partial class FrmConfigLocal : XtraForm
|
||||
{/// <summary>
|
||||
/// 默认下载地址
|
||||
/// </summary>
|
||||
public string filePath = string.Empty;
|
||||
/// <summary>
|
||||
/// 返回地址值
|
||||
/// </summary>
|
||||
public string outText = string.Empty;
|
||||
/// <summary>
|
||||
/// 账套数据
|
||||
/// </summary>
|
||||
public DataTable sourceTab = new DataTable();
|
||||
public FrmConfigLocal()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.txtIP.KeyUp += OnTxtEdit_KeyUp;
|
||||
this.txtPort.KeyUp += OnTxtEdit_KeyUp;
|
||||
this.txtZT.EditValueChanged += OnTxtZT_EditValueChanged;
|
||||
}
|
||||
|
||||
private void OnTxtZT_EditValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataRow focusRow = (this.txtZT.GetSelectedDataRow() as DataRowView).Row;
|
||||
this.txtIP.Text = (focusRow["dm"] + "").Split(':')[0];
|
||||
this.txtPort.Text = (focusRow["dm"] + "").Split(':')[1];
|
||||
this.txtZTName.Text = focusRow["mc"] + "";
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTxtEdit_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
string IPProt = string.Format("{0}:{1}", this.txtIP.Text, this.txtPort.Text);
|
||||
DataRow[] rows = sourceTab.Select(string.Format("dm='{0}'", IPProt));
|
||||
if (rows != null && rows.Count() > 0)
|
||||
{
|
||||
this.txtZT.EditValue = IPProt;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void FrmConfig_Load(object sender, EventArgs e)
|
||||
{
|
||||
sourceTab.Columns.Add("dm");
|
||||
sourceTab.Columns.Add("mc");
|
||||
try
|
||||
{
|
||||
Dictionary<string, string> sourceDic = IniHelper.GetSectionKeys("SystemResources.ini", "SystemResources");
|
||||
foreach (string key in sourceDic.Keys)
|
||||
{
|
||||
if (key.Contains("DownloadAESStr_"))
|
||||
{
|
||||
DataRow row = sourceTab.NewRow();
|
||||
string[] keyArgs = key.Split('_');
|
||||
if (keyArgs.Length == 2)
|
||||
{
|
||||
row["dm"] = keyArgs[1];//ip+port
|
||||
row["mc"] = sourceDic[key].Split('^')[0];//账套名
|
||||
sourceTab.Rows.Add(row);
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
}
|
||||
this.txtZT.Properties.View.Columns.AddVisible("dm", "地址");
|
||||
this.txtZT.Properties.View.Columns.AddVisible("mc", "账套名称");
|
||||
this.txtZT.Properties.DataSource = sourceTab; //数据源
|
||||
this.txtZT.Properties.ValueMember = "dm";
|
||||
this.txtZT.Properties.DisplayMember = "mc";
|
||||
this.txtZT.Properties.View.BestFitColumns();
|
||||
this.txtZT.Properties.View.Columns["dm"].Visible = false;
|
||||
|
||||
this.txtZT.EditValue = string.Format("{0}:{1}", IniHelper.Read("SystemResources.ini", "LocalLastIP"), IniHelper.Read("SystemResources.ini", "LocalLastPort"));
|
||||
//this.txtIP.Text = IniHelper.Read("SystemResources.ini", "LocalLastIP");
|
||||
//this.txtPort.Text = IniHelper.Read("SystemResources.ini", "LocalLastPort");
|
||||
//this.txtZTName.Text = IniHelper.Read("SystemResources.ini", "LocalLastPortName");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:测试数据库连接</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnConnect_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
ConnectServer();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:保存配置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
ConnectServer(true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:退出配置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:连接服务器</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="isSave">if set to <c>true</c> [is save].</param>
|
||||
private void ConnectServer(bool isSave = false)
|
||||
{
|
||||
string serverName = DBConfig.Instance.ServerName;
|
||||
string dbName = DBConfig.Instance.DataBase;
|
||||
// 测试数据库连接
|
||||
try
|
||||
{
|
||||
string ip = this.txtIP.Text;
|
||||
string defaultPort = ":" + this.txtPort.Text;
|
||||
//服务器下载
|
||||
string newServerName = !serverName.StartsWith("http") ? "http://" + ip + defaultPort : ip + defaultPort;
|
||||
newServerName = !newServerName.EndsWith("/") ? newServerName + "/" : newServerName;
|
||||
string newfilePath = Path.Combine(newServerName, "SystemResources.txt");
|
||||
//string name = WebRequest.Create(filePath).GetResponse().GetResponseStream().ToString();
|
||||
string fileName = "SystemResources.txt";//客户端保存的文件名
|
||||
WebClient webClient = new WebClient();
|
||||
webClient.Encoding = Encoding.UTF8;
|
||||
//这里使用DownloadString方法,如果是不需要对文件的文本内容做处理,直接保存,那么可以直接使用功能DownloadFile(url,savepath)直接进行文件保存。
|
||||
string newoutText = newfilePath != filePath ? webClient.DownloadString(newfilePath) : outText;
|
||||
outText = newoutText.Trim();
|
||||
filePath = newfilePath;
|
||||
//File.WriteAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SystemResources.txt"), outText);
|
||||
string args = AESUtil.Decrypt(outText);
|
||||
string[] controlAfgs = args.Split('^');
|
||||
if (controlAfgs != null && controlAfgs.Length == 5)
|
||||
{
|
||||
DBConfig.Instance.ServerName = controlAfgs[0];
|
||||
DBConfig.Instance.DataBase = controlAfgs[1];
|
||||
string Connection = "Server={0};Database={1};Persist Security Info=True;User ID=" + controlAfgs[2] + ";Password=" + controlAfgs[3] + ";Connection Timeout=5;MultipleActiveResultSets=true";
|
||||
string dephistr = "Provider=SQLOLEDB.1;Server={0};Database={1};Persist Security Info=True;User ID=" + controlAfgs[2] + ";Password=" + controlAfgs[3] + ";Connection Timeout=5";
|
||||
Connection = AESUtil.Encrypt(Connection);
|
||||
dephistr = AESUtil.Encrypt(dephistr);
|
||||
DBConfig.Instance.dephiConnection = dephistr;
|
||||
DBConfig.Instance.Connection = Connection;
|
||||
if (DBConfig.Instance.CreateConnection(Connection))
|
||||
{
|
||||
if (isSave)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtZTName.Text))
|
||||
{
|
||||
string IPPort = string.Format("{0}:{1}", this.txtIP.Text, this.txtPort.Text);
|
||||
string writeText = string.Format("{0}^{1}", this.txtZTName.Text, outText);
|
||||
IniHelper.Write("SystemResources.ini", string.Format("DownloadAESStr_{0}", IPPort), writeText);
|
||||
IniHelper.Write("SystemResources.ini", "LocalLastIP", this.txtIP.Text);
|
||||
IniHelper.Write("SystemResources.ini", "LocalLastPort", this.txtPort.Text);
|
||||
IniHelper.Write("SystemResources.ini", "LocalLastPortName", this.txtZTName.Text);
|
||||
DBConfig.Instance.WriteConfig("LocalLastIP", this.txtIP.Text);
|
||||
DBConfig.Instance.WriteConfig("LocalLastPort", this.txtPort.Text);
|
||||
DBConfig.Instance.WriteConfig("LocalLastPortName", this.txtZTName.Text);
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show("请设置账套名!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectSuccess);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
//IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "1");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmConfigSet
|
||||
{
|
||||
/// <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(FrmConfigSet));
|
||||
this.frmConfigBtn = new System.Windows.Forms.RadioButton();
|
||||
this.frmConfigLocalBtn = new System.Windows.Forms.RadioButton();
|
||||
this.btnSettings = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnChange = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// frmConfigBtn
|
||||
//
|
||||
this.frmConfigBtn.AutoSize = true;
|
||||
this.frmConfigBtn.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.frmConfigBtn.ForeColor = System.Drawing.Color.Blue;
|
||||
this.frmConfigBtn.Location = new System.Drawing.Point(22, 36);
|
||||
this.frmConfigBtn.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.frmConfigBtn.Name = "frmConfigBtn";
|
||||
this.frmConfigBtn.Size = new System.Drawing.Size(130, 23);
|
||||
this.frmConfigBtn.TabIndex = 0;
|
||||
this.frmConfigBtn.TabStop = true;
|
||||
this.frmConfigBtn.Text = "数据库连接";
|
||||
this.frmConfigBtn.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// frmConfigLocalBtn
|
||||
//
|
||||
this.frmConfigLocalBtn.AutoSize = true;
|
||||
this.frmConfigLocalBtn.Font = new System.Drawing.Font("宋体", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.frmConfigLocalBtn.ForeColor = System.Drawing.Color.Blue;
|
||||
this.frmConfigLocalBtn.Location = new System.Drawing.Point(22, 88);
|
||||
this.frmConfigLocalBtn.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.frmConfigLocalBtn.Name = "frmConfigLocalBtn";
|
||||
this.frmConfigLocalBtn.Size = new System.Drawing.Size(130, 23);
|
||||
this.frmConfigLocalBtn.TabIndex = 1;
|
||||
this.frmConfigLocalBtn.TabStop = true;
|
||||
this.frmConfigLocalBtn.Text = "服务器直连";
|
||||
this.frmConfigLocalBtn.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnSettings
|
||||
//
|
||||
this.btnSettings.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSettings.Location = new System.Drawing.Point(184, 28);
|
||||
this.btnSettings.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
|
||||
this.btnSettings.Name = "btnSettings";
|
||||
this.btnSettings.Size = new System.Drawing.Size(54, 42);
|
||||
this.btnSettings.TabIndex = 9;
|
||||
this.btnSettings.Text = "设置";
|
||||
//
|
||||
// btnChange
|
||||
//
|
||||
this.btnChange.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnChange.Location = new System.Drawing.Point(184, 79);
|
||||
this.btnChange.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
|
||||
this.btnChange.Name = "btnChange";
|
||||
this.btnChange.Size = new System.Drawing.Size(54, 42);
|
||||
this.btnChange.TabIndex = 10;
|
||||
this.btnChange.Text = "保存";
|
||||
//
|
||||
// FrmConfigSet
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(261, 150);
|
||||
this.Controls.Add(this.btnChange);
|
||||
this.Controls.Add(this.btnSettings);
|
||||
this.Controls.Add(this.frmConfigLocalBtn);
|
||||
this.Controls.Add(this.frmConfigBtn);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.Name = "FrmConfigSet";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "连接模式设置";
|
||||
this.Load += new System.EventHandler(this.FrmConfigSet_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.RadioButton frmConfigBtn;
|
||||
private System.Windows.Forms.RadioButton frmConfigLocalBtn;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSettings;
|
||||
private DevExpress.XtraEditors.SimpleButton btnChange;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Control;
|
||||
using Lskj.Core;
|
||||
using Lskj.Data;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
public partial class FrmConfigSet : XtraForm
|
||||
{
|
||||
public FrmConfigSet()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void FrmConfigSet_Load(object sender, EventArgs e)
|
||||
{
|
||||
string file = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SystemResources.ini");
|
||||
if (!File.Exists(file))
|
||||
{
|
||||
FileStream fileStream = new FileStream(file, FileMode.CreateNew);
|
||||
fileStream.Close();
|
||||
this.frmConfigBtn.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
string configFlag = IniHelper.Read("SystemResources.ini", "FrmConfigFlag");
|
||||
if (configFlag.Equals("1"))
|
||||
this.frmConfigLocalBtn.Checked = true;
|
||||
else
|
||||
this.frmConfigBtn.Checked = true;
|
||||
}
|
||||
this.btnSettings.Click += new EventHandler(OnBtnSettings_Click);
|
||||
this.btnChange.Click += new EventHandler(OnBtnChange_Click);
|
||||
}
|
||||
|
||||
private void OnBtnChange_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.frmConfigLocalBtn.Checked)
|
||||
{
|
||||
try
|
||||
{
|
||||
string file = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SystemResources.ini");
|
||||
if (File.Exists(file))
|
||||
{
|
||||
string lastIPPort = string.Format("{0}:{1}", IniHelper.Read("SystemResources.ini", "LocalLastIP"), IniHelper.Read("SystemResources.ini", "LocalLastPort"));
|
||||
string downloadAESStrKey = string.Format("DownloadAESStr_{0}", lastIPPort);
|
||||
string[] downloadAESStrValue = IniHelper.Read("SystemResources.ini", downloadAESStrKey).Split('^');
|
||||
string downloadAESStr = downloadAESStrValue.Length == 2 ? downloadAESStrValue[1] : "";
|
||||
if (!string.IsNullOrEmpty(downloadAESStr))
|
||||
{
|
||||
string args = AESUtil.Decrypt(downloadAESStr);
|
||||
string[] controlAfgs = args.Split('^');
|
||||
if (controlAfgs != null && controlAfgs.Length == 5)
|
||||
{
|
||||
DBConfig.Instance.ServerName = controlAfgs[0];
|
||||
DBConfig.Instance.DataBase = controlAfgs[1];
|
||||
string Connection = "Server={0};Database={1};Persist Security Info=True;User ID=" + controlAfgs[2] + ";Password=" + controlAfgs[3] + ";Connection Timeout=5;MultipleActiveResultSets=true";
|
||||
string dephistr = "Provider=SQLOLEDB.1;Server={0};Database={1};Persist Security Info=True;User ID=" + controlAfgs[2] + ";Password=" + controlAfgs[3] + ";Connection Timeout=5";
|
||||
Connection = AESUtil.Encrypt(Connection);
|
||||
dephistr = AESUtil.Encrypt(dephistr);
|
||||
DBConfig.Instance.dephiConnection = dephistr;
|
||||
if (DBConfig.Instance.CreateConnection(Connection))
|
||||
{
|
||||
DBConfig.Instance.Connection = Connection;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "1");
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show("未检测到配置数据,切换失败!\r\n请进行手动设置!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show("配置文件不存在,请手动设置!");
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
}
|
||||
else if (this.frmConfigBtn.Checked)
|
||||
{
|
||||
DBConfig.Instance.ReadConfig(true);
|
||||
string serverName = DBConfig.Instance.ServerName;
|
||||
string dbName = DBConfig.Instance.DataBase;
|
||||
if (string.IsNullOrWhiteSpace(serverName))
|
||||
{
|
||||
MessageUtil.Show("数据库地址为空,切换失败");
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(dbName))
|
||||
{
|
||||
MessageUtil.Show("数据库名称为空,切换失败");
|
||||
return;
|
||||
}
|
||||
DBConfig.Instance.ServerName = serverName;
|
||||
DBConfig.Instance.DataBase = dbName;
|
||||
try
|
||||
{
|
||||
if (DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
if (DelphiHelper.Delphi_Init(new StringBuilder(DBConfig.Instance.GetDelphiConnection())) == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnConnectServer + "[By Delphi]");
|
||||
return;
|
||||
}
|
||||
DBConfig.Instance.WriteConfig();
|
||||
this.DialogResult = DialogResult.OK;
|
||||
IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "0");
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ConnectFault);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void OnBtnSettings_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult dialogResult;
|
||||
if (this.frmConfigBtn.Checked)
|
||||
{
|
||||
this.Hide();
|
||||
FrmConfig frmConfig = new FrmConfig();
|
||||
dialogResult = frmConfig.ShowDialog();
|
||||
if (dialogResult == DialogResult.OK)
|
||||
{
|
||||
IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "0");
|
||||
}
|
||||
this.Show();
|
||||
}
|
||||
else if (this.frmConfigLocalBtn.Checked)
|
||||
{
|
||||
this.Hide();
|
||||
FrmConfigLocal frmConfigLocal = new FrmConfigLocal();
|
||||
dialogResult = frmConfigLocal.ShowDialog();
|
||||
if (dialogResult == DialogResult.OK)
|
||||
{
|
||||
IniHelper.Write("SystemResources.ini", "FrmConfigFlag", "1");
|
||||
}
|
||||
this.Show();
|
||||
}
|
||||
else
|
||||
{
|
||||
dialogResult = DialogResult.Cancel;
|
||||
}
|
||||
if (dialogResult == DialogResult.OK)
|
||||
{
|
||||
this.DialogResult = dialogResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmLogin
|
||||
{
|
||||
/// <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(FrmLogin));
|
||||
this.lblCopyright = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.btnSetConfig = new System.Windows.Forms.Label();
|
||||
this.chkUpdate = new DevExpress.XtraEditors.CheckEdit();
|
||||
this.chkClient = new DevExpress.XtraEditors.CheckEdit();
|
||||
this.chkLogin = new DevExpress.XtraEditors.CheckEdit();
|
||||
this.txtPassword = new DevExpress.XtraEditors.TextEdit();
|
||||
this.btnColse = new System.Windows.Forms.Button();
|
||||
this.cbLedger = new DevExpress.XtraEditors.ComboBoxEdit();
|
||||
this.autoGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||
this.chkNotice = new DevExpress.XtraEditors.CheckEdit();
|
||||
this.plTop = new System.Windows.Forms.Panel();
|
||||
this.btnLogin = new System.Windows.Forms.PictureBox();
|
||||
this.chkRemPwd = new DevExpress.XtraEditors.CheckEdit();
|
||||
this.lueUserName = new Lskj.Control.AutoGridLookUp();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkUpdate.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkClient.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkLogin.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbLedger.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.autoGridLookUpEdit1View)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkNotice.Properties)).BeginInit();
|
||||
this.plTop.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.btnLogin)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkRemPwd.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblCopyright
|
||||
//
|
||||
this.lblCopyright.AutoSize = true;
|
||||
this.lblCopyright.BackColor = System.Drawing.Color.White;
|
||||
this.lblCopyright.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.lblCopyright.ForeColor = System.Drawing.Color.Black;
|
||||
this.lblCopyright.Location = new System.Drawing.Point(403, 425);
|
||||
this.lblCopyright.Name = "lblCopyright";
|
||||
this.lblCopyright.Size = new System.Drawing.Size(253, 17);
|
||||
this.lblCopyright.TabIndex = 34;
|
||||
this.lblCopyright.Text = "版权所有:成都朗速科技有限公司 版本:V7.0";
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.BackgroundImage = global::Lskj.Main3.Properties.Resources.setting;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(305, 425);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(16, 16);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox1.TabIndex = 32;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// btnSetConfig
|
||||
//
|
||||
this.btnSetConfig.AutoSize = true;
|
||||
this.btnSetConfig.BackColor = System.Drawing.Color.White;
|
||||
this.btnSetConfig.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSetConfig.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.btnSetConfig.ForeColor = System.Drawing.Color.Blue;
|
||||
this.btnSetConfig.Location = new System.Drawing.Point(321, 425);
|
||||
this.btnSetConfig.Name = "btnSetConfig";
|
||||
this.btnSetConfig.Size = new System.Drawing.Size(68, 17);
|
||||
this.btnSetConfig.TabIndex = 30;
|
||||
this.btnSetConfig.Text = "设置服务器";
|
||||
this.btnSetConfig.Click += new System.EventHandler(this.OnSetConfigClick);
|
||||
//
|
||||
// chkUpdate
|
||||
//
|
||||
this.chkUpdate.Location = new System.Drawing.Point(26, 423);
|
||||
this.chkUpdate.Name = "chkUpdate";
|
||||
this.chkUpdate.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.chkUpdate.Properties.Appearance.Options.UseFont = true;
|
||||
this.chkUpdate.Properties.Caption = "自动升级";
|
||||
this.chkUpdate.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkUpdate.TabIndex = 36;
|
||||
//
|
||||
// chkClient
|
||||
//
|
||||
this.chkClient.Location = new System.Drawing.Point(112, 423);
|
||||
this.chkClient.Name = "chkClient";
|
||||
this.chkClient.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.chkClient.Properties.Appearance.Options.UseFont = true;
|
||||
this.chkClient.Properties.Caption = "智能客户端";
|
||||
this.chkClient.Size = new System.Drawing.Size(87, 21);
|
||||
this.chkClient.TabIndex = 37;
|
||||
//
|
||||
// chkLogin
|
||||
//
|
||||
this.chkLogin.Location = new System.Drawing.Point(431, 295);
|
||||
this.chkLogin.Name = "chkLogin";
|
||||
this.chkLogin.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.chkLogin.Properties.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(85)))), ((int)(((byte)(85)))), ((int)(((byte)(85)))));
|
||||
this.chkLogin.Properties.Appearance.Options.UseFont = true;
|
||||
this.chkLogin.Properties.Appearance.Options.UseForeColor = true;
|
||||
this.chkLogin.Properties.Caption = "强制登录";
|
||||
this.chkLogin.Size = new System.Drawing.Size(85, 24);
|
||||
this.chkLogin.TabIndex = 38;
|
||||
//
|
||||
// txtPassword
|
||||
//
|
||||
this.txtPassword.EditValue = "";
|
||||
this.txtPassword.Location = new System.Drawing.Point(431, 251);
|
||||
this.txtPassword.Name = "txtPassword";
|
||||
this.txtPassword.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 11F);
|
||||
this.txtPassword.Properties.Appearance.Options.UseFont = true;
|
||||
this.txtPassword.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.txtPassword.Properties.NullValuePrompt = "请输入密码";
|
||||
this.txtPassword.Properties.NullValuePromptShowForEmptyValue = true;
|
||||
this.txtPassword.Properties.PasswordChar = '*';
|
||||
this.txtPassword.Size = new System.Drawing.Size(174, 24);
|
||||
this.txtPassword.TabIndex = 0;
|
||||
this.txtPassword.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnPasswordKeyDown);
|
||||
//
|
||||
// btnColse
|
||||
//
|
||||
this.btnColse.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnColse.BackgroundImage = global::Lskj.Main3.Properties.Resources.login_close_default;
|
||||
this.btnColse.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||||
this.btnColse.FlatAppearance.BorderSize = 0;
|
||||
this.btnColse.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnColse.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnColse.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnColse.Location = new System.Drawing.Point(626, 12);
|
||||
this.btnColse.Name = "btnColse";
|
||||
this.btnColse.Size = new System.Drawing.Size(30, 30);
|
||||
this.btnColse.TabIndex = 46;
|
||||
this.btnColse.UseVisualStyleBackColor = false;
|
||||
this.btnColse.Click += new System.EventHandler(this.OnColseClick);
|
||||
//
|
||||
// cbLedger
|
||||
//
|
||||
this.cbLedger.Location = new System.Drawing.Point(431, 153);
|
||||
this.cbLedger.Name = "cbLedger";
|
||||
this.cbLedger.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.cbLedger.Properties.Appearance.Options.UseFont = true;
|
||||
this.cbLedger.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.cbLedger.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.cbLedger.Properties.NullValuePrompt = "请选择账薄";
|
||||
this.cbLedger.Properties.ShowNullValuePromptWhenFocused = true;
|
||||
this.cbLedger.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
|
||||
this.cbLedger.Properties.Closed += new DevExpress.XtraEditors.Controls.ClosedEventHandler(this.OnLedgerClosed);
|
||||
this.cbLedger.Size = new System.Drawing.Size(174, 24);
|
||||
this.cbLedger.TabIndex = 47;
|
||||
//
|
||||
// autoGridLookUpEdit1View
|
||||
//
|
||||
this.autoGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
|
||||
this.autoGridLookUpEdit1View.Name = "autoGridLookUpEdit1View";
|
||||
this.autoGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
|
||||
this.autoGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
|
||||
//
|
||||
// chkNotice
|
||||
//
|
||||
this.chkNotice.Location = new System.Drawing.Point(214, 423);
|
||||
this.chkNotice.Name = "chkNotice";
|
||||
this.chkNotice.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.chkNotice.Properties.Appearance.Options.UseFont = true;
|
||||
this.chkNotice.Properties.Caption = "消息通知";
|
||||
this.chkNotice.Size = new System.Drawing.Size(70, 21);
|
||||
this.chkNotice.TabIndex = 50;
|
||||
//
|
||||
// plTop
|
||||
//
|
||||
this.plTop.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plTop.Controls.Add(this.btnColse);
|
||||
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.plTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTop.Name = "plTop";
|
||||
this.plTop.Size = new System.Drawing.Size(664, 65);
|
||||
this.plTop.TabIndex = 48;
|
||||
this.plTop.MouseDown += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseDown);
|
||||
this.plTop.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
this.plTop.MouseUp += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseUp);
|
||||
//
|
||||
// btnLogin
|
||||
//
|
||||
this.btnLogin.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnLogin.BackgroundImage = global::Lskj.Main3.Properties.Resources.login_btn;
|
||||
this.btnLogin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnLogin.Location = new System.Drawing.Point(431, 326);
|
||||
this.btnLogin.Name = "btnLogin";
|
||||
this.btnLogin.Size = new System.Drawing.Size(174, 38);
|
||||
this.btnLogin.TabIndex = 42;
|
||||
this.btnLogin.TabStop = false;
|
||||
this.btnLogin.Click += new System.EventHandler(this.OnLoginClick);
|
||||
this.btnLogin.MouseLeave += new System.EventHandler(this.OnLoginMouseLeave);
|
||||
this.btnLogin.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnLoginMouseMove);
|
||||
//
|
||||
// chkRemPwd
|
||||
//
|
||||
this.chkRemPwd.Location = new System.Drawing.Point(522, 295);
|
||||
this.chkRemPwd.Name = "chkRemPwd";
|
||||
this.chkRemPwd.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.chkRemPwd.Properties.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(85)))), ((int)(((byte)(85)))), ((int)(((byte)(85)))));
|
||||
this.chkRemPwd.Properties.Appearance.Options.UseFont = true;
|
||||
this.chkRemPwd.Properties.Appearance.Options.UseForeColor = true;
|
||||
this.chkRemPwd.Properties.Caption = "记住密码";
|
||||
this.chkRemPwd.Size = new System.Drawing.Size(85, 24);
|
||||
this.chkRemPwd.TabIndex = 38;
|
||||
//
|
||||
// lueUserName
|
||||
//
|
||||
this.lueUserName.DataSource = null;
|
||||
this.lueUserName.EditValue = "";
|
||||
this.lueUserName.Location = new System.Drawing.Point(431, 204);
|
||||
this.lueUserName.Name = "lueUserName";
|
||||
this.lueUserName.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 11F);
|
||||
this.lueUserName.Properties.Appearance.Options.UseFont = true;
|
||||
this.lueUserName.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.lueUserName.Properties.NullValuePrompt = "请输入账号";
|
||||
this.lueUserName.Properties.NullValuePromptShowForEmptyValue = true;
|
||||
this.lueUserName.Size = new System.Drawing.Size(174, 24);
|
||||
this.lueUserName.TabIndex = 49;
|
||||
this.lueUserName.EditValueChanged += new System.EventHandler(this.OnEditValueChanged);
|
||||
//
|
||||
// FrmLogin
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackgroundImage = global::Lskj.Main3.Properties.Resources.newlogin;
|
||||
this.ClientSize = new System.Drawing.Size(664, 451);
|
||||
this.Controls.Add(this.chkNotice);
|
||||
this.Controls.Add(this.lueUserName);
|
||||
this.Controls.Add(this.cbLedger);
|
||||
this.Controls.Add(this.txtPassword);
|
||||
this.Controls.Add(this.btnLogin);
|
||||
this.Controls.Add(this.chkRemPwd);
|
||||
this.Controls.Add(this.chkLogin);
|
||||
this.Controls.Add(this.chkClient);
|
||||
this.Controls.Add(this.chkUpdate);
|
||||
this.Controls.Add(this.lblCopyright);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.btnSetConfig);
|
||||
this.Controls.Add(this.plTop);
|
||||
this.DoubleBuffered = true;
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmLogin";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "用户登陆";
|
||||
this.Load += new System.EventHandler(this.OnLoginLoad);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkUpdate.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkClient.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkLogin.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbLedger.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.autoGridLookUpEdit1View)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkNotice.Properties)).EndInit();
|
||||
this.plTop.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.btnLogin)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkRemPwd.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lblCopyright;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Label btnSetConfig;
|
||||
private DevExpress.XtraEditors.CheckEdit chkUpdate;
|
||||
private DevExpress.XtraEditors.CheckEdit chkClient;
|
||||
private DevExpress.XtraEditors.CheckEdit chkLogin;
|
||||
private DevExpress.XtraEditors.TextEdit txtPassword;
|
||||
private System.Windows.Forms.Button btnColse;
|
||||
private DevExpress.XtraEditors.ComboBoxEdit cbLedger;
|
||||
private Lskj.Control.AutoGridLookUp lueUserName;
|
||||
private DevExpress.XtraGrid.Views.Grid.GridView autoGridLookUpEdit1View;
|
||||
private DevExpress.XtraEditors.CheckEdit chkNotice;
|
||||
private System.Windows.Forms.Panel plTop;
|
||||
private System.Windows.Forms.PictureBox btnLogin;
|
||||
private DevExpress.XtraEditors.CheckEdit chkRemPwd;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
|
||||
this.TheMemoryTest = new System.Windows.Forms.Timer(this.components);
|
||||
this.mainPanelControlEx = new Lskj.Main3.Control.MainPanelControlEx();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// TheMemoryTest
|
||||
//
|
||||
this.TheMemoryTest.Interval = 10000;
|
||||
this.TheMemoryTest.Tick += new System.EventHandler(this.ContentDetection);
|
||||
//
|
||||
// mainPanelControlEx
|
||||
//
|
||||
this.mainPanelControlEx.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.mainPanelControlEx.Location = new System.Drawing.Point(0, 0);
|
||||
this.mainPanelControlEx.Name = "mainPanelControlEx";
|
||||
this.mainPanelControlEx.Size = new System.Drawing.Size(1275, 696);
|
||||
this.mainPanelControlEx.TabIndex = 0;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1275, 696);
|
||||
this.Controls.Add(this.mainPanelControlEx);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "FrmMain";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "用户登录";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.Load += new System.EventHandler(this.FrmMain_Load);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnClickKeyboard);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public Control.MainPanelControlEx mainPanelControlEx;
|
||||
private System.Windows.Forms.Timer TheMemoryTest;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,479 @@
|
||||
/******************************
|
||||
* 说明:主界面
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-04-25
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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.Main3.Model;
|
||||
using Lskj.Main3.Properties;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Model;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Business;
|
||||
using Lskj.Util;
|
||||
using Lskj.Main3.Control;
|
||||
using Lskj.Business.Impl;
|
||||
using DevExpress.XtraTab;
|
||||
using DevExpress.XtraEditors.Controls;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 主界面
|
||||
/// </summary>
|
||||
public partial class FrmMain : Form
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 屏幕dpix、dpiy
|
||||
/// </summary>
|
||||
private float _dpiX, _dpiY;
|
||||
/// <summary>
|
||||
/// 是否鼠标按下
|
||||
/// </summary>
|
||||
private bool _isMouseDown;
|
||||
/// <summary>
|
||||
/// 记录窗口位置
|
||||
/// </summary>
|
||||
private Point _mousePostion;
|
||||
public FrmMain()
|
||||
{
|
||||
Graphics graphics = this.CreateGraphics();
|
||||
_dpiX = graphics.DpiX;
|
||||
_dpiY = graphics.DpiY;
|
||||
InitializeComponent();
|
||||
this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
|
||||
|
||||
}
|
||||
#region 内存回收
|
||||
[DllImport("kernel32.dll", EntryPoint = "SetProcessWorkingSetSize")]
|
||||
public static extern int SetProcessWorkingSetSize(IntPtr process, int minSize, int maxSize);
|
||||
/// <summary>
|
||||
/// <para>说明:释放内存</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-09-29 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public static void ClearMemory()
|
||||
{
|
||||
GC.Collect();
|
||||
GC.WaitForPendingFinalizers();
|
||||
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||
{
|
||||
//FrmMian为我窗体的类名
|
||||
FrmMain.SetProcessWorkingSetSize(System.Diagnostics.Process.GetCurrentProcess().Handle, -1, -1);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-25 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void FrmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
//FrmAutoSqlLoad frm = new FrmAutoSqlLoad();
|
||||
//frm.ShowDialog();
|
||||
this.KeyPreview = true;//主窗体允许使用事件
|
||||
this.mainPanelControlEx.DpiX = _dpiX;
|
||||
this.mainPanelControlEx.DpiY = _dpiY;
|
||||
this.mainPanelControlEx.OnLoad();
|
||||
this.mainPanelControlEx.OnCloseButtonCallBack += new EventHandler(OnCloseButtonCallBack);
|
||||
this.mainPanelControlEx.OnMaxButtonCallBack += new EventHandler(OnTopPanelMouseDoubleClickCallBack);
|
||||
this.mainPanelControlEx.OnMinButtonCallBack += new EventHandler(OnMinButtonCallBack);
|
||||
this.mainPanelControlEx.OnTopMouseDownCallback += new MouseEventHandler(OnTopMouseDownCallback);
|
||||
this.mainPanelControlEx.OnTopMouseMoveCallBack += new MouseEventHandler(OnTopMouseMoveCallBack);
|
||||
this.mainPanelControlEx.OnTopMouseUpCallBack += new MouseEventHandler(OnTopMouseUpCallBack);
|
||||
this.mainPanelControlEx.OnTopPanelMouseDoubleClickCallBack += new EventHandler(OnTopPanelMouseDoubleClickCallBack);
|
||||
if (SystemInfo.Instance.DetectionMemory)
|
||||
{
|
||||
this.TheMemoryTest.Start();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:通过分辨率界面重绘方法</para>
|
||||
/// <para>创建人:曹屹峰</para>
|
||||
/// <para>创建日期:2021-11-01 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnClickKeyboard(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.F3)
|
||||
{
|
||||
IntPtr hWnd = GetForegroundWindow(); //获取活动窗口句柄
|
||||
int calcID = 0; //进程ID pid
|
||||
int calcTD = 0; //线程ID
|
||||
calcTD = GetWindowThreadProcessId(hWnd, out calcID);
|
||||
Clipboard.SetData(DataFormats.Text, (Object)calcID);
|
||||
MessageUtil.Show("程序PID码:" + calcID+ "已复制到粘贴板上!");
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:通过分辨率界面重绘方法</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-08-23 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void AutoLoadSize(System.Windows.Forms.Control Control)
|
||||
{
|
||||
foreach (System.Windows.Forms.Control C in Control.Controls)
|
||||
{
|
||||
if (C.Controls.Count > 0)
|
||||
{
|
||||
AutoLoadSize(C);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:重置窗口大小</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-27 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void ResetFormState()
|
||||
{
|
||||
foreach (string item in Manager.ModuleForms.Keys)
|
||||
{
|
||||
DllModule module = Manager.ModuleForms[item];
|
||||
//(module.ModuleForm as Form).WindowState = FormWindowState.Maximized;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:关闭窗口</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnCloseButtonCallBack(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:窗口最大化</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void OnTopPanelMouseDoubleClickCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.WindowState = this.WindowState == FormWindowState.Normal ? FormWindowState.Maximized : FormWindowState.Normal;
|
||||
this.mainPanelControlEx.State = this.WindowState;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.ResetFormState();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:窗口最小化</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void OnMinButtonCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.WindowState = FormWindowState.Minimized;
|
||||
this.ResetFormState();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:关闭界面后清除之前打开的模块</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-21 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="FormClosingEventArgs"/> instance containing the event data.</param>
|
||||
private void OnFormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Manager.ModuleForms.Clear();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标放开</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void OnTopMouseDownCallback(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnMouseDown(e);
|
||||
_mousePostion = Cursor.Position;
|
||||
_isMouseDown = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标按下</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void OnTopMouseMoveCallBack(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnMouseMove(e);
|
||||
if (_isMouseDown)
|
||||
{
|
||||
Point tempPos = Cursor.Position;
|
||||
this.Location = new Point(Location.X + (tempPos.X - _mousePostion.X), Location.Y + (tempPos.Y - _mousePostion.Y));
|
||||
_mousePostion = Cursor.Position;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void OnTopMouseUpCallBack(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnMouseUp(e);
|
||||
_isMouseDown = false;
|
||||
//this.Focus();
|
||||
this.mainPanelControlEx.pic_search.Focus();//点击界面失去焦点
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#region 无标题栏窗体最大化最小化
|
||||
protected override CreateParams CreateParams
|
||||
{
|
||||
get
|
||||
{
|
||||
const int WS_MINIMIZEBOX = 0x00020000; // Winuser.h中定义
|
||||
CreateParams cp = base.CreateParams;
|
||||
cp.Style = cp.Style | WS_MINIMIZEBOX; // 允许最小化操作
|
||||
return cp;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:检测当前内容占用清空</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-06-02 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void ContentDetection(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
MEMORY_INFO MemInfo;
|
||||
MemInfo = new MEMORY_INFO();
|
||||
|
||||
GlobalMemoryStatus(ref MemInfo);
|
||||
//Console.WriteLine(MemInfo.dwMemoryLoad.ToString() + "%的内存正在使用");
|
||||
string footprint = MemInfo.dwMemoryLoad.ToString();
|
||||
ClearMemory();
|
||||
//if (double.Parse(footprint) >= 90)
|
||||
//{
|
||||
|
||||
//}
|
||||
//int WorkingSetLinex = System.Diagnostics.Process.GetCurrentProcess().MaxWorkingSet.ToInt32();
|
||||
//string WorkingSetLinex2 = (WorkingSetLinex / 1024 / 1024).ToString();
|
||||
//string WorkingSetLinex = Marshal.PtrToStringAnsi(System.Diagnostics.Process.GetCurrentProcess().MaxWorkingSet);
|
||||
//PerformanceCounter ramCounter = new PerformanceCounter("Process", "Working Set", name);
|
||||
//float ram2 = ramCounter.NextValue();
|
||||
//string ram = String.Format("{0:F}", ramCounter.NextValue() / 1024 / 1024);
|
||||
//PerformanceCounter AllocateRam = new PerformanceCounter("Process", "Working Set - Private", name);
|
||||
//float pf = AllocateRam.NextValue();
|
||||
//string workingSe = String.Format("{0:F}", AllocateRam.NextValue() / 1024 );
|
||||
//PerformanceCounter sqdx = new PerformanceCounter("Process", "Virtual Bytes", name);
|
||||
//float sqdx1 = sqdx.NextValue();
|
||||
//string sqdx2 = String.Format("{0:F}", sqdx.NextValue() / 1024 / 1024);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
[DllImport("User32.dll")]
|
||||
public static extern IntPtr GetForegroundWindow(); //获取活动窗口句柄
|
||||
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
||||
public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int ID); //获取线程ID
|
||||
[DllImport("kernel32")]
|
||||
public static extern void GetSystemDirectory(StringBuilder SysDir, int count);
|
||||
[DllImport("kernel32")]
|
||||
public static extern void GetSystemInfo(ref CPU_INFO cpuinfo);
|
||||
[DllImport("kernel32")]
|
||||
public static extern void GlobalMemoryStatus(ref MEMORY_INFO meminfo);
|
||||
[DllImport("kernel32")]
|
||||
public static extern void GetSystemTime(ref SYSTEMTIME_INFO stinfo);
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct CPU_INFO
|
||||
{
|
||||
public uint dwOemId;
|
||||
public uint dwPageSize;
|
||||
public uint lpMinimumApplicationAddress;
|
||||
public uint lpMaximumApplicationAddress;
|
||||
public uint dwActiveProcessorMask;
|
||||
public uint dwNumberOfProcessors;
|
||||
public uint dwProcessorType;
|
||||
public uint dwAllocationGranularity;
|
||||
public uint dwProcessorLevel;
|
||||
public uint dwProcessorRevision;
|
||||
}
|
||||
//定义内存的信息结构
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct MEMORY_INFO
|
||||
{
|
||||
public uint dwLength;
|
||||
public uint dwMemoryLoad;
|
||||
public uint dwTotalPhys;
|
||||
public uint dwAvailPhys;
|
||||
public uint dwTotalPageFile;
|
||||
public uint dwAvailPageFile;
|
||||
public uint dwTotalVirtual;
|
||||
public uint dwAvailVirtual;
|
||||
}
|
||||
//定义系统时间的信息结构
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct SYSTEMTIME_INFO
|
||||
{
|
||||
public ushort wYear;
|
||||
public ushort wMonth;
|
||||
public ushort wDayOfWeek;
|
||||
public ushort wDay;
|
||||
public ushort wHour;
|
||||
public ushort wMinute;
|
||||
public ushort wSecond;
|
||||
public ushort wMilliseconds;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmPassword
|
||||
{
|
||||
/// <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(FrmPassword));
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.txtPassAfter = new System.Windows.Forms.TextBox();
|
||||
this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.txtPassBefore = new System.Windows.Forms.TextBox();
|
||||
this.txtUserName = new System.Windows.Forms.TextBox();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnExit = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.txtPassAfter);
|
||||
this.groupBox1.Controls.Add(this.labelControl3);
|
||||
this.groupBox1.Controls.Add(this.txtPassBefore);
|
||||
this.groupBox1.Controls.Add(this.txtUserName);
|
||||
this.groupBox1.Controls.Add(this.labelControl2);
|
||||
this.groupBox1.Controls.Add(this.labelControl1);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(3, 2);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(219, 87);
|
||||
this.groupBox1.TabIndex = 11;
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// txtPassAfter
|
||||
//
|
||||
this.txtPassAfter.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtPassAfter.Location = new System.Drawing.Point(67, 61);
|
||||
this.txtPassAfter.MaxLength = 50;
|
||||
this.txtPassAfter.Name = "txtPassAfter";
|
||||
this.txtPassAfter.PasswordChar = '*';
|
||||
this.txtPassAfter.Size = new System.Drawing.Size(139, 21);
|
||||
this.txtPassAfter.TabIndex = 9;
|
||||
//
|
||||
// labelControl3
|
||||
//
|
||||
this.labelControl3.Location = new System.Drawing.Point(10, 64);
|
||||
this.labelControl3.Name = "labelControl3";
|
||||
this.labelControl3.Size = new System.Drawing.Size(48, 14);
|
||||
this.labelControl3.TabIndex = 8;
|
||||
this.labelControl3.Text = "确认密码";
|
||||
//
|
||||
// txtPassBefore
|
||||
//
|
||||
this.txtPassBefore.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtPassBefore.Location = new System.Drawing.Point(67, 37);
|
||||
this.txtPassBefore.MaxLength = 50;
|
||||
this.txtPassBefore.Name = "txtPassBefore";
|
||||
this.txtPassBefore.PasswordChar = '*';
|
||||
this.txtPassBefore.Size = new System.Drawing.Size(139, 21);
|
||||
this.txtPassBefore.TabIndex = 7;
|
||||
//
|
||||
// txtUserName
|
||||
//
|
||||
this.txtUserName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtUserName.Location = new System.Drawing.Point(67, 13);
|
||||
this.txtUserName.MaxLength = 50;
|
||||
this.txtUserName.Name = "txtUserName";
|
||||
this.txtUserName.ReadOnly = true;
|
||||
this.txtUserName.Size = new System.Drawing.Size(139, 21);
|
||||
this.txtUserName.TabIndex = 6;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Location = new System.Drawing.Point(10, 40);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(48, 14);
|
||||
this.labelControl2.TabIndex = 5;
|
||||
this.labelControl2.Text = "登录密码";
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Location = new System.Drawing.Point(10, 16);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(48, 14);
|
||||
this.labelControl1.TabIndex = 4;
|
||||
this.labelControl1.Text = "登录用户";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(6, 17);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(0, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSave.Location = new System.Drawing.Point(53, 164);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(53, 20);
|
||||
this.btnSave.TabIndex = 13;
|
||||
this.btnSave.Text = "保存";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// btnExit
|
||||
//
|
||||
this.btnExit.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExit.Location = new System.Drawing.Point(123, 164);
|
||||
this.btnExit.Name = "btnExit";
|
||||
this.btnExit.Size = new System.Drawing.Size(53, 20);
|
||||
this.btnExit.TabIndex = 14;
|
||||
this.btnExit.Text = "取消";
|
||||
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(9, 96);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(155, 12);
|
||||
this.label2.TabIndex = 15;
|
||||
this.label2.Text = "密码要求:1、必须包含数字";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(69, 116);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(155, 12);
|
||||
this.label3.TabIndex = 16;
|
||||
this.label3.Text = "2、必须包含小写或大写字母";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(69, 134);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(89, 12);
|
||||
this.label4.TabIndex = 17;
|
||||
this.label4.Text = "3、至少8个字符";
|
||||
//
|
||||
// FrmPassword
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
|
||||
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(225, 192);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.btnExit);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmPassword";
|
||||
this.Text = "强制修改密码";
|
||||
this.Load += new System.EventHandler(this.FrmPassword_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.TextBox txtPassBefore;
|
||||
private System.Windows.Forms.TextBox txtUserName;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnExit;
|
||||
private System.Windows.Forms.TextBox txtPassAfter;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
/******************************
|
||||
* 说明:强制修改密码
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-12
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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 DevExpress.XtraEditors;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
/// <summary>
|
||||
/// 强制修改密码
|
||||
/// </summary>
|
||||
public partial class FrmPassword : BaseForm
|
||||
{
|
||||
public string UserId;
|
||||
public string UserName;
|
||||
Regex regex = new Regex(@"(?=.*[0-9]) #必须包含数字
|
||||
(?=.*[a-zA-Z]) #必须包含小写或大写字母
|
||||
(?=.*[^a-zA-Z0-9]) #必须包含符号
|
||||
.{8,18} #至少6个字符,最多18个字符
|
||||
", RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);
|
||||
public FrmPassword()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:界面加载时</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void FrmPassword_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.txtUserName.Text = UserName;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:修改保存</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string pass_before = txtPassBefore.Text.Trim();
|
||||
string pass_after = txtPassAfter.Text.Trim();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(pass_before) || string.IsNullOrWhiteSpace(pass_after))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.PasswordNotNull);
|
||||
return;
|
||||
}
|
||||
if (!pass_before.Equals(pass_after))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.PasswordInconformity);
|
||||
return;
|
||||
}
|
||||
// 验证密码标准
|
||||
if (SystemInfo.Instance.VerfyPasswordStrength ? !regex.IsMatch(pass_after) : false)
|
||||
{
|
||||
MessageUtil.Show("密码不符合要求!");
|
||||
return;
|
||||
}
|
||||
|
||||
int result = MainImpl.ForceUpdatePassword(UserId, pass_after);
|
||||
switch (result)
|
||||
{
|
||||
case 0: // 用户不存在
|
||||
MessageUtil.Show(ResourceKeys.UserNotFound);
|
||||
break;
|
||||
case 1:
|
||||
MessageUtil.Show(ResourceKeys.PasswordUpdateSuccess);
|
||||
ERPInfo.Instance.Password = SHAHelper.EncryptPassword(pass_after);
|
||||
this.DialogResult = DialogResult.OK;
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show("修改密码出错!" + Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:取消修改</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmSkins
|
||||
{
|
||||
/// <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(FrmSkins));
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.skinControl1 = new Lskj.Main3.Control.SkinControl();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnClose
|
||||
//
|
||||
this.btnClose.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.BackgroundImage = global::Lskj.Main3.Properties.Resources.Cancel_32x32;
|
||||
this.btnClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnClose.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClose.FlatAppearance.BorderSize = 0;
|
||||
this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnClose.Location = new System.Drawing.Point(885, 3);
|
||||
this.btnClose.Name = "btnClose";
|
||||
this.btnClose.Size = new System.Drawing.Size(26, 26);
|
||||
this.btnClose.TabIndex = 5;
|
||||
this.btnClose.UseVisualStyleBackColor = false;
|
||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||
//
|
||||
// skinControl1
|
||||
//
|
||||
this.skinControl1.BackColor = System.Drawing.Color.White;
|
||||
this.skinControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.skinControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.skinControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.skinControl1.Name = "skinControl1";
|
||||
this.skinControl1.Size = new System.Drawing.Size(919, 510);
|
||||
this.skinControl1.TabIndex = 0;
|
||||
//
|
||||
// FrmSkins
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(919, 510);
|
||||
this.Controls.Add(this.btnClose);
|
||||
this.Controls.Add(this.skinControl1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmSkins";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "皮肤管理";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Control.SkinControl skinControl1;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
/******************************
|
||||
* 说明:换肤界面
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-09-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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.Business.Impl;
|
||||
using Lskj.Model;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using DevExpress.LookAndFeel;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
/// <summary>
|
||||
/// 换肤界面
|
||||
/// </summary>
|
||||
public partial class FrmSkins : Form
|
||||
{
|
||||
public FrmSkins()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:关闭</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string skinName = skinControl1.SkinName;
|
||||
if (skinName != ERPInfo.Instance.SkinName)
|
||||
{
|
||||
if (MessageUtil.Show(ResourceKeys.SkinIsChanged, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
MainImpl.SaveUserSkin(skinName);
|
||||
ERPInfo.Instance.SkinName = skinName;
|
||||
}
|
||||
else
|
||||
{
|
||||
UserLookAndFeel.Default.SetSkinStyle(ERPInfo.Instance.SkinName);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,267 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmSubSystem
|
||||
{
|
||||
/// <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(FrmSubSystem));
|
||||
this.pl_bg = new System.Windows.Forms.Panel();
|
||||
this.plSubPages = new DevExpress.XtraEditors.PanelControl();
|
||||
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.plSubMenus = new DevExpress.XtraEditors.PanelControl();
|
||||
this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
|
||||
this.rtbTip = new System.Windows.Forms.RichTextBox();
|
||||
this.pictureEdit1 = new DevExpress.XtraEditors.PictureEdit();
|
||||
this.plBottom = new DevExpress.XtraEditors.PanelControl();
|
||||
this.lblTip = new System.Windows.Forms.Label();
|
||||
this.btnColse = new System.Windows.Forms.Button();
|
||||
this.btnMin = new System.Windows.Forms.Button();
|
||||
this.plTop = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_bg.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plSubPages)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
|
||||
this.panelControl4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plSubMenus)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
|
||||
this.panelControl6.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plBottom)).BeginInit();
|
||||
this.plBottom.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plTop)).BeginInit();
|
||||
this.plTop.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pl_bg
|
||||
//
|
||||
this.pl_bg.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_bg.BackgroundImage = global::Lskj.Main3.Properties.Resources.sub_backgroud;
|
||||
this.pl_bg.Controls.Add(this.plSubPages);
|
||||
this.pl_bg.Controls.Add(this.panelControl4);
|
||||
this.pl_bg.Controls.Add(this.plTop);
|
||||
this.pl_bg.Controls.Add(this.plBottom);
|
||||
this.pl_bg.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_bg.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_bg.Name = "pl_bg";
|
||||
this.pl_bg.Size = new System.Drawing.Size(1000, 600);
|
||||
this.pl_bg.TabIndex = 0;
|
||||
//
|
||||
// plSubPages
|
||||
//
|
||||
this.plSubPages.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plSubPages.Appearance.Options.UseBackColor = true;
|
||||
this.plSubPages.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.plSubPages.Location = new System.Drawing.Point(2, 493);
|
||||
this.plSubPages.Name = "plSubPages";
|
||||
this.plSubPages.Size = new System.Drawing.Size(996, 40);
|
||||
this.plSubPages.TabIndex = 7;
|
||||
//
|
||||
// panelControl4
|
||||
//
|
||||
this.panelControl4.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl4.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl4.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl4.Controls.Add(this.plSubMenus);
|
||||
this.panelControl4.Controls.Add(this.panelControl6);
|
||||
this.panelControl4.Location = new System.Drawing.Point(2, 151);
|
||||
this.panelControl4.Name = "panelControl4";
|
||||
this.panelControl4.Size = new System.Drawing.Size(996, 322);
|
||||
this.panelControl4.TabIndex = 6;
|
||||
//
|
||||
// plSubMenus
|
||||
//
|
||||
this.plSubMenus.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plSubMenus.Appearance.Options.UseBackColor = true;
|
||||
this.plSubMenus.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.plSubMenus.Location = new System.Drawing.Point(250, 0);
|
||||
this.plSubMenus.Name = "plSubMenus";
|
||||
this.plSubMenus.Size = new System.Drawing.Size(732, 322);
|
||||
this.plSubMenus.TabIndex = 5;
|
||||
//
|
||||
// panelControl6
|
||||
//
|
||||
this.panelControl6.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelControl6.Appearance.Options.UseBackColor = true;
|
||||
this.panelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.panelControl6.ContentImage = global::Lskj.Main3.Properties.Resources.sub_tip_backgound;
|
||||
this.panelControl6.Controls.Add(this.rtbTip);
|
||||
this.panelControl6.Controls.Add(this.pictureEdit1);
|
||||
this.panelControl6.Location = new System.Drawing.Point(18, 0);
|
||||
this.panelControl6.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.panelControl6.Name = "panelControl6";
|
||||
this.panelControl6.Size = new System.Drawing.Size(223, 322);
|
||||
this.panelControl6.TabIndex = 4;
|
||||
//
|
||||
// rtbTip
|
||||
//
|
||||
this.rtbTip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(219)))), ((int)(((byte)(182)))), ((int)(((byte)(8)))));
|
||||
this.rtbTip.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.rtbTip.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.rtbTip.ForeColor = System.Drawing.Color.White;
|
||||
this.rtbTip.Location = new System.Drawing.Point(1, 102);
|
||||
this.rtbTip.Name = "rtbTip";
|
||||
this.rtbTip.Size = new System.Drawing.Size(219, 217);
|
||||
this.rtbTip.TabIndex = 1;
|
||||
this.rtbTip.Text = "";
|
||||
//
|
||||
// pictureEdit1
|
||||
//
|
||||
this.pictureEdit1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pictureEdit1.EditValue = global::Lskj.Main3.Properties.Resources.sub_tip_backgound;
|
||||
this.pictureEdit1.Location = new System.Drawing.Point(0, 0);
|
||||
this.pictureEdit1.Name = "pictureEdit1";
|
||||
this.pictureEdit1.Properties.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pictureEdit1.Properties.Appearance.Options.UseBackColor = true;
|
||||
this.pictureEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pictureEdit1.Size = new System.Drawing.Size(223, 322);
|
||||
this.pictureEdit1.TabIndex = 0;
|
||||
//
|
||||
// plBottom
|
||||
//
|
||||
this.plBottom.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plBottom.Appearance.Options.UseBackColor = true;
|
||||
this.plBottom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.plBottom.Controls.Add(this.lblTip);
|
||||
this.plBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.plBottom.Location = new System.Drawing.Point(0, 564);
|
||||
this.plBottom.Name = "plBottom";
|
||||
this.plBottom.Size = new System.Drawing.Size(1000, 36);
|
||||
this.plBottom.TabIndex = 4;
|
||||
//
|
||||
// lblTip
|
||||
//
|
||||
this.lblTip.AutoSize = true;
|
||||
this.lblTip.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.lblTip.ForeColor = System.Drawing.Color.White;
|
||||
this.lblTip.Location = new System.Drawing.Point(416, 10);
|
||||
this.lblTip.Name = "lblTip";
|
||||
this.lblTip.Size = new System.Drawing.Size(169, 17);
|
||||
this.lblTip.TabIndex = 1;
|
||||
this.lblTip.Text = "今天是2016年4月11号 星期二";
|
||||
//
|
||||
// btnColse
|
||||
//
|
||||
this.btnColse.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnColse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnColse.BackgroundImage")));
|
||||
this.btnColse.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnColse.FlatAppearance.BorderSize = 0;
|
||||
this.btnColse.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnColse.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnColse.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnColse.Location = new System.Drawing.Point(952, 12);
|
||||
this.btnColse.Name = "btnColse";
|
||||
this.btnColse.Size = new System.Drawing.Size(30, 30);
|
||||
this.btnColse.TabIndex = 8;
|
||||
this.btnColse.UseVisualStyleBackColor = false;
|
||||
this.btnColse.Click += new System.EventHandler(this.btnColse_Click);
|
||||
this.btnColse.MouseLeave += new System.EventHandler(this.btnColse_MouseLeave);
|
||||
this.btnColse.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btnColse_MouseMove);
|
||||
//
|
||||
// btnMin
|
||||
//
|
||||
this.btnMin.BackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.BackgroundImage = global::Lskj.Main3.Properties.Resources.sub_btn_min;
|
||||
this.btnMin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.btnMin.FlatAppearance.BorderSize = 0;
|
||||
this.btnMin.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
|
||||
this.btnMin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnMin.Location = new System.Drawing.Point(909, 12);
|
||||
this.btnMin.Name = "btnMin";
|
||||
this.btnMin.Size = new System.Drawing.Size(30, 30);
|
||||
this.btnMin.TabIndex = 9;
|
||||
this.btnMin.UseVisualStyleBackColor = false;
|
||||
this.btnMin.Click += new System.EventHandler(this.btnMin_Click);
|
||||
this.btnMin.MouseLeave += new System.EventHandler(this.btnMin_MouseLeave);
|
||||
this.btnMin.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btnMin_MouseMove);
|
||||
//
|
||||
// plTop
|
||||
//
|
||||
this.plTop.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.plTop.Appearance.Options.UseBackColor = true;
|
||||
this.plTop.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.plTop.Controls.Add(this.btnMin);
|
||||
this.plTop.Controls.Add(this.btnColse);
|
||||
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.plTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.plTop.Name = "plTop";
|
||||
this.plTop.Size = new System.Drawing.Size(1000, 100);
|
||||
this.plTop.TabIndex = 5;
|
||||
this.plTop.MouseDown += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseDown);
|
||||
this.plTop.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseMove);
|
||||
this.plTop.MouseUp += new System.Windows.Forms.MouseEventHandler(this.plTop_MouseUp);
|
||||
//
|
||||
// FrmSubSystem
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
||||
this.ClientSize = new System.Drawing.Size(1000, 600);
|
||||
this.Controls.Add(this.pl_bg);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "FrmSubSystem";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "子系统选择";
|
||||
this.Load += new System.EventHandler(this.FrmSubSystem_Load);
|
||||
this.pl_bg.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.plSubPages)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
|
||||
this.panelControl4.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.plSubMenus)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
|
||||
this.panelControl6.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plBottom)).EndInit();
|
||||
this.plBottom.ResumeLayout(false);
|
||||
this.plBottom.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.plTop)).EndInit();
|
||||
this.plTop.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel pl_bg;
|
||||
private DevExpress.XtraEditors.PanelControl plSubPages;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl4;
|
||||
private DevExpress.XtraEditors.PanelControl plSubMenus;
|
||||
private DevExpress.XtraEditors.PanelControl panelControl6;
|
||||
private System.Windows.Forms.RichTextBox rtbTip;
|
||||
private DevExpress.XtraEditors.PictureEdit pictureEdit1;
|
||||
private DevExpress.XtraEditors.PanelControl plBottom;
|
||||
private System.Windows.Forms.Label lblTip;
|
||||
private DevExpress.XtraEditors.PanelControl plTop;
|
||||
private System.Windows.Forms.Button btnMin;
|
||||
private System.Windows.Forms.Button btnColse;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,571 @@
|
||||
/******************************
|
||||
* 说明:子系统选择
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-12
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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.Main3.Properties;
|
||||
using Lskj.Data;
|
||||
using Lskj.Control;
|
||||
using Lskj.Main3.Control;
|
||||
using Lskj.Main3.Model;
|
||||
using Lskj.Util;
|
||||
using Lskj.Business;
|
||||
using Lskj.Model;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using System.Diagnostics;
|
||||
using Lskj.Core;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
/// <summary>
|
||||
/// 子系统选择
|
||||
/// </summary>
|
||||
public partial class FrmSubSystem : Form
|
||||
{
|
||||
public string BsName;
|
||||
public string BsUrl;
|
||||
#region 私有属性
|
||||
/// <summary>
|
||||
/// 是否鼠标按下
|
||||
/// </summary>
|
||||
private bool _isMouseDown;
|
||||
/// <summary>
|
||||
/// 记录窗口位置
|
||||
/// </summary>
|
||||
private Point _mousePostion;
|
||||
/// <summary>
|
||||
/// 默认选中的page
|
||||
/// </summary>
|
||||
private PictureBox _defaultSelectPage;
|
||||
/// <summary>
|
||||
/// 子系统不可用颜色
|
||||
/// </summary>
|
||||
private string _unUseColor = "#8d9aaa";
|
||||
/// <summary>
|
||||
/// 子系统
|
||||
/// </summary>
|
||||
private List<SubItem> _menuList = new List<SubItem>();
|
||||
/// <summary>
|
||||
/// 子系统默认背景色
|
||||
/// </summary>
|
||||
private string[] _defaultColors = { "#55bf07", "#01caa2", "#bb6aee", "#199efb", "#33b4fe", "#8bc91e", "#1cabed", "#0fc37d" };
|
||||
/// <summary>
|
||||
/// 子系统默认图片
|
||||
/// </summary>
|
||||
private Bitmap[] _defaultImages = { Resources.sub_pzjk,Resources.sub_scgx,Resources.sub_khgl,Resources.sub_cggl,Resources.sub_gdzc,
|
||||
Resources.sub_sczw,Resources.sub_khgx,Resources.sub_scl};
|
||||
#endregion
|
||||
|
||||
#region 窗口加载
|
||||
public FrmSubSystem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void FrmSubSystem_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();//等待框
|
||||
|
||||
this.pictureEdit1.Properties.ContextMenu = new ContextMenu();//把菜单类赋格控件
|
||||
this.pl_bg.BackgroundImage = BitMapHelper.getBitmap(BitMapEnum.submenubg);//本地拿到自带背景
|
||||
this.pictureEdit1.Image = BitMapHelper.getBitmap(BitMapEnum.submenubg_tip);//如果有自定义别的背景,就拿自定义的
|
||||
if (this.pictureEdit1.Image != Resources.sub_tip_backgound)
|
||||
{
|
||||
// 有自定义图片则去掉说明
|
||||
this.rtbTip.Visible = false;
|
||||
}
|
||||
this.lblTip.Text = string.Format("今天是{0} {1}", DateTime.Now.ToString("yyyy年MM月dd日"), DateHelper.GetDayOfWeek());
|
||||
|
||||
InitSubItem(MainImpl.GetSubSystems());//获取全部子系统信息,并把信息承认 子菜单创建方法
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 私有方法
|
||||
/// <summary>
|
||||
/// 创建子菜单
|
||||
/// </summary>
|
||||
private void InitSubItem(DataTable itemTable)
|
||||
{
|
||||
SubItem.HoverEventHandler hoverHandler = null;//子菜单鼠标悬停处理程序
|
||||
SubItem.MouseClickEventHanlder clickHandler = null;//子菜单鼠标点击事件处理程序
|
||||
|
||||
Graphics graphics = this.CreateGraphics(); //创建图形图像的对象
|
||||
float dpiX = graphics.DpiX;//宽
|
||||
float dpiY = graphics.DpiY;//高
|
||||
|
||||
// 100%分辨率下itemWidth=175px;itemHeight=154px;
|
||||
int itemWidth = Convert.ToInt32(dpiX * 1.82f), itemHeight = Convert.ToInt32(dpiY * 1.62f);
|
||||
int itemLeft = 0, itemTop = 0;
|
||||
|
||||
for (int i = 0; i < itemTable.Rows.Count; i++)
|
||||
{
|
||||
DataRow item = itemTable.Rows[i];//表格中每一行的数据
|
||||
|
||||
SubItem sub_item = new SubItem();
|
||||
// 换行显示
|
||||
if (i > 3 && i % 4 == 0)
|
||||
{
|
||||
itemLeft = 0;
|
||||
itemTop = Convert.ToInt32(dpiY * 1.74f);
|
||||
}
|
||||
// 下一页子系统,自动隐藏
|
||||
if (i > 7 && i % 8 == 0)
|
||||
{
|
||||
itemTop = 0;
|
||||
sub_item.Visible = false;//隐藏
|
||||
}
|
||||
string useEd = item["UseEd"] + "";
|
||||
|
||||
|
||||
sub_item.Location = new Point(itemLeft, itemTop);//位置
|
||||
sub_item.Size = new Size(itemWidth, itemHeight);//大小
|
||||
sub_item.GetLabel.Text = item["SubSysName"] + "";//显示名称
|
||||
sub_item.GetPictureBox.BackgroundImage = _defaultImages[i % 8];//背景图
|
||||
sub_item.GetPictureBox.BackgroundImageLayout = ImageLayout.Stretch;//图片布局
|
||||
sub_item.BackColor = Convert.ToBoolean(useEd) ? ColorTranslator.FromHtml(_defaultColors[i % 8]) : ColorTranslator.FromHtml(_unUseColor);//背景颜色
|
||||
sub_item.DefaultColor = Convert.ToBoolean(useEd) ? _defaultColors[i % 8] : _unUseColor;//默认颜色
|
||||
sub_item.Visible = true;//显示
|
||||
sub_item.Tag = item;
|
||||
sub_item.IsUsed = Convert.ToBoolean(useEd);
|
||||
sub_item.SubName = item["SubSysName"] + "";
|
||||
|
||||
hoverHandler += new SubItem.HoverEventHandler(SwapMenuTip);
|
||||
sub_item.SetHoverEvent(hoverHandler);//注册鼠标划过事件
|
||||
|
||||
clickHandler += new SubItem.MouseClickEventHanlder(OpenMainSystem);
|
||||
sub_item.SetClickEvent(clickHandler);//注册鼠标点击事件
|
||||
|
||||
rtbTip.Text = " " + itemTable.Rows[0]["SubSysTip"] + "";
|
||||
|
||||
itemLeft += itemWidth + 11;
|
||||
|
||||
plSubMenus.Controls.Add(sub_item);
|
||||
this._menuList.Add(sub_item);
|
||||
}
|
||||
|
||||
// 创建分页图标
|
||||
int pageCount = itemTable.Rows.Count / 8 + (itemTable.Rows.Count % 8 == 0 ? 0 : 1);//页数
|
||||
int pageLeft = this.Width / 2 - (pageCount / 2 * 30);//页数框到左边的宽度
|
||||
for (int i = 0; i < pageCount; i++)
|
||||
{
|
||||
PictureBox subpage = new PictureBox();
|
||||
subpage.BackColor = Color.Transparent;
|
||||
subpage.BackgroundImage = i == 0 ? Resources.sub_page_select : Resources.sub_page_default;
|
||||
subpage.Size = new Size(30, 30);
|
||||
subpage.Location = new Point(pageLeft + i * 30, 0);
|
||||
subpage.MouseClick += subpage_MouseClick;
|
||||
subpage.MouseMove += subpage_MouseMove;
|
||||
subpage.Name = "subpage_" + i;
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
_defaultSelectPage = subpage;//选中页面
|
||||
}
|
||||
|
||||
plSubPages.Controls.Add(subpage);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 切换简介
|
||||
/// </summary>
|
||||
/// <param name="item"></param>
|
||||
private void SwapMenuTip(SubItem item)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataRow row = item.Tag as DataRow;
|
||||
if (row != null)
|
||||
{
|
||||
rtbTip.Text = " " + row["SubSysTip"] + "";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-29 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void subpage_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
(sender as PictureBox).Cursor = Cursors.Hand;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 切换子系统
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void subpage_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
PictureBox selectPage = sender as PictureBox;
|
||||
if (selectPage != _defaultSelectPage)
|
||||
{
|
||||
selectPage.BackgroundImage = Resources.sub_page_select;
|
||||
_defaultSelectPage.BackgroundImage = Resources.sub_page_default;
|
||||
|
||||
int page = Convert.ToInt32(selectPage.Name.Replace("subpage_", ""));
|
||||
|
||||
for (int i = 0; i < this._menuList.Count; i++)
|
||||
{
|
||||
SubItem item = this._menuList[i];
|
||||
|
||||
item.Visible = (i >= page * 8 && i < (page + 1) * 8) ? true : false;
|
||||
}
|
||||
|
||||
_defaultSelectPage = selectPage;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 打开主系统
|
||||
/// </summary>
|
||||
private void OpenMainSystem(SubItem item)
|
||||
{
|
||||
DataRow row = item.Tag as DataRow;
|
||||
if (row != null)
|
||||
{
|
||||
ERPInfo.Instance.SubSysId = row["SubSysId"] + "";
|
||||
ERPInfo.Instance.SubSysName = row["SubSysName"] + "";
|
||||
string BsTag = row.Table.Columns.Contains("targetLink") && !string.IsNullOrEmpty(row["targetLink"] + "") ? row["targetLink"] + "" : "";
|
||||
if (!string.IsNullOrEmpty(BsTag) && BsTag.StartsWith("http", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
this.BsName = row["SubSysName"] + "";
|
||||
this.BsUrl = row["targetLink"] + "";
|
||||
DialogResult = DialogResult.Yes;
|
||||
}
|
||||
else
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 最小化
|
||||
/// <summary>
|
||||
/// <para>说明:最小化</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnMin_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.WindowState = FormWindowState.Minimized;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:最小化鼠标离开</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnMin_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
btnMin.BackgroundImage = Resources.sub_btn_min;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:最小化鼠标移动</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnMin_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
btnMin.Cursor = Cursors.Hand;
|
||||
btnMin.BackgroundImage = Resources.sub_btn_min_select;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关闭
|
||||
/// <summary>
|
||||
/// <para>说明:关闭</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnColse_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DialogResult result = MessageUtil.Show(ResourceKeys.IsExit, MessageBoxButtons.YesNo);
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
Close();
|
||||
|
||||
if (DBConfig.Instance.NoticeExit)
|
||||
{
|
||||
Process[] p1 = Process.GetProcessesByName("Ls_Notice");
|
||||
foreach (Process item in p1)
|
||||
item.Kill();
|
||||
}
|
||||
|
||||
//记录登出日志
|
||||
LogUtil.WriteDebug("", "退出软件", "软件退出", "系统登录");
|
||||
Process[] p = Process.GetProcessesByName("Ls_ERP");
|
||||
foreach (Process item in p)
|
||||
item.Kill();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:关闭按钮离开</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnColse_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
btnColse.BackgroundImage = Resources.sub_btn_default;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:关闭按钮移动</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void btnColse_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
btnColse.Cursor = Cursors.Hand;
|
||||
btnColse.BackgroundImage = Resources.sub_btn_select;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 任务栏允许恢复最大最小化
|
||||
protected override CreateParams CreateParams
|
||||
{
|
||||
get
|
||||
{
|
||||
const int WS_MINIMIZEBOX = 0x00020000; // Winuser.h中定义
|
||||
CreateParams cp = base.CreateParams;
|
||||
cp.Style = cp.Style | WS_MINIMIZEBOX; // 允许最小化操作
|
||||
return cp;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 窗口拖动行为
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标按下</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnMouseDown(e);
|
||||
_mousePostion = Cursor.Position;
|
||||
_isMouseDown = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标放开</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnMouseUp(e);
|
||||
_isMouseDown = false;
|
||||
this.Focus();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:鼠标移动</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="MouseEventArgs"/> instance containing the event data.</param>
|
||||
private void plTop_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
base.OnMouseMove(e);
|
||||
if (_isMouseDown)
|
||||
{
|
||||
Point tempPos = Cursor.Position;
|
||||
this.Location = new Point(Location.X + (tempPos.X - _mousePostion.X), Location.Y + (tempPos.Y - _mousePostion.Y));
|
||||
_mousePostion = Cursor.Position;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmSwap
|
||||
{
|
||||
/// <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(FrmSwap));
|
||||
this.chkLogin = new DevExpress.XtraEditors.CheckEdit();
|
||||
this.lblPwd = new System.Windows.Forms.Label();
|
||||
this.lblName = new System.Windows.Forms.Label();
|
||||
this.txtPassword = new DevExpress.XtraEditors.TextEdit();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.lueUserName = new Lskj.Control.AutoGridLookUp();
|
||||
this.cbLedger = new DevExpress.XtraEditors.ComboBoxEdit();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkLogin.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbLedger.Properties)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// chkLogin
|
||||
//
|
||||
this.chkLogin.Location = new System.Drawing.Point(87, 114);
|
||||
this.chkLogin.Name = "chkLogin";
|
||||
this.chkLogin.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.chkLogin.Properties.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(85)))), ((int)(((byte)(85)))), ((int)(((byte)(85)))));
|
||||
this.chkLogin.Properties.Appearance.Options.UseFont = true;
|
||||
this.chkLogin.Properties.Appearance.Options.UseForeColor = true;
|
||||
this.chkLogin.Properties.Caption = "强制登录";
|
||||
this.chkLogin.Size = new System.Drawing.Size(85, 24);
|
||||
this.chkLogin.TabIndex = 25;
|
||||
//
|
||||
// lblPwd
|
||||
//
|
||||
this.lblPwd.AutoSize = true;
|
||||
this.lblPwd.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblPwd.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.lblPwd.Location = new System.Drawing.Point(25, 87);
|
||||
this.lblPwd.Name = "lblPwd";
|
||||
this.lblPwd.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblPwd.TabIndex = 20;
|
||||
this.lblPwd.Text = "登陆密码";
|
||||
//
|
||||
// lblName
|
||||
//
|
||||
this.lblName.AutoSize = true;
|
||||
this.lblName.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lblName.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.lblName.Location = new System.Drawing.Point(25, 57);
|
||||
this.lblName.Name = "lblName";
|
||||
this.lblName.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblName.TabIndex = 19;
|
||||
this.lblName.Text = "用户名称";
|
||||
//
|
||||
// txtPassword
|
||||
//
|
||||
this.txtPassword.Location = new System.Drawing.Point(87, 84);
|
||||
this.txtPassword.Name = "txtPassword";
|
||||
this.txtPassword.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.txtPassword.Properties.Appearance.Options.UseFont = true;
|
||||
this.txtPassword.Properties.PasswordChar = '*';
|
||||
this.txtPassword.Size = new System.Drawing.Size(206, 24);
|
||||
this.txtPassword.TabIndex = 46;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSave.Location = new System.Drawing.Point(85, 144);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(69, 22);
|
||||
this.btnSave.TabIndex = 47;
|
||||
this.btnSave.Text = "确定";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// simpleButton1
|
||||
//
|
||||
this.simpleButton1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.simpleButton1.Location = new System.Drawing.Point(169, 144);
|
||||
this.simpleButton1.Name = "simpleButton1";
|
||||
this.simpleButton1.Size = new System.Drawing.Size(69, 22);
|
||||
this.simpleButton1.TabIndex = 48;
|
||||
this.simpleButton1.Text = "取消";
|
||||
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
|
||||
//
|
||||
// lueUserName
|
||||
//
|
||||
this.lueUserName.DataSource = null;
|
||||
this.lueUserName.EditValue = "";
|
||||
this.lueUserName.Location = new System.Drawing.Point(87, 54);
|
||||
this.lueUserName.Name = "lueUserName";
|
||||
this.lueUserName.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.lueUserName.Properties.Appearance.Options.UseFont = true;
|
||||
this.lueUserName.Size = new System.Drawing.Size(206, 24);
|
||||
this.lueUserName.TabIndex = 50;
|
||||
//
|
||||
// cbLedger
|
||||
//
|
||||
this.cbLedger.Location = new System.Drawing.Point(87, 22);
|
||||
this.cbLedger.Name = "cbLedger";
|
||||
this.cbLedger.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.cbLedger.Properties.Appearance.Options.UseFont = true;
|
||||
this.cbLedger.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||
this.cbLedger.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
|
||||
this.cbLedger.Properties.Closed += new DevExpress.XtraEditors.Controls.ClosedEventHandler(this.OnLedgerClosed);
|
||||
this.cbLedger.Size = new System.Drawing.Size(206, 26);
|
||||
this.cbLedger.TabIndex = 52;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.label1.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
|
||||
this.label1.Location = new System.Drawing.Point(32, 25);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(49, 20);
|
||||
this.label1.TabIndex = 51;
|
||||
this.label1.Text = "帐 薄";
|
||||
//
|
||||
// FrmSwap
|
||||
//
|
||||
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(321, 178);
|
||||
this.Controls.Add(this.cbLedger);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.lueUserName);
|
||||
this.Controls.Add(this.lblName);
|
||||
this.Controls.Add(this.simpleButton1);
|
||||
this.Controls.Add(this.lblPwd);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.txtPassword);
|
||||
this.Controls.Add(this.chkLogin);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmSwap";
|
||||
this.Text = "切换用户";
|
||||
this.Load += new System.EventHandler(this.FrmSwap_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.chkLogin.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cbLedger.Properties)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.CheckEdit chkLogin;
|
||||
private System.Windows.Forms.Label lblPwd;
|
||||
private System.Windows.Forms.Label lblName;
|
||||
private DevExpress.XtraEditors.TextEdit txtPassword;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton simpleButton1;
|
||||
private Lskj.Control.AutoGridLookUp lueUserName;
|
||||
private DevExpress.XtraEditors.ComboBoxEdit cbLedger;
|
||||
private System.Windows.Forms.Label label1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,480 @@
|
||||
/******************************
|
||||
* 说明:切换账户
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-14
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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.Model;
|
||||
using Lskj.Main3.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Core;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Util;
|
||||
using Lskj.Data;
|
||||
using DevExpress.XtraEditors.Controls;
|
||||
using Lskj.Control.Model;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
/// <summary>
|
||||
/// 切换账户
|
||||
/// </summary>
|
||||
public partial class FrmSwap : BaseForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 记录窗口位置
|
||||
/// </summary>
|
||||
private DataTable _userTable;
|
||||
private DataTable _ledgerTable;
|
||||
/// <summary>
|
||||
/// 记录初始套账信息
|
||||
/// </summary>
|
||||
private string _ledgerName;
|
||||
public FrmSwap()
|
||||
{
|
||||
InitializeComponent();
|
||||
//lueUserName.AutoShowPopup = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:帐套</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2019-11-11 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="typeName">Name of the type.</param>
|
||||
private void StartLedger(string ledgerValue)
|
||||
{
|
||||
DataRow focusRow = _ledgerTable.Rows.Cast<DataRow>().FirstOrDefault(x => ledgerValue.Equals(x["ShowName"] + ""));
|
||||
if (focusRow != null)
|
||||
{
|
||||
string serverIP = focusRow["IP"] + "";
|
||||
string dbName = focusRow["DBName"] + "";
|
||||
string dataBook = focusRow["ShowName"] + "";
|
||||
|
||||
if (string.IsNullOrWhiteSpace(serverIP) || string.IsNullOrWhiteSpace(dbName))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnSetServerAddress);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
DBConfig.Instance.DataBook = dataBook;
|
||||
DBConfig.Instance.ServerName = serverIP;
|
||||
DBConfig.Instance.DataBase = dbName;
|
||||
|
||||
if (!DBConfig.Instance.CreateConnection())
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ServerAddressFault);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (DelphiHelper.Delphi_Init(new StringBuilder(DBConfig.Instance.GetDelphiConnection())) == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnConnectServer + "[By Delphi]");
|
||||
return;
|
||||
}
|
||||
ERPInfo.Instance.AccountBook = ResourceKeys.CurrentAccountBook + ledgerValue;
|
||||
SystemInfo.RefreshSystemParam();
|
||||
this.SetUsers();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置帐套信息</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SetLedgers()
|
||||
{
|
||||
// 获取帐套信息
|
||||
try
|
||||
{
|
||||
_ledgerTable = MainImpl.GetLedgerList();
|
||||
cbLedger.Properties.Items.Clear();
|
||||
|
||||
if (_ledgerTable.Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow item in _ledgerTable.Rows)
|
||||
{
|
||||
cbLedger.Properties.Items.Add(item["ShowName"]);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(DBConfig.Instance.DataBook))
|
||||
{
|
||||
DataRow ledRow = _ledgerTable.Rows.Cast<DataRow>().FirstOrDefault(x => DBConfig.Instance.DataBook.Equals(x["ShowName"] + ""));
|
||||
cbLedger.Text = ledRow != null ? ledRow["ShowName"] + "" : _ledgerTable.Rows[0]["ShowName"] + "";
|
||||
}
|
||||
else
|
||||
{
|
||||
cbLedger.Text = _ledgerTable.Rows[0]["ShowName"] + "";
|
||||
}
|
||||
|
||||
//this.StartLedger(cbLedger.EditValue + "");
|
||||
}
|
||||
else
|
||||
{
|
||||
cbLedger.Enabled = false;
|
||||
}
|
||||
_ledgerName = cbLedger.Text;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置系统用户</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
void SetUsers()
|
||||
{
|
||||
_userTable = MainImpl.GetEmployeeList();
|
||||
lueUserName.AutoShowPopup = "1".Equals(BaseImpl.GetResult("SELECT LoginPopupFlag FROM P_SystemTab") + "");
|
||||
lueUserName.Focus();
|
||||
lueUserName.ValueField = lueUserName.ValueMember = "UserId";
|
||||
lueUserName.TextMember = "UserName";
|
||||
lueUserName.SourceSQL = "select EmployeeId UserId,LoginAccount UserCode,EmployeeName UserName from P_EmployeeTab WHERE sign=0 and UseFlag=1";
|
||||
|
||||
lueUserName.DataSource = _userTable;
|
||||
|
||||
DataRow[] rowItems = _userTable.Select(" UserName = '" + DBConfig.Instance.LoginName + "'");
|
||||
if (rowItems != null && rowItems.Length > 0)
|
||||
{
|
||||
lueUserName.EditValue = rowItems[0][lueUserName.ValueField] + "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置delphi参数</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
void SetDelphiDllParams()
|
||||
{
|
||||
try
|
||||
{
|
||||
StringBuilder sb1 = new StringBuilder();
|
||||
sb1.Append(ERPInfo.Instance.UserName);
|
||||
|
||||
StringBuilder sb2 = new StringBuilder();
|
||||
sb2.Append(ERPInfo.Instance.WindowName);
|
||||
|
||||
StringBuilder sb3 = new StringBuilder();
|
||||
sb3.Append(ERPInfo.Instance.SkinName);
|
||||
|
||||
//给delphi库设置参数(用户id、子系统id、操作员名称、计算机名称)
|
||||
DelphiHelper.Delphi_SetParams(Convert.ToInt32(ERPInfo.Instance.UserId), Convert.ToInt32(ERPInfo.Instance.SubSysId), sb1, sb2, sb3);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存修改
|
||||
/// </summary>
|
||||
private void saveChange()
|
||||
{
|
||||
try
|
||||
{
|
||||
string userId = lueUserName.EditValue + "";
|
||||
string userName = lueUserName.Text.Trim();
|
||||
string password = txtPassword.Text.Trim();
|
||||
string userCode = string.Empty;
|
||||
bool isConstraint = chkLogin.Checked;
|
||||
|
||||
if (String.IsNullOrWhiteSpace(userName))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UserNameNotNull);
|
||||
return;
|
||||
}
|
||||
|
||||
DataTable table = MainImpl.GetEmployeeList();
|
||||
DataRow[] drRows = table.Select("UserName='" + userName + "' or UserCode='" + userName + "'");
|
||||
if ((drRows == null) || (drRows.Count() < 1))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.NameOrPasswordError);
|
||||
return;
|
||||
}
|
||||
//找到多个操作员
|
||||
if (drRows.Count() > 1)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.DuplicatedNameError);
|
||||
return;
|
||||
}
|
||||
DataRow drRow = drRows[0];
|
||||
if (drRow != null)
|
||||
{
|
||||
userId = drRow["UserId"] + "";
|
||||
userName = drRow["UserName"] + "";
|
||||
userCode = drRow["UserCode"] + "";
|
||||
}
|
||||
else
|
||||
{
|
||||
userId = "";
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(userId))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UserNotFound);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(userId) && !string.IsNullOrWhiteSpace(userName))
|
||||
{
|
||||
int loginResult = MainImpl.Login(userId, password, isConstraint);
|
||||
|
||||
switch (loginResult)
|
||||
{
|
||||
case 0: // 登录成功
|
||||
// 设置皮肤
|
||||
string skinName = MainImpl.GetUserSkin(userId);
|
||||
skinName = string.IsNullOrEmpty(skinName) ? ERPInfo.Instance.SkinName : skinName;
|
||||
UserLookAndFeel.Default.SetSkinStyle(skinName);
|
||||
|
||||
ERPInfo.Instance.UserId = userId;
|
||||
ERPInfo.Instance.UserName = userName;
|
||||
ERPInfo.Instance.Password = SHAHelper.EncryptPassword(password);
|
||||
ERPInfo.Instance.SkinName = skinName;
|
||||
ERPInfo.Instance.AccountBook = cbLedger.Text;
|
||||
DBConfig.Instance.DataBook = cbLedger.Text;
|
||||
DBConfig.Instance.LoginName = userName;
|
||||
DBConfig.Instance.NoticeUserID = userId;
|
||||
DBConfig.Instance.NoticeUserName = userName;
|
||||
DBConfig.Instance.WriteConfig();
|
||||
|
||||
ERPInfo.Instance.LoginAccount = userCode;
|
||||
if (userName.Equals("管理员"))
|
||||
{
|
||||
password = SqlHelper.ExecuteString("Password", "select Password from P_EmployeeTab where LoginAccount='" + ERPInfo.Instance.LoginAccount + "'");
|
||||
ERPInfo.Instance.Password = password;
|
||||
}
|
||||
|
||||
this.SetDelphiDllParams(); // 设置调用delphi参数
|
||||
|
||||
bool isStartMain = true;
|
||||
if (SystemInfo.Instance.ForceUpdatePassword && string.IsNullOrEmpty(password))
|
||||
{
|
||||
// 弹出修改密码窗口
|
||||
FrmPassword frmPassword = new FrmPassword();
|
||||
frmPassword.UserId = userId;
|
||||
frmPassword.UserName = userName;
|
||||
DialogResult result = frmPassword.ShowDialog();
|
||||
isStartMain = result == DialogResult.OK;
|
||||
}
|
||||
ERPInfo.Instance.UserId = userId;
|
||||
ERPInfo.Instance.UserName = userName;
|
||||
|
||||
this.Close();
|
||||
IniHelper.Write("isRefresh", "1");
|
||||
Manager.ReStartMain(true);
|
||||
//this.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
break;
|
||||
case 1: // 密码不正确
|
||||
MessageUtil.Show(ResourceKeys.NameOrPasswordError);
|
||||
break;
|
||||
case 2: // 已有此用户登录
|
||||
MessageUtil.Show(ResourceKeys.AlreadyLogin);
|
||||
break;
|
||||
case -1: // 登录失败
|
||||
default:
|
||||
MessageUtil.Show(ResourceKeys.LoginFault);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("保存修改出错!", ex);
|
||||
MessageUtil.Show("保存修改出错!" + ex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void FrmSwap_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.SetLedgers();
|
||||
this.SetUsers();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换帐套</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="DevExpress.XtraEditors.Controls.ClosedEventArgs"/> instance containing the event data.</param>
|
||||
private void OnLedgerClosed(object sender, ClosedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm(ResourceKeys.ServerConnecting);
|
||||
string ledgerValue = cbLedger.EditValue + "";
|
||||
this.StartLedger(ledgerValue);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// LogUtil.WriteError(ResourceKeys.LoginModuleName, ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:切换用户</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
saveChange();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:取消</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void simpleButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
try {
|
||||
if (!_ledgerName.Equals(cbLedger.EditValue + ""))
|
||||
{
|
||||
this.StartLedger(_ledgerName);
|
||||
}
|
||||
this.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 点击右上角关闭判断
|
||||
/// </summary>
|
||||
/// <param name="msg"></param>
|
||||
protected override void WndProc(ref Message msg)
|
||||
{
|
||||
const int WM_SYSCOMMAND = 0x0112;
|
||||
const int SC_CLOSE = 0xF060;
|
||||
|
||||
if (msg.Msg == WM_SYSCOMMAND && ((int)msg.WParam == SC_CLOSE))
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(_ledgerName)) return;
|
||||
if (!_ledgerName.Equals(cbLedger.EditValue + ""))
|
||||
{
|
||||
this.StartLedger(_ledgerName);
|
||||
}
|
||||
}
|
||||
base.WndProc(ref msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:打开搜索面板</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void lueUserName_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
lueUserName.ShowPopup();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
partial class FrmUpdatePassword
|
||||
{
|
||||
/// <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(FrmUpdatePassword));
|
||||
this.txtPassConfirm = new System.Windows.Forms.TextBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.labelControl3 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.txtNewPass = new System.Windows.Forms.TextBox();
|
||||
this.txtOldPass = new System.Windows.Forms.TextBox();
|
||||
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnExit = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// txtPassConfirm
|
||||
//
|
||||
this.txtPassConfirm.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtPassConfirm.Location = new System.Drawing.Point(61, 65);
|
||||
this.txtPassConfirm.MaxLength = 50;
|
||||
this.txtPassConfirm.Name = "txtPassConfirm";
|
||||
this.txtPassConfirm.PasswordChar = '*';
|
||||
this.txtPassConfirm.Size = new System.Drawing.Size(145, 21);
|
||||
this.txtPassConfirm.TabIndex = 9;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.txtPassConfirm);
|
||||
this.groupBox1.Controls.Add(this.labelControl3);
|
||||
this.groupBox1.Controls.Add(this.txtNewPass);
|
||||
this.groupBox1.Controls.Add(this.txtOldPass);
|
||||
this.groupBox1.Controls.Add(this.labelControl2);
|
||||
this.groupBox1.Controls.Add(this.labelControl1);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(6, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(216, 93);
|
||||
this.groupBox1.TabIndex = 15;
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// labelControl3
|
||||
//
|
||||
this.labelControl3.Location = new System.Drawing.Point(9, 69);
|
||||
this.labelControl3.Name = "labelControl3";
|
||||
this.labelControl3.Size = new System.Drawing.Size(48, 14);
|
||||
this.labelControl3.TabIndex = 8;
|
||||
this.labelControl3.Text = "确认密码";
|
||||
//
|
||||
// txtNewPass
|
||||
//
|
||||
this.txtNewPass.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtNewPass.Location = new System.Drawing.Point(61, 39);
|
||||
this.txtNewPass.MaxLength = 50;
|
||||
this.txtNewPass.Name = "txtNewPass";
|
||||
this.txtNewPass.PasswordChar = '*';
|
||||
this.txtNewPass.Size = new System.Drawing.Size(145, 21);
|
||||
this.txtNewPass.TabIndex = 7;
|
||||
//
|
||||
// txtOldPass
|
||||
//
|
||||
this.txtOldPass.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.txtOldPass.Location = new System.Drawing.Point(61, 15);
|
||||
this.txtOldPass.MaxLength = 50;
|
||||
this.txtOldPass.Name = "txtOldPass";
|
||||
this.txtOldPass.PasswordChar = '*';
|
||||
this.txtOldPass.Size = new System.Drawing.Size(145, 21);
|
||||
this.txtOldPass.TabIndex = 6;
|
||||
//
|
||||
// labelControl2
|
||||
//
|
||||
this.labelControl2.Location = new System.Drawing.Point(20, 44);
|
||||
this.labelControl2.Name = "labelControl2";
|
||||
this.labelControl2.Size = new System.Drawing.Size(36, 14);
|
||||
this.labelControl2.TabIndex = 5;
|
||||
this.labelControl2.Text = "新密码";
|
||||
//
|
||||
// labelControl1
|
||||
//
|
||||
this.labelControl1.Location = new System.Drawing.Point(20, 19);
|
||||
this.labelControl1.Name = "labelControl1";
|
||||
this.labelControl1.Size = new System.Drawing.Size(36, 14);
|
||||
this.labelControl1.TabIndex = 4;
|
||||
this.labelControl1.Text = "旧密码";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(7, 20);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(0, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSave.Location = new System.Drawing.Point(47, 162);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(53, 20);
|
||||
this.btnSave.TabIndex = 16;
|
||||
this.btnSave.Text = "确定";
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// btnExit
|
||||
//
|
||||
this.btnExit.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExit.Location = new System.Drawing.Point(123, 162);
|
||||
this.btnExit.Name = "btnExit";
|
||||
this.btnExit.Size = new System.Drawing.Size(53, 20);
|
||||
this.btnExit.TabIndex = 17;
|
||||
this.btnExit.Text = "取消";
|
||||
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(67, 137);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(89, 12);
|
||||
this.label4.TabIndex = 20;
|
||||
this.label4.Text = "3、至少8个字符";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(67, 119);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(155, 12);
|
||||
this.label3.TabIndex = 19;
|
||||
this.label3.Text = "2、必须包含小写或大写字母";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(7, 99);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(155, 12);
|
||||
this.label2.TabIndex = 18;
|
||||
this.label2.Text = "密码要求:1、必须包含数字";
|
||||
//
|
||||
// FrmUpdatePassword
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
|
||||
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(227, 187);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.btnExit);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmUpdatePassword";
|
||||
this.Text = "修改密码";
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox txtPassConfirm;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl3;
|
||||
private System.Windows.Forms.TextBox txtNewPass;
|
||||
private System.Windows.Forms.TextBox txtOldPass;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl2;
|
||||
private DevExpress.XtraEditors.LabelControl labelControl1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevExpress.XtraEditors.SimpleButton btnSave;
|
||||
private DevExpress.XtraEditors.SimpleButton btnExit;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
/******************************
|
||||
* 说明:修改密码
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-14
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
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.Data;
|
||||
using Lskj.Business;
|
||||
using Lskj.Model;
|
||||
using Lskj.Main3.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
/// <summary>
|
||||
/// 修改密码
|
||||
/// </summary>
|
||||
public partial class FrmUpdatePassword : BaseForm
|
||||
{
|
||||
Regex regex = new Regex(@"(?=.*[0-9]) #必须包含数字
|
||||
(?=.*[a-zA-Z]) #必须包含小写或大写字母
|
||||
(?=.*[^a-zA-Z0-9]) #必须包含符号
|
||||
.{8,18} #至少6个字符,最多18个字符
|
||||
", RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);
|
||||
|
||||
public FrmUpdatePassword()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:修改密码</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string beforePass = txtOldPass.Text.Trim();
|
||||
string afterPass = txtNewPass.Text.Trim();
|
||||
string comfirmPass = txtPassConfirm.Text.Trim();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(afterPass))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.NewPasswordNotNull);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(comfirmPass))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.ComfirmPasswordNotNull);
|
||||
return;
|
||||
}
|
||||
if (!afterPass.Equals(comfirmPass))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.PasswordInconformity);
|
||||
return;
|
||||
}
|
||||
|
||||
// 验证密码标准
|
||||
if (SystemInfo.Instance.VerfyPasswordStrength ? !regex.IsMatch(comfirmPass) : false)
|
||||
{
|
||||
MessageUtil.Show("密码不符合要求!");
|
||||
return;
|
||||
}
|
||||
|
||||
int result = MainImpl.UpdatePassword(ERPInfo.Instance.UserId, beforePass, afterPass);
|
||||
switch (result)
|
||||
{
|
||||
case 0: // 用户不存在
|
||||
MessageUtil.Show(ResourceKeys.UserNotFound);
|
||||
break;
|
||||
case 1: // 修改成功
|
||||
MessageUtil.Show(ResourceKeys.PasswordUpdateSuccess);
|
||||
Manager.StartForm();
|
||||
break;
|
||||
case 2: // 旧密码不正确.
|
||||
MessageUtil.Show(ResourceKeys.OldPasswordFault);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show("修改密码出错!" + Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:退出修改</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
2018-06-13
|
||||
1. A 增加 PDF签名模块.
|
||||
2. F 修复 表格查找单元格显示不全问题.
|
||||
3. F 修复 Excel模版显隐调整.
|
||||
4. F 修复 单据审批配置编辑字段不可编辑问题.
|
||||
|
||||
2018-06-08
|
||||
1. F 修复 修改帮助文档模块参数问题.
|
||||
2. A 增加 新增调用delphi程序.
|
||||
3. A 增加 基础档案上下结构,底部表格增加数据时,有默认值,自动匹配主表对应字段.
|
||||
|
||||
2018-06-07
|
||||
1. F 修复 附件双击下载,存放方式调整为按目录结构存放.
|
||||
2. A 增加 基础档案增加无视左侧表格、树结构直接添加数据(方便添加后在进行拖拽分类).
|
||||
3. F 修复 条码管理无法删除条件问题.
|
||||
4. A 增加 表格控件保存增加单引号保存.
|
||||
|
||||
2018-06-06
|
||||
1. A 新增 基础档案表格批量保存、修改时,提示所有失败记录原因.
|
||||
2. A 新增 基础档案左侧表格模版,增加默认刷新左侧数据.
|
||||
3. A 新增 基础档案新增多表头展示模版.
|
||||
4. F 修复 基础档案多表头,宽度为0的列不显示.
|
||||
5. A 增加 单据明细添加数据,检查列是否处于排序、是否处于筛选数据情况.
|
||||
6. A 增加 基础档案上下结构模版,增加查询等待提示.
|
||||
7. F 修复 基础档案上下结构模版,调整行改变刷新明细数据,同一行单元格选中不刷新明细数据.
|
||||
|
||||
2018-06-05
|
||||
1. F 修复 调整只有一个子系统时,进入主界面获取菜单失败问题.
|
||||
2. F 修复 去掉主界面Tab标签双击关闭功能
|
||||
3. F 修复 调整Lskj.PubModuleDetail.dll 默认不加载明细.
|
||||
4. F 修复 调整基础控件类型为空报错问题.
|
||||
5. F 新增 新增右键菜单调用单据时,单据显示名称按照默认配置显示.
|
||||
|
||||
2018-06-04
|
||||
1. A 新增 基础档案添加、修改界面,增加修改保存成功后是否关闭窗口配置.
|
||||
2. F 修复 审核失败时,增加具体错误信息.
|
||||
3. F 修复 单据来源条件配置,增加日志记录.
|
||||
4. F 修复 基础档案数据导入,增加导入失败日志记录.
|
||||
5. F 修复 基础档案数据导入,未能导入最后一条记录bug.
|
||||
|
||||
2018-06-01
|
||||
1. A 新增 富文本编辑框.
|
||||
2. A 新增 右键调用多标签时,按配置刷新数据.
|
||||
3. F 修复 基础档案->表格添加数据未保存,删除提示删除失败问题.
|
||||
4. F 修复 右键调用多标签时,新增数据保存失败问题.
|
||||
|
||||
2018-06-22
|
||||
1. A 新增 报表设计模版。
|
||||
2. F 修复 报表树结构模式下分组统计改为总统计
|
||||
@@ -0,0 +1,35 @@
|
||||
<GhostDoc>
|
||||
<SpellChecker>
|
||||
<IncludeExtensions>
|
||||
</IncludeExtensions>
|
||||
<IgnoreExtensions>
|
||||
</IgnoreExtensions>
|
||||
<IgnoreFiles>
|
||||
</IgnoreFiles>
|
||||
</SpellChecker>
|
||||
<HelpConfigurations selected="HelpFile">
|
||||
<HelpConfiguration name="HelpFile">
|
||||
<OutputPath>.\Help</OutputPath>
|
||||
<ImageFolderPath />
|
||||
<HtmlFormats>
|
||||
<HtmlHelp>true</HtmlHelp>
|
||||
<MSHelpViewer>false</MSHelpViewer>
|
||||
<MSHelp2>false</MSHelp2>
|
||||
<Website>false</Website>
|
||||
</HtmlFormats>
|
||||
<IncludeScopes>
|
||||
<Public>true</Public>
|
||||
<Internal>false</Internal>
|
||||
<Protected>false</Protected>
|
||||
<Private>false</Private>
|
||||
<Inherited>true</Inherited>
|
||||
<EnableTags>false</EnableTags>
|
||||
<TagList />
|
||||
</IncludeScopes>
|
||||
<ResolveCrefLinks>true</ResolveCrefLinks>
|
||||
<HeaderText />
|
||||
<FooterText />
|
||||
<SelectedProjects />
|
||||
</HelpConfiguration>
|
||||
</HelpConfigurations>
|
||||
</GhostDoc>
|
||||
@@ -0,0 +1,512 @@
|
||||
<?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>{38952054-C0A8-4FC9-91DD-A31E47A013CE}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.Main3</RootNamespace>
|
||||
<AssemblyName>Ls_NewERP</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<PublishUrl>发布\</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>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>1</WarningLevel>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Ls_ERP.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>logo.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<NoWin32Manifest>true</NoWin32Manifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.BonusSkins.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
</Reference>
|
||||
<Reference Include="Lskj.SweepCode, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Debug\Lskj.SweepCode.exe</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Ls_ERP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net" />
|
||||
<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" />
|
||||
<Reference Include="Xilium.CefGlue, Version=87.1.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\Xilium.CefGlue.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Xilium.CefGlue.WindowsForms, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\Xilium.CefGlue.WindowsForms.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Control\CornerLab.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\CornerLab.Designer.cs">
|
||||
<DependentUpon>CornerLab.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\MainPanelControlEx.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\MainPanelControlEx.Designer.cs">
|
||||
<DependentUpon>MainPanelControlEx.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\MenuBar2.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\MenuBar2.Designer.cs">
|
||||
<DependentUpon>MenuBar2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\Menu_Item.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\Menu_Item.Designer.cs">
|
||||
<DependentUpon>Menu_Item.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\NewMenuBar.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\NewMenuBar.Designer.cs">
|
||||
<DependentUpon>NewMenuBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\ResSelectForm.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\ResSelectForm.Designer.cs">
|
||||
<DependentUpon>ResSelectForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\SkinControl.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\SkinControl.Designer.cs">
|
||||
<DependentUpon>SkinControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\SkinItem.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\SkinItem.Designer.cs">
|
||||
<DependentUpon>SkinItem.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\SubItem.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\SubItem.Designer.cs">
|
||||
<DependentUpon>SubItem.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\SubItemForm.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\SubItemForm.Designer.cs">
|
||||
<DependentUpon>SubItemForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\TreeNodeCustom.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\TreeNodeCustom.Designer.cs">
|
||||
<DependentUpon>TreeNodeCustom.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Control\TreeViewCustom.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Control\TreeViewCustom.Designer.cs">
|
||||
<DependentUpon>TreeViewCustom.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmConfigLocal.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmConfigLocal.Designer.cs">
|
||||
<DependentUpon>FrmConfigLocal.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmConfig.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmConfig.Designer.cs">
|
||||
<DependentUpon>FrmConfig.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmConfigSet.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmConfigSet.Designer.cs">
|
||||
<DependentUpon>FrmConfigSet.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmLogin.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmLogin.Designer.cs">
|
||||
<DependentUpon>FrmLogin.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmPassword.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmPassword.Designer.cs">
|
||||
<DependentUpon>FrmPassword.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmSkins.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmSkins.Designer.cs">
|
||||
<DependentUpon>FrmSkins.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmSubSystem.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmSubSystem.Designer.cs">
|
||||
<DependentUpon>FrmSubSystem.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmSwap.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmSwap.Designer.cs">
|
||||
<DependentUpon>FrmSwap.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUpdatePassword.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUpdatePassword.Designer.cs">
|
||||
<DependentUpon>FrmUpdatePassword.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Model\BitMapHelper.cs" />
|
||||
<Compile Include="Model\Manager.cs" />
|
||||
<Compile Include="Model\winApi.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Control\CornerLab.resx">
|
||||
<DependentUpon>CornerLab.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\MainPanelControlEx.resx">
|
||||
<DependentUpon>MainPanelControlEx.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\MenuBar2.resx">
|
||||
<DependentUpon>MenuBar2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\Menu_Item.resx">
|
||||
<DependentUpon>Menu_Item.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\NewMenuBar.resx">
|
||||
<DependentUpon>NewMenuBar.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\ResSelectForm.resx">
|
||||
<DependentUpon>ResSelectForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\SkinControl.resx">
|
||||
<DependentUpon>SkinControl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\SkinItem.resx">
|
||||
<DependentUpon>SkinItem.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\SubItem.resx">
|
||||
<DependentUpon>SubItem.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\SubItemForm.resx">
|
||||
<DependentUpon>SubItemForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\TreeNodeCustom.resx">
|
||||
<DependentUpon>TreeNodeCustom.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Control\TreeViewCustom.resx">
|
||||
<DependentUpon>TreeViewCustom.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmConfig.resx">
|
||||
<DependentUpon>FrmConfig.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmConfigLocal.resx">
|
||||
<DependentUpon>FrmConfigLocal.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmConfigSet.resx">
|
||||
<DependentUpon>FrmConfigSet.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmLogin.resx">
|
||||
<DependentUpon>FrmLogin.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmPassword.resx">
|
||||
<DependentUpon>FrmPassword.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmSkins.resx">
|
||||
<DependentUpon>FrmSkins.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmSubSystem.resx">
|
||||
<DependentUpon>FrmSubSystem.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmSwap.resx">
|
||||
<DependentUpon>FrmSwap.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUpdatePassword.resx">
|
||||
<DependentUpon>FrmUpdatePassword.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>
|
||||
<Content Include="logo.ico" />
|
||||
<Content Include="ms.ico" />
|
||||
<Content Include="ReadMe.txt" />
|
||||
<Content Include="Log.txt" />
|
||||
<None Include="Resources\default_icon.png" />
|
||||
<None Include="Resources\登录.png" />
|
||||
<None Include="Resources\newlogin.png" />
|
||||
<None Include="Resources\circle.png" />
|
||||
<None Include="Resources\Cancel_32x32.png" />
|
||||
<None Include="Resources\Cancel_16x16.png" />
|
||||
<None Include="Resources\foggy.png" />
|
||||
<None Include="Resources\glassoceans.png" />
|
||||
<None Include="Resources\highcontrast.png" />
|
||||
<None Include="Resources\imaginary.png" />
|
||||
<None Include="Resources\lilian.png" />
|
||||
<None Include="Resources\liquid_sky.png" />
|
||||
<None Include="Resources\london_liquid_sky.png" />
|
||||
<None Include="Resources\metropolis.png" />
|
||||
<None Include="Resources\metropolis_dark.png" />
|
||||
<None Include="Resources\money_twins.png" />
|
||||
<None Include="Resources\office_2007_black.png" />
|
||||
<None Include="Resources\office_2007_blue.png" />
|
||||
<None Include="Resources\office_2007_green.png" />
|
||||
<None Include="Resources\office_2007_pink.png" />
|
||||
<None Include="Resources\office_2007_silver.png" />
|
||||
<None Include="Resources\seven.png" />
|
||||
<None Include="Resources\sharp.png" />
|
||||
<None Include="Resources\sharp_plus.png" />
|
||||
<None Include="Resources\stardust.png" />
|
||||
<None Include="Resources\the_asphalt_world.png" />
|
||||
<None Include="Resources\pumpkin.png" />
|
||||
<None Include="Resources\springtime.png" />
|
||||
<None Include="Resources\summer.png" />
|
||||
<None Include="Resources\valentine.png" />
|
||||
<None Include="Resources\xmas_blue.png" />
|
||||
<None Include="Resources\mcskin.png" />
|
||||
<None Include="Resources\blueprint.png" />
|
||||
<None Include="Resources\whiteprint.png" />
|
||||
<None Include="Resources\office_2013.png" />
|
||||
<None Include="Resources\devexpress_2013_gray.png" />
|
||||
<None Include="Resources\devexpress_2013_light_gray.png" />
|
||||
<None Include="Resources\office_2010_bule.png" />
|
||||
<None Include="Resources\office_2010_black.png" />
|
||||
<None Include="Resources\office_2010_silver.png" />
|
||||
<None Include="Resources\seven_classic.png" />
|
||||
<None Include="Resources\vs_2010.png" />
|
||||
<None Include="Resources\black.png" />
|
||||
<None Include="Resources\blue.png" />
|
||||
<None Include="Resources\caramel.png" />
|
||||
<None Include="Resources\caffee.png" />
|
||||
<None Include="Resources\darkside.png" />
|
||||
<None Include="Resources\darkroom.png" />
|
||||
<None Include="Resources\Devexpress 2013 Gray.png" />
|
||||
<None Include="Resources\Office2013_48x48.png" />
|
||||
<None Include="Resources\window_select.png" />
|
||||
<None Include="Resources\window_default.png" />
|
||||
<None Include="Resources\version.png" />
|
||||
<None Include="Resources\user.png" />
|
||||
<None Include="Resources\tab_select.png" />
|
||||
<None Include="Resources\tab_default.png" />
|
||||
<None Include="Resources\tab_bg.png" />
|
||||
<None Include="Resources\swapuser.png" />
|
||||
<None Include="Resources\sub_tip_backgound.png" />
|
||||
<None Include="Resources\sub_sczw.png" />
|
||||
<None Include="Resources\sub_scl.png" />
|
||||
<None Include="Resources\sub_scgx.png" />
|
||||
<None Include="Resources\sub_pzjk.png" />
|
||||
<None Include="Resources\sub_page_select.png" />
|
||||
<None Include="Resources\sub_page_hover.png" />
|
||||
<None Include="Resources\sub_page_default.png" />
|
||||
<None Include="Resources\sub_khgx.png" />
|
||||
<None Include="Resources\sub_khgl.png" />
|
||||
<None Include="Resources\sub_gdzc.png" />
|
||||
<None Include="Resources\sub_cggl.png" />
|
||||
<None Include="Resources\sub_btn_select.png" />
|
||||
<None Include="Resources\sub_btn_min_select.png" />
|
||||
<None Include="Resources\sub_btn_min.png" />
|
||||
<None Include="Resources\sub_btn_default.png" />
|
||||
<None Include="Resources\sub_backgroud.png" />
|
||||
<None Include="Resources\sub_add.png" />
|
||||
<None Include="Resources\split.png" />
|
||||
<None Include="Resources\smail_select.png" />
|
||||
<None Include="Resources\smail_default.png" />
|
||||
<None Include="Resources\setting.png" />
|
||||
<None Include="Resources\search_select.png" />
|
||||
<None Include="Resources\search_default.png" />
|
||||
<None Include="Resources\right.png" />
|
||||
<None Include="Resources\node3_select.png" />
|
||||
<None Include="Resources\node3_move.png" />
|
||||
<None Include="Resources\node3_default.png" />
|
||||
<None Include="Resources\node2_chaild_select.png" />
|
||||
<None Include="Resources\node2_child_move.png" />
|
||||
<None Include="Resources\node2_default_move.png" />
|
||||
<None Include="Resources\node_select.png" />
|
||||
<None Include="Resources\node_move.png" />
|
||||
<None Include="Resources\node_default.png" />
|
||||
<None Include="Resources\menu_default_4.png" />
|
||||
<None Include="Resources\menu_default_3.png" />
|
||||
<None Include="Resources\menu_default_2.png" />
|
||||
<None Include="Resources\menu_default_1.png" />
|
||||
<None Include="Resources\max_select.png" />
|
||||
<None Include="Resources\max_default.png" />
|
||||
<None Include="Resources\logo_sm.png" />
|
||||
<None Include="Resources\logo.png" />
|
||||
<None Include="Resources\login_close_select.png" />
|
||||
<None Include="Resources\login_close_default.png" />
|
||||
<None Include="Resources\login_btn_select.png" />
|
||||
<None Include="Resources\login_btn.png" />
|
||||
<None Include="Resources\login.png" />
|
||||
<None Include="Resources\left_select.png" />
|
||||
<None Include="Resources\left_default.png" />
|
||||
<None Include="Resources\设置.png" />
|
||||
<None Include="Resources\默认图标.png" />
|
||||
<None Include="Resources\close_select.png" />
|
||||
<None Include="Resources\close_default.png" />
|
||||
<None Include="Resources\backup.png" />
|
||||
<None Include="Resources\arrows.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Lskj.AutoUpdate\Lskj.AutoUpdate.csproj">
|
||||
<Project>{7FDD63DA-78E2-4093-B51E-060491DDFD5A}</Project>
|
||||
<Name>Lskj.AutoUpdate</Name>
|
||||
</ProjectReference>
|
||||
<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.Data\Lskj.Data.csproj">
|
||||
<Project>{308B9B18-9BE2-495C-9C64-EED81D567813}</Project>
|
||||
<Name>Lskj.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
|
||||
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
|
||||
<Name>Lskj.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
|
||||
<Project>{A51BF642-6543-4DE3-8948-83F558B72BD4}</Project>
|
||||
<Name>Lskj.Util</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4 %28x86 和 x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<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>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.4.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 4.5</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- 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,90 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.Main.Model
|
||||
{
|
||||
class AutoSizeChange
|
||||
{
|
||||
private static double _FormHeight = (double)(Screen.PrimaryScreen.Bounds.Height) * 1.2 / (double)1080;
|
||||
private static double _FormWidth = (double)(Screen.PrimaryScreen.Bounds.Width) * 1.2 / (double)1920;
|
||||
public static void ControllInitializeSize(System.Windows.Forms.Control Control)
|
||||
{
|
||||
foreach (System.Windows.Forms.Control ctrol in Control.Controls)
|
||||
{
|
||||
if (ctrol.Controls.Count > 0)
|
||||
{
|
||||
if (ctrol is Panel || ctrol is DevExpress.XtraEditors.PanelControl || ctrol is UserControl)
|
||||
{
|
||||
ctrol.Width = Convert.ToInt32(ctrol.Width * _FormWidth);
|
||||
ctrol.Height = Convert.ToInt32(ctrol.Height * _FormHeight);
|
||||
ctrol.Location = new Point(Convert.ToInt32(ctrol.Location.X * _FormWidth), Convert.ToInt32(ctrol.Location.Y * _FormHeight));
|
||||
//ctrol.Font = new Font(ctrol.Font.OriginalFontName, Convert.ToSingle(ctrol.Font.Size * _FormHeight * _FormWidth * 1.3));
|
||||
}
|
||||
if (ctrol is Lskj.Control.AutoGridLookUp)
|
||||
{
|
||||
ctrol.Width = Convert.ToInt32(ctrol.Width * _FormWidth);
|
||||
ctrol.Height = Convert.ToInt32(ctrol.Height * _FormHeight);
|
||||
ctrol.Location = new Point(Convert.ToInt32(ctrol.Location.X * _FormWidth), Convert.ToInt32(ctrol.Location.Y * _FormHeight));
|
||||
ctrol.Font = new Font(ctrol.Font.OriginalFontName, Convert.ToSingle(ctrol.Font.SizeInPoints * _FormHeight * _FormWidth));
|
||||
}
|
||||
ControllInitializeSize(ctrol);
|
||||
}
|
||||
else
|
||||
{
|
||||
SizeChange(ctrol);
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void SizeChange(System.Windows.Forms.Control Control)
|
||||
{
|
||||
if (Control.BackgroundImage != null)
|
||||
{
|
||||
Image image = Control.BackgroundImage;
|
||||
Size size = new Size(Convert.ToInt32(Control.BackgroundImage.Width * _FormWidth), Convert.ToInt32(Control.BackgroundImage.Height * _FormHeight));
|
||||
Control.BackgroundImage = resizeImage(image, size);
|
||||
}
|
||||
|
||||
Control.Width = Convert.ToInt32(Control.Width * _FormWidth);
|
||||
Control.Height = Convert.ToInt32(Control.Height * _FormHeight);
|
||||
Control.Location = new Point(Convert.ToInt32(Control.Location.X * _FormWidth), Convert.ToInt32(Control.Location.Y * _FormHeight));
|
||||
Control.Font = new Font(Control.Font.OriginalFontName, Convert.ToSingle(Control.Font.SizeInPoints * _FormHeight * _FormWidth));
|
||||
}
|
||||
private static System.Drawing.Image resizeImage(System.Drawing.Image imgToResize, Size size)
|
||||
{
|
||||
//获取图片宽度
|
||||
int sourceWidth = imgToResize.Width;
|
||||
//获取图片高度
|
||||
int sourceHeight = imgToResize.Height;
|
||||
|
||||
float nPercent = 0;
|
||||
float nPercentW = 0;
|
||||
float nPercentH = 0;
|
||||
//计算宽度的缩放比例
|
||||
nPercentW = ((float)size.Width / (float)sourceWidth);
|
||||
//计算高度的缩放比例
|
||||
nPercentH = ((float)size.Height / (float)sourceHeight);
|
||||
|
||||
if (nPercentH < nPercentW)
|
||||
nPercent = nPercentH;
|
||||
else
|
||||
nPercent = nPercentW;
|
||||
//期望的宽度
|
||||
int destWidth = (int)(sourceWidth * nPercent);
|
||||
//期望的高度
|
||||
int destHeight = (int)(sourceHeight * nPercent);
|
||||
|
||||
Bitmap b = new Bitmap(destWidth, destHeight);
|
||||
Graphics g = Graphics.FromImage((System.Drawing.Image)b);
|
||||
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||
//绘制图像
|
||||
g.DrawImage(imgToResize, 0, 0, destWidth, destHeight);
|
||||
g.Dispose();
|
||||
return (System.Drawing.Image)b;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Main3.Properties;
|
||||
using Lskj.Util;
|
||||
|
||||
namespace Lskj.Main3.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 资源图片管理类
|
||||
/// </summary>
|
||||
public static class BitMapHelper
|
||||
{
|
||||
#region 本地资源文件
|
||||
/// <summary>
|
||||
/// 获取本地资源文件
|
||||
/// </summary>
|
||||
/// <param name="mapEnum"></param>
|
||||
/// <returns></returns>
|
||||
public static Bitmap getBitmap(BitMapEnum mapEnum)
|
||||
{
|
||||
Bitmap bitmap = null;
|
||||
try
|
||||
{
|
||||
FileStream fs = File.OpenRead(getBitMapPath(mapEnum)); //OpenRead
|
||||
|
||||
int filelength = (int)fs.Length; //获得文件长度
|
||||
Byte[] image = new Byte[filelength]; //建立一个字节数组
|
||||
fs.Read(image, 0, filelength); //按字节流读取
|
||||
Image result = Image.FromStream(fs);
|
||||
fs.Close();
|
||||
|
||||
bitmap = new Bitmap(result);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
switch (mapEnum)
|
||||
{
|
||||
case BitMapEnum.loginbg:
|
||||
bitmap = Resources.newlogin;
|
||||
break;
|
||||
case BitMapEnum.submenubg:
|
||||
bitmap = Resources.sub_backgroud;
|
||||
break;
|
||||
case BitMapEnum.submenubg_tip:
|
||||
bitmap = Resources.sub_tip_backgound;
|
||||
break;
|
||||
case BitMapEnum.logobg:
|
||||
bitmap = Resources.logo;
|
||||
break;
|
||||
case BitMapEnum.logo2bg:
|
||||
bitmap = Resources.logo;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return bitmap;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取文件路径
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private static string getBitMapPath(BitMapEnum mapEnum)
|
||||
{
|
||||
string bitmapPath = string.Empty;
|
||||
switch (mapEnum)
|
||||
{
|
||||
case BitMapEnum.loginbg:
|
||||
bitmapPath = BitMapType.Loginbg;
|
||||
break;
|
||||
case BitMapEnum.submenubg:
|
||||
bitmapPath = BitMapType.Submenubg;
|
||||
break;
|
||||
case BitMapEnum.submenubg_tip:
|
||||
bitmapPath = BitMapType.Submenubg_tip;
|
||||
break;
|
||||
case BitMapEnum.logobg:
|
||||
bitmapPath = BitMapType.Logobg;
|
||||
break;
|
||||
case BitMapEnum.logo2bg:
|
||||
bitmapPath = BitMapType.Logo2bg;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return PubUtil.BitMapPath + bitmapPath;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 图片存放地址
|
||||
/// </summary>
|
||||
public static class BitMapType
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录背景图
|
||||
/// </summary>
|
||||
public static string Loginbg = @"Login\newlogin.png";
|
||||
/// <summary>
|
||||
/// 子系统背景图
|
||||
/// </summary>
|
||||
public static string Submenubg = @"Submenu\submenu.png";
|
||||
/// <summary>
|
||||
/// 子系统背景图提示
|
||||
/// </summary>
|
||||
public static string Submenubg_tip = @"Submenu\submenu_tip.png";
|
||||
/// <summary>
|
||||
/// logo背景图
|
||||
/// </summary>
|
||||
public static string Logobg = @"Main\logo.png";
|
||||
/// <summary>
|
||||
/// logo2背景图
|
||||
/// </summary>
|
||||
public static string Logo2bg = @"Main2\logo.png";
|
||||
}
|
||||
/// <summary>
|
||||
/// 图片类型
|
||||
/// </summary>
|
||||
public enum BitMapEnum
|
||||
{
|
||||
loginbg,
|
||||
submenubg,
|
||||
submenubg_tip,
|
||||
logobg,
|
||||
logo2bg
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,487 @@
|
||||
/******************************
|
||||
* 说明:主程序启动相关管理类
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-09
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Core;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using System.Threading;
|
||||
using Lskj.Business;
|
||||
using System.Data;
|
||||
using Lskj.Model;
|
||||
using DevExpress.XtraTab;
|
||||
using Lskj.Util;
|
||||
using DevExpress.Utils;
|
||||
using System.Diagnostics;
|
||||
using Lskj.Business.Impl;
|
||||
using System.IO;
|
||||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
|
||||
|
||||
namespace Lskj.Main3.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 主程序启动相关管理类
|
||||
/// </summary>
|
||||
public sealed class Manager
|
||||
{
|
||||
/// <summary>
|
||||
/// 主程序
|
||||
/// </summary>
|
||||
private static FrmMain _frmMain = null;
|
||||
public static XtraTabControl TabMain = null;
|
||||
public static int MinusTheHeight = 0;
|
||||
public static int frmHeight = 0;
|
||||
public static string BsName;
|
||||
public static string BsUrl;
|
||||
/// <summary>
|
||||
/// 记录当前打开的窗口
|
||||
/// </summary>
|
||||
public static Dictionary<string, DllModule> ModuleForms = new Dictionary<string, DllModule>();
|
||||
/// <summary>
|
||||
/// <para>说明:程序启动入口</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public static void StartForm()
|
||||
{
|
||||
bool isStart = true;
|
||||
// 加载Splash动画界面
|
||||
SplashForm.ShowForm();
|
||||
//CheckLocalConfig();
|
||||
// C#数据库连接检查
|
||||
if (!DBConfig.Instance.CreateConnection(DBConfig.Instance.Connection))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnConnectServer);
|
||||
SplashForm.HideForm();
|
||||
DialogResult result = RunConfigForm();
|
||||
isStart = result == DialogResult.OK;
|
||||
}
|
||||
if (isStart)
|
||||
{
|
||||
// Delphi数据库连接检查
|
||||
if (DelphiHelper.Delphi_Init(new StringBuilder(DBConfig.Instance.GetDelphiConnection(DBConfig.Instance.dephiConnection))) == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnConnectServer + "[By Delphi]");
|
||||
SplashForm.HideForm();
|
||||
RunConfigForm();
|
||||
return;
|
||||
}
|
||||
SplashForm.HideForm();
|
||||
// 汉化dev控件
|
||||
BaseResources.Localization(LocalizationType.CHS);
|
||||
// 启动登录页面
|
||||
DialogResult result = RunLoginForm();
|
||||
//登陆正确方可继续下一步
|
||||
if (ERPInfo.Instance.LoginResult == false)
|
||||
return;
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
DataTable table = MainImpl.EnableSubSystem();
|
||||
ERPInfo.Instance.SubMenuCount = table.Rows.Count;
|
||||
if (table.Rows.Count == 1)
|
||||
{
|
||||
ERPInfo.Instance.SubSysId = table.Rows[0]["SubSysId"] + "";
|
||||
ERPInfo.Instance.SubSysName = table.Rows[0]["SubSysName"] + "";
|
||||
}
|
||||
|
||||
ReStartMain();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SplashForm.HideForm();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:重新启动</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="skipMenu">是否跳过子系统选择(适用于切换用户).</param>
|
||||
public static void ReStartMain(bool skipMenu = false)
|
||||
{
|
||||
|
||||
if (_frmMain != null)
|
||||
{
|
||||
_frmMain.Close();
|
||||
_frmMain.Dispose();
|
||||
_frmMain = null;
|
||||
}
|
||||
|
||||
bool isStart = true;
|
||||
bool isOpenBs = false;
|
||||
DialogResult result;
|
||||
if (ERPInfo.Instance.SubMenuCount > 1 && !skipMenu)
|
||||
{
|
||||
// 进入子系统界面
|
||||
result = RunSubSystemForm();
|
||||
isStart = result == DialogResult.OK;
|
||||
isOpenBs = result == DialogResult.Yes;
|
||||
}
|
||||
if (isStart)
|
||||
{
|
||||
// 直接进入主界面
|
||||
RunMainForm();
|
||||
if (ERPInfo.Instance.SubMenuCount > 1)
|
||||
{
|
||||
ReStartMain();
|
||||
}
|
||||
else
|
||||
{
|
||||
ExitSystem();
|
||||
}
|
||||
}
|
||||
else if (isOpenBs)
|
||||
{
|
||||
string ReBsUrl = BsUrl.Replace("{userCode}", ERPInfo.Instance.LoginAccount);
|
||||
ReBsUrl = ReBsUrl.Replace("{password}", ERPInfo.Instance.Password);
|
||||
string url = ReplaceHelper.ReplaceUserInfo(ReBsUrl);
|
||||
// 固定传入参数(窗口标题、操作员ID、操作员名称、权限、模版编号)
|
||||
string[] defaultArgs = string.Format(ModuleArgs.DefaultArgs, BsName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "", "").Split('~');
|
||||
string[] menuArgs = new string[] { "", " ", url };
|
||||
string[] args = defaultArgs.Concat(menuArgs).ToArray();
|
||||
IForm form = FormHelper.LoadDllForm("Lskj.PubBrower2.dll", args);
|
||||
form.SubForm.WindowState = FormWindowState.Maximized;
|
||||
form.SubForm.ShowDialog();
|
||||
if (ERPInfo.Instance.SubMenuCount > 1)
|
||||
{
|
||||
ReStartMain();
|
||||
}
|
||||
else
|
||||
{
|
||||
ExitSystem();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ExitSystem();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:打开模块</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-18 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="menuId">The menu identifier.</param>
|
||||
/// <param name="menuName">Name of the menu.</param>
|
||||
/// <param name="modelFlag">The model flag.</param>
|
||||
/// <param name="
|
||||
/// Params">The URL parameters.</param>
|
||||
public static void OpenModule(string menuId, string menuName, string dllName, string modelFlag, string urlParams)
|
||||
{
|
||||
try
|
||||
{
|
||||
// 验证参数
|
||||
if (string.IsNullOrWhiteSpace(menuId) || string.IsNullOrWhiteSpace(dllName))
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.NotFoundMenu);
|
||||
return;
|
||||
}
|
||||
// 验证权限
|
||||
int purview = MainImpl.GetUserPurviewsByMenuId(menuId);
|
||||
if (purview == 0)
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnPurview);
|
||||
return;
|
||||
}
|
||||
//LogUtil.WriteDebug(menuId.ToString(), "操作模块", menuName, menuName);
|
||||
LogUtil.WriteDebug(modelFlag.ToString(), "操作模块", menuName, menuName, menuId.ToString());
|
||||
DllModule module = new DllModule
|
||||
{
|
||||
DllName = ReplaceDllFileName(dllName),
|
||||
Id = menuId,
|
||||
Name = menuName
|
||||
};
|
||||
string[] args = new string[]{
|
||||
menuName,
|
||||
ERPInfo.Instance.UserId,
|
||||
ERPInfo.Instance.UserName,
|
||||
purview + "",
|
||||
urlParams,
|
||||
menuId
|
||||
};
|
||||
dllName = MainImpl.GetDefaultValue(dllName);
|
||||
if (SystemInfo.Instance.SoftOpenMode)
|
||||
{
|
||||
foreach (XtraTabPage tablepage in TabMain.TabPages)
|
||||
{
|
||||
if (tablepage.Text == menuName)
|
||||
{
|
||||
MessageUtil.Show("已设置不能打开多个相同模块!");
|
||||
TabMain.SelectedTabPage = tablepage;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dllName.ToLower().Contains(".exe"))
|
||||
{
|
||||
WinHelper.WinExec(dllName);
|
||||
}
|
||||
else if (dllName.ToLower().IndexOf("http:", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
dllName.ToLower().IndexOf("www.", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
dllName.ToLower().IndexOf("ftp:", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
Process.Start(dllName);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dllName.ToLower().EndsWith(".lsp"))
|
||||
{
|
||||
//MessageBox.Show(PubUtil.AbsolutelyLibPath + dllName+" "+ menuName+" "+purview+" "+urlParams);
|
||||
// 打开delphi程序
|
||||
DelphiHelper.LoadDelphiDll(PubUtil.AbsolutelyLibPath + dllName, "", menuName, "", "", purview, urlParams);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 打开module程序
|
||||
AddModuleToTab(module, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:添加模块到tab中</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="tabMain">The tab main.</param>
|
||||
/// <param name="module">The module.</param>
|
||||
/// <param name="args">The arguments.</param>
|
||||
public static void AddModuleToTab(DllModule module, string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
IForm iform = FormHelper.LoadDllForm(module.DllName, args);
|
||||
// 菜单打开的模块默认最大化,界面FormState设置为Normal模式,否则会出现界面不是全屏,会显示默认阴影界面
|
||||
iform.SubForm.WindowState = _frmMain.WindowState;
|
||||
Form form = iform.SubForm; // 表示组成应用程序的用户界面的窗口或对话框。
|
||||
string guid = Guid.NewGuid().ToString();
|
||||
|
||||
|
||||
XtraTabPage tp = new XtraTabPage();
|
||||
tp.Text = module.Name;
|
||||
tp.Tag = guid;
|
||||
|
||||
// 这个必须有不然会提示:"不能向tabControl中添加顶级控件"
|
||||
form.TopLevel = false;
|
||||
form.Location = new Point(0, 0);
|
||||
//form.Dock = DockStyle.Fill;
|
||||
form.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
|
||||
form.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height - MinusTheHeight;
|
||||
form.FormBorderStyle = FormBorderStyle.None;
|
||||
tp.AutoScroll = true;
|
||||
tp.Controls.Add(form);
|
||||
tp.ShowCloseButton = DefaultBoolean.True;
|
||||
tp.Dock = DockStyle.Fill;
|
||||
TabMain.TabPages.Add(tp);
|
||||
TabMain.SelectedTabPage = tp;
|
||||
|
||||
module.Tag = "1";
|
||||
module.ModuleForm = form;
|
||||
|
||||
form.Show();
|
||||
ModuleForms.Add(guid, module);
|
||||
//LastModuleForm.Add(module);
|
||||
//Lskj.Main3.Model.AutoSizeChange.ControllInitializeSize(form);//调整控件大小
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(ex.InnerException != null ? ex.InnerException.Message : ex.Message);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//LogUtil.WriteError("打开" + module.Name + "模块失败!", ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:特殊dll模块处理</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-20 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="dllName">Name of the DLL.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
private static string ReplaceDllFileName(string dllName)
|
||||
{
|
||||
switch (dllName.ToLower().Trim())
|
||||
{
|
||||
case "pubspec.dll":
|
||||
dllName = "Lskj.PubSpec.dll";
|
||||
break;
|
||||
}
|
||||
return dllName;
|
||||
}
|
||||
private static void ExitSystem()
|
||||
{
|
||||
try
|
||||
{
|
||||
// 退出系统
|
||||
if (DBConfig.Instance.NoticeExit)
|
||||
{
|
||||
Process[] p1 = Process.GetProcessesByName("Ls_Notice");
|
||||
foreach (Process item in p1)
|
||||
item.Kill();
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:启动配置窗口</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private static DialogResult RunConfigForm()
|
||||
{
|
||||
FrmConfigSet frmConfigSet = new FrmConfigSet();
|
||||
return frmConfigSet.ShowDialog();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:打开登录界面</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-12 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>DialogResult.</returns>
|
||||
private static DialogResult RunLoginForm()
|
||||
{
|
||||
FrmLogin frmLogin = new FrmLogin();
|
||||
return frmLogin.ShowDialog();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:打开子系统</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>System.Windows.Forms.DialogResult.</returns>
|
||||
private static DialogResult RunSubSystemForm()
|
||||
{
|
||||
FrmSubSystem subSystem = new FrmSubSystem();
|
||||
DialogResult dialogResult = subSystem.ShowDialog();
|
||||
BsName = subSystem.BsName;
|
||||
BsUrl = subSystem.BsUrl;
|
||||
return dialogResult;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:打开主程序</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>DialogResult.</returns>
|
||||
private static DialogResult RunMainForm()
|
||||
{
|
||||
_frmMain = new FrmMain();
|
||||
return _frmMain.ShowDialog();
|
||||
}
|
||||
|
||||
#region 初始化服务器直接连接
|
||||
/// <summary>
|
||||
/// <para>说明:初始化服务器直接连接</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-08-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>DialogResult.</returns>
|
||||
private static void CheckLocalConfig()
|
||||
{
|
||||
try
|
||||
{
|
||||
string file = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SystemResources.ini");
|
||||
if (File.Exists(file))
|
||||
{
|
||||
string configFlag = IniHelper.Read("SystemResources.ini", "FrmConfigFlag");
|
||||
if (configFlag.Equals("1"))
|
||||
{
|
||||
string lastIPPort = string.Format("{0}:{1}", IniHelper.Read("SystemResources.ini", "LocalLastIP"), IniHelper.Read("SystemResources.ini", "LocalLastPort"));
|
||||
string downloadAESStrKey = string.Format("DownloadAESStr_{0}", lastIPPort);
|
||||
string[] downloadAESStrValue = IniHelper.Read("SystemResources.ini", downloadAESStrKey).Split('^');
|
||||
string downloadAESStr = downloadAESStrValue.Length == 2 ? downloadAESStrValue[1] : "";
|
||||
if (!string.IsNullOrEmpty(downloadAESStr))
|
||||
{
|
||||
string args = AESUtil.Decrypt(downloadAESStr);
|
||||
string[] controlAfgs = args.Split('^');
|
||||
if (controlAfgs != null && controlAfgs.Length == 5)
|
||||
{
|
||||
DBConfig.Instance.ServerName = controlAfgs[0];
|
||||
DBConfig.Instance.DataBase = controlAfgs[1];
|
||||
string Connection = "Server={0};Database={1};Persist Security Info=True;User ID=" + controlAfgs[2] + ";Password=" + controlAfgs[3] + ";Connection Timeout=5;MultipleActiveResultSets=true";
|
||||
string dephistr = "Provider=SQLOLEDB.1;Server={0};Database={1};Persist Security Info=True;User ID=" + controlAfgs[2] + ";Password=" + controlAfgs[3] + ";Connection Timeout=5";
|
||||
Connection = AESUtil.Encrypt(Connection);
|
||||
dephistr = AESUtil.Encrypt(dephistr);
|
||||
DBConfig.Instance.dephiConnection = dephistr;
|
||||
if (DBConfig.Instance.CreateConnection(Connection))
|
||||
{
|
||||
DBConfig.Instance.Connection = Connection;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,403 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace Lskj.Main3.Model
|
||||
{
|
||||
public static class WinAPI
|
||||
{
|
||||
#region 常量声明
|
||||
|
||||
public const int GWL_WNDPROC = -4; //得到窗口回调函数的地址,或者句柄。得到后必须使用CallWindowProc函数来调用
|
||||
public const int GWL_HINSTANCE = -6; //得到应用程序运行实例的句柄
|
||||
public const int GWL_HWNDPARENT = -8; //得到父窗口的句柄
|
||||
public const int GWL_STYLE = -16; //得到窗口风格
|
||||
public const int GWL_EXSTYLE = -20; //得到扩展的窗口风格
|
||||
public const int GWL_USERDATA = -21; //得到和窗口相关联的32位的值(每一个窗口都有一个有意留给创建窗口的应用程序是用的32位的值)
|
||||
public const int GWL_ID = -12; //得到窗口的标识符
|
||||
|
||||
public const int DWL_MSGRESULT = 0;
|
||||
public const int DWL_DLGPROC = 4;
|
||||
public const int DWL_USER = 8;
|
||||
|
||||
public const int HWND_BOTTOM = 1;
|
||||
public const int HWND_TOP = 0;
|
||||
public const int HWND_TOPMOST = -1;
|
||||
public const int HWND_NOTOPMOST = -2;
|
||||
|
||||
public const int SWP_DRAW = 0x20;
|
||||
public const int SWP_HIDEWINDOW = 0x80;
|
||||
public const int SWP_NOACTIVATE = 0x10;
|
||||
public const int SWP_NOMOVE = 0x2;
|
||||
public const int SWP_NOREDRAW = 0x8;
|
||||
public const int SWP_NOSIZE = 0x1;
|
||||
public const int SWP_NOZORDER = 0x4;
|
||||
public const int SWP_SHOWWINDOW = 0x40;
|
||||
|
||||
public const int WS_OVERLAPPED = 0;
|
||||
public const int WS_BORDER = 0x800000;
|
||||
public const int WS_CAPTION = 0xC00000;
|
||||
public const int WS_CHILD = 0x40000000;
|
||||
public const int WS_DLGFRAME = 0x400000;
|
||||
public const int WS_SIZEBOX = 0x40000;
|
||||
public const int WS_MAXIMIZEBOX = 0x10000;
|
||||
public const int WS_MINIMIZEBOX = 0x20000;
|
||||
public const int WS_SYSMENU = 0x80000;
|
||||
public const int WS_HSCROLL = 0x100000;
|
||||
public const int WS_VSCROLL = 0x200000;
|
||||
|
||||
public const int WA_INACTIVE = 0;
|
||||
public const int WA_ACTIVE = 1;
|
||||
public const int WA_CLICKACTIVE = 2;
|
||||
public const int WM_NOTIFY = 0x004E;
|
||||
|
||||
public const int WM_ACTIVATE = 0x0006;
|
||||
public const int WM_NULL = 0x0000;
|
||||
public const int WM_CREATE = 0x0001;
|
||||
public const int WM_DESTROY = 0x0002;
|
||||
public const int WM_MOVE = 0x0003;
|
||||
public const int WM_SIZE = 0x0005;
|
||||
public const int WM_SETFOCUS = 0x0007;
|
||||
public const int WM_MOUSEACTIVATE = 0x0021;
|
||||
public const int WM_CLOSE = 0x0010;
|
||||
public const int WM_QUIT = 0x0012;
|
||||
|
||||
public const int WM_KEYDOWN = 0x0100;
|
||||
public const int WM_KEYUP = 0x0101;
|
||||
public const int WM_CHAR = 0x0102;
|
||||
public const int WM_DEADCHAR = 0x0103;
|
||||
public const int WM_SYSKEYDOWN = 0x0104;
|
||||
public const int WM_SYSKEYUP = 0x0105;
|
||||
public const int WM_SYSCHAR = 0x0106;
|
||||
public const int WM_SYSDEADCHAR = 0x0107;
|
||||
public const int WM_UNICHAR = 0x0109;
|
||||
public const int WM_KEYLAST = 0x0109;
|
||||
public const int UNICODE_NOCHAR = 0xFFFF;
|
||||
|
||||
public const int MK_LBUTTON = 0x0001;
|
||||
public const int MK_RBUTTON = 0x0002;
|
||||
public const int MK_SHIFT = 0x0004;
|
||||
public const int MK_CONTROL = 0x0008;
|
||||
public const int MK_MBUTTON = 0x0010;
|
||||
|
||||
public const int WM_MOUSEFIRST = 0x0200;
|
||||
public const int WM_MOUSEMOVE = 0x0200;
|
||||
public const int WM_LBUTTONDOWN = 0x0201;
|
||||
public const int WM_LBUTTONUP = 0x0202;
|
||||
public const int WM_LBUTTONDBLCLK = 0x0203;
|
||||
public const int WM_RBUTTONDOWN = 0x0204;
|
||||
public const int WM_RBUTTONUP = 0x0205;
|
||||
public const int WM_RBUTTONDBLCLK = 0x0206;
|
||||
public const int WM_MBUTTONDOWN = 0x0207;
|
||||
public const int WM_MBUTTONUP = 0x0208;
|
||||
public const int WM_MBUTTONDBLCLK = 0x0209;
|
||||
public const int WM_MOUSEWHEEL = 0x020A;
|
||||
public const int WM_MDICREATE = 0x0220;
|
||||
|
||||
public const int WM_ERASEBKGND = 0x14;
|
||||
public const int WM_PAINT = 0xF;
|
||||
public const int WM_NC_HITTEST = 0x84;
|
||||
public const int WM_NC_PAINT = 0x85;
|
||||
public const int WM_PRINTCLIENT = 0x318;
|
||||
public const int WM_SETCURSOR = 0x20;
|
||||
|
||||
public const int BM_CLICK = 0x00F5;
|
||||
public const int BM_GETIMAGE = 0x00F6;
|
||||
public const int BM_SETIMAGE = 0x00F7;
|
||||
|
||||
public const int VK_BACK = 0x08;
|
||||
public const int VK_TAB = 0x09;
|
||||
public const int VK_CLEAR = 0x0C;
|
||||
public const int VK_RETURN = 0x0D;
|
||||
public const int VK_SHIFT = 0x10;
|
||||
public const int VK_CONTROL = 0x11;
|
||||
public const int VK_MENU = 0x12;
|
||||
public const int VK_PAUSE = 0x13;
|
||||
public const int VK_CAPITAL = 0x14;
|
||||
public const int VK_KANA = 0x15;
|
||||
public const int VK_HANGEUL = 0x15;
|
||||
public const int VK_HANGUL = 0x15;
|
||||
public const int VK_JUNJA = 0x17;
|
||||
public const int VK_FINAL = 0x18;
|
||||
public const int VK_HANJA = 0x19;
|
||||
public const int VK_KANJI = 0x19;
|
||||
public const int VK_ESCAPE = 0x1B;
|
||||
public const int VK_CONVERT = 0x1C;
|
||||
public const int VK_NONCONVERT = 0x1D;
|
||||
public const int VK_ACCEPT = 0x1E;
|
||||
public const int VK_MODECHANGE = 0x1F;
|
||||
public const int VK_SPACE = 0x20;
|
||||
public const int VK_PRIOR = 0x21;
|
||||
public const int VK_NEXT = 0x22;
|
||||
public const int VK_END = 0x23;
|
||||
public const int VK_HOME = 0x24;
|
||||
public const int VK_LEFT = 0x25;
|
||||
public const int VK_UP = 0x26;
|
||||
public const int VK_RIGHT = 0x27;
|
||||
public const int VK_DOWN = 0x28;
|
||||
public const int VK_SELECT = 0x29;
|
||||
public const int VK_PRINT = 0x2A;
|
||||
public const int VK_EXECUTE = 0x2B;
|
||||
public const int VK_SNAPSHOT = 0x2C;
|
||||
public const int VK_INSERT = 0x2D;
|
||||
public const int VK_DELETE = 0x2E;
|
||||
public const int VK_HELP = 0x2F;
|
||||
|
||||
public const int KEYEVENTF_EXTENDEDKEY = 0x0001;
|
||||
public const int KEYEVENTF_KEYUP = 0x0002;
|
||||
public const int KEYEVENTF_UNICODE = 0x0004;
|
||||
public const int KEYEVENTF_SCANCODE = 0x0008;
|
||||
|
||||
public const int HC_ACTION = 0x0;
|
||||
public const int WH_MOUSELL = 0xE;
|
||||
|
||||
public const int STATUS_SUCCESS = 0x0;
|
||||
#endregion
|
||||
|
||||
#region API函数声明
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SetParent")]
|
||||
public static extern int SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "GetParent")]
|
||||
public static extern int GetParent(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "GetWindowLong")]
|
||||
public static extern int GetWindowLong(IntPtr hWnd, int nIndex);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern int GetWindowRect(IntPtr hwnd, out Rect lpRect);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SetWindowLong")]
|
||||
public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int lNewLong);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
|
||||
public static extern bool SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int y, int cx, int cy, int uFlags);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "UpdateWindow")]
|
||||
public static extern bool UpdateWindow(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SendMessage")]
|
||||
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SendMessage")]
|
||||
public static extern int SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "PostMessage")]
|
||||
public static extern int PostMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "PostMessage")]
|
||||
public static extern int PostMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "keybd_event")]
|
||||
public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, long dwExtraInfo);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "GetWindowThreadProcessId")]
|
||||
public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int lpdwProcessId);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto)]
|
||||
public static extern void SetForegroundWindow(IntPtr hwnd);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "DrawMenuBar")]
|
||||
public static extern int DrawMenuBar(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "mouse_event")]
|
||||
public static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, IntPtr dwExtraInfo);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SetCursorPos")]
|
||||
public static extern void SetCursorPos(int x, int y);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "GetCursorPos")]
|
||||
public static extern bool GetCursorPos(out POINT p);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "SetWindowsHookEx")]
|
||||
public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "UnhookWindowsHookEx")]
|
||||
public static extern int UnhookWindowsHookEx(int idHook);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "CallNextHookEx")]
|
||||
public static extern int CallNextHookEx(int idHook, int nCode, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "GetWindowDC")]
|
||||
public static extern IntPtr GetWindowDC(IntPtr hWnd);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "ReleaseDC")]
|
||||
public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern IntPtr GetModuleHandle(string name);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
public static extern IntPtr WindowFromPoint(POINT Point);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "GetDoubleClickTime")]
|
||||
public static extern int GetDoubleClickTime();
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "FindWindow")]
|
||||
public extern static IntPtr FindWindow(string lpClassName, string lpWindowName);
|
||||
|
||||
[DllImport("user32.dll", EntryPoint = "FindWindow")]
|
||||
public static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 表示 Hook 回调函数。
|
||||
/// </summary>
|
||||
/// <param name="nCode"></param>
|
||||
/// <param name="wParam"></param>
|
||||
/// <param name="lParam"></param>
|
||||
/// <returns></returns>
|
||||
public delegate int HookProc(int nCode, IntPtr wParam, IntPtr lParam);
|
||||
/// <summary>
|
||||
/// 表示进程间传递的数据结构
|
||||
/// </summary>
|
||||
public struct COPYDATASTRUCT
|
||||
{
|
||||
public IntPtr dwData;
|
||||
public int cbData;
|
||||
[MarshalAs(UnmanagedType.LPStr)]
|
||||
public string lpData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用于通过 API 获取位置信息的结构。
|
||||
/// </summary>
|
||||
public struct Rect
|
||||
{
|
||||
public int Left;
|
||||
public int Top;
|
||||
public int Right;
|
||||
public int Bottom;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 与非托管通信的鼠标位置结构。
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct POINT
|
||||
{
|
||||
public int X;
|
||||
public int Y;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 鼠标事件标识。
|
||||
/// </summary>
|
||||
public enum MouseEventFlags
|
||||
{
|
||||
Move = 0x0001,
|
||||
LeftDown = 0x0002,
|
||||
LeftUp = 0x0004,
|
||||
RightDown = 0x0008,
|
||||
RightUp = 0x0010,
|
||||
MiddleDown = 0x0020,
|
||||
MiddleUp = 0x0040,
|
||||
Wheel = 0x0800,
|
||||
Absolute = 0x8000
|
||||
}
|
||||
}
|
||||
public class FormatSystemDatetime
|
||||
{
|
||||
[DllImport("kernel32.dll", EntryPoint = "GetSystemDefaultLCID")]
|
||||
public static extern int GetSystemDefaultLCID();
|
||||
[DllImport("kernel32.dll", EntryPoint = "SetLocaleInfoA")]
|
||||
public static extern int SetLocaleInfo(int Locale, int LCType, string lpLCData);
|
||||
[DllImport("user32.dll", EntryPoint = "SendMessageTimeout")]
|
||||
public static extern long SendMessageTimeout(int hWnd, int Msg, int wParam, int lParam, int fuFlags, int uTimeout, ref int lpdwResult);
|
||||
public const int LOCALE_SSHORTDATE = 0x1F;
|
||||
public const int LOCALE_SLONGDATE = 0x20;
|
||||
public const int LOCALE_STIME = 0x1003;
|
||||
public const int HWND_BROADCAST = 0xFFFF;
|
||||
public const int WM_SETTINGCHANGE = 0x001A;
|
||||
public const int SMTO_ABORTIFHUNG = 2;
|
||||
|
||||
public void SetDateTimeFormat()
|
||||
{
|
||||
try
|
||||
{
|
||||
int p = 0;
|
||||
int x = GetSystemDefaultLCID();
|
||||
SetLocaleInfo(x, LOCALE_SSHORTDATE, "yyyy-M-d"); //短日期格式
|
||||
SetLocaleInfo(x, LOCALE_SLONGDATE, "yyyy年M月d日"); //长日期格式
|
||||
SetLocaleInfo(x, LOCALE_STIME, "H:mm:ss"); //时间格式
|
||||
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0, SMTO_ABORTIFHUNG, 10, ref p);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// DevExpress
|
||||
/// </summary>
|
||||
public class AboutDevCompanion
|
||||
{
|
||||
private int Interval;
|
||||
private bool ResidentMode;
|
||||
private bool StopCompanion;
|
||||
private Thread m_Thread;
|
||||
|
||||
/// <summary>
|
||||
/// 按指定的模式创建 <see cref="Wunion.Budget.PowerBasicFramework.AboutDevCompanion"/> 对象实例。
|
||||
/// <param name="interval">检测Dev注册弹框的时间间隔(以毫秒为单位)。</param>
|
||||
/// <param name="resident">检测程序是否以常驻模式运行(默认值 true)。</param>
|
||||
/// </summary>
|
||||
public AboutDevCompanion(int interval, bool resident = true)
|
||||
{
|
||||
Interval = interval;
|
||||
ResidentMode = resident;
|
||||
StopCompanion = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭 DevExpress 控件的注册弹框(如果调用时找到并关闭了DevExpress注册弹框则返回true,否则返回false)。
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private bool CloseAboutDev()
|
||||
{
|
||||
IntPtr devHwnd = WinAPI.FindWindow(null, "About DevExpress");
|
||||
if (devHwnd != IntPtr.Zero)
|
||||
{
|
||||
WinAPI.SendMessage(devHwnd, WinAPI.WM_CLOSE, 0, 0);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 运行 Dev 伴侣,对其注册弹框下毒手。
|
||||
/// </summary>
|
||||
public void Run()
|
||||
{
|
||||
if (!StopCompanion)
|
||||
return; // 防止多次运行导致可能的线程错误。
|
||||
StopCompanion = false;
|
||||
m_Thread = new Thread(new ThreadStart(() =>
|
||||
{
|
||||
while (!StopCompanion)
|
||||
{
|
||||
if (ResidentMode)
|
||||
CloseAboutDev();
|
||||
else // 如果非常驻模式,则在检测并关闭Dev注册弹框后应结束程序。
|
||||
StopCompanion = CloseAboutDev();
|
||||
Thread.Sleep(Interval);
|
||||
}
|
||||
m_Thread = null;
|
||||
}));
|
||||
m_Thread.Start();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭程序的运行。
|
||||
/// </summary>
|
||||
public void Stop()
|
||||
{
|
||||
StopCompanion = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.XtraSplashScreen;
|
||||
using System.Threading;
|
||||
using System.Globalization;
|
||||
using DevExpress.UserSkins;
|
||||
using DevExpress.Skins;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Main3.Model;
|
||||
using Lskj.Util;
|
||||
using Xilium.CefGlue;
|
||||
using System.Reflection;
|
||||
using System.IO;
|
||||
|
||||
namespace Lskj.Main3
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
CefRuntime.Load();//cef浏览器模块设置加载
|
||||
var mainArgs = new CefMainArgs(args);
|
||||
var app = new DemoCefApp();
|
||||
var settings = new CefSettings
|
||||
{
|
||||
MultiThreadedMessageLoop = true,
|
||||
LogSeverity = CefLogSeverity.Disable,
|
||||
LogFile = "CefGlue.log",
|
||||
Locale = "zh-CN"
|
||||
};
|
||||
try
|
||||
{
|
||||
var Code = CefRuntime.ExecuteProcess(mainArgs, app, IntPtr.Zero);
|
||||
Console.WriteLine("CefRuntime.ExecuteProcess() returns {0}", Code);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
CefRuntime.Initialize(mainArgs, settings, app, IntPtr.Zero);
|
||||
try
|
||||
{
|
||||
// 汉化DevExpress界面
|
||||
Thread.CurrentThread.CurrentUICulture = new CultureInfo("zh-Hans");
|
||||
// 设置皮肤
|
||||
BonusSkins.Register();
|
||||
SkinManager.EnableFormSkins();
|
||||
|
||||
//处理未捕获的异常
|
||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
|
||||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
||||
if (!settings.MultiThreadedMessageLoop)//消息循环
|
||||
{
|
||||
Application.Idle += (sender, e) => { CefRuntime.DoMessageLoopWork(); };
|
||||
}
|
||||
AboutDevCompanion DC = new AboutDevCompanion(1, false);
|
||||
DC.Run();
|
||||
//Application.Run(new CEFdemo.Form1());
|
||||
// 启动程序
|
||||
Manager.StartForm();
|
||||
CefRuntime.Shutdown();
|
||||
DC.Stop();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex);
|
||||
}
|
||||
}
|
||||
#region 浏览器处理类
|
||||
/// <summary>
|
||||
/// <para>说明:浏览器处理类</para>
|
||||
/// <para>创建人:唐德馨</para>
|
||||
/// <para>创建日期:2022-1-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
internal sealed class DemoCefApp : CefApp
|
||||
{
|
||||
protected override void OnBeforeCommandLineProcessing(string processType, CefCommandLine commandLine)
|
||||
{
|
||||
Console.WriteLine("OnBeforeCommandLineProcessing: {0} {1}", processType, commandLine);
|
||||
|
||||
// TODO: currently on linux platform location of locales and pack files are determined
|
||||
// incorrectly (relative to main module instead of libcef.so module).
|
||||
// Once issue http://code.google.com/p/chromiumembedded/issues/detail?id=668 will be resolved
|
||||
// this code can be removed.
|
||||
if (CefRuntime.Platform == CefRuntimePlatform.Linux)
|
||||
{
|
||||
var path = new Uri(Assembly.GetEntryAssembly().CodeBase).LocalPath;
|
||||
path = Path.GetDirectoryName(path);
|
||||
commandLine.AppendSwitch("resources-dir-path", path);
|
||||
commandLine.AppendSwitch("locales-dir-path", Path.Combine(path, "locales"));
|
||||
//commandLine.AppendSwitch("ppapi-flash-version", "19.0.0.185");
|
||||
//commandLine.AppendSwitch("ppapi-flash-path", @"PepperFlash\pepflashplayer.dll");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// <para>说明:处理异常</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="ThreadExceptionEventArgs"/> instance containing the event data.</param>
|
||||
static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
|
||||
{
|
||||
MessageUtil.Show(e.Exception);
|
||||
LogHelper.Instance.WriteError(e.Exception);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:处理异常</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2021-07-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="ThreadExceptionEventArgs"/> instance containing the event data.</param>
|
||||
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
Console.WriteLine(e.ExceptionObject.ToString());
|
||||
MessageUtil.Show(e.ExceptionObject.ToString());
|
||||
}
|
||||
//public static Form GetForm()
|
||||
//{
|
||||
// Form X = new CEFdemo.Form1();
|
||||
// return X;
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下
|
||||
// 特性集控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("朗速ERP")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("成都朗速科技有限公司")]
|
||||
[assembly: AssemblyProduct("朗速ERP")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("22c63826-6925-4285-b0f5-e568cbef0d1a")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,436 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="search_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\search_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="caramel" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\caramel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="blueprint" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\blueprint.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="setting" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="max_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\max_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="login_close_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\login_close_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="the_asphalt_world" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\the_asphalt_world.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pumpkin" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pumpkin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="whiteprint" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\whiteprint.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="money_twins" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\money_twins.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2010_bule" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2010_bule.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="newlogin" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\newlogin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="close_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\close_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="right" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="summer" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\summer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="darkroom" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\darkroom.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="springtime" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\springtime.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="left_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\left_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="tab_bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\tab_bg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="search_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\search_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="user" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\user.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node2_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node2_default_move.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_pzjk" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_pzjk.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_tip_backgound" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_tip_backgound.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="window_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\window_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="icon_setting" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\设置.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_btn_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_btn_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="window_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\window_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="login_btn" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\login_btn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_scgx" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_scgx.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_page_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_page_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_btn_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_btn_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="close_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\close_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="darkside" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\darkside.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="login_close_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\login_close_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node2_move" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node2_child_move.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="lilian" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\lilian.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="left_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\left_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Cancel_32x32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Cancel_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="london_liquid_sky" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\london_liquid_sky.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2007_blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2007_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="backup" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\backup.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="devexpress_2013_light_gray" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\devexpress_2013_light_gray.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="stardust" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\stardust.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="metropolis_dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\metropolis_dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="tab_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\tab_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="tab_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\tab_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_page_hover" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_page_hover.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2013" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2013.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="highcontrast" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\highcontrast.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="version" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\version.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="default_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\默认图标.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="login_btn_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\login_btn_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="liquid_sky" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\liquid_sky.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="seven_classic" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\seven_classic.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node3_move" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node3_move.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_btn_min" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_btn_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="split" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\split.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node_move" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node_move.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_khgl" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_khgl.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="max_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\max_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="imaginary" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\imaginary.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2007_pink" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2007_pink.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_btn_min_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_btn_min_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="glassoceans" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\glassoceans.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_page_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_page_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="foggy" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\foggy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="vs_2010" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\vs_2010.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="black" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\black.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="arrows" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrows.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="mcskin" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\mcskin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="seven" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\seven.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="metropolis" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\metropolis.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sharp_plus" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sharp_plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_cggl" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_cggl.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2007_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2007_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="circle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\circle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2007_silver" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2007_silver.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="smail_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\smail_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="caffee" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\caffee.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2007_black" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2007_black.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="smail_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\smail_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_backgroud" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_backgroud.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="valentine" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\valentine.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="devexpress_2013_gray" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\devexpress_2013_gray.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node3_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node3_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node2_select" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node2_chaild_select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="xmas_blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\xmas_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_scl" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_scl.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="swapuser" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\swapuser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2010_black" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2010_black.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="login" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\login.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_sczw" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_sczw.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="node3_default" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\node3_default.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="office_2010_silver" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\office_2010_silver.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sharp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sharp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_gdzc" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_gdzc.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="sub_khgx" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\sub_khgx.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="登录" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\登录.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="default_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\default_icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.Main3.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.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,10 @@
|
||||
升级日志说明:系统修改了xxx功能、添加xxx功能、优化xxx操作,均需要在Log.txt中填写内容.具体格式如下所示
|
||||
1. 添加xxx功能格式: A 新增 xxx控件.
|
||||
2. 优化xxx操作: U 优化 xxx控件.
|
||||
3. 修复xxxbug: F 修复 xxxbug.
|
||||
4. 删除xxx功能: D 删除 xxx功能.
|
||||
5. 后续还需要在增加
|
||||
|
||||
注: 写手机日志的时候在log.txt写入日志.
|
||||
1.日期按倒序排列.
|
||||
2.日志内容顺序依次按照 A、U、F、D顺序.
|
||||
|
After Width: | Height: | Size: 1008 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 583 B |
|
After Width: | Height: | Size: 450 B |
|
After Width: | Height: | Size: 1008 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 662 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 583 B |
|
After Width: | Height: | Size: 577 B |
|
After Width: | Height: | Size: 2.7 KiB |