基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
namespace Lskj.Workflow.Control
{
partial class StepItem1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btn_item_title = new System.Windows.Forms.Label();
this.PlDel = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// btn_item_title
//
this.btn_item_title.Cursor = System.Windows.Forms.Cursors.Hand;
this.btn_item_title.Font = new System.Drawing.Font("宋体", 10F);
this.btn_item_title.Location = new System.Drawing.Point(5, 11);
this.btn_item_title.Name = "btn_item_title";
this.btn_item_title.Size = new System.Drawing.Size(134, 29);
this.btn_item_title.TabIndex = 4;
this.btn_item_title.Text = "采购请购单审核";
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btn_item_title.Click += new System.EventHandler(this.OnStepItemClick);
//
// PlDel
//
this.PlDel.Anchor = System.Windows.Forms.AnchorStyles.None;
this.PlDel.BackColor = System.Drawing.Color.Transparent;
this.PlDel.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_cha_2x;
this.PlDel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.PlDel.Cursor = System.Windows.Forms.Cursors.Hand;
this.PlDel.Location = new System.Drawing.Point(139, 15);
this.PlDel.Name = "PlDel";
this.PlDel.Size = new System.Drawing.Size(20, 20);
this.PlDel.TabIndex = 5;
//
// StepItem1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.PlDel);
this.Controls.Add(this.btn_item_title);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.Name = "StepItem1";
this.Size = new System.Drawing.Size(168, 50);
this.Click += new System.EventHandler(this.OnStepItemClick);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label btn_item_title;
private System.Windows.Forms.Panel PlDel;
}
}
@@ -0,0 +1,159 @@
/******************************
* 说明:流转步骤控件
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.Workflow.Control
{
public partial class StepItem1 : UserControl
{
/// <summary>
/// 默认选中
/// </summary>
private static StepItem1 mDdefaultItem;
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return btn_item_title; } }
/// <summary>
/// 删除对象
/// </summary>
/// <value>The delete pabel object.</value>
public Panel DeletePabelObj { get { return PlDel; } }
private ButtonHoverEventHandler hoverEvent;
public delegate void ButtonHoverEventHandler(StepItem1 before, StepItem1 after);
public StepItem1()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:设置默认选中的Button</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="item">The item.</param>
public void SetDefaultSelectItem(StepItem1 item)
{
mDdefaultItem = item;
mDdefaultItem.SetItemState(MenuButtonState.selectState);
}
/// <summary>
/// <para>说明:设置菜单状态状态</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="state">The state.</param>
public void SetItemState(MenuButtonState state)
{
switch (state)
{
case MenuButtonState.defaultState:
this.BackColor = Color.White;
btn_item_title.ForeColor = Color.Black;
break;
case MenuButtonState.selectState:
this.BackColor = ColorTranslator.FromHtml("#3E92F8");
btn_item_title.ForeColor = Color.White;
break;
}
}
/// <summary>
/// <para>说明:注册鼠标划过事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="hoverEvent">The hover event.</param>
/// <param name="eventType">Type of the event.</param>
public void SetHoverEvent(ButtonHoverEventHandler hoverEvent)
{
this.hoverEvent = hoverEvent;
this.MouseClick += new MouseEventHandler(this.OnStepItemClick);
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnStepItemClick(object sender, EventArgs e)
{
try
{
StepItem1 item = null;
if (sender is StepItem1)
item = sender as StepItem1;
if (sender is Label)
item = (sender as Label).Parent as StepItem1;
if (item != null)
{
if (mDdefaultItem != null)
{
mDdefaultItem.SetItemState(MenuButtonState.defaultState);
}
item.SetItemState(MenuButtonState.selectState);
}
if (mDdefaultItem != item)
{
if (hoverEvent != null)
{
this.hoverEvent(mDdefaultItem, item);
}
mDdefaultItem = item;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 菜单状态
/// </summary>
public enum MenuButtonState
{
defaultState,
selectState
}
}
}
@@ -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>
+78
View File
@@ -0,0 +1,78 @@
namespace Lskj.Workflow.Control
{
partial class StepItem2
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btn_item_title = new System.Windows.Forms.Label();
this.PlDel = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// btn_item_title
//
this.btn_item_title.Cursor = System.Windows.Forms.Cursors.Hand;
this.btn_item_title.Font = new System.Drawing.Font("宋体", 10F);
this.btn_item_title.Location = new System.Drawing.Point(5, 11);
this.btn_item_title.Name = "btn_item_title";
this.btn_item_title.Size = new System.Drawing.Size(134, 29);
this.btn_item_title.TabIndex = 4;
this.btn_item_title.Text = "采购请购单审核";
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btn_item_title.Click += new System.EventHandler(this.OnStepItemClick);
//
// PlDel
//
this.PlDel.Anchor = System.Windows.Forms.AnchorStyles.None;
this.PlDel.BackColor = System.Drawing.Color.Transparent;
this.PlDel.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_cha_2x;
this.PlDel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.PlDel.Cursor = System.Windows.Forms.Cursors.Hand;
this.PlDel.Location = new System.Drawing.Point(139, 15);
this.PlDel.Name = "PlDel";
this.PlDel.Size = new System.Drawing.Size(20, 20);
this.PlDel.TabIndex = 5;
//
// StepItem
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.PlDel);
this.Controls.Add(this.btn_item_title);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.Name = "StepItem";
this.Size = new System.Drawing.Size(168, 50);
this.Click += new System.EventHandler(this.OnStepItemClick);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label btn_item_title;
private System.Windows.Forms.Panel PlDel;
}
}
@@ -0,0 +1,160 @@
/******************************
* 说明:流转步骤控件
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.Workflow.Control
{
public partial class StepItem2 : UserControl
{
/// <summary>
/// 默认选中
/// </summary>
private static StepItem2 mDdefaultItem;
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return btn_item_title; } }
/// <summary>
/// 删除对象
/// </summary>
/// <value>The delete pabel object.</value>
public Panel DeletePabelObj { get { return PlDel; } }
private ButtonHoverEventHandler hoverEvent;
public delegate void ButtonHoverEventHandler(StepItem2 before, StepItem2 after);
public StepItem2()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:设置默认选中的Button</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="item">The item.</param>
public void SetDefaultSelectItem(StepItem2 item)
{
mDdefaultItem = item;
mDdefaultItem.SetItemState(MenuButtonState.selectState);
}
/// <summary>
/// <para>说明:设置菜单状态状态</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="state">The state.</param>
public void SetItemState(MenuButtonState state)
{
switch (state)
{
case MenuButtonState.defaultState:
this.BackColor = Color.White;
btn_item_title.ForeColor = Color.Black;
break;
case MenuButtonState.selectState:
this.BackColor = ColorTranslator.FromHtml("#3E92F8");
btn_item_title.ForeColor = Color.White;
break;
}
}
/// <summary>
/// <para>说明:注册鼠标划过事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="hoverEvent">The hover event.</param>
/// <param name="eventType">Type of the event.</param>
public void SetHoverEvent(ButtonHoverEventHandler hoverEvent)
{
this.hoverEvent = hoverEvent;
this.MouseClick += new MouseEventHandler(this.OnStepItemClick);
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnStepItemClick(object sender, EventArgs e)
{
try
{
StepItem2 item = null;
if (sender is StepItem2)
item = sender as StepItem2;
if (sender is Label)
item = (sender as Label).Parent as StepItem2;
if (item != null)
{
if (mDdefaultItem != null)
{
mDdefaultItem.SetItemState(MenuButtonState.defaultState);
}
item.SetItemState(MenuButtonState.selectState);
}
if (mDdefaultItem != item)
{
if (hoverEvent != null)
{
this.hoverEvent(mDdefaultItem, item);
}
mDdefaultItem = item;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 菜单状态
/// </summary>
public enum MenuButtonState
{
defaultState,
selectState
}
}
}
@@ -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>
+78
View File
@@ -0,0 +1,78 @@
namespace Lskj.Workflow.Control
{
partial class StepItem3
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btn_item_title = new System.Windows.Forms.Label();
this.PlDel = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// btn_item_title
//
this.btn_item_title.Cursor = System.Windows.Forms.Cursors.Hand;
this.btn_item_title.Font = new System.Drawing.Font("宋体", 10F);
this.btn_item_title.Location = new System.Drawing.Point(5, 11);
this.btn_item_title.Name = "btn_item_title";
this.btn_item_title.Size = new System.Drawing.Size(134, 29);
this.btn_item_title.TabIndex = 4;
this.btn_item_title.Text = "采购请购单审核";
this.btn_item_title.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btn_item_title.Click += new System.EventHandler(this.OnStepItemClick);
//
// PlDel
//
this.PlDel.Anchor = System.Windows.Forms.AnchorStyles.None;
this.PlDel.BackColor = System.Drawing.Color.Transparent;
this.PlDel.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_cha_2x;
this.PlDel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.PlDel.Cursor = System.Windows.Forms.Cursors.Hand;
this.PlDel.Location = new System.Drawing.Point(139, 15);
this.PlDel.Name = "PlDel";
this.PlDel.Size = new System.Drawing.Size(20, 20);
this.PlDel.TabIndex = 5;
//
// StepItem3
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.PlDel);
this.Controls.Add(this.btn_item_title);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.Name = "StepItem3";
this.Size = new System.Drawing.Size(168, 50);
this.Click += new System.EventHandler(this.OnStepItemClick);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label btn_item_title;
private System.Windows.Forms.Panel PlDel;
}
}
@@ -0,0 +1,159 @@
/******************************
* 说明:流转步骤控件
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.Workflow.Control
{
public partial class StepItem3 : UserControl
{
/// <summary>
/// 默认选中
/// </summary>
private static StepItem3 mDdefaultItem;
/// <summary>
/// 标题对象
/// </summary>
/// <value>The title label object.</value>
public Label TitleLabelObj { get { return btn_item_title; } }
/// <summary>
/// 删除对象
/// </summary>
/// <value>The delete pabel object.</value>
public Panel DeletePabelObj { get { return PlDel; } }
private ButtonHoverEventHandler hoverEvent;
public delegate void ButtonHoverEventHandler(StepItem3 before, StepItem3 after);
public StepItem3()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:设置默认选中的Button</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="item">The item.</param>
public void SetDefaultSelectItem(StepItem3 item)
{
mDdefaultItem = item;
mDdefaultItem.SetItemState(MenuButtonState.selectState);
}
/// <summary>
/// <para>说明:设置菜单状态状态</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="state">The state.</param>
public void SetItemState(MenuButtonState state)
{
switch (state)
{
case MenuButtonState.defaultState:
this.BackColor = Color.White;
btn_item_title.ForeColor = Color.Black;
break;
case MenuButtonState.selectState:
this.BackColor = ColorTranslator.FromHtml("#3E92F8");
btn_item_title.ForeColor = Color.White;
break;
}
}
/// <summary>
/// <para>说明:注册鼠标划过事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="hoverEvent">The hover event.</param>
/// <param name="eventType">Type of the event.</param>
public void SetHoverEvent(ButtonHoverEventHandler hoverEvent)
{
this.hoverEvent = hoverEvent;
this.MouseClick += new MouseEventHandler(this.OnStepItemClick);
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnStepItemClick(object sender, EventArgs e)
{
try
{
StepItem3 item = null;
if (sender is StepItem3)
item = sender as StepItem3;
if (sender is Label)
item = (sender as Label).Parent as StepItem3;
if (item != null)
{
if (mDdefaultItem != null)
{
mDdefaultItem.SetItemState(MenuButtonState.defaultState);
}
item.SetItemState(MenuButtonState.selectState);
}
if (mDdefaultItem != item)
{
if (hoverEvent != null)
{
this.hoverEvent(mDdefaultItem, item);
}
mDdefaultItem = item;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 菜单状态
/// </summary>
public enum MenuButtonState
{
defaultState,
selectState
}
}
}
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="btn_item_title.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PlDel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+73
View File
@@ -0,0 +1,73 @@
namespace Lskj.Workflow.Control
{
partial class StepItemAdd
{
/// <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.label1 = new System.Windows.Forms.Label();
this.PlAdd = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Red;
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Location = new System.Drawing.Point(0, 49);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(168, 1);
this.label1.TabIndex = 9;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// PlAdd
//
this.PlAdd.Anchor = System.Windows.Forms.AnchorStyles.None;
this.PlAdd.BackColor = System.Drawing.Color.Transparent;
this.PlAdd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.PlAdd.Cursor = System.Windows.Forms.Cursors.Hand;
this.PlAdd.Location = new System.Drawing.Point(61, 0);
this.PlAdd.Name = "PlAdd";
this.PlAdd.Size = new System.Drawing.Size(48, 48);
this.PlAdd.TabIndex = 8;
//
// StepItemAdd
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.label1);
this.Controls.Add(this.PlAdd);
this.Name = "StepItemAdd";
this.Size = new System.Drawing.Size(168, 50);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel PlAdd;
}
}
@@ -0,0 +1,37 @@
/******************************
* 说明:添加流转步骤控件
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
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.Workflow.Control
{
/// <summary>
/// 添加流转步骤控件
/// </summary>
public partial class StepItemAdd : UserControl
{
/// <summary>
/// 添加按钮对象
/// </summary>
/// <value>The add panel object.</value>
public Panel AddPanelObj { get { return PlAdd; } }
public StepItemAdd()
{
InitializeComponent();
}
}
}
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+436
View File
@@ -0,0 +1,436 @@
namespace Lskj.Workflow.Control
{
partial class StepPage1
{
/// <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.PlStep1 = new DevExpress.XtraEditors.XtraScrollableControl();
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
this.ltestepBackContent = new Lskj.Control.LabelTextEdit();
this.ltestepBackText = new Lskj.Control.LabelTextEdit();
this.ltestepCloseText = new Lskj.Control.LabelTextEdit();
this.ltepStepCode = new Lskj.Control.LabelTextEdit();
this.ltestepCloseContent = new Lskj.Control.LabelTextEdit();
this.ltestepApplyContent = new Lskj.Control.LabelTextEdit();
this.ltestepApplyText = new Lskj.Control.LabelTextEdit();
this.lcetm_Test = new Lskj.Control.LabelCheckEdit();
this.ltestepGroup = new Lskj.Control.LabelTextEdit();
this.lcestepDivide = new Lskj.Control.LabelCheckEdit();
this.ltestepName = new Lskj.Control.LabelTextEdit();
this.ltestepCode = new Lskj.Control.LabelTextEdit();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.xtraScrollableControl1 = new DevExpress.XtraEditors.XtraScrollableControl();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.xtraScrollableControl2 = new DevExpress.XtraEditors.XtraScrollableControl();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
this.PlStep1Container = new System.Windows.Forms.Panel();
this.PlStep1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
this.panelControl6.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
this.panelControl3.SuspendLayout();
this.SuspendLayout();
//
// PlStep1
//
this.PlStep1.Appearance.BackColor = System.Drawing.Color.White;
this.PlStep1.Appearance.Options.UseBackColor = true;
this.PlStep1.AutoScroll = false;
this.PlStep1.Controls.Add(this.panelControl1);
this.PlStep1.Controls.Add(this.panelControl3);
this.PlStep1.Controls.Add(this.panelControl2);
this.PlStep1.Dock = System.Windows.Forms.DockStyle.Fill;
this.PlStep1.Location = new System.Drawing.Point(0, 0);
this.PlStep1.Name = "PlStep1";
this.PlStep1.Size = new System.Drawing.Size(988, 585);
this.PlStep1.TabIndex = 3;
//
// panelControl2
//
this.panelControl2.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
this.panelControl2.Appearance.Options.UseBackColor = true;
this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top;
this.panelControl2.Location = new System.Drawing.Point(0, 0);
this.panelControl2.Name = "panelControl2";
this.panelControl2.Padding = new System.Windows.Forms.Padding(1);
this.panelControl2.Size = new System.Drawing.Size(988, 15);
this.panelControl2.TabIndex = 5;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.panelControl6);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(1, 1);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(806, 111);
this.groupBox1.TabIndex = 4;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "基本设置";
//
// panelControl6
//
this.panelControl6.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl6.Appearance.Options.UseBackColor = true;
this.panelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl6.Controls.Add(this.ltestepCode);
this.panelControl6.Controls.Add(this.ltestepName);
this.panelControl6.Controls.Add(this.lcestepDivide);
this.panelControl6.Controls.Add(this.ltestepGroup);
this.panelControl6.Controls.Add(this.lcetm_Test);
this.panelControl6.Controls.Add(this.ltestepApplyText);
this.panelControl6.Controls.Add(this.ltestepApplyContent);
this.panelControl6.Controls.Add(this.ltestepCloseContent);
this.panelControl6.Controls.Add(this.ltepStepCode);
this.panelControl6.Controls.Add(this.ltestepCloseText);
this.panelControl6.Controls.Add(this.ltestepBackText);
this.panelControl6.Controls.Add(this.ltestepBackContent);
this.panelControl6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl6.Location = new System.Drawing.Point(3, 18);
this.panelControl6.Name = "panelControl6";
this.panelControl6.Size = new System.Drawing.Size(800, 90);
this.panelControl6.TabIndex = 9;
//
// ltestepBackContent
//
this.ltestepBackContent.BackColor = System.Drawing.Color.Transparent;
this.ltestepBackContent.EditText = "";
this.ltestepBackContent.FontSize = 0F;
this.ltestepBackContent.LabelText = "反审意见";
this.ltestepBackContent.Location = new System.Drawing.Point(200, 35);
this.ltestepBackContent.Model = null;
this.ltestepBackContent.Name = "ltestepBackContent";
this.ltestepBackContent.NullText = "";
this.ltestepBackContent.ReadOnly = false;
this.ltestepBackContent.Required = true;
this.ltestepBackContent.Size = new System.Drawing.Size(180, 21);
this.ltestepBackContent.TabIndex = 5;
//
// ltestepBackText
//
this.ltestepBackText.BackColor = System.Drawing.Color.Transparent;
this.ltestepBackText.EditText = "";
this.ltestepBackText.FontSize = 0F;
this.ltestepBackText.LabelText = "反退名称";
this.ltestepBackText.Location = new System.Drawing.Point(8, 35);
this.ltestepBackText.Model = null;
this.ltestepBackText.Name = "ltestepBackText";
this.ltestepBackText.NullText = "";
this.ltestepBackText.ReadOnly = false;
this.ltestepBackText.Required = true;
this.ltestepBackText.Size = new System.Drawing.Size(180, 21);
this.ltestepBackText.TabIndex = 4;
//
// ltestepCloseText
//
this.ltestepCloseText.BackColor = System.Drawing.Color.Transparent;
this.ltestepCloseText.EditText = "";
this.ltestepCloseText.FontSize = 0F;
this.ltestepCloseText.LabelText = "关闭名称";
this.ltestepCloseText.Location = new System.Drawing.Point(392, 35);
this.ltestepCloseText.Model = null;
this.ltestepCloseText.Name = "ltestepCloseText";
this.ltestepCloseText.NullText = "";
this.ltestepCloseText.ReadOnly = false;
this.ltestepCloseText.Required = false;
this.ltestepCloseText.Size = new System.Drawing.Size(180, 21);
this.ltestepCloseText.TabIndex = 6;
//
// ltepStepCode
//
this.ltepStepCode.BackColor = System.Drawing.Color.Transparent;
this.ltepStepCode.EditText = "";
this.ltepStepCode.FontSize = 0F;
this.ltepStepCode.LabelText = "并行步骤";
this.ltepStepCode.Location = new System.Drawing.Point(200, 62);
this.ltepStepCode.Model = null;
this.ltepStepCode.Name = "ltepStepCode";
this.ltepStepCode.NullText = "";
this.ltepStepCode.ReadOnly = false;
this.ltepStepCode.Required = false;
this.ltepStepCode.Size = new System.Drawing.Size(180, 21);
this.ltepStepCode.TabIndex = 3;
//
// ltestepCloseContent
//
this.ltestepCloseContent.BackColor = System.Drawing.Color.Transparent;
this.ltestepCloseContent.EditText = "";
this.ltestepCloseContent.FontSize = 0F;
this.ltestepCloseContent.LabelText = "关闭意见";
this.ltestepCloseContent.Location = new System.Drawing.Point(584, 35);
this.ltestepCloseContent.Model = null;
this.ltestepCloseContent.Name = "ltestepCloseContent";
this.ltestepCloseContent.NullText = "";
this.ltestepCloseContent.ReadOnly = false;
this.ltestepCloseContent.Required = false;
this.ltestepCloseContent.Size = new System.Drawing.Size(180, 21);
this.ltestepCloseContent.TabIndex = 7;
//
// ltestepApplyContent
//
this.ltestepApplyContent.BackColor = System.Drawing.Color.Transparent;
this.ltestepApplyContent.EditText = "";
this.ltestepApplyContent.FontSize = 0F;
this.ltestepApplyContent.LabelText = "流转意见";
this.ltestepApplyContent.Location = new System.Drawing.Point(584, 8);
this.ltestepApplyContent.Model = null;
this.ltestepApplyContent.Name = "ltestepApplyContent";
this.ltestepApplyContent.NullText = "";
this.ltestepApplyContent.ReadOnly = false;
this.ltestepApplyContent.Required = true;
this.ltestepApplyContent.Size = new System.Drawing.Size(180, 21);
this.ltestepApplyContent.TabIndex = 2;
//
// ltestepApplyText
//
this.ltestepApplyText.BackColor = System.Drawing.Color.Transparent;
this.ltestepApplyText.EditText = "";
this.ltestepApplyText.FontSize = 0F;
this.ltestepApplyText.LabelText = "流转名称";
this.ltestepApplyText.Location = new System.Drawing.Point(392, 8);
this.ltestepApplyText.Model = null;
this.ltestepApplyText.Name = "ltestepApplyText";
this.ltestepApplyText.NullText = "";
this.ltestepApplyText.ReadOnly = false;
this.ltestepApplyText.Required = true;
this.ltestepApplyText.Size = new System.Drawing.Size(180, 21);
this.ltestepApplyText.TabIndex = 1;
//
// lcetm_Test
//
this.lcetm_Test.BackColor = System.Drawing.Color.Transparent;
this.lcetm_Test.EditText = "0";
this.lcetm_Test.FontSize = 0F;
this.lcetm_Test.LabelText = "验证SN";
this.lcetm_Test.Location = new System.Drawing.Point(400, 62);
this.lcetm_Test.Model = null;
this.lcetm_Test.Name = "lcetm_Test";
this.lcetm_Test.NullText = null;
this.lcetm_Test.ReadOnly = false;
this.lcetm_Test.Required = false;
this.lcetm_Test.Size = new System.Drawing.Size(68, 21);
this.lcetm_Test.TabIndex = 9;
//
// ltestepGroup
//
this.ltestepGroup.BackColor = System.Drawing.Color.Transparent;
this.ltestepGroup.EditText = "";
this.ltestepGroup.FontSize = 0F;
this.ltestepGroup.LabelText = "步骤分组";
this.ltestepGroup.Location = new System.Drawing.Point(8, 8);
this.ltestepGroup.Model = null;
this.ltestepGroup.Name = "ltestepGroup";
this.ltestepGroup.NullText = "";
this.ltestepGroup.ReadOnly = false;
this.ltestepGroup.Required = true;
this.ltestepGroup.Size = new System.Drawing.Size(180, 21);
this.ltestepGroup.TabIndex = 0;
//
// lcestepDivide
//
this.lcestepDivide.BackColor = System.Drawing.Color.Transparent;
this.lcestepDivide.EditText = "0";
this.lcestepDivide.FontSize = 0F;
this.lcestepDivide.LabelText = "分单";
this.lcestepDivide.Location = new System.Drawing.Point(519, 62);
this.lcestepDivide.Model = null;
this.lcestepDivide.Name = "lcestepDivide";
this.lcestepDivide.NullText = null;
this.lcestepDivide.ReadOnly = false;
this.lcestepDivide.Required = false;
this.lcestepDivide.Size = new System.Drawing.Size(53, 21);
this.lcestepDivide.TabIndex = 10;
//
// ltestepName
//
this.ltestepName.BackColor = System.Drawing.Color.Transparent;
this.ltestepName.EditText = "";
this.ltestepName.FontSize = 0F;
this.ltestepName.LabelText = "步骤名称";
this.ltestepName.Location = new System.Drawing.Point(200, 8);
this.ltestepName.Model = null;
this.ltestepName.Name = "ltestepName";
this.ltestepName.NullText = "";
this.ltestepName.ReadOnly = false;
this.ltestepName.Required = true;
this.ltestepName.Size = new System.Drawing.Size(180, 21);
this.ltestepName.TabIndex = 8;
//
// ltestepCode
//
this.ltestepCode.BackColor = System.Drawing.Color.Transparent;
this.ltestepCode.EditText = "";
this.ltestepCode.FontSize = 0F;
this.ltestepCode.LabelText = "步骤编号";
this.ltestepCode.Location = new System.Drawing.Point(8, 62);
this.ltestepCode.Model = null;
this.ltestepCode.Name = "ltestepCode";
this.ltestepCode.NullText = "";
this.ltestepCode.ReadOnly = true;
this.ltestepCode.Required = false;
this.ltestepCode.Size = new System.Drawing.Size(180, 21);
this.ltestepCode.TabIndex = 11;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.xtraScrollableControl1);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox2.Location = new System.Drawing.Point(1, 112);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(806, 214);
this.groupBox2.TabIndex = 5;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "勾选需要在审核过程中修改的表头字段";
//
// xtraScrollableControl1
//
this.xtraScrollableControl1.Appearance.BackColor = System.Drawing.Color.White;
this.xtraScrollableControl1.Appearance.Options.UseBackColor = true;
this.xtraScrollableControl1.AutoScroll = false;
this.xtraScrollableControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraScrollableControl1.Location = new System.Drawing.Point(3, 18);
this.xtraScrollableControl1.Name = "xtraScrollableControl1";
this.xtraScrollableControl1.Size = new System.Drawing.Size(800, 193);
this.xtraScrollableControl1.TabIndex = 4;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.xtraScrollableControl2);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox3.Location = new System.Drawing.Point(1, 326);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(806, 243);
this.groupBox3.TabIndex = 7;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "勾选需要在审核过程中修改的明细字段";
//
// xtraScrollableControl2
//
this.xtraScrollableControl2.Appearance.BackColor = System.Drawing.Color.White;
this.xtraScrollableControl2.Appearance.Options.UseBackColor = true;
this.xtraScrollableControl2.AutoScroll = false;
this.xtraScrollableControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraScrollableControl2.Location = new System.Drawing.Point(3, 18);
this.xtraScrollableControl2.Name = "xtraScrollableControl2";
this.xtraScrollableControl2.Size = new System.Drawing.Size(800, 222);
this.xtraScrollableControl2.TabIndex = 5;
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl1.Controls.Add(this.groupBox3);
this.panelControl1.Controls.Add(this.groupBox2);
this.panelControl1.Controls.Add(this.groupBox1);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl1.Location = new System.Drawing.Point(180, 15);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Padding = new System.Windows.Forms.Padding(1);
this.panelControl1.Size = new System.Drawing.Size(808, 570);
this.panelControl1.TabIndex = 9;
//
// panelControl3
//
this.panelControl3.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
this.panelControl3.Appearance.Options.UseBackColor = true;
this.panelControl3.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl3.Controls.Add(this.PlStep1Container);
this.panelControl3.Dock = System.Windows.Forms.DockStyle.Left;
this.panelControl3.Location = new System.Drawing.Point(0, 15);
this.panelControl3.Name = "panelControl3";
this.panelControl3.Padding = new System.Windows.Forms.Padding(1);
this.panelControl3.Size = new System.Drawing.Size(180, 570);
this.panelControl3.TabIndex = 8;
//
// PlStep1Container
//
this.PlStep1Container.AutoScroll = true;
this.PlStep1Container.BackColor = System.Drawing.Color.Transparent;
this.PlStep1Container.Dock = System.Windows.Forms.DockStyle.Fill;
this.PlStep1Container.Location = new System.Drawing.Point(1, 1);
this.PlStep1Container.Name = "PlStep1Container";
this.PlStep1Container.Size = new System.Drawing.Size(178, 568);
this.PlStep1Container.TabIndex = 3;
//
// StepPage1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.PlStep1);
this.Name = "StepPage1";
this.Size = new System.Drawing.Size(988, 585);
this.PlStep1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
this.panelControl6.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
this.panelControl3.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.XtraScrollableControl PlStep1;
private DevExpress.XtraEditors.PanelControl panelControl1;
private System.Windows.Forms.GroupBox groupBox3;
private DevExpress.XtraEditors.XtraScrollableControl xtraScrollableControl2;
private System.Windows.Forms.GroupBox groupBox2;
private DevExpress.XtraEditors.XtraScrollableControl xtraScrollableControl1;
private System.Windows.Forms.GroupBox groupBox1;
private DevExpress.XtraEditors.PanelControl panelControl6;
private Lskj.Control.LabelTextEdit ltestepCode;
private Lskj.Control.LabelTextEdit ltestepName;
private Lskj.Control.LabelCheckEdit lcestepDivide;
private Lskj.Control.LabelTextEdit ltestepGroup;
private Lskj.Control.LabelCheckEdit lcetm_Test;
private Lskj.Control.LabelTextEdit ltestepApplyText;
private Lskj.Control.LabelTextEdit ltestepApplyContent;
private Lskj.Control.LabelTextEdit ltestepCloseContent;
private Lskj.Control.LabelTextEdit ltepStepCode;
private Lskj.Control.LabelTextEdit ltestepCloseText;
private Lskj.Control.LabelTextEdit ltestepBackText;
private Lskj.Control.LabelTextEdit ltestepBackContent;
private DevExpress.XtraEditors.PanelControl panelControl3;
private System.Windows.Forms.Panel PlStep1Container;
private DevExpress.XtraEditors.PanelControl panelControl2;
}
}
@@ -0,0 +1,566 @@
/******************************
* 说明:流转类别设置
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business;
using Lskj.Business.Impl;
using Lskj.Model;
using Lskj.Workflow.Model;
using Lskj.Control;
namespace Lskj.Workflow.Control
{
/// <summary>
/// 流转类别设置
/// </summary>
public partial class StepPage1 : UserControl
{
/// <summary>
/// 控件摆放固定X轴位置
/// </summary>
private int[] mLocationX = { 10, 120, 230, 340, 450, 560, 670 };
/// <summary>
/// 控件摆放固定Y轴位置
/// </summary>
private int[] mLocationY = { 10, 40, 70, 100, 130, 160, 190, 220, 250, 280, 310, 340, 370 };
/// <summary>
/// 模块编号
/// </summary>
public string mMenuCode;
/// <summary>
/// 单据对象
/// </summary>
public BillModel mBillModel;
/// <summary>
/// 选中的流转步骤
/// </summary>
public StepItem1 SeletStepItem1Obj;
/// <summary>
/// 当前选中的流转步骤对象
/// </summary>
public BillflowModel SelectBillflowModel;
/// <summary>
/// 单据流转集合
/// </summary>
public List<BillflowModel> BillflowModelList = new List<BillflowModel>();
/// <summary>
/// 主页转过来的操作权限
/// </summary>
public bool SerpPagePower;
public StepPage1()
{
InitializeComponent();
}
#region
/// <summary>
/// <para>说明:初始化流转步骤</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeStepFlow()
{
this.PlStep1Container.Controls.Clear();
DataTable table = WorkFlowBillImpl.GetBillFlowData(mMenuCode);
BillflowModelList.Clear();
if (table.Rows.Count == 0)
{
this.panelControl1.Visible = false;
return;
}
this.panelControl1.Visible = true;
for (int i = table.Rows.Count; i > 0; i--)
{
DataRow rowItem = table.Rows[i - 1];
BillflowModel model = new BillflowModel(rowItem);
// 设置面板值
if (i == 1)
{
this.SelectBillflowModel = model;
this.SetFlowItem(model);
}
this.PlStep1Container.Controls.Add(this.InitStepFlowItem(model, i));
this.BillflowModelList.Add(model);
if (this.xtraScrollableControl1.Controls.Count == 0 && this.xtraScrollableControl2.Controls.Count == 0)
{
this.InitializeMainField();
this.InitializeDetailField();
}
}
}
/// <summary>
/// <para>说明:初始化主表字段</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeMainField()
{
if (SelectBillflowModel != null)
{
int rowcount = 7;
int width = 100, height = 20;
int left = 0, top = 0;
DataTable table = BaseModuleImpl.GetControlLocation(this.mBillModel.FormKey, mMenuCode);
DataTable editTable = table.Select("visible=0 and edited=0").CopyToDataTable();
editTable.DefaultView.Sort = "ControlTop,ControlLeft";
editTable = editTable.DefaultView.ToTable();
for (int i = 0; i < editTable.Rows.Count; i++)
{
DataRow rowItem = editTable.Rows[i];
if (i % rowcount == 0)
{
left = mLocationX[0];
top = mLocationY[Convert.ToInt32(i / rowcount)];
}
else
{
left = mLocationX[Convert.ToInt32(i % rowcount)];
top = mLocationY[Convert.ToInt32(i / rowcount)];
}
LabelCheckEdit checkEdit = new LabelCheckEdit();
checkEdit.TextEdit.Name = rowItem["fieldname"] + "";
checkEdit.LabelText = rowItem["username"] + "";
checkEdit.Size = new Size(width, height);
checkEdit.Location = new Point(left, top);
checkEdit.EditText = ("," + this.SelectBillflowModel.billModifyFields + ",").Contains("," + rowItem["fieldname"] + ",") ? "1" : "0";
checkEdit.Tag = rowItem;
this.xtraScrollableControl1.Controls.Add(checkEdit);
}
}
}
/// <summary>
/// <para>说明:初始化明细表字段</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeDetailField()
{
if (SelectBillflowModel != null)
{
int rowcount = 7;
int width = 100, height = 20;
int left = 0, top = 0;
DataTable table = BillImpl.GetDetailColumns(mMenuCode);
DataTable editTable = table.Select("isVisible=False and edit=0").CopyToDataTable();
for (int i = 0; i < editTable.Rows.Count; i++)
{
DataRow rowItem = editTable.Rows[i];
if (i % rowcount == 0)
{
left = mLocationX[0];
top = mLocationY[Convert.ToInt32(i / rowcount)];
}
else
{
left = mLocationX[Convert.ToInt32(i % rowcount)];
top = mLocationY[Convert.ToInt32(i / rowcount)];
}
LabelCheckEdit checkEdit = new LabelCheckEdit();
checkEdit.TextEdit.Name = rowItem["fieldname"] + "";
checkEdit.LabelText = rowItem["username"] + "";
checkEdit.Size = new Size(width, height);
checkEdit.Location = new Point(left, top);
checkEdit.EditText = ("," + this.SelectBillflowModel.detailModifyFields + ",").Contains("," + rowItem["fieldname"] + ",") ? "1" : "0";
checkEdit.Tag = rowItem;
this.xtraScrollableControl2.Controls.Add(checkEdit);
}
}
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="flowName">Name of the flow.</param>
private StepItem1 InitStepFlowItem(BillflowModel model, int pos)
{
StepItem1 item = new StepItem1();
item.TitleLabelObj.Text = pos + "、" + model.stepName;
if (SerpPagePower)
{
item.DeletePabelObj.Enabled = false;
}
item.DeletePabelObj.Click += new EventHandler(OnDeletePabelObjClick);
item.Dock = DockStyle.Top;
item.Tag = item.TitleLabelObj.Tag = item.DeletePabelObj.Tag = model;
item.SetHoverEvent(OnTitleLabelObjClick);
item.TabIndex = pos;
if (pos == 1)
{
SeletStepItem1Obj = item;
item.SetDefaultSelectItem(item);
}
return item;
}
/// <summary>
/// <para>说明:验证数据合法性</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-06 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
public bool VerifyNull()
{
foreach (System.Windows.Forms.Control item in panelControl6.Controls)
{
if (item is LabelTextEdit)
{
LabelTextEdit textEdit = item as LabelTextEdit;
if (string.IsNullOrEmpty(textEdit.EditText) && textEdit.Required)
{
textEdit.Focus();
MessageUtil.Show(textEdit.LabelText + "不能为空!");
return false;
}
}
}
return true;
}
#endregion
#region
/// <summary>
/// <para>说明:初始化流转类别控件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeControl(string menuCode)
{
this.mMenuCode = menuCode;
this.mBillModel = new BillModel(BillImpl.GetBillInfo(mMenuCode));
this.InitializeStepFlow();
this.InitializeMainField();
this.InitializeDetailField();
}
/// <summary>
/// <para>说明:添加流转类别</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void AddFlowItem(string stepGroup, string stepName)
{
BillflowModel model = new BillflowModel
{
stepCode = Convert.ToInt32((BillflowModelList.Count + 1) + "00"),
typeCode = mMenuCode,
stepGroup = stepGroup,
stepName = stepName,
stepApplyText = "审核(&Y)",
stepApplyContent = "同意",
stepBackText = "反退(&N)",
stepBackContent = "不同意"
};
try
{
// 保存
if (WorkFlowBillImpl.SaveBillFlow(model))
{
// 重排列表
InitializeStepFlow();
}
}
catch (Exception ex)
{
throw;
//MessageUtil.Show("保存失败!" + ex.Message);
}
}
/// <summary>
/// <para>说明:更新流转步骤数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void UpdateBillFlow()
{
if (this.VerifyNull())
{
// 获取基本数据
BillflowModel model = this.SelectBillflowModel;
model.stepGroup = this.ltestepGroup.EditText;
model.stepName = this.ltestepName.EditText;
model.stepApplyText = this.ltestepApplyText.EditText;
model.stepApplyContent = this.ltestepApplyContent.EditText;
model.stepBackText = this.ltestepBackText.EditText;
model.stepBackContent = this.ltestepBackContent.EditText;
model.stepCloseText = this.ltestepCloseText.EditText;
model.stepCloseContent = this.ltestepCloseContent.EditText;
model.pStepCode = this.ltepStepCode.EditText;
model.tm_Test = this.lcetm_Test.EditText;
model.stepDivide = this.lcestepDivide.EditText;
// 获取单据主表可修改字段
model.billModifyFields = GetMainFieldCheckState();
// 获取单据明细表可修改字段
model.detailModifyFields = GetDetailFieldCheckState();
bool result = WorkFlowBillImpl.UpdateBillFlow(model);
if (result)
{
this.SeletStepItem1Obj.TitleLabelObj.Text = this.SeletStepItem1Obj.TabIndex + "、" + model.stepName;
this.SelectBillflowModel = model;
}
MessageUtil.Show(result ? "保存成功!" : "保存失败!");
}
}
/// <summary>
/// <para>说明:设置面板值</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
public void SetFlowItem(BillflowModel model)
{
if (model != null)
{
ltestepCode.EditText = model.stepCode + "";
ltestepGroup.EditText = model.stepGroup;
ltestepName.EditText = model.stepName;
ltestepApplyText.EditText = model.stepApplyText;
ltestepApplyContent.EditText = model.stepApplyContent;
ltestepBackText.EditText = model.stepBackText;
ltestepBackContent.EditText = model.stepBackContent;
ltestepCloseText.EditText = model.stepCloseText;
ltestepCloseContent.EditText = model.stepCloseContent;
ltepStepCode.EditText = model.pStepCode + "";
this.SelectBillflowModel = model;
}
}
/// <summary>
/// <para>说明:设置主表字段选中状态</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
public void SetMainFieldCheckState(BillflowModel model)
{
foreach (var ctr in xtraScrollableControl1.Controls)
{
LabelCheckEdit checkEdit = ctr as LabelCheckEdit;
if (checkEdit != null)
{
DataRow rowItem = checkEdit.Tag as DataRow;
checkEdit.EditText = ("," + model.billModifyFields + ",").Contains("," + rowItem["fieldname"] + ",") ? "1" : "0";
}
}
}
/// <summary>
/// <para>说明:设置主表字段选中状态</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
public void SetDetailFieldCheckState(BillflowModel model)
{
foreach (var ctr in xtraScrollableControl2.Controls)
{
LabelCheckEdit checkEdit = ctr as LabelCheckEdit;
if (checkEdit != null)
{
DataRow rowItem = checkEdit.Tag as DataRow;
checkEdit.EditText = ("," + model.detailModifyFields + ",").Contains("," + rowItem["fieldname"] + ",") ? "1" : "0";
}
}
}
/// <summary>
/// <para>说明:获取主表选中字段</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>System.String.</returns>
public string GetMainFieldCheckState()
{
string fields = string.Empty;
foreach (var ctr in xtraScrollableControl1.Controls)
{
LabelCheckEdit checkEdit = ctr as LabelCheckEdit;
if (checkEdit != null && "1".Equals(checkEdit.EditText))
{
fields += checkEdit.TextEdit.Name + ",";
}
}
return fields.TrimEnd(',');
}
/// <summary>
/// <para>说明:获取明细表选中字段</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>System.String.</returns>
public string GetDetailFieldCheckState()
{
string fields = string.Empty;
foreach (var ctr in xtraScrollableControl2.Controls)
{
LabelCheckEdit checkEdit = ctr as LabelCheckEdit;
if (checkEdit != null && "1".Equals(checkEdit.EditText))
{
fields += checkEdit.TextEdit.Name + ",";
}
}
return fields.TrimEnd(',');
}
#endregion
#region
/// <summary>
/// <para>说明:删除流转分类</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnDeletePabelObjClick(object sender, EventArgs e)
{
try
{
Panel deletePanel = sender as Panel;
if (deletePanel != null && deletePanel.Tag != null)
{
BillflowModel model = deletePanel.Tag as BillflowModel;
if (MessageUtil.Show("删除审批步骤将同步删除方案步骤相关数据\r\n是否删除?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
try
{
// 验证删除存储过程
string tipMsg = string.Empty;
if (BaseImpl.deleteFlow(1, mMenuCode, model.stepCode.ToString(), model.id, out tipMsg) == 1)
{
MessageUtil.Show("删除成功!");
// 重排列表
InitializeStepFlow();
}
else
{
MessageUtil.Show(tipMsg);
}
}
catch (Exception ex)
{
throw;
//MessageUtil.Show("删除失败:\r\n" + ex.Message);
}
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:点击流转步骤加载数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
/// <exception cref="System.NotImplementedException"></exception>
void OnTitleLabelObjClick(StepItem1 before, StepItem1 after)
{
try
{
BillflowModel model = after.Tag as BillflowModel;
this.SeletStepItem1Obj = after;
this.SetFlowItem(model);
this.SetMainFieldCheckState(model);
this.SetDetailFieldCheckState(model);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#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>
+502
View File
@@ -0,0 +1,502 @@
namespace Lskj.Workflow.Control
{
partial class StepPage2
{
/// <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.PlStep1 = new DevExpress.XtraEditors.XtraScrollableControl();
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
this.PlStep2Container = new System.Windows.Forms.Panel();
this.xtraScrollableControl1 = new DevExpress.XtraEditors.XtraScrollableControl();
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
this.labelComboxEdit1 = new Lskj.Control.LabelComboxEdit();
this.labelTextEdit1 = new Lskj.Control.LabelTextEdit();
this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage();
this.gridControl = new DevExpress.XtraGrid.GridControl();
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
this.panelControl5 = new DevExpress.XtraEditors.PanelControl();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.ltestepGroup = new Lskj.Control.LabelTextEdit();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.txtEdit = new DevExpress.XtraEditors.MemoEdit();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
this.panelControl3.SuspendLayout();
this.xtraScrollableControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
this.panelControl4.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
this.panelControl6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit();
this.xtraTabControl2.SuspendLayout();
this.xtraTabPage4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit();
this.xtraTabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl5)).BeginInit();
this.panelControl5.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
this.SuspendLayout();
//
// PlStep1
//
this.PlStep1.Appearance.BackColor = System.Drawing.Color.White;
this.PlStep1.Appearance.Options.UseBackColor = true;
this.PlStep1.AutoScroll = false;
this.PlStep1.Dock = System.Windows.Forms.DockStyle.Fill;
this.PlStep1.Location = new System.Drawing.Point(0, 0);
this.PlStep1.Name = "PlStep1";
this.PlStep1.Size = new System.Drawing.Size(988, 570);
this.PlStep1.TabIndex = 4;
//
// panelControl3
//
this.panelControl3.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
this.panelControl3.Appearance.Options.UseBackColor = true;
this.panelControl3.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl3.Controls.Add(this.PlStep2Container);
this.panelControl3.Dock = System.Windows.Forms.DockStyle.Left;
this.panelControl3.Location = new System.Drawing.Point(0, 15);
this.panelControl3.Name = "panelControl3";
this.panelControl3.Padding = new System.Windows.Forms.Padding(1);
this.panelControl3.Size = new System.Drawing.Size(157, 555);
this.panelControl3.TabIndex = 8;
//
// PlStep2Container
//
this.PlStep2Container.AutoScroll = true;
this.PlStep2Container.BackColor = System.Drawing.Color.Transparent;
this.PlStep2Container.Dock = System.Windows.Forms.DockStyle.Fill;
this.PlStep2Container.Location = new System.Drawing.Point(1, 1);
this.PlStep2Container.Name = "PlStep2Container";
this.PlStep2Container.Size = new System.Drawing.Size(155, 553);
this.PlStep2Container.TabIndex = 2;
//
// xtraScrollableControl1
//
this.xtraScrollableControl1.Appearance.BackColor = System.Drawing.Color.White;
this.xtraScrollableControl1.Appearance.Options.UseBackColor = true;
this.xtraScrollableControl1.AutoScroll = false;
this.xtraScrollableControl1.Controls.Add(this.panelControl1);
this.xtraScrollableControl1.Controls.Add(this.panelControl3);
this.xtraScrollableControl1.Controls.Add(this.panelControl2);
this.xtraScrollableControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraScrollableControl1.Location = new System.Drawing.Point(0, 0);
this.xtraScrollableControl1.Name = "xtraScrollableControl1";
this.xtraScrollableControl1.Size = new System.Drawing.Size(988, 570);
this.xtraScrollableControl1.TabIndex = 5;
//
// panelControl4
//
this.panelControl4.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl4.Appearance.Options.UseBackColor = true;
this.panelControl4.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl4.Controls.Add(this.groupBox3);
this.panelControl4.Dock = System.Windows.Forms.DockStyle.Right;
this.panelControl4.Location = new System.Drawing.Point(646, 1);
this.panelControl4.Name = "panelControl4";
this.panelControl4.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panelControl4.Size = new System.Drawing.Size(184, 553);
this.panelControl4.TabIndex = 8;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.xtraTabControl2);
this.groupBox3.Controls.Add(this.panelControl6);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox3.Location = new System.Drawing.Point(5, 0);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(179, 553);
this.groupBox3.TabIndex = 6;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "待选操作员";
//
// panelControl6
//
this.panelControl6.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl6.Appearance.Options.UseBackColor = true;
this.panelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl6.Controls.Add(this.labelTextEdit1);
this.panelControl6.Controls.Add(this.labelComboxEdit1);
this.panelControl6.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelControl6.Location = new System.Drawing.Point(3, 486);
this.panelControl6.Name = "panelControl6";
this.panelControl6.Size = new System.Drawing.Size(173, 64);
this.panelControl6.TabIndex = 8;
//
// labelComboxEdit1
//
this.labelComboxEdit1.BackColor = System.Drawing.Color.Transparent;
this.labelComboxEdit1.EditText = "";
this.labelComboxEdit1.FontSize = 0F;
this.labelComboxEdit1.LabelText = "部门";
this.labelComboxEdit1.Location = new System.Drawing.Point(3, 35);
this.labelComboxEdit1.Model = null;
this.labelComboxEdit1.Name = "labelComboxEdit1";
this.labelComboxEdit1.NullText = "";
this.labelComboxEdit1.ReadOnly = false;
this.labelComboxEdit1.Required = false;
this.labelComboxEdit1.Size = new System.Drawing.Size(164, 21);
this.labelComboxEdit1.TabIndex = 0;
//
// labelTextEdit1
//
this.labelTextEdit1.BackColor = System.Drawing.Color.Transparent;
this.labelTextEdit1.EditText = "";
this.labelTextEdit1.FontSize = 0F;
this.labelTextEdit1.LabelText = "模糊";
this.labelTextEdit1.Location = new System.Drawing.Point(3, 8);
this.labelTextEdit1.Model = null;
this.labelTextEdit1.Name = "labelTextEdit1";
this.labelTextEdit1.NullText = "";
this.labelTextEdit1.ReadOnly = false;
this.labelTextEdit1.Required = false;
this.labelTextEdit1.Size = new System.Drawing.Size(164, 21);
this.labelTextEdit1.TabIndex = 1;
//
// xtraTabControl2
//
this.xtraTabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraTabControl2.Location = new System.Drawing.Point(3, 18);
this.xtraTabControl2.Name = "xtraTabControl2";
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage3;
this.xtraTabControl2.Size = new System.Drawing.Size(173, 468);
this.xtraTabControl2.TabIndex = 10;
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage3,
this.xtraTabPage4});
//
// xtraTabPage4
//
this.xtraTabPage4.Controls.Add(this.gridControl);
this.xtraTabPage4.Name = "xtraTabPage4";
this.xtraTabPage4.Size = new System.Drawing.Size(167, 454);
this.xtraTabPage4.Text = "人员名称";
//
// gridControl
//
this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridControl.Location = new System.Drawing.Point(0, 0);
this.gridControl.MainView = this.gridView;
this.gridControl.Name = "gridControl";
this.gridControl.Size = new System.Drawing.Size(167, 454);
this.gridControl.TabIndex = 3;
this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView,
this.gridView1});
//
// gridView1
//
this.gridView1.GridControl = this.gridControl;
this.gridView1.Name = "gridView1";
//
// gridView
//
this.gridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.HeaderPanel.Options.UseFont = true;
this.gridView.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.gridView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gridView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.gridView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.Preview.Options.UseFont = true;
this.gridView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.Row.Options.UseBackColor = true;
this.gridView.Appearance.Row.Options.UseFont = true;
this.gridView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.gridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.gridColumn2,
this.gridColumn1});
this.gridView.GridControl = this.gridControl;
this.gridView.IndicatorWidth = 30;
this.gridView.Name = "gridView";
this.gridView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
this.gridView.OptionsBehavior.Editable = false;
this.gridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
this.gridView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
this.gridView.OptionsSelection.MultiSelect = true;
this.gridView.OptionsView.AllowHtmlDrawHeaders = true;
this.gridView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
this.gridView.OptionsView.RowAutoHeight = true;
this.gridView.OptionsView.ShowGroupPanel = false;
this.gridView.PaintStyleName = "Skin";
//
// gridColumn2
//
this.gridColumn2.Caption = "工号";
this.gridColumn2.FieldName = "loginaccount";
this.gridColumn2.Name = "gridColumn2";
this.gridColumn2.Visible = true;
this.gridColumn2.VisibleIndex = 0;
this.gridColumn2.Width = 60;
//
// gridColumn1
//
this.gridColumn1.Caption = "姓名";
this.gridColumn1.FieldName = "employeename";
this.gridColumn1.Name = "gridColumn1";
this.gridColumn1.Visible = true;
this.gridColumn1.VisibleIndex = 1;
this.gridColumn1.Width = 70;
//
// xtraTabPage3
//
this.xtraTabPage3.Controls.Add(this.gridControl1);
this.xtraTabPage3.Name = "xtraTabPage3";
this.xtraTabPage3.Size = new System.Drawing.Size(167, 439);
this.xtraTabPage3.Text = "角色名称";
//
// gridControl1
//
this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridControl1.Location = new System.Drawing.Point(0, 0);
this.gridControl1.MainView = this.gridView2;
this.gridControl1.Name = "gridControl1";
this.gridControl1.Size = new System.Drawing.Size(167, 439);
this.gridControl1.TabIndex = 4;
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView2,
this.gridView3});
//
// gridView2
//
this.gridView2.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.gridView2.Appearance.HeaderPanel.Options.UseFont = true;
this.gridView2.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.gridView2.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gridView2.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.gridView2.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.gridView2.Appearance.Preview.Options.UseFont = true;
this.gridView2.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.gridView2.Appearance.Row.Options.UseBackColor = true;
this.gridView2.Appearance.Row.Options.UseFont = true;
this.gridView2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.gridColumn3});
this.gridView2.GridControl = this.gridControl1;
this.gridView2.IndicatorWidth = 30;
this.gridView2.Name = "gridView2";
this.gridView2.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
this.gridView2.OptionsBehavior.Editable = false;
this.gridView2.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
this.gridView2.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
this.gridView2.OptionsSelection.MultiSelect = true;
this.gridView2.OptionsView.AllowHtmlDrawHeaders = true;
this.gridView2.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
this.gridView2.OptionsView.RowAutoHeight = true;
this.gridView2.OptionsView.ShowGroupPanel = false;
this.gridView2.PaintStyleName = "Skin";
//
// gridView3
//
this.gridView3.GridControl = this.gridControl1;
this.gridView3.Name = "gridView3";
//
// gridColumn3
//
this.gridColumn3.Caption = "角色";
this.gridColumn3.FieldName = "roleName";
this.gridColumn3.Name = "gridColumn3";
this.gridColumn3.Visible = true;
this.gridColumn3.VisibleIndex = 0;
this.gridColumn3.Width = 60;
//
// panelControl5
//
this.panelControl5.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl5.Appearance.Options.UseBackColor = true;
this.panelControl5.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl5.Controls.Add(this.groupBox2);
this.panelControl5.Controls.Add(this.groupBox1);
this.panelControl5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl5.Location = new System.Drawing.Point(1, 1);
this.panelControl5.Name = "panelControl5";
this.panelControl5.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panelControl5.Size = new System.Drawing.Size(645, 553);
this.panelControl5.TabIndex = 9;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.ltestepGroup);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(5, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(640, 59);
this.groupBox1.TabIndex = 6;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "基本设置";
//
// ltestepGroup
//
this.ltestepGroup.BackColor = System.Drawing.Color.Transparent;
this.ltestepGroup.EditText = "";
this.ltestepGroup.FontSize = 0F;
this.ltestepGroup.LabelText = "方案名称";
this.ltestepGroup.Location = new System.Drawing.Point(12, 22);
this.ltestepGroup.Model = null;
this.ltestepGroup.Name = "ltestepGroup";
this.ltestepGroup.NullText = "";
this.ltestepGroup.ReadOnly = false;
this.ltestepGroup.Required = true;
this.ltestepGroup.Size = new System.Drawing.Size(180, 21);
this.ltestepGroup.TabIndex = 1;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.txtEdit);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(5, 59);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(640, 494);
this.groupBox2.TabIndex = 7;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "方案权限设置(双击或拖拽操作员即可)";
//
// txtEdit
//
this.txtEdit.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtEdit.Location = new System.Drawing.Point(3, 18);
this.txtEdit.Name = "txtEdit";
this.txtEdit.Size = new System.Drawing.Size(634, 473);
this.txtEdit.TabIndex = 1;
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl1.Controls.Add(this.panelControl5);
this.panelControl1.Controls.Add(this.panelControl4);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl1.Location = new System.Drawing.Point(157, 15);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Padding = new System.Windows.Forms.Padding(1);
this.panelControl1.Size = new System.Drawing.Size(831, 555);
this.panelControl1.TabIndex = 9;
//
// panelControl2
//
this.panelControl2.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
this.panelControl2.Appearance.Options.UseBackColor = true;
this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top;
this.panelControl2.Location = new System.Drawing.Point(0, 0);
this.panelControl2.Name = "panelControl2";
this.panelControl2.Padding = new System.Windows.Forms.Padding(1);
this.panelControl2.Size = new System.Drawing.Size(988, 15);
this.panelControl2.TabIndex = 5;
//
// StepPage2
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.xtraScrollableControl1);
this.Controls.Add(this.PlStep1);
this.Name = "StepPage2";
this.Size = new System.Drawing.Size(988, 570);
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
this.panelControl3.ResumeLayout(false);
this.xtraScrollableControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
this.panelControl4.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
this.panelControl6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit();
this.xtraTabControl2.ResumeLayout(false);
this.xtraTabPage4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit();
this.xtraTabPage3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl5)).EndInit();
this.panelControl5.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.XtraScrollableControl PlStep1;
private DevExpress.XtraEditors.PanelControl panelControl3;
private System.Windows.Forms.Panel PlStep2Container;
private DevExpress.XtraEditors.XtraScrollableControl xtraScrollableControl1;
private DevExpress.XtraEditors.PanelControl panelControl1;
private DevExpress.XtraEditors.PanelControl panelControl5;
private System.Windows.Forms.GroupBox groupBox2;
private DevExpress.XtraEditors.MemoEdit txtEdit;
private System.Windows.Forms.GroupBox groupBox1;
private Lskj.Control.LabelTextEdit ltestepGroup;
private DevExpress.XtraEditors.PanelControl panelControl4;
private System.Windows.Forms.GroupBox groupBox3;
private DevExpress.XtraTab.XtraTabControl xtraTabControl2;
private DevExpress.XtraTab.XtraTabPage xtraTabPage3;
public DevExpress.XtraGrid.GridControl gridControl1;
private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
private DevExpress.XtraGrid.Views.Grid.GridView gridView3;
private DevExpress.XtraTab.XtraTabPage xtraTabPage4;
public DevExpress.XtraGrid.GridControl gridControl;
private DevExpress.XtraGrid.Views.Grid.GridView gridView;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
private DevExpress.XtraEditors.PanelControl panelControl6;
private Lskj.Control.LabelTextEdit labelTextEdit1;
private Lskj.Control.LabelComboxEdit labelComboxEdit1;
private DevExpress.XtraEditors.PanelControl panelControl2;
}
}
@@ -0,0 +1,489 @@
/******************************
* 说明:小类设置
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business;
using Lskj.Model;
using Lskj.Control;
using Lskj.Control.Model;
using Lskj.Util;
using Lskj.Data;
using Lskj.Business.Impl;
namespace Lskj.Workflow.Control
{
/// <summary>
/// 小类设置
/// </summary>
public partial class StepPage2 : UserControl
{
private string mMenuCode;
public BillflowTypeModel SelectBillflowTypeModel;
/// <summary>
/// 选中的流转步骤
/// </summary>
public StepItem2 SeletStepItem2Obj;
/// <summary>
/// 判断第二页是否有操作权限
/// </summary>
public bool SerpPage2Power;
public StepPage2()
{
InitializeComponent();
this.labelTextEdit1.TextEdit.EditValueChanged += new EventHandler(OnUserEditValueChanged);
this.labelComboxEdit1.TextEdit.EditValueChanged += new EventHandler(OnDepEditValueChanged);
}
#region
/// <summary>
/// <para>说明:初始化界面控件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>o
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeControl(string menuCode)
{
try
{
this.mMenuCode = menuCode;
this.InitializeStepFlow();
this.InitializeUsers();
this.InitializeDeps();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:添加流转类别</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void AddFlowTypeItem(string typeName)
{
BillflowTypeModel model = new BillflowTypeModel
{
typeCode = mMenuCode,
typekey = Guid.NewGuid().ToString().ToLower(),
billType = WorkFlowBillImpl.GetBillFlowBillType(),
billTypeName = typeName
};
try
{
// 保存
if (WorkFlowBillImpl.SaveBillFlowType(model))
{
// 重排列表
InitializeStepFlow();
}
}
catch (Exception ex)
{
throw;
//MessageUtil.Show("保存失败!" + ex.Message);
}
}
/// <summary>
/// <para>说明:更新流转步骤数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void UpdateBillFlowType()
{
if (this.VerifyNull())
{
// 获取基本数据
BillflowTypeModel model = this.SelectBillflowTypeModel;
model.billTypeName = this.ltestepGroup.EditText;
model.operUser = this.txtEdit.EditValue + "";
//string personnel = this.txtEdit.EditValue + "";
//personnel = PowerImpl.getAllPersonnel(personnel);
//model.operUser =personnel;
bool result = WorkFlowBillImpl.UpdateBillFlowType(model);
if (result)
{
this.SeletStepItem2Obj.TitleLabelObj.Text = this.SeletStepItem2Obj.TabIndex + "、" + model.billTypeName;
this.SelectBillflowTypeModel = model;
}
MessageUtil.Show(result ? "保存成功!" : "保存失败!");
}
}
#endregion
#region
/// <summary>
/// <para>说明:初始化小类设置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeStepFlow()
{
this.PlStep2Container.Controls.Clear();
DataTable table = WorkFlowBillImpl.GetBillFlowType(mMenuCode);
if (table.Rows.Count == 0)
{
this.panelControl1.Visible = false;
return;
}
this.panelControl1.Visible = true;
for (int i = table.Rows.Count; i > 0; i--)
{
DataRow rowItem = table.Rows[i - 1];
BillflowTypeModel model = new BillflowTypeModel(rowItem);
// 设置面板值
if (i == 1)
{
this.SelectBillflowTypeModel = model;
this.SetFlowTypeItem(model);
}
this.PlStep2Container.Controls.Add(this.InitStepFlowTypeItem(model, i));
}
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeUsers()
{
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers("", "");
this.gridControl.DataSource = table;
DataTable Roletable = WorkFlowBillImpl.GetWorkFlowRole("");
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
GridDragMemo dragGrid = new GridDragMemo(this.gridView, this.txtEdit);
GridDragMemo dragGrid2 = new GridDragMemo(this.gridView2, this.txtEdit);
dragGrid.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted);
dragGrid2.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted);
}
/// <summary>
/// <para>说明:初始化部门数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeDeps()
{
DataTable table = WorkFlowBillImpl.GetDeps();
this.labelComboxEdit1.ValueMember = "departmentid";
this.labelComboxEdit1.ValueField = "departmentid";
this.labelComboxEdit1.TextField = "departmentname";
this.labelComboxEdit1.SetDataSource(table);
}
/// <summary>
/// <para>说明:设置面板值</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
private void SetFlowTypeItem(BillflowTypeModel model)
{
if (model != null)
{
this.ltestepGroup.EditText = model.billTypeName;
this.txtEdit.EditValue = model.operUser;
this.SelectBillflowTypeModel = model;
}
}
/// <summary>
/// <para>说明:初始化小类设置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private StepItem2 InitStepFlowTypeItem(BillflowTypeModel model, int pos)
{
StepItem2 item = new StepItem2();
item.TitleLabelObj.Text = pos + "、" + model.billTypeName;
if (SerpPage2Power)
{
item.DeletePabelObj.Enabled = false;
}
item.DeletePabelObj.Click += new EventHandler(OnDeletePabelObjClick);
item.DeletePabelObj.Tag = model;
item.Dock = DockStyle.Top;
item.Tag = item.TitleLabelObj.Tag = model;
item.SetHoverEvent(OnTitleLabelObjClick);
item.TabIndex = pos;
if (pos == 1)
{
SeletStepItem2Obj = item;
item.SetDefaultSelectItem(item);
}
return item;
}
/// <summary>
/// <para>说明:验证数据合法性</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-06 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
public bool VerifyNull()
{
foreach (System.Windows.Forms.Control item in groupBox1.Controls)
{
if (item is LabelTextEdit)
{
LabelTextEdit textEdit = item as LabelTextEdit;
if (string.IsNullOrEmpty(textEdit.EditText) && textEdit.Required)
{
textEdit.Focus();
MessageUtil.Show(textEdit.LabelText + "不能为空!");
return false;
}
}
}
return true;
}
#endregion
#region
/// <summary>
/// <para>说明:删除流转分类</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnDeletePabelObjClick(object sender, EventArgs e)
{
try
{
Panel deletePanel = sender as Panel;
if (deletePanel != null && deletePanel.Tag != null)
{
BillflowTypeModel model = deletePanel.Tag as BillflowTypeModel;
if (MessageUtil.Show("删除审批方案将同步删除方案步骤相关数据\r\n是否删除?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
try
{
// 验证删除存储过程
string tipMsg = string.Empty;
if (BaseImpl.deleteFlow(4, mMenuCode, model.typeCode, model.id, out tipMsg) == 1)
{
MessageUtil.Show("删除成功!");
// 重排列表
InitializeStepFlow();
}
else
{
MessageUtil.Show(tipMsg);
}
}
catch (Exception ex)
{
throw;
//MessageUtil.Show("删除失败:\r\n" + ex.Message);
}
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:点击流转步骤加载数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
/// <exception cref="System.NotImplementedException"></exception>
void OnTitleLabelObjClick(StepItem2 before, StepItem2 after)
{
try
{
BillflowTypeModel model = after.Tag as BillflowTypeModel;
this.SeletStepItem2Obj = after;
this.SetFlowTypeItem(model);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:部门下拉框值改变后</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnDepEditValueChanged(object sender, EventArgs e)
{
try
{
string depid = this.labelComboxEdit1.EditValue;
string mf = this.labelTextEdit1.EditText;
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers(depid, mf);
DataTable Roletable = WorkFlowBillImpl.GetWorkFlowRole(mf);
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:用户值改变后</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnUserEditValueChanged(object sender, EventArgs e)
{
try
{
string depid = this.labelComboxEdit1.EditValue;
string mf = this.labelTextEdit1.EditText;
DataTable table = WorkFlowBaseImpl.GetWorkFlowUsers(depid, mf);
DataTable Roletable = WorkFlowBaseImpl.GetWorkFlowRole(mf);
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:表格拖拽完成</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
protected void OnDragGridCompleted(object sender, GridDragMemoArgs e)
{
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0) return;
try
{
string userNames = string.Empty;
if (e.SourceGridViewObj.Name == "gridView")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += item["employeename"] + ",";
}
}
else if (e.SourceGridViewObj.Name == "gridView2")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += "{&" + item["roleName"] + "&},";
}
//userNames = PowerImpl.getAllPersonnel(userNames);
//if (userNames.Equals(",")) userNames = "";
}
//List<System.String> namesList = new List<System.String>((this.txtEdit.EditValue + "").Split(','));
//foreach (string item in userNames.Split(','))
//{
// if (!namesList.Exists(t => t.Equals(item)))
// {
// this.txtEdit.EditValue += item + ",";
// }
//}
this.txtEdit.EditValue += userNames;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ResourceKeys.OperFault);
}
}
#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>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,911 @@
/******************************
* 说明:小类流转类别设置
* 创建人:龚宇超
* 创建日期:2019-06-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business;
using Lskj.Model;
using Lskj.Control;
using Lskj.Control.Model;
using Lskj.Util;
using Lskj.Data;
using DevExpress.XtraEditors;
using System.Data.SqlClient;
using Lskj.Business.Impl;
namespace Lskj.Workflow.Control
{
/// <summary>
/// 小类流转类别设置
/// </summary>
public partial class StepPage3 : UserControl
{
private string mMenuCode;
/// <summary>
/// 当前选中小类对象
/// </summary>
private BillflowTypeModel SelectBillflowTypeModel;
/// <summary>
/// 当前选中的流转步骤对象
/// </summary>
public BillflowTypeStepModel SelectBillflowTypeStepModel;
/// <summary>
/// 缓存model
/// </summary>
public List<BillflowTypeModel> modellist = new List<BillflowTypeModel>();
public StepPage3()
{
InitializeComponent();
setCombox();
this.labelTextEdit1.TextEdit.EditValueChanged += new EventHandler(OnUserEditValueChanged);
this.labelComboxEdit1.TextEdit.EditValueChanged += new EventHandler(OnDepEditValueChanged);
this.FlowCharfillcolor.TextEdit.Click += new EventHandler(color_Click);
this.LeftFlowCharfillcolor.TextEdit.Click += new EventHandler(color_Click);
this.fontColor.TextEdit.Click += new EventHandler(color_Click);
this.LeftFontColor.TextEdit.Click += new EventHandler(color_Click);
}
#region
/// <summary>
/// 设置下拉框值
/// </summary>
public void setCombox()
{
DataTable flowcharTagIdTable = new DataTable();
flowcharTagIdTable.Columns.Add("dm");
flowcharTagIdTable.Columns.Add("mc");
flowcharTagIdTable.Rows.Add("1", "普通的长方形");
flowcharTagIdTable.Rows.Add("2", "圆角长方形");
flowcharTagIdTable.Rows.Add("3", "椭圆");
flowcharTagIdTable.Rows.Add("4", "菱形");
flowcharTagIdTable.Rows.Add("5", "平行四边形");
this.flowcharTagId.ValueMember = "dm";
this.flowcharTagId.ValueField = "dm";
this.flowcharTagId.TextField = "mc";
this.flowcharTagId.SetDataSource(flowcharTagIdTable);
DataTable fontFamilyTable = new DataTable();
fontFamilyTable.Columns.Add("dm");
fontFamilyTable.Columns.Add("mc");
fontFamilyTable.Rows.Add("1", "Microsoft YaHei");
fontFamilyTable.Rows.Add("2", "Arial");
fontFamilyTable.Rows.Add("3", "仿宋");
this.fontFamily.ValueMember = "dm";
this.fontFamily.ValueField = "dm";
this.fontFamily.TextField = "mc";
this.fontFamily.SetDataSource(fontFamilyTable);
DataTable fontWeightTable = new DataTable();
fontWeightTable.Columns.Add("dm");
fontWeightTable.Columns.Add("mc");
fontWeightTable.Rows.Add("1", "normal");
fontWeightTable.Rows.Add("2", "lighter");
fontWeightTable.Rows.Add("3", "bold");
this.fontWeight.ValueMember = "dm";
this.fontWeight.ValueField = "dm";
this.fontWeight.TextField = "mc";
this.fontWeight.SetDataSource(fontWeightTable);
}
/// <summary>
/// <para>说明:初始化界面控件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeControl(string menuCode)
{
try
{
this.mMenuCode = menuCode;
this.InitializeStepType();
this.InitializeStepTypeFlow();
this.InitializeUsers();
this.InitializeDeps();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:初始化小类</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeStepType()
{
this.comboBoxEdit1.Properties.Items.Clear();
modellist.Clear();
DataTable table = WorkFlowBillImpl.GetBillFlowType(mMenuCode);
if (table.Rows.Count == 0)
{
this.comboBoxEdit1.Visible = false;
return;
}
this.comboBoxEdit1.Visible = true;
for (int i = 0; i < table.Rows.Count; i++)
{
DataRow rowItem = table.Rows[i];
BillflowTypeModel model = new BillflowTypeModel(rowItem);
this.comboBoxEdit1.Properties.Items.Add(model.billTypeName);
modellist.Add(model);
if (i == 0)
{
this.SetStepTypeItem(model);
this.InitializeStepTypeFlow();
this.comboBoxEdit1.EditValue = model.billTypeName;//查询界面默认选中全部
this.comboBoxEdit1.RefreshEditValue();
}
// this.panelControl8.Controls.Add(this.InitStepTypeItem(model, i));
}
}
/// <summary>
/// 一键设置所有流程图设置
/// </summary>
public void InitAllStepTypeFlow()
{
if (this.SelectBillflowTypeModel != null)
{
this.PlStep2Container.Controls.Clear();
try
{
DataTable table = WorkFlowBillImpl.GetBillFlowTypeStep(mMenuCode, this.SelectBillflowTypeModel.id + "");
for (int i = table.Rows.Count; i > 0; i--)
{
DataRow rowItem = table.Rows[i - 1];
BaseflowTypeStepModel model = new BaseflowTypeStepModel(rowItem);
this.UpdateBillFlowTypeStep(model);
}
InitializeStepTypeFlow();
MessageUtil.Show("保存成功");
}
catch (Exception)
{
throw;
}
}
}
/// <summary>
/// <para>说明:初始化流转步骤</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitializeStepTypeFlow()
{
if (this.SelectBillflowTypeModel != null)
{
this.PlStep2Container.Controls.Clear();
DataTable table = WorkFlowBillImpl.GetBillFlowTypeStep(mMenuCode, this.SelectBillflowTypeModel.id + "");
if (table.Rows.Count == 0)
{
this.xtraTabControl1.Visible = false;
return;
}
for (int i = table.Rows.Count; i > 0; i--)
{
DataRow rowItem = table.Rows[i - 1];
BillflowTypeStepModel model = new BillflowTypeStepModel(rowItem);
// 设置面板值
if (i == 1)
{
this.SelectBillflowTypeStepModel = model;
this.SetStepTypeFlowItem(model);
}
this.PlStep2Container.Controls.Add(this.InitStepTypeFlowItem(model, i));
}
this.xtraTabControl1.Visible = true;
}
}
/// <summary>
/// 执行生成时候的存储过程
/// </summary>
/// <param name="modid"></param>
/// <param name="tagid"></param>
/// <param name="mid"></param>
/// <returns></returns>
public int createFlow(int tagid, string Dllcode, int typeID)
{
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
pMsg.Direction = ParameterDirection.Output;
SqlParameter returnValue = new SqlParameter("@return", SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
SqlParameter[] param =
{
new SqlParameter("@tagid",SqlDbType.Int),
new SqlParameter("@Dllcode",SqlDbType.VarChar,50),
new SqlParameter("@typeID",SqlDbType.Int),
pMsg,
returnValue
};
param[0].Value = tagid;
param[1].Value = Dllcode;
param[2].Value = typeID;
BaseImpl.ExecProcedure("[p_systemInsertSpeciesFlowInfo]", param);
return Convert.ToInt32(returnValue.Value.ToString());
}
/// <summary>
/// <para>说明:生成流转步骤</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-26 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void CreateFlowTypeStep()
{
if (this.SelectBillflowTypeModel != null)
{
if (createFlow(1, mMenuCode, this.SelectBillflowTypeModel.id) == 0)
{
// 重排控件
this.InitializeStepTypeFlow();
}
}
}
/// <summary>
/// <para>说明:更新小类流转步骤数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void UpdateBillFlowTypeStep()
{
if (this.VerifyNull())
{
// 获取基本数据
BillflowTypeStepModel model = this.SelectBillflowTypeStepModel;
model.stepTime = this.ltestepTime.EditText;
model.autoStep = this.lceautoStep.EditText;
model.viewUser = this.memoEdit1.EditValue + "";
model.operUser = this.memoEdit2.EditValue + "";
model.stepBackCode = this.ltestepBackCode.EditText;
//model.StepOverCond = this.lceStepOverCond.EditText;
model.StepOverCondBak = this.lceStepOverCondBak.EditText;
//model.autoStepCond = this.lteautoStepCond.EditText;
model.pStepCode = this.ltepStepCode.EditText;
model.SameAudited = this.lceSameAudited.EditText;
model.stepClosed = this.lcestepClosed.EditText;
model.comfirmOper = this.lcecomfirmOper.EditText;
model.remindOper = this.lceremindOper.EditText;
model.remindSelect = this.lceremindSelect.EditText;
model.signOper = this.lcesignOper.EditText;
model.FlowCharfillcolor = FlowCharfillcolor.EditText;
model.flowcharHeght = flowcharHeght.EditText;
model.flowcharTagId = flowcharTagId.EditValue;
model.flowcharWidth = flowcharWidth.EditText;
model.LeftFlowCharfillcolor = LeftFlowCharfillcolor.EditText;
model.LeftFlowCharWidth = LeftFlowCharWidth.EditText;
model.fontSize = fontSize.EditText;
model.fontWeight = fontWeight.EditText;
model.fontFamily = fontFamily.EditText;
model.flowcharLineHeght = flowcharLineHeght.EditText;
model.LeftFontColor = LeftFontColor.EditText;
model.fontColor = fontColor.EditText;
model.affirmbak = affirmbak.Text;
bool result = WorkFlowBillImpl.UpdateBillFlowTypeStep(model);
if (result)
{
this.SelectBillflowTypeStepModel = model;
}
MessageUtil.Show(result ? "保存成功!" : "保存失败!");
}
}
/// <summary>
/// <para>说明:一键更新所有小类流程图设置</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2019-10-12 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void UpdateBillFlowTypeStep(BaseflowTypeStepModel model)
{
if (this.VerifyNull())
{
model.FlowCharfillcolor = FlowCharfillcolor.EditText;
model.flowcharHeght = flowcharHeght.EditText;
model.flowcharTagId = flowcharTagId.EditValue;
model.flowcharWidth = flowcharWidth.EditText;
model.LeftFlowCharfillcolor = LeftFlowCharfillcolor.EditText;
model.LeftFlowCharWidth = LeftFlowCharWidth.EditText;
model.fontSize = fontSize.EditText;
model.fontWeight = fontWeight.EditText;
model.fontFamily = fontFamily.EditText;
model.flowcharLineHeght = flowcharLineHeght.EditText;
model.LeftFontColor = LeftFontColor.EditText;
model.fontColor = fontColor.EditText;
model.affirmbak = affirmbak.Text;
bool result = WorkFlowBillImpl.UpdateAllBillFlow(model);
}
}
/// <summary>
/// <para>说明:重置权限</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-28 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void ResetPurview()
{
try
{
if (this.SelectBillflowTypeStepModel != null && this.SelectBillflowTypeModel != null)
{
if (MessageUtil.Show("确定重置当前审批方案[" + this.SelectBillflowTypeModel.billTypeName + "]权限?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
WorkFlowBillImpl.ResetPurview(mMenuCode, this.SelectBillflowTypeStepModel.id);
MessageUtil.Show("重置成功!");
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
LogUtil.WriteError("重置失败!", ex);
}
}
/// <summary>
/// <para>说明:初始化权限</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-28 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitPurview()
{
try
{
if (this.SelectBillflowTypeModel != null)
{
if (MessageUtil.Show("确定初始化所有审批方案权限?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
WorkFlowBillImpl.InitPurview(mMenuCode);
MessageUtil.Show("初始化成功!");
}
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
LogUtil.WriteError("初始化权限出错!", ex);
}
}
/// <summary>
/// <para>说明:生成流程图</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-28 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void InitFlow()
{
try
{
// 获取基本数据
BillflowTypeStepModel model = this.SelectBillflowTypeStepModel;
if (this.SelectBillflowTypeModel != null)
{
// 保存流转步骤
FlowChart flowchart = new FlowChart();
flowchart.SetUrl("http://114.116.135.188:9004/lserp_xcl/pages/flowchart/FlowChart.html?ModuleId=" + model.typeCode + "&ModuleType=" + "1" + "&billType=" + model.billType);
flowchart.ShowDialog();
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeUsers()
{
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers("", "");
DataTable Roletable = WorkFlowBillImpl.GetWorkFlowRole("");
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
GridDragMemo dragGrid = new GridDragMemo(this.gridView, this.memoEdit1);
dragGrid.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted);
GridDragMemo dragGrid2 = new GridDragMemo(this.gridView, this.memoEdit2);
dragGrid2.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted2);
GridDragMemo dragGrid3 = new GridDragMemo(this.gridView2, this.memoEdit1);
dragGrid3.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted);
GridDragMemo dragGrid4 = new GridDragMemo(this.gridView2, this.memoEdit2);
dragGrid4.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted2);
}
/// <summary>
/// <para>说明:初始化部门数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeDeps()
{
DataTable table = WorkFlowBillImpl.GetDeps();
this.labelComboxEdit1.ValueMember = "departmentid";
this.labelComboxEdit1.ValueField = "departmentid";
this.labelComboxEdit1.TextField = "departmentname";
this.labelComboxEdit1.SetDataSource(table);
}
/// <summary>
/// <para>说明:设置面板值</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
public void SetStepTypeFlowItem(BillflowTypeStepModel model)
{
if (model != null)
{
this.ltestepGroup.EditText = model.stepGroup;
this.ltestepName.EditText = model.stepName;
this.ltestepTime.EditText = model.stepTime;
this.ltestepBackCode.EditText = model.stepBackCode;
//this.lteautoStepCond.EditText = model.autoStepCond;
//this.lceStepOverCond.EditText = model.StepOverCond;
this.ltestepCode.EditText = model.stepCode;
this.ltepStepCode.EditText = model.pStepCode;
this.lceStepOverCondBak.EditText = model.StepOverCondBak;
this.lceremindOper.EditText = model.remindOper;
this.lcecomfirmOper.EditText = model.comfirmOper;
this.lcesignOper.EditText = model.signOper;
this.lceautoStep.EditText = model.autoStep;
this.lceSameAudited.EditText = model.SameAudited;
this.lcestepClosed.EditText = model.stepClosed;
this.lceremindSelect.EditText = model.remindSelect;
this.memoEdit1.EditValue = model.viewUser;
this.memoEdit2.EditValue = model.operUser;
this.flowcharTagId.EditText = string.IsNullOrWhiteSpace(model.flowcharTagId) || model.flowcharTagId == "0" ? "1" : model.flowcharTagId;
this.flowcharWidth.EditText = string.IsNullOrWhiteSpace(model.FlowCharfillcolor) || model.flowcharWidth == "0" ? "200" : model.flowcharWidth;
this.flowcharHeght.EditText = string.IsNullOrWhiteSpace(model.FlowCharfillcolor) || model.flowcharHeght == "0" ? "50" : model.flowcharHeght;
this.FlowCharfillcolor.EditText = string.IsNullOrWhiteSpace(model.FlowCharfillcolor) ? "#FFFFFF" : model.FlowCharfillcolor;
this.FlowCharfillcolor.TextEdit.BackColor = ColorTranslator.FromHtml(this.FlowCharfillcolor.EditText);
this.LeftFlowCharfillcolor.EditText = string.IsNullOrWhiteSpace(model.LeftFlowCharfillcolor) ? "#FFFFFF" : model.LeftFlowCharfillcolor;
this.LeftFlowCharfillcolor.TextEdit.BackColor = ColorTranslator.FromHtml(this.LeftFlowCharfillcolor.EditText);
this.fontSize.EditText = string.IsNullOrWhiteSpace(model.fontSize) ? "18" : model.fontSize;
this.fontWeight.EditText = string.IsNullOrWhiteSpace(model.fontWeight) ? "normal" : model.fontWeight;
this.LeftFlowCharWidth.EditText = string.IsNullOrWhiteSpace(model.LeftFlowCharWidth) ? "160" : model.LeftFlowCharWidth;
this.fontFamily.EditText = string.IsNullOrWhiteSpace(model.fontFamily) ? "Microsoft YaHei" : model.fontFamily;
this.flowcharLineHeght.EditText = string.IsNullOrWhiteSpace(model.fontFamily) ? "40" : model.flowcharLineHeght;
this.LeftFontColor.EditText = string.IsNullOrWhiteSpace(model.fontFamily) ? "#000000" : model.LeftFontColor;
this.LeftFontColor.TextEdit.BackColor = ColorTranslator.FromHtml(this.LeftFontColor.EditText);
this.fontColor.EditText = string.IsNullOrWhiteSpace(model.fontColor) ? "#000000" : model.fontColor;
this.fontColor.TextEdit.BackColor = ColorTranslator.FromHtml(this.fontColor.EditText);
this.affirmbak.Text = model.affirmbak;
this.SelectBillflowTypeStepModel = model;
}
}
/// <summary>
/// <para>说明:设置面板值</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="model">The model.</param>
private void SetStepTypeItem(BillflowTypeModel model)
{
if (model != null)
{
this.SelectBillflowTypeModel = model;
}
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="flowName">Name of the flow.</param>
private StepItem3 InitStepTypeFlowItem(BillflowTypeStepModel model, int pos)
{
StepItem3 item = new StepItem3();
item.TitleLabelObj.Text = pos + "、" + model.stepName + " " + model.stepCode;
item.DeletePabelObj.Visible = false;
item.Dock = DockStyle.Top;
item.Tag = item.TitleLabelObj.Tag = model;
item.SetHoverEvent(OnBillFlowLabelObjClick);
if (pos == 1)
{
item.SetDefaultSelectItem(item);
}
return item;
}
/// <summary>
/// <para>说明:初始化小类设置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private StepTypeItem InitStepTypeItem(BillflowTypeModel model, int pos)
{
StepTypeItem item = new StepTypeItem();
item.LabelObj.Text = model.billTypeName;
item.Dock = DockStyle.Left;
item.Tag = item.LabelObj.Tag = model;
item.SetClickEvent(OnBillFlowTypeLabelObjClick);
if (pos == 1)
{
item.SetDefaultSelectItem(item);
}
return item;
}
/// <summary>
/// <para>说明:验证数据合法性</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-06 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
public bool VerifyNull()
{
foreach (System.Windows.Forms.Control item in panelControl9.Controls)
{
if (item is LabelTextEdit)
{
LabelTextEdit textEdit = item as LabelTextEdit;
if (string.IsNullOrEmpty(textEdit.EditText) && textEdit.Required)
{
textEdit.Focus();
MessageUtil.Show(textEdit.LabelText + "不能为空!");
return false;
}
}
}
return true;
}
#endregion
#region
/// <summary>
/// <para>说明:点击小类设置切换流转步骤加载数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
/// <exception cref="System.NotImplementedException"></exception>
void OnBillFlowLabelObjClick(StepItem3 before, StepItem3 after)
{
try
{
BillflowTypeStepModel model = after.Tag as BillflowTypeStepModel;
this.SetStepTypeFlowItem(model);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:点击小类设置切换流转步骤加载数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
/// <exception cref="System.NotImplementedException"></exception>
void OnBillFlowTypeLabelObjClick(StepTypeItem before, StepTypeItem after)
{
try
{
BillflowTypeModel model = after.Tag as BillflowTypeModel;
this.SetStepTypeItem(model);
this.InitializeStepTypeFlow();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:部门下拉框值改变后</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnDepEditValueChanged(object sender, EventArgs e)
{
try
{
string depid = this.labelComboxEdit1.EditValue;
string mf = this.labelTextEdit1.EditText;
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers(depid, mf);
this.gridControl.DataSource = table;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:用户值改变后</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnUserEditValueChanged(object sender, EventArgs e)
{
try
{
string depid = this.labelComboxEdit1.EditValue;
string mf = this.labelTextEdit1.EditText;
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers(depid, mf);
DataTable Roletable = WorkFlowBillImpl.GetWorkFlowRole(mf);
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:表格拖拽完成</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
void OnDragGridCompleted(object sender, GridDragMemoArgs e)
{
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0) return;
try
{
string userNames = string.Empty;
string RoleNames = string.Empty;
if (e.SourceGridViewObj.Name == "gridView")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += item["employeename"] + ",";
}
}
else if (e.SourceGridViewObj.Name == "gridView2")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += "{&" + item["roleName"] + "&},";
}
}
this.memoEdit1.EditValue += userNames;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ResourceKeys.OperFault);
}
}
/// <summary>
/// <para>说明:表格拖拽完成</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
void OnDragGridCompleted2(object sender, GridDragMemoArgs e)
{
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0) return;
try
{
string userNames = string.Empty;
string RoleNames = string.Empty;
if (e.SourceGridViewObj.Name == "gridView")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += item["employeename"] + ",";
}
}
else if (e.SourceGridViewObj.Name == "gridView2")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += "{&" + item["roleName"] + "&},";
}
}
this.memoEdit2.EditValue += userNames;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ResourceKeys.OperFault);
}
}
/// <summary>
/// 颜色框选中事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void color_Click(object sender, EventArgs e)
{
try
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
TextEdit txt = (sender as TextEdit);
txt.BackColor = this.colorDialog.Color;
//获取所选择的颜色
Color colorChoosed = this.colorDialog.Color;
string colorHtml = ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(colorChoosed.R, colorChoosed.G, colorChoosed.B));
txt.EditValue = colorHtml;
}
else
{
return;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 选中节点切换步骤
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void comboBoxEdit1_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
int str = comboBoxEdit1.SelectedIndex;
if (str >= 0)
{
this.SetStepTypeItem(modellist[str]);
this.InitializeStepTypeFlow();
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// 切换流程图预览或权限时触发
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
{
try
{
if (xtraTabControl1.SelectedTabPage == xtraTabPage2)//进行tabpage位置判断
{
this.xtraTabPage2.Controls.Clear();
// 获取基本数据
ModuleWebView moduleWebView1 = new ModuleWebView();
this.xtraTabPage2.Controls.Add(moduleWebView1);
// 获取单据数据
BillflowTypeStepModel model = this.SelectBillflowTypeStepModel;
string url = SystemInfo.Instance.OAUrl + "/pages/flowchart/FlowChart.html?ModuleId=" + model.typeCode + "&ModuleType=" + "1" + "&billType=" + model.billType;
moduleWebView1.Navigate(url);
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
#endregion
}
}
@@ -0,0 +1,498 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="xtraScrollableControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelleft.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabPage1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabPage2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="webBrowser1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl10.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl9.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="memoEdit3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="affirmbak.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="affirmbak.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharTagId.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontFamily.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontWeight.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontColor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FlowCharfillcolor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontSize.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharLineHeght.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharHeght.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharWidth.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LeftFlowCharfillcolor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LeftFontColor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LeftFlowCharWidth.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharTagId.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontFamily.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontWeight.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontColor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FlowCharfillcolor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fontSize.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharLineHeght.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharHeght.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flowcharWidth.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LeftFlowCharfillcolor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LeftFontColor.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LeftFlowCharWidth.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="memoEdit3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl10.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="memoEdit2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="memoEdit2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="memoEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="memoEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl9.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceSameAudited.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lcesignOper.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lcecomfirmOper.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceremindOper.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceStepOverCondBak.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceremindSelect.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lcestepClosed.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceautoStep.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepName.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepBackCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltepStepCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepTime.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepGroup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceSameAudited.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lcesignOper.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lcecomfirmOper.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceremindOper.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceStepOverCondBak.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceremindSelect.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lcestepClosed.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="lceautoStep.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepName.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepBackCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltepStepCode.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepTime.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ltestepGroup.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabControl2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabControl2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabPage3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="gridControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="xtraTabPage4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="gridControl.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="gridControl1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="gridControl.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="labelTextEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="labelComboxEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="labelTextEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="labelComboxEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="webBrowser1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelleft.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PlStep2Container.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="comboBoxEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PlStep2Container.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="comboBoxEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="panelControl2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PlStep1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+456
View File
@@ -0,0 +1,456 @@
namespace Lskj.Workflow.Control
{
partial class StepPage4
{
/// <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.xtraScrollableControl1 = new DevExpress.XtraEditors.XtraScrollableControl();
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.memoEdit2 = new DevExpress.XtraEditors.MemoEdit();
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.memoEdit1 = new DevExpress.XtraEditors.MemoEdit();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage();
this.gridControl = new DevExpress.XtraGrid.GridControl();
this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.panelControl6 = new DevExpress.XtraEditors.PanelControl();
this.labelTextEdit1 = new Lskj.Control.LabelTextEdit();
this.labelComboxEdit1 = new Lskj.Control.LabelComboxEdit();
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
this.xtraScrollableControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit();
this.panelControl4.SuspendLayout();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.memoEdit2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
this.panelControl3.SuspendLayout();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
this.groupBox3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit();
this.xtraTabControl2.SuspendLayout();
this.xtraTabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit();
this.xtraTabPage4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).BeginInit();
this.panelControl6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
this.SuspendLayout();
//
// xtraScrollableControl1
//
this.xtraScrollableControl1.Appearance.BackColor = System.Drawing.Color.White;
this.xtraScrollableControl1.Appearance.Options.UseBackColor = true;
this.xtraScrollableControl1.AutoScroll = false;
this.xtraScrollableControl1.Controls.Add(this.panelControl4);
this.xtraScrollableControl1.Controls.Add(this.panelControl3);
this.xtraScrollableControl1.Controls.Add(this.panelControl1);
this.xtraScrollableControl1.Controls.Add(this.panelControl2);
this.xtraScrollableControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraScrollableControl1.Location = new System.Drawing.Point(0, 0);
this.xtraScrollableControl1.Name = "xtraScrollableControl1";
this.xtraScrollableControl1.Size = new System.Drawing.Size(724, 499);
this.xtraScrollableControl1.TabIndex = 8;
//
// panelControl4
//
this.panelControl4.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl4.Appearance.Options.UseBackColor = true;
this.panelControl4.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl4.Controls.Add(this.groupBox4);
this.panelControl4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl4.Location = new System.Drawing.Point(0, 249);
this.panelControl4.Name = "panelControl4";
this.panelControl4.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panelControl4.Size = new System.Drawing.Size(540, 250);
this.panelControl4.TabIndex = 13;
//
// groupBox4
//
this.groupBox4.Controls.Add(this.memoEdit2);
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox4.Location = new System.Drawing.Point(5, 0);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(535, 250);
this.groupBox4.TabIndex = 5;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "终审回退人员列表(双击或拖拽操作员即可)";
//
// memoEdit2
//
this.memoEdit2.Dock = System.Windows.Forms.DockStyle.Fill;
this.memoEdit2.Location = new System.Drawing.Point(3, 18);
this.memoEdit2.Name = "memoEdit2";
this.memoEdit2.Size = new System.Drawing.Size(529, 229);
this.memoEdit2.TabIndex = 1;
//
// panelControl3
//
this.panelControl3.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl3.Appearance.Options.UseBackColor = true;
this.panelControl3.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl3.Controls.Add(this.groupBox1);
this.panelControl3.Dock = System.Windows.Forms.DockStyle.Top;
this.panelControl3.Location = new System.Drawing.Point(0, 20);
this.panelControl3.Name = "panelControl3";
this.panelControl3.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panelControl3.Size = new System.Drawing.Size(540, 229);
this.panelControl3.TabIndex = 11;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.memoEdit1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(5, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(535, 229);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "终审回退Sql";
//
// memoEdit1
//
this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Fill;
this.memoEdit1.EditValue = "";
this.memoEdit1.Location = new System.Drawing.Point(3, 18);
this.memoEdit1.Name = "memoEdit1";
this.memoEdit1.Size = new System.Drawing.Size(529, 208);
this.memoEdit1.TabIndex = 1;
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl1.Controls.Add(this.groupBox3);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Right;
this.panelControl1.Location = new System.Drawing.Point(540, 20);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.panelControl1.Size = new System.Drawing.Size(184, 479);
this.panelControl1.TabIndex = 9;
//
// groupBox3
//
this.groupBox3.Controls.Add(this.xtraTabControl2);
this.groupBox3.Controls.Add(this.panelControl6);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox3.Location = new System.Drawing.Point(5, 0);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(179, 479);
this.groupBox3.TabIndex = 6;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "待选操作员";
//
// xtraTabControl2
//
this.xtraTabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraTabControl2.Location = new System.Drawing.Point(3, 18);
this.xtraTabControl2.Name = "xtraTabControl2";
this.xtraTabControl2.SelectedTabPage = this.xtraTabPage3;
this.xtraTabControl2.Size = new System.Drawing.Size(173, 394);
this.xtraTabControl2.TabIndex = 9;
this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage3,
this.xtraTabPage4});
//
// xtraTabPage3
//
this.xtraTabPage3.Controls.Add(this.gridControl1);
this.xtraTabPage3.Name = "xtraTabPage3";
this.xtraTabPage3.Size = new System.Drawing.Size(167, 365);
this.xtraTabPage3.Text = "角色名称";
//
// gridControl1
//
this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridControl1.Location = new System.Drawing.Point(0, 0);
this.gridControl1.MainView = this.gridView2;
this.gridControl1.Name = "gridControl1";
this.gridControl1.Size = new System.Drawing.Size(167, 365);
this.gridControl1.TabIndex = 4;
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView2,
this.gridView3});
//
// gridView2
//
this.gridView2.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.gridView2.Appearance.HeaderPanel.Options.UseFont = true;
this.gridView2.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.gridView2.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gridView2.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.gridView2.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.gridView2.Appearance.Preview.Options.UseFont = true;
this.gridView2.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.gridView2.Appearance.Row.Options.UseBackColor = true;
this.gridView2.Appearance.Row.Options.UseFont = true;
this.gridView2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.gridColumn3});
this.gridView2.GridControl = this.gridControl1;
this.gridView2.IndicatorWidth = 30;
this.gridView2.Name = "gridView2";
this.gridView2.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
this.gridView2.OptionsBehavior.Editable = false;
this.gridView2.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
this.gridView2.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
this.gridView2.OptionsSelection.MultiSelect = true;
this.gridView2.OptionsView.AllowHtmlDrawHeaders = true;
this.gridView2.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
this.gridView2.OptionsView.RowAutoHeight = true;
this.gridView2.OptionsView.ShowGroupPanel = false;
this.gridView2.PaintStyleName = "Skin";
//
// gridColumn3
//
this.gridColumn3.Caption = "角色";
this.gridColumn3.FieldName = "roleName";
this.gridColumn3.Name = "gridColumn3";
this.gridColumn3.Visible = true;
this.gridColumn3.VisibleIndex = 0;
this.gridColumn3.Width = 60;
//
// gridView3
//
this.gridView3.GridControl = this.gridControl1;
this.gridView3.Name = "gridView3";
//
// xtraTabPage4
//
this.xtraTabPage4.Controls.Add(this.gridControl);
this.xtraTabPage4.Name = "xtraTabPage4";
this.xtraTabPage4.Size = new System.Drawing.Size(167, 365);
this.xtraTabPage4.Text = "人员名称";
//
// gridControl
//
this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridControl.Location = new System.Drawing.Point(0, 0);
this.gridControl.MainView = this.gridView;
this.gridControl.Name = "gridControl";
this.gridControl.Size = new System.Drawing.Size(167, 365);
this.gridControl.TabIndex = 3;
this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView,
this.gridView1});
//
// gridView
//
this.gridView.Appearance.HeaderPanel.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.HeaderPanel.Options.UseFont = true;
this.gridView.Appearance.HeaderPanel.Options.UseTextOptions = true;
this.gridView.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gridView.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
this.gridView.Appearance.Preview.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.Preview.Options.UseFont = true;
this.gridView.Appearance.Row.Font = new System.Drawing.Font("宋体", 9F);
this.gridView.Appearance.Row.Options.UseBackColor = true;
this.gridView.Appearance.Row.Options.UseFont = true;
this.gridView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.gridView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.gridColumn2,
this.gridColumn1});
this.gridView.GridControl = this.gridControl;
this.gridView.IndicatorWidth = 30;
this.gridView.Name = "gridView";
this.gridView.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
this.gridView.OptionsBehavior.Editable = false;
this.gridView.OptionsClipboard.CopyColumnHeaders = DevExpress.Utils.DefaultBoolean.False;
this.gridView.OptionsFilter.ShowAllTableValuesInCheckedFilterPopup = false;
this.gridView.OptionsSelection.MultiSelect = true;
this.gridView.OptionsView.AllowHtmlDrawHeaders = true;
this.gridView.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
this.gridView.OptionsView.RowAutoHeight = true;
this.gridView.OptionsView.ShowGroupPanel = false;
this.gridView.PaintStyleName = "Skin";
//
// gridColumn2
//
this.gridColumn2.Caption = "工号";
this.gridColumn2.FieldName = "loginaccount";
this.gridColumn2.Name = "gridColumn2";
this.gridColumn2.Visible = true;
this.gridColumn2.VisibleIndex = 0;
this.gridColumn2.Width = 60;
//
// gridColumn1
//
this.gridColumn1.Caption = "姓名";
this.gridColumn1.FieldName = "employeename";
this.gridColumn1.Name = "gridColumn1";
this.gridColumn1.Visible = true;
this.gridColumn1.VisibleIndex = 1;
this.gridColumn1.Width = 70;
//
// gridView1
//
this.gridView1.GridControl = this.gridControl;
this.gridView1.Name = "gridView1";
//
// panelControl6
//
this.panelControl6.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl6.Appearance.Options.UseBackColor = true;
this.panelControl6.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl6.Controls.Add(this.labelTextEdit1);
this.panelControl6.Controls.Add(this.labelComboxEdit1);
this.panelControl6.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelControl6.Location = new System.Drawing.Point(3, 412);
this.panelControl6.Name = "panelControl6";
this.panelControl6.Size = new System.Drawing.Size(173, 64);
this.panelControl6.TabIndex = 8;
//
// labelTextEdit1
//
this.labelTextEdit1.BackColor = System.Drawing.Color.Transparent;
this.labelTextEdit1.EditText = "";
this.labelTextEdit1.FontSize = 0F;
this.labelTextEdit1.LabelText = "模糊";
this.labelTextEdit1.Location = new System.Drawing.Point(3, 8);
this.labelTextEdit1.Margin = new System.Windows.Forms.Padding(4);
this.labelTextEdit1.Model = null;
this.labelTextEdit1.Name = "labelTextEdit1";
this.labelTextEdit1.NullText = "";
this.labelTextEdit1.ReadOnly = false;
this.labelTextEdit1.Required = false;
this.labelTextEdit1.Size = new System.Drawing.Size(164, 21);
this.labelTextEdit1.TabIndex = 1;
//
// labelComboxEdit1
//
this.labelComboxEdit1.BackColor = System.Drawing.Color.Transparent;
this.labelComboxEdit1.EditText = "";
this.labelComboxEdit1.FontSize = 0F;
this.labelComboxEdit1.LabelText = "部门";
this.labelComboxEdit1.Location = new System.Drawing.Point(3, 35);
this.labelComboxEdit1.Margin = new System.Windows.Forms.Padding(4);
this.labelComboxEdit1.Model = null;
this.labelComboxEdit1.Name = "labelComboxEdit1";
this.labelComboxEdit1.NullText = "";
this.labelComboxEdit1.ReadOnly = false;
this.labelComboxEdit1.Required = false;
this.labelComboxEdit1.Size = new System.Drawing.Size(164, 21);
this.labelComboxEdit1.TabIndex = 0;
//
// panelControl2
//
this.panelControl2.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
this.panelControl2.Appearance.Options.UseBackColor = true;
this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top;
this.panelControl2.Location = new System.Drawing.Point(0, 0);
this.panelControl2.Name = "panelControl2";
this.panelControl2.Padding = new System.Windows.Forms.Padding(0, 15, 0, 0);
this.panelControl2.Size = new System.Drawing.Size(724, 20);
this.panelControl2.TabIndex = 5;
//
// StepPage4
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.xtraScrollableControl1);
this.Name = "StepPage4";
this.Size = new System.Drawing.Size(724, 499);
this.xtraScrollableControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit();
this.panelControl4.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.memoEdit2.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
this.panelControl3.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit();
this.xtraTabControl2.ResumeLayout(false);
this.xtraTabPage3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit();
this.xtraTabPage4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl6)).EndInit();
this.panelControl6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.XtraScrollableControl xtraScrollableControl1;
private DevExpress.XtraEditors.PanelControl panelControl2;
private DevExpress.XtraEditors.PanelControl panelControl1;
private System.Windows.Forms.GroupBox groupBox3;
private DevExpress.XtraTab.XtraTabControl xtraTabControl2;
private DevExpress.XtraTab.XtraTabPage xtraTabPage3;
public DevExpress.XtraGrid.GridControl gridControl1;
private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
private DevExpress.XtraGrid.Views.Grid.GridView gridView3;
private DevExpress.XtraTab.XtraTabPage xtraTabPage4;
public DevExpress.XtraGrid.GridControl gridControl;
private DevExpress.XtraGrid.Views.Grid.GridView gridView;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
private DevExpress.XtraEditors.PanelControl panelControl6;
private Lskj.Control.LabelTextEdit labelTextEdit1;
private Lskj.Control.LabelComboxEdit labelComboxEdit1;
private DevExpress.XtraEditors.PanelControl panelControl3;
private System.Windows.Forms.GroupBox groupBox1;
private DevExpress.XtraEditors.MemoEdit memoEdit1;
private DevExpress.XtraEditors.PanelControl panelControl4;
private System.Windows.Forms.GroupBox groupBox4;
private DevExpress.XtraEditors.MemoEdit memoEdit2;
}
}
@@ -0,0 +1,252 @@
using Lskj.Business;
using Lskj.Business.Impl;
using Lskj.Control;
using Lskj.Control.Model;
using Lskj.Data;
using Lskj.Model;
using Lskj.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.Workflow.Control
{
public partial class StepPage4 : UserControl
{
/// <summary>
/// 模块编号
/// </summary>
private string mMenuCode;
/// <summary>
/// 基础对象
/// </summary>
public ModuleModel moduleModel;
/// <summary>
/// 主页转过来的操作权限
/// </summary>
public bool SerpPagePower;
public StepPage4()
{
InitializeComponent();
this.labelTextEdit1.TextEdit.EditValueChanged += new EventHandler(OnUserEditValueChanged);
this.labelComboxEdit1.TextEdit.EditValueChanged += new EventHandler(OnDepEditValueChanged);
}
/// <summary>
/// <para>说明:部门下拉框值改变后</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnDepEditValueChanged(object sender, EventArgs e)
{
string depid = this.labelComboxEdit1.EditValue;
string mf = this.labelTextEdit1.EditText;
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers(depid, mf);
this.gridControl.DataSource = table;
}
/// <summary>
/// <para>说明:用户值改变后</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnUserEditValueChanged(object sender, EventArgs e)
{
string depid = this.labelComboxEdit1.EditValue;
string mf = this.labelTextEdit1.EditText;
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers(depid, mf);
DataTable Roletable = WorkFlowBillImpl.GetWorkFlowRole(mf);
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
}
/// <summary>
/// 初始化
/// </summary>
/// <param name="menuCode"></param>
public void InitializeControl(string menuCode)
{
this.mMenuCode = menuCode;
this.InitializeUsers();
this.InitializeDeps();
this.initialLoad();
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeUsers()
{
DataTable table = WorkFlowBillImpl.GetWorkFlowUsers("", "");
DataTable Roletable = WorkFlowBillImpl.GetWorkFlowRole("");
this.gridControl.DataSource = table;
this.gridControl1.DataSource = Roletable;
GridDragMemo dragGrid2 = new GridDragMemo(this.gridView, this.memoEdit2);
dragGrid2.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted2);
GridDragMemo dragGrid4 = new GridDragMemo(this.gridView2, this.memoEdit2);
dragGrid4.OnDragComplete += new GridFragMemoEditCompleteEventHandler(OnDragGridCompleted2);
}
/// <summary>
/// <para>说明:初始化部门数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeDeps()
{
DataTable table = WorkFlowBillImpl.GetDeps();
this.labelComboxEdit1.ValueMember = "departmentid";
this.labelComboxEdit1.ValueField = "departmentid";
this.labelComboxEdit1.TextField = "departmentname";
this.labelComboxEdit1.SetDataSource(table);
}
/// <summary>
/// <para>说明:表格拖拽完成</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-14 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
void OnDragGridCompleted2(object sender, GridDragMemoArgs e)
{
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0) return;
try
{
string userNames = string.Empty;
string RoleNames = string.Empty;
if (e.SourceGridViewObj.Name == "gridView")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += item["employeename"] + ",";
}
}
else if (e.SourceGridViewObj.Name == "gridView2")
{
foreach (DataRow item in e.GridViewSelectRows)
{
userNames += "{&" + item["roleName"] + "&},";
}
//userNames = PowerImpl.getAllPersonnel(userNames);
//if (userNames.Equals(",")) userNames = "";
}
//List<System.String> namesList = new List<System.String>((this.memoEdit2.EditValue + "").Split(','));
//foreach (string item in userNames.Split(','))
//{
// if (!namesList.Exists(t => t.Equals(item)))
// {
// this.memoEdit2.EditValue += item + ",";
// }
//}
this.memoEdit2.EditValue += userNames;
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex);
MessageUtil.Show(ResourceKeys.OperFault);
}
}
/// <summary>
/// <para>说明:验证数据合法性</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-06 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
public bool VerifyNull()
{
foreach (System.Windows.Forms.Control item in groupBox1.Controls)
{
if (item is LabelTextEdit)
{
LabelTextEdit textEdit = item as LabelTextEdit;
if (string.IsNullOrEmpty(textEdit.EditText) && textEdit.Required)
{
textEdit.Focus();
MessageUtil.Show(textEdit.LabelText + "不能为空!");
return false;
}
}
}
return true;
}
public void UpdateFinalReturnSettings()
{
if (this.VerifyNull())
{
string sql = this.memoEdit1.EditValue + "";
string name = this.memoEdit2.EditValue + "";
bool result = WorkFlowBillImpl.UpdateFinalReturnSettings(sql, name, mMenuCode);
MessageUtil.Show(result ? "保存成功!" : "保存失败!");
}
}
//初始加载终审回退sql和终审回退人员信息
public void initialLoad()
{
DataTable dataTable = WorkFlowBillImpl.getFinalBack(mMenuCode);
if (dataTable.Rows.Count > 0)
{
this.memoEdit1.Text = dataTable.Rows[0]["OverBackSql"] + "";
this.memoEdit2.Text = dataTable.Rows[0]["OverBackOper"] + "";
}
}
}
}
@@ -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>
+102
View File
@@ -0,0 +1,102 @@
namespace Lskj.Workflow.Control
{
partial class StepTypeItem
{
/// <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.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(40, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(70, 2);
this.panel1.TabIndex = 0;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Controls.Add(this.panel1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Location = new System.Drawing.Point(0, 38);
this.panel3.Name = "panel3";
this.panel3.Padding = new System.Windows.Forms.Padding(40, 0, 40, 0);
this.panel3.Size = new System.Drawing.Size(150, 2);
this.panel3.TabIndex = 2;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.label1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(150, 38);
this.panel2.TabIndex = 3;
//
// label1
//
this.label1.Cursor = System.Windows.Forms.Cursors.Hand;
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Font = new System.Drawing.Font("宋体", 9F);
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(150, 38);
this.label1.TabIndex = 0;
this.label1.Text = "生产入库审批";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// StepTypeItem
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel3);
this.Name = "StepTypeItem";
this.Size = new System.Drawing.Size(150, 40);
this.panel3.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label1;
}
}
@@ -0,0 +1,151 @@
/******************************
* 说明:小类控件
* 创建人:龚宇超
* 创建日期:2019-06-24
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Business.Impl;
using Lskj.Control;
namespace Lskj.Workflow.Control
{
/// <summary>
/// 小类控件
/// </summary>
public partial class StepTypeItem : UserControl
{
/// <summary>
/// 默认选中
/// </summary>
private static StepTypeItem mDdefaultItem;
private ButtonHoverEventHandler mClickEvent;
public Color SelectColor = Color.FromArgb(62, 146, 248);
public Label LabelObj { get { return this.label1; } }
public Panel PanelObj { get { return this.panel1; } }
public delegate void ButtonHoverEventHandler(StepTypeItem before, StepTypeItem after);
public StepTypeItem()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:设置选中颜色</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void SetSelectItemColor()
{
this.label1.ForeColor = this.SelectColor;
this.panel1.BackColor = this.SelectColor;
}
/// <summary>
/// <para>说明:设置默认颜色</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
public void SetDefaultItemColor()
{
this.label1.ForeColor = Color.Black;
this.panel1.BackColor = Color.White;
}
/// <summary>
/// <para>说明:设置默认选中的Button</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="item">The item.</param>
public void SetDefaultSelectItem(StepTypeItem item)
{
mDdefaultItem = item;
mDdefaultItem.SetSelectItemColor();
}
/// <summary>
/// <para>说明:注册鼠标点击事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-08-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="hoverEvent">The hover event.</param>
/// <param name="eventType">Type of the event.</param>
public void SetClickEvent(ButtonHoverEventHandler clickEvent)
{
this.mClickEvent = clickEvent;
this.label1.MouseClick += new MouseEventHandler(this.OnStepTypeItemClick);
}
/// <summary>
/// <para>说明:</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnStepTypeItemClick(object sender, EventArgs e)
{
try
{
StepTypeItem item = null;
if (sender is StepTypeItem)
item = sender as StepTypeItem;
if (sender is Label)
item = (sender as Label).Parent.Parent as StepTypeItem;
if (item != null)
{
if (mDdefaultItem != null)
{
mDdefaultItem.SetDefaultItemColor();
}
item.SetSelectItemColor();
}
if (mDdefaultItem != item)
{
if (mClickEvent != null)
{
this.mClickEvent(mDdefaultItem, item);
}
mDdefaultItem = item;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
}
}
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+43
View File
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lskj.Util;
using Lskj.Business;
using System.Windows.Forms;
using Lskj.Model;
using Lskj.Business.Impl;
using Lskj.Workflow;
namespace Lskj.PubModule
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicWorkflowModel moduleModel = new DynamicWorkflowModel(obj);
FrmWork main = new FrmWork();
this.SubForm = main;
main.WorkModel = moduleModel;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.Workflow.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+60
View File
@@ -0,0 +1,60 @@
namespace Lskj.Workflow
{
partial class FlowChart
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FlowChart));
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.SuspendLayout();
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.Size = new System.Drawing.Size(784, 477);
this.webBrowser1.TabIndex = 0;
//
// FlowChart
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(784, 477);
this.Controls.Add(this.webBrowser1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FlowChart";
this.Text = "流程图预览";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.WebBrowser webBrowser1;
}
}
+26
View File
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
namespace Lskj.Workflow
{
public partial class FlowChart : DevExpress.XtraEditors.XtraForm
{
public FlowChart()
{
InitializeComponent();
}
public void SetUrl(string url)
{
Uri uri = new Uri(url);
this.webBrowser1.Url = uri;
}
}
}
File diff suppressed because it is too large Load Diff
+108
View File
@@ -0,0 +1,108 @@
namespace Lskj.Workflow
{
partial class FrmAddStep
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAddStep));
this.label1 = new System.Windows.Forms.Label();
this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
this.btnOK = new DevExpress.XtraEditors.SimpleButton();
this.txtEdit = new DevExpress.XtraEditors.TextEdit();
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(101, 12);
this.label1.TabIndex = 0;
this.label1.Text = "请输入步骤名称:";
//
// btnCancel
//
this.btnCancel.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnCancel.Appearance.Options.UseFont = true;
this.btnCancel.Location = new System.Drawing.Point(132, 79);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(80, 28);
this.btnCancel.TabIndex = 20;
this.btnCancel.TabStop = false;
this.btnCancel.Text = "取消(&C)";
this.btnCancel.Click += new System.EventHandler(this.OnBtnCancelClick);
//
// btnOK
//
this.btnOK.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnOK.Appearance.Options.UseFont = true;
this.btnOK.Location = new System.Drawing.Point(40, 79);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(80, 28);
this.btnOK.TabIndex = 19;
this.btnOK.TabStop = false;
this.btnOK.Text = "确定(&O)";
this.btnOK.Click += new System.EventHandler(this.OnBtnOKClick);
//
// txtEdit
//
this.txtEdit.Location = new System.Drawing.Point(40, 38);
this.txtEdit.Name = "txtEdit";
this.txtEdit.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 12F);
this.txtEdit.Properties.Appearance.Options.UseFont = true;
this.txtEdit.Size = new System.Drawing.Size(172, 28);
this.txtEdit.TabIndex = 21;
//
// FrmAddStep
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(219, 114);
this.Controls.Add(this.txtEdit);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmAddStep";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
((System.ComponentModel.ISupportInitialize)(this.txtEdit.Properties)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private DevExpress.XtraEditors.SimpleButton btnCancel;
private DevExpress.XtraEditors.SimpleButton btnOK;
private DevExpress.XtraEditors.TextEdit txtEdit;
}
}
+74
View File
@@ -0,0 +1,74 @@
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;
using Lskj.Control;
using Lskj.Business;
using Lskj.Business.Impl;
namespace Lskj.Workflow
{
public partial class FrmAddStep : Form
{
public string StepName;
public Label LabelObj { get { return label1; } }
public FrmAddStep()
{
InitializeComponent();
}
/// <summary>
/// <para>说明:确定事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnBtnOKClick(object sender, EventArgs e)
{
try
{
if (string.IsNullOrEmpty(this.txtEdit.Text))
{
MessageUtil.Show(this.label1.Text.Replace("", ""));
return;
}
this.StepName = this.txtEdit.Text;
this.Close();
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
//LogUtil.WriteError("确定事件出错!", ex);
//MessageUtil.Show("确定事件出错!" + ex);
}
}
/// <summary>
/// <para>说明:取消事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnBtnCancelClick(object sender, EventArgs e)
{
this.Close();
}
}
}
File diff suppressed because it is too large Load Diff
+150
View File
@@ -0,0 +1,150 @@
namespace Lskj.Workflow
{
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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
this.lbl_progress = new System.Windows.Forms.ProgressBar();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_getout = new DevExpress.XtraEditors.SimpleButton();
this.btn_pdf = new DevExpress.XtraEditors.SimpleButton();
this.btn_start = new DevExpress.XtraEditors.SimpleButton();
this.panel2 = new System.Windows.Forms.Panel();
this.txtLog = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// lbl_progress
//
this.lbl_progress.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lbl_progress.Location = new System.Drawing.Point(0, 374);
this.lbl_progress.Margin = new System.Windows.Forms.Padding(2);
this.lbl_progress.Name = "lbl_progress";
this.lbl_progress.Size = new System.Drawing.Size(648, 24);
this.lbl_progress.TabIndex = 8;
//
// panel1
//
this.panel1.Controls.Add(this.btn_getout);
this.panel1.Controls.Add(this.btn_pdf);
this.panel1.Controls.Add(this.btn_start);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 329);
this.panel1.Margin = new System.Windows.Forms.Padding(2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(648, 45);
this.panel1.TabIndex = 9;
//
// btn_getout
//
this.btn_getout.Location = new System.Drawing.Point(535, 6);
this.btn_getout.Margin = new System.Windows.Forms.Padding(2);
this.btn_getout.Name = "btn_getout";
this.btn_getout.Size = new System.Drawing.Size(89, 37);
this.btn_getout.TabIndex = 0;
this.btn_getout.Text = "退出";
this.btn_getout.Click += new System.EventHandler(this.btn_getout_Click);
//
// btn_pdf
//
this.btn_pdf.Location = new System.Drawing.Point(289, 4);
this.btn_pdf.Margin = new System.Windows.Forms.Padding(2);
this.btn_pdf.Name = "btn_pdf";
this.btn_pdf.Size = new System.Drawing.Size(89, 37);
this.btn_pdf.TabIndex = 0;
this.btn_pdf.Text = "生成pdf";
this.btn_pdf.Click += new System.EventHandler(this.button2_Click);
//
// btn_start
//
this.btn_start.Location = new System.Drawing.Point(418, 4);
this.btn_start.Margin = new System.Windows.Forms.Padding(2);
this.btn_start.Name = "btn_start";
this.btn_start.Size = new System.Drawing.Size(89, 37);
this.btn_start.TabIndex = 0;
this.btn_start.Text = "开始生成";
this.btn_start.Click += new System.EventHandler(this.btn_start_Click);
//
// panel2
//
this.panel2.Controls.Add(this.txtLog);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(648, 329);
this.panel2.TabIndex = 10;
//
// txtLog
//
this.txtLog.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtLog.Location = new System.Drawing.Point(0, 0);
this.txtLog.Multiline = true;
this.txtLog.Name = "txtLog";
this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.txtLog.Size = new System.Drawing.Size(648, 329);
this.txtLog.TabIndex = 8;
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(648, 398);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.lbl_progress);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "FrmMain";
this.Text = "朗速-开发设计文档(WORD)智能生成工具";
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.ComponentModel.BackgroundWorker backgroundWorker1;
private System.Windows.Forms.ProgressBar lbl_progress;
private System.Windows.Forms.Panel panel1;
private DevExpress.XtraEditors.SimpleButton btn_getout;
private DevExpress.XtraEditors.SimpleButton btn_start;
private DevExpress.XtraEditors.SimpleButton btn_pdf;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox txtLog;
}
}
+551
View File
@@ -0,0 +1,551 @@
using Lskj.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Lskj.Model;
using Lskj.Control;
using Spire.Doc;
using Spire.Doc.Documents;
using Spire.Doc.Fields;
using Lskj.Control.Model;
using Lskj.Business.Impl;
namespace Lskj.Workflow
{
public partial class FrmMain : DevExpress.XtraEditors.XtraForm
{
private bool NewInitSuccess = false;
private int fileCount;
public string modelCound = string.Empty;
public string modelName = string.Empty;
public FrmMain()
{
InitializeComponent();
}
DataTable masterdt = new DataTable();
private void button2_Click(object sender, EventArgs e)
{
try
{
SaveFileDialog dialog = new SaveFileDialog();
dialog.Title = "选择需要转换的ptf文件";
dialog.Filter = "Word文件(*.doc)|*.Docx";
DialogResult result = dialog.ShowDialog();
if (result == DialogResult.OK)
{
WaitForm.ShowForm("word转换中,请稍后...");
//Create word document
Document document = new Document();
document.LoadFromFile(dialog.FileName);
//Save the document to a PDF file.
document.SaveToFile("Sample.pdf", FileFormat.PDF);
//Launching the pdf reader to open.
FileViewer("Sample.pdf");
}
}
catch (Exception)
{
throw;
}
finally
{
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
WaitForm.HideForm();
}
}
/// <summary>
/// 初始化同步平台
/// </summary>
private void Initialization()
{
try
{
RefreshLog(DateTime.Now + "正在初始化平台.\r\n");
if (DBConfig.Instance.CreateConnection())
{
SqlHelper.ExecuteNonQuery(string.Format("UPDATE P_SYSTEMTAB SET WORDtAGID=0"));
NewInitSuccess = true;
RefreshLog(DateTime.Now + "初始化平台成功.\r\n");
//获取指定目录下所有文件数量(实际过程忽略)
fileCount = 1;
//设置进度条基础属性
this.lbl_progress.Value = 0;
this.lbl_progress.Style = ProgressBarStyle.Blocks;
this.lbl_progress.Maximum = fileCount;
this.lbl_progress.Minimum = 0;
this.lbl_progress.MarqueeAnimationSpeed = 100;
this.lbl_progress.Step = 1;
this.lbl_progress.Text = "0%";
this.lbl_progress.Refresh();
}
else
{
RefreshLog(DateTime.Now + " 初始化平台失败.\r\n");
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
RefreshLog(DateTime.Now + string.Format("初始化失败.原因:{0}.\r\n", ex.Message));
}
}
/// <summary>
/// 主线程刷新数据
/// </summary>
/// <param name="msg"></param>
public void RefreshLog(string msg)
{
txtLog.Text += msg;
txtLog.Select(txtLog.TextLength, 0);
txtLog.ScrollToCaret();
}
/// <summary>
/// 后台线程刷新数据
/// </summary>
/// <param name="msg"></param>
public void RefreshLogUIThread(string msg)
{
Invoke((EventHandler)delegate
{
txtLog.Text += msg;
txtLog.Select(txtLog.TextLength, 0);
txtLog.ScrollToCaret();
});
}
private void FileViewer(string fileName)
{
try
{
System.Diagnostics.Process.Start(fileName);
}
catch { }
}
private DataSet Worddata(string modid, int tagid, int mid)
{
SqlParameter[] param =
{
new SqlParameter("@modid",SqlDbType.VarChar,15),
new SqlParameter("@tagid",SqlDbType.Int),
new SqlParameter("@Mid",SqlDbType.Int)
};
param[0].Value = modid;
param[1].Value = tagid;
param[2].Value = mid;
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "pr_system_File01", "#ba_firstpage", param);
return ds;
}
public void Mulu()
{
DBConfig.Instance.CreateConnection();
DataTable headerdt = SqlHelper.ExecuteDataTable("select Erp_ItemInfo from p_systemtab");//初始化选择的套用模块
DataTable firstdt = SqlHelper.ExecuteDataTable("select ERP_WORDTitle from p_systemtab");//初始化选择的首页模块
DataTable seconddt = SqlHelper.ExecuteDataTable("select top 1 SubSysName+'-ERP流程' as name from P_SubSystemTab where SubSysId in(select SubSysId from P_FormMenuConfigTab where PurviewId in( select modid from P_ConveWordTmpTab))");//初始化选择的首页模块
RefreshLogUIThread(string.Format("开始生成设计文件:(共需要转换设计模块:{0})\r\n", masterdt.Rows.Count));
RefreshLogUIThread(string.Format("开始智能生成:.\r\n"));
//初始化文档
Document document = new Document();
Section sec0 = document.AddSection();
Section sec1 = document.AddSection();
Section sec = document.AddSection();
//将默认首页样式添加到文档并修改
Style BodyTextStyle = document.AddStyle(BuiltinStyle.Subtitle);
BodyTextStyle.CharacterFormat.Font = new System.Drawing.Font("FangSong", 24);
BodyTextStyle.CharacterFormat.TextColor = Color.Black;
BodyTextStyle.CharacterFormat.Bold = true;
//将默认首页样式2添加到文档并修改
Style BodyTextStyle2 = document.AddStyle(BuiltinStyle.BodyText);
BodyTextStyle2.CharacterFormat.Font = new System.Drawing.Font("FangSong", 16);
BodyTextStyle2.CharacterFormat.TextColor = Color.Black;
//将默认标题样式添加到文档并修改
Style titleStyle = document.AddStyle(BuiltinStyle.Title);
titleStyle.CharacterFormat.Font = new System.Drawing.Font("Microsoft Yahei", 10);
titleStyle.CharacterFormat.TextColor = Color.FromArgb(42, 123, 136);
//判断是否为段落样式,然后设置段落格式
if (titleStyle is ParagraphStyle)
{
ParagraphStyle ps = titleStyle as ParagraphStyle;
ps.ParagraphFormat.Borders.Bottom.BorderType = Spire.Doc.Documents.BorderStyle.Single;
ps.ParagraphFormat.Borders.Bottom.Color = Color.FromArgb(42, 123, 136);
ps.ParagraphFormat.Borders.Bottom.LineWidth = 1.5f;
ps.ParagraphFormat.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Left;
}
//应用风格
HeaderFooter header = sec.HeadersFooters.Header;
Paragraph paragraph = header.AddParagraph();
sec0.PageSetup.HeaderDistance = 7;
sec1.PageSetup.HeaderDistance = 7;
sec0.PageSetup.FooterDistance = 7;
sec1.PageSetup.FooterDistance = 7;
paragraph.AppendText(headerdt.Rows[0]["Erp_ItemInfo"] + "");
paragraph.ApplyStyle(BuiltinStyle.Title);
HeaderFooter footer = sec.HeadersFooters.Footer;
Paragraph footerPara = footer.AddParagraph();
TextRange TR2 = footerPara.AppendText("地址:中国(四川)自由贸易试验区成都高新区吉泰五路88号 电话:18123296181/028-85379300 ");
footerPara.AppendField("页码", Spire.Doc.FieldType.FieldPage);
footerPara.AppendText(" of ");
footerPara.AppendField("总页数", Spire.Doc.FieldType.FieldNumPages);
footerPara.Format.Borders.Top.BorderType = Spire.Doc.Documents.BorderStyle.Single;
footerPara.Format.Borders.Top.Color = Color.FromArgb(42, 123, 136);
footerPara.Format.Borders.Top.LineWidth = 1.5f;
sec.PageSetup.FooterDistance = 7;
sec.PageSetup.HeaderDistance = 7;
DataTable middt = SqlHelper.ExecuteDataTable(string.Format("select * from P_WordFileSetTab where Mid='{0}'", 0));//初始化选择的套用模块
DataRow midrt = middt.Rows[0];
//添加默认标题1样式
Style heading1Style = document.AddStyle(BuiltinStyle.Heading1);
heading1Style.CharacterFormat.Font = new System.Drawing.Font(midrt["TitleFont1"] + "", int.Parse(midrt["TitleFontSize1"] + ""));
heading1Style.CharacterFormat.Bold = bool.Parse(midrt["TitleFontBoid1"] + "");
heading1Style.CharacterFormat.TextColor = Color.FromName(midrt["TitleFontColor1"] + "");
//添加默认标题2样式paragraph
Style heading2Style = document.AddStyle(BuiltinStyle.Heading2);
heading2Style.CharacterFormat.Font = new System.Drawing.Font(midrt["TitleFont2"] + "", int.Parse(midrt["TitleFontSize2"] + ""));
heading2Style.CharacterFormat.TextColor = Color.FromName(midrt["TitleFontColor2"] + "");
heading2Style.CharacterFormat.Bold = bool.Parse(midrt["TitleFontBoid2"] + "");
//添加默认标题2样式
Style heading3Style = document.AddStyle(BuiltinStyle.Heading3);
heading3Style.CharacterFormat.Font = new System.Drawing.Font(midrt["TitleFont3"] + "", int.Parse(midrt["TitleFontSize3"] + ""));
heading3Style.CharacterFormat.TextColor = Color.FromName(midrt["TitleFontColor3"] + "");
heading3Style.CharacterFormat.Bold = bool.Parse(midrt["TitleFontBoid3"] + "");
//添加默认表格标题样式
Style GridHeadStyle = document.AddStyle(BuiltinStyle.Normal);
GridHeadStyle.CharacterFormat.Font = new System.Drawing.Font(midrt["GridHeadFont"] + "", int.Parse(midrt["GridHeadFontSize"] + ""));
GridHeadStyle.CharacterFormat.Bold = bool.Parse(midrt["GridHeadFontBoid"] + "");
//添加默认文本输出样式
Style textStyle = document.AddStyle(BuiltinStyle.Toc1);
textStyle.CharacterFormat.Font = new System.Drawing.Font(midrt["TexFontItalic"] + "", int.Parse(midrt["TextFontSize"] + ""));
textStyle.CharacterFormat.Bold = bool.Parse(midrt["Textfontboid"] + "");
textStyle.CharacterFormat.TextColor = Color.FromName(midrt["TextfontColor"] + "");
//列表样式
ListStyle bulletList = new ListStyle(document, ListType.Bulleted);
bulletList.Name = "bulletList";
document.ListStyles.Add(bulletList);
for (int i = 1; i < 50; i++)
{
DataSet ds = Worddata(modelCound, i, 0);
for (int a = 0; a < ds.Tables.Count; a++)
{
DataTable dt = ds.Tables[a];
//去除配置列
if (dt == null || dt.Rows.Count == 0)
{
continue;
}
DataTable copydt = dt.Copy();
foreach (DataColumn dc in copydt.Columns)
{
if (dc.ColumnName.Equals("TABLETYPE") || dc.ColumnName.Equals("TITLENAME") || dc.ColumnName.Equals("TITLECONTENT") ||
dc.ColumnName.Equals("ROWHEIGHT") || dc.ColumnName.Equals("TITLEIMG") || dc.ColumnName.Equals("fontmodid") || dc.ColumnName.Equals("Cellmerge"))
dt.Columns.Remove(dc.ColumnName);
}
//添加段落和表格
paragraph = sec.AddParagraph();
//判断为文字或图片格式不生成表格
if (copydt.Rows[0]["TABLETYPE"] + "" == "2" || (copydt.Rows[0]["TABLETYPE"] + "" == "3" && copydt.Rows.Count == 1))
{
switch (copydt.Rows[0]["TABLETYPE"] + "")
{
case "2":
paragraph.AppendText(copydt.Rows[0]["TITLENAME"] + "");
switch (copydt.Rows[0]["fontmodid"] + "")
{
case "1":
paragraph.ApplyStyle(BuiltinStyle.Heading1);
break;
case "2":
paragraph.ApplyStyle(BuiltinStyle.Heading2);
break;
case "3":
paragraph.ApplyStyle(BuiltinStyle.Heading3);
break;
case "4":
paragraph.ApplyStyle(BuiltinStyle.Toc1);
break;
}
paragraph = sec.AddParagraph();
TextRange tr = paragraph.AppendText(copydt.Rows[0]["TITLECONTENT"] + "");
paragraph.ApplyStyle(BuiltinStyle.Toc1);
break;
case "3":
paragraph.AppendText(copydt.Rows[0]["TITLENAME"] + "");
paragraph.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Left;
switch (copydt.Rows[0]["fontmodid"] + "")
{
case "1":
paragraph.ApplyStyle(BuiltinStyle.Heading1);
break;
case "2":
paragraph.ApplyStyle(BuiltinStyle.Heading2);
break;
case "3":
paragraph.ApplyStyle(BuiltinStyle.Heading3);
break;
case "4":
paragraph.ApplyStyle(BuiltinStyle.Toc1);
break;
}
paragraph = sec.AddParagraph();
Image _image = Image.FromStream(WebRequest.Create(copydt.Rows[0]["TITLEIMG"] + "").GetResponse().GetResponseStream());
DocPicture picture = paragraph.AppendPicture(_image);
break;
}
continue;
}
Spire.Doc.Table table = sec.AddTable(true);
paragraph.AppendText(copydt.Rows[0]["TITLENAME"] + "");
switch (copydt.Rows[0]["fontmodid"] + "")
{
case "1":
paragraph.ApplyStyle(BuiltinStyle.Heading1);
break;
case "2":
paragraph.ApplyStyle(BuiltinStyle.Heading2);
break;
case "3":
paragraph.ApplyStyle(BuiltinStyle.Heading3);
break;
case "4":
paragraph.ApplyStyle(BuiltinStyle.Toc1);
break;
}
table.TableFormat.LeftIndent = 34;
bool TableFlag = false;
List<string> ColumnList = new List<string>();
foreach (var name in dt.Columns)
{
ColumnList.Add(name + "");
}
//循环遍历data数组给表格赋值
if (copydt.Rows[0]["TABLETYPE"] + "" == "1")
{
table.ResetCells(dt.Rows.Count + 1, dt.Columns.Count);
// ***************** First Row *************************
TableRow row = table.Rows[0];
row.IsHeader = true;
row.Height = 20; //unit: point, 1point = 0.3528 mm
row.HeightType = TableRowHeightType.Exactly;
row.RowFormat.BackColor = Color.FromName(midrt["GridHeadFontColor"] + "");//设置标题的背景颜色
for (int k = 0; k < ColumnList.Count; k++)
{
string sh = ColumnList[k].Substring((ColumnList[k].Length > 3 ? ColumnList[k].Length : 3) - 3);
bool isShuZi = Regex.IsMatch(sh, @"^\d+$");
row.Cells[k].CellFormat.VerticalAlignment = VerticalAlignment.Middle;
Paragraph p = row.Cells[k].AddParagraph();
p.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center;
if (isShuZi)
{
ColumnList[k] = ColumnList[k].Substring(0, ColumnList[k].Length - 3);
table[0, k].Width = int.Parse(sh);
}
table[0, k].Paragraphs[0].ApplyStyle(BuiltinStyle.Normal);
TextRange txtRange = p.AppendText(ColumnList[k]);
txtRange.CharacterFormat.Bold = true;
}
TableFlag = true;
}
else
{
table.ResetCells(dt.Rows.Count, dt.Columns.Count);
}
for (int r = 0; r < dt.Rows.Count; r++)
{
TableRow dataRow = TableFlag ? table.Rows[r + 1] : table.Rows[r];
dataRow.Height = 20;
dataRow.HeightType = TableRowHeightType.Exactly;
dataRow.RowFormat.BackColor = Color.Empty;
table.Rows[r].Height = int.Parse(copydt.Rows[r]["ROWHEIGHT"] + "");
for (int c = 0; c < dt.Columns.Count; c++)
{
string sh = ColumnList[c].Substring((ColumnList[c].Length > 3 ? ColumnList[c].Length : 3) - 3);
bool isShuZi = Regex.IsMatch(sh, @"^\d+$");
dataRow.Cells[c].CellFormat.VerticalAlignment = VerticalAlignment.Middle;
dataRow.Cells[c].AddParagraph().AppendText(dt.Rows[r][c] + "");
if (copydt.Rows[r]["TABLETYPE"] + "" == "3" && dt.Rows[r][c].ToString() == "图片")
{
try
{
//查找一个特定字符串 ”Spire.Doc”
TextSelection selection = document.FindString("图片", false, true);
TextRange range = selection.GetAsOneRange();
//替换字符串
range.Text = "";
table.Rows[r].Cells[c].Paragraphs[0].Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center;
Image _image = Image.FromStream(WebRequest.Create(copydt.Rows[r]["TITLEIMG"] + "").GetResponse().GetResponseStream());
DocPicture picture = table.Rows[r].Cells[c].Paragraphs[0].AppendPicture(_image);
float proportion = (float)(_image.Width) / (float)(_image.Height);
picture.Height = int.Parse(copydt.Rows[r]["ROWHEIGHT"] + "") - (float.Parse(copydt.Rows[r]["ROWHEIGHT"] + "") / 7);
picture.Width = (float)(int.Parse(copydt.Rows[r]["ROWHEIGHT"] + "") * proportion);
}
catch (Exception ex)
{
throw;
}
}
if (isShuZi)
{
table[r, c].Width = int.Parse(sh);
}
table[TableFlag ? r + 1 : r, c].Paragraphs[0].ApplyStyle(BuiltinStyle.Toc1);
}
}
//判断是否有合并规则
if (copydt.Columns.Contains("Cellmerge"))
{
//判断合并规则是否为空
if (string.IsNullOrWhiteSpace(copydt.Rows[0]["Cellmerge"] + "")) continue;
try
{
int Mergedindex = copydt.Rows[0]["Cellmerge"].ToString().IndexOf(":");
string MergedText = copydt.Rows[0]["Cellmerge"].ToString().Substring(0, Mergedindex);
string Cellmuster = copydt.Rows[0]["Cellmerge"].ToString().Substring(Mergedindex + 1);
string[] CellmusterN = Cellmuster.Trim().TrimEnd(':').Split(':');
string[] Cellmerge = MergedText.Trim().TrimEnd('|').Split('|');
for (int cellNum = 0; cellNum < Cellmerge.Count(); cellNum++)
{
int start = 0;
string[] Ranks = Cellmerge[cellNum].Trim().Split(',');
int indexs = Ranks[0].IndexOf("-");
int columnindexs = Ranks[1].IndexOf("-");
int startindex = start = int.Parse(Ranks[0].Substring(0, indexs));
int overindex = int.Parse(Ranks[0].Substring(indexs + 1));
if (TableFlag)
{
start = startindex += 1; overindex += 1;
}
int startcolumn = int.Parse(Ranks[1].Substring(0, columnindexs));
int overcolumn = int.Parse(Ranks[1].Substring(columnindexs + 1));
table[start, startcolumn].Paragraphs.Clear();
table[start, startcolumn].AddParagraph().AppendText(CellmusterN[cellNum]);
table[start, startcolumn].Paragraphs[0].Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center;
if (overindex - startindex > 0)
{
while (overindex - startindex >= 0)
{
table.ApplyHorizontalMerge(startindex, startcolumn, overcolumn);
startindex += 1;
}
table.ApplyVerticalMerge(startcolumn, start, overindex);
}
else if (overindex - startindex == 0)
{
table.ApplyHorizontalMerge(startindex, startcolumn, overcolumn);
}
}
}
catch (Exception ex)
{
RefreshLog(DateTime.Now + string.Format("生成失败.原因:{0}.\r\n", ex.Message));
}
}
}
}
this.Invoke(new EventHandler(delegate
{
//更新进度条进度状态,当进度条为跑马灯模式时(ProgressBarStyle.Marquee)不可能调用该方法
this.lbl_progress.PerformStep();
//设置进度百分比
double dCount = fileCount, dProg = this.lbl_progress.Value;
this.lbl_progress.Text = ((dProg / dCount) * 100).ToString() + "%";
this.lbl_progress.Refresh();
}));
RefreshLogUIThread(string.Format("{0}=========》生成成功.\r\n", modelName));
//Save to docx file.
string filePath = modelName + "word文档" + DateTime.Now.ToString("yyyyMMddHHmmss") + "Sample.docx";
Paragraph paraInserted = sec1.AddParagraph();
TextRange textRange = paraInserted.AppendText("目 录");
textRange.CharacterFormat.Bold = true;
textRange.CharacterFormat.TextColor = Color.CadetBlue;
document.Sections[1].Paragraphs.Insert(0, paraInserted);
paraInserted.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center;
document.Sections[1].Paragraphs[0].AppendTOC(1, 9);
document.Sections[1].Paragraphs[0].ApplyStyle(BuiltinStyle.Heading1);
document.UpdateTableOfContents();
//添加首页的字段
Paragraph fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center;
fristparagraph.AppendText(firstdt.Rows[0]["ERP_WORDTitle"] + "\n");
fristparagraph.AppendText(seconddt.Rows.Count>0?seconddt.Rows[0]["name"] + "":"");
fristparagraph.ApplyStyle(BuiltinStyle.Subtitle);
fristparagraph = sec0.AddParagraph();
fristparagraph = sec0.AddParagraph();
fristparagraph.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Center;
fristparagraph.AppendText("ERP-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + ")\n\n\n\n\n\n\n\n\n\n\n\n");
fristparagraph.ApplyStyle(BuiltinStyle.BodyText);
fristparagraph = sec0.AddParagraph();
fristparagraph.AppendText("初稿");
fristparagraph.ApplyStyle(BuiltinStyle.Subtitle);
document.SaveToFile(filePath, FileFormat.Docx);
//Launching the MS Word file.
WordDocViewer(filePath);
}
public static void WordDocViewer(string fileName)
{
try
{
System.Diagnostics.Process.Start(fileName);
}
catch
{
}
}
/// <summary>
/// 点击开始生成
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_start_Click(object sender, EventArgs e)
{
this.Initialization(); // 初始化同步平台
// 创建后台线程
try
{
Thread backThread = new Thread(Mulu);
backThread.IsBackground = true;
backThread.Start();
}
catch (Exception)
{
throw;
}
}
private void btn_getout_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
File diff suppressed because it is too large Load Diff
+397
View File
@@ -0,0 +1,397 @@
namespace Lskj.Workflow
{
partial class FrmWork
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.panel2 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.plzsht = new System.Windows.Forms.Panel();
this.plxllzsz = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.plxlsz = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.pllzbzsz = new System.Windows.Forms.Panel();
this.PlAdd = new System.Windows.Forms.Panel();
this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
this.btnToWord = new DevExpress.XtraEditors.SimpleButton();
this.btnInit = new DevExpress.XtraEditors.SimpleButton();
this.btnReset = new DevExpress.XtraEditors.SimpleButton();
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnSaveAllflow = new DevExpress.XtraEditors.SimpleButton();
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
this.stepPage11 = new Lskj.Workflow.Control.StepPage1();
this.stepPage31 = new Lskj.Workflow.Control.StepPage3();
this.stepPage21 = new Lskj.Workflow.Control.StepPage2();
this.stepPage41 = new Lskj.Workflow.Control.StepPage4();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
this.panelControl2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
this.panelControl3.SuspendLayout();
this.SuspendLayout();
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl1.Controls.Add(this.panel2);
this.panelControl1.Controls.Add(this.panel1);
this.panelControl1.Controls.Add(this.label4);
this.panelControl1.Controls.Add(this.label3);
this.panelControl1.Controls.Add(this.plzsht);
this.panelControl1.Controls.Add(this.plxllzsz);
this.panelControl1.Controls.Add(this.label2);
this.panelControl1.Controls.Add(this.plxlsz);
this.panelControl1.Controls.Add(this.label1);
this.panelControl1.Controls.Add(this.pllzbzsz);
this.panelControl1.Controls.Add(this.PlAdd);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Top;
this.panelControl1.Location = new System.Drawing.Point(0, 0);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Size = new System.Drawing.Size(1037, 115);
this.panelControl1.TabIndex = 0;
//
// panel2
//
this.panel2.Anchor = System.Windows.Forms.AnchorStyles.None;
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_arrow;
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel2.Cursor = System.Windows.Forms.Cursors.Hand;
this.panel2.Location = new System.Drawing.Point(781, 53);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(104, 15);
this.panel2.TabIndex = 14;
//
// panel1
//
this.panel1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_arrow;
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel1.Cursor = System.Windows.Forms.Cursors.Hand;
this.panel1.Location = new System.Drawing.Point(494, 53);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(104, 15);
this.panel1.TabIndex = 11;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 9F);
this.label4.Location = new System.Drawing.Point(924, 84);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 17);
this.label4.TabIndex = 13;
this.label4.Text = "终审回退";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("微软雅黑", 9F);
this.label3.Location = new System.Drawing.Point(637, 84);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.TabIndex = 10;
this.label3.Text = "方案步骤";
//
// plzsht
//
this.plzsht.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_lzbzsz_2x;
this.plzsht.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.plzsht.Cursor = System.Windows.Forms.Cursors.Hand;
this.plzsht.Location = new System.Drawing.Point(922, 21);
this.plzsht.Name = "plzsht";
this.plzsht.Size = new System.Drawing.Size(60, 60);
this.plzsht.TabIndex = 12;
this.plzsht.Click += new System.EventHandler(this.OnzshtClick);
//
// plxllzsz
//
this.plxllzsz.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_lzbzsz_2x;
this.plxllzsz.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.plxllzsz.Cursor = System.Windows.Forms.Cursors.Hand;
this.plxllzsz.Location = new System.Drawing.Point(635, 21);
this.plxllzsz.Name = "plxllzsz";
this.plxllzsz.Size = new System.Drawing.Size(60, 60);
this.plxllzsz.TabIndex = 9;
this.plxllzsz.Click += new System.EventHandler(this.OnxllzszClick);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("微软雅黑", 9F);
this.label2.Location = new System.Drawing.Point(342, 84);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 17);
this.label2.TabIndex = 8;
this.label2.Text = "审批方案";
//
// plxlsz
//
this.plxlsz.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_xlsz;
this.plxlsz.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.plxlsz.Cursor = System.Windows.Forms.Cursors.Hand;
this.plxlsz.Location = new System.Drawing.Point(341, 21);
this.plxlsz.Name = "plxlsz";
this.plxlsz.Size = new System.Drawing.Size(60, 60);
this.plxlsz.TabIndex = 7;
this.plxlsz.Click += new System.EventHandler(this.OnxlszClick);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("微软雅黑", 9F);
this.label1.Location = new System.Drawing.Point(56, 84);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 17);
this.label1.TabIndex = 6;
this.label1.Text = "审批步骤";
//
// pllzbzsz
//
this.pllzbzsz.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_xllzsz_2x;
this.pllzbzsz.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pllzbzsz.Cursor = System.Windows.Forms.Cursors.Hand;
this.pllzbzsz.Location = new System.Drawing.Point(52, 21);
this.pllzbzsz.Name = "pllzbzsz";
this.pllzbzsz.Size = new System.Drawing.Size(60, 60);
this.pllzbzsz.TabIndex = 5;
this.pllzbzsz.Click += new System.EventHandler(this.OnlzbzszClick);
//
// PlAdd
//
this.PlAdd.Anchor = System.Windows.Forms.AnchorStyles.None;
this.PlAdd.BackColor = System.Drawing.Color.Transparent;
this.PlAdd.BackgroundImage = global::Lskj.Workflow.Properties.Resources.icon_arrow;
this.PlAdd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.PlAdd.Cursor = System.Windows.Forms.Cursors.Hand;
this.PlAdd.Location = new System.Drawing.Point(200, 53);
this.PlAdd.Name = "PlAdd";
this.PlAdd.Size = new System.Drawing.Size(104, 15);
this.PlAdd.TabIndex = 3;
//
// panelControl2
//
this.panelControl2.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.panelControl2.Appearance.Options.UseBackColor = true;
this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl2.Controls.Add(this.btnToWord);
this.panelControl2.Controls.Add(this.btnInit);
this.panelControl2.Controls.Add(this.btnReset);
this.panelControl2.Controls.Add(this.btnAdd);
this.panelControl2.Controls.Add(this.btnSaveAllflow);
this.panelControl2.Controls.Add(this.btnSave);
this.panelControl2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelControl2.Location = new System.Drawing.Point(0, 701);
this.panelControl2.Name = "panelControl2";
this.panelControl2.Size = new System.Drawing.Size(1037, 39);
this.panelControl2.TabIndex = 1;
//
// btnToWord
//
this.btnToWord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnToWord.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnToWord.Appearance.Options.UseFont = true;
this.btnToWord.Location = new System.Drawing.Point(908, 6);
this.btnToWord.Name = "btnToWord";
this.btnToWord.Size = new System.Drawing.Size(126, 28);
this.btnToWord.TabIndex = 22;
this.btnToWord.TabStop = false;
this.btnToWord.Text = "转word流程设计";
this.btnToWord.Click += new System.EventHandler(this.OnBtnToword);
//
// btnInit
//
this.btnInit.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnInit.Appearance.Options.UseFont = true;
this.btnInit.Location = new System.Drawing.Point(177, 6);
this.btnInit.Name = "btnInit";
this.btnInit.Size = new System.Drawing.Size(80, 28);
this.btnInit.TabIndex = 21;
this.btnInit.TabStop = false;
this.btnInit.Text = "初始化权限";
this.btnInit.Click += new System.EventHandler(this.OnBtnInitClick);
//
// btnReset
//
this.btnReset.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnReset.Appearance.Options.UseFont = true;
this.btnReset.Location = new System.Drawing.Point(91, 6);
this.btnReset.Name = "btnReset";
this.btnReset.Size = new System.Drawing.Size(80, 28);
this.btnReset.TabIndex = 20;
this.btnReset.TabStop = false;
this.btnReset.Text = "重置权限";
this.btnReset.Click += new System.EventHandler(this.OnBtnResetClick);
//
// btnAdd
//
this.btnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnAdd.Appearance.Options.UseFont = true;
this.btnAdd.Location = new System.Drawing.Point(5, 6);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(80, 28);
this.btnAdd.TabIndex = 19;
this.btnAdd.TabStop = false;
this.btnAdd.Text = "新增(&A)";
this.btnAdd.Click += new System.EventHandler(this.OnAddClick);
//
// btnSaveAllflow
//
this.btnSaveAllflow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSaveAllflow.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnSaveAllflow.Appearance.Options.UseFont = true;
this.btnSaveAllflow.Location = new System.Drawing.Point(313, 6);
this.btnSaveAllflow.Name = "btnSaveAllflow";
this.btnSaveAllflow.Size = new System.Drawing.Size(139, 28);
this.btnSaveAllflow.TabIndex = 18;
this.btnSaveAllflow.TabStop = false;
this.btnSaveAllflow.Text = "统一设置流程图样式";
this.btnSaveAllflow.Click += new System.EventHandler(this.OnBtnSaveAllFlow);
//
// 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(822, 6);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(80, 28);
this.btnSave.TabIndex = 18;
this.btnSave.TabStop = false;
this.btnSave.Text = "保存(&S)";
this.btnSave.Click += new System.EventHandler(this.OnBtnSaveClick);
//
// panelControl3
//
this.panelControl3.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl3.Appearance.Options.UseBackColor = true;
this.panelControl3.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl3.Controls.Add(this.stepPage41);
this.panelControl3.Controls.Add(this.stepPage21);
this.panelControl3.Controls.Add(this.stepPage31);
this.panelControl3.Controls.Add(this.stepPage11);
this.panelControl3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl3.Location = new System.Drawing.Point(0, 115);
this.panelControl3.Name = "panelControl3";
this.panelControl3.Size = new System.Drawing.Size(1037, 586);
this.panelControl3.TabIndex = 2;
//
// stepPage11
//
this.stepPage11.Dock = System.Windows.Forms.DockStyle.Fill;
this.stepPage11.Location = new System.Drawing.Point(0, 0);
this.stepPage11.Name = "stepPage11";
this.stepPage11.Size = new System.Drawing.Size(1037, 586);
this.stepPage11.TabIndex = 0;
//
// stepPage31
//
this.stepPage31.Dock = System.Windows.Forms.DockStyle.Fill;
this.stepPage31.Location = new System.Drawing.Point(0, 0);
this.stepPage31.Name = "stepPage31";
this.stepPage31.Size = new System.Drawing.Size(1037, 586);
this.stepPage31.TabIndex = 2;
//
// stepPage21
//
this.stepPage21.Dock = System.Windows.Forms.DockStyle.Fill;
this.stepPage21.Location = new System.Drawing.Point(0, 0);
this.stepPage21.Name = "stepPage21";
this.stepPage21.Size = new System.Drawing.Size(1037, 586);
this.stepPage21.TabIndex = 1;
//
// stepPage41
//
this.stepPage41.Dock = System.Windows.Forms.DockStyle.Fill;
this.stepPage41.Location = new System.Drawing.Point(0, 0);
this.stepPage41.Name = "stepPage41";
this.stepPage41.Size = new System.Drawing.Size(1037, 586);
this.stepPage41.TabIndex = 3;
//
// FrmWork
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1037, 740);
this.Controls.Add(this.panelControl3);
this.Controls.Add(this.panelControl2);
this.Controls.Add(this.panelControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "FrmWork";
this.Text = "单据审批流程设计";
this.Load += new System.EventHandler(this.OnWorkLoad);
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
this.panelControl1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
this.panelControl2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
this.panelControl3.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.PanelControl panelControl1;
private DevExpress.XtraEditors.PanelControl panelControl2;
private System.Windows.Forms.Panel PlAdd;
private DevExpress.XtraEditors.PanelControl panelControl3;
private Control.StepPage1 stepPage11;
private System.Windows.Forms.Panel pllzbzsz;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel plxllzsz;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel plxlsz;
private System.Windows.Forms.Panel panel1;
private DevExpress.XtraEditors.SimpleButton btnSave;
private DevExpress.XtraEditors.SimpleButton btnAdd;
private DevExpress.XtraEditors.SimpleButton btnReset;
private DevExpress.XtraEditors.SimpleButton btnInit;
private DevExpress.XtraEditors.SimpleButton btnSaveAllflow;
private DevExpress.XtraEditors.SimpleButton btnToWord;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Panel plzsht;
private Control.StepPage4 stepPage41;
private Control.StepPage2 stepPage21;
private Control.StepPage3 stepPage31;
}
}
+464
View File
@@ -0,0 +1,464 @@
/******************************
* 说明:审批流程设置界面
* 创建人:龚宇超
* 创建日期:2019-06-18
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
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;
using Lskj.Control;
using Lskj.Workflow.Model;
using Lskj.Core;
using Lskj.Data;
using Lskj.Model;
using Lskj.Workflow.Properties;
using Lskj.Business;
using Lskj.Business.Impl;
namespace Lskj.Workflow
{
/// <summary>
/// 审批流程设置界面
/// </summary>
public partial class FrmWork : BaseForm
{
/// <summary>
/// 上一次选中标签
/// </summary>
public StepEnum mPrevStepPage;
/// <summary>
/// 当前选中标签
/// </summary>
public StepEnum mCurrentStepPage;
/// <summary>
/// 模块编号
/// </summary>
public string MenuCode = string.Empty;
public DynamicWorkflowModel WorkModel;
public BillModel BillModel;
/// <summary>
/// 判断是否有权力
/// </summary>
public bool powerflag;
public FrmWork()
{
InitializeComponent();
}
#region
/// <summary>
/// <para>说明:切换</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="stepEnum">The step enum.</param>
public void SetStepPage(StepEnum stepEnum)
{
this.mCurrentStepPage = stepEnum;
this.btnAdd.Visible = true;
switch (stepEnum)
{
case StepEnum.StepPage1:
default:
this.btnSaveAllflow.Visible = this.btnReset.Visible = this.btnInit.Visible = false;
this.stepPage11.Visible = true;
this.stepPage21.Visible = false;
this.stepPage31.Visible = false;
this.stepPage41.Visible = false;
this.pllzbzsz.BackgroundImage = Resources.icon_xllzsz_2x;
this.plxlsz.BackgroundImage = Resources.icon_xlsz_gray_2x;
this.plxllzsz.BackgroundImage = Resources.icon_lzbzsz_gray_2x;
this.plzsht.BackgroundImage = Resources.icon_lzbzsz_gray_2x;
this.btnAdd.Text = "新增(&A)";
break;
case StepEnum.StepPage2:
this.btnSaveAllflow.Visible = this.btnReset.Visible = this.btnInit.Visible = false;
this.stepPage11.Visible = false;
this.stepPage21.Visible = true;
this.stepPage31.Visible = false;
this.stepPage41.Visible = false;
this.pllzbzsz.BackgroundImage = Resources.icon_xllzsz_gray_2x;
this.plxlsz.BackgroundImage = Resources.icon_xlsz_2x;
this.plxllzsz.BackgroundImage = Resources.icon_lzbzsz_gray_2x;
this.plzsht.BackgroundImage = Resources.icon_lzbzsz_gray_2x;
this.btnAdd.Text = "新增(&A)";
break;
case StepEnum.StepPage3:
this.btnSaveAllflow.Visible = this.btnReset.Visible = this.btnInit.Visible = true;
this.stepPage11.Visible = false;
this.stepPage21.Visible = false;
this.stepPage31.Visible = true;
this.stepPage41.Visible = false;
this.pllzbzsz.BackgroundImage = Resources.icon_xllzsz_gray_2x;
this.plxlsz.BackgroundImage = Resources.icon_xlsz_gray_2x;
this.plxllzsz.BackgroundImage = Resources.icon_lzbzsz_2x;
this.plzsht.BackgroundImage = Resources.icon_lzbzsz_gray_2x;
this.btnAdd.Text = "生成(&A)";
break;
case StepEnum.StepPage4:
this.btnSaveAllflow.Visible = this.btnReset.Visible = this.btnInit.Visible = this.btnAdd.Visible = false;
this.stepPage11.Visible = false;
this.stepPage21.Visible = false;
this.stepPage31.Visible = false;
this.stepPage41.Visible = true;
this.pllzbzsz.BackgroundImage = Resources.icon_xllzsz_gray_2x;
this.plxlsz.BackgroundImage = Resources.icon_xlsz_gray_2x;
this.plxllzsz.BackgroundImage = Resources.icon_lzbzsz_gray_2x;
this.plzsht.BackgroundImage = Resources.icon_lzbzsz_2x;
break;
}
}
#endregion
#region
/// <summary>
/// <para>说明:窗口加载</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-21 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnWorkLoad(object sender, EventArgs e)
{
try
{
this.BillModel = new BillModel(BillImpl.GetBillInfo(this.WorkModel.ModuleCode));
if (this.BillModel == null || string.IsNullOrEmpty(this.BillModel.FormKey))
{
MessageUtil.Show("无效的模块编号->" + WorkModel.ModuleCode);
this.Close();
}
this.MenuCode = this.WorkModel.ModuleCode;
this.Text = this.Text + "->" + this.BillModel.TypeName;
DataTable table = WorkFlowBillImpl.GetPowerTable();
string[] Purview = table.Rows[0]["BillFlowPurview"].ToString().Trim().TrimEnd(',').Split(',');
if (Purview.Contains(ERPInfo.Instance.UserName))
{
powerflag = true;
}
if (!powerflag)
{
this.btnAdd.Enabled = this.btnReset.Enabled = this.btnInit.Enabled = false;
stepPage11.SerpPagePower = true;
stepPage21.SerpPage2Power = true;
}
// 设置默认显示第一个界面
this.SetStepPage(StepEnum.StepPage1);
this.stepPage11.InitializeControl(this.MenuCode);
this.stepPage21.InitializeControl(this.MenuCode);
this.stepPage31.InitializeControl(this.MenuCode);
this.stepPage41.InitializeControl(this.MenuCode);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
finally
{
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
}
}
/// <summary>
/// <para>说明:添加模块</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnAddClick(object sender, EventArgs e)
{
try
{
switch (mCurrentStepPage)
{
case StepEnum.StepPage1:
{
// 保存流转步骤
FrmAddStep frmAddStep = new FrmAddStep();
frmAddStep.LabelObj.Text = "请输入审批步骤:";
if (frmAddStep.ShowDialog() == DialogResult.OK)
{
string stepName = frmAddStep.StepName;
string stepGroup = frmAddStep.StepName;
this.stepPage11.AddFlowItem(stepGroup, stepGroup);
}
}
break;
case StepEnum.StepPage2:
{
// 保存小类设置
FrmAddStep frmAddStep = new FrmAddStep();
frmAddStep.LabelObj.Text = "请输入审批方案:";
if (frmAddStep.ShowDialog() == DialogResult.OK)
{
string typeName = frmAddStep.StepName;
this.stepPage21.AddFlowTypeItem(typeName);
}
}
break;
case StepEnum.StepPage3:
{
// 生成小类流转步骤设置
this.stepPage31.CreateFlowTypeStep();
}
break;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
//MessageUtil.Show(ex.Message);
//LogUtil.WriteError("单据审批添加模块", ex);
}
}
/// <summary>
/// 一键保存所有图像
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void OnBtnSaveAllFlow(object sender, EventArgs e)
{
this.stepPage31.InitAllStepTypeFlow();
}
public void OnBtnToword(object sender, EventArgs e)
{
try
{
FrmMain fm = new FrmMain();
fm.modelCound = this.WorkModel.ModuleCode;
fm.modelName = this.BillModel.TypeName;
fm.StartPosition = FormStartPosition.CenterScreen;
fm.ShowDialog();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
//LogUtil.WriteError("转word流程设计出错!", ex);
//MessageUtil.Show("转word流程设计出错!" + ex);
}
}
/// <summary>
/// <para>说明:保存</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnBtnSaveClick(object sender, EventArgs e)
{
try
{
switch (mCurrentStepPage)
{
case StepEnum.StepPage1:
// 保存流转步骤
this.stepPage11.UpdateBillFlow();
break;
case StepEnum.StepPage2:
// 保存小类设置
this.stepPage21.UpdateBillFlowType();
break;
case StepEnum.StepPage3:
// 保存小类流转设置
this.stepPage31.UpdateBillFlowTypeStep();
break;
case StepEnum.StepPage4:
// 保存终审回退权限信息
this.stepPage41.UpdateFinalReturnSettings();
break;
}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
//MessageUtil.Show("数据保存失败:" + ex.Message);
//LogUtil.WriteError("数据保存失败!", ex);
}
}
/// <summary>
/// <para>说明:流转步骤设置点击</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnlzbzszClick(object sender, EventArgs e)
{
try
{
this.SetStepPage(StepEnum.StepPage1);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:小类设置点击</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnxlszClick(object sender, EventArgs e)
{
try
{
this.SetStepPage(StepEnum.StepPage2);
this.stepPage21.InitializeStepFlow();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:小类流转步骤设置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-24 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnxllzszClick(object sender, EventArgs e)
{
try
{
this.SetStepPage(StepEnum.StepPage3);
this.stepPage31.InitializeStepType();
this.stepPage31.InitializeStepTypeFlow();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:终审回退设置</para>
/// <para>创建人:曹屹峰</para>
/// <para>创建日期:2022-06-08 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnzshtClick(object sender, EventArgs e)
{
try
{
this.SetStepPage(StepEnum.StepPage4);
this.stepPage41.initialLoad();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:重置权限</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-28 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnBtnResetClick(object sender, EventArgs e)
{
try
{
this.stepPage31.ResetPurview();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
/// <summary>
/// <para>说明:初始化权限</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2019-06-28 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
void OnBtnInitClick(object sender, EventArgs e)
{
try
{
this.stepPage31.InitPurview();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
#endregion
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,394 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{64C6B8B5-019D-47D4-8C32-C987217E1AF8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.Workflow</RootNamespace>
<AssemblyName>Lskj.Workflow</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<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>
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.Workflow.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\Release\Lib\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>logo.ico</ApplicationIcon>
</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" />
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="Spire.Common, Version=1.2.792.14040, Culture=neutral, PublicKeyToken=663f351905198cb3, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Debug\Lib\Spire.Common.dll</HintPath>
</Reference>
<Reference Include="Spire.Doc, Version=6.8.16.4040, Culture=neutral, PublicKeyToken=663f351905198cb3, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Debug\Lib\Spire.Doc.dll</HintPath>
</Reference>
<Reference Include="Spire.License, Version=1.3.6.40, Culture=neutral, PublicKeyToken=b1144360237c8b3f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Debug\Lib\Spire.License.dll</HintPath>
</Reference>
<Reference Include="Spire.Pdf, Version=4.8.15.2040, Culture=neutral, PublicKeyToken=663f351905198cb3, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Debug\Lib\Spire.Pdf.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Runtime.Remoting" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Control\StepItem1.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepItem1.Designer.cs">
<DependentUpon>StepItem1.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepItemAdd.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepItemAdd.Designer.cs">
<DependentUpon>StepItemAdd.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepPage1.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepPage1.Designer.cs">
<DependentUpon>StepPage1.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepPage2.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepPage2.Designer.cs">
<DependentUpon>StepPage2.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepPage3.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepPage3.Designer.cs">
<DependentUpon>StepPage3.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepPage4.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepPage4.Designer.cs">
<DependentUpon>StepPage4.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepTypeItem.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepTypeItem.Designer.cs">
<DependentUpon>StepTypeItem.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepItem2.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepItem2.Designer.cs">
<DependentUpon>StepItem2.cs</DependentUpon>
</Compile>
<Compile Include="Control\StepItem3.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Control\StepItem3.Designer.cs">
<DependentUpon>StepItem3.cs</DependentUpon>
</Compile>
<Compile Include="DllBaseClass.cs" />
<Compile Include="FlowChart.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FlowChart.Designer.cs">
<DependentUpon>FlowChart.cs</DependentUpon>
</Compile>
<Compile Include="FrmAddStep.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmAddStep.Designer.cs">
<DependentUpon>FrmAddStep.cs</DependentUpon>
</Compile>
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="FrmWork.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmWork.Designer.cs">
<DependentUpon>FrmWork.cs</DependentUpon>
</Compile>
<Compile Include="Model\StepEnum.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Control\StepItem1.resx">
<DependentUpon>StepItem1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepItemAdd.resx">
<DependentUpon>StepItemAdd.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepPage1.resx">
<DependentUpon>StepPage1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepPage2.resx">
<DependentUpon>StepPage2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepPage3.resx">
<DependentUpon>StepPage3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepPage4.resx">
<DependentUpon>StepPage4.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepTypeItem.resx">
<DependentUpon>StepTypeItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepItem2.resx">
<DependentUpon>StepItem2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Control\StepItem3.resx">
<DependentUpon>StepItem3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FlowChart.resx">
<DependentUpon>FlowChart.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmAddStep.resx">
<DependentUpon>FrmAddStep.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmWork.resx">
<DependentUpon>FrmWork.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.BaseWorkflow\Lskj.BaseWorkflow.csproj">
<Project>{696E3BBB-3E5B-4C97-BE09-6D665B07767F}</Project>
<Name>Lskj.BaseWorkflow</Name>
</ProjectReference>
<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\workflow_left.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\workflow_line.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\workflow_close.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\workflow_add.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_search.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_search%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xllzsz.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xllzsz%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xllzsz_gray.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xllzsz_gray%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xlsz.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xlsz%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xlsz_gray.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_xlsz_gray%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\logo.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\logo%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\head_tx.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\head_tx%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_arrow.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_arrow%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_arrow1.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_arrow1%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cg.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cg%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cg_white.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cg_white%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cha.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cha%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cha_white.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_cha_white%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_circle_red.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_circle_red%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_close.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_close%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_home.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_home%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_lzbzsz.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_lzbzsz%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_lzbzsz_gray.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_lzbzsz_gray%402x.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_news.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\icon_news%402x.png" />
</ItemGroup>
<ItemGroup>
<Content Include="logo.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Workflow.Model
{
/// <summary>
/// 审批流转界面
/// </summary>
public enum StepEnum
{
/// <summary>
/// 流转步骤界面
/// </summary>
StepPage1,
/// <summary>
/// 小类设置界面
/// </summary>
StepPage2,
/// <summary>
/// 小类流转步骤界面设置
/// </summary>
StepPage3,
/// <summary>
/// 终审回退权限设置
/// </summary>
StepPage4
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.Workflow")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.Workflow")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("2ae1065e-6f9c-45ad-9b3a-212dea34d8c1")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+443
View File
@@ -0,0 +1,443 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Workflow.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.Workflow.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 head_tx {
get {
object obj = ResourceManager.GetObject("head_tx", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap head_tx_2x {
get {
object obj = ResourceManager.GetObject("head_tx_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_arrow {
get {
object obj = ResourceManager.GetObject("icon_arrow", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_arrow_2x {
get {
object obj = ResourceManager.GetObject("icon_arrow_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_arrow1 {
get {
object obj = ResourceManager.GetObject("icon_arrow1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_arrow1_2x {
get {
object obj = ResourceManager.GetObject("icon_arrow1_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cg {
get {
object obj = ResourceManager.GetObject("icon_cg", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cg_2x {
get {
object obj = ResourceManager.GetObject("icon_cg_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cg_white {
get {
object obj = ResourceManager.GetObject("icon_cg_white", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cg_white_2x {
get {
object obj = ResourceManager.GetObject("icon_cg_white_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cha {
get {
object obj = ResourceManager.GetObject("icon_cha", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cha_2x {
get {
object obj = ResourceManager.GetObject("icon_cha_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cha_white {
get {
object obj = ResourceManager.GetObject("icon_cha_white", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_cha_white_2x {
get {
object obj = ResourceManager.GetObject("icon_cha_white_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_circle_red {
get {
object obj = ResourceManager.GetObject("icon_circle_red", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_circle_red_2x {
get {
object obj = ResourceManager.GetObject("icon_circle_red_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_close {
get {
object obj = ResourceManager.GetObject("icon_close", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_close_2x {
get {
object obj = ResourceManager.GetObject("icon_close_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_home {
get {
object obj = ResourceManager.GetObject("icon_home", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_home_2x {
get {
object obj = ResourceManager.GetObject("icon_home_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_lzbzsz {
get {
object obj = ResourceManager.GetObject("icon_lzbzsz", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_lzbzsz_2x {
get {
object obj = ResourceManager.GetObject("icon_lzbzsz_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_lzbzsz_gray {
get {
object obj = ResourceManager.GetObject("icon_lzbzsz_gray", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_lzbzsz_gray_2x {
get {
object obj = ResourceManager.GetObject("icon_lzbzsz_gray_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_news {
get {
object obj = ResourceManager.GetObject("icon_news", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_news_2x {
get {
object obj = ResourceManager.GetObject("icon_news_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_search {
get {
object obj = ResourceManager.GetObject("icon_search", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_search_2x {
get {
object obj = ResourceManager.GetObject("icon_search_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xllzsz {
get {
object obj = ResourceManager.GetObject("icon_xllzsz", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xllzsz_2x {
get {
object obj = ResourceManager.GetObject("icon_xllzsz_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xllzsz_gray {
get {
object obj = ResourceManager.GetObject("icon_xllzsz_gray", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xllzsz_gray_2x {
get {
object obj = ResourceManager.GetObject("icon_xllzsz_gray_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xlsz {
get {
object obj = ResourceManager.GetObject("icon_xlsz", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xlsz_2x {
get {
object obj = ResourceManager.GetObject("icon_xlsz_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xlsz_gray {
get {
object obj = ResourceManager.GetObject("icon_xlsz_gray", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap icon_xlsz_gray_2x {
get {
object obj = ResourceManager.GetObject("icon_xlsz_gray_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap logo {
get {
object obj = ResourceManager.GetObject("logo", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap logo_2x {
get {
object obj = ResourceManager.GetObject("logo_2x", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
@@ -0,0 +1,235 @@
<?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="head_tx" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\head_tx.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="head_tx_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\head_tx@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_arrow" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_arrow1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_arrow1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_arrow1_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_arrow1@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_arrow_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_arrow@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cg_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cg@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cg_white" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cg_white.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cg_white_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cg_white@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cha" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cha.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cha_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cha@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cha_white" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cha_white.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_cha_white_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_cha_white@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_circle_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_circle_red.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_circle_red_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_circle_red@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_close" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_close_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_close@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_home" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_home_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_home@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_lzbzsz" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_lzbzsz.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_lzbzsz_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_lzbzsz@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_lzbzsz_gray" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_lzbzsz_gray.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_lzbzsz_gray_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_lzbzsz_gray@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_news" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_news.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_news_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_news@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_search" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_search_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_search@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xllzsz" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xllzsz.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xllzsz_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xllzsz@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xllzsz_gray" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xllzsz_gray.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xllzsz_gray_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xllzsz_gray@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xlsz" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xlsz.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xlsz_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xlsz@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xlsz_gray" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xlsz_gray.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icon_xlsz_gray_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icon_xlsz_gray@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="logo_2x" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\logo@2x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
+26
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Workflow.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 892 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<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="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="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>
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB