/*********************** * 说明:单据审批模型 * 创建人:龚宇超 * 创建日期: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 { /// /// 单据类别 /// /// The type of the _bill. public string BillType { get { return MasterPreFix + "BillType"; } } /// /// 审批加载明细标志 /// /// The audit load detail flag. public string AuditLoadDetailFlag { get; set; } /// /// 单据明细formKey /// /// The default form key. public string DetailFormKey { get { return "BILLDETAIL_" + FormKey; } } /// /// 返回标记 /// /// The back selected. public string BackSelected { get; set; } /// /// 返回标记 /// /// The back selected. public bool SaveRefresh { get; set; } /// /// 单据审批模型 /// /// The row item. 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; } } }