SVN r1011

SVN-Revision: r1011
This commit is contained in:
wyf
2025-09-28 08:45:56 +00:00
parent b025f5f68e
commit d4f95d64a9
15 changed files with 3694 additions and 0 deletions
@@ -0,0 +1,89 @@
using Lskj.Business;
using Lskj.Business.Impl;
using Lskj.Core;
using Lskj.Model;
using Lskj.Util;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Windows.Forms;
namespace Lskj.PubBomAlter
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicBomAlterModel bomAlterModel = new DynamicBomAlterModel(obj);
FrmMain main = new FrmMain();
main.ModelObj = obj;
main.BomAlterModel = bomAlterModel;
this.SubForm = main;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.PubBomAlter.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
/// <summary>
/// 入口模型
/// </summary>
public class DynamicBomAlterModel : DynamicModel
{
/// <summary>
/// 保存的语句
/// </summary>
public string SaveSql;
/// <summary>
/// 验证的语句
/// </summary>
public string VerifySql;
/// <summary>
/// 反写确认按钮
/// </summary>
public string AllowFxBtn;
public override string[] OtherParams()
{
return this.Params;
}
/// <summary>
/// 初始化默认参数(1.标题、2、用户ID、3.用户名、4.权限、5.模块编号、6.菜单ID)
/// </summary>
/// <param name="args">The arguments.</param>
public DynamicBomAlterModel(string[] args)
: base(args)
{
// 右键菜单打开的模块没有moduleId,部分特殊模块没有moduleId比如添加界面.
if (!string.IsNullOrEmpty(args[5]))
{
base.ModuleId = Convert.ToInt32(args[5]);
}
if (args.Length > 6 && !string.IsNullOrWhiteSpace(args[6]))
{
base.ModuleCode = args[6];
}
if (args.Length > 7 && !string.IsNullOrWhiteSpace(args[7]))
{
SaveSql = args[7];
}
if (args.Length > 8 && !string.IsNullOrWhiteSpace(args[8]))
{
AllowFxBtn = args[8] + "";
}
+399
View File
@@ -0,0 +1,399 @@
namespace Lskj.PubBomAlter
{
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.scrollableControl = new DevExpress.XtraEditors.XtraScrollableControl();
this.splitRightContainer = new DevExpress.XtraEditors.SplitContainerControl();
this.splitControlContainer = new DevExpress.XtraEditors.SplitContainerControl();
this.topPanel = new DevExpress.XtraEditors.PanelControl();
this.treeGridControlEx = new Lskj.Control.TreeGridControlEx();
this.pl_buttom = new DevExpress.XtraEditors.PanelControl();
this.btnApply = new DevExpress.XtraEditors.SimpleButton();
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
this.pl_top = new DevExpress.XtraEditors.PanelControl();
this.pl_top_search = new DevExpress.XtraEditors.PanelControl();
this.pl_top_fix_search = new DevExpress.XtraEditors.PanelControl();
this.cbField = new System.Windows.Forms.ComboBox();
this.btnFixSearch = new DevExpress.XtraEditors.SimpleButton();
this.txtFixKey = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.pl_Bottom = new DevExpress.XtraEditors.PanelControl();
this.gcMainControlEx = new Lskj.Control.GridControlEx();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.btnPmsSave = new DevExpress.XtraEditors.SimpleButton();
this.rightDetailPanel = new System.Windows.Forms.Panel();
this.gcDetailControlEx = new Lskj.Control.GridControlEx();
this.pl_buttomflow = new System.Windows.Forms.FlowLayoutPanel();
this.btnFxSave = new DevExpress.XtraEditors.SimpleButton();
((System.ComponentModel.ISupportInitialize)(this.splitRightContainer)).BeginInit();
this.splitRightContainer.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitControlContainer)).BeginInit();
this.splitControlContainer.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.topPanel)).BeginInit();
this.topPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).BeginInit();
this.pl_buttom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_top)).BeginInit();
this.pl_top.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_top_search)).BeginInit();
this.pl_top_search.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).BeginInit();
this.pl_top_fix_search.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Bottom)).BeginInit();
this.pl_Bottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
this.rightDetailPanel.SuspendLayout();
this.pl_buttomflow.SuspendLayout();
this.SuspendLayout();
//
// scrollableControl
//
this.scrollableControl.Appearance.BackColor = System.Drawing.Color.White;
this.scrollableControl.Appearance.Options.UseBackColor = true;
this.scrollableControl.Dock = System.Windows.Forms.DockStyle.Top;
this.scrollableControl.Location = new System.Drawing.Point(0, 0);
this.scrollableControl.Name = "scrollableControl";
this.scrollableControl.Size = new System.Drawing.Size(1134, 78);
this.scrollableControl.TabIndex = 14;
//
// splitRightContainer
//
this.splitRightContainer.Appearance.BackColor = System.Drawing.Color.Transparent;
this.splitRightContainer.Appearance.Options.UseBackColor = true;
this.splitRightContainer.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.splitRightContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitRightContainer.Location = new System.Drawing.Point(0, 78);
this.splitRightContainer.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.splitRightContainer.Name = "splitRightContainer";
this.splitRightContainer.Panel1.Controls.Add(this.splitControlContainer);
this.splitRightContainer.Panel1.Text = "Panel1";
this.splitRightContainer.Panel2.Controls.Add(this.rightDetailPanel);
this.splitRightContainer.Panel2.Text = "Panel2";
this.splitRightContainer.Size = new System.Drawing.Size(1134, 566);
this.splitRightContainer.SplitterPosition = 718;
this.splitRightContainer.TabIndex = 26;
this.splitRightContainer.Text = "splitContainerControl1";
//
// splitControlContainer
//
this.splitControlContainer.Appearance.BackColor = System.Drawing.Color.Transparent;
this.splitControlContainer.Appearance.Options.UseBackColor = true;
this.splitControlContainer.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
this.splitControlContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitControlContainer.Location = new System.Drawing.Point(0, 0);
this.splitControlContainer.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.splitControlContainer.Name = "splitControlContainer";
this.splitControlContainer.Panel1.Controls.Add(this.topPanel);
this.splitControlContainer.Panel1.Text = "Panel1";
this.splitControlContainer.Panel2.Controls.Add(this.pl_Bottom);
this.splitControlContainer.Panel2.Text = "Panel2";
this.splitControlContainer.Size = new System.Drawing.Size(718, 566);
this.splitControlContainer.SplitterPosition = 380;
this.splitControlContainer.TabIndex = 3;
this.splitControlContainer.Text = "splitContainerControl1";
//
// topPanel
//
this.topPanel.Appearance.BackColor = System.Drawing.Color.Transparent;
this.topPanel.Appearance.Options.UseBackColor = true;
this.topPanel.Controls.Add(this.treeGridControlEx);
this.topPanel.Controls.Add(this.pl_buttom);
this.topPanel.Controls.Add(this.pl_top);
this.topPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.topPanel.Location = new System.Drawing.Point(0, 0);
this.topPanel.Margin = new System.Windows.Forms.Padding(4);
this.topPanel.Name = "topPanel";
this.topPanel.Size = new System.Drawing.Size(380, 566);
this.topPanel.TabIndex = 21;
//
// treeGridControlEx
//
this.treeGridControlEx.AdapterObj = null;
this.treeGridControlEx.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeGridControlEx.Location = new System.Drawing.Point(2, 29);
this.treeGridControlEx.Margin = new System.Windows.Forms.Padding(4);
this.treeGridControlEx.Name = "treeGridControlEx";
this.treeGridControlEx.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.treeGridControlEx.Size = new System.Drawing.Size(376, 500);
this.treeGridControlEx.SysModel = null;
this.treeGridControlEx.TabIndex = 29;
//
// pl_buttom
//
this.pl_buttom.Appearance.BackColor = System.Drawing.Color.Transparent;
this.pl_buttom.Appearance.Options.UseBackColor = true;
this.pl_buttom.Controls.Add(this.pl_buttomflow);
this.pl_buttom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pl_buttom.Location = new System.Drawing.Point(2, 529);
this.pl_buttom.Margin = new System.Windows.Forms.Padding(2);
this.pl_buttom.Name = "pl_buttom";
this.pl_buttom.Size = new System.Drawing.Size(376, 35);
this.pl_buttom.TabIndex = 28;
//
// btnApply
//
this.btnApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnApply.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnApply.Appearance.Options.UseFont = true;
this.btnApply.Location = new System.Drawing.Point(211, 3);
this.btnApply.Name = "btnApply";
this.btnApply.Size = new System.Drawing.Size(80, 26);
this.btnApply.TabIndex = 41;
this.btnApply.Text = "提交审批(&A)";
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnSave.Appearance.Options.UseFont = true;
this.btnSave.Location = new System.Drawing.Point(297, 3);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(72, 26);
this.btnSave.TabIndex = 40;
this.btnSave.Text = "保存(&S)";
//
// pl_top
//
this.pl_top.Appearance.BackColor = System.Drawing.Color.Transparent;
this.pl_top.Appearance.Options.UseBackColor = true;
this.pl_top.Controls.Add(this.pl_top_search);
this.pl_top.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_top.Location = new System.Drawing.Point(2, 2);
this.pl_top.Margin = new System.Windows.Forms.Padding(2);
this.pl_top.Name = "pl_top";
this.pl_top.Size = new System.Drawing.Size(376, 27);
this.pl_top.TabIndex = 26;
//
// pl_top_search
//
this.pl_top_search.Appearance.BackColor = System.Drawing.Color.Transparent;
this.pl_top_search.Appearance.Options.UseBackColor = true;
this.pl_top_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_top_search.Controls.Add(this.pl_top_fix_search);
this.pl_top_search.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_top_search.Location = new System.Drawing.Point(2, 2);
this.pl_top_search.Margin = new System.Windows.Forms.Padding(2);
this.pl_top_search.Name = "pl_top_search";
this.pl_top_search.Size = new System.Drawing.Size(372, 23);
this.pl_top_search.TabIndex = 8;
//
// pl_top_fix_search
//
this.pl_top_fix_search.Appearance.BackColor = System.Drawing.Color.Transparent;
this.pl_top_fix_search.Appearance.Options.UseBackColor = true;
this.pl_top_fix_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_top_fix_search.Controls.Add(this.cbField);
this.pl_top_fix_search.Controls.Add(this.btnFixSearch);
this.pl_top_fix_search.Controls.Add(this.txtFixKey);
this.pl_top_fix_search.Controls.Add(this.label1);
this.pl_top_fix_search.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_top_fix_search.Location = new System.Drawing.Point(0, 0);
this.pl_top_fix_search.Margin = new System.Windows.Forms.Padding(2);
this.pl_top_fix_search.Name = "pl_top_fix_search";
this.pl_top_fix_search.Size = new System.Drawing.Size(372, 23);
this.pl_top_fix_search.TabIndex = 9;
//
// cbField
//
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbField.FormattingEnabled = true;
this.cbField.Location = new System.Drawing.Point(28, 5);
this.cbField.Margin = new System.Windows.Forms.Padding(2);
this.cbField.Name = "cbField";
this.cbField.Size = new System.Drawing.Size(81, 22);
this.cbField.TabIndex = 1;
this.cbField.Tag = "";
//
// btnFixSearch
//
this.btnFixSearch.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnFixSearch.Appearance.Options.UseFont = true;
this.btnFixSearch.Location = new System.Drawing.Point(230, 3);
this.btnFixSearch.Margin = new System.Windows.Forms.Padding(2);
this.btnFixSearch.Name = "btnFixSearch";
this.btnFixSearch.Size = new System.Drawing.Size(47, 19);
this.btnFixSearch.TabIndex = 33;
this.btnFixSearch.Text = "查询(&Q)";
//
// txtFixKey
//
this.txtFixKey.Location = new System.Drawing.Point(112, 5);
this.txtFixKey.Margin = new System.Windows.Forms.Padding(2);
this.txtFixKey.Name = "txtFixKey";
this.txtFixKey.Size = new System.Drawing.Size(116, 22);
this.txtFixKey.TabIndex = 32;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(5, 8);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(31, 14);
this.label1.TabIndex = 0;
this.label1.Text = "查询";
//
// pl_Bottom
//
this.pl_Bottom.Controls.Add(this.gcMainControlEx);
this.pl_Bottom.Controls.Add(this.panelControl1);
this.pl_Bottom.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_Bottom.Location = new System.Drawing.Point(0, 0);
this.pl_Bottom.Name = "pl_Bottom";
this.pl_Bottom.Size = new System.Drawing.Size(333, 566);
this.pl_Bottom.TabIndex = 48;
//
// gcMainControlEx
//
this.gcMainControlEx.AdapterObj = null;
this.gcMainControlEx.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcMainControlEx.Location = new System.Drawing.Point(2, 2);
this.gcMainControlEx.Margin = new System.Windows.Forms.Padding(5);
this.gcMainControlEx.Name = "gcMainControlEx";
this.gcMainControlEx.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcMainControlEx.Size = new System.Drawing.Size(329, 527);
this.gcMainControlEx.SysModel = null;
this.gcMainControlEx.TabIndex = 51;
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.Controls.Add(this.btnPmsSave);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelControl1.Location = new System.Drawing.Point(2, 529);
this.panelControl1.Margin = new System.Windows.Forms.Padding(2);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Size = new System.Drawing.Size(329, 35);
this.panelControl1.TabIndex = 50;
//
// btnPmsSave
//
this.btnPmsSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnPmsSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnPmsSave.Appearance.Options.UseFont = true;
this.btnPmsSave.Location = new System.Drawing.Point(253, 5);
this.btnPmsSave.Name = "btnPmsSave";
this.btnPmsSave.Size = new System.Drawing.Size(72, 26);
this.btnPmsSave.TabIndex = 40;
this.btnPmsSave.Text = "保存(&S)";
//
// rightDetailPanel
//
this.rightDetailPanel.Controls.Add(this.gcDetailControlEx);
this.rightDetailPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.rightDetailPanel.Location = new System.Drawing.Point(0, 0);
this.rightDetailPanel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rightDetailPanel.Name = "rightDetailPanel";
this.rightDetailPanel.Size = new System.Drawing.Size(411, 566);
this.rightDetailPanel.TabIndex = 19;
//
// gcDetailControlEx
//
this.gcDetailControlEx.AdapterObj = null;
this.gcDetailControlEx.Dock = System.Windows.Forms.DockStyle.Fill;
this.gcDetailControlEx.Location = new System.Drawing.Point(0, 0);
this.gcDetailControlEx.Margin = new System.Windows.Forms.Padding(5);
this.gcDetailControlEx.Name = "gcDetailControlEx";
this.gcDetailControlEx.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gcDetailControlEx.Size = new System.Drawing.Size(411, 566);
this.gcDetailControlEx.SysModel = null;
this.gcDetailControlEx.TabIndex = 52;
//
// pl_buttomflow
//
this.pl_buttomflow.Controls.Add(this.btnSave);
this.pl_buttomflow.Controls.Add(this.btnApply);
this.pl_buttomflow.Controls.Add(this.btnFxSave);
this.pl_buttomflow.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_buttomflow.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
this.pl_buttomflow.Location = new System.Drawing.Point(2, 2);
this.pl_buttomflow.Name = "pl_buttomflow";
this.pl_buttomflow.Size = new System.Drawing.Size(372, 31);
this.pl_buttomflow.TabIndex = 1;
//
// btnFxSave
//
this.btnFxSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnFxSave.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnFxSave.Appearance.Options.UseFont = true;
this.btnFxSave.Location = new System.Drawing.Point(125, 3);
this.btnFxSave.Name = "btnFxSave";
this.btnFxSave.Size = new System.Drawing.Size(80, 26);
this.btnFxSave.TabIndex = 42;
this.btnFxSave.Text = "批量确认";
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1134, 644);
this.Controls.Add(this.splitRightContainer);
this.Controls.Add(this.scrollableControl);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "FrmMain";
this.Text = "FrmMain";
((System.ComponentModel.ISupportInitialize)(this.splitRightContainer)).EndInit();
this.splitRightContainer.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitControlContainer)).EndInit();
this.splitControlContainer.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.topPanel)).EndInit();
this.topPanel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).EndInit();
this.pl_buttom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_top)).EndInit();
this.pl_top.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_top_search)).EndInit();
this.pl_top_search.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).EndInit();
this.pl_top_fix_search.ResumeLayout(false);
this.pl_top_fix_search.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_Bottom)).EndInit();
this.pl_Bottom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
this.rightDetailPanel.ResumeLayout(false);
this.pl_buttomflow.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.XtraScrollableControl scrollableControl;
private DevExpress.XtraEditors.SplitContainerControl splitRightContainer;
private DevExpress.XtraEditors.SplitContainerControl splitControlContainer;
private DevExpress.XtraEditors.PanelControl topPanel;
private DevExpress.XtraEditors.PanelControl pl_Bottom;
private System.Windows.Forms.Panel rightDetailPanel;
private DevExpress.XtraEditors.PanelControl
File diff suppressed because it is too large Load Diff
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,131 @@
<?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>{D6C0C7F7-23CE-4A7F-8E13-89A7948CF4A4}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Lskj.PubBomAlter</RootNamespace>
<AssemblyName>Lskj.PubBomAlter</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Debug\Lib\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<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="DevExpress.XtraTreeList.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DllBaseClass.cs" />
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="Model\ComboBoxModel.cs" />
<Compile Include="Model\ProjectModel.cs" />
<Compile Include="Model\SysSetModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
<Project>{7EAFCCC2-A18F-49E9-85C6-A984966CFD01}</Project>
<Name>Lskj.Business</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
<Project>{447CDC40-659F-4CCA-9ED6-8E818B4CF8BF}</Project>
<Name>Lskj.Control</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
<Project>{2a1be6ac-1077-491b-a754-c5822fe8121e}</Project>
<Name>Lskj.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Data\Lskj.Data.csproj">
<Project>{308B9B18-9BE2-495C-9C64-EED81D567813}</Project>
<Name>Lskj.Data</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Interface.Api\Lskj.Interface.Api.csproj">
<Project>{24E9A18A-BAF8-4052-809E-582B4FC6A8C4}</Project>
<Name>Lskj.Interface.Api</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\update.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,270 @@
using Lskj.Control.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace Lskj.PubBomAlter.Model
{
/// <summary>
/// PubProductSysMge实体类
/// </summary>
public class SysSetModel : ControlModel
{
/// <summary>
/// 数据源
/// </summary>
public DataRow SourceRow;
public int Id { get; set; }
public int GroupId { get; set; }
/// <summary>
/// 方案名称
/// </summary>
public string GroupName { get; set; }
/// <summary>
/// 序号
/// </summary>
public int OrderId { get; set; }
/// <summary>
/// 反写规格序号
/// </summary>
public int SpecSort { get; set; }
/// <summary>
/// 反写型号序号
/// </summary>
public int ModelSort { get; set; }
/// <summary>
/// 反写综合属性序号
/// </summary>
public int ProDeSort { get; set; }
/// <summary>
/// 反写材质序号
/// </summary>
public int GradeSort { get; set; }
/// <summary>
/// 节点
/// </summary>
public string SpeciesId { get; set; }
/// <summary>
/// 节点名
/// </summary>
public string SpeciesName { get; set; }
/// <summary>
/// 参数名
/// </summary>
public string SysName { get; set; }
public int SysCount { get; set; }
public int SysInt { get; set; }
/// <summary>
/// 备注
/// </summary>
public string SysInfo { get; set; }
//禁用标识
public int Ban { get; set; }
/// <summary>
/// 类型 1仅限选择,2仅限输入
/// </summary>
public string Item { get; set; }
public string XZ1 { get; set; }
/// <summary>
/// 反写字段
/// </summary>
public string DbName { get; set; }
public int? DbNameCount { get; set; }
/// <summary>
/// 是否反写规格
/// </summary>
public int? SpecDbName { get; set; }
/// <summary>
/// 是否反写型号
/// </summary>
public int? ModelDbName { get; set; }
/// <summary>
/// 是否反写综合属性
/// </summary>
public int? ZhSxdbName { get; set; }
/// <summary>
/// 是否反写材质
/// </summary>
public int? CzdbName { get; set; }
/// <summary>
/// 反写规格型号类型
/// </summary>
public string FxType { get; set; }
/// <summary>
/// 反写字段类型
/// </summary>
public string FxTypeDB { get; set; }
/// <summary>
/// 数据源来源类型
/// </summary>
public string DataSourceType { get; set; }
/// <summary>
/// 数据源来源sql
/// </summary>
public string DataSourceSql { get; set; }
/// <summary>
/// 生成BOM标识
/// </summary>
public int? BomTig { get; set; }
/// <summary>
/// 连接符
/// </summary>
public string ConnectorStr { get; set; }
/// <summary>
/// 默认编码
/// </summary>
public string DefaultID { get; set; }
/// <summary>
/// 默认名称
/// </summary>
public string DefaultName { get; set; }
/// <summary>
/// 必填标识
/// </summary>
public int? MustTig { get; set; }
/// <summary>
/// 关联字段
/// </summary>
public string UnionFields { get; set; }
/// <summary>
/// 关联值
/// </summary>
/// <value>The union values.</value>
public string UnionValues { get; set; }
/// <summary>
/// 禁编
/// </summary>
/// <value>The union values.</value>
public bool ProhibitEdited { get; set; }
/// <summary>
/// 排序字段
/// </summary>
/// <value>The union values.</value>
public string OrderField { get; set; }
/// <summary>
/// 日期格式
/// </summary>
public string DataFormat { get; set; }
/// <summary>
/// 必填条件
/// </summary>
public string RequiredCond { get; set; }
/// <summary>
/// 连接符(后方)
/// </summary>
public string EndConnectorStr { get; set; }
/// <summary>
/// 反写类型(反写规格)
/// </summary>
public string FxTypeGg { get; set; }
/// <summary>
/// 反写类型(反写型号)
/// </summary>
public string FxTypeXh { get; set; }
/// <summary>
/// 反写类型(反写综合属性)
/// </summary>
public string FxTypeZhsx { get; set; }
/// <summary>
/// 反写类型(反写材质)
/// </summary>
public string FxTypeCz { get; set; }
/// <summary>
/// 前连接符 (反写规格)
/// </summary>
public string ConnectorStrGg { get; set; }
// <summary>
/// 后连接符 (反写规格)
/// </summary>
public string EndConnectorStrGg { get; set; }
/// <summary>
/// 前连接符 (反写型号)
/// </summary>
public string ConnectorStrXh { get; set; }
// <summary>
/// 后连接符 (反写型号)
/// </summary>
public string EndConnectorStrXh { get; set; }
/// <summary>
/// 前连接符 (反写综合属性)
/// </summary>
public string ConnectorStrZhsx { get; set; }
// <summary>
/// 后连接符 (反写综合属性)
/// </summary>
public string EndConnectorStrZhsx { get; set; }
/// <summary>
/// 前连接符 (反写材质)
/// </summary>
public string ConnectorStrCz { get; set; }
// <summary>
/// 后连接符 (反写材质)
/// </summary>
public string EndConnectorStrCz { get; set; }
public SysSetModel(DataRow rowItem)
{
this.SourceRow = rowItem;
this.Id = rowItem.Table.Columns.Contains("id") && int.TryParse(rowItem["id"] + "", out int id) ? id : 0;
this.GroupId = rowItem.Table.Columns.Contains("Groupid") && int.TryParse(rowItem["Groupid"] + "", out int groupId) ? groupId : 0;
this.GroupName = rowItem.Table.Columns.Contains("GroupName") ? rowItem["GroupName"] + "" : "";
this.OrderId = rowItem.Table.Columns.Contains("orderid") && int.TryParse(rowItem["orderid"] + "", out int orderid) ? orderid : 0;
this.SpecSort = rowItem.Table.Columns.Contains("SpecSort") && int.TryParse(rowItem["SpecSort"] + "", out int specSort) ? specSort : 0;
this.ModelSort = rowItem.Table.Columns.Contains("ModelSort") && int.TryParse(rowItem["ModelSort"] + "", out int modelSort) ? modelSort : 0;
this.ProDeSort = rowItem.Table.Columns.Contains("ProDeSort") && int.TryParse(rowItem["ProDeSort"] + "", out int proDeSort) ? proDeSort : 0;
this.GradeSort = rowItem.Table.Columns.Contains("GradeSort") && int.TryParse(rowItem["GradeSort"] + "", out int gradeSort) ? gradeSort : 0;
this.SpeciesId = rowItem.Table.Columns.Contains("speciesid") ? rowItem["speciesid"] + "" : "";
this.SpeciesName = rowItem.Table.Columns.Contains("speciesname") ? rowItem["speciesname"] + "" : "";
this.SysName = rowItem.Table.Columns.Contains("sysname") ? rowItem["sysname"] + "" : "";
this.SysCount = rowItem.Table.Columns.Contains("syscount") && int.TryParse(rowItem["syscount"] + "", out int syscount) ? syscount : 0;
this.SysInt = rowItem.Table.Columns.Contains("sysint") && int.TryParse(rowItem["sysint"] + "", out int sysint) ? sysint : 0;
this.SysInfo = rowItem.Table.Columns.Contains("sysinfo") ? rowItem["sysinfo"] + "" : "";
this.Ban = rowItem.Table.Columns.Contains("ban") && int.TryParse(rowItem["ban"] + "", out int ban) ? ban : 0;
this.Item = rowItem.Table.Columns.Contains("Item") ? rowItem["Item"] + "" : "";
this.XZ1 = rowItem.Table.Columns.Contains("XZ1") ? rowItem["XZ1"] + "" : "";
this.DbName = rowItem.Table.Columns.Contains("dbname") ? rowItem["dbname"] + "" : "";
this.DbNameCount = rowItem.Table.Columns.Contains("dbnameCount") ? rowItem["dbnameCount"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["dbnameCount"] + "") : 0;
this.SpecDbName = rowItem.Table.Columns.Contains("specdbname") ? rowItem["specdbname"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["specdbname"] + "") : 0;
this.ModelDbName = rowItem.Table.Columns.Contains("modeldbname") ? rowItem["modeldbname"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["modeldbname"] + "") : 0;
this.ZhSxdbName = rowItem.Table.Columns.Contains("ZhSxdbName") ? rowItem["ZhSxdbName"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["ZhSxdbName"] + "") : 0;
this.CzdbName = rowItem.Table.Columns.Contains("CzdbName") ? rowItem["CzdbName"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["CzdbName"] + "") : 0;
this.FxType = rowItem.Table.Columns.Contains("FxType") ? rowItem["FxType"] + "" : "";
this.FxTypeDB = rowItem.Table.Columns.Contains("FxTypeDB") ? rowItem["FxTypeDB"] + "" : "";
this.DataSourceType = rowItem.Table.Columns.Contains("DataSourceType") ? rowItem["DataSourceType"] + "" : "";
this.DataSourceSql = rowItem.Table.Columns.Contains("DataSourceSql") ? rowItem["DataSourceSql"] + "" : "";
this.BomTig = rowItem.Table.Columns.Contains("BomTig") ? rowItem["BomTig"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["BomTig"] + "") : 0;
this.ConnectorStr = rowItem.Table.Columns.Contains("ConnectorStr") ? rowItem["ConnectorStr"] + "" : "";
this.EndConnectorStr = rowItem.Table.Columns.Contains("EndConnectorStr") ? rowItem["EndConnectorStr"] + "" : "";
this.DefaultID = rowItem.Table.Columns.Contains("defaultID") ? rowItem["defaultID"] + "" : "";
this.DefaultName = rowItem.Table.Columns.Contains("defaultName") ? rowItem["defaultName"] + "" : "";
this.MustTig = rowItem.Table.Columns.Contains("musttig") ? rowItem["musttig"] == DBNull.Value ? (int?)null : Convert.ToInt32(rowItem["musttig"] + "") : 0;
this.UnionFields = rowItem.Table.Columns.Contains("RelevanceField") ? rowItem["RelevanceField"] + "" : "";
this.UnionValues = rowItem.Table.Columns.Contains("RelevanceValue") ? rowItem["RelevanceValue"] + "" : "";
this.ProhibitEdited = rowItem.Table.Columns.Contains("ProhibitEdited") ? "1".Equals(rowItem["ProhibitEdited"] + "") : false;
this.LookUpFieldsWidth = rowItem.Table.Columns.Contains("LookUpFieldsWidth") ? rowItem["LookUpFieldsWidth"] + "" : "";
this.LookUpWidth = 0;
this.OrderField = rowItem.Table.Columns.Contains("lsidx_id") ? rowItem["lsidx_id"] + "" : "";
this.DataFormat = rowItem.Table.Columns.Contains("DataFormat") ? rowItem["DataFormat"] + "" : "";
this.RequiredCond = rowItem.Table.Columns.Contains("RequiredCond") ? rowItem["RequiredCond"] + "" : "";
this.DisableCond = rowItem.Table.Columns.Contains("DisableCond") ? rowItem["DisableCond"] + "" : "";
this.FxTypeGg = rowItem.Table.Columns.Contains("FxTypeGg") && !string.IsNullOrEmpty(rowItem["FxTypeGg"] + "") ? rowItem["FxTypeGg"] + "" : this.FxType;
this.FxTypeXh = rowItem.Table.Columns.Contains("FxTypeXh") && !string.IsNullOrEmpty(rowItem["FxTypeXh"] + "") ? rowItem["FxTypeXh"] + "" : this.FxType;
this.FxTypeZhsx = rowItem.Table.Columns.Contains("FxTypeZhsx") && !string.IsNullOrEmpty(rowItem["FxTypeZhsx"] + "") ? rowItem["FxTypeZhsx"] + "" : this.FxType;
this.FxTypeCz = rowItem.Table.Columns.Contains("FxTypeCz") && !string.IsNullOrEmpty(rowItem["FxTypeCz"] + "") ? rowItem["FxTypeCz"] + "" : this.FxType;
this.ConnectorStrGg = rowItem.Table.Columns.Contains("ConnectorStrGg") && !string.IsNullOrEmpty(rowItem["ConnectorStrGg"] + "") ? rowItem["ConnectorStrGg"] + "" : "";
this.EndConnectorStrGg = rowItem.Table.Columns.Contains("EndConnectorStrGg") && !string.IsNullOrEmpty(rowItem["EndConnectorStrGg"] + "") ? rowItem["EndConnectorStrGg"] + "" : "";
this.ConnectorStrXh = rowItem.Table.Columns.Contains("ConnectorStrXh") && !string.IsNullOrEmpty(rowItem["ConnectorStrXh"] +
@@ -0,0 +1,9 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubBomAlter")]
[assembly: AssemblyD
@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubBomAlter.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.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.PubBomAlter.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
@@ -0,0 +1,124 @@
<?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="update" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\update.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
@@ -0,0 +1 @@
//------------------------------------------------------------------------
@@ -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: 358 B

+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>