160 lines
6.0 KiB
C#
160 lines
6.0 KiB
C#
/**********************************
|
|
* 说明:基础审批模块配置对象
|
|
* 创建人:龚宇超
|
|
* 创建日期:2017-12-04
|
|
* 修改人:
|
|
* 修改日期:
|
|
* 修改备注:
|
|
* 版本:1.0.0.0
|
|
**********************************/
|
|
using System;
|
|
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>
|
|
public bool DisableAutomaticRefresh;
|
|
|
|
|
|
/// <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;
|
|
this.DisableAutomaticRefresh = rowItem.Table.Columns.Contains("DisableAutomaticRefresh") ? rowItem["DisableAutomaticRefresh"] + "" == "1" : false;
|
|
}
|
|
|
|
}
|
|
}
|