基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
@@ -0,0 +1,167 @@
namespace Lskj.SweepCode.Control
{
partial class AutoGridPopup
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.pl_bottom = new DevExpress.XtraEditors.PanelControl();
this.lbl_title = new DevExpress.XtraEditors.LabelControl();
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
this.gridControl = new DevExpress.XtraGrid.GridControl();
this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView();
this.pl_container = new DevExpress.XtraEditors.PanelControl();
this.pl_main = new DevExpress.XtraEditors.PanelControl();
((System.ComponentModel.ISupportInitialize)(this.pl_bottom)).BeginInit();
this.pl_bottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pl_container)).BeginInit();
this.pl_container.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_main)).BeginInit();
this.pl_main.SuspendLayout();
this.SuspendLayout();
//
// pl_bottom
//
this.pl_bottom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_bottom.Controls.Add(this.lbl_title);
this.pl_bottom.Controls.Add(this.btnAdd);
this.pl_bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pl_bottom.Location = new System.Drawing.Point(0, 168);
this.pl_bottom.Name = "pl_bottom";
this.pl_bottom.Size = new System.Drawing.Size(260, 30);
this.pl_bottom.TabIndex = 0;
this.pl_bottom.Visible = false;
//
// lbl_title
//
this.lbl_title.Appearance.ForeColor = System.Drawing.Color.Red;
this.lbl_title.Location = new System.Drawing.Point(78, 7);
this.lbl_title.Name = "lbl_title";
this.lbl_title.Size = new System.Drawing.Size(0, 14);
this.lbl_title.TabIndex = 0;
//
// btnAdd
//
this.btnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnAdd.Appearance.Options.UseFont = true;
this.btnAdd.Location = new System.Drawing.Point(4, 3);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(67, 24);
this.btnAdd.TabIndex = 15;
this.btnAdd.TabStop = false;
this.btnAdd.Text = "添加";
this.btnAdd.Visible = false;
this.btnAdd.Click += new System.EventHandler(this.OnAddButtonClick);
//
// gridControl
//
this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridControl.Location = new System.Drawing.Point(0, 0);
this.gridControl.MainView = this.gridView;
this.gridControl.Name = "gridControl";
this.gridControl.Size = new System.Drawing.Size(260, 168);
this.gridControl.TabIndex = 4;
this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView});
//
// gridView
//
this.gridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.HeaderPanel.Options.UseFont = true;
this.gridView.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.gridView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gridView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.Preview.Options.UseFont = true;
this.gridView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.Row.Options.UseBackColor = true;
this.gridView.Appearance.Row.Options.UseFont = true;
this.gridView.Appearance.Row.Options.UseForeColor = true;
this.gridView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.gridView.GridControl = this.gridControl;
this.gridView.IndicatorWidth = 30;
this.gridView.Name = "gridView";
this.gridView.OptionsBehavior.Editable = false;
this.gridView.OptionsView.ColumnAutoWidth = false;
this.gridView.OptionsView.RowAutoHeight = true;
this.gridView.OptionsView.ShowGroupPanel = false;
this.gridView.PaintStyleName = "Skin";
this.gridView.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OnGridViewKeyUp);
this.gridView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnGridViewMouseDown);
//
// pl_container
//
this.pl_container.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_container.Controls.Add(this.pl_main);
this.pl_container.Controls.Add(this.pl_bottom);
this.pl_container.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_container.Location = new System.Drawing.Point(0, 0);
this.pl_container.Name = "pl_container";
this.pl_container.Size = new System.Drawing.Size(260, 198);
this.pl_container.TabIndex = 2;
//
// pl_main
//
this.pl_main.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_main.Controls.Add(this.gridControl);
this.pl_main.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_main.Location = new System.Drawing.Point(0, 0);
this.pl_main.Name = "pl_main";
this.pl_main.Size = new System.Drawing.Size(260, 168);
this.pl_main.TabIndex = 1;
//
// AutoGridPopup
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Controls.Add(this.pl_container);
this.Name = "AutoGridPopup";
this.Size = new System.Drawing.Size(260, 198);
((System.ComponentModel.ISupportInitialize)(this.pl_bottom)).EndInit();
this.pl_bottom.ResumeLayout(false);
this.pl_bottom.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pl_container)).EndInit();
this.pl_container.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_main)).EndInit();
this.pl_main.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.PanelControl pl_bottom;
private DevExpress.XtraGrid.GridControl gridControl;
private DevExpress.XtraGrid.Views.Grid.GridView gridView;
private DevExpress.XtraEditors.SimpleButton btnAdd;
private DevExpress.XtraEditors.LabelControl lbl_title;
private DevExpress.XtraEditors.PanelControl pl_container;
private DevExpress.XtraEditors.PanelControl pl_main;
}
}
@@ -0,0 +1,262 @@
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.Model;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid;
using DevExpress.Utils;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.SweepCode.Control
{
/// <summary>
/// 自动搜索框弹出框
/// </summary>
public partial class AutoGridPopup : UserControl
{
/// <summary>
/// 是否显示添加按钮
/// </summary>
/// <value><c>true</c> if [add visible]; otherwise, <c>false</c>.</value>
public bool AddVisible
{
get { return this.btnAdd.Visible; }
set
{
this.btnAdd.Visible = value;
this.pl_bottom.Visible = value;
}
}
/// <summary>
/// 输入框
/// </summary>
public ButtonEdit LookUp;
/// <summary>
/// Gets the grid control object.
/// </summary>
/// <value>The grid control object.</value>
public GridControl GridControlObj { get { return this.gridControl; } }
/// <summary>
/// Gets the grid view object.
/// </summary>
/// <value>The grid view object.</value>
public GridView GridViewObj { get { return this.gridView; } }
/// <summary>
/// 提示文本
/// </summary>
/// <value>The label object.</value>
public LabelControl LabelObj { get { return this.lbl_title; } }
/// <summary>
/// Gets the top panel object.
/// </summary>
/// <value>The top panel object.</value>
public PanelControl BottomPanelObj { get { return this.pl_bottom; } }
/// <summary>
/// 缓存列对象
/// </summary>
public List<GridColumnModel> ColumnList = new List<GridColumnModel>();
/// <summary>
/// 弹出框回车事件
/// </summary>
public event KeyEventHandler OnGridViewEnter;
/// <summary>
/// 添加按钮点击事件
/// </summary>
public event EventHandler OnAddMouseClick;
/// <summary>
/// 弹出框鼠标点击
/// </summary>
public event EventHandler OnGridViewMouseClick;
/// <summary>
/// The reset colum primary key
/// </summary>
public string CustomColumKey;
public ControlModel Model;
public AutoGridPopup()
{
InitializeComponent();
this.GotFocus += new EventHandler(OnAutoGridPopupGotFocus);
this.gridView.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(OnGridViewCustomDrawRowIndicator);
this.gridView.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(OnGridViewCustomDrawCell);
gridControl.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
gridControl.LookAndFeel.UseDefaultLookAndFeel = false;
gridView.Appearance.HeaderPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
gridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
gridView.Appearance.HeaderPanel.ForeColor = System.Drawing.Color.Black;
gridView.ColumnPanelRowHeight = 30;
gridView.RowHeight = 32;
gridView.Appearance.Row.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
gridView.Appearance.Row.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
}
/// <summary>
/// <para>说明:GridView获取焦点</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-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>
protected void OnAutoGridPopupGotFocus(object sender, EventArgs e)
{
try
{
if (this.gridView.DataSource != null)
{
this.gridView.FocusedRowHandle = 0;
this.gridView.SelectRow(0);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:生成序号</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-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="RowIndicatorCustomDrawEventArgs" /> instance containing the event data.</param>
protected void OnGridViewCustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
{
try
{
e.Appearance.TextOptions.HAlignment = HorzAlignment.Center;
if (e.Info.IsRowIndicator)
{
if (e.RowHandle >= 0)
{
e.Info.DisplayText = (e.RowHandle + 1).ToString();
}
}
}
catch (Exception)
{
}
}
/// <summary>
/// <para>说明:设置颜色</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-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="DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs"/> instance containing the event data.</param>
protected void OnGridViewCustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)
{
try
{
if (e.RowHandle == gridView.FocusedRowHandle)
e.Appearance.BackColor = ColorTranslator.FromHtml("#9feb6a");
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:键盘弹起</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-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="KeyEventArgs"/> instance containing the event data.</param>
protected void OnGridViewKeyUp(object sender, KeyEventArgs e)
{
try
{
if (this.OnGridViewEnter != null)
this.OnGridViewEnter(this.gridView, e);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:点击GridView</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-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>
protected void OnGridViewMouseDown(object sender, MouseEventArgs e)
{
try
{
int rowHandle = this.gridView.CalcHitInfo(e.X, e.Y).RowHandle;
this.gridView.FocusedRowHandle = rowHandle;
this.gridView.SelectRow(rowHandle);
if (rowHandle > -1 && this.OnGridViewMouseClick != null)
this.OnGridViewMouseClick(this.gridView, null);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:添加操作</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-04-03 </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>
protected void OnAddButtonClick(object sender, EventArgs e)
{
try
{
if (this.OnAddMouseClick != null)
this.OnAddMouseClick(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,66 @@
namespace Lskj.SweepCode.Control
{
partial class LevitationPanel
{
/// <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.labelLev = new DevExpress.XtraEditors.LabelControl();
this.SuspendLayout();
//
// labelLev
//
this.labelLev.Appearance.BackColor = System.Drawing.Color.Transparent;
this.labelLev.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F);
this.labelLev.Appearance.ForeColor = System.Drawing.Color.Red;
this.labelLev.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelLev.Location = new System.Drawing.Point(0, 0);
this.labelLev.Name = "labelLev";
this.labelLev.Size = new System.Drawing.Size(102, 21);
this.labelLev.TabIndex = 0;
this.labelLev.Text = "labelControl1";
//
// LevitationPanel
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.AutoSize = true;
this.BackColor = System.Drawing.Color.Transparent;
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Controls.Add(this.labelLev);
this.ForeColor = System.Drawing.Color.Transparent;
this.Name = "LevitationPanel";
this.Size = new System.Drawing.Size(128, 27);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
public DevExpress.XtraEditors.LabelControl labelLev;
}
}
@@ -0,0 +1,19 @@
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.SweepCode.Control
{
public partial class LevitationPanel : UserControl
{
public LevitationPanel()
{
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,100 @@
namespace Lskj.SweepCode.Control
{
partial class SweepAutoEdit
{
/// <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()
{
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
this.plRight = new System.Windows.Forms.Panel();
this.btnEdit = new DevExpress.XtraEditors.ButtonEdit();
this.lbTitle = new System.Windows.Forms.Label();
this.plRight.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.btnEdit.Properties)).BeginInit();
this.SuspendLayout();
//
// plRight
//
this.plRight.Controls.Add(this.btnEdit);
this.plRight.Controls.Add(this.lbTitle);
this.plRight.Dock = System.Windows.Forms.DockStyle.Fill;
this.plRight.Location = new System.Drawing.Point(0, 0);
this.plRight.Name = "plRight";
this.plRight.Size = new System.Drawing.Size(500, 38);
this.plRight.TabIndex = 8;
//
// btnEdit
//
this.btnEdit.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnEdit.Location = new System.Drawing.Point(114, 0);
this.btnEdit.Name = "btnEdit";
this.btnEdit.Properties.Appearance.BackColor = System.Drawing.Color.White;
this.btnEdit.Properties.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.btnEdit.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
this.btnEdit.Properties.Appearance.Options.UseBackColor = true;
this.btnEdit.Properties.Appearance.Options.UseFont = true;
this.btnEdit.Properties.Appearance.Options.UseForeColor = true;
this.btnEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, DevExpress.XtraEditors.ImageLocation.MiddleCenter, global::Lskj.MesPrintCode.Properties.Resources.sweepCode, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, true)});
this.btnEdit.Size = new System.Drawing.Size(386, 38);
this.btnEdit.TabIndex = 4;
this.btnEdit.KeyDown += new System.Windows.Forms.KeyEventHandler(this.buttonEdit1_KeyDown);
//
// lbTitle
//
this.lbTitle.BackColor = System.Drawing.Color.Transparent;
this.lbTitle.Dock = System.Windows.Forms.DockStyle.Left;
this.lbTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbTitle.ForeColor = System.Drawing.Color.Black;
this.lbTitle.Location = new System.Drawing.Point(0, 0);
this.lbTitle.Name = "lbTitle";
this.lbTitle.Size = new System.Drawing.Size(114, 38);
this.lbTitle.TabIndex = 3;
this.lbTitle.Text = "扫码识别信息";
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// SweepAutoEdit
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.plRight);
this.Name = "SweepAutoEdit";
this.Size = new System.Drawing.Size(500, 38);
this.plRight.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.btnEdit.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel plRight;
private DevExpress.XtraEditors.ButtonEdit btnEdit;
private System.Windows.Forms.Label lbTitle;
}
}
File diff suppressed because it is too large Load Diff
@@ -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,68 @@
namespace Lskj.SweepCode.Control
{
partial class SweepButton
{
/// <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.btn_title = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// btn_title
//
this.btn_title.BackColor = System.Drawing.Color.Transparent;
this.btn_title.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.btn_title.Cursor = System.Windows.Forms.Cursors.Hand;
this.btn_title.Dock = System.Windows.Forms.DockStyle.Fill;
this.btn_title.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btn_title.ForeColor = System.Drawing.Color.White;
this.btn_title.Location = new System.Drawing.Point(0, 0);
this.btn_title.Name = "btn_title";
this.btn_title.Size = new System.Drawing.Size(95, 37);
this.btn_title.TabIndex = 5;
this.btn_title.Text = "按钮";
this.btn_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.btn_title.Click += new System.EventHandler(this.btn_title_Click);
this.btn_title.MouseLeave += new System.EventHandler(this.btn_title_MouseLeave);
this.btn_title.MouseMove += new System.Windows.Forms.MouseEventHandler(this.btn_title_MouseMove);
//
// SweepButton
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.btn_title);
this.Name = "SweepButton";
this.Size = new System.Drawing.Size(95, 37);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label btn_title;
}
}
@@ -0,0 +1,128 @@
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.Util;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.SweepCode.Control
{
public partial class SweepButton : UserControl
{
public SweepButton()
{
InitializeComponent();
}
/// <summary>
/// 是否可用
/// </summary>
/// <value>The title label object.</value>
public bool isEnable;
// <summary>
/// 默认颜色
/// </summary>
/// <value>The title label object.</value>
public Color emptyColor;
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return btn_title; } }
/// <summary>
/// 按钮点击
/// </summary>
/// <value>The title label object.</value>
public event EventHandler OnClick;
/// <summary>
/// 鼠标划过控件
/// </summary>
/// <param name="sender">The sender.</param>
public event EventHandler OnHover;
/// <summary>
/// 鼠标离开控件
/// </summary>
/// <param name="sender">The sender.</param>
public event EventHandler OnLeave;
/// <summary>
/// 字体大小
/// </summary>
/// <value>The size of the control.</value>
public int FontSize
{
get
{
return FontSize;
}
set
{
if (value > 0)
{
this.btn_title.Font = new Font(this.btn_title.Font.FontFamily, value);
}
}
}
/// <summary>
/// 点击事件模拟
/// </summary>
/// <value>The title label object.</value>
public void OnClickCallBack()
{
if (OnClick != null)
{
OnClick(this, null);
}
}
private void btn_title_Click(object sender, EventArgs e)
{
OnClickCallBack();
}
public void OnMouseMove()
{
if (OnHover != null)
{
OnHover(this, null);
}
}
private void btn_title_MouseMove(object sender, MouseEventArgs e)
{
try
{
OnMouseMove();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
public void OnMouseLeave()
{
if (OnLeave != null)
{
OnLeave(this, null);
}
}
private void btn_title_MouseLeave(object sender, EventArgs e)
{
try
{
OnMouseLeave();
}
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,97 @@
namespace Lskj.SweepCode.Control
{
partial class SweepControl
{
/// <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()
{
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
this.lbTitle = new System.Windows.Forms.Label();
this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
this.plRight = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).BeginInit();
this.plRight.SuspendLayout();
this.SuspendLayout();
//
// lbTitle
//
this.lbTitle.BackColor = System.Drawing.Color.Transparent;
this.lbTitle.Dock = System.Windows.Forms.DockStyle.Left;
this.lbTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbTitle.ForeColor = System.Drawing.Color.Black;
this.lbTitle.Location = new System.Drawing.Point(0, 0);
this.lbTitle.Name = "lbTitle";
this.lbTitle.Size = new System.Drawing.Size(114, 38);
this.lbTitle.TabIndex = 3;
this.lbTitle.Text = "扫码识别信息";
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// buttonEdit1
//
this.buttonEdit1.Dock = System.Windows.Forms.DockStyle.Fill;
this.buttonEdit1.Location = new System.Drawing.Point(114, 0);
this.buttonEdit1.Name = "buttonEdit1";
this.buttonEdit1.Properties.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.buttonEdit1.Properties.Appearance.ForeColor = System.Drawing.Color.Black;
this.buttonEdit1.Properties.Appearance.Options.UseFont = true;
this.buttonEdit1.Properties.Appearance.Options.UseForeColor = true;
this.buttonEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, DevExpress.XtraEditors.ImageLocation.MiddleCenter, global::Lskj.MesPrintCode.Properties.Resources.sweepCode, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, true)});
this.buttonEdit1.Size = new System.Drawing.Size(386, 38);
this.buttonEdit1.TabIndex = 4;
this.buttonEdit1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.buttonEdit1_KeyDown);
//
// plRight
//
this.plRight.Controls.Add(this.buttonEdit1);
this.plRight.Controls.Add(this.lbTitle);
this.plRight.Dock = System.Windows.Forms.DockStyle.Fill;
this.plRight.Location = new System.Drawing.Point(0, 0);
this.plRight.Name = "plRight";
this.plRight.Size = new System.Drawing.Size(500, 38);
this.plRight.TabIndex = 7;
//
// SweepControl
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.plRight);
this.Name = "SweepControl";
this.Size = new System.Drawing.Size(500, 38);
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).EndInit();
this.plRight.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label lbTitle;
private DevExpress.XtraEditors.ButtonEdit buttonEdit1;
private System.Windows.Forms.Panel plRight;
}
}
@@ -0,0 +1,86 @@
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.SweepCode.Control
{
public partial class SweepControl : UserControl
{
public SweepControl()
{
InitializeComponent();
}
/// <summary>
/// 控件
/// </summary>
/// <value>The title label object.</value>
public ButtonEdit ObjButtonEdit { get { return buttonEdit1; } }
/// <summary>
/// 控件的输入值
/// </summary>
/// <value>The title label object.</value>
public string ObjSweepControlText { get { return buttonEdit1.Text; } }
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return lbTitle; } }
/// <summary>
/// 设置控件的排序值
/// </summary>
/// <value>The title label object.</value>
public string orderId;
/// <summary>
/// 控件公共回车事件
/// </summary>
/// <value>The KeyEventHandler KeyDown.</value>
public event KeyEventHandler KeyDown;
/// <summary>
/// 字体大小
/// </summary>
/// <value>The size of the control.</value>
public int FontSize
{
get
{
return FontSize;
}
set
{
if (value > 0)
{
this.lbTitle.Font = new Font(this.lbTitle.Font.FontFamily, value);
this.buttonEdit1.Font = new Font(this.buttonEdit1.Font.FontFamily, value);
}
}
}
private void buttonEdit1_KeyDown(object sender, KeyEventArgs e)
{
try
{
if (KeyDown != null)
{
KeyDown(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,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DevExpress.UserSkins;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using Lskj.Util;
using Lskj.Model;
using Lskj.Business;
using Lskj.Business.Impl;
using System.Data;
using System.Data.SqlClient;
using Lskj.Core;
namespace Lskj.MesPrintCode
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicMesProduct moduleModel = new DynamicMesProduct(obj);
FrmMain main = new FrmMain();
this.SubForm = main;
main.SysModel = moduleModel;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.SweepCode.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+538
View File
@@ -0,0 +1,538 @@
using System.Drawing;
namespace Lskj.MesPrintCode
{
partial class FrmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
this.splitMain = new DevExpress.XtraEditors.SplitContainerControl();
this.panelMain = new DevExpress.XtraEditors.PanelControl();
this.splitDetail = new DevExpress.XtraEditors.SplitContainerControl();
this.panelDetail = new DevExpress.XtraEditors.PanelControl();
this.detailContorl = new DevExpress.XtraEditors.PanelControl();
this.split_Details = new DevExpress.XtraEditors.SplitContainerControl();
this.split_Main = new DevExpress.XtraEditors.SplitContainerControl();
this.split_Main_Top = new DevExpress.XtraEditors.SplitContainerControl();
this.gcMain = new Lskj.Control.GridControlEx();
this.gcExpected = new Lskj.Control.GridControlEx();
this.gcOutput = new Lskj.Control.GridControlEx();
this.detailControlBtn = new DevExpress.XtraEditors.PanelControl();
this.plExpectBtn = new DevExpress.XtraEditors.PanelControl();
this.plOutRightBtn = new DevExpress.XtraEditors.PanelControl();
this.detailTab_Title = new DevExpress.XtraEditors.PanelControl();
this.lbTitle = new System.Windows.Forms.Label();
this.detailTab = new Lskj.MesPrintCode.TabIntoControl();
this.pl_TopSearch = new DevExpress.XtraEditors.PanelControl();
this.labelTips = new DevExpress.XtraEditors.LabelControl();
this.pl_search = new DevExpress.XtraEditors.PanelControl();
this.serachSweep = new System.Windows.Forms.Panel();
this.txtFixKey = new DevExpress.XtraEditors.ButtonEdit();
this.lab_searchName = new System.Windows.Forms.Label();
this.searchClass = new System.Windows.Forms.Panel();
this.txtEditClass = new DevExpress.XtraEditors.ComboBoxEdit();
this.lab_searchClass = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.TabRight = new Lskj.MesPrintCode.TabIntoControl();
this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
this.gcLeftDetail = new Lskj.Control.GridControlEx();
((System.ComponentModel.ISupportInitialize)(this.splitMain)).BeginInit();
this.splitMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelMain)).BeginInit();
this.panelMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitDetail)).BeginInit();
this.splitDetail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelDetail)).BeginInit();
this.panelDetail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailContorl)).BeginInit();
this.detailContorl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.split_Details)).BeginInit();
this.split_Details.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.split_Main)).BeginInit();
this.split_Main.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.split_Main_Top)).BeginInit();
this.split_Main_Top.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailControlBtn)).BeginInit();
this.detailControlBtn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.plExpectBtn)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.plOutRightBtn)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.detailTab_Title)).BeginInit();
this.detailTab_Title.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_TopSearch)).BeginInit();
this.pl_TopSearch.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_search)).BeginInit();
this.pl_search.SuspendLayout();
this.serachSweep.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtFixKey.Properties)).BeginInit();
this.searchClass.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtEditClass.Properties)).BeginInit();
this.SuspendLayout();
//
// splitMain
//
this.splitMain.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.splitMain.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel2;
this.splitMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitMain.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2;
this.splitMain.Location = new System.Drawing.Point(0, 0);
this.splitMain.Name = "splitMain";
this.splitMain.Panel1.Controls.Add(this.panelMain);
this.splitMain.Panel1.Text = "Panel1";
this.splitMain.Panel2.Controls.Add(this.TabRight);
this.splitMain.Panel2.Text = "Panel2";
this.splitMain.Size = new System.Drawing.Size(1440, 785);
this.splitMain.SplitterPosition = 200;
this.splitMain.TabIndex = 0;
this.splitMain.Text = "splitContainerControl1";
this.splitMain.SplitterPositionChanged += new System.EventHandler(this.OnSplitterPositionChanged);
//
// panelMain
//
this.panelMain.Appearance.BackColor = System.Drawing.Color.Transparent;
this.panelMain.Appearance.Options.UseBackColor = true;
this.panelMain.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelMain.Controls.Add(this.splitDetail);
this.panelMain.Controls.Add(this.pl_TopSearch);
this.panelMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelMain.Location = new System.Drawing.Point(0, 0);
this.panelMain.Name = "panelMain";
this.panelMain.Size = new System.Drawing.Size(1235, 785);
this.panelMain.TabIndex = 0;
//
// splitDetail
//
this.splitDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitDetail.Horizontal = false;
this.splitDetail.Location = new System.Drawing.Point(0, 48);
this.splitDetail.Name = "splitDetail";
this.splitDetail.Panel1.Controls.Add(this.panelDetail);
this.splitDetail.Panel1.Text = "Panel1";
this.splitDetail.Panel2.Controls.Add(this.detailTab);
this.splitDetail.Panel2.Text = "Panel2";
this.splitDetail.Size = new System.Drawing.Size(1235, 737);
this.splitDetail.SplitterPosition = 517;
this.splitDetail.TabIndex = 10;
this.splitDetail.Text = "splitContainerControl1";
//
// panelDetail
//
this.panelDetail.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelDetail.Controls.Add(this.detailContorl);
this.panelDetail.Controls.Add(this.detailTab_Title);
this.panelDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelDetail.Location = new System.Drawing.Point(0, 0);
this.panelDetail.Name = "panelDetail";
this.panelDetail.Size = new System.Drawing.Size(1235, 517);
this.panelDetail.TabIndex = 7;
//
// detailContorl
//
this.detailContorl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailContorl.Controls.Add(this.split_Details);
this.detailContorl.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailContorl.Location = new System.Drawing.Point(0, 35);
this.detailContorl.Name = "detailContorl";
this.detailContorl.Size = new System.Drawing.Size(1235, 482);
this.detailContorl.TabIndex = 6;
//
// split_Details
//
this.split_Details.Dock = System.Windows.Forms.DockStyle.Fill;
this.split_Details.Location = new System.Drawing.Point(0, 0);
this.split_Details.Name = "split_Details";
this.split_Details.Panel1.Controls.Add(this.gcLeftDetail);
this.split_Details.Panel1.Text = "Panel1";
this.split_Details.Panel2.Controls.Add(this.split_Main);
this.split_Details.Panel2.Text = "Panel2";
this.split_Details.Size = new System.Drawing.Size(1235, 482);
this.split_Details.SplitterPosition = 250;
this.split_Details.TabIndex = 0;
this.split_Details.Text = "splitContainerControl1";
this.split_Details.SplitterPositionChanged += new System.EventHandler(this.OnDetailsMainPositionChanged);
//
// split_Main
//
this.split_Main.Dock = System.Windows.Forms.DockStyle.Fill;
this.split_Main.Horizontal = false;
this.split_Main.Location = new System.Drawing.Point(0, 0);
this.split_Main.Name = "split_Main";
this.split_Main.Panel1.Controls.Add(this.split_Main_Top);
this.split_Main.Panel1.Text = "Panel1";
this.split_Main.Panel2.Controls.Add(this.gcOutput);
this.split_Main.Panel2.Controls.Add(this.detailControlBtn);
this.split_Main.Panel2.Text = "Panel2";
this.split_Main.Size = new System.Drawing.Size(980, 482);
this.split_Main.SplitterPosition = 132;
this.split_Main.TabIndex = 0;
this.split_Main.Text = "splitContainerControl1";
this.split_Main.SplitterPositionChanged += new System.EventHandler(this.OnDetailsMainPositionChanged);
//
// split_Main_Top
//
this.split_Main_Top.Dock = System.Windows.Forms.DockStyle.Fill;
this.split_Main_Top.Location = new System.Drawing.Point(0, 0);
this.split_Main_Top.Name = "split_Main_Top";
this.split_Main_Top.Panel1.Controls.Add(this.gcMain);
this.split_Main_Top.Panel1.Text = "Panel1";
this.split_Main_Top.Panel2.Controls.Add(this.gcExpected);
this.split_Main_Top.Panel2.Text = "Panel2";
this.split_Main_Top.Size = new System.Drawing.Size(980, 132);
this.split_Main_Top.SplitterPosition = 491;
this.split_Main_Top.TabIndex = 0;
this.split_Main_Top.Text = "splitContainerControl1";
this.split_Main_Top.SplitterPositionChanged += new System.EventHandler(this.OnsplitMainTopPositionChanged);
//
// gcMain
//
this.gcMain.AdapterObj = null;
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcMain.Location = new System.Drawing.Point(0, 0);
this.gcMain.Name = "gcMain";
this.gcMain.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcMain.Size = new System.Drawing.Size(491, 132);
this.gcMain.TabIndex = 1;
//
// gcExpected
//
this.gcExpected.AdapterObj = null;
this.gcExpected.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcExpected.Location = new System.Drawing.Point(0, 0);
this.gcExpected.Name = "gcExpected";
this.gcExpected.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcExpected.Size = new System.Drawing.Size(484, 132);
this.gcExpected.TabIndex = 1;
//
// gcOutput
//
this.gcOutput.AdapterObj = null;
this.gcOutput.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcOutput.Location = new System.Drawing.Point(0, 0);
this.gcOutput.Name = "gcOutput";
this.gcOutput.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcOutput.Size = new System.Drawing.Size(980, 289);
this.gcOutput.TabIndex = 1;
//
// detailControlBtn
//
this.detailControlBtn.Controls.Add(this.plExpectBtn);
this.detailControlBtn.Controls.Add(this.plOutRightBtn);
this.detailControlBtn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.detailControlBtn.Location = new System.Drawing.Point(0, 289);
this.detailControlBtn.Name = "detailControlBtn";
this.detailControlBtn.Size = new System.Drawing.Size(980, 56);
this.detailControlBtn.TabIndex = 0;
//
// plExpectBtn
//
this.plExpectBtn.Appearance.BackColor = System.Drawing.Color.White;
this.plExpectBtn.Appearance.Options.UseBackColor = true;
this.plExpectBtn.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.plExpectBtn.Dock = System.Windows.Forms.DockStyle.Fill;
this.plExpectBtn.Location = new System.Drawing.Point(465, 2);
this.plExpectBtn.Name = "plExpectBtn";
this.plExpectBtn.Size = new System.Drawing.Size(513, 52);
this.plExpectBtn.TabIndex = 2;
//
// plOutRightBtn
//
this.plOutRightBtn.Appearance.BackColor = System.Drawing.Color.White;
this.plOutRightBtn.Appearance.Options.UseBackColor = true;
this.plOutRightBtn.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.plOutRightBtn.Dock = System.Windows.Forms.DockStyle.Left;
this.plOutRightBtn.Location = new System.Drawing.Point(2, 2);
this.plOutRightBtn.Name = "plOutRightBtn";
this.plOutRightBtn.Size = new System.Drawing.Size(463, 52);
this.plOutRightBtn.TabIndex = 1;
//
// detailTab_Title
//
this.detailTab_Title.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailTab_Title.Controls.Add(this.lbTitle);
this.detailTab_Title.Dock = System.Windows.Forms.DockStyle.Top;
this.detailTab_Title.Location = new System.Drawing.Point(0, 0);
this.detailTab_Title.Name = "detailTab_Title";
this.detailTab_Title.Size = new System.Drawing.Size(1235, 35);
this.detailTab_Title.TabIndex = 5;
//
// lbTitle
//
this.lbTitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
this.lbTitle.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbTitle.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
this.lbTitle.Location = new System.Drawing.Point(0, 0);
this.lbTitle.Name = "lbTitle";
this.lbTitle.Size = new System.Drawing.Size(1235, 35);
this.lbTitle.TabIndex = 2;
this.lbTitle.Text = " 浸胶基本信息";
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// detailTab
//
this.detailTab.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailTab.Location = new System.Drawing.Point(0, 0);
this.detailTab.Name = "detailTab";
this.detailTab.Size = new System.Drawing.Size(1235, 215);
this.detailTab.TabIndex = 10;
//
// pl_TopSearch
//
this.pl_TopSearch.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(115)))), ((int)(((byte)(188)))));
this.pl_TopSearch.Appearance.Options.UseBackColor = true;
this.pl_TopSearch.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_TopSearch.Controls.Add(this.labelTips);
this.pl_TopSearch.Controls.Add(this.pl_search);
this.pl_TopSearch.Controls.Add(this.panel1);
this.pl_TopSearch.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_TopSearch.Location = new System.Drawing.Point(0, 0);
this.pl_TopSearch.Name = "pl_TopSearch";
this.pl_TopSearch.Size = new System.Drawing.Size(1235, 48);
this.pl_TopSearch.TabIndex = 0;
//
// labelTips
//
this.labelTips.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelTips.Appearance.ForeColor = System.Drawing.Color.White;
this.labelTips.Location = new System.Drawing.Point(717, 11);
this.labelTips.Name = "labelTips";
this.labelTips.Size = new System.Drawing.Size(0, 22);
this.labelTips.TabIndex = 43;
//
// pl_search
//
this.pl_search.Appearance.BackColor = System.Drawing.Color.White;
this.pl_search.Appearance.Options.UseBackColor = true;
this.pl_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_search.Controls.Add(this.serachSweep);
this.pl_search.Controls.Add(this.searchClass);
this.pl_search.Location = new System.Drawing.Point(6, 3);
this.pl_search.Name = "pl_search";
this.pl_search.Size = new System.Drawing.Size(670, 40);
this.pl_search.TabIndex = 42;
//
// serachSweep
//
this.serachSweep.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(89)))), ((int)(((byte)(164)))));
this.serachSweep.Controls.Add(this.txtFixKey);
this.serachSweep.Controls.Add(this.lab_searchName);
this.serachSweep.Dock = System.Windows.Forms.DockStyle.Fill;
this.serachSweep.Location = new System.Drawing.Point(248, 0);
this.serachSweep.Name = "serachSweep";
this.serachSweep.Size = new System.Drawing.Size(422, 40);
this.serachSweep.TabIndex = 45;
//
// txtFixKey
//
this.txtFixKey.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtFixKey.EditValue = "";
this.txtFixKey.Location = new System.Drawing.Point(75, 0);
this.txtFixKey.Name = "txtFixKey";
this.txtFixKey.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(89)))), ((int)(((byte)(164)))));
this.txtFixKey.Properties.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F);
this.txtFixKey.Properties.Appearance.ForeColor = System.Drawing.Color.White;
this.txtFixKey.Properties.Appearance.Options.UseBackColor = true;
this.txtFixKey.Properties.Appearance.Options.UseFont = true;
this.txtFixKey.Properties.Appearance.Options.UseForeColor = true;
this.txtFixKey.Properties.AutoHeight = false;
this.txtFixKey.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.txtFixKey.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, DevExpress.XtraEditors.ImageLocation.MiddleCenter, global::Lskj.MesPrintCode.Properties.Resources., new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, true)});
this.txtFixKey.Size = new System.Drawing.Size(347, 40);
this.txtFixKey.TabIndex = 43;
this.txtFixKey.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnKeyDown);
//
// lab_searchName
//
this.lab_searchName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(115)))), ((int)(((byte)(188)))));
this.lab_searchName.Dock = System.Windows.Forms.DockStyle.Left;
this.lab_searchName.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold);
this.lab_searchName.ForeColor = System.Drawing.Color.White;
this.lab_searchName.Location = new System.Drawing.Point(0, 0);
this.lab_searchName.Name = "lab_searchName";
this.lab_searchName.Size = new System.Drawing.Size(75, 40);
this.lab_searchName.TabIndex = 42;
this.lab_searchName.Text = "工单号";
this.lab_searchName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// searchClass
//
this.searchClass.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(89)))), ((int)(((byte)(164)))));
this.searchClass.Controls.Add(this.txtEditClass);
this.searchClass.Controls.Add(this.lab_searchClass);
this.searchClass.Dock = System.Windows.Forms.DockStyle.Left;
this.searchClass.Location = new System.Drawing.Point(0, 0);
this.searchClass.Name = "searchClass";
this.searchClass.Size = new System.Drawing.Size(248, 40);
this.searchClass.TabIndex = 44;
//
// txtEditClass
//
this.txtEditClass.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtEditClass.EditValue = "";
this.txtEditClass.Location = new System.Drawing.Point(75, 0);
this.txtEditClass.Name = "txtEditClass";
this.txtEditClass.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(89)))), ((int)(((byte)(164)))));
this.txtEditClass.Properties.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F);
this.txtEditClass.Properties.Appearance.ForeColor = System.Drawing.Color.White;
this.txtEditClass.Properties.Appearance.Options.UseBackColor = true;
this.txtEditClass.Properties.Appearance.Options.UseFont = true;
this.txtEditClass.Properties.Appearance.Options.UseForeColor = true;
this.txtEditClass.Properties.AutoHeight = false;
this.txtEditClass.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.txtEditClass.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.txtEditClass.Size = new System.Drawing.Size(173, 40);
this.txtEditClass.TabIndex = 44;
this.txtEditClass.SelectedValueChanged += new System.EventHandler(this.OnSelectedValueChanged);
this.txtEditClass.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnSelectedKeyDown);
//
// lab_searchClass
//
this.lab_searchClass.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(115)))), ((int)(((byte)(188)))));
this.lab_searchClass.Dock = System.Windows.Forms.DockStyle.Left;
this.lab_searchClass.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold);
this.lab_searchClass.ForeColor = System.Drawing.Color.White;
this.lab_searchClass.Location = new System.Drawing.Point(0, 0);
this.lab_searchClass.Name = "lab_searchClass";
this.lab_searchClass.Size = new System.Drawing.Size(75, 40);
this.lab_searchClass.TabIndex = 42;
this.lab_searchClass.Text = "工单号";
this.lab_searchClass.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(115)))), ((int)(((byte)(188)))));
this.panel1.BackgroundImage = global::Lskj.MesPrintCode.Properties.Resources.message;
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel1.Location = new System.Drawing.Point(692, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(19, 23);
this.panel1.TabIndex = 41;
//
// TabRight
//
this.TabRight.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabRight.Location = new System.Drawing.Point(0, 0);
this.TabRight.Name = "TabRight";
this.TabRight.Size = new System.Drawing.Size(200, 785);
this.TabRight.TabIndex = 8;
//
// gcLeftDetail
//
this.gcLeftDetail.AdapterObj = null;
this.gcLeftDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcLeftDetail.Location = new System.Drawing.Point(0, 0);
this.gcLeftDetail.Name = "gcLeftDetail";
this.gcLeftDetail.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcLeftDetail.Size = new System.Drawing.Size(250, 482);
this.gcLeftDetail.TabIndex = 0;
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1440, 785);
this.Controls.Add(this.splitMain);
this.LookAndFeel.UseDefaultLookAndFeel = false;
this.Name = "FrmMain";
this.Text = "浸胶管理";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.OnFormClosed);
((System.ComponentModel.ISupportInitialize)(this.splitMain)).EndInit();
this.splitMain.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelMain)).EndInit();
this.panelMain.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitDetail)).EndInit();
this.splitDetail.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelDetail)).EndInit();
this.panelDetail.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailContorl)).EndInit();
this.detailContorl.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.split_Details)).EndInit();
this.split_Details.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.split_Main)).EndInit();
this.split_Main.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.split_Main_Top)).EndInit();
this.split_Main_Top.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailControlBtn)).EndInit();
this.detailControlBtn.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.plExpectBtn)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.plOutRightBtn)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.detailTab_Title)).EndInit();
this.detailTab_Title.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_TopSearch)).EndInit();
this.pl_TopSearch.ResumeLayout(false);
this.pl_TopSearch.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_search)).EndInit();
this.pl_search.ResumeLayout(false);
this.serachSweep.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtFixKey.Properties)).EndInit();
this.searchClass.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtEditClass.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.SplitContainerControl splitMain;
private DevExpress.XtraEditors.PanelControl panelMain;
private DevExpress.XtraEditors.PanelControl pl_TopSearch;
private DevExpress.XtraEditors.LabelControl labelTips;
private DevExpress.XtraEditors.PanelControl pl_search;
private System.Windows.Forms.Panel serachSweep;
private DevExpress.XtraEditors.ButtonEdit txtFixKey;
private System.Windows.Forms.Label lab_searchName;
private System.Windows.Forms.Panel searchClass;
private DevExpress.XtraEditors.ComboBoxEdit txtEditClass;
private System.Windows.Forms.Label lab_searchClass;
private System.Windows.Forms.Panel panel1;
private DevExpress.XtraEditors.SplitContainerControl splitDetail;
private DevExpress.XtraEditors.PanelControl panelDetail;
private DevExpress.XtraEditors.PanelControl detailContorl;
private DevExpress.XtraEditors.PanelControl detailTab_Title;
private System.Windows.Forms.Label lbTitle;
private DevExpress.LookAndFeel.DefaultLookAndFeel defaultLookAndFeel1;
private DevExpress.XtraEditors.SplitContainerControl split_Details;
private DevExpress.XtraEditors.SplitContainerControl split_Main;
private DevExpress.XtraEditors.SplitContainerControl split_Main_Top;
private Control.GridControlEx gcMain;
private Control.GridControlEx gcOutput;
private DevExpress.XtraEditors.PanelControl detailControlBtn;
private DevExpress.XtraEditors.PanelControl plExpectBtn;
private DevExpress.XtraEditors.PanelControl plOutRightBtn;
private Control.GridControlEx gcExpected;
private TabIntoControl detailTab;
private TabIntoControl TabRight;
private Control.GridControlEx gcLeftDetail;
}
}
File diff suppressed because it is too large Load Diff
+123
View File
@@ -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="defaultLookAndFeel1.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,216 @@
<?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>{797EE4E4-94C0-41C0-BE38-1B90C47B7015}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.MesPrintCode</RootNamespace>
<AssemblyName>Lskj.MesPrintCode</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Debug\Lib\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.BonusSkins.v15.2" />
<Reference Include="DevExpress.Data.v15.2" />
<Reference Include="DevExpress.Utils.v15.2" />
<Reference Include="DevExpress.Sparkline.v15.2.Core" />
<Reference Include="DevExpress.XtraBars.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraEditors.v15.2" />
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\DevExpress 15.2\Components\Bin\Framework\DevExpress.XtraGrid.v15.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.XtraTreeList.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\DevExpress 15.2\Components\Bin\Framework\DevExpress.XtraTreeList.v15.2.dll</HintPath>
</Reference>
<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" />
</ItemGroup>
<ItemGroup>
<Compile Include="Control\AutoGridPopup.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\AutoGridPopup.Designer.cs">
<DependentUpon>AutoGridPopup.cs</DependentUpon>
</Compile>
<Compile Include="Control\LevitationPanel.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\LevitationPanel.Designer.cs">
<DependentUpon>LevitationPanel.cs</DependentUpon>
</Compile>
<Compile Include="Control\SweepAutoEdit.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\SweepAutoEdit.Designer.cs">
<DependentUpon>SweepAutoEdit.cs</DependentUpon>
</Compile>
<Compile Include="Control\SweepButton.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\SweepButton.Designer.cs">
<DependentUpon>SweepButton.cs</DependentUpon>
</Compile>
<Compile Include="Control\SweepControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\SweepControl.Designer.cs">
<DependentUpon>SweepControl.cs</DependentUpon>
</Compile>
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="DllBaseClass.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TabIntoControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="TabIntoControl.Designer.cs">
<DependentUpon>TabIntoControl.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Control\AutoGridPopup.resx">
<DependentUpon>AutoGridPopup.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\LevitationPanel.resx">
<DependentUpon>LevitationPanel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\SweepAutoEdit.resx">
<DependentUpon>SweepAutoEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\SweepButton.resx">
<DependentUpon>SweepButton.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\SweepControl.resx">
<DependentUpon>SweepControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.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>
<EmbeddedResource Include="TabIntoControl.resx">
<DependentUpon>TabIntoControl.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
<Project>{7eafccc2-a18f-49e9-85c6-a984966cfd01}</Project>
<Name>Lskj.Business</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
<Project>{447cdc40-659f-4cca-9ed6-8e818b4cf8bf}</Project>
<Name>Lskj.Control</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
<Project>{2a1be6ac-1077-491b-a754-c5822fe8121e}</Project>
<Name>Lskj.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Data\Lskj.Data.csproj">
<Project>{308b9b18-9be2-495c-9c64-eed81d567813}</Project>
<Name>Lskj.Data</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Main\Lskj.Main.csproj">
<Project>{bca1e2b3-c4ab-4d2c-b519-3dcfdb5b83d6}</Project>
<Name>Lskj.Main</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
<Project>{52bc40e0-c0c6-4f78-996b-cae028d209ca}</Project>
<Name>Lskj.Model</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.PubBill\Lskj.PubBill.csproj">
<Project>{AB699777-88DB-4025-991D-5D62E9A8BE0E}</Project>
<Name>Lskj.PubBill</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
<Project>{a51bf642-6543-4de3-8948-83f558b72bd4}</Project>
<Name>Lskj.Util</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\组 146.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\sweepCode2.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\sweepCode.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\扫码.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\扫码2.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\红喇叭.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Lskj.SweepCode")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.SweepCode")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9006f149-aa49-4b8e-ba69-386d945fa738")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,159 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.MesPrintCode.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.MesPrintCode.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 使用此强类型资源类,为所有资源查找
/// 重写当前线程的 CurrentUICulture 属性。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap message {
get {
object obj = ResourceManager.GetObject("message", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找类似 Sun .: 的本地化字符串。
/// </summary>
internal static string String {
get {
return ResourceManager.GetString("String", resourceCulture);
}
}
/// <summary>
/// 查找类似 [图片] 的本地化字符串。
/// </summary>
internal static string String1 {
get {
return ResourceManager.GetString("String1", resourceCulture);
}
}
/// <summary>
/// 查找类似 Sun .: 的本地化字符串。
/// </summary>
internal static string String2 {
get {
return ResourceManager.GetString("String2", resourceCulture);
}
}
/// <summary>
/// 查找类似 [图片] 的本地化字符串。
/// </summary>
internal static string String3 {
get {
return ResourceManager.GetString("String3", resourceCulture);
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap sweepCode {
get {
object obj = ResourceManager.GetObject("sweepCode", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap sweepCode2 {
get {
object obj = ResourceManager.GetObject("sweepCode2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("扫码", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap 2 {
get {
object obj = ResourceManager.GetObject("扫码2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap {
get {
object obj = ResourceManager.GetObject("红喇叭", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
@@ -0,0 +1,151 @@
<?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>
<data name="String3" xml:space="preserve">
<value>[图片]</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<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="String1" xml:space="preserve">
<value>[图片]</value>
</data>
<data name="sweepCode" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\sweepCode.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="String" xml:space="preserve">
<value>Sun .:</value>
</data>
<data name="message" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\组 146.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="扫码2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\扫码2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="String2" xml:space="preserve">
<value>Sun .:</value>
</data>
<data name="sweepCode2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\sweepCode2.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>
</root>
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.MesPrintCode.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
Binary file not shown.

After

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 928 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

+89
View File
@@ -0,0 +1,89 @@
namespace Lskj.MesPrintCode
{
partial class TabIntoControl
{
/// <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.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
((System.ComponentModel.ISupportInitialize)(this.xtc_container)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
this.xtraTabControl1.SuspendLayout();
this.SuspendLayout();
//
// xtc_container
//
this.xtc_container.Size = new System.Drawing.Size(750, 502);
//
// xtraTabControl1
//
this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraTabControl1.Location = new System.Drawing.Point(0, 0);
this.xtraTabControl1.Name = "xtraTabControl1";
this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
this.xtraTabControl1.Size = new System.Drawing.Size(750, 502);
this.xtraTabControl1.TabIndex = 0;
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage1,
this.xtraTabPage2});
//
// xtraTabPage1
//
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(744, 473);
this.xtraTabPage1.Text = "xtraTabPage1";
//
// xtraTabPage2
//
this.xtraTabPage2.Name = "xtraTabPage2";
this.xtraTabPage2.Size = new System.Drawing.Size(744, 473);
this.xtraTabPage2.Text = "xtraTabPage2";
//
// TabIntoControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.xtraTabControl1);
this.Name = "TabIntoControl";
this.Size = new System.Drawing.Size(750, 502);
this.Controls.SetChildIndex(this.xtraTabControl1, 0);
this.Controls.SetChildIndex(this.xtc_container, 0);
((System.ComponentModel.ISupportInitialize)(this.xtc_container)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
this.xtraTabControl1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraTab.XtraTabControl xtraTabControl1;
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
private DevExpress.XtraTab.XtraTabPage xtraTabPage2;
}
}
@@ -0,0 +1,855 @@
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;
using Lskj.Data;
using DevExpress.XtraGrid.Columns;
using Lskj.Util;
using Lskj.Control.Model;
using Lskj.Business.Impl;
using DevExpress.XtraTab;
using Lskj.Model;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Grid;
namespace Lskj.MesPrintCode
{
public partial class TabIntoControl : TabControlEx
{
/// <summary>
/// 是否加载明细刷新
/// </summary>
/// <value><c>true</c> if [_ un refresh]; otherwise, <c>false</c>.</value>
private bool _UnRefresh
{
get
{
return Model is DynamicModuleDetailModel || Model is DynamicModuleModel || Model is DynamicProductionModel;
}
}
/// <summary>
/// 拖拽模式
/// </summary>
public bool IsDragDetail;
/// <summary>
/// 拖拽目标主键字段
/// </summary>
public string DrgaParentPrimaryKey;
/// <summary>
/// 添加数据sql赋值
/// </summary>
public string ControlSql;
/// <summary>
/// tab标签
/// </summary>
private List<GridDetailModel> _gridDetail;
/// <summary>
/// tab标签里明细数据
/// </summary>
private List<GridDetailModel> _gridIntoDetail;
/// <summary>
/// The system model
/// </summary>
public DynamicModel Model;
/// <summary>
/// 父表格
/// </summary>
public GridControlEx ParentGridEx;
/// <summary>
/// 父容器
/// </summary>
public MyControl ParentControlEx;
/// <summary>
/// 明细数据里的主表格
/// </summary>
public ModuleGridEx ModuleGridObj;
/// <summary>
/// 选项卡
/// </summary>
public XtraTabControl TabIntoControlObj
{
get { return this.xtc_container; }
}
/// <summary>
/// 右键菜单执行后调用
/// </summary>
/// <param name="sender">The sender.</param>
public event EventHandler OnRightCallback;
/// <summary>
/// 表格保存执行后调用
/// </summary>
/// <param name="sender">The sender.</param>
public event EventHandler OnAllGridCallback;
public TabIntoControl()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:绑定选项卡</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-01-09</para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitTabPages(List<GridDetailModel> gridDetail, int _fontSize = 0)
{
this._gridDetail = gridDetail;
this.xtc_container.TabPages.Clear();
if (_fontSize == 0)
{
_fontSize = 12;
}
decimal result = Math.Round((decimal)_fontSize / (decimal)12, 2);//缩放比
bool ProcessExists =false;
foreach (GridDetailModel model in this._gridDetail)
{
XtraTabPage page = new XtraTabPage();//DetailSql
page.Text = model.DetailName;
//page.Appearance.Header.Font = new System.Drawing.Font("Microsoft YaHei UI", _fontSize, System.Drawing.FontStyle.Bold);
//page.Appearance.Header.FontStyleDelta = System.Drawing.FontStyle.Bold;
//page.TabPageWidth = Convert.ToInt32(181 * result);
//page.Appearance.Header.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
if (model.IsChart)
{
ChartControlEx chartEx = new ChartControlEx();
chartEx.Dock = DockStyle.Fill;
if (ProcessExists)
{
chartEx.SetCharts(Lskj.Data.Caches.CacheSYSConfig.Instance().GetCustomQueryFields());
chartEx.SetChartRightMenus(Lskj.Data.Caches.CacheSYSConfig.Instance().GetBaseGridRightMenus(), this.Model, OnGridViewRightCallBack);
}
else
{
chartEx.SetCharts(BaseModuleImpl.GetChartParams(model.FormKey));
chartEx.SetChartRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
}
chartEx.Tag = model;
page.Tag = chartEx;
page.Controls.Add(chartEx);
}
else if (model.IsExcel)
{
ExcelControlEx excelEx = new ExcelControlEx();
excelEx.Dock = DockStyle.Fill;
excelEx.Tag = model;
page.Tag = excelEx;
page.Controls.Add(excelEx);
}
else if (model.IsWebView)
{
// 加载网页
string url = model.DetailSql.StartsWith("http") ? model.DetailSql : SystemInfo.Instance.OAUrl + model.DetailSql;
ModuleWebView webView = new ModuleWebView();
webView.Dock = DockStyle.Fill;
webView.Tag = model;
webView.Navigate(ReplaceHelper.ReplaceUserInfo(url));
page.Tag = webView;
page.Controls.Add(webView);
}
else
{
if (model.IsReadOnly)
{
PanelControl plBottom = new PanelControl();
plBottom.Visible = false;
plBottom.Dock = DockStyle.Bottom;
PanelControl plMain = new PanelControl();
plMain.Dock = DockStyle.Fill;
GridControlEx gridEx = new GridControlEx();
//gridEx.GridControl.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
//gridEx.GridControl.LookAndFeel.UseDefaultLookAndFeel = false;
//gridEx.GridView.Appearance.HeaderPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
//gridEx.GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Microsoft YaHei UI", _fontSize, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
//gridEx.GridView.Appearance.HeaderPanel.ForeColor = System.Drawing.Color.Black;
//gridEx.GridView.ColumnPanelRowHeight = Convert.ToInt32(30 * result);
//gridEx.GridView.RowHeight = Convert.ToInt32(32 * result);
//gridEx.GridView.Appearance.Row.Font = new System.Drawing.Font("Microsoft YaHei UI", _fontSize);
//gridEx.GridView.Appearance.Row.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
gridEx.Dock = DockStyle.Fill;
gridEx.Tag = model;
gridEx.Parent = plMain;
gridEx.Model = this.Model;
gridEx.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
if (ProcessExists)
{
// BaseModuleImpl.GetBaseGridRightMenus(model.FormKey);
gridEx.SetGridRightMenus(Lskj.Data.Caches.CacheSYSConfig.Instance().GetBaseGridRightMenus(), this.Model, OnGridViewRightCallBack);
//BaseModuleImpl.GetBaseGridRowColors(model.FormKey);
gridEx.SetGridRowColors(Lskj.Data.Caches.CacheSYSConfig.Instance().GetCustomColumnByDatabase());
}
else
{
gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
}
//plMain.Height = this.xtc_container.Height - Convert.ToInt32((40 + page.Appearance.Header.FontHeight) * result);
//plMain.Width = Convert.ToInt32(this.xtc_container.Width - 40);
//plMain.Top = Convert.ToInt32(20 * result); plMain.Left = Convert.ToInt32(20 * result);
//plMain.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
//plMain.Parent = xtc_container;
if (model.IsCheck == 1)
{
GridDragGrid.GridAddCheckBox(gridEx.GridView);
}
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
{
// 拖拽模式,绑定拖拽对象
GridDragGrid dragGrid = new GridDragGrid(gridEx.GridView, this.ParentGridEx.GridView);
dragGrid.OnDragComplete += new GridFragGridCompleteEventHandler(OnDragGridCompleted);
}
// 加载配置查询条件
//if (model.IsSearch)
//{
// plBottom.Visible = true;
// MyControl searchObj = new MyControl(model.DetailSql, gridEx);
// plBottom.Height = searchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(model.SystemModel.CondKey), plBottom);
//}
page.Tag = gridEx;
page.Controls.AddRange(new PanelControl[] { plBottom, plMain });
}
else
{
DynamicModel dyncModel = new DynamicModuleModel(new string[] { model.DetailName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "1", model.UnionModule, "0" });
if (ProcessExists)
{
DataRow dr = Lskj.Data.Caches.CacheSYSConfig.Instance().GetSystemdllTab();
model.SystemModel = new ModuleModel(dr);
}
else
{
model.SystemModel = new ModuleModel(MainImpl.GetSystemdllTab(model.UnionModule));
}
if (Model != null)
{
if (ProcessExists)
{
model.SystemModel.ParmaryKey = Lskj.Data.Caches.CacheSYSConfig.Instance().GetBasePrimaryKey();
}
else
{
model.SystemModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(Model.ModuleCode);
}
}
ModuleGridEx gridEx = new ModuleGridEx();
gridEx.Name = "gridEx";
gridEx.IsDetail = true;
gridEx.Dock = DockStyle.Fill;
//gridEx.GridControlObj.gridControl.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
//gridEx.GridControlObj.gridControl.LookAndFeel.UseDefaultLookAndFeel = false;
//gridEx.GridControlObj.GridView.Appearance.HeaderPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
//gridEx.GridControlObj.GridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("Microsoft YaHei UI", _fontSize, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
//gridEx.GridControlObj.GridView.Appearance.HeaderPanel.ForeColor = System.Drawing.Color.Black;
//gridEx.GridControlObj.GridView.ColumnPanelRowHeight = Convert.ToInt32(30 * result); ;
//gridEx.GridControlObj.GridView.RowHeight = Convert.ToInt32(32 * result); ;
//gridEx.GridControlObj.GridView.Appearance.Row.Font = new System.Drawing.Font("Microsoft YaHei UI", _fontSize);
//gridEx.GridControlObj.GridView.Appearance.Row.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136)))));
gridEx.OperShortMode = false; // 不显示简短模式
gridEx.VisibleSearchPanel = Model.IsDetailSearch;
gridEx.VisibleOperPanel = !model.IsReadOnly;
gridEx.InitializeControl(model.SystemModel, dyncModel);
gridEx.GridControlObj.Tag = model;
gridEx.ParentControlEx = this.ParentControlEx;
gridEx.ParentGridEx = this.ParentGridEx;
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
gridEx.DetailKeyField = model.UnionValue;
gridEx.OnSaveGridCallBack += new EventHandler(OnGridViewAllCallBack);
//gridEx.Height = this.xtc_container.Height - Convert.ToInt32(40 * result + page.Appearance.Header.FontHeight);
//gridEx.Width = Convert.ToInt32(this.xtc_container.Width - 40);
//gridEx.Top = Convert.ToInt32(20 * result); gridEx.Left = Convert.ToInt32(20 * result);
if (model.IsCheck == 1)
{
GridDragGrid.GridAddCheckBox(gridEx.GridControlObj.GridView);
}
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
{
// 拖拽模式,绑定拖拽对象
GridDragGrid dragGrid = new GridDragGrid(gridEx.GridControlObj.GridView, this.ParentGridEx.GridView);
dragGrid.OnDragComplete += new GridFragGridCompleteEventHandler(OnDragGridCompleted);
}
if (model.AutoRefresh && !_UnRefresh)
gridEx.SearchObj.SearchGrid();
this._gridIntoDetail = GetDetails(model.UnionModule);
if (_gridIntoDetail.Count > 0)
{
page.Tag = gridEx.GridControlObj;
SplitContainer splitLeftControl = new SplitContainer();
splitLeftControl.Dock = DockStyle.Fill;
TabAddControl tabAdd = new TabAddControl();
tabAdd.InitTabPages(_gridIntoDetail);
tabAdd.Dock = DockStyle.Fill;
splitLeftControl.Panel1.Controls.Add(gridEx);
splitLeftControl.Panel2.Controls.Add(tabAdd);
splitLeftControl.Panel1.Tag = gridEx;
splitLeftControl.Panel2.Tag = tabAdd;
page.Controls.AddRange(new SplitContainer[] { splitLeftControl });
gridEx.GridControlObj.GridView.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(GridView_RowCellClick);
}
else
{
page.Tag = gridEx.GridControlObj;
page.Controls.Add(gridEx);
}
}
}
this.xtc_container.TabPages.Add(page);
}
}
/// <summary>
/// <para>说明:特殊情况绑定选项卡</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-04-04 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="gridDetail">The grid detail.</param>
/// <param name="parentValue">The parent value.</param>
public void InitTabPages(List<GridDetailModel> gridDetail, string parentValue)
{
this._gridDetail = gridDetail;
this.xtc_container.TabPages.Clear();
foreach (GridDetailModel model in this._gridDetail)
{
XtraTabPage page = new XtraTabPage();
page.Text = model.DetailName;
if (model.IsChart)
{
ChartControlEx chartEx = new ChartControlEx();
chartEx.Dock = DockStyle.Fill;
chartEx.SetCharts(BaseModuleImpl.GetChartParams(model.FormKey));
chartEx.SetChartRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
chartEx.Tag = model;
page.Tag = chartEx;
page.Controls.Add(chartEx);
}
else if (model.IsExcel)
{
ExcelControlEx excelEx = new ExcelControlEx();
excelEx.Dock = DockStyle.Fill;
excelEx.Tag = model;
page.Tag = excelEx;
page.Controls.Add(excelEx);
}
else
{
if (model.IsReadOnly)
{
PanelControl plTop = new PanelControl();
plTop.Dock = DockStyle.Top;
PanelControl plMain = new PanelControl();
plMain.Dock = DockStyle.Fill;
GridControlEx gridEx = new GridControlEx();
gridEx.Dock = DockStyle.Fill;
gridEx.Tag = model;
gridEx.Parent = plMain;
gridEx.Model = this.Model;
gridEx.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
// 加载配置查询条件
if (model.IsSearch)
{
MyControl searchObj = new MyControl(model.DetailSql, gridEx);
if (!string.IsNullOrEmpty(model.UnionValue) && !string.IsNullOrEmpty(parentValue))
searchObj.WhereCond = string.Format(" and {0}='{1}'", model.UnionValue, parentValue);
plTop.Height = searchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(model.SystemModel.CondKey), plTop);
}
page.Tag = gridEx;
page.Controls.AddRange(new PanelControl[] { plTop, plMain });
}
else
{
DynamicModel dyncModel = new DynamicModel(new string[] { model.DetailName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "1", model.UnionModule, "0" });
model.SystemModel = new ModuleModel(MainImpl.GetSystemdllTab(model.UnionModule));
ModuleGridEx gridEx = new ModuleGridEx();
gridEx.Name = "gridEx";
gridEx.Dock = DockStyle.Fill;
gridEx.OperShortMode = false; // 不显示简短模式
gridEx.VisibleSearchPanel = model.IsSearch;
gridEx.VisibleOperPanel = true;
gridEx.ParentGridEx = this.ParentGridEx;
gridEx.ParentControlEx = this.ParentControlEx;
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.UnionValue : model.UnionParentField;
gridEx.ParentKeyValue = parentValue;
gridEx.DetailKeyField = model.UnionValue;
gridEx.UnionKey = model.UnionValue;
gridEx.UnionValue = parentValue; //Model.ObjectId;
gridEx.InitializeControl(model.SystemModel, dyncModel);
gridEx.GridControlObj.Tag = model;
gridEx.ControlSql = ControlSql;
if (model.AutoRefresh)
gridEx.SearchObj.SearchGrid();
page.Tag = gridEx.GridControlObj;
page.Controls.Add(gridEx);
}
}
this.xtc_container.TabPages.Add(page);
}
}
/// <summary>
/// <para>说明:加载tab标签里得明细数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2018-09-28 </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="RowCellClickEventArgs"/> instance containing the event data.</param>
protected void GridView_RowCellClick(object sender, RowCellClickEventArgs e)
{
try
{
WaitForm.ShowForm();
XtraTabPage tabPage = this.xtc_container.SelectedTabPage;
foreach (System.Windows.Forms.Control control in tabPage.Controls)
{
if (control is SplitContainer)
{
SplitContainer splitContainer = control as SplitContainer;
ModuleGridEx gcMain = splitContainer.Panel1.Tag as ModuleGridEx;
TabAddControl tabadd = splitContainer.Panel2.Tag as TabAddControl;
GridDetailModel model = tabadd.gridEx.Tag as GridDetailModel;
GridDetailModel model2 = tabadd.gridEx2.GridControlObj.Tag as GridDetailModel;
DataRow rowItem = gcMain.GridControlObj.GridView.GetFocusedDataRow();
this.ModuleGridObj = gcMain;
tabadd.PrimaryKey = this.ModuleGridObj.ParmaryKey;
if (rowItem != null && model != null)
{
string searchSql = this.GetSearchSql(model, rowItem);
tabadd.gridEx.LastSearchSql = searchSql;
tabadd.gridEx.SetGridViewDataSource(MainImpl.GetDataTableResult(tabadd.gridEx.LastSearchSql));
string searchSql2 = this.GetSearchSql(model2, rowItem);
tabadd.gridEx2.GridControlObj.LastSearchSql = searchSql2;
tabadd.gridEx2.SearchObj.SearchLastGrid();
}
}
}
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show("加载明细数据失败!" + ex);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
finally
{
WaitForm.HideForm();
}
}
/// <summary>
/// <para>说明:获取查询条件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-22 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
/// <param name="rowItem">The row item.</param>
/// <returns>System.String.</returns>
protected string GetSearchSql(GridDetailModel model, DataRow rowItem)
{
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : ModuleGridObj.ParmaryKey;
string sqlValue = model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
if (ReplaceHelper.IsSelect(sqlValue) && !string.IsNullOrEmpty(model.UnionValue))
{
sqlValue = ReplaceHelper.ReplaceWhereCond(sqlValue) + string.Format(" and {0}='{1}'", model.UnionValue, rowItem[fieldName] + "");
}
return sqlValue;
}
/// <summary>
/// <para>说明:判断多标签里是否有明细表</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2019-12-19 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>List&lt;GridDetailModel&gt;.</returns>
private List<GridDetailModel> GetDetails(string ModuleCode)
{
List<GridDetailModel> details = new List<GridDetailModel>();
bool ProcessExists = (Lskj.Data.Caches.CacheSYSConfig.Instance().JudgeProcessExists()&&SystemInfo.Instance.isExecload);
DataTable table = null;
if (ProcessExists)
{
table = Lskj.Data.Caches.CacheSYSConfig.Instance().GetCustomQueryFields();
}
else
{
table = BaseModuleImpl.GetBaseDetailPages(ModuleCode);
}
foreach (DataRow item in table.Rows)
{
DataTable gridColumns = null;
//DataTable gridColumns = ReportImpl.GetReportDetailColumns(ModuleCode, item["id"] + "");
if (ProcessExists)
{
gridColumns = Lskj.Data.Caches.CacheSYSConfig.Instance().GetCustomQueryFields();
}
else
{
gridColumns = ReportImpl.GetReportDetailColumns(ModuleCode, item["id"] + "");
}
details.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
}
return details;
}
/// <summary>
/// <para>说明:获取TabPage绑定的实体对象</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="tabPage">The tab page.</param>
/// <returns>GridDetailModel.</returns>
public GridDetailModel GetGridDetailModel(XtraTabPage tabPage)
{
if (tabPage == null) return null;
if (tabPage.Tag is GridControlEx)
return (tabPage.Tag as GridControlEx).Tag as GridDetailModel;
if (tabPage.Tag is ChartControlEx)
return (tabPage.Tag as ChartControlEx).Tag as GridDetailModel;
return null;
}
/// <summary>
/// <para>说明:获取选中TabPage绑定的实体对象</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>GridDetailModel.</returns>
public GridDetailModel GetFocusTabPageGridDetailModel()
{
return this.GetGridDetailModel(this.xtc_container.SelectedTabPage);
}
/// <summary>
/// <para>说明:设置指定TabPage数据源</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-01-15 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="tabPage">The tab page.</param>
/// <param name="rowItem">The row item.</param>
public void SetGridDataSource(XtraTabPage tabPage, DataTable table)
{
try
{
if (tabPage == null) return;
if (tabPage.Tag is GridControlEx)
{
this.SetGridViewTabPage(tabPage, table);
}
else if (tabPage.Tag is ChartControlEx)
{
this.SetChartViewTabPage(tabPage, table);
}
}
catch (Exception ex)
{
LogUtil.WriteError("TabPage配置错误-->" + tabPage.Text, ex);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ex);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:设置选中TabPage数据源</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="table">The table.</param>
public void SetGridDataSource(DataTable table)
{
this.SetGridDataSource(this.xtc_container.SelectedTabPage, table);
}
/// <summary>
/// <para>说明:设置表格数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-01-29 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="tabPage">The tab page.</param>
/// <param name="gridControl">The grid control.</param>
protected void SetGridViewTabPage(XtraTabPage tabPage, DataTable table)
{
GridControlEx gridControl = tabPage.Tag as GridControlEx;
GridDetailModel model = gridControl.Tag as GridDetailModel;
gridControl.SetGridViewDataSource(table);
gridControl.GridView.DoubleClick -= new EventHandler(OnGridCompleted);
int dataRowCount = gridControl.GridView.DataRowCount;
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
{
gridControl.GridView.DoubleClick += new EventHandler(OnGridCompleted);
}
tabPage.Text = model.DetailName + "(" + dataRowCount + ")";
tabPage.Appearance.Header.ForeColor = gridControl.GridView.DataRowCount > 0 ? Color.Red : Color.FromArgb(0, 0, 0);
}
/// <summary>
/// <para>说明:设置图表数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-01-29 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="tabPage">The tab page.</param>
/// <param name="chartControl">The chart control.</param>
protected void SetChartViewTabPage(XtraTabPage tabPage, DataTable table)
{
ChartControlEx chartEx = tabPage.Tag as ChartControlEx;
GridDetailModel model = chartEx.Tag as GridDetailModel;
chartEx.CreateChart(table);
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
protected void OnGridViewRightCallBack(object sender, EventArgs e)
{
try
{
if (this.OnRightCallback != null)
this.OnRightCallback(sender, e);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
protected void OnGridViewAllCallBack(object sender, EventArgs e)
{
try
{
if (this.OnAllGridCallback != null)
this.OnAllGridCallback(sender, e);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:表格双击完成</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2019-08-29 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
protected void OnGridCompleted(object sender, EventArgs e)
{
try
{
XtraTabPage tabPage = this.xtc_container.SelectedTabPage;
GridControlEx ge = tabPage.Tag as GridControlEx;
DataRow[] rowItems = new DataRow[] { ge.GridView.GetFocusedDataRow() };
GridColumnCollection gridColumns = this.ParentGridEx.GridView.Columns;
DataTable table = this.ParentGridEx.gridControl.DataSource as DataTable;
foreach (DataRow rowItem in rowItems)
{
DataRow newRow = table.NewRow();
foreach (GridColumn col in gridColumns)
{
if ("id".Equals(col.FieldName) || col.FieldName.Equals(this.DrgaParentPrimaryKey)) continue;
if (rowItem.Table.Columns.Contains(col.FieldName))
{
// 列中是否包含对应字段,包含则使用值
newRow[col.FieldName] = rowItem[col.FieldName];
}
else
{
// 未包含字段,则使用控件默认值.
GridColumnModel model = col.Tag as GridColumnModel;
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
if (!string.IsNullOrEmpty(model.DefaultValue))
{
newRow[col.FieldName] = fieldValue;
}
}
}
table.Rows.Add(newRow);
}
this.ParentGridEx.GridView.ClearSelection();
this.ParentGridEx.GridView.SelectRowHandler(table.Rows.Count - 1);
this.ParentGridEx.GridView.UpdateCurrentRow();
this.ParentGridEx.GridView.ShowEditor();
}
catch (Exception ex)
{
LogUtil.WriteError("表格双击移动错误", ex);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ResourceKeys.OperFault);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:表格拖拽完成</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
protected void OnDragGridCompleted(object sender, GridDragGridArgs e)
{
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0 || this.ParentGridEx == null) return;
try
{
if (MessageUtil.Show(ResourceKeys.DragSelectRow, MessageBoxButtons.YesNo) == DialogResult.Yes)
{
GridColumnCollection gridColumns = this.ParentGridEx.GridView.Columns;
DataTable table = this.ParentGridEx.gridControl.DataSource as DataTable;
foreach (DataRow rowItem in e.GridViewSelectRows)
{
DataRow newRow = table.NewRow();
foreach (GridColumn col in gridColumns)
{
if ("id".Equals(col.FieldName) || col.FieldName.Equals(this.DrgaParentPrimaryKey)) continue;
if (rowItem.Table.Columns.Contains(col.FieldName))
{
// 列中是否包含对应字段,包含则使用值
newRow[col.FieldName] = rowItem[col.FieldName];
}
else
{
// 未包含字段,则使用控件默认值.
GridColumnModel model = col.Tag as GridColumnModel;
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
if (!string.IsNullOrEmpty(model.DefaultValue))
{
newRow[col.FieldName] = fieldValue;
}
}
}
table.Rows.Add(newRow);
}
this.ParentGridEx.GridView.ClearSelection();
this.ParentGridEx.GridView.SelectRowHandler(table.Rows.Count - 1);
this.ParentGridEx.GridView.UpdateCurrentRow();
this.ParentGridEx.GridView.ShowEditor();
}
}
catch (Exception ex)
{
LogUtil.WriteError("表格拖拽错误", ex);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ResourceKeys.OperFault);
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>
+36
View File
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Spire.XLS" publicKeyToken="663f351905198cb3" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.3.8.0" newVersion="10.3.8.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Spire.Presentation" publicKeyToken="663f351905198cb3" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.3.6.0" newVersion="5.3.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Spire.Doc" publicKeyToken="663f351905198cb3" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.3.15.0" newVersion="8.3.15.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>