基线 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
+167
View File
@@ -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>
+100
View File
@@ -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.SweepCode.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>
+70
View File
@@ -0,0 +1,70 @@
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", 15F, System.Drawing.FontStyle.Bold);
this.btn_title.ForeColor = System.Drawing.Color.White;
this.btn_title.Location = new System.Drawing.Point(0, 0);
this.btn_title.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.btn_title.Name = "btn_title";
this.btn_title.Size = new System.Drawing.Size(200, 60);
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(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.btn_title);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "SweepButton";
this.Size = new System.Drawing.Size(200, 60);
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, this.btn_title.Font.Style);
}
}
}
/// <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,94 @@
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.plRight = new System.Windows.Forms.Panel();
this.lbTitle = new System.Windows.Forms.Label();
this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
this.plRight.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).BeginInit();
this.SuspendLayout();
//
// 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;
//
// 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.SweepCode.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);
//
// SweepControl
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.plRight);
this.Name = "SweepControl";
this.Size = new System.Drawing.Size(500, 38);
this.plRight.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel plRight;
private System.Windows.Forms.Label lbTitle;
private DevExpress.XtraEditors.ButtonEdit buttonEdit1;
}
}
@@ -0,0 +1,104 @@
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>
/// 是否清空数据(默认清空,配置为1就不清空)
/// </summary>
public bool isEmptyData = true;
/// <summary>
/// 是否扫码后获取焦点(默认获取,配置为1就不获取)
/// </summary>
public bool isGainFocus = true;
/// <summary>
/// 扫码后刷新主表
/// </summary>
public bool RefreshMain = false;
/// <summary>
/// 扫码后等待时间(等待时间结束前,当前控件不允许扫码,单位为秒)
/// </summary>
public int WaitingTime = 0;
/// <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>
+75
View File
@@ -0,0 +1,75 @@
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.SweepCode
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
FrmMain main = new FrmMain();
this.SubForm = main;
main.SysModel = new DynamicProductionModel(obj);
string results = BaseImpl.GetResult("IF EXISTS(SELECT *FROM SYSOBJECTS WHERE NAME ='p_Get_NewDesignPlatform_SweepCode' AND TYPE = 'P') begin select 1 end else Begin select 2 end").ToString();
if (results.Equals("1") && SystemInfo.Instance.isExecload)
{
DataSet ds = new DataSet();
SqlParameter[] param =
{
new SqlParameter("@userId",SqlDbType.Int,4),
new SqlParameter("@operatorName",SqlDbType.VarChar,20),
new SqlParameter("@FormText",SqlDbType.VarChar,20),
new SqlParameter("@Privilege",SqlDbType.Int,4),
new SqlParameter("@moduleId",SqlDbType.Int,4),
new SqlParameter("@moduleCode",SqlDbType.VarChar,50),
new SqlParameter("@settingTableName",SqlDbType.VarChar,50),
};
param[0].Value = ERPInfo.Instance.UserId;
param[1].Value = ERPInfo.Instance.UserName;
param[2].Value = obj[0];
param[3].Value = obj[3];
param[4].Value = obj[5];
param[5].Value = obj[4];
param[6].Value = Lskj.Data.ResourceKeys.SettingTableName;
ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_Get_NewDesignPlatform_SweepCode", "cacheSYSConfig", param);
Lskj.Data.Caches.CacheSYSConfig.Instance().SetData(ds);
}
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.SweepCode.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+116
View File
@@ -0,0 +1,116 @@
namespace Lskj.SweepCode
{
partial class FrmCode
{
/// <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.txt_advice = new Lskj.Control.LabelRemarkEdit();
this.pl_bottom = new DevExpress.XtraEditors.PanelControl();
this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
this.btnOk = new DevExpress.XtraEditors.SimpleButton();
((System.ComponentModel.ISupportInitialize)(this.pl_bottom)).BeginInit();
this.pl_bottom.SuspendLayout();
this.SuspendLayout();
//
// txt_advice
//
this.txt_advice.BackColor = System.Drawing.Color.Transparent;
this.txt_advice.Dock = System.Windows.Forms.DockStyle.Fill;
this.txt_advice.EditText = "";
this.txt_advice.FontSize = 0F;
this.txt_advice.LabelText = "扫码信息";
this.txt_advice.Location = new System.Drawing.Point(0, 0);
this.txt_advice.Margin = new System.Windows.Forms.Padding(4);
this.txt_advice.Model = null;
this.txt_advice.Name = "txt_advice";
this.txt_advice.NullText = "";
this.txt_advice.ReadOnly = false;
this.txt_advice.Required = false;
this.txt_advice.Size = new System.Drawing.Size(403, 198);
this.txt_advice.TabIndex = 13;
this.txt_advice.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_advice_KeyDown);
//
// pl_bottom
//
this.pl_bottom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_bottom.Controls.Add(this.btnCancel);
this.pl_bottom.Controls.Add(this.btnOk);
this.pl_bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pl_bottom.Location = new System.Drawing.Point(0, 198);
this.pl_bottom.Name = "pl_bottom";
this.pl_bottom.Size = new System.Drawing.Size(403, 40);
this.pl_bottom.TabIndex = 12;
//
// btnCancel
//
this.btnCancel.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnCancel.Appearance.Options.UseFont = true;
this.btnCancel.Location = new System.Drawing.Point(324, 6);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(72, 26);
this.btnCancel.TabIndex = 1;
this.btnCancel.Text = "取消";
this.btnCancel.Click += new System.EventHandler(this.btnCancelClick);
//
// btnOk
//
this.btnOk.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnOk.Appearance.Options.UseFont = true;
this.btnOk.Location = new System.Drawing.Point(246, 6);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(72, 26);
this.btnOk.TabIndex = 0;
this.btnOk.Text = "确定";
this.btnOk.Click += new System.EventHandler(this.btnOkClick);
//
// FrmCode
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(403, 238);
this.Controls.Add(this.txt_advice);
this.Controls.Add(this.pl_bottom);
this.Name = "FrmCode";
this.Text = "扫码";
((System.ComponentModel.ISupportInitialize)(this.pl_bottom)).EndInit();
this.pl_bottom.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private Lskj.Control.LabelRemarkEdit txt_advice;
private DevExpress.XtraEditors.PanelControl pl_bottom;
private DevExpress.XtraEditors.SimpleButton btnCancel;
private DevExpress.XtraEditors.SimpleButton btnOk;
}
}
+76
View File
@@ -0,0 +1,76 @@
using Lskj.Business.Impl;
using Lskj.Control;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.SweepCode
{
public partial class FrmCode : BaseForm
{
/// <summary>
///扫码内容
/// </summary>
public string ScanningContent = string.Empty;
public FrmCode()
{
InitializeComponent();
}
/// <summary>
/// 确认审批
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnOkClick(object sender, EventArgs e)
{
try
{
ScanningContent = txt_advice.Text.TrimEnd(','); ;
this.DialogResult = DialogResult.OK;
this.Close();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show( Message);
}
}
/// <summary>
/// 取消审批
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnCancelClick(object sender, EventArgs e)
{
try
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show( Message);
}
}
private void txt_advice_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
string content = txt_advice.Text;
txt_advice.Text = content + ",";
}
}
}
}
+120
View File
@@ -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>
+310
View File
@@ -0,0 +1,310 @@
namespace Lskj.SweepCode
{
partial class FrmCompletion
{
/// <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.panelMain = new DevExpress.XtraEditors.PanelControl();
this.panelDetail = new DevExpress.XtraEditors.PanelControl();
this.RecordForm = new Lskj.SweepCode.TabIntoControl();
this.detailContorl = new DevExpress.XtraEditors.PanelControl();
this.detailplControl = new DevExpress.XtraEditors.PanelControl();
this.detailpl_Bottom = new DevExpress.XtraEditors.PanelControl();
this.btn_Out = new System.Windows.Forms.Label();
this.detailpl_Top = new DevExpress.XtraEditors.PanelControl();
this.btn_saveadd = new System.Windows.Forms.Label();
this.details_Title = new DevExpress.XtraEditors.PanelControl();
this.lbTitle = new System.Windows.Forms.Label();
this.pl_Main = new DevExpress.XtraEditors.PanelControl();
this.pl_Main_Center = new DevExpress.XtraEditors.PanelControl();
this.detailTab_Top = new DevExpress.XtraEditors.PanelControl();
this.lbTop = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.panelMain)).BeginInit();
this.panelMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelDetail)).BeginInit();
this.panelDetail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailContorl)).BeginInit();
this.detailContorl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailplControl)).BeginInit();
this.detailplControl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailpl_Bottom)).BeginInit();
this.detailpl_Bottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailpl_Top)).BeginInit();
this.detailpl_Top.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.details_Title)).BeginInit();
this.details_Title.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Main)).BeginInit();
this.pl_Main.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Main_Center)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.detailTab_Top)).BeginInit();
this.detailTab_Top.SuspendLayout();
this.SuspendLayout();
//
// panelMain
//
this.panelMain.Appearance.BackColor = System.Drawing.Color.Blue;
this.panelMain.Appearance.Options.UseBackColor = true;
this.panelMain.Controls.Add(this.panelDetail);
this.panelMain.Controls.Add(this.detailContorl);
this.panelMain.Controls.Add(this.details_Title);
this.panelMain.Controls.Add(this.pl_Main);
this.panelMain.Controls.Add(this.detailTab_Top);
this.panelMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelMain.Location = new System.Drawing.Point(0, 0);
this.panelMain.Margin = new System.Windows.Forms.Padding(2);
this.panelMain.Name = "panelMain";
this.panelMain.Size = new System.Drawing.Size(1134, 700);
this.panelMain.TabIndex = 1;
//
// panelDetail
//
this.panelDetail.Controls.Add(this.RecordForm);
this.panelDetail.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelDetail.Location = new System.Drawing.Point(2, 324);
this.panelDetail.Margin = new System.Windows.Forms.Padding(2);
this.panelDetail.Name = "panelDetail";
this.panelDetail.Size = new System.Drawing.Size(1130, 374);
this.panelDetail.TabIndex = 10;
//
// RecordForm
//
this.RecordForm.Dock = System.Windows.Forms.DockStyle.Fill;
this.RecordForm.Location = new System.Drawing.Point(2, 2);
this.RecordForm.Margin = new System.Windows.Forms.Padding(2, 6, 2, 6);
this.RecordForm.Name = "RecordForm";
this.RecordForm.Size = new System.Drawing.Size(1126, 370);
this.RecordForm.TabIndex = 8;
//
// detailContorl
//
this.detailContorl.Controls.Add(this.detailplControl);
this.detailContorl.Dock = System.Windows.Forms.DockStyle.Top;
this.detailContorl.Location = new System.Drawing.Point(2, 187);
this.detailContorl.Margin = new System.Windows.Forms.Padding(2);
this.detailContorl.Name = "detailContorl";
this.detailContorl.Size = new System.Drawing.Size(1130, 137);
this.detailContorl.TabIndex = 9;
//
// detailplControl
//
this.detailplControl.Appearance.BackColor = System.Drawing.Color.White;
this.detailplControl.Appearance.Options.UseBackColor = true;
this.detailplControl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailplControl.Controls.Add(this.detailpl_Bottom);
this.detailplControl.Controls.Add(this.detailpl_Top);
this.detailplControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailplControl.Location = new System.Drawing.Point(2, 2);
this.detailplControl.Margin = new System.Windows.Forms.Padding(2);
this.detailplControl.Name = "detailplControl";
this.detailplControl.Size = new System.Drawing.Size(1126, 133);
this.detailplControl.TabIndex = 10;
//
// detailpl_Bottom
//
this.detailpl_Bottom.Appearance.BackColor = System.Drawing.Color.White;
this.detailpl_Bottom.Appearance.Options.UseBackColor = true;
this.detailpl_Bottom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailpl_Bottom.Controls.Add(this.btn_Out);
this.detailpl_Bottom.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailpl_Bottom.Location = new System.Drawing.Point(0, 67);
this.detailpl_Bottom.Margin = new System.Windows.Forms.Padding(2);
this.detailpl_Bottom.Name = "detailpl_Bottom";
this.detailpl_Bottom.Size = new System.Drawing.Size(1126, 66);
this.detailpl_Bottom.TabIndex = 12;
//
// btn_Out
//
this.btn_Out.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_Out.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(118)))), ((int)(((byte)(200)))));
this.btn_Out.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.btn_Out.Cursor = System.Windows.Forms.Cursors.Hand;
this.btn_Out.Font = new System.Drawing.Font("Microsoft YaHei UI", 15F, System.Drawing.FontStyle.Bold);
this.btn_Out.ForeColor = System.Drawing.Color.White;
this.btn_Out.Location = new System.Drawing.Point(1033, 9);
this.btn_Out.Name = "btn_Out";
this.btn_Out.Size = new System.Drawing.Size(85, 48);
this.btn_Out.TabIndex = 6;
this.btn_Out.Text = "退出";
this.btn_Out.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.btn_Out.Click += new System.EventHandler(this.OnputOutClick);
//
// detailpl_Top
//
this.detailpl_Top.Appearance.BackColor = System.Drawing.Color.White;
this.detailpl_Top.Appearance.Options.UseBackColor = true;
this.detailpl_Top.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailpl_Top.Controls.Add(this.btn_saveadd);
this.detailpl_Top.Dock = System.Windows.Forms.DockStyle.Top;
this.detailpl_Top.Location = new System.Drawing.Point(0, 0);
this.detailpl_Top.Margin = new System.Windows.Forms.Padding(2);
this.detailpl_Top.Name = "detailpl_Top";
this.detailpl_Top.Size = new System.Drawing.Size(1126, 67);
this.detailpl_Top.TabIndex = 11;
//
// btn_saveadd
//
this.btn_saveadd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_saveadd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(118)))), ((int)(((byte)(200)))));
this.btn_saveadd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.btn_saveadd.Cursor = System.Windows.Forms.Cursors.Hand;
this.btn_saveadd.Font = new System.Drawing.Font("Microsoft YaHei UI", 15F, System.Drawing.FontStyle.Bold);
this.btn_saveadd.ForeColor = System.Drawing.Color.White;
this.btn_saveadd.Location = new System.Drawing.Point(1033, 11);
this.btn_saveadd.Name = "btn_saveadd";
this.btn_saveadd.Size = new System.Drawing.Size(85, 48);
this.btn_saveadd.TabIndex = 6;
this.btn_saveadd.Text = "保存";
this.btn_saveadd.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.btn_saveadd.Click += new System.EventHandler(this.OnsaveaddClick);
//
// details_Title
//
this.details_Title.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.details_Title.Controls.Add(this.lbTitle);
this.details_Title.Dock = System.Windows.Forms.DockStyle.Top;
this.details_Title.Location = new System.Drawing.Point(2, 149);
this.details_Title.Margin = new System.Windows.Forms.Padding(2);
this.details_Title.Name = "details_Title";
this.details_Title.Size = new System.Drawing.Size(1130, 38);
this.details_Title.TabIndex = 8;
//
// 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.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lbTitle.Name = "lbTitle";
this.lbTitle.Size = new System.Drawing.Size(1130, 38);
this.lbTitle.TabIndex = 3;
this.lbTitle.Text = " 数据添加";
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// pl_Main
//
this.pl_Main.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_Main.Controls.Add(this.pl_Main_Center);
this.pl_Main.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_Main.Location = new System.Drawing.Point(2, 40);
this.pl_Main.Margin = new System.Windows.Forms.Padding(2);
this.pl_Main.Name = "pl_Main";
this.pl_Main.Size = new System.Drawing.Size(1130, 109);
this.pl_Main.TabIndex = 7;
//
// pl_Main_Center
//
this.pl_Main_Center.Appearance.BackColor = System.Drawing.Color.White;
this.pl_Main_Center.Appearance.Options.UseBackColor = true;
this.pl_Main_Center.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_Main_Center.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_Main_Center.Location = new System.Drawing.Point(0, 0);
this.pl_Main_Center.Margin = new System.Windows.Forms.Padding(2);
this.pl_Main_Center.Name = "pl_Main_Center";
this.pl_Main_Center.Size = new System.Drawing.Size(1130, 109);
this.pl_Main_Center.TabIndex = 0;
//
// detailTab_Top
//
this.detailTab_Top.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailTab_Top.Controls.Add(this.lbTop);
this.detailTab_Top.Dock = System.Windows.Forms.DockStyle.Top;
this.detailTab_Top.Location = new System.Drawing.Point(2, 2);
this.detailTab_Top.Margin = new System.Windows.Forms.Padding(2);
this.detailTab_Top.Name = "detailTab_Top";
this.detailTab_Top.Size = new System.Drawing.Size(1130, 38);
this.detailTab_Top.TabIndex = 6;
//
// lbTop
//
this.lbTop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
this.lbTop.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbTop.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbTop.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
this.lbTop.Location = new System.Drawing.Point(0, 0);
this.lbTop.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lbTop.Name = "lbTop";
this.lbTop.Size = new System.Drawing.Size(1130, 38);
this.lbTop.TabIndex = 3;
this.lbTop.Text = " 基本信息";
this.lbTop.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// FrmCompletion
//
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(1134, 700);
this.Controls.Add(this.panelMain);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "FrmCompletion";
this.Text = "完工";
((System.ComponentModel.ISupportInitialize)(this.panelMain)).EndInit();
this.panelMain.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.detailplControl)).EndInit();
this.detailplControl.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailpl_Bottom)).EndInit();
this.detailpl_Bottom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailpl_Top)).EndInit();
this.detailpl_Top.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.details_Title)).EndInit();
this.details_Title.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_Main)).EndInit();
this.pl_Main.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_Main_Center)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.detailTab_Top)).EndInit();
this.detailTab_Top.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.PanelControl panelMain;
private DevExpress.XtraEditors.PanelControl panelDetail;
private TabIntoControl RecordForm;
private DevExpress.XtraEditors.PanelControl detailContorl;
private DevExpress.XtraEditors.PanelControl detailplControl;
private DevExpress.XtraEditors.PanelControl detailpl_Bottom;
private DevExpress.XtraEditors.PanelControl detailpl_Top;
private DevExpress.XtraEditors.PanelControl details_Title;
private System.Windows.Forms.Label lbTitle;
private DevExpress.XtraEditors.PanelControl pl_Main;
private DevExpress.XtraEditors.PanelControl pl_Main_Center;
private DevExpress.XtraEditors.PanelControl detailTab_Top;
private System.Windows.Forms.Label lbTop;
private System.Windows.Forms.Label btn_saveadd;
private System.Windows.Forms.Label btn_Out;
}
}
+651
View File
@@ -0,0 +1,651 @@
using DevExpress.XtraEditors;
using DevExpress.XtraTab;
using Lskj.Business;
using Lskj.Business.Impl;
using Lskj.Control;
using Lskj.Control.Model;
using Lskj.Data;
using Lskj.Model;
using Lskj.SweepCode.Control;
using Lskj.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.SweepCode
{
public partial class FrmCompletion : BaseForm
{
#region
/// <summary>
/// 入口模型
/// </summary>
public DynamicProductionModel SysModel;
/// <summary>
/// 是否点击回车新增控件了
/// </summary>
public bool isEnterClick = false;
/// <summary>
///执行刷新sql
/// </summary>
public string LastRefreshSql;
/// <summary>
///之前模块值
/// </summary>
public string AfterModule;
/// <summary>
///当前模块值
/// </summary>
public string NewModule;
/// <summary>
///下面明细表模块值
/// </summary>
public string BottomModule;
/// <summary>
///当前模块值的关联值
/// </summary>
public string NewUnionValue;
/// <summary>
///查询条件控件
/// </summary>
public MyControl SearchObj;
/// <summary>
/// 主控件集
/// </summary>
public MyControl ControlObj;
/// <summary>
/// 当前控件集合
/// </summary>
public MyControl NewControlObj;
/// <summary>
/// 明细控件集合
/// </summary>
public MyControl DetailControlObj;
/// <summary>
/// 基础模型
/// </summary>
public ModuleModel MoudleObj;
/// <summary>
/// 下表格基础模型
/// </summary>
public ModuleModel BottomMoudleObj;
/// <summary>
/// 当前基础模型
/// </summary>
public ModuleModel NewMoudleObj;
/// <summary>
/// 明细衍生到下侧数据
/// </summary>
public List<GridDetailModel> GridDetailAddObj;
#endregion
#region
/// <summary>
/// 子系统默认背景色
/// </summary>
private string[] _defaultColors = { "#0198A3", "#1C76C8", "#F88906", "#EA5C46" };
/// <summary>
/// 数据索引
/// </summary>
private int _dataIndex;
/// <summary>
/// 初始化完成标记
/// </summary>
private bool _isInitFinish;
/// <summary>
/// 附件部分显隐
/// </summary>
private bool _isFilePanelVisble;
/// <summary>
/// 附件源sql
/// </summary>
private string _fileSql;
/// <summary>
/// 主键值
/// </summary>
private string _keyValue;
/// <summary>
/// 主键名
/// </summary>
private string _primaryKey;
/// <summary>
/// 附件地址
/// </summary>
private string _filePath;
/// <summary>
/// 选项卡刷新页签
/// </summary>
private string[] _pageIndex;
/// <summary>
/// 主界面传入数据内容
/// </summary>
private DataRow _rowItem;
/// <summary>
/// 当前数据内容
/// </summary>
private DataRow _NewrowItem;
/// <summary>
/// 配置100明细的表
/// </summary>
private DataTable _DetailedTab;
/// <summary>
/// 控件源数据
/// </summary>
private DataTable _dtFields;
/// <summary>
/// 当前控件源数据
/// </summary>
private DataTable _newdtFields;
/// <summary>
/// 控件源数据
/// </summary>
private DataTable _dtBottomFields;
/// <summary>
/// 扫码控件源数据
/// </summary>
private DataTable _codeFields;
/// <summary>
/// 动态加载右侧按钮
/// </summary>
private DataTable _RightFields;
/// <summary>
/// 主表数据
/// </summary>
private DataTable _dtMainTable;
/// <summary>
/// pdf附件资源
/// </summary>
private DataTable _dtFiles;
/// <summary>
/// 搜索字段
/// </summary>
private string _searchFile;
/// <summary>
/// 搜索字段条件
/// </summary>
private string _searchCode;
/// <summary>
/// 附件下拉菜单
/// </summary>
private LabelComboxEdit _fileComboBox;
/// <summary>
/// 查看附件
/// </summary>
private ModuleWebView _moduleWebView;
/// <summary>
/// 选项卡排序Sql
/// </summary>
private Dictionary<string, string> _dicOrder = new Dictionary<string, string>();
/// <summary>
///默认窗口长度
/// </summary>
private int _windowWidth;
/// <summary>
/// 分割条横坐标
/// </summary>
private int _splitLocation;
#endregion
public FrmCompletion()
{
InitializeComponent();
}
#region
#region
/// <summary>
/// <para>说明:完工界面保存点击事件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void OnsaveaddClick(object sender, EventArgs e)
{
try
{
BaseUserControl baseControl = null;
if (_dtBottomFields != null && _dtBottomFields.Columns.Contains("IsAddControl"))
{
DataRow item = _dtBottomFields.Rows.Cast<DataRow>().FirstOrDefault(x => x["IsAddControl"].ToString().Equals("1"));
baseControl = this.DetailControlObj.FindControl(item["fieldName"] + "");
}
bool isAddEmpty = baseControl != null ? !string.IsNullOrEmpty(baseControl.EditText) : false;
if (!isEnterClick && isAddEmpty)
{
MessageUtil.Show("回车明细数据已填写未回车保存!");
return;
}
bool success = false;
success = this.UpdateControlRecord(false);
if (success)
{
DataRow LastrowItem = BaseImpl.GetDataRowResult(LastRefreshSql);
if (LastrowItem != null)
{
setTabPageGridData(RecordForm, LastrowItem);
this.ControlObj.SetAllControlValue(LastrowItem);
this.DetailControlObj.SetAllControlValue(LastrowItem);
}
if (this.NewMoudleObj.ModifyClose)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
}
else
{
}
}
//if (success && this.OnCloseCallback != null)
// this.OnCloseCallback(sender, e);}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:修改数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2018-04-03 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void OnAddCallAfter(object sender, EventArgs e)
{
try
{
if (this.DetailControlObj.VerifyNull())
{
bool success = false;
string PrimaryKey = BaseImpl.GetBasePrimaryKey(this.BottomModule);
GridDetailModel model = this.RecordForm.GetGridDetailModel(this.RecordForm.TabControlObj.SelectedTabPage);
string primaryKey = string.Empty;
success = this.DetailControlObj.SaveBaseModuleData(this.BottomModule, this.BottomMoudleObj.MenuTable, PrimaryKey, ref primaryKey, true, "", false, this.BottomMoudleObj.NewVer);
if (success)
{
DataRow LastrowItem = BaseImpl.GetDataRowResult(LastRefreshSql);
if (LastrowItem != null)
{
setTabPageGridData(RecordForm, LastrowItem);
this.ControlObj.SetAllControlValue(LastrowItem);
this.DetailControlObj.ResetControlValue();
setTabPageGridData(RecordForm, LastrowItem);
this.NewControlObj.SetAllControlValue(LastrowItem);
isEnterClick = true;
}
if (this.BottomMoudleObj.ModifyClose)
{
//this.DialogResult = DialogResult.OK;
//this.Close();
}
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region 退
/// <summary>
/// <para>说明:完工界面退出点击事件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-07-02 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void OnputOutClick(object sender, EventArgs e)
{
try
{
this.DialogResult = DialogResult.OK;
this.Close();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region 退
/// <summary>
/// <para>说明:点击退出事件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-07-02 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void OnOutClick(object sender, EventArgs e)
{
}
#endregion
#endregion
#region
#region
/// <summary>
/// <para>说明:修改数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2018-04-03 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public bool UpdateControlRecord(bool isClose = true)
{
bool isSuccess = false;
if (this.NewControlObj.VerifyNull())
{
string PrimaryKey = BaseImpl.GetBasePrimaryKey(this.NewModule);
string primaryKey = (_NewrowItem != null) ? _NewrowItem[PrimaryKey] + "" : string.Empty;
isSuccess = this.NewControlObj.SaveBaseModuleData(this.NewModule, this.NewMoudleObj.MenuTable, PrimaryKey, ref primaryKey, _NewrowItem == null, "", false, this.NewMoudleObj.NewVer);
return isSuccess;
}
return isSuccess;
}
#endregion
#region TabPage绑定的实体对象
/// <summary>
/// <para>说明:获取TabPage绑定的实体对象</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-07-03 </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;
if (tabPage.Tag is ModuleWebView)
return (tabPage.Tag as ModuleWebView).Tag as GridDetailModel;
if (tabPage.Tag is ModuleWebView)
return (tabPage.Tag as ModuleWebView).Tag as GridDetailModel;
return null;
}
#endregion
#region
/// <summary>
/// <para>说明:加载第二界面</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void finishWork(string AfterModule, DataRow _rowItem, DynamicProductionModel SysModel, List<string> paramList, string LastRefreshSql)
{
this.AfterModule = AfterModule;
this.NewModule = paramList[0];//参数1用于存储当前关联模块
this.NewUnionValue = paramList[2];//参数1用于存储当前关联模块
this.LastRefreshSql = LastRefreshSql;
this._rowItem = _rowItem;
this.SysModel = SysModel;
this.InitializeSetting();
this.InitializeControl();
this.InitializeDetailGrid();
}
#endregion
#region
/// <summary>
/// <para>说明:初始化控件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeSetting()
{
this.MoudleObj = new ModuleModel(MainImpl.GetSystemdllTab(AfterModule));
this.MoudleObj.ParmaryKey = BaseImpl.GetBasePrimaryKey(AfterModule);
this.NewMoudleObj = new ModuleModel(MainImpl.GetSystemdllTab(NewModule));
this.NewMoudleObj.ParmaryKey = BaseImpl.GetBasePrimaryKey(NewModule);
this._dtFields = BaseModuleImpl.GetControlLocation(this.MoudleObj.FormKey, AfterModule);
this._newdtFields = BaseModuleImpl.GetControlLocation(this.NewMoudleObj.FormKey, NewModule);
}
#endregion
#region
/// <summary>
/// <para>说明:初始化控件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeControl()
{
this.ControlObj = new MyControl();
this.ControlObj.InitControl(_dtFields, this.pl_Main_Center, false);
this.NewControlObj = new MyControl();
this.NewControlObj.InitControl(_newdtFields, this.detailpl_Top, false);
this.GridDetailAddObj = GetDetailGrids(AfterModule).Where(o => o.Orderid == 100).ToList();
if (this.GridDetailAddObj != null)
{
this.BottomModule = this.GridDetailAddObj[0].UnionModule;
this.BottomMoudleObj = new ModuleModel(MainImpl.GetSystemdllTab(BottomModule));
this.MoudleObj = new ModuleModel(MainImpl.GetSystemdllTab(AfterModule));
this._dtBottomFields = BaseModuleImpl.GetControlLocation(BottomMoudleObj.FormKey, BottomModule);
this.DetailControlObj = new MyControl();
this.DetailControlObj.InitControl(_dtBottomFields, this.detailpl_Bottom, false);
this.DetailControlObj.OnAddCallBack += new EventHandler(OnAddCallAfter);
}
this.detailpl_Top.Height = 67;
}
#endregion
#region
/// <summary>
/// <para>说明:加载新的数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="Index">数据索引</param>
private void LoadNewForm(DataRow dataRowItem)
{
//三部分明细数据源更新
setTabPageGridData(RecordForm, dataRowItem);
this.ControlObj.SetAllControlValue(dataRowItem);
this.DetailControlObj.SetAllControlValue(dataRowItem);
DataTable queryTable = BaseModuleImpl.GetCustomQueryFields(this.NewMoudleObj.CondKey);
if (queryTable != null && queryTable.Rows.Count > 0)
{
_searchFile = queryTable.Rows[0]["fieldName"] + "";
_searchCode = queryTable.Rows[0]["checkCond"] + "";
}
if (!string.IsNullOrEmpty(_searchCode))
{
string SearchCode = ReplaceHelper.ReplaceParamToValue(_searchCode, NewUnionValue); // 未替换的参数所有替换搜索值
DataTable dt = BaseImpl.GetDataTableResult(ReplaceHelper.ReplaceWhereCond(this.NewMoudleObj.MenuSql + " ") + SearchCode);
_NewrowItem = dt.Rows.Count > 0 ? dt.Rows[0] : null;
}
else
{
_NewrowItem = BaseImpl.GetDataTableResult(ReplaceHelper.ReplaceWhereCond(this.NewMoudleObj.MenuSql) + "and" + _primaryKey + "=" + NewUnionValue).Rows[0];
}
if (_NewrowItem != null) this.NewControlObj.OnDataSourceBindCallBack += new EventHandler(OnNewCtrSearchDataSourceBindCallBack);// 数据源绑定完成触发
}
#endregion
#region
/// <summary>
/// <para>说明:设置选项卡数据源</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void setTabPageGridData(TabControlEx tabDetail, DataRow rowItem)
{
foreach (XtraTabPage tabPage in RecordForm.TabControlObj.TabPages)
{
GridDetailModel model = tabDetail.GetGridDetailModel(tabPage);
GridControlEx gridControl = tabPage.Tag as GridControlEx;
gridControl.LastSearchSql = this.GetSearchSql(model, rowItem);
string PrimaryKey = BaseImpl.GetBasePrimaryKey(this.BottomModule);
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && _rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : PrimaryKey;
tabDetail.SetGridDataSource(tabPage, MainImpl.GetDataTableResult(gridControl.LastSearchSql));
if (!string.IsNullOrWhiteSpace(model.UnionValue) && !string.IsNullOrWhiteSpace(model.UnionParentField))
{
this.DetailControlObj.SetControlValue(model.UnionValue, _rowItem[fieldName]);
}
}
}
#endregion
#region
/// <summary>
/// <para>说明:获取查询条件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2021-06-21 </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) ? model.UnionParentField : this.MoudleObj.ParmaryKey;
string sqlValue = model.IsReadOnly ? model.DetailSql : model.SystemModel.MenuSql;
string orderCond = _dicOrder.FirstOrDefault(o => o.Key == model.UnionModule).Value;
if (ReplaceHelper.IsSelect(sqlValue) && !string.IsNullOrEmpty(model.UnionValue))
{
sqlValue = ReplaceHelper.ReplaceWhereCond(sqlValue) + string.Format(" and {0}='{1}'", model.UnionValue, rowItem[fieldName] + "");
}
else
{
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
}
return sqlValue + orderCond;
}
#endregion
#region
/// <summary>
/// <para>说明:初始化第二界面功能模块的明细数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeDetailGrid()
{
this.RecordForm.Model = this.SysModel;
this.RecordForm.InitTabPages(GridDetailAddObj);
if (_rowItem != null)
{
LoadNewForm(_rowItem);
}
}
#endregion
#region
/// <summary>
/// <para>说明:获取报表明细</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private List<GridDetailModel> GetDetailGrids(string ModuleCode)
{
List<GridDetailModel> details = new List<GridDetailModel>();
DataTable moduleDetailBottomTable = BaseModuleImpl.GetBaseDetailPages(ModuleCode);
if (moduleDetailBottomTable.Rows.Count == 0)
{
moduleDetailBottomTable = BaseModuleImpl.GetBaseAddTabDetail(ModuleCode);
}
foreach (DataRow item in moduleDetailBottomTable.Rows)
{
DataTable dtGridColumns = ReportImpl.GetReportDetailColumns(ModuleCode, item["id"] + "");
details.Add(new GridDetailModel(item, dtGridColumns, GridCustomColumnStruct.BaseDetailGridView));
}
return details;
}
#endregion
#region
/// <summary>
/// <para>说明:查询条件绑定完成查询数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期: </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 OnNewCtrSearchDataSourceBindCallBack(object sender, EventArgs e)
{
try
{
this.NewControlObj.SetAllControlValue(_NewrowItem);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
#endregion
#endregion
}
}
+120
View File
@@ -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>
+560
View File
@@ -0,0 +1,560 @@
using System.Drawing;
namespace Lskj.SweepCode
{
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()
{
DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
this.splitMain = new DevExpress.XtraEditors.SplitContainerControl();
this.panelMain = new DevExpress.XtraEditors.PanelControl();
this.splitLeftSide = new DevExpress.XtraEditors.SplitContainerControl();
this.pl_Main = new DevExpress.XtraEditors.PanelControl();
this.pl_Main_Center = new DevExpress.XtraEditors.PanelControl();
this.pl_MainState = new DevExpress.XtraEditors.PanelControl();
this.labelControl5 = new DevExpress.XtraEditors.LabelControl();
this.SweepTipStata = new DevExpress.XtraEditors.LabelControl();
this.panelDetail = new DevExpress.XtraEditors.PanelControl();
this.detailTab = new Lskj.SweepCode.TabIntoControl();
this.detailContorl = new DevExpress.XtraEditors.PanelControl();
this.detailControl_Right = new DevExpress.XtraEditors.PanelControl();
this.detailpl_Left = new DevExpress.XtraEditors.PanelControl();
this.detailplControl = new DevExpress.XtraEditors.PanelControl();
this.detailTab_Title = new DevExpress.XtraEditors.PanelControl();
this.lbTitle = new System.Windows.Forms.Label();
this.pl_Bottom = new DevExpress.XtraEditors.PanelControl();
this.TabBottom = new Lskj.SweepCode.TabIntoControl();
this.pl_Bottom_Title = new DevExpress.XtraEditors.PanelControl();
this.label1 = new System.Windows.Forms.Label();
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.SweepCode.TabIntoControl();
((System.ComponentModel.ISupportInitialize)(this.splitMain)).BeginInit();
this.splitMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelMain)).BeginInit();
this.panelMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitLeftSide)).BeginInit();
this.splitLeftSide.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Main)).BeginInit();
this.pl_Main.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Main_Center)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pl_MainState)).BeginInit();
this.pl_MainState.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelDetail)).BeginInit();
this.panelDetail.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailContorl)).BeginInit();
this.detailContorl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailControl_Right)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.detailpl_Left)).BeginInit();
this.detailpl_Left.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.detailplControl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.detailTab_Title)).BeginInit();
this.detailTab_Title.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Bottom)).BeginInit();
this.pl_Bottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Bottom_Title)).BeginInit();
this.pl_Bottom_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(1284, 701);
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.splitLeftSide);
this.panelMain.Controls.Add(this.pl_Bottom);
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(1079, 701);
this.panelMain.TabIndex = 0;
//
// splitLeftSide
//
this.splitLeftSide.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel2;
this.splitLeftSide.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitLeftSide.Horizontal = false;
this.splitLeftSide.Location = new System.Drawing.Point(0, 48);
this.splitLeftSide.Name = "splitLeftSide";
this.splitLeftSide.Panel1.Controls.Add(this.pl_Main);
this.splitLeftSide.Panel1.Text = "Panel1";
this.splitLeftSide.Panel2.Controls.Add(this.panelDetail);
this.splitLeftSide.Panel2.Text = "Panel2";
this.splitLeftSide.Size = new System.Drawing.Size(1079, 502);
this.splitLeftSide.SplitterPosition = 142;
this.splitLeftSide.TabIndex = 9;
this.splitLeftSide.Text = "splitContainerControl1";
//
// pl_Main
//
this.pl_Main.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_Main.Controls.Add(this.pl_Main_Center);
this.pl_Main.Controls.Add(this.pl_MainState);
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(1079, 142);
this.pl_Main.TabIndex = 2;
//
// pl_Main_Center
//
this.pl_Main_Center.Appearance.BackColor = System.Drawing.Color.White;
this.pl_Main_Center.Appearance.Options.UseBackColor = true;
this.pl_Main_Center.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_Main_Center.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_Main_Center.Location = new System.Drawing.Point(0, 35);
this.pl_Main_Center.Name = "pl_Main_Center";
this.pl_Main_Center.Size = new System.Drawing.Size(1079, 107);
this.pl_Main_Center.TabIndex = 3;
//
// pl_MainState
//
this.pl_MainState.Appearance.BackColor = System.Drawing.Color.White;
this.pl_MainState.Appearance.Options.UseBackColor = true;
this.pl_MainState.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_MainState.Controls.Add(this.labelControl5);
this.pl_MainState.Controls.Add(this.SweepTipStata);
this.pl_MainState.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_MainState.Location = new System.Drawing.Point(0, 0);
this.pl_MainState.Name = "pl_MainState";
this.pl_MainState.Size = new System.Drawing.Size(1079, 35);
this.pl_MainState.TabIndex = 2;
//
// labelControl5
//
this.labelControl5.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelControl5.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
this.labelControl5.Location = new System.Drawing.Point(37, 5);
this.labelControl5.Name = "labelControl5";
this.labelControl5.Size = new System.Drawing.Size(72, 25);
this.labelControl5.TabIndex = 40;
this.labelControl5.Text = "基本信息";
//
// SweepTipStata
//
this.SweepTipStata.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.SweepTipStata.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.SweepTipStata.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(115)))), ((int)(((byte)(188)))));
this.SweepTipStata.Location = new System.Drawing.Point(995, 5);
this.SweepTipStata.Name = "SweepTipStata";
this.SweepTipStata.Size = new System.Drawing.Size(57, 26);
this.SweepTipStata.TabIndex = 40;
this.SweepTipStata.Text = "未开工";
//
// panelDetail
//
this.panelDetail.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelDetail.Controls.Add(this.detailTab);
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(1079, 355);
this.panelDetail.TabIndex = 8;
//
// detailTab
//
this.detailTab.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailTab.Location = new System.Drawing.Point(0, 246);
this.detailTab.Name = "detailTab";
this.detailTab.Size = new System.Drawing.Size(1079, 109);
this.detailTab.TabIndex = 7;
//
// detailContorl
//
this.detailContorl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailContorl.Controls.Add(this.detailControl_Right);
this.detailContorl.Controls.Add(this.detailpl_Left);
this.detailContorl.Dock = System.Windows.Forms.DockStyle.Top;
this.detailContorl.Location = new System.Drawing.Point(0, 35);
this.detailContorl.Name = "detailContorl";
this.detailContorl.Size = new System.Drawing.Size(1079, 211);
this.detailContorl.TabIndex = 6;
//
// detailControl_Right
//
this.detailControl_Right.Appearance.BackColor = System.Drawing.Color.White;
this.detailControl_Right.Appearance.Options.UseBackColor = true;
this.detailControl_Right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailControl_Right.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailControl_Right.Location = new System.Drawing.Point(650, 0);
this.detailControl_Right.Name = "detailControl_Right";
this.detailControl_Right.Size = new System.Drawing.Size(429, 211);
this.detailControl_Right.TabIndex = 8;
//
// detailpl_Left
//
this.detailpl_Left.Appearance.BackColor = System.Drawing.Color.Transparent;
this.detailpl_Left.Appearance.Options.UseBackColor = true;
this.detailpl_Left.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailpl_Left.Controls.Add(this.detailplControl);
this.detailpl_Left.Dock = System.Windows.Forms.DockStyle.Left;
this.detailpl_Left.Location = new System.Drawing.Point(0, 0);
this.detailpl_Left.Name = "detailpl_Left";
this.detailpl_Left.Size = new System.Drawing.Size(650, 211);
this.detailpl_Left.TabIndex = 7;
//
// detailplControl
//
this.detailplControl.Appearance.BackColor = System.Drawing.Color.White;
this.detailplControl.Appearance.Options.UseBackColor = true;
this.detailplControl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.detailplControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailplControl.Location = new System.Drawing.Point(0, 0);
this.detailplControl.Name = "detailplControl";
this.detailplControl.Size = new System.Drawing.Size(650, 211);
this.detailplControl.TabIndex = 10;
//
// 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(1079, 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(1079, 35);
this.lbTitle.TabIndex = 2;
this.lbTitle.Text = " 扫码识别信息";
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// pl_Bottom
//
this.pl_Bottom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_Bottom.Controls.Add(this.TabBottom);
this.pl_Bottom.Controls.Add(this.pl_Bottom_Title);
this.pl_Bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pl_Bottom.Location = new System.Drawing.Point(0, 550);
this.pl_Bottom.Name = "pl_Bottom";
this.pl_Bottom.Size = new System.Drawing.Size(1079, 151);
this.pl_Bottom.TabIndex = 2;
//
// TabBottom
//
this.TabBottom.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabBottom.Location = new System.Drawing.Point(0, 34);
this.TabBottom.Name = "TabBottom";
this.TabBottom.Size = new System.Drawing.Size(1079, 117);
this.TabBottom.TabIndex = 8;
//
// pl_Bottom_Title
//
this.pl_Bottom_Title.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_Bottom_Title.Controls.Add(this.label1);
this.pl_Bottom_Title.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_Bottom_Title.Location = new System.Drawing.Point(0, 0);
this.pl_Bottom_Title.Name = "pl_Bottom_Title";
this.pl_Bottom_Title.Size = new System.Drawing.Size(1079, 34);
this.pl_Bottom_Title.TabIndex = 5;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(238)))), ((int)(((byte)(249)))));
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(108)))), ((int)(((byte)(206)))));
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(1079, 34);
this.label1.TabIndex = 3;
this.label1.Text = " 生产工序";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 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(1079, 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.SweepCode.Properties.Resources., new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject2, "", 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.SweepCode.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, 701);
this.TabRight.TabIndex = 8;
//
// 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(1284, 701);
this.Controls.Add(this.splitMain);
this.Name = "FrmMain";
this.Text = "生产过程管理";
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.splitLeftSide)).EndInit();
this.splitLeftSide.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_Main)).EndInit();
this.pl_Main.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_Main_Center)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pl_MainState)).EndInit();
this.pl_MainState.ResumeLayout(false);
this.pl_MainState.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.panelDetail)).EndInit();
this.panelDetail.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailContorl)).EndInit();
this.detailContorl.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailControl_Right)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.detailpl_Left)).EndInit();
this.detailpl_Left.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.detailplControl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.detailTab_Title)).EndInit();
this.detailTab_Title.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_Bottom)).EndInit();
this.pl_Bottom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_Bottom_Title)).EndInit();
this.pl_Bottom_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_Bottom;
private DevExpress.XtraEditors.PanelControl pl_Bottom_Title;
private System.Windows.Forms.Label label1;
private DevExpress.XtraEditors.PanelControl pl_TopSearch;
private System.Windows.Forms.Panel panel1;
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 System.Windows.Forms.Label lab_searchClass;
private DevExpress.XtraEditors.ComboBoxEdit txtEditClass;
private TabIntoControl TabBottom;
private TabIntoControl TabRight;
private DevExpress.XtraEditors.LabelControl labelTips;
private DevExpress.XtraEditors.SplitContainerControl splitLeftSide;
private DevExpress.XtraEditors.PanelControl pl_Main;
private DevExpress.XtraEditors.PanelControl pl_Main_Center;
private DevExpress.XtraEditors.PanelControl pl_MainState;
private DevExpress.XtraEditors.LabelControl labelControl5;
private DevExpress.XtraEditors.LabelControl SweepTipStata;
private DevExpress.XtraEditors.PanelControl panelDetail;
private TabIntoControl detailTab;
private DevExpress.XtraEditors.PanelControl detailContorl;
private DevExpress.XtraEditors.PanelControl detailControl_Right;
private DevExpress.XtraEditors.PanelControl detailpl_Left;
private DevExpress.XtraEditors.PanelControl detailplControl;
private DevExpress.XtraEditors.PanelControl detailTab_Title;
private System.Windows.Forms.Label lbTitle;
}
}
File diff suppressed because it is too large Load Diff
+120
View File
@@ -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>
+124
View File
@@ -0,0 +1,124 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using static WindowsFormsApplication1.Win32Api;
namespace WindowsFormsApplication1
{
/**
* c#钩子程序 键盘监控(拦截系统组合键)
* */
public class Win32Api
{
#region
public const int WM_KEYDOWN = 0x100;
public const int WM_KEYUP = 0x101;
public const int WM_SYSKEYDOWN = 0x104;
public const int WM_SYSKEYUP = 0x105;
public const int WH_KEYBOARD_LL = 13;
[StructLayout(LayoutKind.Sequential)] //声明键盘钩子的封送结构类型
public class KeyboardHookStruct
{
public int vkCode; //表示一个在1到254间的虚似键盘码
public int scanCode; //表示硬件扫描码
public int flags;
public int time;
public int dwExtraInfo;
}
#endregion
#region Api
public delegate int HookProc(int nCode, Int32 wParam, IntPtr lParam);
//安装钩子的函数
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId);
//卸下钩子的函数
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern bool UnhookWindowsHookEx(int idHook);
//下一个钩挂的函数
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern int CallNextHookEx(int idHook, int nCode, Int32 wParam, IntPtr lParam);
[DllImport("user32")]
public static extern int ToAscii(int uVirtKey, int uScanCode, byte[] lpbKeyState, byte[] lpwTransKey, int fuState);
[DllImport("user32")]
public static extern int GetKeyboardState(byte[] pbKeyState);
[DllImport("kernel32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern IntPtr GetModuleHandle(string lpModuleName);
#endregion
}
public class KeyboardHook
{
int hHook;
Win32Api.HookProc KeyboardHookDelegate;
public event KeyEventHandler OnKeyDownEvent;
public event KeyEventHandler OnKeyUpEvent;
public event KeyPressEventHandler OnKeyPressEvent;
/// <summary>
/// 正在执行回车事件中
/// </summary>
public bool IsExecute = false;
public KeyboardHook() { }
/**
* 设置钩子
* */
public void SetHook()
{
KeyboardHookDelegate = new Win32Api.HookProc(KeyboardHookProc);
Process cProcess = Process.GetCurrentProcess();
ProcessModule cModule = cProcess.MainModule;
var mh = Win32Api.GetModuleHandle(cModule.ModuleName);
hHook = Win32Api.SetWindowsHookEx(Win32Api.WH_KEYBOARD_LL, KeyboardHookDelegate, mh, 0);
}
/**
* 卸载钩子
* */
public void UnHook()
{
Win32Api.UnhookWindowsHookEx(hHook);
}
/**
* 拦截按键
* nCode参数是钩子代码,钩子子程使用这个参数来确定任务,这个参数的值依赖于Hook类型。
* wParam和lParam参数包含了消息信息,我们可以从中提取需要的信息。
* */
private int KeyboardHookProc(int nCode, Int32 wParam, IntPtr lParam)
{
if (nCode >= 0)
{
KeyboardHookStruct kbh = (KeyboardHookStruct)Marshal.PtrToStructure(lParam, typeof(KeyboardHookStruct));
if (kbh.vkCode == 13&& IsExecute)
{
return 1;
}
}
return Win32Api.CallNextHookEx(hHook, nCode, wParam, lParam);
}
}
}
@@ -0,0 +1,234 @@
<?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>{553A7C19-FCD1-4E08-9E32-A68D12DA76D3}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.SweepCode</RootNamespace>
<AssemblyName>Lskj.SweepCode</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.Speech" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Xilium.CefGlue, Version=87.1.1.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\引用DLL\Xilium.CefGlue.dll</HintPath>
</Reference>
</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="FrmCompletion.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmCompletion.Designer.cs">
<DependentUpon>FrmCompletion.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="FrmCompletion.resx">
<DependentUpon>FrmCompletion.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.Interface.Api\Lskj.Interface.Api.csproj">
<Project>{24E9A18A-BAF8-4052-809E-582B4FC6A8C4}</Project>
<Name>Lskj.Interface.Api</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")]
+159
View File
@@ -0,0 +1,159 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.SweepCode.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.SweepCode.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>
+26
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.SweepCode.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

+81
View File
@@ -0,0 +1,81 @@
namespace Lskj.SweepCode
{
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.xtraTabControl1)).BeginInit();
this.xtraTabControl1.SuspendLayout();
this.SuspendLayout();
//
// 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(743, 466);
this.xtraTabPage1.Text = "xtraTabPage1";
//
// xtraTabPage2
//
this.xtraTabPage2.Name = "xtraTabPage2";
this.xtraTabPage2.Size = new System.Drawing.Size(293, 264);
this.xtraTabPage2.Text = "xtraTabPage2";
//
// TabIntoControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.xtraTabControl1);
this.Name = "TabIntoControl";
this.Size = new System.Drawing.Size(750, 502);
((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;
}
}
+991
View File
@@ -0,0 +1,991 @@
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.SweepCode
{
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 isAmplification = _fontSize > 0;
bool ProcessExists = (Lskj.Data.Caches.CacheSYSConfig.Instance().JudgeProcessExists() && SystemInfo.Instance.isExecload);
//if(isAmplification) this.xtc_container.SelectedPageChanged += Xtc_container_SelectedPageChanged;
foreach (GridDetailModel model in this._gridDetail)
{
XtraTabPage page = new XtraTabPage();//DetailSql
page.Text = model.DetailName;
page.Appearance.Header.BackColor = ColorTranslator.FromHtml("#66707a");
if (isAmplification)
{
FontFamily fontFamily = page.Appearance.Header.Font.FontFamily;
page.Appearance.Header.Font = new System.Drawing.Font(fontFamily, _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);
string url = model.DetailSql.StartsWith("http") ? model.DetailSql : SystemInfo.Instance.OAUrl + model.DetailSql;
//url= System.Web.HttpUtility.UrlEncode(url);
FrmWebBrowser webView = new FrmWebBrowser();
webView.Dock = DockStyle.Fill;
webView.Tag = model;
webView.FrmLoad(ReplaceHelper.ReplaceUserInfo(url));
page.Tag = webView;
page.Controls.Add(webView);
page.SizeChanged += Page_SizeChanged;
}
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 (isAmplification)
{
gridEx.GridView.Appearance.Row.Font = new Font("微软雅黑", 20);
gridEx.GridView.OptionsView.RowAutoHeight = false;
gridEx.GridView.ColumnPanelRowHeight = gridEx.GridView.RowHeight = 30;
foreach (GridColumn item in gridEx.GridView.Columns)
{
item.AppearanceCell.Options.UseFont = true;
//gridColumn.AppearanceCell.Font = new System.Drawing.Font(model.FontName, gridColumn.AppearanceCell.Font.Size);
item.AppearanceCell.Font = new System.Drawing.Font("微软雅黑", 20);
item.AppearanceHeader.Font = new System.Drawing.Font("微软雅黑", 20);
item.AppearanceHeader.Options.UseFont = true;
}
}
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);
//gridEx.GridControlObj.GridView.ColumnPanelRowHeight = 50;
// gridEx.GridControlObj.GridView.RowHeight = 70;
//修改大小
if (isAmplification)
{
FontFamily fontFamaily = gridEx.GridControlObj.GridView.Appearance.Row.Font.FontFamily;
gridEx.GridControlObj.GridView.Appearance.Row.Font = new Font(fontFamaily, 20);
gridEx.GridControlObj.GridView.OptionsView.RowAutoHeight = false;
//if (gridEx.GridControlObj.GridView.RowHeight < 30)
//{
// gridEx.GridControlObj.GridView.ColumnPanelRowHeight = gridEx.GridControlObj.GridView.RowHeight = 30;
//}
//标题高高度默认30
gridEx.GridControlObj.GridView.ColumnPanelRowHeight = 30;
foreach (GridColumn item in gridEx.GridControlObj.GridView.Columns)
{
FontFamily itemFontFamaily = item.AppearanceCell.Font.FontFamily;
item.AppearanceCell.Options.UseFont = true;
//gridColumn.AppearanceCell.Font = new System.Drawing.Font(model.FontName, gridColumn.AppearanceCell.Font.Size);
//单元格中字体大小
if (item.ColumnEdit != null && item.ColumnEdit is DevExpress.XtraEditors.Repository.RepositoryItemTextEdit)
{
item.AppearanceCell.Font = new System.Drawing.Font(itemFontFamaily, 20);
item.BestFit();
}
else
{
item.AppearanceCell.Font = new System.Drawing.Font(itemFontFamaily, 20);
}
//列名字体大小
item.AppearanceHeader.Font = new System.Drawing.Font(itemFontFamaily, 20);
item.AppearanceHeader.Options.UseFont = true;
}
}
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);
if (isAmplification)
{
foreach (GridColumn item in tabAdd.gridEx.GridView.Columns)
{
FontFamily itemFontFamaily = gridEx.GridControlObj.GridView.Appearance.Row.Font.FontFamily;
item.AppearanceCell.Options.UseFont = true;
//gridColumn.AppearanceCell.Font = new System.Drawing.Font(model.FontName, gridColumn.AppearanceCell.Font.Size);
item.AppearanceCell.Font = new System.Drawing.Font(itemFontFamaily, 20);
item.AppearanceHeader.Font = new System.Drawing.Font(itemFontFamaily, 20);
item.AppearanceHeader.Options.UseFont = true;
}
foreach (GridColumn item in tabAdd.gridEx2.GridControlObj.GridView.Columns)
{
FontFamily itemFontFamaily = gridEx.GridControlObj.GridView.Appearance.Row.Font.FontFamily;
item.AppearanceCell.Options.UseFont = true;
//gridColumn.AppearanceCell.Font = new System.Drawing.Font(model.FontName, gridColumn.AppearanceCell.Font.Size);
item.AppearanceCell.Font = new System.Drawing.Font(itemFontFamaily, 20);
item.AppearanceHeader.Font = new System.Drawing.Font(itemFontFamaily, 20);
item.AppearanceHeader.Options.UseFont = true;
}
}
}
else
{
page.Tag = gridEx.GridControlObj;
page.Controls.Add(gridEx);
}
}
}
this.xtc_container.TabPages.Add(page);
}
}
private void Page_SizeChanged(object sender, EventArgs e)
{
if (sender is XtraTabPage)
{
XtraTabPage tabPage = sender as XtraTabPage;
if (tabPage.Tag is FrmWebBrowser)
{
//网页改变大小
FrmWebBrowser webView = tabPage.Tag as FrmWebBrowser;
if (webView.cefBrowserSettings != null)
{
var handle = webView.cefBrowserSettings.GetHost().GetWindowHandle();
webView.ResizeWindow(handle, this.Width, this.Height);
}
}
}
}
/// <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>