/********************************** * 说明:基础审批模块配置对象 * 创建人:龚宇超 * 创建日期: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 { /// /// 基础审批模块配置对象 /// public class BaseAccraditationModel { /// /// 单表 /// /// The bill table. public string BillTable { get; set; } /// /// 列前缀 /// /// The column_prefix. public string ColumnPrefix { get; set; } /// /// 自定义查询条件 /// public string CondSql { get; set; } /// /// 取消标记 /// /// The cancel flag. public string CancelFlag { get { return this.ColumnPrefix + "cancelFlag"; } } /// /// 默认关键字段 /// public string DefaultParmaryField = "Billdocument_Id"; /// /// 默认流程字段 /// public string DefaultStepField = "stepCode"; /// /// 表单键值 /// /// The form key. public string FormKey { get; set; } /// /// 关键字段 /// /// The key field. public string KeyField { get; set; } /// /// 菜单条件 /// /// The m menu cond. public string MenuCond { get; set; } /// /// 审批回退人员 /// /// The over back oper. public string OverBackOper { get; set; } /// /// 审批回退条件 /// /// The over back cond. public string OverBackCond { get; set; } /// /// 审批回退Sql /// /// The over back SQL. public string OverBackSql { get; set; } /// /// 审批回退键值 /// /// The over back key. public string OverBackKey { get; set; } /// /// The bill type /// public int BillPrintType; /// /// 模块简写 /// public string Prefix; /// /// 是否允许批量审核 /// public bool MuitlAuditFlag; /// /// 表格关键字段 /// public string TmpParmaryField { get { return this.ColumnPrefix + DefaultParmaryField; } } /// /// 流程进度字段 /// public string TmpStepField { get { return this.ColumnPrefix + DefaultStepField; } } /// /// 基础档案单据审批关键字段区分 /// /// The modtype. /// System.String. public string GetParmaryKey(ModuleType modType) { return modType.Equals(ModuleType.BaseAudit) ? KeyField : TmpParmaryField; } /// /// 打开图档预览的模块编号 /// public string FilePreviewCode; /// /// 已完成界面底部配置明细列 /// public string BelowDetailLine; /// ///已完成界面底部配置明细Sql /// public string BelowDetailSql; /// /// 是否允许批量反退 (没有MuitlAuditBackFlag字段,就以批量审核状态为准) /// public bool MuitlAuditBackFlag; /// /// 审核后不自动刷新窗体 /// public bool DisableAutomaticRefresh; /// /// 审批模块配置对象 /// /// The row item. 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["overback