基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,171 @@
|
||||
|
||||
namespace Lskj.ProductDynamic.Controls
|
||||
{
|
||||
partial class ImageButton
|
||||
{
|
||||
/// <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.imageLabel = new DevExpress.XtraEditors.LabelControl();
|
||||
this.linePanelTwo = new DevExpress.XtraEditors.PanelControl();
|
||||
this.lineTwo = new DevExpress.XtraEditors.LabelControl();
|
||||
this.simplebButton = new DevExpress.XtraEditors.LabelControl();
|
||||
this.linePanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.line = new DevExpress.XtraEditors.LabelControl();
|
||||
this.numLabel = new DevExpress.XtraEditors.LabelControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.linePanelTwo)).BeginInit();
|
||||
this.linePanelTwo.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.linePanel)).BeginInit();
|
||||
this.linePanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// imageLabel
|
||||
//
|
||||
this.imageLabel.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.imageLabel.Appearance.Image = global::Lskj.ProductDynamic.Properties.Resources.right;
|
||||
this.imageLabel.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.imageLabel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.imageLabel.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.imageLabel.Location = new System.Drawing.Point(0, 0);
|
||||
this.imageLabel.Name = "imageLabel";
|
||||
this.imageLabel.Size = new System.Drawing.Size(46, 36);
|
||||
this.imageLabel.TabIndex = 1;
|
||||
//
|
||||
// linePanelTwo
|
||||
//
|
||||
this.linePanelTwo.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.linePanelTwo.Appearance.BackColor2 = System.Drawing.Color.Transparent;
|
||||
this.linePanelTwo.Appearance.BorderColor = System.Drawing.Color.Transparent;
|
||||
this.linePanelTwo.Appearance.Options.UseBackColor = true;
|
||||
this.linePanelTwo.Appearance.Options.UseBorderColor = true;
|
||||
this.linePanelTwo.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.linePanelTwo.Controls.Add(this.lineTwo);
|
||||
this.linePanelTwo.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.linePanelTwo.Location = new System.Drawing.Point(46, 0);
|
||||
this.linePanelTwo.Name = "linePanelTwo";
|
||||
this.linePanelTwo.Padding = new System.Windows.Forms.Padding(0, 8, 0, 8);
|
||||
this.linePanelTwo.Size = new System.Drawing.Size(2, 36);
|
||||
this.linePanelTwo.TabIndex = 10;
|
||||
//
|
||||
// lineTwo
|
||||
//
|
||||
this.lineTwo.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.lineTwo.Appearance.BorderColor = System.Drawing.Color.White;
|
||||
this.lineTwo.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.lineTwo.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.lineTwo.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.lineTwo.Location = new System.Drawing.Point(0, 8);
|
||||
this.lineTwo.Name = "lineTwo";
|
||||
this.lineTwo.Size = new System.Drawing.Size(2, 20);
|
||||
this.lineTwo.TabIndex = 3;
|
||||
//
|
||||
// simplebButton
|
||||
//
|
||||
this.simplebButton.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.simplebButton.Appearance.Font = new System.Drawing.Font("微软雅黑", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.simplebButton.Appearance.ForeColor = System.Drawing.Color.White;
|
||||
this.simplebButton.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.simplebButton.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.simplebButton.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.simplebButton.Location = new System.Drawing.Point(48, 0);
|
||||
this.simplebButton.Name = "simplebButton";
|
||||
this.simplebButton.Size = new System.Drawing.Size(94, 36);
|
||||
this.simplebButton.TabIndex = 11;
|
||||
this.simplebButton.Text = "按钮";
|
||||
//
|
||||
// linePanel
|
||||
//
|
||||
this.linePanel.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.linePanel.Appearance.BackColor2 = System.Drawing.Color.Transparent;
|
||||
this.linePanel.Appearance.BorderColor = System.Drawing.Color.Transparent;
|
||||
this.linePanel.Appearance.Options.UseBackColor = true;
|
||||
this.linePanel.Appearance.Options.UseBorderColor = true;
|
||||
this.linePanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.linePanel.Controls.Add(this.line);
|
||||
this.linePanel.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.linePanel.Location = new System.Drawing.Point(142, 0);
|
||||
this.linePanel.Name = "linePanel";
|
||||
this.linePanel.Padding = new System.Windows.Forms.Padding(0, 8, 0, 8);
|
||||
this.linePanel.Size = new System.Drawing.Size(2, 36);
|
||||
this.linePanel.TabIndex = 12;
|
||||
//
|
||||
// line
|
||||
//
|
||||
this.line.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.line.Appearance.BorderColor = System.Drawing.Color.White;
|
||||
this.line.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.line.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.line.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.line.Location = new System.Drawing.Point(0, 8);
|
||||
this.line.Name = "line";
|
||||
this.line.Size = new System.Drawing.Size(2, 20);
|
||||
this.line.TabIndex = 3;
|
||||
//
|
||||
// numLabel
|
||||
//
|
||||
this.numLabel.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.numLabel.Appearance.Font = new System.Drawing.Font("微软雅黑", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.numLabel.Appearance.ForeColor = System.Drawing.Color.White;
|
||||
this.numLabel.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
|
||||
this.numLabel.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.numLabel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.numLabel.Location = new System.Drawing.Point(144, 0);
|
||||
this.numLabel.Name = "numLabel";
|
||||
this.numLabel.Size = new System.Drawing.Size(79, 36);
|
||||
this.numLabel.TabIndex = 13;
|
||||
this.numLabel.Text = "数量";
|
||||
//
|
||||
// ImageButton
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(87)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
|
||||
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.Controls.Add(this.numLabel);
|
||||
this.Controls.Add(this.linePanel);
|
||||
this.Controls.Add(this.simplebButton);
|
||||
this.Controls.Add(this.linePanelTwo);
|
||||
this.Controls.Add(this.imageLabel);
|
||||
this.Name = "ImageButton";
|
||||
this.Size = new System.Drawing.Size(223, 36);
|
||||
((System.ComponentModel.ISupportInitialize)(this.linePanelTwo)).EndInit();
|
||||
this.linePanelTwo.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.linePanel)).EndInit();
|
||||
this.linePanel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.LabelControl imageLabel;
|
||||
private DevExpress.XtraEditors.PanelControl linePanelTwo;
|
||||
private DevExpress.XtraEditors.LabelControl lineTwo;
|
||||
private DevExpress.XtraEditors.LabelControl simplebButton;
|
||||
private DevExpress.XtraEditors.PanelControl linePanel;
|
||||
private DevExpress.XtraEditors.LabelControl line;
|
||||
private DevExpress.XtraEditors.LabelControl numLabel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
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.ProductDynamic.Controls
|
||||
{
|
||||
public partial class ImageButton : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// this label控件
|
||||
/// </summary>
|
||||
private DevExpress.XtraEditors.LabelControl _imageLabel;
|
||||
public DevExpress.XtraEditors.LabelControl ImageLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
_imageLabel = this.imageLabel;
|
||||
return _imageLabel;
|
||||
}
|
||||
set { _imageLabel = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// this numlabel控件
|
||||
/// </summary>
|
||||
private DevExpress.XtraEditors.LabelControl _numLabel;
|
||||
public DevExpress.XtraEditors.LabelControl NumLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
_numLabel = this.numLabel;
|
||||
return _numLabel;
|
||||
}
|
||||
set { _numLabel = value; }
|
||||
}
|
||||
private DevExpress.XtraEditors.LabelControl _simpleButton;
|
||||
/// <summary>
|
||||
/// this simpleButton控件
|
||||
/// </summary>
|
||||
public DevExpress.XtraEditors.LabelControl SimpleButton
|
||||
{
|
||||
get
|
||||
{
|
||||
_simpleButton = this.simplebButton;
|
||||
return _simpleButton;
|
||||
}
|
||||
set { _simpleButton = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 默认颜色
|
||||
/// </summary>
|
||||
private Color emptyColor;
|
||||
/// <summary>
|
||||
/// 按钮模型
|
||||
/// </summary>
|
||||
public ProductDynamicBtnModel productDynamicBtnModel;
|
||||
public DataRow focusedRow;
|
||||
public ImageButton(DataRow row)
|
||||
{
|
||||
InitializeComponent();
|
||||
productDynamicBtnModel = new ProductDynamicBtnModel(row);
|
||||
this.focusedRow = row;
|
||||
this.Load += new EventHandler(OnImageButton_Load);
|
||||
this.simplebButton.MouseMove += new MouseEventHandler(OnSimpleButton_MouseMove);
|
||||
this.simplebButton.MouseLeave += new EventHandler(OnSimplebButton_MouseLeave);
|
||||
this.imageLabel.MouseMove += new MouseEventHandler(OnSimpleButton_MouseMove);
|
||||
this.imageLabel.MouseLeave += new EventHandler(OnSimplebButton_MouseLeave);
|
||||
this.numLabel.MouseMove += new MouseEventHandler(OnSimpleButton_MouseMove);
|
||||
this.numLabel.MouseLeave += new EventHandler(OnSimplebButton_MouseLeave);
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗体加载时
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnImageButton_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.emptyColor = this.BackColor;
|
||||
this.imageLabel.Width = this.Height + 10;
|
||||
if (productDynamicBtnModel != null)
|
||||
{
|
||||
this.simplebButton.Text = productDynamicBtnModel.ProductName;
|
||||
this.numLabel.Text = productDynamicBtnModel.Amount;
|
||||
try
|
||||
{
|
||||
if (!string.IsNullOrEmpty(productDynamicBtnModel.ProductPic))
|
||||
{
|
||||
Image image = Image.FromFile(Util.PubUtil.ProductDynamic + productDynamicBtnModel.ProductPic);
|
||||
this.imageLabel.Appearance.Image = image;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.imageLabel.Appearance.Image = global::Lskj.ProductDynamic.Properties.Resources.right;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 鼠标离开事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnSimplebButton_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
this.BackColor = emptyColor;
|
||||
}
|
||||
/// <summary>
|
||||
/// 鼠标滑过事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnSimpleButton_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.BackColor = ColorTranslator.FromHtml("#1872cd");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.ProductDynamic.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// 动态按钮模型
|
||||
/// </summary>
|
||||
public class ProductDynamicBtnModel
|
||||
{
|
||||
private string productName;
|
||||
private string productPic;
|
||||
private string productTip;
|
||||
private string detailId;
|
||||
private string dynamicSql;
|
||||
private int productState;
|
||||
private string errorMessage;
|
||||
private string amount;
|
||||
#region 公有变量
|
||||
public string ProductName { get { return productName; } set { productName = value; } }
|
||||
public string ProductPic { get { return productPic; } set { productPic = value; } }
|
||||
public string ProductTip { get { return productTip; } set { productTip = value; } }
|
||||
public string DetailId { get { return detailId; } set { detailId = value; } }
|
||||
public string DynamicSql { get { return dynamicSql; } set { dynamicSql = value; } }
|
||||
public int ProductState { get { return productState; } set { productState = value; } }
|
||||
public string ErrorMessage { get { return errorMessage; } set { errorMessage = value; } }
|
||||
public string Amount { get { return amount; } set { amount = value; } }
|
||||
|
||||
#endregion
|
||||
public ProductDynamicBtnModel(DataRow row)
|
||||
{
|
||||
//productName = row.Table.Columns.Contains("ProductName") ? row["ProductName"] + "" : "";
|
||||
//productPic = row.Table.Columns.Contains("ProductPic") ? row["ProductPic"] + "" : "";
|
||||
//productTip = row.Table.Columns.Contains("ProductTip") ? row["ProductTip"] + "" : "";
|
||||
//detailId = row.Table.Columns.Contains("DetailId") ? row["DetailId"] + "" : "";
|
||||
//dynamicSql = row.Table.Columns.Contains("DynamicSql") ? row["DynamicSql"] + "" : "";
|
||||
//productState = row.Table.Columns.Contains("ProductState") && !string.IsNullOrEmpty(row["ProductState"] + "") ? int.TryParse(row["ProductState"] + "", out productState) ? Convert.ToInt32(row["ProductState"] + "") : 0 : 0;
|
||||
//errorMessage = row.Table.Columns.Contains("ErrorMessage") ? row["ErrorMessage"] + "" : "";
|
||||
productName = row.Table.Columns.Contains("title") ? row["title"] + "" : "";
|
||||
productPic = row.Table.Columns.Contains("imgsource") ? row["imgsource"] + "" : "";
|
||||
productTip = row.Table.Columns.Contains("content") ? row["content"] + "" : "";
|
||||
detailId = row.Table.Columns.Contains("detailid") ? row["detailid"] + "" : "";
|
||||
dynamicSql = row.Table.Columns.Contains("DynamicSql") ? row["DynamicSql"] + "" : "";
|
||||
productState = row.Table.Columns.Contains("ProductState") && !string.IsNullOrEmpty(row["ProductState"] + "") ? int.TryParse(row["ProductState"] + "", out productState) ? Convert.ToInt32(row["ProductState"] + "") : 0 : 0;
|
||||
errorMessage = row.Table.Columns.Contains("ErrorMessage") ? row["ErrorMessage"] + "" : "";
|
||||
amount = row.Table.Columns.Contains("amount") ? row["amount"] + "" : "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
namespace Lskj.ProductDynamic.Controls
|
||||
{
|
||||
partial class SimpleButton
|
||||
{
|
||||
/// <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.simpleBtn = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// simpleBtn
|
||||
//
|
||||
this.simpleBtn.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.simpleBtn.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.simpleBtn.Appearance.ForeColor = System.Drawing.Color.White;
|
||||
this.simpleBtn.Appearance.Options.UseBackColor = true;
|
||||
this.simpleBtn.Appearance.Options.UseFont = true;
|
||||
this.simpleBtn.Appearance.Options.UseForeColor = true;
|
||||
this.simpleBtn.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.simpleBtn.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.simpleBtn.Location = new System.Drawing.Point(0, 0);
|
||||
this.simpleBtn.Name = "simpleBtn";
|
||||
this.simpleBtn.ShowFocusRectangle = DevExpress.Utils.DefaultBoolean.False;
|
||||
this.simpleBtn.Size = new System.Drawing.Size(120, 36);
|
||||
this.simpleBtn.TabIndex = 0;
|
||||
this.simpleBtn.Text = "按钮";
|
||||
//
|
||||
// SimpleButton
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(87)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
|
||||
this.Controls.Add(this.simpleBtn);
|
||||
this.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.Name = "SimpleButton";
|
||||
this.Size = new System.Drawing.Size(120, 36);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.SimpleButton simpleBtn;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
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.ProductDynamic.Controls
|
||||
{
|
||||
public partial class SimpleButton : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// this button控件
|
||||
/// </summary>
|
||||
private DevExpress.XtraEditors.SimpleButton _simpleButton;
|
||||
public DevExpress.XtraEditors.SimpleButton simpleButton
|
||||
{
|
||||
get
|
||||
{
|
||||
_simpleButton = this.simpleBtn;
|
||||
return _simpleButton;
|
||||
}
|
||||
set { _simpleButton = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 默认颜色
|
||||
/// </summary>
|
||||
private Color emptyColor;
|
||||
public SimpleButton()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Load += new EventHandler(OnSimpleButton_Load);
|
||||
this.simpleButton.MouseMove += new MouseEventHandler(OnSimpleButton_MouseMove);
|
||||
this.simpleButton.MouseLeave += new EventHandler(OnSimpleButton_MouseLeave);
|
||||
}
|
||||
|
||||
private void OnSimpleButton_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.emptyColor = this.BackColor;
|
||||
}
|
||||
|
||||
private void OnSimpleButton_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
this.BackColor = emptyColor;
|
||||
}
|
||||
|
||||
private void OnSimpleButton_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
this.BackColor = ColorTranslator.FromHtml("#1872cd");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,51 @@
|
||||
/******************************
|
||||
* 说明:生产动态配置模版入口
|
||||
* 创建人:tdx
|
||||
* 创建日期:2022-09-06
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using Lskj.Business;
|
||||
using Lskj.Model;
|
||||
using Lskj.ProductDynamic;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace Lskj.MesStart
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据模版入口
|
||||
/// </summary>
|
||||
public class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
main.SysModel = new DynamicProductModel(obj);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.ProductDynamic.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
+277
@@ -0,0 +1,277 @@
|
||||
|
||||
namespace Lskj.ProductDynamic
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.mainPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.gridPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.leftPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.leftTopPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.tabControl = new Lskj.Control.TabControlEx();
|
||||
this.bottomPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.bottomMainPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.tabDetails = new Lskj.Control.TabControlEx();
|
||||
this.tipsLabel = new DevExpress.XtraEditors.LabelControl();
|
||||
this.tipsLablelTitle = new DevExpress.XtraEditors.LabelControl();
|
||||
this.bottomBtnPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.rightBtnLabelPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
this.rightTopBtnPanel = new System.Windows.Forms.Panel();
|
||||
this.rightBottomBtnPanel = new DevExpress.XtraEditors.PanelControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.mainPanel)).BeginInit();
|
||||
this.mainPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridPanel)).BeginInit();
|
||||
this.gridPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.leftPanel)).BeginInit();
|
||||
this.leftPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.leftTopPanel)).BeginInit();
|
||||
this.leftTopPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomPanel)).BeginInit();
|
||||
this.bottomPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomMainPanel)).BeginInit();
|
||||
this.bottomMainPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomBtnPanel)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.rightBtnLabelPanel)).BeginInit();
|
||||
this.rightBtnLabelPanel.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.rightBottomBtnPanel)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// mainPanel
|
||||
//
|
||||
this.mainPanel.Controls.Add(this.gridPanel);
|
||||
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.mainPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.mainPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.mainPanel.Name = "mainPanel";
|
||||
this.mainPanel.Padding = new System.Windows.Forms.Padding(10);
|
||||
this.mainPanel.Size = new System.Drawing.Size(1276, 670);
|
||||
this.mainPanel.TabIndex = 0;
|
||||
//
|
||||
// gridPanel
|
||||
//
|
||||
this.gridPanel.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.gridPanel.Appearance.Options.UseBackColor = true;
|
||||
this.gridPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.gridPanel.Controls.Add(this.leftPanel);
|
||||
this.gridPanel.Controls.Add(this.rightBtnLabelPanel);
|
||||
this.gridPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridPanel.Location = new System.Drawing.Point(12, 12);
|
||||
this.gridPanel.Name = "gridPanel";
|
||||
this.gridPanel.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0);
|
||||
this.gridPanel.Size = new System.Drawing.Size(1252, 646);
|
||||
this.gridPanel.TabIndex = 11;
|
||||
//
|
||||
// leftPanel
|
||||
//
|
||||
this.leftPanel.Controls.Add(this.leftTopPanel);
|
||||
this.leftPanel.Controls.Add(this.bottomPanel);
|
||||
this.leftPanel.Controls.Add(this.bottomBtnPanel);
|
||||
this.leftPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.leftPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.leftPanel.Name = "leftPanel";
|
||||
this.leftPanel.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0);
|
||||
this.leftPanel.Size = new System.Drawing.Size(972, 646);
|
||||
this.leftPanel.TabIndex = 36;
|
||||
//
|
||||
// leftTopPanel
|
||||
//
|
||||
this.leftTopPanel.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.leftTopPanel.Appearance.Options.UseBackColor = true;
|
||||
this.leftTopPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.leftTopPanel.Controls.Add(this.tabControl);
|
||||
this.leftTopPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.leftTopPanel.Location = new System.Drawing.Point(2, 2);
|
||||
this.leftTopPanel.Name = "leftTopPanel";
|
||||
this.leftTopPanel.Size = new System.Drawing.Size(958, 375);
|
||||
this.leftTopPanel.TabIndex = 39;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabControl.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.tabControl.Size = new System.Drawing.Size(958, 375);
|
||||
this.tabControl.TabIndex = 38;
|
||||
//
|
||||
// bottomPanel
|
||||
//
|
||||
this.bottomPanel.Controls.Add(this.bottomMainPanel);
|
||||
this.bottomPanel.Controls.Add(this.tipsLabel);
|
||||
this.bottomPanel.Controls.Add(this.tipsLablelTitle);
|
||||
this.bottomPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bottomPanel.Location = new System.Drawing.Point(2, 377);
|
||||
this.bottomPanel.Name = "bottomPanel";
|
||||
this.bottomPanel.Size = new System.Drawing.Size(958, 223);
|
||||
this.bottomPanel.TabIndex = 38;
|
||||
//
|
||||
// bottomMainPanel
|
||||
//
|
||||
this.bottomMainPanel.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.bottomMainPanel.Appearance.Options.UseBackColor = true;
|
||||
this.bottomMainPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.bottomMainPanel.Controls.Add(this.tabDetails);
|
||||
this.bottomMainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.bottomMainPanel.Location = new System.Drawing.Point(2, 29);
|
||||
this.bottomMainPanel.Name = "bottomMainPanel";
|
||||
this.bottomMainPanel.Size = new System.Drawing.Size(954, 192);
|
||||
this.bottomMainPanel.TabIndex = 18;
|
||||
//
|
||||
// tabDetails
|
||||
//
|
||||
this.tabDetails.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabDetails.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabDetails.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tabDetails.Name = "tabDetails";
|
||||
this.tabDetails.Size = new System.Drawing.Size(954, 192);
|
||||
this.tabDetails.TabIndex = 37;
|
||||
//
|
||||
// tipsLabel
|
||||
//
|
||||
this.tipsLabel.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.tipsLabel.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tipsLabel.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
|
||||
this.tipsLabel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tipsLabel.Location = new System.Drawing.Point(2, 29);
|
||||
this.tipsLabel.Name = "tipsLabel";
|
||||
this.tipsLabel.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
|
||||
this.tipsLabel.Size = new System.Drawing.Size(954, 192);
|
||||
this.tipsLabel.TabIndex = 19;
|
||||
//
|
||||
// tipsLablelTitle
|
||||
//
|
||||
this.tipsLablelTitle.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(87)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
|
||||
this.tipsLablelTitle.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tipsLablelTitle.Appearance.ForeColor = System.Drawing.Color.White;
|
||||
this.tipsLablelTitle.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.Vertical;
|
||||
this.tipsLablelTitle.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tipsLablelTitle.Location = new System.Drawing.Point(2, 2);
|
||||
this.tipsLablelTitle.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tipsLablelTitle.Name = "tipsLablelTitle";
|
||||
this.tipsLablelTitle.Size = new System.Drawing.Size(954, 27);
|
||||
this.tipsLablelTitle.TabIndex = 17;
|
||||
this.tipsLablelTitle.Text = " 提示信息:";
|
||||
//
|
||||
// bottomBtnPanel
|
||||
//
|
||||
this.bottomBtnPanel.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.bottomBtnPanel.Appearance.Options.UseBackColor = true;
|
||||
this.bottomBtnPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.bottomBtnPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bottomBtnPanel.Location = new System.Drawing.Point(2, 600);
|
||||
this.bottomBtnPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.bottomBtnPanel.Name = "bottomBtnPanel";
|
||||
this.bottomBtnPanel.Size = new System.Drawing.Size(958, 44);
|
||||
this.bottomBtnPanel.TabIndex = 37;
|
||||
//
|
||||
// rightBtnLabelPanel
|
||||
//
|
||||
this.rightBtnLabelPanel.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.rightBtnLabelPanel.Appearance.Options.UseBackColor = true;
|
||||
this.rightBtnLabelPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.rightBtnLabelPanel.Controls.Add(this.rightTopBtnPanel);
|
||||
this.rightBtnLabelPanel.Controls.Add(this.rightBottomBtnPanel);
|
||||
this.rightBtnLabelPanel.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.rightBtnLabelPanel.Location = new System.Drawing.Point(972, 0);
|
||||
this.rightBtnLabelPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.rightBtnLabelPanel.Name = "rightBtnLabelPanel";
|
||||
this.rightBtnLabelPanel.Size = new System.Drawing.Size(270, 646);
|
||||
this.rightBtnLabelPanel.TabIndex = 34;
|
||||
//
|
||||
// rightTopBtnPanel
|
||||
//
|
||||
this.rightTopBtnPanel.AutoScroll = true;
|
||||
this.rightTopBtnPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.rightTopBtnPanel.Location = new System.Drawing.Point(2, 2);
|
||||
this.rightTopBtnPanel.Name = "rightTopBtnPanel";
|
||||
this.rightTopBtnPanel.Size = new System.Drawing.Size(266, 527);
|
||||
this.rightTopBtnPanel.TabIndex = 39;
|
||||
//
|
||||
// rightBottomBtnPanel
|
||||
//
|
||||
this.rightBottomBtnPanel.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.rightBottomBtnPanel.Appearance.Options.UseBackColor = true;
|
||||
this.rightBottomBtnPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.rightBottomBtnPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.rightBottomBtnPanel.Location = new System.Drawing.Point(2, 529);
|
||||
this.rightBottomBtnPanel.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.rightBottomBtnPanel.Name = "rightBottomBtnPanel";
|
||||
this.rightBottomBtnPanel.Size = new System.Drawing.Size(266, 115);
|
||||
this.rightBottomBtnPanel.TabIndex = 38;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.Color.White;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1276, 670);
|
||||
this.Controls.Add(this.mainPanel);
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "生产动态配置";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
((System.ComponentModel.ISupportInitialize)(this.mainPanel)).EndInit();
|
||||
this.mainPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.gridPanel)).EndInit();
|
||||
this.gridPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.leftPanel)).EndInit();
|
||||
this.leftPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.leftTopPanel)).EndInit();
|
||||
this.leftTopPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomPanel)).EndInit();
|
||||
this.bottomPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomMainPanel)).EndInit();
|
||||
this.bottomMainPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bottomBtnPanel)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.rightBtnLabelPanel)).EndInit();
|
||||
this.rightBtnLabelPanel.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.rightBottomBtnPanel)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.PanelControl mainPanel;
|
||||
private DevExpress.XtraEditors.PanelControl gridPanel;
|
||||
private DevExpress.XtraEditors.PanelControl leftPanel;
|
||||
private DevExpress.XtraEditors.PanelControl rightBtnLabelPanel;
|
||||
private DevExpress.XtraEditors.PanelControl bottomPanel;
|
||||
private DevExpress.XtraEditors.PanelControl bottomMainPanel;
|
||||
private Control.TabControlEx tabDetails;
|
||||
private DevExpress.XtraEditors.LabelControl tipsLabel;
|
||||
private DevExpress.XtraEditors.LabelControl tipsLablelTitle;
|
||||
private DevExpress.XtraEditors.PanelControl bottomBtnPanel;
|
||||
private System.Windows.Forms.Panel rightTopBtnPanel;
|
||||
private DevExpress.XtraEditors.PanelControl rightBottomBtnPanel;
|
||||
private DevExpress.XtraEditors.PanelControl leftTopPanel;
|
||||
private Control.TabControlEx tabControl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,586 @@
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using DevExpress.XtraTab;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Core;
|
||||
using Lskj.Data;
|
||||
using Lskj.Model;
|
||||
using Lskj.ProductDynamic.Controls;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.ProductDynamic
|
||||
{
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Load += new EventHandler(OnFrmMain_Load);
|
||||
}
|
||||
#region 变量
|
||||
/// <summary>
|
||||
/// 入口模型
|
||||
/// </summary>
|
||||
public DynamicProductModel SysModel;
|
||||
/// <summary>
|
||||
/// 基础模型
|
||||
/// </summary>
|
||||
public ModuleModel Model;
|
||||
/// <summary>
|
||||
/// 按钮集合
|
||||
/// </summary>
|
||||
public List<ImageButton> imageButtonList = new List<ImageButton>();
|
||||
/// <summary>
|
||||
/// 当前选中行
|
||||
/// </summary>
|
||||
public DataRow FocusedRow;
|
||||
/// <summary>
|
||||
/// 刷新按钮
|
||||
/// </summary>
|
||||
public SimpleButton refreshBtn;
|
||||
/// <summary>
|
||||
/// 刷新按钮
|
||||
/// </summary>
|
||||
public TabControlEx tabObject;
|
||||
public Dictionary<ImageButton, TabControlEx> tabMainListWith = new Dictionary<ImageButton, TabControlEx>();
|
||||
public Dictionary<TabControlEx, TabControlEx> tabDetilListWith = new Dictionary<TabControlEx, TabControlEx>();
|
||||
#endregion
|
||||
#region 事件
|
||||
#region 窗体加载时
|
||||
/// <summary>
|
||||
/// 窗体加载时
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnFrmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
IninControls();
|
||||
InitRightMenuInBottom();
|
||||
}
|
||||
#endregion
|
||||
#region 按钮点击事件
|
||||
/// <summary>
|
||||
/// 右侧顶部按钮点击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnSimpleButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DevExpress.XtraEditors.LabelControl simpleBtn = (DevExpress.XtraEditors.LabelControl)sender;
|
||||
ImageButton imageBtn = simpleBtn.Parent as ImageButton;
|
||||
this.FocusedRow = imageBtn.focusedRow;
|
||||
imageBtn.NumLabel.Text = imageBtn.productDynamicBtnModel.Amount;
|
||||
this.tipsLabel.Text = imageBtn.productDynamicBtnModel.ProductTip;
|
||||
this.leftTopPanel.Controls.Clear();
|
||||
tabControl = tabMainListWith[imageBtn];
|
||||
tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
tabControl.BringToFront();
|
||||
this.leftTopPanel.Controls.Add(this.tabControl);
|
||||
this.bottomMainPanel.Visible = false;
|
||||
this.tipsLablelTitle.Visible = true;
|
||||
if (tabDetilListWith.ContainsKey(tabControl))
|
||||
{
|
||||
this.bottomMainPanel.Controls.Clear();
|
||||
tabDetails = tabDetilListWith[tabControl];
|
||||
this.bottomMainPanel.Visible = true;
|
||||
tabDetails.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.bottomMainPanel.Controls.Add(tabDetails);
|
||||
this.tipsLablelTitle.Visible = false;
|
||||
}
|
||||
this.tabObject = tabControl;//构建主表明细
|
||||
this.SetDetailGridDataSource(imageBtn.focusedRow);
|
||||
if (tabControl.TabControlObj.TabPages.Count == 1)
|
||||
{
|
||||
tabControl.TabControlObj.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
|
||||
}
|
||||
if (tabDetails.TabControlObj.TabPages.Count == 1)
|
||||
{
|
||||
tabDetails.TabControlObj.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False;
|
||||
}
|
||||
int detailPointX = 40;
|
||||
int detailPointY = 0;
|
||||
XtraTabPage RefreshPage = this.tabControl.TabControlObj.SelectedTabPage;
|
||||
GridDetailModel model = this.tabObject.GetGridDetailModel(RefreshPage);
|
||||
this.bottomBtnPanel.Controls.Clear();
|
||||
if (model!=null&&!string.IsNullOrEmpty(model.UnionModule))
|
||||
{
|
||||
//构造主表右键按钮
|
||||
DataTable rightMenuTab = BaseModuleImpl.GetBaseGridRightMenus(model.UnionModule);
|
||||
foreach (DataRow detailRow in rightMenuTab.Rows)
|
||||
{
|
||||
SimpleButton buttonControl = new SimpleButton();
|
||||
GridRightMenuModel menuModel = new GridRightMenuModel(detailRow);
|
||||
buttonControl.simpleButton.Tag = menuModel;
|
||||
buttonControl.simpleButton.Text = detailRow.Table.Columns.Contains("menuname") && !string.IsNullOrEmpty(detailRow["menuname"] + "") ? detailRow["menuname"] + "" : "按钮";
|
||||
buttonControl.simpleButton.Click += new EventHandler(OnBottomDetailSimpleButton_Click);
|
||||
buttonControl.Parent = this.bottomBtnPanel;
|
||||
buttonControl.Anchor = AnchorStyles.Left | AnchorStyles.Top;
|
||||
detailPointY = (this.bottomBtnPanel.Height - buttonControl.Height) / 2;
|
||||
buttonControl.Location = new Point(detailPointX, detailPointY);
|
||||
detailPointX = detailPointX + buttonControl.Width + 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <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="DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs"/> instance containing the event data.</param>
|
||||
protected void OnGridViewFocusedRowObjectChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
this.tabObject = tabDetails;
|
||||
GridView gridView = sender as GridView;
|
||||
this.SetDetailGridDataSource(gridView.GetFocusedDataRow());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show("加载明细数据失败!" + Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 刷新按钮点击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void refreshBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.tipsLabel.Text = "";
|
||||
//this.imageButtonList.Clear();
|
||||
//this.rightTopBtnPanel.Controls.Clear();
|
||||
//IninControls();
|
||||
this.tabObject = tabControl;//构建主表明细
|
||||
this.SetDetailGridDataSource(FocusedRow);
|
||||
}
|
||||
/// <summary>
|
||||
/// 右侧底部主按钮点击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnBottomSimpleButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
DevExpress.XtraEditors.SimpleButton simpleBtn = (DevExpress.XtraEditors.SimpleButton)sender;
|
||||
GridRightMenuModel model = simpleBtn.Tag as GridRightMenuModel;
|
||||
BaseRightMenu menu = new BaseRightMenu();
|
||||
menu.Model = this.SysModel;
|
||||
if (menu.ExecRightMenu(model, new DataRow[] { FocusedRow }) && model.Refresh)
|
||||
{
|
||||
if (refreshBtn != null) refreshBtn_Click(refreshBtn, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 右侧底部明细按钮点击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnBottomDetailSimpleButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
XtraTabPage tabPage = this.tabControl.TabControlObj.SelectedTabPage;
|
||||
Object moduleObject = tabPage.Controls.Cast<Object>().FirstOrDefault();
|
||||
ModuleGridEx moduleGridEx = null;
|
||||
if (moduleObject is ModuleGridEx)
|
||||
{
|
||||
moduleGridEx = moduleObject as ModuleGridEx;
|
||||
DevExpress.XtraEditors.SimpleButton simpleBtn = (DevExpress.XtraEditors.SimpleButton)sender;
|
||||
GridRightMenuModel model = simpleBtn.Tag as GridRightMenuModel;
|
||||
BaseRightMenu menu = new BaseRightMenu();
|
||||
menu.Model = moduleGridEx.Model;
|
||||
DataRow[] rowArray = null;
|
||||
if (tabPage.Tag != null && tabPage.Tag is GridControlEx)
|
||||
{
|
||||
GridControlEx gridControl = tabPage.Tag as GridControlEx;
|
||||
rowArray = gridControl.GetViewFocusedDataRows();
|
||||
}
|
||||
if (!model.Mergeexec && !model.MoreClick && rowArray != null && rowArray.Length > 1)
|
||||
{
|
||||
MessageUtil.Show(string.Format(ResourceKeys.ExecRightMenuOnlyOne, model.MenuName));
|
||||
return;
|
||||
}
|
||||
if (rowArray != null && rowArray.Length == 0 && model.IsMustSelectRow())
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.SelectRowIsNull);
|
||||
return;
|
||||
}
|
||||
if (menu.ExecRightMenu(model, rowArray) && model.Refresh)
|
||||
{
|
||||
if (refreshBtn != null) refreshBtn_Click(refreshBtn, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
#region 方法
|
||||
/// <summary>
|
||||
/// 构造控件
|
||||
/// </summary>
|
||||
private void IninControls()
|
||||
{
|
||||
DataRow modelRow = MainImpl.GetSystemdllTab(this.SysModel.ModuleCode);
|
||||
if (modelRow != null)
|
||||
Model = new ModuleModel(modelRow);
|
||||
if (Model != null && !string.IsNullOrEmpty(Model.MenuSql))
|
||||
{
|
||||
//SysModel.controlSql = "select 1 as jtid";
|
||||
DataRow row = BaseImpl.GetDataRowResult(SysModel.controlSql);
|
||||
Model.MenuSql = ReplaceHelper.ReplaceRowParam(row, Model.MenuSql);
|
||||
DataTable btnTable = SqlHelper.ExecuteDataTable(Model.MenuSql);//按钮控件表格
|
||||
if (btnTable != null && btnTable.Rows.Count > 0)
|
||||
{
|
||||
int locationY = 20;
|
||||
for (int i = 0; i < btnTable.Rows.Count; i++)
|
||||
{
|
||||
DataRow btnRow = btnTable.Rows[i];
|
||||
ImageButton imageBtn = new ImageButton(btnRow);
|
||||
this.imageButtonList.Add(imageBtn);
|
||||
int locationX = (this.rightTopBtnPanel.Width - imageBtn.Width) / 2;
|
||||
imageBtn.SimpleButton.Click += new EventHandler(OnSimpleButton_Click);
|
||||
imageBtn.ImageLabel.Click += new EventHandler(OnSimpleButton_Click);
|
||||
imageBtn.NumLabel.Click += new EventHandler(OnSimpleButton_Click);
|
||||
imageBtn.Location = new Point(locationX, locationY);
|
||||
imageBtn.Parent = this.rightTopBtnPanel;
|
||||
locationY += imageBtn.Height + 10;
|
||||
OnCacheBtn(imageBtn);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.imageButtonList[0] != null)
|
||||
{
|
||||
OnSimpleButton_Click(this.imageButtonList[0].SimpleButton, new EventArgs());//默认执行第一个按钮
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 加载下方按钮
|
||||
/// </summary>
|
||||
private void InitRightMenuInBottom()
|
||||
{
|
||||
//构造主表右键按钮
|
||||
DataTable rightMenuTab = BaseModuleImpl.GetBaseGridRightMenus(this.SysModel.ModuleCode);
|
||||
if (rightMenuTab != null && rightMenuTab.Rows.Count > 0)
|
||||
{
|
||||
if (rightMenuTab != null && rightMenuTab.Rows.Count > 0)
|
||||
{
|
||||
int pointX = 20;
|
||||
int pointY = 20;
|
||||
int simpleControlHeight = 0;
|
||||
for (int i = 0; i < rightMenuTab.Rows.Count + 1; i++)
|
||||
{
|
||||
SimpleButton buttonControl = new SimpleButton();
|
||||
if (i == rightMenuTab.Rows.Count)//最后增加刷新按钮
|
||||
{
|
||||
refreshBtn = buttonControl;
|
||||
simpleControlHeight = buttonControl.Height;
|
||||
buttonControl.simpleButton.Text = "刷新";
|
||||
buttonControl.simpleButton.Click += new EventHandler(refreshBtn_Click);
|
||||
}
|
||||
else
|
||||
{
|
||||
DataRow menuRow = rightMenuTab.Rows[i];
|
||||
GridRightMenuModel menuModel = new GridRightMenuModel(menuRow);
|
||||
simpleControlHeight = buttonControl.Height;
|
||||
buttonControl.simpleButton.Tag = menuModel;
|
||||
buttonControl.simpleButton.Text = menuRow.Table.Columns.Contains("menuname") && !string.IsNullOrEmpty(menuRow["menuname"] + "") ? menuRow["menuname"] + "" : "按钮";
|
||||
buttonControl.simpleButton.Click += new EventHandler(OnBottomSimpleButton_Click);
|
||||
}
|
||||
buttonControl.Parent = this.rightBottomBtnPanel;
|
||||
buttonControl.Location = new Point(pointX, pointY);
|
||||
if ((i + 1) % 2 == 0)
|
||||
{
|
||||
pointX = 20;
|
||||
pointY += buttonControl.Height + 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
pointX = this.rightBottomBtnPanel.Width - 20 - buttonControl.Width;
|
||||
}
|
||||
}
|
||||
int rowCount = (rightMenuTab.Rows.Count + 1) % 2 == 0 ? (rightMenuTab.Rows.Count + 1) / 2 : (rightMenuTab.Rows.Count + 2) / 2;
|
||||
this.rightBottomBtnPanel.Height = rowCount * simpleControlHeight + (rowCount - 1) * 10 + rowCount * 2 * 2 + 40;
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 缓存数据
|
||||
/// </summary>
|
||||
/// <param name="imageBtn"></param>
|
||||
private void OnCacheBtn(ImageButton imageBtn = null)
|
||||
{
|
||||
this.FocusedRow = imageBtn.focusedRow;
|
||||
imageBtn.NumLabel.Text = imageBtn.productDynamicBtnModel.Amount;
|
||||
this.tipsLabel.Text = imageBtn.productDynamicBtnModel.ProductTip;
|
||||
TabControlEx tabListEx = new TabControlEx();
|
||||
List<GridDetailModel> details = new List<GridDetailModel>();//表格明细对象的集合
|
||||
if (!string.IsNullOrEmpty(imageBtn.productDynamicBtnModel.DetailId))
|
||||
{
|
||||
string sqlValue = string.Format("select * from p_systemDlltabDetail where tab='{0}' and orderId={1} and ISNULL(isVisible,0)=0 order by orderid", this.SysModel.ModuleCode, imageBtn.productDynamicBtnModel.DetailId);
|
||||
DataTable table = SqlHelper.ExecuteDataTable(sqlValue);
|
||||
if (table == null) return;
|
||||
foreach (DataRow item in table.Rows)
|
||||
{
|
||||
DataTable gridColumns = new DataTable();
|
||||
gridColumns = ReportImpl.GetReportDetailColumns(this.SysModel.ModuleCode, item["id"] + "");//获取报表明细列
|
||||
details.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
|
||||
}
|
||||
tabListEx.Model = this.SysModel;
|
||||
tabListEx.InitTabPages(details);
|
||||
XtraTabPage tabPage = tabListEx.TabControlObj.SelectedTabPage;
|
||||
GridDetailModel model = tabListEx.GetGridDetailModel(tabPage);
|
||||
if (model!=null&&!string.IsNullOrEmpty(model.UnionModule))
|
||||
{
|
||||
Object moduleObject = tabPage.Controls.Cast<Object>().FirstOrDefault();
|
||||
ModuleGridEx moduleGridEx = null;
|
||||
if (moduleObject is ModuleGridEx)
|
||||
{
|
||||
moduleGridEx = moduleObject as ModuleGridEx;
|
||||
TabControlEx tabDetailListEx = new TabControlEx();
|
||||
List<GridDetailModel> Uniodetails = new List<GridDetailModel>();//表格明细对象的集合
|
||||
DataTable Uniotable = new DataTable();// 根据传入的模块编号获得基础档案底部标签的数据
|
||||
Uniotable = BaseModuleImpl.GetBaseDetailPages(model.UnionModule);// 根据传入的模块编号获得基础档案底部标签的数据
|
||||
foreach (DataRow item in Uniotable.Rows)
|
||||
{
|
||||
DataTable gridColumns = new DataTable();
|
||||
gridColumns = ReportImpl.GetReportDetailColumns(model.UnionModule, item["id"] + "");//获取报表明细列
|
||||
Uniodetails.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
|
||||
}
|
||||
if (details.Count > 0)
|
||||
{
|
||||
tabDetailListEx.Model = moduleGridEx.Model;
|
||||
tabDetailListEx.TabControlObj.TabPages.Clear();
|
||||
tabDetailListEx.InitTabPages(Uniodetails);
|
||||
tabDetailListEx.Visible = true;
|
||||
this.tipsLablelTitle.Visible = false;
|
||||
if (tabPage.Tag is GridControlEx)
|
||||
{
|
||||
(tabPage.Tag as GridControlEx).GridView.FocusedRowObjectChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventHandler(OnGridViewFocusedRowObjectChanged);
|
||||
}
|
||||
tabDetilListWith.Add(tabListEx, tabDetailListEx);
|
||||
}
|
||||
}
|
||||
}
|
||||
tabMainListWith.Add(imageBtn, tabListEx);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取关联底部多标签数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2022-09-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetUnioDetailGridDataSource(DataRow focusedRow, XtraTabPage tabPage = null)
|
||||
{
|
||||
if (tabPage != null)
|
||||
{
|
||||
this.SetTabPageDataSource(focusedRow, tabPage);
|
||||
}
|
||||
else
|
||||
{
|
||||
DataRow rowItem = focusedRow;
|
||||
if (this.Model.RefreshDetail == "0")
|
||||
{
|
||||
XtraTabPage RefreshPage = this.tabDetails.TabControlObj.SelectedTabPage;
|
||||
if (rowItem != null && RefreshPage != null)
|
||||
{
|
||||
this.SetTabPageDataSource(focusedRow, RefreshPage);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetTabPageDataSource(focusedRow, RefreshPage, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (XtraTabPage page in this.tabDetails.TabControlObj.TabPages)
|
||||
{
|
||||
|
||||
if (rowItem != null && page != null)
|
||||
{
|
||||
this.SetTabPageDataSource(focusedRow, page);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetTabPageDataSource(focusedRow, page, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取底部多标签数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-12-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetDetailGridDataSource(DataRow focusedRow, XtraTabPage tabPage = null)
|
||||
{
|
||||
if (tabPage != null)
|
||||
{
|
||||
this.SetTabPageDataSource(focusedRow, tabPage);
|
||||
}
|
||||
else
|
||||
{
|
||||
DataRow rowItem = focusedRow;
|
||||
if (this.Model.RefreshDetail == "0")
|
||||
{
|
||||
XtraTabPage RefreshPage = this.tabObject.TabControlObj.SelectedTabPage;
|
||||
if (rowItem != null && RefreshPage != null)
|
||||
{
|
||||
this.SetTabPageDataSource(focusedRow, RefreshPage);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetTabPageDataSource(focusedRow, RefreshPage, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (XtraTabPage page in this.tabObject.TabControlObj.TabPages)
|
||||
{
|
||||
|
||||
if (rowItem != null && page != null)
|
||||
{
|
||||
this.SetTabPageDataSource(focusedRow, page);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetTabPageDataSource(focusedRow, page, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <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 SetTabPageDataSource(DataRow focusedRow, XtraTabPage tabPage, bool isNull = false)
|
||||
{
|
||||
if (isNull)
|
||||
{
|
||||
this.tabObject.SetGridDataSource(tabPage, new DataTable());
|
||||
return;
|
||||
}
|
||||
GridDetailModel model = this.tabObject.GetGridDetailModel(tabPage);
|
||||
DataRow rowItem = focusedRow;
|
||||
Object moduleObject = tabPage.Controls.Cast<Object>().FirstOrDefault();
|
||||
ModuleGridEx moduleGridEx = null;
|
||||
if (moduleObject is ModuleGridEx)
|
||||
{
|
||||
moduleGridEx = moduleObject as ModuleGridEx;
|
||||
}
|
||||
|
||||
if (rowItem != null && model != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(model.UnionModule) && (string.IsNullOrEmpty(model.UnionValue) && string.IsNullOrEmpty(model.UnionCond))) return;
|
||||
if (tabPage.Tag is FrmWebBrowser)
|
||||
{
|
||||
// 加载网页
|
||||
string url = model.DetailSql.StartsWith("http") ? model.DetailSql : SystemInfo.Instance.OAUrl + model.DetailSql;
|
||||
FrmWebBrowser webView = tabPage.Tag as FrmWebBrowser;
|
||||
webView.LoadUrl(ReplaceHelper.ReplaceRowParam(rowItem, ReplaceHelper.ReplaceUserInfo(url)));
|
||||
webView.Dock = DockStyle.Fill;
|
||||
webView.Tag = model;
|
||||
}
|
||||
else
|
||||
{
|
||||
string searchSql = this.GetSearchSql(model, rowItem);
|
||||
if (tabPage.Tag is GridControlEx)
|
||||
{
|
||||
(tabPage.Tag as GridControlEx).LastSearchSql = searchSql;
|
||||
}
|
||||
this.tabObject.SetGridDataSource(tabPage, MainImpl.GetDataTableResult(searchSql));
|
||||
if (tabPage.Tag is GridControlEx && (tabPage.Tag as GridControlEx).ParentControl != null)
|
||||
(tabPage.Tag as GridControlEx).ParentControl.SetAllControlValue(rowItem);
|
||||
//配置明细直接根据条件加载
|
||||
if (model.SystemModel != null && 1 == model.SystemModel.isFirstLoad)
|
||||
{
|
||||
(tabPage.Tag as GridControlEx).ParentControl.SearchGrid();
|
||||
tabPage.Text = model.DetailName + "(" + (tabPage.Tag as GridControlEx).ParentControl.GridRowCount + "条)";
|
||||
}
|
||||
}
|
||||
if (moduleGridEx != null) moduleGridEx.ParentButtonState(rowItem);
|
||||
}
|
||||
else if (rowItem != null && tabPage.Tag is TabMultipledetails)
|
||||
{
|
||||
TabMultipledetails tabMultipledetails = tabPage.Tag as TabMultipledetails;
|
||||
GridControlEx grdExMain = (tabMultipledetails.SplitMain.Panel1.Tag as GridControlEx);
|
||||
GridControlEx grdExAdditional = (tabMultipledetails.SplitMain.Panel2.Tag as GridControlEx);
|
||||
GridDetailModel MainModel = grdExMain.Tag as GridDetailModel;
|
||||
GridDetailModel AdditionalModel = grdExAdditional.Tag as GridDetailModel;
|
||||
string searchMainSql = this.GetSearchSql(MainModel, rowItem);
|
||||
string searchAddSql = this.GetSearchSql(AdditionalModel, rowItem);
|
||||
DataTable firstTable = MainImpl.GetDataTableResult(searchMainSql);
|
||||
grdExMain.LastSearchSql = searchMainSql;
|
||||
grdExAdditional.LastSearchSql = searchAddSql;
|
||||
grdExMain.SetGridViewDataSource(firstTable);
|
||||
tabPage.Text = MainModel.DetailName + "(" + firstTable.Rows.Count + "条)";
|
||||
grdExAdditional.SetGridViewDataSource(MainImpl.GetDataTableResult(searchAddSql));
|
||||
|
||||
}
|
||||
}
|
||||
/// <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 : "";
|
||||
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] + "");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(model.UnionCond))
|
||||
{
|
||||
string UnionCond = ReplaceHelper.ReplaceRowParam(rowItem, model.UnionCond);
|
||||
sqlValue += UnionCond;
|
||||
}
|
||||
return sqlValue;
|
||||
}
|
||||
#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,153 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{DB8D4194-816A-4EA3-86C2-90BA02134CF9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Lskj.ProductDynamic</RootNamespace>
|
||||
<AssemblyName>Lskj.ProductDynamic</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</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>
|
||||
<DocumentationFile>..\..\Debug\Lib\Lskj.ProductDynamic.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Sparkline.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Controls\ImageButton.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ImageButton.Designer.cs">
|
||||
<DependentUpon>ImageButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controls\ProductDynamicBtnModel.cs" />
|
||||
<Compile Include="Controls\SimpleButton.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Controls\SimpleButton.Designer.cs">
|
||||
<DependentUpon>SimpleButton.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Controls\ImageButton.resx">
|
||||
<DependentUpon>ImageButton.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Controls\SimpleButton.resx">
|
||||
<DependentUpon>SimpleButton.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>
|
||||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<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\error.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\right.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\search.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\right2.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Lskj.ProductDynamic")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Lskj.ProductDynamic")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("db8d4194-816a-4ea3-86c2-90ba02134cf9")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,103 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.ProductDynamic.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.ProductDynamic.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 error {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("error", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap right {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("right", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap right2 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("right2", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap search {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("search", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="right" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="error" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="search" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="right2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\right2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -0,0 +1,29 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace Lskj.ProductDynamic.Properties
|
||||
{
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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: 573 B |
Binary file not shown.
|
After Width: | Height: | Size: 697 B |
Binary file not shown.
|
After Width: | Height: | Size: 386 B |
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="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>
|
||||
<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>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user