提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
@@ -0,0 +1,63 @@
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.White;
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("宋体", 15F);
this.btn_title.Location = new System.Drawing.Point(0, 0);
this.btn_title.Name = "btn_title";
this.btn_title.Size = new System.Drawing.Size(150, 48);
this.btn_title.TabIndex = 5;
this.btn_title.Text = "按钮";
this.btn_title.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// SweepButton
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.btn_title);
this.Name = "SweepButton";
this.Size = new System.Drawing.Size(150, 48);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label btn_title;
}
}
@@ -0,0 +1,25 @@
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 SweepButton : UserControl
{
public SweepButton()
{
InitializeComponent();
}
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return btn_title; } }
}
}
@@ -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,91 @@
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.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
this.lbTitle = new System.Windows.Forms.Label();
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(618, 38);
this.plRight.TabIndex = 7;
//
// buttonEdit1
//
this.buttonEdit1.Dock = System.Windows.Forms.DockStyle.Fill;
this.buttonEdit1.Location = new System.Drawing.Point(119, 0);
this.buttonEdit1.Name = "buttonEdit1";
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.Codelight, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, true)});
this.buttonEdit1.Properties.ButtonsStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.buttonEdit1.Size = new System.Drawing.Size(499, 37);
this.buttonEdit1.TabIndex = 4;
//
// 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(119, 38);
this.lbTitle.TabIndex = 3;
this.lbTitle.Text = "扫码识别信息";
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// SweepControl
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.plRight);
this.Name = "SweepControl";
this.Size = new System.Drawing.Size(618, 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,24 @@
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 SweepControl : UserControl
{
public SweepControl()
{
InitializeComponent();
}
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return lbTitle; } }
}
}
@@ -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,42 @@
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;
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);
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.SweepCode.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+444
View File
@@ -0,0 +1,444 @@
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 serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
this.splitMain = new DevExpress.XtraEditors.SplitContainerControl();
this.panelMain = new DevExpress.XtraEditors.PanelControl();
this.panelDetail = new DevExpress.XtraEditors.PanelControl();
this.detailTab = new Lskj.Control.TabControlEx();
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.Control.TabControlEx();
this.pl_Bottom_Title = new DevExpress.XtraEditors.PanelControl();
this.label1 = new System.Windows.Forms.Label();
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.labelControl3 = new DevExpress.XtraEditors.LabelControl();
this.pl_TopSearch = new DevExpress.XtraEditors.PanelControl();
this.panel1 = new System.Windows.Forms.Panel();
this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
this.labelControl4 = new DevExpress.XtraEditors.LabelControl();
this.TabRight = new Lskj.Control.TabControlEx();
((System.ComponentModel.ISupportInitialize)(this.splitMain)).BeginInit();
this.splitMain.SuspendLayout();
((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.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_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.pl_TopSearch)).BeginInit();
this.pl_TopSearch.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.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.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(1290, 739);
this.splitMain.SplitterPosition = 1111;
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.panelDetail);
this.panelMain.Controls.Add(this.pl_Bottom);
this.panelMain.Controls.Add(this.pl_Main);
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(1111, 739);
this.panelMain.TabIndex = 0;
//
// 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, 184);
this.panelDetail.Name = "panelDetail";
this.panelDetail.Size = new System.Drawing.Size(1111, 409);
this.panelDetail.TabIndex = 6;
//
// detailTab
//
this.detailTab.Dock = System.Windows.Forms.DockStyle.Fill;
this.detailTab.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold);
this.detailTab.Location = new System.Drawing.Point(0, 246);
this.detailTab.Name = "detailTab";
this.detailTab.Size = new System.Drawing.Size(1111, 163);
this.detailTab.TabIndex = 9;
//
// 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(1111, 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(680, 0);
this.detailControl_Right.Name = "detailControl_Right";
this.detailControl_Right.Size = new System.Drawing.Size(431, 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.Simple;
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(680, 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(2, 2);
this.detailplControl.Name = "detailplControl";
this.detailplControl.Size = new System.Drawing.Size(676, 207);
this.detailplControl.TabIndex = 9;
//
// 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(1111, 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(1111, 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, 593);
this.pl_Bottom.Name = "pl_Bottom";
this.pl_Bottom.Size = new System.Drawing.Size(1111, 146);
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(1111, 112);
this.TabBottom.TabIndex = 9;
//
// 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(1111, 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(1111, 34);
this.label1.TabIndex = 3;
this.label1.Text = " 生产工序";
this.label1.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.Controls.Add(this.pl_MainState);
this.pl_Main.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_Main.Location = new System.Drawing.Point(0, 48);
this.pl_Main.Name = "pl_Main";
this.pl_Main.Size = new System.Drawing.Size(1111, 136);
this.pl_Main.TabIndex = 1;
//
// 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(1111, 101);
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.labelControl3);
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(1111, 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 = "基本信息";
//
// labelControl3
//
this.labelControl3.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelControl3.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(115)))), ((int)(((byte)(188)))));
this.labelControl3.Location = new System.Drawing.Point(1027, 5);
this.labelControl3.Name = "labelControl3";
this.labelControl3.Size = new System.Drawing.Size(57, 26);
this.labelControl3.TabIndex = 40;
this.labelControl3.Text = "未开工";
//
// 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.panel1);
this.pl_TopSearch.Controls.Add(this.buttonEdit1);
this.pl_TopSearch.Controls.Add(this.labelControl2);
this.pl_TopSearch.Controls.Add(this.labelControl4);
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(1111, 48);
this.pl_TopSearch.TabIndex = 0;
//
// panel1
//
this.panel1.BackgroundImage = global::Lskj.SweepCode.Properties.Resources.message;
this.panel1.Location = new System.Drawing.Point(866, 19);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(19, 16);
this.panel1.TabIndex = 41;
//
// buttonEdit1
//
this.buttonEdit1.Location = new System.Drawing.Point(138, 9);
this.buttonEdit1.Name = "buttonEdit1";
this.buttonEdit1.Properties.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(89)))), ((int)(((byte)(164)))));
this.buttonEdit1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
this.buttonEdit1.Properties.Appearance.Options.UseBackColor = true;
this.buttonEdit1.Properties.Appearance.Options.UseFont = true;
this.buttonEdit1.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
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.CodeLogin, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, true)});
this.buttonEdit1.Properties.ButtonsStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
this.buttonEdit1.Size = new System.Drawing.Size(313, 32);
this.buttonEdit1.TabIndex = 41;
//
// labelControl2
//
this.labelControl2.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelControl2.Appearance.ForeColor = System.Drawing.Color.White;
this.labelControl2.Location = new System.Drawing.Point(891, 15);
this.labelControl2.Name = "labelControl2";
this.labelControl2.Size = new System.Drawing.Size(192, 21);
this.labelControl2.TabIndex = 40;
this.labelControl2.Text = "信息展示区:此工序已开工";
//
// labelControl4
//
this.labelControl4.Appearance.Font = new System.Drawing.Font("Microsoft YaHei UI", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelControl4.Appearance.ForeColor = System.Drawing.Color.White;
this.labelControl4.Location = new System.Drawing.Point(37, 12);
this.labelControl4.Name = "labelControl4";
this.labelControl4.Size = new System.Drawing.Size(95, 26);
this.labelControl4.TabIndex = 38;
this.labelControl4.Text = "扫描报工单";
//
// TabRight
//
this.TabRight.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabRight.Font = new System.Drawing.Font("Tahoma", 17F);
this.TabRight.Location = new System.Drawing.Point(0, 0);
this.TabRight.Name = "TabRight";
this.TabRight.Size = new System.Drawing.Size(174, 739);
this.TabRight.TabIndex = 9;
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1290, 739);
this.Controls.Add(this.splitMain);
this.Name = "FrmMain";
this.Text = "生产过程管理";
((System.ComponentModel.ISupportInitialize)(this.splitMain)).EndInit();
this.splitMain.ResumeLayout(false);
((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.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_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.pl_TopSearch)).EndInit();
this.pl_TopSearch.ResumeLayout(false);
this.pl_TopSearch.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.SplitContainerControl splitMain;
private DevExpress.XtraEditors.PanelControl panelMain;
private DevExpress.XtraEditors.PanelControl panelDetail;
private DevExpress.XtraEditors.PanelControl detailContorl;
private DevExpress.XtraEditors.PanelControl detailControl_Right;
private DevExpress.XtraEditors.PanelControl detailpl_Left;
private DevExpress.XtraEditors.PanelControl detailTab_Title;
private DevExpress.XtraEditors.PanelControl pl_Bottom;
private DevExpress.XtraEditors.PanelControl pl_Bottom_Title;
private DevExpress.XtraEditors.PanelControl pl_Main;
private DevExpress.XtraEditors.PanelControl pl_TopSearch;
private DevExpress.XtraEditors.LabelControl labelControl4;
private DevExpress.XtraEditors.PanelControl pl_MainState;
private DevExpress.XtraEditors.LabelControl labelControl3;
private DevExpress.XtraEditors.PanelControl pl_Main_Center;
private DevExpress.XtraEditors.LabelControl labelControl2;
private System.Windows.Forms.Label lbTitle;
private System.Windows.Forms.Label label1;
private DevExpress.XtraEditors.ButtonEdit buttonEdit1;
private DevExpress.XtraEditors.PanelControl detailplControl;
private Lskj.Control.TabControlEx TabBottom;
private Lskj.Control.TabControlEx TabRight;
private Lskj.Control.TabControlEx detailTab;
private DevExpress.XtraEditors.LabelControl labelControl5;
private System.Windows.Forms.Panel panel1;
}
}
@@ -0,0 +1,362 @@
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 FrmMain : BaseForm
{
/// <summary>
/// <para>说明:初始化后构造方法</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-15 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public FrmMain()
{
InitializeComponent();
}
#region
/// <summary>
/// 入口模型
/// </summary>
public DynamicProductionModel SysModel;
/// <summary>
///查询条件控件
/// </summary>
public MyControl SearchObj;
/// <summary>
/// 主控件集
/// </summary>
public MyControl ControlObj;
/// <summary>
/// 基础模型
/// </summary>
public ModuleModel MoudleObj;
/// <summary>
/// 表格明细集合
/// </summary>
public List<GridDetailModel> GridDetailModelObjs;
/// <summary>
/// 明细衍生到下侧数据
/// </summary>
public List<GridDetailModel> GridDetailAddObj;
/// <summary>
/// 明细衍生到右侧数据
/// </summary>
public List<GridDetailModel> GridDetailRightObj;
#endregion
#region
/// <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 DataTable _dtFields;
/// <summary>
/// 扫码控件源数据
/// </summary>
private DataTable _codeFields;
/// <summary>
/// 动态加载右侧按钮
/// </summary>
private DataTable _RightFields;
/// <summary>
/// 主表数据
/// </summary>
private DataTable _dtMainTable;
/// <summary>
/// pdf附件资源
/// </summary>
private DataTable _dtFiles;
/// <summary>
/// 附件下拉菜单
/// </summary>
private LabelComboxEdit _fileComboBox;
/// <summary>
/// 查看附件
/// </summary>
private ModuleWebView _moduleWebView;
/// <summary>
/// 选项卡排序Sql
/// </summary>
private Dictionary<string, string> _dicOrder = new Dictionary<string, string>();
#endregion
#region
#region
/// <summary>
/// <para>说明:窗体加载时</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-15 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
protected override void OnLoad(EventArgs e)
{
WaitForm.ShowForm();
try
{
SysModel.Privilege = this.SysModel.Privilege.Equals("3") ? "1" : SysModel.ModuleId > 0 ? BaseImpl.GetUserPurviewsByMenuId(SysModel.ModuleId + "") + "" : BaseImpl.GetUserPurviewsByMenuCode(SysModel.ModuleCode) + "";
this._isInitFinish = false;
if (!this.SysModel.HasPrivilege())
{
MessageUtil.Show(ResourceKeys.UnPurview);
this.Close();
}
else
{
this.InitializeSetting();
this.InitializeControl();
this.InitializeDetailGrid();
this.InitlizeSpiltLocation();
}
}
catch (Exception ex)
{
throw;
}
finally
{
}
WaitForm.HideForm();
}
#endregion
#region ,
/// <summary>
/// <para>说明:分隔条改变事件,保存分割位置</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void OnSplitterPositionChanged(object sender, EventArgs e)
{
if (this._isInitFinish) IniHelper.Write(string.Format("base_SplitSweepCodeMain_{0}", this.SysModel.ModuleCode), this.splitMain.SplitterPosition + "");
}
#endregion
#endregion
#region
#region
/// <summary>
/// <para>说明:初始化属性设置</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeSetting()
{
this._primaryKey = BaseImpl.GetBasePrimaryKey(this.SysModel.ModuleCode);
this.MoudleObj = new ModuleModel(MainImpl.GetSystemdllTab(this.SysModel.ModuleCode));
this.MoudleObj.ParmaryKey = BaseImpl.GetBasePrimaryKey(this.SysModel.ModuleCode);
this.GridDetailModelObjs = GetDetailGrids().Where(o => o.addVisible != 1 && o.rightVisible != 1).ToList();
this.GridDetailAddObj = this.GridDetailModelObjs.Where(o => o.addVisible == 1).ToList();
this.GridDetailRightObj = this.GridDetailModelObjs.Where(o => o.rightVisible == 1).ToList();
this._dtFields = BaseModuleImpl.GetControlLocation(this.MoudleObj.FormKey, this.SysModel.ModuleCode);
this._codeFields = BaseImpl.GetSweepCode(this.SysModel.ModuleCode);
this._RightFields = BaseModuleImpl.GetBaseGridRightMenus(this.SysModel.ModuleCode);
this.TabRight.Model = this.TabBottom.Model = this.detailTab.Model = this.SysModel;
if (!string.IsNullOrEmpty(this.SysModel.ParmaryValue))
{
this._keyValue = this.SysModel.ParmaryValue;
}
}
#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()
{
List<GridDetailModel> details = new List<GridDetailModel>();
DataTable moduleDetailBottomTable = BaseModuleImpl.GetBaseDetailPages(this.SysModel.ModuleCode);
if (moduleDetailBottomTable.Rows.Count == 0)
{
moduleDetailBottomTable = BaseModuleImpl.GetBaseAddTabDetail(this.SysModel.ModuleCode);
}
foreach (DataRow item in moduleDetailBottomTable.Rows)
{
DataTable dtGridColumns = ReportImpl.GetReportDetailColumns(this.SysModel.ModuleCode, item["id"] + "");
details.Add(new GridDetailModel(item, dtGridColumns, GridCustomColumnStruct.BaseDetailGridView));
}
return details;
}
#endregion
#region
/// <summary>
/// <para>说明:初始化控件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeControl()
{
this.ControlObj = new MyControl();
this.ControlObj.InitControl(_dtFields, this.pl_Main_Center);
int height = 0; int top = 0; int left = 0;
if (_codeFields.Rows.Count > 0)
{
for (int i = 0; i < _codeFields.Rows.Count; i++)
{
top += 17;
DataRow item = _codeFields.Rows[i];
SweepControl sweepControl = new SweepControl();
sweepControl.Parent = detailplControl;
sweepControl.TitleLabelObj.Text = item["username1"] + "";
sweepControl.Top = top;
sweepControl.Left = 32;
top += sweepControl.Height;
}
}
this.detailContorl.Height = top + 15;
if (_RightFields.Rows.Count > 0)
{
top = 22;
for (int i = 0; i < _RightFields.Rows.Count; i++)
{
left += 34;
SweepButton sweepButton = new SweepButton();
DataRow item = _RightFields.Rows[i];
sweepButton.Parent = detailControl_Right;
sweepButton.TitleLabelObj.Text = item["menuname"] + "";
sweepButton.Top = top;
sweepButton.Left = left;
if (left + sweepButton.Width + 34 > 406)
{
left = 0;
top += sweepButton.Height + 22;
}
else
{
left += sweepButton.Width;
}
}
}
}
#endregion
#region
/// <summary>
/// <para>说明:初始化分割条位置</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
protected void InitlizeSpiltLocation()
{
try
{
string positionMain = IniHelper.Read(string.Format("base_SplitSweepCodeMain_{0}", this.SysModel.ModuleCode));
if (!string.IsNullOrEmpty(positionMain))
{
this.splitMain.SplitterPosition = Convert.ToInt32(positionMain);
}
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex);
MessageUtil.Show(ex);
}
}
#endregion
#region
#endregion
#region
/// <summary>
/// <para>说明:初始化扫码功能模块的明细数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-06-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeDetailGrid()
{
this.detailTab.InitTabPages(GridDetailModelObjs);
this.TabBottom.InitTabPages(GridDetailAddObj);
this.TabRight.InitTabPages(GridDetailRightObj);
}
#endregion
#endregion
}
}
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,151 @@
<?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 />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</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.XtraEditors.v15.2" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Control\SweepButton.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\SweepButton.Designer.cs">
<DependentUpon>SweepButton.cs</DependentUpon>
</Compile>
<Compile Include="Control\SweepControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\SweepControl.Designer.cs">
<DependentUpon>SweepControl.cs</DependentUpon>
</Compile>
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="DllBaseClass.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Control\SweepButton.resx">
<DependentUpon>SweepButton.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\SweepControl.resx">
<DependentUpon>SweepControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<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.Model\Lskj.Model.csproj">
<Project>{52bc40e0-c0c6-4f78-996b-cae028d209ca}</Project>
<Name>Lskj.Model</Name>
</ProjectReference>
<ProjectReference Include="..\..\Lskj.Util\Lskj.Util.csproj">
<Project>{a51bf642-6543-4de3-8948-83f558b72bd4}</Project>
<Name>Lskj.Util</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\75437dd2b91a15e632efd17cb92d1ce.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\1623832357%281%29.jpg" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\组 146.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,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>