public IO_ALARM_CONFIG Clone() { IO_ALARM_CONFIG config = new IO_ALARM_CONFIG(); config.IO_ALARM_LEVEL = this.IO_ALARM_LEVEL; config.IO_ALARM_NUMBER = this.IO_ALARM_NUMBER; config.IO_ALARM_TYPE = this.IO_ALARM_TYPE; config.IO_COMM_ID = this.IO_COMM_ID; config.IO_CONDITION = this.IO_CONDITION; config.IO_DEVICE_ID = this.IO_DEVICE_ID; config.IO_ENABLE_MAX = this.IO_ENABLE_MAX; config.IO_ENABLE_MAXMAX = this.IO_ENABLE_MAXMAX; config.IO_ENABLE_MIN = this.IO_ENABLE_MIN; config.IO_ENABLE_MINMIN = this.IO_ENABLE_MINMIN; config.IO_ID = this.IO_ID; config.IO_MAXMAX_TYPE = this.IO_MAXMAX_TYPE; config.IO_MAXMAX_VALUE = this.IO_MAXMAX_VALUE; config.IO_MAX_TYPE = this.IO_MAX_TYPE; config.IO_MAX_VALUE = this.IO_MAX_VALUE; config.IO_MINMIN_TYPE = this.IO_MINMIN_TYPE; config.IO_MINMIN_VALUE = this.IO_MINMIN_VALUE; config.IO_MIN_TYPE = this.IO_MIN_TYPE; config.IO_MIN_VALUE = this.IO_MIN_VALUE; config.IO_SERVER_ID = this.IO_SERVER_ID; config.UPDATE_UID = this.UPDATE_UID; config.UPDATE_DATE = this.UPDATE_DATE; config.UPDATE_RESULT = "true"; return(config); }
/// <summary> /// Deserialization constructor /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected IO_PARA(SerializationInfo info, StreamingContext context) { #region 自定义属性 this.mAlarmConfig = (IO_ALARM_CONFIG)info.GetValue("mAlarmConfig", typeof(IO_ALARM_CONFIG)); // this.mIORealData = (IOData)info.GetValue("mIORealData", typeof(IOData)); this.status = (int)info.GetValue("status", typeof(int)); this._io_address = (string)info.GetValue("_io_address", typeof(string)); this._io_alert_enable = (int)info.GetValue("_io_alert_enable", typeof(int)); this._io_comm_id = (string)info.GetValue("_io_comm_id", typeof(string)); this._io_datatype = (string)info.GetValue("_io_datatype", typeof(string)); this._io_device_id = (string)info.GetValue("_io_device_id", typeof(string)); this._io_enablealarm = (int)info.GetValue("_io_enablealarm", typeof(int)); this._io_enablerangeconversion = (int)info.GetValue("_io_enablerangeconversion", typeof(int)); this._io_history = (int)info.GetValue("_io_history", typeof(int)); this._io_id = (string)info.GetValue("_io_id", typeof(string)); this._io_initalvalue = (string)info.GetValue("_io_initalvalue", typeof(string)); this._io_label = (string)info.GetValue("_io_label", typeof(string)); this._io_maxvalue = (string)info.GetValue("_io_maxvalue", typeof(string)); this._io_minvalue = (string)info.GetValue("_io_minvalue", typeof(string)); this._io_name = (string)info.GetValue("_io_name", typeof(string)); this._io_one = (string)info.GetValue("_io_one", typeof(string)); this._io_outlies = (string)info.GetValue("_io_outlies", typeof(string)); this._io_parastring = (string)info.GetValue("_io_parastring", typeof(string)); this._io_pointtype = (string)info.GetValue("_io_pointtype", typeof(string)); this._io_rangemax = (string)info.GetValue("_io_rangemax", typeof(string)); this._io_rangemin = (string)info.GetValue("_io_rangemin", typeof(string)); this._IO_SERVER_id = (string)info.GetValue("_IO_SERVER_id", typeof(string)); this._io_system = (int)info.GetValue("_io_system", typeof(int)); this._io_unit = (string)info.GetValue("_io_unit", typeof(string)); this._io_zero = (string)info.GetValue("_io_zero", typeof(string)); this._IO_FORMULA = (string)info.GetValue("_IO_FORMULA", typeof(string)); this._IO_DATASOURCE = (string)info.GetValue("_IO_DATASOURCE", typeof(string)); #endregion }
public bool UserResultUpdate(Scada.Model.IO_ALARM_CONFIG model) { return(dal.UserResultUpdate(model)); }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(Scada.Model.IO_ALARM_CONFIG model) { return(dal.Add(model)); }
public IO_PARA() { mAlarmConfig = new IO_ALARM_CONFIG(); }