/// <summary> /// 修改 /// </summary> public override void EntityUpdate() { WHALarmDtsRule rule = new WHALarmDtsRule(); WHALarmDts entity = EntityGet(); rule.RUpdate(entity); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { WHALarmDtsRule rule = new WHALarmDtsRule(); gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.Show(); }
/// <summary> /// 新增 /// </summary> public override int EntityAdd() { WHALarmDtsRule rule = new WHALarmDtsRule(); WHALarmDts entity = EntityGet(); rule.RAdd(entity); return(entity.ID); }