using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using GThinking.N_MODEL.Page; namespace GThinking.N_XLXSBJ { [TableMap(DB = "DBERP", DbTableName = "XLXSJGBDXKCB", Umid = 100860038, IsWorkFlow = false, UseWhr = true, QuerySelSql = @" select XLXSJGBDXKCB_XLXHID, XLXSJGBDXKCB_XXJGID, XLXSJGBDXKCB_KCHXXJGID, XLXSJGBDXKCB_WHR,XLXSJGBDXKCB_WHRID,XLXSJGBDXKCB_WHSJ from XLXSJGBDXKCB where 1=1", EntitySelSql = @" select XLXSJGBDXKCB_XLXHID,XLXSJGBDXKCB_XLXHID as OLDXLXHID,XLXSJGBDXKCB_XXJGID,XLXSJGBDXKCB_XXJGID as OLDXXJGID, XLXSJGBDXKCB_KCHXXJGID, XLXSJGBDXKCB_WHR,XLXSJGBDXKCB_WHRID,XLXSJGBDXKCB_WHSJ from XLXSJGBDXKCB where XLXSJGBDXKCB_XLXHID=:XLXSJGBDXKCB_XLXHID and XLXSJGBDXKCB_XXJGID=:XLXSJGBDXKCB_XXJGID ", UpdateSql = @" update XLXSJGBDXKCB set XLXSJGBDXKCB_XLXHID=:XLXSJGBDXKCB_XLXHID, XLXSJGBDXKCB_XXJGID=:XLXSJGBDXKCB_XXJGID, XLXSJGBDXKCB_KCHXXJGID=:XLXSJGBDXKCB_KCHXXJGID, XLXSJGBDXKCB_WHR=:XLXSJGBDXKCB_WHR, XLXSJGBDXKCB_WHRID=:XLXSJGBDXKCB_WHRID, XLXSJGBDXKCB_WHSJ=:XLXSJGBDXKCB_WHSJ where XLXSJGBDXKCB_XLXHID=:OLDXLXHID and XLXSJGBDXKCB_XXJGID=:OLDXXJGID ", InsertSql = @" insert into XLXSJGBDXKCB (XLXSJGBDXKCB_XLXHID,XLXSJGBDXKCB_XXJGID,XLXSJGBDXKCB_KCHXXJGID,XLXSJGBDXKCB_WHR,XLXSJGBDXKCB_WHRID,XLXSJGBDXKCB_WHSJ) values(:XLXSJGBDXKCB_XLXHID,:XLXSJGBDXKCB_XXJGID,:XLXSJGBDXKCB_KCHXXJGID,:XLXSJGBDXKCB_WHR,:XLXSJGBDXKCB_WHRID,:XLXSJGBDXKCB_WHSJ)", DeleteSql = @" delete from XLXSJGBDXKCB where XLXSJGBDXKCB_XLXHID=:XLXSJGBDXKCB_XLXHID and XLXSJGBDXKCB_XXJGID=:XLXSJGBDXKCB_XXJGID ")] public class DXKCBEntity :EntityManager { private string _XLXSJGBDXKCB_XLXHID; [ColumnMap(DbField = "XLXSJGBDXKCB_XLXHID", CtrlName = "cbxXLXHID", Type = FieldType.CBX, DbTitle = "线缆型号", DefaultValue = "", IsAllowNull = false, IsKey = true, Length = 40)] public string XLXSJGBDXKCB_XLXHID { get { return _XLXSJGBDXKCB_XLXHID; } set { _XLXSJGBDXKCB_XLXHID = value; } } private string _OLDXLXHID; [ColumnMap(DbField = "OLDXLXHID", CtrlName = "txtOLDXLXHID", Type = FieldType.HiddenField, DbTitle = "原线缆型号", DefaultValue = "", IsAllowNull = true, IsKey = false, Length = 40)] public string OLDXLXHID { get { return _OLDXLXHID; } set { _OLDXLXHID = value; } } private string _XLXSJGBDXKCB_XXJGID; [ColumnMap(DbField = "XLXSJGBDXKCB_XXJGID", CtrlName = "txtXXJGID", Type = FieldType.C, DbTitle = "芯线结构", DefaultValue = "", IsAllowNull = true, IsKey = true, Length = 30)] public string XLXSJGBDXKCB_XXJGID { get { return _XLXSJGBDXKCB_XXJGID; } set { _XLXSJGBDXKCB_XXJGID = value; } } private string _OLDXXJGID; [ColumnMap(DbField = "OLDXXJGID", CtrlName = "txtOLDXXJGID", Type = FieldType.HiddenField, DbTitle = "原芯线结构", DefaultValue = "", IsAllowNull = true, IsKey = false, Length = 30)] public string OLDXXJGID { get { return _OLDXXJGID; } set { _OLDXXJGID = value; } } private string _XLXSJGBDXKCB_KCHXXJGID; [ColumnMap(DbField = "XLXSJGBDXKCB_KCHXXJGID", CtrlName = "txtKCHXXJGID", Type = FieldType.C, DbTitle = "扩充后芯线结构", DefaultValue = "", IsAllowNull = true, IsKey = false, Length = 30)] public string XLXSJGBDXKCB_KCHXXJGID { get { return _XLXSJGBDXKCB_KCHXXJGID; } set { _XLXSJGBDXKCB_KCHXXJGID = value; } } // 私有变量维护人 private string _XLXSJGBDXKCB_WHR; [ColumnMap(DbField = "XLXSJGBDXKCB_WHR", CtrlName = "txtWHR", Type = FieldType.C, DbTitle = "维护人", DefaultValue = "", IsAllowNull = true, IsKey = false, Length = 30)] public string XLXSJGBDXKCB_WHR { get { return _XLXSJGBDXKCB_WHR; } set { _XLXSJGBDXKCB_WHR = value; } } // 私有变量维护人工号 private string _XLXSJGBDXKCB_WHRID; [ColumnMap(DbField = "XLXSJGBDXKCB_WHRID", CtrlName = "txtWHRID", Type = FieldType.HiddenField, DbTitle = "维护人ID", DefaultValue = "", IsAllowNull = true, IsKey = false, Length = 10)] public string XLXSJGBDXKCB_WHRID { get { return _XLXSJGBDXKCB_WHRID; } set { _XLXSJGBDXKCB_WHRID = value; } } // 私有变量维护时间 private string _XLXSJGBDXKCB_WHSJ; [ColumnMap(DbField = "XLXSJGBDXKCB_WHSJ", CtrlName = "datWHSJ", Type = FieldType.DT, DbTitle = "维护时间", DefaultValue = "", IsAllowNull = false, IsKey = true, Length = 18)] public string XLXSJGBDXKCB_WHSJ { get { return _XLXSJGBDXKCB_WHSJ; } set { _XLXSJGBDXKCB_WHSJ = value; } } } }