Пример #1
0
 public void GetTempData()
 {
     this.id              = TempData.id;
     this.Guid            = TempData.Guid;
     this.ChannelHDID     = TempData.ChannelHDID;
     this.Name            = TempData.Name;
     this.Code            = TempData.Code;
     this.CardNum         = TempData.CardNum;
     this.SlotNum         = TempData.SlotNum;
     this.CHNum           = TempData.CHNum;
     this.T_Device_Guid   = TempData.T_Device_Guid;
     this.T_Device_Code   = TempData.T_Device_Code;
     this.Remarks         = TempData.Remarks;
     this.Create_Time     = TempData.Create_Time;
     this.Modify_Time     = TempData.Modify_Time;
     this.Sort_No         = TempData.Sort_No;
     this.Is_Disabled     = TempData.Is_Disabled;
     this.IP              = TempData.IP;
     this.Identifier      = TempData.Identifier;
     this.ServerIP        = TempData.ServerIP;//废弃ServerIP,但数据库不允许为空,依旧填充//改为初始化时候填充,覆盖数据库的ServerIP。
     this.ItemType        = TempData.ItemType;
     this.SlaveIdentifier = TempData.SlaveIdentifier;
     TempData             = null;
 }
Пример #2
0
 public void SaveTempData()
 {
     TempData                 = new T1_Item();
     TempData.id              = this.id;
     TempData.Guid            = this.Guid;
     TempData.ChannelHDID     = this.ChannelHDID;
     TempData.Name            = this.Name;
     TempData.Code            = this.Code;
     TempData.CardNum         = this.CardNum;
     TempData.SlotNum         = this.SlotNum;
     TempData.CHNum           = this.CHNum;
     TempData.T_Device_Guid   = this.T_Device_Guid;
     TempData.T_Device_Code   = this.T_Device_Code;
     TempData.Remarks         = this.Remarks;
     TempData.Create_Time     = this.Create_Time;
     TempData.Modify_Time     = this.Modify_Time;
     TempData.Sort_No         = this.Sort_No;
     TempData.Is_Disabled     = this.Is_Disabled;
     TempData.IP              = this.IP;
     TempData.Identifier      = this.Identifier;
     TempData.ServerIP        = this.ServerIP;//废弃ServerIP,但数据库不允许为空,依旧填充//改为初始化时候填充,覆盖数据库的ServerIP。
     TempData.ItemType        = this.ItemType;
     TempData.SlaveIdentifier = this.SlaveIdentifier;
 }