基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
/*********************************
|
||||
* 说明:基础档案审批点击弹出窗口模块配置
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-01-09
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using Lskj.Model;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础档案弹出窗口
|
||||
/// </summary>
|
||||
public class AccraditationModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 审批分单
|
||||
/// </summary>
|
||||
public int StepDivide;
|
||||
/// <summary>
|
||||
/// 单据修改字段
|
||||
/// </summary>
|
||||
public string BillModifyFields;
|
||||
/// <summary>
|
||||
/// 单据表格右键菜单标志
|
||||
/// </summary>
|
||||
public string BillGridMenuFlag = "BILLDETAIL_";
|
||||
/// <summary>
|
||||
/// 当前进度名字
|
||||
/// </summary>
|
||||
public string CurstepName;
|
||||
/// <summary>
|
||||
/// 明细修改字段
|
||||
/// </summary>
|
||||
public string DetailModifyFields;
|
||||
/// <summary>
|
||||
/// 操作浏览查询
|
||||
/// </summary>
|
||||
public string FlowOperSql;
|
||||
/// <summary>
|
||||
/// 行Id
|
||||
/// </summary>
|
||||
public string Id;
|
||||
/// <summary>
|
||||
/// 关闭提示
|
||||
/// </summary>
|
||||
public string StepCloseTip;
|
||||
/// <summary>
|
||||
/// 审批按钮文本
|
||||
/// </summary>
|
||||
public string StepApplyText;
|
||||
/// <summary>
|
||||
/// 审批回退按钮文本
|
||||
/// </summary>
|
||||
public string StepBackText;
|
||||
/// <summary>
|
||||
/// 审批关闭按钮文本
|
||||
/// </summary>
|
||||
public string StepCloseText;
|
||||
/// <summary>
|
||||
/// 常用意见配置sql
|
||||
/// </summary>
|
||||
public string SuggestionSql;
|
||||
/// <summary>
|
||||
/// 审批步骤sql
|
||||
/// </summary>
|
||||
public string StepSql;
|
||||
/// <summary>
|
||||
/// 进度编号
|
||||
/// </summary>
|
||||
public string StepCode;
|
||||
/// <summary>
|
||||
/// 表格必填列
|
||||
/// </summary>
|
||||
public string RequiredFields;
|
||||
/// <summary>
|
||||
/// 表格必填列
|
||||
/// </summary>
|
||||
public string RequiredDetailFields;
|
||||
/// <summary>
|
||||
/// 流转意见
|
||||
/// </summary>
|
||||
public string StepApplyContent;
|
||||
|
||||
/// <summary>
|
||||
/// 基础档案审批弹出窗口配置对象
|
||||
/// </summary>
|
||||
public AccraditationModel(DataRow dr)
|
||||
{
|
||||
if (dr == null) return;
|
||||
|
||||
DataColumnCollection columns = dr.Table.Columns;
|
||||
this.Id = columns.Contains("id") ? dr["id"] + "" : "0";
|
||||
this.CurstepName = dr["stepName"] + "";
|
||||
this.StepApplyText = string.IsNullOrEmpty(dr["stepApplyText"] + "") ? "审核" : dr["stepApplyText"] + "";
|
||||
this.StepBackText = string.IsNullOrEmpty(dr["stepBackText"] + "") ? "回退" : dr["stepBackText"] + "";
|
||||
this.StepCode = dr["stepCode"] + "";
|
||||
this.StepDivide = dr.Table.Columns.Contains("stepDivide") ? Convert.ToInt32(string.IsNullOrEmpty(dr["stepDivide"]+"")?"0":dr["stepDivide"]+"") : 0;
|
||||
this.StepCloseText = columns.Contains("stepCloseText") && string.IsNullOrEmpty(dr["stepCloseText"] + "") ? "关闭" : dr["stepCloseText"] + "";
|
||||
this.StepCloseTip = columns.Contains("stepCloseTip") ? dr["stepCloseTip"] + "" : "";
|
||||
this.StepSql = columns.Contains("stepSql") ? dr["stepSql"] + "" : "";
|
||||
this.BillModifyFields = dr["billModifyFields"] + "";
|
||||
this.SuggestionSql = "select Mix_apellation from P_BaseMixInfoTab a where a.Tag ='1201'";
|
||||
this.FlowOperSql = "select object_id('p_baseflowoperex')";
|
||||
this.DetailModifyFields = dr["detailModifyFields"] + "";
|
||||
this.RequiredFields = columns.Contains("requiredFields") ? dr["requiredFields"] + "" : string.Empty;
|
||||
this.RequiredDetailFields = columns.Contains("requiredDetailFields") ? dr["requiredDetailFields"] + "" : string.Empty;
|
||||
this.StepApplyContent = columns.Contains("StepApplyContent") ? dr["StepApplyContent"] + "" : string.Empty;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 触发事件的类型
|
||||
/// </summary>
|
||||
public enum ActionType
|
||||
{
|
||||
/// <summary>
|
||||
/// 未设置
|
||||
/// </summary>
|
||||
None = -1,
|
||||
/// <summary>
|
||||
/// 加载数据
|
||||
/// </summary>
|
||||
Load = 0,
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
Add = 1,
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
Update = 2,
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
Delete = 3,
|
||||
/// <summary>
|
||||
/// 作废
|
||||
/// </summary>
|
||||
Obsolete = 4,
|
||||
/// <summary>
|
||||
/// 取消作废
|
||||
/// </summary>
|
||||
EscObsolete = 5,
|
||||
/// <summary>
|
||||
/// 提交
|
||||
/// </summary>
|
||||
Submit = 21,
|
||||
/// <summary>
|
||||
/// 取消提交
|
||||
/// </summary>
|
||||
EscSubmit = 22,
|
||||
|
||||
/// <summary>
|
||||
/// 审核
|
||||
/// </summary>
|
||||
Audit = 31,
|
||||
/// <summary>
|
||||
/// 反退
|
||||
/// </summary>
|
||||
AuditBack = 32,
|
||||
/// <summary>
|
||||
/// 关闭审核
|
||||
/// </summary>
|
||||
AuditClose = 33,
|
||||
/// <summary>
|
||||
/// 审核催办
|
||||
/// </summary>
|
||||
AuditPress = 34,
|
||||
/// <summary>
|
||||
/// 审核暂停待办
|
||||
/// </summary>
|
||||
AuditPause = 35,
|
||||
/// <summary>
|
||||
/// 审核转发
|
||||
/// </summary>
|
||||
AuditForward = 36,
|
||||
/// <summary>
|
||||
/// 审核转交
|
||||
/// </summary>
|
||||
AuditHand = 37
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
/***********************
|
||||
* 说明:基础审批分组数据界面模型(p_systemaddgroup)表
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-01-25
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class AddGroupModel
|
||||
{
|
||||
public AddGroupModel()
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// 控件左间距
|
||||
/// </summary>
|
||||
public int ControlLeft;
|
||||
/// <summary>
|
||||
/// 控件上间距
|
||||
/// </summary>
|
||||
public int ControlTop;
|
||||
/// <summary>
|
||||
/// 控件宽度
|
||||
/// </summary>
|
||||
public int ControlWidth;
|
||||
/// <summary>
|
||||
/// 控件高度
|
||||
/// </summary>
|
||||
public int ControlHeight;
|
||||
/// <summary>
|
||||
/// 组名
|
||||
/// </summary>
|
||||
public string GroupName;
|
||||
|
||||
public AddGroupModel(DataRow dr)
|
||||
{
|
||||
if (dr == null) return;
|
||||
GroupName = dr["GroupName"] + "";
|
||||
ControlLeft = Convert.ToInt32(dr["controlLeft"]);
|
||||
ControlTop = Convert.ToInt32(dr["controlTop"]);
|
||||
ControlWidth = Convert.ToInt32(dr["controlWidth"]);
|
||||
ControlHeight = Convert.ToInt32(dr["controlHeight"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
/******************************
|
||||
* 说明:附件对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-03-07
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 附件对象
|
||||
/// </summary>
|
||||
public class AttachModuleModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 模块编号
|
||||
/// </summary>
|
||||
/// <value>The menu code.</value>
|
||||
public string MenuCode { get; private set; }
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
/// <value>The name of the menu.</value>
|
||||
public string MenuName { get; private set; }
|
||||
/// <summary>
|
||||
/// 目录ID
|
||||
/// </summary>
|
||||
/// <value>The dir identifier.</value>
|
||||
public string DirId { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the menu BMP spec.
|
||||
/// </summary>
|
||||
/// <value>The menu BMP spec.</value>
|
||||
public string MenuBmpSpec { get; private set; }
|
||||
/// <summary>
|
||||
/// 1.基础档案、2.单据
|
||||
/// </summary>
|
||||
/// <value>The type of the mod.</value>
|
||||
public int ModType { get; private set; }
|
||||
/// <summary>
|
||||
/// 是否为报表
|
||||
/// </summary>
|
||||
/// <value>The is report.</value>
|
||||
public bool IsReport { get; private set; }
|
||||
/// <summary>
|
||||
/// 表名
|
||||
/// </summary>
|
||||
/// <value>The name of the table.</value>
|
||||
public string TableName { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the form key.
|
||||
/// </summary>
|
||||
/// <value>The form key.</value>
|
||||
public string FormKey { get; private set; }
|
||||
/// <summary>
|
||||
/// 模块主键,只会出现在基础档案
|
||||
/// </summary>
|
||||
/// <value>The parmary key.</value>
|
||||
public string ParmaryKey;
|
||||
|
||||
public AttachModuleModel(DataRow rowItem)
|
||||
{
|
||||
this.MenuCode = rowItem["DllCoid"] + "";
|
||||
this.MenuName = rowItem["ToolsName"] + "";
|
||||
this.DirId = rowItem["dirid"] + "";
|
||||
this.MenuBmpSpec = rowItem["bmpSpec"] + "";
|
||||
this.ModType = Convert.ToInt32(rowItem["modType"] + "");
|
||||
this.IsReport = "1".Equals(rowItem["isReport"] + "");
|
||||
this.TableName = rowItem["TableName"] + "";
|
||||
this.FormKey = rowItem.Table.Columns.Contains("formKey") ?rowItem["formKey"] + "":"";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
/**********************************
|
||||
* 说明:基础审批模块配置对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-12-04
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
**********************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 基础审批模块配置对象
|
||||
/// </summary>
|
||||
public class BaseAccraditationModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 单表
|
||||
/// </summary>
|
||||
/// <value>The bill table.</value>
|
||||
public string BillTable { get; set; }
|
||||
/// <summary>
|
||||
/// 列前缀
|
||||
/// </summary>
|
||||
/// <value>The column_prefix.</value>
|
||||
public string ColumnPrefix { get; set; }
|
||||
/// <summary>
|
||||
/// 自定义查询条件
|
||||
/// </summary>
|
||||
public string CondSql { get; set; }
|
||||
/// <summary>
|
||||
/// 取消标记
|
||||
/// </summary>
|
||||
/// <value>The cancel flag.</value>
|
||||
public string CancelFlag { get { return this.ColumnPrefix + "cancelFlag"; } }
|
||||
/// <summary>
|
||||
/// 默认关键字段
|
||||
/// </summary>
|
||||
public string DefaultParmaryField = "Billdocument_Id";
|
||||
/// <summary>
|
||||
/// 默认流程字段
|
||||
/// </summary>
|
||||
public string DefaultStepField = "stepCode";
|
||||
/// <summary>
|
||||
/// 表单键值
|
||||
/// </summary>
|
||||
/// <value>The form key.</value>
|
||||
public string FormKey { get; set; }
|
||||
/// <summary>
|
||||
/// 关键字段
|
||||
/// </summary>
|
||||
/// <value>The key field.</value>
|
||||
public string KeyField { get; set; }
|
||||
/// <summary>
|
||||
/// 菜单条件
|
||||
/// </summary>
|
||||
/// <value>The m menu cond.</value>
|
||||
public string MenuCond { get; set; }
|
||||
/// <summary>
|
||||
/// 审批回退人员
|
||||
/// </summary>
|
||||
/// <value>The over back oper.</value>
|
||||
public string OverBackOper { get; set; }
|
||||
/// <summary>
|
||||
/// 审批回退条件
|
||||
/// </summary>
|
||||
/// <value>The over back cond.</value>
|
||||
public string OverBackCond { get; set; }
|
||||
/// <summary>
|
||||
/// 审批回退Sql
|
||||
/// </summary>
|
||||
/// <value>The over back SQL.</value>
|
||||
public string OverBackSql { get; set; }
|
||||
/// <summary>
|
||||
/// 审批回退键值
|
||||
/// </summary>
|
||||
/// <value>The over back key.</value>
|
||||
public string OverBackKey { get; set; }
|
||||
/// <summary>
|
||||
/// The bill type
|
||||
/// </summary>
|
||||
public int BillPrintType;
|
||||
/// <summary>
|
||||
/// 模块简写
|
||||
/// </summary>
|
||||
public string Prefix;
|
||||
/// <summary>
|
||||
/// 是否允许批量审核
|
||||
/// </summary>
|
||||
public bool MuitlAuditFlag;
|
||||
/// <summary>
|
||||
/// 表格关键字段
|
||||
/// </summary>
|
||||
public string TmpParmaryField { get { return this.ColumnPrefix + DefaultParmaryField; } }
|
||||
/// <summary>
|
||||
/// 流程进度字段
|
||||
/// </summary>
|
||||
public string TmpStepField { get { return this.ColumnPrefix + DefaultStepField; } }
|
||||
/// <summary>
|
||||
/// 基础档案单据审批关键字段区分
|
||||
/// </summary>
|
||||
/// <param name="modtype">The modtype.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
public string GetParmaryKey(ModuleType modType)
|
||||
{
|
||||
return modType.Equals(ModuleType.BaseAudit) ? KeyField : TmpParmaryField;
|
||||
}
|
||||
/// <summary>
|
||||
/// 打开图档预览的模块编号
|
||||
/// </summary>
|
||||
public string FilePreviewCode;
|
||||
/// <summary>
|
||||
/// 已完成界面底部配置明细列
|
||||
/// </summary>
|
||||
public string BelowDetailLine;
|
||||
/// <summary>
|
||||
///已完成界面底部配置明细Sql
|
||||
/// </summary>
|
||||
public string BelowDetailSql;
|
||||
/// <summary>
|
||||
/// 是否允许批量反退 (没有MuitlAuditBackFlag字段,就以批量审核状态为准)
|
||||
/// </summary>
|
||||
public bool MuitlAuditBackFlag;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 审批模块配置对象
|
||||
/// </summary>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public BaseAccraditationModel(DataRow rowItem)
|
||||
{
|
||||
if (rowItem == null) return;
|
||||
this.BillTable = rowItem.Table.Columns.Contains("sqldt1") ? rowItem["sqldt1"] + "" : rowItem["mastertable"] + "";
|
||||
this.MuitlAuditFlag = rowItem.Table.Columns.Contains("MuitlAuditFlag") ? rowItem["MuitlAuditFlag"] + ""=="1" : false;
|
||||
this.BillPrintType = rowItem.Table.Columns.Contains("billPrintType")&& !string.IsNullOrEmpty(rowItem["billPrintType"] + "")?Convert.ToInt32(rowItem["billPrintType"] + ""):0;
|
||||
this.FormKey=rowItem["formkey"]+"";
|
||||
this.OverBackOper = rowItem["overbackoper"] + "";
|
||||
this.OverBackCond = rowItem["overbackcond"] + "";
|
||||
this.OverBackSql = rowItem["overbacksql"] + "";
|
||||
this.OverBackKey = rowItem["overbackkey"] + "";
|
||||
this.Prefix = rowItem.Table.Columns.Contains("prefix") ? rowItem["prefix"] + "" : "";
|
||||
this.CondSql = string.Format("select * from p_systembillsourcecond where formKey='{0}' order by orderid", OverBackKey);
|
||||
this.FilePreviewCode = rowItem.Table.Columns.Contains("FilePreviewCode") ? rowItem["FilePreviewCode"] + "": "";
|
||||
this.BelowDetailLine = rowItem.Table.Columns.Contains("BelowDetailLine") ? rowItem["BelowDetailLine"] + "" : "";
|
||||
this.BelowDetailSql = rowItem.Table.Columns.Contains("BelowDetailSql") ? rowItem["BelowDetailSql"] + "" : "";
|
||||
this.MuitlAuditBackFlag = rowItem.Table.Columns.Contains("MuitlAuditBackFlag") ? rowItem["MuitlAuditBackFlag"] + "" == "1" : this.MuitlAuditFlag;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
/***********************
|
||||
* 说明:基础审批模型
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-02-07
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BaseAuditModel : ModuleModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 审批BillType类型
|
||||
/// </summary>
|
||||
/// <value>The type of the bill.</value>
|
||||
public string BillType { get { return this.PrefixKey + "billType"; } }
|
||||
/// <summary>
|
||||
/// 进度踪审名
|
||||
/// </summary>
|
||||
/// <value>The name of the step over.</value>
|
||||
public string StepOverName { get { return this.PrefixKey + "stepover"; } }
|
||||
/// <summary>
|
||||
/// 返退标记
|
||||
/// </summary>
|
||||
/// <value>The back selected.</value>
|
||||
public string BackSelected { get; set; }
|
||||
/// <summary>
|
||||
/// 滚动条显示
|
||||
/// </summary>
|
||||
/// <param name="rowItem"></param>
|
||||
public bool DisplayScroll;
|
||||
|
||||
public BaseAuditModel(DataRow rowItem)
|
||||
: base(rowItem)
|
||||
{
|
||||
if (rowItem == null) return;
|
||||
this.BackSelected = rowItem.Table.Columns.Contains("backSelected") ? rowItem["backSelected"] + "" : "0";
|
||||
this.DisplayScroll= rowItem.Table.Columns.Contains("DisplayScroll") ?"1".Equals( rowItem["DisplayScroll"] + "") : false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BaseResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否成功
|
||||
/// </summary>
|
||||
public bool success { get; set; }
|
||||
/// <summary>
|
||||
/// 文字信息
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public string msg { get; set; }
|
||||
/// <summary>
|
||||
/// 数据总数
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty(DefaultValueHandling = Newtonsoft.Json.DefaultValueHandling.Ignore)]
|
||||
[System.ComponentModel.DefaultValue(0)]
|
||||
public int tot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回的主数据
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public object data { get; set; }
|
||||
/// <summary>
|
||||
/// 如有其它数据
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty(NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
|
||||
public object other { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// json编码后的字符串
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public string EncodedResult { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// json编码后的字符串
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public bool WriteResponse = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
/******************************
|
||||
* 说明:基础档案保存对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-08
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BaseSaveModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否保存成功,存储过程执行后回写
|
||||
/// </summary>
|
||||
public bool Success;
|
||||
/// <summary>
|
||||
/// 保存失败错误信息
|
||||
/// </summary>
|
||||
public string FaultMsg;
|
||||
/// <summary>
|
||||
/// sql语句
|
||||
/// </summary>
|
||||
public string BaseSql;
|
||||
/// <summary>
|
||||
/// 模块编号
|
||||
/// </summary>
|
||||
public string MenuCode;
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
public string TableName;
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string KeyField;
|
||||
/// <summary>
|
||||
/// 主键值
|
||||
/// </summary>
|
||||
public string FieldValue;
|
||||
/// <summary>
|
||||
/// Data Row
|
||||
/// </summary>
|
||||
public DataRow row;
|
||||
/// <summary>
|
||||
/// 保存类型
|
||||
/// </summary>
|
||||
public SaveType BaseSaveType;
|
||||
|
||||
/// <summary>
|
||||
/// 保存确认
|
||||
/// </summary>
|
||||
public int ComfirmFlag;
|
||||
/// <summary>
|
||||
/// 调用存储过程模式
|
||||
/// </summary>
|
||||
public int NewVer;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存类型
|
||||
/// </summary>
|
||||
public enum SaveType
|
||||
{
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
Add = 1,
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
Update = 2,
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
Delete=3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础流转步骤
|
||||
/// </summary>
|
||||
public class BaseflowModel
|
||||
{
|
||||
|
||||
public int id;
|
||||
public string typeCode;
|
||||
public int stepCode;
|
||||
public string stepName;
|
||||
public string stepAction;
|
||||
public string backAction;
|
||||
public string stepGroup;
|
||||
public string stepSql;
|
||||
public string billModifyFields;
|
||||
public string detailModifyFields;
|
||||
public string beforeEvent;
|
||||
public string afterEvent;
|
||||
public string stepApplyText;
|
||||
public string stepBackText;
|
||||
public string stepApplyContent;
|
||||
public string stepBackContent;
|
||||
public string pStepCode;
|
||||
public string stepCloseText;
|
||||
public string stepCloseContent;
|
||||
public string stepCloseTip;
|
||||
public string requiredFields;//主表必填字段
|
||||
|
||||
public DataRow rowItem;
|
||||
|
||||
public BaseflowModel()
|
||||
{
|
||||
}
|
||||
|
||||
public BaseflowModel(DataRow rowItem)
|
||||
{
|
||||
this.rowItem = rowItem;
|
||||
|
||||
this.id = Convert.ToInt32(rowItem["id"] + "");
|
||||
this.typeCode = rowItem["typeCode"] + "";
|
||||
this.stepCode = Convert.ToInt32(rowItem["stepCode"] + "");
|
||||
this.stepName = rowItem["stepName"] + "";
|
||||
this.stepAction = rowItem["stepAction"] + "";
|
||||
this.backAction = rowItem["backAction"] + "";
|
||||
this.stepGroup = rowItem["stepGroup"] + "";
|
||||
this.stepSql = rowItem["stepSql"] + "";
|
||||
this.billModifyFields = rowItem["billModifyFields"] + "";
|
||||
this.detailModifyFields = rowItem["detailModifyFields"] + "";
|
||||
this.beforeEvent = rowItem["beforeEvent"] + "";
|
||||
this.afterEvent = rowItem["afterEvent"] + "";
|
||||
this.stepApplyText = rowItem["stepApplyText"] + "";
|
||||
this.stepBackText = rowItem["stepBackText"] + "";
|
||||
this.stepApplyContent = rowItem["stepApplyContent"] + "";
|
||||
this.stepBackContent = rowItem["stepBackContent"] + "";
|
||||
this.pStepCode = rowItem["pStepCode"] + "";
|
||||
this.stepCloseText = rowItem["stepCloseText"] + "";
|
||||
this.stepCloseContent = rowItem["stepCloseContent"] + "";
|
||||
this.stepCloseTip = rowItem["stepCloseTip"] + "";
|
||||
this.requiredFields = rowItem["requiredFields"] + "";//
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BaseflowTypeModel
|
||||
{ public int id;
|
||||
public string typeCode;
|
||||
public string billType;
|
||||
public string billTypeName;
|
||||
public string operUser;
|
||||
public string typekey;
|
||||
|
||||
public BaseflowTypeModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public BaseflowTypeModel(DataRow rowItem)
|
||||
{
|
||||
this.id = Convert.ToInt32(rowItem["id"] + "");
|
||||
this.typeCode = rowItem["typeCode"] + "";
|
||||
this.billType = rowItem["billType"] + "";
|
||||
this.billTypeName = rowItem["billTypeName"] + "";
|
||||
this.operUser = rowItem["operUser"] + "";
|
||||
this.typekey = rowItem["typekey"] + "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BaseflowTypeStepModel
|
||||
{
|
||||
|
||||
public int id;
|
||||
public string typeCode;
|
||||
public string billType;
|
||||
public string stepCode;
|
||||
public string stepName;
|
||||
public string stepGroup;
|
||||
public string stepTime;
|
||||
public string autoStep;
|
||||
public string viewUser;
|
||||
public string operUser;
|
||||
public string stepBackCode;
|
||||
public string typekey;
|
||||
public string StepOverCond;
|
||||
public string autoStepCond;
|
||||
public string pStepCode;
|
||||
public string SameAudited;
|
||||
public string stepClosed;
|
||||
public string comfirmOper;
|
||||
public string remindOper;
|
||||
public string remindSelect;
|
||||
public string signOper;
|
||||
public string flowcharTagId;
|
||||
public string flowcharWidth;
|
||||
public string flowcharHeght;
|
||||
public string FlowCharfillcolor;
|
||||
public string LeftFlowCharfillcolor;
|
||||
public string LeftFlowCharWidth;
|
||||
public string fontSize;
|
||||
public string fontWeight;
|
||||
public string fontFamily;
|
||||
public string flowcharLineHeght;
|
||||
public string LeftFontColor;
|
||||
public string fontColor;
|
||||
public string affirmbak;
|
||||
|
||||
public BaseflowTypeStepModel()
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public BaseflowTypeStepModel(DataRow rowItem)
|
||||
{
|
||||
this.id = Convert.ToInt32(rowItem["id"] + "");
|
||||
this.typeCode = rowItem["typeCode"] + "";
|
||||
this.billType = rowItem["billType"] + "";
|
||||
this.stepCode = rowItem["stepCode"] + "";
|
||||
this.stepName = rowItem["stepName"] + "";
|
||||
this.stepGroup = rowItem["stepGroup"] + "";
|
||||
this.autoStep = rowItem["autoStep"] + "";
|
||||
this.viewUser = rowItem["viewUser"] + "";
|
||||
this.operUser = rowItem["operUser"] + "";
|
||||
this.stepBackCode = rowItem["stepBackCode"] + "";
|
||||
this.typekey = rowItem["typekey"] + "";
|
||||
this.StepOverCond = rowItem["StepOverCond"] + "";
|
||||
this.autoStepCond = rowItem["autoStepCond"] + "";
|
||||
this.pStepCode = rowItem["pStepCode"] + "";
|
||||
this.SameAudited = rowItem["SameAudited"] + "";
|
||||
this.stepClosed = rowItem["stepClosed"] + "";
|
||||
this.comfirmOper = rowItem["comfirmOper"] + "";
|
||||
this.remindOper = rowItem["remindOper"] + "";
|
||||
this.remindSelect = rowItem["remindSelect"] + "";
|
||||
this.signOper = rowItem["signOper"] + "";
|
||||
|
||||
this.flowcharTagId = rowItem["flowcharTagId"] + "";
|
||||
this.flowcharWidth = rowItem["flowcharWidth"] + "";
|
||||
this.flowcharHeght = rowItem["flowcharHeght"] + "";
|
||||
this.FlowCharfillcolor = rowItem["FlowCharfillcolor"] + "";
|
||||
this.LeftFlowCharfillcolor = rowItem["LeftFlowCharfillcolor"] + "";
|
||||
this.LeftFlowCharWidth = rowItem["LeftFlowCharWidth"] + "";
|
||||
this.fontSize = rowItem["fontSize"] + "";
|
||||
this.fontWeight = rowItem["fontWeight"] + "";
|
||||
this.fontFamily = rowItem["fontFamily"] + "";
|
||||
this.flowcharLineHeght = rowItem["flowcharLineHeght"] + "";
|
||||
this.LeftFontColor = rowItem["LeftFontColor"] + "";
|
||||
this.fontColor = rowItem["fontColor"] + "";
|
||||
this.affirmbak = rowItem["affirmbak"] + "";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/***********************
|
||||
* 说明:单据审批模型
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-02-07
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BillAuditModel : BillModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据类别
|
||||
/// </summary>
|
||||
/// <value>The type of the _bill.</value>
|
||||
public string BillType { get { return MasterPreFix + "BillType"; } }
|
||||
/// <summary>
|
||||
/// 审批加载明细标志
|
||||
/// </summary>
|
||||
/// <value>The audit load detail flag.</value>
|
||||
public string AuditLoadDetailFlag { get; set; }
|
||||
/// <summary>
|
||||
/// 单据明细formKey
|
||||
/// </summary>
|
||||
/// <value>The default form key.</value>
|
||||
public string DetailFormKey { get { return "BILLDETAIL_" + FormKey; } }
|
||||
/// <summary>
|
||||
/// 返回标记
|
||||
/// </summary>
|
||||
/// <value>The back selected.</value>
|
||||
public string BackSelected { get; set; }
|
||||
/// <summary>
|
||||
/// 返回标记
|
||||
/// </summary>
|
||||
/// <value>The back selected.</value>
|
||||
public bool SaveRefresh { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据审批模型
|
||||
/// </summary>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public BillAuditModel(DataRow rowItem)
|
||||
: base(rowItem)
|
||||
{
|
||||
if (rowItem == null) return;
|
||||
DataColumnCollection columns = rowItem.Table.Columns;
|
||||
this.BackSelected = columns.Contains("backSelected") ? rowItem["backSelected"] + "" : "0";
|
||||
this.AuditLoadDetailFlag = columns.Contains("AuditLoadDetailFlag") ? rowItem["AuditLoadDetailFlag"] + "" : "";
|
||||
this.SaveRefresh = columns.Contains("SaveRefresh") ? "1".Equals(rowItem["SaveRefresh"] + "") : false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/***********************
|
||||
* 说明:单据录入条码模型
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-04-28
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BillBarCodeModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
/// <value>The name of the product.</value>
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 物料规格
|
||||
/// </summary>
|
||||
/// <value>The spec.</value>
|
||||
public string ProductSpec { get; set; }
|
||||
/// <summary>
|
||||
/// 物料型号
|
||||
/// </summary>
|
||||
/// <value>The product model.</value>
|
||||
public string ProductModel { get; set; }
|
||||
/// <summary>
|
||||
/// 商品品类
|
||||
/// </summary>
|
||||
/// <value>The classify.</value>
|
||||
public string ProductClassify { get; set; }
|
||||
/// <summary>
|
||||
/// 商品品牌
|
||||
/// </summary>
|
||||
/// <value>The productbrand.</value>
|
||||
public string ProductBrand { get; set; }
|
||||
/// <summary>
|
||||
/// 花色
|
||||
/// </summary>
|
||||
/// <value>The color.</value>
|
||||
public string Color { get; set; }
|
||||
public BillBarCodeModel(DataRow row)
|
||||
{
|
||||
this.ProductName = row["productName"] + "";
|
||||
this.ProductSpec = row["spec"] + "";
|
||||
this.ProductModel = row["model"] + "";
|
||||
this.ProductClassify = row["classify"] + "";
|
||||
this.ProductBrand = row["Mproductid"] + "";
|
||||
this.Color = row["str4"] + "";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
/***********************
|
||||
* 说明:单据明细模型 (p_systembilltype,p_systemDlltab)联合查询
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class BillDetailModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///单据明细表名
|
||||
/// </summary>
|
||||
/// <value>The name of the detail tab.</value>
|
||||
public string DetailTable { get; set; }
|
||||
/// <summary>
|
||||
/// 修改条件
|
||||
/// </summary>
|
||||
/// <value>The modify cond.</value>
|
||||
public string ModifyCond { get; set; }
|
||||
/// <summary>
|
||||
/// 单据明细表名2
|
||||
/// </summary>
|
||||
/// <value>The detail tab name2.</value>
|
||||
public string DetailTable2 { get; set; }
|
||||
/// <summary>
|
||||
///主表名
|
||||
/// </summary>
|
||||
/// <value>The master table.</value>
|
||||
public string MasterTable { get; set; }
|
||||
|
||||
public BillDetailModel(DataRow row)
|
||||
{
|
||||
if (row == null) return;
|
||||
this.DetailTable = row["detailTable"] + "";
|
||||
this.DetailTable2 = row["detailTable_1"]+"";
|
||||
this.ModifyCond = row["modifyCond"] + "";
|
||||
this.MasterTable = row["masterTable"] + "";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,421 @@
|
||||
/******************************
|
||||
* 说明:单据系统配置对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-23
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据系统配置对象
|
||||
/// </summary>
|
||||
public class BillModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance can copy.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can copy; otherwise, <c>false</c>.</value>
|
||||
public bool CanCopy { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance can import.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can import; otherwise, <c>false</c>.</value>
|
||||
public bool CanImport { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance can export.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can export; otherwise, <c>false</c>.</value>
|
||||
public bool CanExport { get; private set; }
|
||||
/// <summary>
|
||||
/// 是否默认添加空行
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [default add empty row]; otherwise, <c>false</c>.</value>
|
||||
public bool DefaultAddEmptyRow { get; private set; }
|
||||
/// <summary>
|
||||
/// 是否显示红字单据
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [visible red bill]; otherwise, <c>false</c>.</value>
|
||||
public bool VisibleRedBill { get; private set; }
|
||||
/// <summary>
|
||||
/// 是否允许保存空明细
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [save null detail]; otherwise, <c>false</c>.</value>
|
||||
public bool SaveNullDetail { get; private set; }
|
||||
/// <summary>
|
||||
/// 单据状态,true:修改.false:新增
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [save state]; otherwise, <c>false</c>.</value>
|
||||
public bool SaveState { get; set; }
|
||||
/// <summary>
|
||||
/// 操作区域宽度
|
||||
/// </summary>
|
||||
/// <value>The width of the panel.</value>
|
||||
public int PanelWidth { get; private set; }
|
||||
/// <summary>
|
||||
/// 操作区域高度
|
||||
/// </summary>
|
||||
/// <value>The height of the panel.</value>
|
||||
public int PanelHeight { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the height of the parent.
|
||||
/// </summary>
|
||||
/// <value>The height of the parent.</value>
|
||||
public int ParentHeight { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the width of the parent.
|
||||
/// </summary>
|
||||
/// <value>The width of the parent.</value>
|
||||
public int ParentWidth { get; private set; }
|
||||
/// <summary>
|
||||
/// 打印文件类型
|
||||
/// </summary>
|
||||
/// <value>The type of the print file.</value>
|
||||
public int PrintFileType { get; private set; }
|
||||
/// <summary>
|
||||
/// 单据明细列回车默认跳转方式(0.默认列跳转,1为行跳转)
|
||||
/// </summary>
|
||||
/// <value>The enter order.</value>
|
||||
public int EnterOrder { get; private set; }
|
||||
/// <summary>
|
||||
/// 附件ID
|
||||
/// </summary>
|
||||
/// <value>The dir identifier.</value>
|
||||
public int DirId { get; private set; }
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
/// <value>The name of the type.</value>
|
||||
public string TypeName { get; set; }
|
||||
/// <summary>
|
||||
/// 主表名
|
||||
/// </summary>
|
||||
/// <value>The master table.</value>
|
||||
public string MasterTable { get; private set; }
|
||||
/// <summary>
|
||||
/// 明细表
|
||||
/// </summary>
|
||||
/// <value>The detail table.</value>
|
||||
public string DetailTable { get; private set; }
|
||||
/// <summary>
|
||||
/// 主表sql
|
||||
/// </summary>
|
||||
/// <value>The master SQL.</value>
|
||||
public string MasterSql { get; private set; }
|
||||
/// <summary>
|
||||
/// 明细表sql
|
||||
/// </summary>
|
||||
/// <value>The detail SQL.</value>
|
||||
public string DetailSql { get; private set; }
|
||||
/// <summary>
|
||||
/// 单据前缀
|
||||
/// </summary>
|
||||
/// <value>The prefix.</value>
|
||||
public string Prefix { get; private set; }
|
||||
/// <summary>
|
||||
/// 生成单据号标识
|
||||
/// </summary>
|
||||
/// <value>The bill seq.</value>
|
||||
public string BillSeq { get; private set; }
|
||||
/// <summary>
|
||||
/// 修改条件
|
||||
/// </summary>
|
||||
/// <value>The modify cond.</value>
|
||||
public string ModifyCond { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the form key.
|
||||
/// </summary>
|
||||
/// <value>The form key.</value>
|
||||
public string FormKey { get; private set; }
|
||||
/// <summary>
|
||||
/// 打印文件
|
||||
/// </summary>
|
||||
/// <value>The print file.</value>
|
||||
public string PrintFile { get; private set; }
|
||||
/// <summary>
|
||||
/// 打印条件
|
||||
/// </summary>
|
||||
/// <value>The print cond.</value>
|
||||
public string PrintCond { get; private set; }
|
||||
/// <summary>
|
||||
/// 打印SQL
|
||||
/// </summary>
|
||||
/// <value>The print SQL.</value>
|
||||
public string PrintSql { get; private set; }
|
||||
/// <summary>
|
||||
/// 打印SQL1
|
||||
/// </summary>
|
||||
/// <value>The print SQL1.</value>
|
||||
public string PrintSql1 { get; private set; }
|
||||
/// <summary>
|
||||
/// 打印SQL2.
|
||||
/// </summary>
|
||||
/// <value>The print SQL2.</value>
|
||||
public string PrintSql2 { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the BMP spec.
|
||||
/// </summary>
|
||||
/// <value>The BMP spec.</value>
|
||||
public string BmpSpec { get; private set; }
|
||||
/// <summary>
|
||||
/// 单据回退人员
|
||||
/// </summary>
|
||||
/// <value>The over back oper.</value>
|
||||
public string OverBackOper { get; private set; }
|
||||
/// <summary>
|
||||
/// 单据回退条件
|
||||
/// </summary>
|
||||
/// <value>The over back cond.</value>
|
||||
public string OverBackCond { get; private set; }
|
||||
/// <summary>
|
||||
/// 红蓝字单据标记 未配置或者-1显示全部,0=蓝字,1=红字,只加载其中一种类型,屏蔽另一种类型,与单据配置的红字标记不冲突
|
||||
/// </summary>
|
||||
/// <value>The bill flag.</value>
|
||||
public int BillFlag { get; set; }
|
||||
/// <summary>
|
||||
/// 单据来源id,逗号分隔,为空代表加载全部来源
|
||||
/// </summary>
|
||||
/// <value>The bill source ids.</value>
|
||||
public string BillSourceIds { get; set; }
|
||||
/// <summary>
|
||||
/// 明细排序字段
|
||||
/// </summary>
|
||||
/// <value>The detail order field.</value>
|
||||
public string DetailOrderField { get; set; }
|
||||
/// <summary>
|
||||
/// 明细双击是否提示(1.提示,其他情况不提示)
|
||||
/// </summary>
|
||||
/// <value>The detail double click tip.</value>
|
||||
public string DetailDoubleClickTip { get; set; }
|
||||
/// <summary>
|
||||
/// 主表列前缀
|
||||
/// </summary>
|
||||
/// <value>The master pre fix.</value>
|
||||
public string MasterPreFix { get; set; }
|
||||
/// <summary>
|
||||
/// 明细表列前缀
|
||||
/// </summary>
|
||||
/// <value>The detail pre fix.</value>
|
||||
public string DetailPreFix { get; set; }
|
||||
/// <summary>
|
||||
/// 单据主键字段
|
||||
/// </summary>
|
||||
/// <value>The primary key.</value>
|
||||
public string PrimaryKey { get { return this.MasterPreFix + "Billdocument_Id"; } }
|
||||
/// <summary>
|
||||
/// 单据明细主键字段
|
||||
/// </summary>
|
||||
/// <value>The primary detail key.</value>
|
||||
public string PrimaryDetailKey { get { return this.DetailPreFix + "Billdocument_Id"; } }
|
||||
/// <summary>
|
||||
/// 红字、蓝字字段
|
||||
/// </summary>
|
||||
/// <value>The rtagid key.</value>
|
||||
public string RtagidKey { get { return this.MasterPreFix + "Rtagid"; } }
|
||||
/// <summary>
|
||||
/// 保存后新增
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [apply refresh]; otherwise, <c>false</c>.</value>
|
||||
public bool ApplyRefresh { get; set; }
|
||||
/// <summary>
|
||||
/// 关联弹出分配数量模块编号
|
||||
/// </summary>
|
||||
/// <value>The popup union code.</value>
|
||||
public string PopupUnionCode { get; set; }
|
||||
/// <summary>
|
||||
/// The new ver
|
||||
/// </summary>
|
||||
public int NewVer;
|
||||
/// <summary>
|
||||
/// 单据明细是否能删除
|
||||
/// </summary>
|
||||
public string DeleteDetailCond;
|
||||
/// <summary>
|
||||
/// 单据明细是否能修改
|
||||
/// </summary>
|
||||
public string UpdateDetailCond;
|
||||
/// <summary>
|
||||
/// 单据明细打印条件配置
|
||||
/// </summary>
|
||||
public string BillPrintTag;
|
||||
/// <summary>
|
||||
/// 单据来源明细拖拽后是否隐藏自身(首次刷新)
|
||||
/// </summary>
|
||||
public string drgFinishHide;
|
||||
/// <summary>
|
||||
/// 基础档案是否是配置的动态多表头
|
||||
/// </summary>
|
||||
public int AutoMultiHeader;
|
||||
/// <summary>
|
||||
/// 保存单据是否显示
|
||||
/// </summary>
|
||||
public string unableToSave;
|
||||
///
|
||||
/// <summary>
|
||||
/// 来源明细第一列是否为复选框
|
||||
/// </summary>
|
||||
public int IsBillDetailCheck;
|
||||
///
|
||||
/// <summary>
|
||||
/// 来源第一列是否为复选框
|
||||
/// </summary>
|
||||
public int IsBillSourceCheck;
|
||||
///
|
||||
/// <summary>
|
||||
/// 明细第一列是否为复选框
|
||||
/// </summary>
|
||||
public int IsBillMainDetailCheck;
|
||||
///
|
||||
/// <summary>
|
||||
/// 单据来源明细改变颜色判断字段
|
||||
/// </summary>
|
||||
public string ChangeColColor;
|
||||
/// <summary>
|
||||
/// 单据新增手动触发关联
|
||||
/// </summary>
|
||||
public bool ManuallyTriggerCorrelation;
|
||||
/// <summary>
|
||||
/// 拖拽来源明细时同时拖拽来源到主表
|
||||
/// </summary>
|
||||
public bool DrgDetailAndSource;
|
||||
/// <summary>
|
||||
/// 导出权限人员名称
|
||||
/// </summary>
|
||||
public string exportUser;
|
||||
/// <summary>
|
||||
/// 是否可以导出
|
||||
/// </summary>
|
||||
public bool ExportPermission { get { return string.IsNullOrWhiteSpace(exportUser) || exportUser.Replace(", ", ",").Split(',').Contains(ERPInfo.Instance.UserName); } set { ExportPermission = value; } }
|
||||
/// <summary>
|
||||
/// 是否自动刷新下拉框数据源
|
||||
/// </summary>
|
||||
public bool RefGridLookUpData;
|
||||
/// <summary>
|
||||
/// 显示隐藏主表按钮
|
||||
/// </summary>
|
||||
public bool HiddenMasterTable;
|
||||
/// <summary>
|
||||
/// 是否提交后新增
|
||||
/// </summary>
|
||||
public bool IsApplyAferAdd;
|
||||
/// <summary>
|
||||
/// 是否快速拖拽添加明细
|
||||
/// </summary>
|
||||
public bool IsFastDragAddDetail;
|
||||
/// <summary>
|
||||
/// 单据明细为树表格
|
||||
/// </summary>
|
||||
public bool DetailTreeTable;
|
||||
/// <summary>
|
||||
/// 单据明细为树表格展开方式
|
||||
/// </summary>
|
||||
public string DetailTreeTableExpansion;
|
||||
/// <summary>
|
||||
/// 单据明细可以推拽改变顺序
|
||||
/// </summary>
|
||||
public bool DraggingOrder;
|
||||
/// <summary>
|
||||
/// 是否为Brp模式
|
||||
/// </summary>
|
||||
public bool IsBrp;
|
||||
/// <summary>
|
||||
/// 明细表中默认选中最后一行
|
||||
/// </summary>
|
||||
public bool SelectLast;
|
||||
/// <summary>
|
||||
/// 主表明细 加载筛选行
|
||||
/// </summary>
|
||||
public bool LoadFilter;
|
||||
/// <summary>
|
||||
/// 主表显示纵向滚动条
|
||||
/// </summary>
|
||||
public bool MainVerticalScroll;
|
||||
/// <summary>
|
||||
/// 主表显示横向滚动条
|
||||
/// </summary>
|
||||
public bool MainHorizontalScrolling;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BillModel"/> class.
|
||||
/// </summary>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
///
|
||||
|
||||
public BillModel(DataRow rowItem)
|
||||
{
|
||||
if (rowItem == null) return;
|
||||
|
||||
DataColumnCollection columns = rowItem.Table.Columns;
|
||||
|
||||
this.TypeName = rowItem["typeName"] + "";
|
||||
this.Prefix = columns.Contains("prefix") ? rowItem["prefix"] + "" : string.Empty;
|
||||
this.MasterTable = rowItem["masterTable"] + "";
|
||||
this.DetailTable = rowItem["detailTable"] + "";
|
||||
this.MasterSql = rowItem["MasterSql"] + "";
|
||||
this.DetailSql = rowItem["DetailSql"] + "";
|
||||
this.PanelWidth = string.IsNullOrEmpty(rowItem["billWidth"] + "") ? 900 : Convert.ToInt32(rowItem["billWidth"] + "");
|
||||
this.PanelHeight = string.IsNullOrEmpty(rowItem["billHeight"] + "") ? 450 : Convert.ToInt32(rowItem["billHeight"] + "");
|
||||
this.ParentHeight = string.IsNullOrEmpty(rowItem["ParentHeight"] + "") ? 0 : Convert.ToInt32(rowItem["ParentHeight"] + "");
|
||||
this.ParentWidth = string.IsNullOrEmpty(rowItem["ParentWidth"] + "") ? 0 : Convert.ToInt32(rowItem["ParentWidth"] + "");
|
||||
this.BillSeq = columns.Contains("billseq") ? rowItem["billseq"] + "" : string.Empty;
|
||||
this.ModifyCond = columns.Contains("ModifyCond") ? rowItem["ModifyCond"] + "" : string.Empty;
|
||||
this.FormKey = rowItem["FormKey"] + "";
|
||||
this.PrintFileType = columns.Contains("billPrintType") && !string.IsNullOrEmpty(rowItem["billPrintType"] + "") ? Convert.ToInt32(rowItem["billPrintType"] + "") : 0;
|
||||
this.PrintFile = rowItem["billModuleFile"] + "";
|
||||
this.PrintSql = rowItem["billPrintSql"] + "";
|
||||
this.PrintSql1 = rowItem["billPrintSql1"] + "";
|
||||
this.PrintSql2 = rowItem["billPrintSql2"] + "";
|
||||
this.DirId = string.IsNullOrEmpty(rowItem["dirid"] + "") ? 0 : Convert.ToInt32(rowItem["dirid"] + "");
|
||||
this.BmpSpec = string.IsNullOrEmpty(rowItem["BmpSpec"] + "") ? string.Empty : rowItem["BmpSpec"] + "";
|
||||
this.VisibleRedBill = columns.Contains("redBill") && !string.IsNullOrEmpty(rowItem["redBill"] + "") ? Convert.ToBoolean(rowItem["redBill"] + "") : true;
|
||||
this.SaveNullDetail = columns.Contains("bHasDetail") && !string.IsNullOrEmpty(rowItem["bHasDetail"] + "") ? Convert.ToBoolean(rowItem["bHasDetail"] + "") : false;
|
||||
this.OverBackOper = columns.Contains("OverBackOper") ? rowItem["OverBackOper"] + "" : string.Empty;
|
||||
this.OverBackCond = columns.Contains("OverBackCond") ? rowItem["OverBackCond"] + "" : string.Empty;
|
||||
this.DefaultAddEmptyRow = columns.Contains("AddEmptyRow") && !string.IsNullOrEmpty(rowItem["AddEmptyRow"] + "") ? "1".Equals(rowItem["AddEmptyRow"] + "") : false;
|
||||
this.CanCopy = columns.Contains("CanCopy") && !string.IsNullOrEmpty(rowItem["CanCopy"] + "") ? "1".Equals(rowItem["CanCopy"] + "") : true;
|
||||
this.CanImport = columns.Contains("CanImport") && !string.IsNullOrEmpty(rowItem["CanImport"] + "") ? "1".Equals(rowItem["CanImport"] + "") : true;
|
||||
this.CanExport = columns.Contains("CanExport") && !string.IsNullOrEmpty(rowItem["CanExport"] + "") ? "1".Equals(rowItem["CanExport"] + "") : true;
|
||||
this.EnterOrder = columns.Contains("EnterOrder") && !string.IsNullOrEmpty(rowItem["EnterOrder"] + "") ? Convert.ToInt32(rowItem["EnterOrder"] + "") : 0;
|
||||
this.DetailDoubleClickTip = columns.Contains("DetailDoubleClickTip") ? rowItem["DetailDoubleClickTip"] + "" : string.Empty;
|
||||
this.ApplyRefresh = columns.Contains("ApplyRefresh") && "1".Equals(rowItem["ApplyRefresh"] + "");
|
||||
this.NewVer = columns.Contains("NewVer") && !string.IsNullOrEmpty(rowItem["NewVer"] + "") ? Convert.ToInt32(rowItem["NewVer"] + "") : 0;
|
||||
this.PopupUnionCode = columns.Contains("PopupUnionCode") && !string.IsNullOrEmpty(rowItem["PopupUnionCode"] + "") ? rowItem["PopupUnionCode"] + "" : "";
|
||||
this.DeleteDetailCond = columns.Contains("DeleteDetailCond") && !string.IsNullOrEmpty(rowItem["DeleteDetailCond"] + "") ? rowItem["DeleteDetailCond"] + "" : "";
|
||||
this.UpdateDetailCond = columns.Contains("UpdateDetailCond") && !string.IsNullOrEmpty(rowItem["UpdateDetailCond"] + "") ? rowItem["UpdateDetailCond"] + "" : "";
|
||||
this.BillPrintTag = columns.Contains("BillPrintTag") && !string.IsNullOrEmpty(rowItem["BillPrintTag"] + "") ? rowItem["BillPrintTag"] + "" : "";
|
||||
this.AutoMultiHeader = columns.Contains("AutoMultiHeader") && !string.IsNullOrEmpty(rowItem["AutoMultiHeader"] + "") ? Convert.ToInt32(rowItem["AutoMultiHeader"] + "") : 0;
|
||||
this.IsBillDetailCheck = columns.Contains("billDetailCheck") && !string.IsNullOrEmpty(rowItem["billDetailCheck"] + "") ? Convert.ToInt32(rowItem["billDetailCheck"] + "") : 0;
|
||||
this.IsBillSourceCheck = columns.Contains("billSourceCheck") && !string.IsNullOrEmpty(rowItem["billSourceCheck"] + "") ? Convert.ToInt32(rowItem["billSourceCheck"] + "") : 0;
|
||||
this.IsBillMainDetailCheck = columns.Contains("billMainDetailCheck") && !string.IsNullOrEmpty(rowItem["billMainDetailCheck"] + "") ? Convert.ToInt32(rowItem["billMainDetailCheck"] + "") : 0;
|
||||
|
||||
this.unableToSave = columns.Contains("UnableToSave") && !string.IsNullOrEmpty(rowItem["UnableToSave"] + "") ? rowItem["UnableToSave"] + "" : "";
|
||||
this.drgFinishHide = columns.Contains("drgFinishHide") && !string.IsNullOrEmpty(rowItem["drgFinishHide"] + "") ? rowItem["drgFinishHide"] + "" : "";
|
||||
this.ChangeColColor = columns.Contains("ChangeColColor") && !string.IsNullOrEmpty(rowItem["ChangeColColor"] + "") ? rowItem["ChangeColColor"] + "" : "";
|
||||
this.PrintCond = columns.Contains("PrintCond") && !string.IsNullOrEmpty(rowItem["PrintCond"] + "") ? rowItem["PrintCond"] + "" : "";
|
||||
this.ManuallyTriggerCorrelation = columns.Contains("manuallyTriggerCorrelation") && "1".Equals(rowItem["manuallyTriggerCorrelation"] + "");
|
||||
this.DrgDetailAndSource = columns.Contains("drgDetailAndSource") && "1".Equals(rowItem["drgDetailAndSource"] + "");
|
||||
this.exportUser = columns.Contains("exportUser") && !string.IsNullOrEmpty(rowItem["exportUser"] + "") ? rowItem["exportUser"] + "" : "";
|
||||
this.RefGridLookUpData = columns.Contains("RefGridLookUpData") && "1".Equals(rowItem["RefGridLookUpData"] + "");
|
||||
this.HiddenMasterTable = columns.Contains("HiddenMasterTable") && !string.IsNullOrEmpty(rowItem["HiddenMasterTable"] + "") ? "1".Equals(rowItem["HiddenMasterTable"] + "") : false;
|
||||
this.IsApplyAferAdd = columns.Contains("IsApplyAferAdd") && !string.IsNullOrEmpty(rowItem["IsApplyAferAdd"] + "") ? "1".Equals(rowItem["IsApplyAferAdd"] + "") : false;
|
||||
this.IsFastDragAddDetail = columns.Contains("IsFastDragAddDetail") && !string.IsNullOrEmpty(rowItem["IsFastDragAddDetail"] + "") ? "1".Equals(rowItem["IsFastDragAddDetail"] + "") : false;
|
||||
this.DraggingOrder = columns.Contains("DraggingOrder") && !string.IsNullOrEmpty(rowItem["DraggingOrder"] + "") ? "1".Equals(rowItem["DraggingOrder"] + "") : false;
|
||||
this.IsBrp = columns.Contains("IsBrp") && !string.IsNullOrEmpty(rowItem["IsBrp"] + "") ? "1".Equals(rowItem["IsBrp"] + "") : false;
|
||||
this.DetailTreeTable = columns.Contains("DetailTreeTable") && !string.IsNullOrEmpty(rowItem["DetailTreeTable"] + "") ? "1".Equals(rowItem["DetailTreeTable"] + "") : false;
|
||||
this.DetailTreeTableExpansion = columns.Contains("DetailTreeTableExpansion") && !string.IsNullOrEmpty(rowItem["DetailTreeTableExpansion"] + "") ? rowItem["DetailTreeTableExpansion"] + "" : "1";
|
||||
this.SelectLast = columns.Contains("SelectLast") && !string.IsNullOrEmpty(rowItem["SelectLast"] + "") ? "1".Equals(rowItem["SelectLast"] + "") : false;
|
||||
this.LoadFilter = columns.Contains("LoadFilter") && !string.IsNullOrEmpty(rowItem["LoadFilter"] + "") ? "1".Equals(rowItem["LoadFilter"] + "") : false;
|
||||
this.MainVerticalScroll = columns.Contains("MainVerticalScroll") && !string.IsNullOrEmpty(rowItem["MainVerticalScroll"] + "") ? "1".Equals(rowItem["MainVerticalScroll"] + "") : false;
|
||||
this.MainHorizontalScrolling = columns.Contains("MainHorizontalScrolling") && !string.IsNullOrEmpty(rowItem["MainHorizontalScrolling"] + "") ? "1".Equals(rowItem["MainHorizontalScrolling"] + "") : false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
/******************************
|
||||
* 说明:单据流转步骤
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2019-06-24
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据流转步骤
|
||||
/// </summary>
|
||||
public class BillflowModel
|
||||
{
|
||||
public int id;
|
||||
public string typeCode;
|
||||
public int stepCode;
|
||||
public string stepName;
|
||||
public string stepAction;
|
||||
public string backAction;
|
||||
public string stepGroup;
|
||||
public string stepSql;
|
||||
public string billModifyFields;
|
||||
public string detailModifyFields;
|
||||
public string beforeEvent;
|
||||
public string afterEvent;
|
||||
public string stepApplyText;
|
||||
public string stepBackText;
|
||||
public string stepApplyContent;
|
||||
public string stepBackContent;
|
||||
public string tm_Test;
|
||||
public string pStepCode;
|
||||
public string stepCloseText;
|
||||
public string stepCloseContent;
|
||||
public string stepCloseTip;
|
||||
public string stepDivide;
|
||||
public DataRow rowItem;
|
||||
|
||||
public string requiredFields;//主表必填字段
|
||||
public string requiredDetailFields;//明细必填字段
|
||||
|
||||
|
||||
|
||||
public BillflowModel()
|
||||
{
|
||||
}
|
||||
|
||||
public BillflowModel(DataRow rowItem)
|
||||
{
|
||||
this.rowItem = rowItem;
|
||||
|
||||
this.id = Convert.ToInt32(rowItem["id"] + "");
|
||||
this.typeCode = rowItem["typeCode"] + "";
|
||||
this.stepCode = Convert.ToInt32(rowItem["stepCode"] + "");
|
||||
this.stepName = rowItem["stepName"] + "";
|
||||
this.stepAction = rowItem["stepAction"] + "";
|
||||
this.backAction = rowItem["backAction"] + "";
|
||||
this.stepGroup = rowItem["stepGroup"] + "";
|
||||
this.stepSql = rowItem["stepSql"] + "";
|
||||
this.billModifyFields = rowItem["billModifyFields"] + "";
|
||||
this.detailModifyFields = rowItem["detailModifyFields"] + "";
|
||||
this.beforeEvent = rowItem["beforeEvent"] + "";
|
||||
this.afterEvent = rowItem["afterEvent"] + "";
|
||||
this.stepApplyText = rowItem["stepApplyText"] + "";
|
||||
this.stepBackText = rowItem["stepBackText"] + "";
|
||||
this.stepApplyContent = rowItem["stepApplyContent"] + "";
|
||||
this.stepBackContent = rowItem["stepBackContent"] + "";
|
||||
this.tm_Test = rowItem["tm_Test"] + "";
|
||||
this.pStepCode = rowItem["pStepCode"] + "";
|
||||
this.stepCloseText = rowItem["stepCloseText"] + "";
|
||||
this.stepCloseContent = rowItem["stepCloseContent"] + "";
|
||||
this.stepCloseTip = rowItem["stepCloseTip"] + "";
|
||||
this.stepDivide = rowItem["stepDivide"] + "";
|
||||
this.requiredFields = rowItem["requiredFields"] + "";
|
||||
this.requiredDetailFields = rowItem["requiredDetailFields"] + "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/******************************
|
||||
* 说明:小类设置对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2019-06-24
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 小类设置对象
|
||||
/// </summary>
|
||||
public class BillflowTypeModel
|
||||
{
|
||||
public int id;
|
||||
public string typeCode;
|
||||
public string billType;
|
||||
public string billTypeName;
|
||||
public string operUser;
|
||||
public string typekey;
|
||||
public int billflowban;
|
||||
|
||||
public BillflowTypeModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public BillflowTypeModel(DataRow rowItem)
|
||||
{
|
||||
this.id = Convert.ToInt32(rowItem["id"] + "");
|
||||
this.typeCode = rowItem["typeCode"] + "";
|
||||
this.billType = rowItem["billType"] + "";
|
||||
this.billTypeName = rowItem["billTypeName"] + "";
|
||||
this.operUser = rowItem["operUser"] + "";
|
||||
this.typekey = rowItem["typekey"] + "";
|
||||
this.billflowban = string.IsNullOrEmpty(rowItem["billflowban"] + "") ? 0 : Convert.ToInt32(rowItem["billflowban"] + "");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
/******************************
|
||||
* 说明:小类流转步骤
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2019-06-24
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 小类流转步骤
|
||||
/// </summary>
|
||||
public class BillflowTypeStepModel
|
||||
{
|
||||
public int id;
|
||||
public string typeCode;
|
||||
public string billType;
|
||||
public string stepCode;
|
||||
public string stepName;
|
||||
public string stepGroup;
|
||||
public string stepTime;
|
||||
public string autoStep;
|
||||
public string viewUser;
|
||||
public string operUser;
|
||||
public string stepBackCode;
|
||||
public string typekey;
|
||||
public string StepOverCond;
|
||||
public string StepOverCondBak;
|
||||
public string autoStepCond;
|
||||
public string pStepCode;
|
||||
public string SameAudited;
|
||||
public string stepClosed;
|
||||
public string comfirmOper;
|
||||
public string remindOper;
|
||||
public string remindSelect;
|
||||
public string signOper;
|
||||
public string flowcharTagId;
|
||||
public string flowcharWidth;
|
||||
public string flowcharHeght;
|
||||
public string FlowCharfillcolor;
|
||||
public string LeftFlowCharfillcolor;
|
||||
public string LeftFlowCharWidth;
|
||||
public string fontSize;
|
||||
public string fontWeight;
|
||||
public string fontFamily;
|
||||
public string flowcharLineHeght;
|
||||
public string LeftFontColor;
|
||||
public string fontColor;
|
||||
public string affirmbak;
|
||||
public BillflowTypeStepModel()
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public BillflowTypeStepModel(DataRow rowItem)
|
||||
{
|
||||
this.id = Convert.ToInt32(rowItem["id"] + "");
|
||||
this.typeCode = rowItem["typeCode"] + "";
|
||||
this.billType = rowItem["billType"] + "";
|
||||
this.stepCode = rowItem["stepCode"] + "";
|
||||
this.stepName = rowItem["stepName"] + "";
|
||||
this.stepGroup = rowItem["stepGroup"] + "";
|
||||
this.autoStep = rowItem["autoStep"] + "";
|
||||
this.viewUser = rowItem["viewUser"] + "";
|
||||
this.operUser = rowItem["operUser"] + "";
|
||||
this.stepBackCode = rowItem["stepBackCode"] + "";
|
||||
this.typekey = rowItem["typekey"] + "";
|
||||
this.StepOverCond = rowItem["StepOverCond"] + "";
|
||||
this.StepOverCondBak = rowItem["StepOverCondBak"] + "";
|
||||
this.autoStepCond = rowItem["autoStepCond"] + "";
|
||||
this.pStepCode = rowItem["pStepCode"] + "";
|
||||
this.SameAudited = rowItem["SameAudited"] + "";
|
||||
this.stepClosed = rowItem["stepClosed"] + "";
|
||||
this.comfirmOper = rowItem["comfirmOper"] + "";
|
||||
this.remindOper = rowItem["remindOper"] + "";
|
||||
this.remindSelect = rowItem["remindSelect"] + "";
|
||||
this.signOper = rowItem["signOper"] + "";
|
||||
this.flowcharTagId = rowItem["flowcharTagId"] + "";
|
||||
this.flowcharWidth = rowItem["flowcharWidth"] + "";
|
||||
this.flowcharHeght = rowItem["flowcharHeght"] + "";
|
||||
this.FlowCharfillcolor = rowItem["FlowCharfillcolor"] + "";
|
||||
this.LeftFlowCharfillcolor = rowItem["LeftFlowCharfillcolor"] + "";
|
||||
this.LeftFlowCharWidth = rowItem["LeftFlowCharWidth"] + "";
|
||||
this.fontSize = rowItem["fontSize"] + "";
|
||||
this.fontWeight = rowItem["fontWeight"] + "";
|
||||
this.fontFamily = rowItem["fontFamily"] + "";
|
||||
this.flowcharLineHeght = rowItem["flowcharLineHeght"] + "";
|
||||
this.LeftFontColor = rowItem["LeftFontColor"] + "";
|
||||
this.fontColor = rowItem["fontColor"] + "";
|
||||
this.affirmbak = rowItem["affirmbak"] + "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
using DevExpress.XtraTab;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public static class CacheRefresh
|
||||
{
|
||||
|
||||
/// 当前所有配置了countSql的模块和对于的模块号
|
||||
/// </summary>
|
||||
private static Dictionary<XtraTabPage, List<string>> changeTableName = new Dictionary<XtraTabPage, List<string>>();
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加数据
|
||||
/// </summary>
|
||||
/// <param name="Key"></param>
|
||||
/// <param name="tableName"></param>
|
||||
public static void SetRefKeyDic(XtraTabPage Key, string tableName)
|
||||
{
|
||||
if (!changeTableName.ContainsKey(Key))
|
||||
{
|
||||
List<string> namelist = new List<string>();
|
||||
namelist.Add(tableName);
|
||||
changeTableName.Add(Key, namelist);
|
||||
}
|
||||
else {
|
||||
List<string> namelist = changeTableName[Key];
|
||||
if (!namelist.Contains(tableName))
|
||||
{
|
||||
namelist.Add(tableName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 标签关闭时更新数据
|
||||
/// </summary>
|
||||
/// <param name="tag">关闭的表</param>
|
||||
public static void closeTAB(XtraTabPage tag)
|
||||
{
|
||||
if (changeTableName.ContainsKey(tag))
|
||||
{
|
||||
List<string> namelist = changeTableName[tag];
|
||||
foreach (string item in namelist)
|
||||
{
|
||||
|
||||
}
|
||||
changeTableName.Remove(tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新表中的时间
|
||||
/// </summary>
|
||||
/// <param name="name">表名</param>
|
||||
public static void updateData(string name)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(name))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 退出程序,关闭全部
|
||||
/// </summary>
|
||||
/// <param name="name">表名</param>
|
||||
public static void closeAllTabs()
|
||||
{
|
||||
foreach (List<string> itemlist in changeTableName.Values)
|
||||
{
|
||||
foreach (string item in itemlist)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
changeTableName.Clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
/***********************
|
||||
* 说明:控件模型
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class ControlPropertyModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 控件编号
|
||||
/// </summary>
|
||||
public string FieldId;
|
||||
/// <summary>
|
||||
/// 控件名
|
||||
/// </summary>
|
||||
public string FieldName;
|
||||
/// <summary>
|
||||
/// 控件用户名
|
||||
/// </summary>
|
||||
public string UserName;
|
||||
/// <summary>
|
||||
/// 控件类别
|
||||
/// </summary>
|
||||
public int FieldTypeId;
|
||||
/// <summary>
|
||||
/// 默认值
|
||||
/// </summary>
|
||||
public string DefaultValue;
|
||||
/// <summary>
|
||||
/// 控件左边距
|
||||
/// </summary>
|
||||
public int ControlLeft;
|
||||
/// <summary>
|
||||
/// 控件上边距
|
||||
/// </summary>
|
||||
public int ControlTop;
|
||||
/// <summary>
|
||||
/// 控件宽
|
||||
/// </summary>
|
||||
public int ControlWidth;
|
||||
/// <summary>
|
||||
/// 控件高
|
||||
/// </summary>
|
||||
public int ControlHeight;
|
||||
/// <summary>
|
||||
/// 控件分组编号
|
||||
/// </summary>
|
||||
public int GroupNo;
|
||||
/// <summary>
|
||||
/// tab次序
|
||||
/// </summary>
|
||||
public int TabOrder;
|
||||
/// <summary>
|
||||
/// 列编号
|
||||
/// </summary>
|
||||
public int ColumnNo;
|
||||
/// <summary>
|
||||
/// 控件序号
|
||||
/// </summary>
|
||||
public int OrderId;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
/******************************
|
||||
* 说明:模块类
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-16
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using DevExpress.XtraTab;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 模块类
|
||||
/// </summary>
|
||||
public class DllModule
|
||||
{
|
||||
/// <summary>
|
||||
/// 模块Id
|
||||
/// </summary>
|
||||
public string Id;
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
public string Name;
|
||||
/// <summary>
|
||||
/// 模块句柄
|
||||
/// </summary>
|
||||
public IntPtr ModuleInPtr;
|
||||
/// <summary>
|
||||
/// C#调用模块Form
|
||||
/// </summary>
|
||||
public object ModuleForm;
|
||||
/// <summary>
|
||||
/// 模块标记
|
||||
/// </summary>
|
||||
public string Tag;
|
||||
/// <summary>
|
||||
/// DLL名称
|
||||
/// </summary>
|
||||
public string DllName;
|
||||
/// <summary>
|
||||
/// 返回结果
|
||||
/// </summary>
|
||||
public StringBuilder Result;
|
||||
/// <summary>
|
||||
/// 上一次选中page
|
||||
/// </summary>
|
||||
public XtraTabPage BeforePage;
|
||||
|
||||
/// <summary>
|
||||
/// 是否关闭
|
||||
/// </summary>
|
||||
public bool IsClose=true;
|
||||
/// <summary>
|
||||
/// 模块编号
|
||||
/// </summary>
|
||||
public string Code;
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,447 @@
|
||||
/******************************
|
||||
* 说明:系统全局类
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-09
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
using System.Management;
|
||||
using DevExpress.XtraTab;
|
||||
using System.Windows.Forms;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统全局类
|
||||
/// </summary>
|
||||
public sealed class ERPInfo
|
||||
{
|
||||
private static ERPInfo _instance = null;
|
||||
/// <summary>
|
||||
/// ERPInfo静态单例对象
|
||||
/// </summary>
|
||||
/// <value>The instance.</value>
|
||||
public static ERPInfo Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = new ERPInfo();
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否为超级管理员
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is user manager; otherwise, <c>false</c>.</value>
|
||||
public bool IsUserManager { get { return UserManager.Equals(UserName); } }
|
||||
/// <summary>
|
||||
/// 登录帐套
|
||||
/// </summary>
|
||||
public string AccountBook;
|
||||
/// <summary>
|
||||
/// 输入的密码
|
||||
/// </summary>
|
||||
public string InPassWord;
|
||||
/// <summary>
|
||||
/// 员工ID
|
||||
/// </summary>
|
||||
public string UserId;
|
||||
/// <summary>
|
||||
/// 员工编号
|
||||
/// </summary>
|
||||
public string LoginAccount;
|
||||
/// <summary>
|
||||
/// 员工姓名
|
||||
/// </summary>
|
||||
public string UserName;
|
||||
/// <summary>
|
||||
/// 密码
|
||||
/// </summary>
|
||||
public string Password;
|
||||
/// <summary>
|
||||
/// 菜单GroupId
|
||||
/// </summary>
|
||||
public string GroupId;
|
||||
/// <summary>
|
||||
/// 子系统
|
||||
/// </summary>
|
||||
public string SubSysId;
|
||||
/// <summary>
|
||||
/// 子系统名称
|
||||
/// </summary>
|
||||
public string SubSysName;
|
||||
/// <summary>
|
||||
/// 主界面page界面
|
||||
/// </summary>
|
||||
public XtraTabControl PageControl;
|
||||
/// <summary>
|
||||
/// 主界面page界面字典
|
||||
/// </summary>
|
||||
public Dictionary<string, DllModule> ModuleForms;
|
||||
/// <summary>
|
||||
/// 登录人联系电话
|
||||
/// </summary>
|
||||
public string UserLinkPhone;
|
||||
/// <summary>
|
||||
/// 主界面page界面
|
||||
/// </summary>
|
||||
public Form MainControl;
|
||||
/// <summary>
|
||||
/// 主页面焦点
|
||||
/// </summary>
|
||||
public PictureBox pic_search;
|
||||
/// <summary>
|
||||
/// 是否阻止回车事件
|
||||
/// </summary>
|
||||
public bool IsExecute = false;
|
||||
|
||||
/// <summary>
|
||||
/// 登录IP
|
||||
/// </summary>
|
||||
public string LoginIP
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return Dns.GetHostAddresses(WindowName)[0] + "";
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 登录IP
|
||||
/// </summary>
|
||||
public string LoginIPV4
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
string text = string.Empty;
|
||||
IPAddress[] ip = Dns.GetHostAddresses(WindowName);
|
||||
foreach (IPAddress address in ip)
|
||||
{
|
||||
if (address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
|
||||
{
|
||||
text = address + "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return text;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户电脑名
|
||||
/// </summary>
|
||||
public string WindowName
|
||||
{
|
||||
get { return Dns.GetHostName(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 子系统数量
|
||||
/// </summary>
|
||||
public int SubMenuCount;
|
||||
/// <summary>
|
||||
/// 超级管理员
|
||||
/// </summary>
|
||||
public string UserManager = "管理员";
|
||||
/// <summary>
|
||||
/// 用户皮肤字段
|
||||
/// </summary>
|
||||
/// <value>The name of the skin.</value>
|
||||
public string SkinFieldName = "SkinName";
|
||||
/// <summary>
|
||||
/// 默认新增判断行
|
||||
/// </summary>
|
||||
public string isAddRows = "xxxxx_isAddRows";
|
||||
/// <summary>
|
||||
/// 用户皮肤
|
||||
/// </summary>
|
||||
public string SkinName;
|
||||
/// <summary>
|
||||
/// 模块编号
|
||||
/// </summary>
|
||||
public string WorkModid;
|
||||
/// <summary>
|
||||
/// 当前选中的方案id
|
||||
/// </summary>
|
||||
/// <value>The mac address.</value>
|
||||
public string SeriesId;
|
||||
/// <summary>
|
||||
/// 车间
|
||||
/// </summary>
|
||||
public string WorkCJ;
|
||||
/// <summary>
|
||||
/// 车间ID
|
||||
/// </summary>
|
||||
public string WorkCJId;
|
||||
/// <summary>
|
||||
/// 机台
|
||||
/// </summary>
|
||||
public string WorkJT;
|
||||
/// <summary>
|
||||
/// 机台ID
|
||||
/// </summary>
|
||||
public string WorkJTId;
|
||||
/// <summary>
|
||||
/// 班次
|
||||
/// </summary>
|
||||
public string WorkBZ;
|
||||
/// <summary>
|
||||
/// 班次ID
|
||||
/// </summary>
|
||||
public string WorkBZId;
|
||||
/// <summary>
|
||||
/// 班组
|
||||
/// </summary>
|
||||
public string ClassName;
|
||||
/// <summary>
|
||||
/// The work no
|
||||
/// </summary>
|
||||
public string WorkNo;
|
||||
/// <summary>
|
||||
/// 是否显示
|
||||
/// </summary>
|
||||
public static bool ShowMsg = true;
|
||||
/// <summary>
|
||||
/// 当前登录Mac地址
|
||||
/// </summary>
|
||||
/// <value>The mac address.</value>
|
||||
public string MacAddress
|
||||
{
|
||||
get { return GetMacAddress(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户名称
|
||||
/// </summary>
|
||||
public string ClientName = "";
|
||||
/// <summary>
|
||||
/// 如果无法连接则后面不在继续连接了
|
||||
/// </summary>
|
||||
public bool bSmartClientIsOK = true;
|
||||
/// <summary>
|
||||
/// 文件升级ip
|
||||
/// </summary>
|
||||
public string UpdateIP = "";
|
||||
/// <summary>
|
||||
/// 登录结果
|
||||
/// </summary>
|
||||
public bool LoginResult = false;
|
||||
/// <summary>
|
||||
/// Mrp当前切换状态
|
||||
/// </summary>
|
||||
public string MrpTag = "";
|
||||
/// <summary>
|
||||
/// 获取本机MAC地址
|
||||
/// </summary>
|
||||
/// <returns>本机MAC地址</returns>
|
||||
string GetMacAddress()
|
||||
{
|
||||
try
|
||||
{
|
||||
string strMac = string.Empty;
|
||||
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
|
||||
ManagementObjectCollection moc = mc.GetInstances();
|
||||
foreach (ManagementObject mo in moc)
|
||||
{
|
||||
if ((bool)mo["IPEnabled"])
|
||||
{
|
||||
strMac = mo["MacAddress"].ToString();
|
||||
string[] IPAddress = (string[])mo["IPAddress"];
|
||||
if (IPAddress.Length > 0 && IPAddress[0].Equals(LoginIPV4))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
moc = null;
|
||||
mc = null;
|
||||
return strMac.Replace(":", "-");
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 加密狗id
|
||||
/// </summary>
|
||||
public int[] keyHandles = new int[8];
|
||||
/// <summary>
|
||||
/// 加密狗编号
|
||||
/// </summary>
|
||||
public int[] keyNumber = new int[8];
|
||||
/// <summary>
|
||||
/// 是否需要U盾密码验证
|
||||
/// </summary>
|
||||
public bool isDogVerifyPassword = true;
|
||||
/// <summary>
|
||||
/// U盾密码默认值
|
||||
/// </summary>
|
||||
public string dogVerifyPasswordDefault
|
||||
{
|
||||
get
|
||||
{
|
||||
byte[] bytes = new byte[256];
|
||||
for (int i = 0; i < bytes.Length; i++)
|
||||
{
|
||||
bytes[i] = 255;
|
||||
}
|
||||
return Encoding.Default.GetString(bytes);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 当前选中页签模块编号
|
||||
/// </summary>
|
||||
public string selectFormModleId;
|
||||
|
||||
#region 判断windows版本
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
private struct OSVERSIONINFOEX
|
||||
{
|
||||
public int dwOSVersionInfoSize;
|
||||
public int dwMajorVersion;
|
||||
public int dwMinorVersion;
|
||||
public int dwBuildNumber;
|
||||
public int dwPlatformId;
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||
public string szCSDVersion;
|
||||
}
|
||||
[DllImport("ntdll.dll", SetLastError = true)]
|
||||
private static extern int RtlGetVersion(ref OSVERSIONINFOEX versionInfo);
|
||||
private static OSVERSIONINFOEX GetOSVersion()
|
||||
{
|
||||
OSVERSIONINFOEX versionInfo = new OSVERSIONINFOEX();
|
||||
versionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
|
||||
int result = RtlGetVersion(ref versionInfo);
|
||||
if (result != 0)
|
||||
{
|
||||
throw new Exception("Failed to get OS version");
|
||||
}
|
||||
return versionInfo;
|
||||
}
|
||||
public string SystemVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
string systemVersion = "";
|
||||
OSVERSIONINFOEX osVersionInfo = GetOSVersion();
|
||||
// 判断具体的Windows版本
|
||||
if (osVersionInfo.dwPlatformId == 2) // 2 is VER_PLATFORM_WIN32_NT
|
||||
{
|
||||
if (osVersionInfo.dwMajorVersion == 10)
|
||||
{
|
||||
systemVersion = "Windows 10 或 Windows 11";
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (osVersionInfo.dwMajorVersion)
|
||||
{
|
||||
case 6:
|
||||
switch (osVersionInfo.dwMinorVersion)
|
||||
{
|
||||
case 3:
|
||||
systemVersion = "Windows 8.1";
|
||||
break;
|
||||
case 2:
|
||||
systemVersion = "Windows 8";
|
||||
break;
|
||||
case 1:
|
||||
systemVersion = "Windows 7";
|
||||
break;
|
||||
case 0:
|
||||
systemVersion = "Windows Vista";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
switch (osVersionInfo.dwMinorVersion)
|
||||
{
|
||||
case 2:
|
||||
systemVersion = "Windows Server 2003; Windows XP x64 Edition";
|
||||
break;
|
||||
case 1:
|
||||
systemVersion = "Windows XP";
|
||||
break;
|
||||
case 0:
|
||||
systemVersion = "Windows 2000";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
systemVersion = "未知版本";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
systemVersion = "非Windows NT系列操作系统";
|
||||
}
|
||||
return systemVersion;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 使用winfrom自带浏览器
|
||||
/// </summary>
|
||||
public bool PrimitiveBrowser;
|
||||
|
||||
/// <summary>
|
||||
/// 当前程序使用的语言
|
||||
/// </summary>
|
||||
public string LanguageName;
|
||||
|
||||
/// <summary>
|
||||
/// 是否改变存储过程参数类型(越南语要用Nvarchar)
|
||||
/// </summary>
|
||||
public bool ChangeParameterType
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(this.LanguageName))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 页面水印层
|
||||
/// </summary>
|
||||
public Form WatermarkForm;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/******************************
|
||||
* 说明:字段类型model
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-08
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 字段类型model
|
||||
/// </summary>
|
||||
public class FieldModel
|
||||
{
|
||||
public FieldType DataType { get; set; }
|
||||
public string FiledName { get; set; }
|
||||
public string FiledValue { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
/******************************
|
||||
* 说明:数据字段类型
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-08
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据字段类型
|
||||
/// </summary>
|
||||
public enum FieldType
|
||||
{
|
||||
/// <summary>
|
||||
/// 未知类型
|
||||
/// </summary>
|
||||
Unknown,
|
||||
/// <summary>
|
||||
/// 布尔或bit
|
||||
/// </summary>
|
||||
Boolean,
|
||||
/// <summary>
|
||||
/// 表示 8 位有符号整数
|
||||
/// </summary>
|
||||
SByte,
|
||||
/// <summary>
|
||||
/// 表示 8 位无符号整数.
|
||||
/// </summary>
|
||||
Byte,
|
||||
/// <summary>
|
||||
/// 表示 16 位有符号整数
|
||||
/// </summary>
|
||||
Int16,
|
||||
/// <summary>
|
||||
/// 表示 16 位无符号整数
|
||||
/// </summary>
|
||||
UInt16,
|
||||
/// <summary>
|
||||
/// 表示 32 位有符号整数
|
||||
/// </summary>
|
||||
Int32,
|
||||
/// <summary>
|
||||
/// 表示 32 位无符号整数
|
||||
/// </summary>
|
||||
UInt32,
|
||||
/// <summary>
|
||||
/// 表示 64 位有符号整数
|
||||
/// </summary>
|
||||
Int64,
|
||||
/// <summary>
|
||||
/// 表示 32 位无符号整数
|
||||
/// </summary>
|
||||
UInt64,
|
||||
/// <summary>
|
||||
/// 表示带小数点的十进制数
|
||||
/// </summary>
|
||||
Decimal,
|
||||
|
||||
// Real
|
||||
|
||||
/// <summary>
|
||||
/// 表示单精度浮点数字,范围: -3.40282e+038f 至 3.40282e+038f
|
||||
/// </summary>
|
||||
Float,
|
||||
/// <summary>
|
||||
/// 双精度浮点数字,范围: -1.79769e+308 至 1.79769e+308
|
||||
/// </summary>
|
||||
Double,
|
||||
|
||||
// Money
|
||||
|
||||
/// <summary>
|
||||
/// 表示 4 位货币数字,范围: - 214,748.3648 至 214,748.3647,
|
||||
/// </summary>
|
||||
SmallMoney,
|
||||
/// <summary>
|
||||
/// 表示 8 位货币数字,范围: -2^63 (-922,337,203,685,477.5808) 至 2^63 - 1 (+922,337,203,685,477.5807)
|
||||
/// </summary>
|
||||
Money,
|
||||
|
||||
// DateTime
|
||||
|
||||
/// <summary>
|
||||
/// 表示 4 位日期型 1900-01-01 至 2079-06-06
|
||||
/// </summary>
|
||||
SmallDateTime,
|
||||
/// <summary>
|
||||
/// 表示 8 位日期型 1753-01-01 至 9999-12-31
|
||||
/// </summary>
|
||||
DateTime,
|
||||
|
||||
// String
|
||||
|
||||
/// <summary>
|
||||
/// 固定长度非 Unicode 字符,范围: 1 - 8000
|
||||
/// </summary>
|
||||
AnsiChar,
|
||||
/// <summary>
|
||||
/// 可变长度非 Unicode 字符,范围: 1 - 8000
|
||||
/// </summary>
|
||||
AnsiVarChar,
|
||||
/// <summary>
|
||||
/// 可变长度非 Unicode 字符,最大长度 2,147,483,647
|
||||
/// </summary>
|
||||
AnsiText,
|
||||
/// <summary>
|
||||
/// 可变长度非 Unicode 字符,表示最大长度 2,147,483,647 个字符.
|
||||
/// </summary>
|
||||
AnsiVarCharMax,
|
||||
/// <summary>
|
||||
/// 固定长度 Unicode 字符,范围: 1 - 4000
|
||||
/// </summary>
|
||||
Char,
|
||||
/// <summary>
|
||||
/// 可变长度 Unicode 字符,范围: 1 - 4000
|
||||
/// </summary>
|
||||
VarChar,
|
||||
/// <summary>
|
||||
/// 可变长度 Unicode 字符 1,073,741,823
|
||||
/// </summary>
|
||||
Text,
|
||||
/// <summary>
|
||||
/// 可变长度 Unicode 字符,表示最大长度 1,073,741,823
|
||||
/// </summary>
|
||||
VarCharMax,
|
||||
|
||||
// Binary
|
||||
|
||||
/// <summary>
|
||||
/// 固定长度二进制数据,范围: 1 至 8,000.
|
||||
/// </summary>
|
||||
Binary,
|
||||
/// <summary>
|
||||
/// 可变长度二进制数据,范围: 1 至 8,000.
|
||||
/// </summary>
|
||||
VarBinary,
|
||||
/// <summary>
|
||||
/// 可变长度二进制数据,范围: 0 至 2,147,483,647 字节.
|
||||
/// </summary>
|
||||
Image,
|
||||
/// <summary>
|
||||
/// 可变长度二进制数据最大值,范围 0 至 2,147,483,647 字节.
|
||||
/// </summary>
|
||||
VarBinaryMax,
|
||||
|
||||
// Other
|
||||
|
||||
/// <summary>
|
||||
/// 变量类型,排除 text, ntext, image, timestamp, sql_variant 等类型.
|
||||
/// </summary>
|
||||
Variant,
|
||||
/// <summary>
|
||||
/// 表示 8 位时间刻度
|
||||
/// </summary>
|
||||
TimeStamp,
|
||||
/// <summary>
|
||||
/// 全球唯一的标识符 (GUID).
|
||||
/// </summary>
|
||||
Guid
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
/***********************
|
||||
* 说明:审批流转模型(p_systemdlltabflowtypestep,p_systembillflowtypestep)
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-01-02
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public class FlowTypeStepModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 步骤关闭标记
|
||||
/// </summary>
|
||||
public int StepClosed;
|
||||
/// <summary>
|
||||
/// 单据类别
|
||||
/// </summary>
|
||||
public string BillType;
|
||||
/// <summary>
|
||||
/// 主键值
|
||||
/// </summary>
|
||||
public string Id;
|
||||
/// <summary>
|
||||
/// 操作用户
|
||||
/// </summary>
|
||||
public string OperUser;
|
||||
/// <summary>
|
||||
///提醒选择标记
|
||||
/// </summary>
|
||||
public string RemindSelect;
|
||||
/// <summary>
|
||||
///步骤编号
|
||||
/// </summary>
|
||||
public string StepCode;
|
||||
/// <summary>
|
||||
/// 步骤组别
|
||||
/// </summary>
|
||||
public string StepGroup;
|
||||
/// <summary>
|
||||
/// 步骤名称
|
||||
/// </summary>
|
||||
public string StepName;
|
||||
/// <summary>
|
||||
/// 浏览用户
|
||||
/// </summary>
|
||||
public string ViewUser;
|
||||
|
||||
|
||||
public FlowTypeStepModel(DataRow dr)
|
||||
{
|
||||
if (dr == null) return;
|
||||
this.BillType = dr.Table.Columns.Contains("billType") ? dr["billType"] + "" : "";
|
||||
this.Id = dr["id"] + "";
|
||||
this.StepClosed = dr.Table.Columns.Contains("stepClosed") ? Convert.ToInt32(string.IsNullOrEmpty(dr["stepClosed"] + "") ? "0" : dr["stepClosed"] + "") : 0;
|
||||
this.StepCode = dr["stepCode"] + "";
|
||||
this.StepGroup = dr["stepGroup"] + "";
|
||||
this.StepName = dr.Table.Columns.Contains("stepName") ? dr["stepName"] + "" : "";
|
||||
this.ViewUser = dr.Table.Columns.Contains("viewUser") ? dr["viewUser"] + "" : "";
|
||||
this.OperUser = dr.Table.Columns.Contains("operUser") ? dr["operUser"] + "" : "";
|
||||
this.RemindSelect = dr.Table.Columns.Contains("remindSelect") ? dr["remindSelect"] + "" : "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 窗口执行操作
|
||||
/// </summary>
|
||||
public enum DialogType
|
||||
{
|
||||
PubAddRecord = 0//PubAdd添加保存
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗体Model,showDialog后存于本窗体的tag中
|
||||
/// </summary>
|
||||
public class FormDialogModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 窗体dll名
|
||||
/// </summary>
|
||||
public string DialogDllName;
|
||||
/// <summary>
|
||||
/// 窗体执行的操作类型
|
||||
/// </summary>
|
||||
public DialogType PubDialogType;
|
||||
/// <summary>
|
||||
/// 返回的数据
|
||||
/// </summary>
|
||||
public object ReturnTag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
/******************************
|
||||
* 说明:GridView 类型
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-12-25
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GridView 类型
|
||||
/// </summary>
|
||||
public enum GridEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 默认表格类型
|
||||
/// </summary>
|
||||
GridView,
|
||||
/// <summary>
|
||||
/// 多表头表格
|
||||
/// </summary>
|
||||
BandedGridView,
|
||||
/// <summary>
|
||||
/// 树结构表格
|
||||
/// </summary>
|
||||
TreeListGridView,
|
||||
/// <summary>
|
||||
/// 卡片表格
|
||||
/// </summary>
|
||||
CardGridView
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
/******************************
|
||||
* 说明:所有Struct结构体存放位置
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-02-02
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 个性化保存列key值类型,使用此类型后面需增加唯一值
|
||||
/// </summary>
|
||||
public struct GridCustomColumnStruct
|
||||
{
|
||||
/// <summary>
|
||||
/// 无
|
||||
/// </summary>
|
||||
public static string None = "";
|
||||
/// <summary>
|
||||
/// 基础档案、报表左侧表格
|
||||
/// </summary>
|
||||
public static string BaseLeftGridView = "BaseLeftGridView_";
|
||||
/// <summary>
|
||||
/// 基础档案、报表主表格
|
||||
/// </summary>
|
||||
public static string BaseMainGridView = "BaseMainGridView_";
|
||||
/// <summary>
|
||||
/// 基础当啊、报表右侧表格
|
||||
/// </summary>
|
||||
public static string BaseRightGridView = "BaseRightGridView_";
|
||||
/// <summary>
|
||||
/// 基础档案、报表底部表格
|
||||
/// </summary>
|
||||
public static string BaseDetailGridView = "BaseDetailGridView_";
|
||||
/// <summary>
|
||||
/// 基础审核主表格
|
||||
/// </summary>
|
||||
public static string BaseAuditMainGridView = "BaseAuditMainGridView_";
|
||||
/// <summary>
|
||||
/// 单据来源表格
|
||||
/// </summary>
|
||||
public static string BillSourceGridView = "BillLeftGridView_";
|
||||
/// <summary>
|
||||
/// 单据明细表格
|
||||
/// </summary>
|
||||
public static string BillDetailGridView = "BillDetailGridView_";
|
||||
/// <summary>
|
||||
/// 单据来源明细表格
|
||||
/// </summary>
|
||||
public static string BillSourceDetailGridView = "BillSourceDetailGridView_";
|
||||
/// <summary>
|
||||
/// 单据来源明细附加信息表格
|
||||
/// </summary>
|
||||
public static string BillSourceDetailAttachGridView = "BillSourceDetailAttachGridView_";
|
||||
/// <summary>
|
||||
/// 单据审核主表格
|
||||
/// </summary>
|
||||
public static string AuditMainGridView = "AuditMainGridView_";
|
||||
/// <summary>
|
||||
/// 单据审核弹出框明细表格
|
||||
/// </summary>
|
||||
public static string AuditPopupDetailGridView = "AuditPopupDetailGridView_";
|
||||
/// <summary>
|
||||
/// 单据审核弹出选项卡数据的表格
|
||||
/// </summary>
|
||||
public static string AuditPopupBasicInfoGridView = "AuditPopupBasicInfoGridView_";
|
||||
/// <summary>
|
||||
/// 单据审核弹出框附加信息表格
|
||||
/// </summary>
|
||||
public static string AuditPopupAttachGridView = "AuditPopupAttachGridView_";
|
||||
/// <summary>
|
||||
/// 单据已完成单据主表格
|
||||
/// </summary>
|
||||
public static string AuditOverMainGridView = "AuditOverMainGridView_";
|
||||
/// <summary>
|
||||
/// 单据已完成单据明细表格
|
||||
/// </summary>
|
||||
public static string AuditOverDetailGridView = "AuditOverDetailGridView_";
|
||||
/// <summary>
|
||||
/// 附件表格
|
||||
/// </summary>
|
||||
public static string AttachGridView = "AttachGridView_";
|
||||
/// <summary>
|
||||
/// 单据详情表格
|
||||
/// </summary>
|
||||
public static string BillInfoGridView = "BillInfoGridView_";
|
||||
/// <summary>
|
||||
/// 配置文件内置表
|
||||
/// </summary>
|
||||
public static string BaseCadGridView = "BaseCadGridView_";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
<?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)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.Model</RootNamespace>
|
||||
<AssemblyName>Lskj.Model</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.Model.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Debug\DevExpress.Utils.v15.2.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\Debug\DevExpress.XtraEditors.v15.2.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AccraditationModel.cs" />
|
||||
<Compile Include="ActionType.cs" />
|
||||
<Compile Include="AddGroupModel.cs" />
|
||||
<Compile Include="AttachModuleModel.cs" />
|
||||
<Compile Include="BaseAccraditationModel.cs" />
|
||||
<Compile Include="BaseAuditModel.cs" />
|
||||
<Compile Include="BaseflowModel.cs" />
|
||||
<Compile Include="BaseflowTypeModel.cs" />
|
||||
<Compile Include="BaseflowTypeStepModel.cs" />
|
||||
<Compile Include="BaseResponse.cs" />
|
||||
<Compile Include="BaseSaveModel.cs" />
|
||||
<Compile Include="BillAuditModel.cs" />
|
||||
<Compile Include="BillBarCodeModel.cs" />
|
||||
<Compile Include="BillDetailModel.cs" />
|
||||
<Compile Include="BillflowModel.cs" />
|
||||
<Compile Include="BillflowTypeModel.cs" />
|
||||
<Compile Include="BillflowTypeStepModel.cs" />
|
||||
<Compile Include="BillModel.cs" />
|
||||
<Compile Include="CacheRefresh.cs" />
|
||||
<Compile Include="ControlPropertyModel.cs" />
|
||||
<Compile Include="DllModule.cs" />
|
||||
<Compile Include="DynamicModel.cs" />
|
||||
<Compile Include="ERPInfo.cs" />
|
||||
<Compile Include="FieldModel.cs" />
|
||||
<Compile Include="FieldType.cs" />
|
||||
<Compile Include="FlowTypeStepModel.cs" />
|
||||
<Compile Include="FormDialogModel.cs" />
|
||||
<Compile Include="GridEnum.cs" />
|
||||
<Compile Include="GridStruct.cs" />
|
||||
<Compile Include="ModuleArgs.cs" />
|
||||
<Compile Include="ModuleModel.cs" />
|
||||
<Compile Include="ModuleType.cs" />
|
||||
<Compile Include="OperateEvent.cs" />
|
||||
<Compile Include="PdfSignModel.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="WaterMark.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="ReadMe.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,95 @@
|
||||
/******************************
|
||||
* 说明:模版参数配置
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-10-23
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 模版参数配置
|
||||
/// </summary>
|
||||
public sealed class ModuleArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>默认传递参数</para>
|
||||
/// <para>1.模块标题 [必传]</para>
|
||||
/// <para>2.操作员ID [必传]</para>
|
||||
/// <para>3.操作员名称 [必传]</para>
|
||||
/// <para>4.权限 [必传]</para>
|
||||
/// <para>5.模块编号 [必传]</para>
|
||||
/// </summary>
|
||||
public static string DefaultArgs = "{0}~{1}~{2}~{3}~{4}";
|
||||
/// <summary>
|
||||
/// <para>Lskj.PubModule.dll基础档案模版参数</para>
|
||||
/// <para>1.模块编号[必传]</para>
|
||||
/// <para>2.左侧查询条件[可选]</para>
|
||||
/// <para>3-10.查询条件带入参数格式为[#p_1、#p_2][可选]</para>
|
||||
/// </summary>
|
||||
public static string PubModuleArgs = "{0}";
|
||||
/// <summary>
|
||||
/// <para>Lskj.PubAdd.dll添加界面模版参数</para>
|
||||
/// <para>1.模块编号 [必传]</para>
|
||||
/// <para>2.是否只读,默认可操作(0.可操作,1.只读) [可选]</para>
|
||||
/// <para>3.节点号 [可选]</para>
|
||||
/// <para>4.节点名称 [可选]</para>
|
||||
/// <para>5.暂无使用</para>
|
||||
/// <para>6.带入SQL(格式:以#号开头) [可选]</para>
|
||||
/// <para>7-8.暂无使用</para>
|
||||
/// <para>9.基础档案查询控件带入参数(格式:key=value|key1=value1) [不可配置]</para>
|
||||
/// <para>10.替换控件{##}格式的默认值(格式:json字符串{"key":"value"}) [不可配置]</para>
|
||||
/// </summary>
|
||||
public static string PubAddArgs = "{0}";
|
||||
/// <summary>
|
||||
/// Lskj.PhotoView.dll附件模版参数
|
||||
/// <para>1. 主键值[必传]</para>
|
||||
/// <para>2. 是否只读,默认可操作(0.可操作,1.只读)[可选]</para>
|
||||
/// <para>3. 目录ID[必传]</para>
|
||||
/// <para>4. 模块编号[可选],未传递默认使用2005_1</para>
|
||||
/// <para>5. 是否显示关联按钮(0.不显示,1.显示)[可选]</para>
|
||||
/// <para>6. 关联附件功能对应数据库中的字段[可选],和参数5成对.</para>
|
||||
/// </summary>
|
||||
public static string PubPhotoViewArgs = "{0}";
|
||||
/// <summary>
|
||||
/// Lskj.BaseAccraditation.dll基础档案审批模版参数(分为两个窗口调用模式)
|
||||
/// <para>基础档案审批弹出子界面</para>
|
||||
/// <para>1.模块编号[可选]</para>
|
||||
/// <para>2.步骤ID[必传]</para>
|
||||
/// <para>3.所点击数据ID[必传]</para>
|
||||
/// <para>4.权限确认[必传]</para>
|
||||
/// <para>5.终审标志[必传]</para>
|
||||
/// </summary>
|
||||
public static string BaseAccraditationArgs = "{0}";
|
||||
/// <summary>
|
||||
/// Lskj.PubAccraditation.dll单据审批模版参数(分为两个窗口调用模式)
|
||||
/// <para>单据审批界面</para>
|
||||
/// <para>1.模块编号[可选]</para>
|
||||
/// <para>2.进度编号[必传]</para>
|
||||
/// <para>3.单据编号[必传]</para>
|
||||
/// <para>4.权限确认[必传]</para>
|
||||
/// <para>5.终审标志[必传]</para>
|
||||
/// </summary>
|
||||
public static string PubAccraditationArgs = "{0}";
|
||||
/// <summary>
|
||||
/// Lskj.PubBillInfo.dll单据审批预览模版参数
|
||||
/// <para>1.模块编号[可选]</para>
|
||||
/// <para>2.单据编号[必传]</para>
|
||||
/// </summary>
|
||||
public static string BillInfoArgs = "{0}";
|
||||
/// <summary>
|
||||
/// Lskj.BaseInfo.dll基础档案审批预览模版参数
|
||||
/// <para>1.模块编号[可选]</para>
|
||||
/// <para>2.单据编号[必传]</para>
|
||||
/// </summary>
|
||||
public static string BaseInfoArgs = "{0}";
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,65 @@
|
||||
/******************************
|
||||
* 说明:系统模块
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-08-21
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
public enum ModuleType
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础档案
|
||||
/// </summary>
|
||||
BaseModule,
|
||||
/// <summary>
|
||||
/// 基础档案添加
|
||||
/// </summary>
|
||||
BaseModuleAdd,
|
||||
/// <summary>
|
||||
/// 基础档案审核
|
||||
/// </summary>
|
||||
BaseAudit,
|
||||
/// <summary>
|
||||
/// 报表明细
|
||||
/// </summary>
|
||||
ReportDetail,
|
||||
/// <summary>
|
||||
/// 单据主表
|
||||
/// </summary>
|
||||
BillMaster,
|
||||
/// <summary>
|
||||
/// 单据明细
|
||||
/// </summary>
|
||||
BillDetail,
|
||||
/// <summary>
|
||||
/// 单据来源主表
|
||||
/// </summary>
|
||||
BillSourceMater,
|
||||
/// <summary>
|
||||
/// 单据来源明细
|
||||
/// </summary>
|
||||
BillSourceDetail,
|
||||
/// <summary>
|
||||
/// 审核
|
||||
/// </summary>
|
||||
BillAudit,
|
||||
/// <summary>
|
||||
/// 审核明细
|
||||
/// </summary>
|
||||
BillAuditDetail,
|
||||
/// <summary>
|
||||
/// mrp运算替换
|
||||
/// </summary>
|
||||
MrpClickBtn,
|
||||
MESTOOL, MESGRIDRIGHT
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 程序事件类型
|
||||
/// </summary>
|
||||
public enum OperateEvent
|
||||
{
|
||||
|
||||
BeforeModuleDataLoad = 1,
|
||||
BeforeModuleDataChange = 3,
|
||||
AfterModuleDataChange = 4,
|
||||
|
||||
BeforeModuleStateChange = 5,
|
||||
AfterModuleStateChange = 6,
|
||||
|
||||
BeforeModuleAuditStateChange = 7,
|
||||
AfterModuleAuditStateChange = 8,
|
||||
|
||||
BeforeModuleContextMenu = 9,
|
||||
AfterModuleContextMenu = 10,
|
||||
|
||||
BeforeModuleDataDelete = 11,
|
||||
AfterModuleDataDelete = 12,
|
||||
|
||||
Loop = 99,
|
||||
Timer = 100
|
||||
}
|
||||
/// <summary>
|
||||
/// 抓取类型
|
||||
/// </summary>
|
||||
public enum DirType
|
||||
{
|
||||
Pull = 0,
|
||||
Push = 1,
|
||||
Receive = 2,
|
||||
/// <summary>
|
||||
/// 被动推送,就是被抓取
|
||||
/// </summary>
|
||||
PassivePush = 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/***********************
|
||||
* 说明:PDF签名模型 (P_PDFSignTab)
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2018-06-08
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PdfSignModel.
|
||||
/// </summary>
|
||||
public class PdfSignModel
|
||||
{
|
||||
/// <summary>
|
||||
/// PDf附件Id
|
||||
/// </summary>
|
||||
/// <value>The file identifier.</value>
|
||||
public int FileId { get; set; }
|
||||
/// <summary>
|
||||
/// 单据编号
|
||||
/// </summary>
|
||||
/// <value>The bill doucument identifier.</value>
|
||||
public string BillDocumentId { get; set; }
|
||||
/// <summary>
|
||||
/// 单据明细编号
|
||||
/// </summary>
|
||||
/// <value>The bill deatil identifier.</value>
|
||||
public string BillDeatilId { get; set; }
|
||||
/// <summary>
|
||||
/// 进度编号
|
||||
/// </summary>
|
||||
/// <value>The step code.</value>
|
||||
public string StepCode { get; set; }
|
||||
/// <summary>
|
||||
/// 用户编号
|
||||
/// </summary>
|
||||
/// <value>The operator identifier.</value>
|
||||
public int OperatorId { get; set; }
|
||||
/// <summary>
|
||||
/// 签名图片流
|
||||
/// </summary>
|
||||
/// <value>The pic stream.</value>
|
||||
public byte[] PicStream { get; set; }
|
||||
/// <summary>
|
||||
/// 图片X坐标
|
||||
/// </summary>
|
||||
/// <value>The image x.</value>
|
||||
public float ImageX { get; set; }
|
||||
/// <summary>
|
||||
/// 图形Y坐标
|
||||
/// </summary>
|
||||
/// <value>The image y.</value>
|
||||
public float ImageY { get; set; }
|
||||
/// <summary>
|
||||
/// 页码
|
||||
/// </summary>
|
||||
/// <value>The page no.</value>
|
||||
public int PageNo { get; set; }
|
||||
|
||||
|
||||
public PdfSignModel(DataRow rowItem)
|
||||
{
|
||||
if(rowItem==null) return;
|
||||
this.BillDocumentId = rowItem["BillId"]+"";
|
||||
this.FileId = string.IsNullOrEmpty(rowItem["FileId"] + "") ? 0 : Convert.ToInt32(rowItem["FileId"]);
|
||||
this.BillDeatilId = rowItem["BillDetailId"] + "";
|
||||
this.ImageX =float.Parse(rowItem["ImageX"]+"");
|
||||
this.ImageY = float.Parse(rowItem["ImageY"]+"");
|
||||
this.PageNo = string.IsNullOrEmpty(rowItem["Page"] + "") ? 0 : Convert.ToInt32(rowItem["Page"]);
|
||||
this.PicStream = (byte[])rowItem["Image"];
|
||||
this.StepCode = rowItem["StepCode"] + "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过以下
|
||||
// 特性集控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Lskj.PubDBModel")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Lskj.PubDBModel")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
|
||||
// 则将该类型上的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("c81fa704-b45d-4798-8dbe-508f6a8d4a83")]
|
||||
|
||||
// 程序集的版本信息由下面四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1 @@
|
||||
Lskj.Model类库:只存Model对象.
|
||||
@@ -0,0 +1,93 @@
|
||||
/******************************
|
||||
* 说明:单据水印
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-12-04
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据水印
|
||||
/// </summary>
|
||||
public class WaterMark
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据状态文本(草稿、在审、待审、已终审、已过账、已作废、已关闭)
|
||||
/// </summary>
|
||||
public string Text;
|
||||
/// <summary>
|
||||
/// 单据打印次数
|
||||
/// </summary>
|
||||
public string Print;
|
||||
/// <summary>
|
||||
/// 已收款
|
||||
/// </summary>
|
||||
public string Collect;
|
||||
|
||||
/// <summary>
|
||||
/// 初始化水印
|
||||
/// </summary>
|
||||
/// <param name="prefix">The prefix.</param>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public WaterMark(string prefix,DataRow rowItem)
|
||||
{
|
||||
if (rowItem == null)
|
||||
{
|
||||
// 设置为草稿
|
||||
this.Text = "草 稿";
|
||||
}
|
||||
else
|
||||
{
|
||||
// 设置显示文本
|
||||
DataColumnCollection columns = rowItem.Table.Columns;
|
||||
if (columns.Contains(prefix + "waste_flag") && ("1".Equals(rowItem[prefix + "waste_flag"] + "") || "true".Equals((rowItem[prefix + "waste_flag"] + "").ToLower())))
|
||||
{
|
||||
this.Text = "已作废";
|
||||
}
|
||||
else if ((columns.Contains(prefix + "cancelflag")) && ("1".Equals(rowItem[prefix + "cancelflag"] + "") ||"true".Equals((rowItem[prefix + "cancelflag"] + "").ToLower())))
|
||||
{
|
||||
this.Text = "已关闭";
|
||||
}
|
||||
else if (columns.Contains(prefix + "stepover") && ("1".Equals(rowItem[prefix + "stepover"] + "") || "true".Equals((rowItem[prefix + "stepover"] + "").ToLower())))
|
||||
{
|
||||
this.Text = "已终审";
|
||||
if (columns.Contains(prefix + "collectMoneyFlag"))
|
||||
{
|
||||
this.Text = "已过账";
|
||||
}
|
||||
}
|
||||
else if (columns.Contains(prefix + "ban") && ("1".Equals(rowItem[prefix + "ban"] + "") || "true".Equals((rowItem[prefix + "ban"] + "").ToLower())))
|
||||
{
|
||||
this.Text = "在 审";
|
||||
}
|
||||
else if (columns.Contains(prefix + "affirmer") && ("0" != rowItem[prefix + "affirmer"] + "" && !string.IsNullOrEmpty(rowItem[prefix + "affirmer"] + "")))
|
||||
{
|
||||
this.Text = "待 审";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Text = "草 稿";
|
||||
}
|
||||
// 设置打印文本
|
||||
if (columns.Contains(prefix + "printCount"))
|
||||
{
|
||||
this.Print = "打印" + (string.IsNullOrEmpty(rowItem[prefix + "printCount"] + "") ? "0次" : rowItem[prefix + "printCount"] + "次");
|
||||
}
|
||||
// 设置收款文本
|
||||
if (columns.Contains(prefix + "collectMoneyFlag") && "1".Equals(rowItem[prefix + "collectMoneyFlag"] + ""))
|
||||
{
|
||||
this.Collect = "已收款";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user