基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
/******************************
|
||||
* 说明:单据来源对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-28
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.PubBillAccount.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据来源对象
|
||||
/// </summary>
|
||||
public class BillSourceModel
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
public int SourceType { get; private set; }
|
||||
public int LoadBom{ get; private set; }
|
||||
public bool CadDragDetail { get; private set; }
|
||||
public string UserName { get; private set; }
|
||||
public string FormKey { get; private set; }
|
||||
public string SourceKeyField { get; private set; }
|
||||
public string SourceResult { get; private set; }
|
||||
public string SourceSql { get; private set; }
|
||||
public string DetailSql { get; private set; }
|
||||
public string BomSql { get; private set; }
|
||||
public string BomCaption { get; private set; }
|
||||
public string DetailEnableCond { get; private set; }
|
||||
public string CodeInputSql { get; private set; }
|
||||
public string CodeInputCaption { get; private set; }
|
||||
public string CodeInputHint { get; private set; }
|
||||
public string SearchDefaultField { get; private set; }
|
||||
public string DetailEnableMsg { get; private set; }
|
||||
public bool SaveRefreshFlag { get; private set; }
|
||||
|
||||
public BillSourceModel(DataRow item)
|
||||
{
|
||||
if (item == null) return;
|
||||
|
||||
this.Id = Convert.ToInt32(item["Id"] + "");
|
||||
this.SourceType = string.IsNullOrEmpty(item["sourceType"] + "") ? 0 : Convert.ToInt32(item["sourceType"] + "");
|
||||
this.LoadBom = string.IsNullOrEmpty(item["loadbom"] + "") ? 0 : Convert.ToInt32(item["loadbom"] + "");
|
||||
this.CadDragDetail = item.Table.Columns.Contains("dragDetailEnable") ? "1" != item["dragDetailEnable"] + "" : true;
|
||||
this.UserName = item["userName"] + "";
|
||||
this.FormKey = item["FormKey"] + "";
|
||||
this.SourceKeyField = item["sourceKeyField"] + "";
|
||||
this.SourceResult = item["sourceResult"] + "";
|
||||
this.SourceSql = item["SourceSql"] + "";
|
||||
this.DetailSql = item["DetailSql"] + "";
|
||||
this.BomSql = item["BomSql"] + "";
|
||||
this.BomCaption = item["BomCaption"] + "";
|
||||
this.DetailEnableCond = item["DetailEnableCond"] + "";
|
||||
this.CodeInputSql = item["CodeInputSql"] + "";
|
||||
this.CodeInputCaption = item["CodeInputCaption"] + "";
|
||||
this.CodeInputHint = item["CodeInputHint"] + "";
|
||||
this.SearchDefaultField = item["SearchDefault"] + "";
|
||||
this.DetailEnableMsg = item["DetailEnableMsg"] + "";
|
||||
this.SaveRefreshFlag = item.Table.Columns.Contains("SaveRefreshFlag") && "1".Equals(item["SaveRefreshFlag"] + "") ? true : false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user