/// <summary> /// 修改 /// </summary> public override void EntityUpdate() { StorgeAlarmRule rule = new StorgeAlarmRule(); StorgeAlarm entity = EntityGet(); rule.RUpdate(entity); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { StorgeAlarmRule rule = new StorgeAlarmRule(); gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.Show(); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { StorgeAlarmRule rule = new StorgeAlarmRule(); DataTable dt = rule.RShowStorge(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("YCFlag", "0 AS YCFlag")); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
/// <summary> /// 新增 /// </summary> public override int EntityAdd() { StorgeAlarmRule rule = new StorgeAlarmRule(); StorgeAlarm entity = EntityGet(); rule.RAdd(entity); return(entity.ID); }
void work_DoWork(object sender, DoWorkEventArgs e) { StorgeAlarmRule rule = new StorgeAlarmRule(); GridView1Table = rule.RShowStorge(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("YCFlag", "0 AS YCFlag")); //IOFormRule rule = new IOFormRule(); //GridView1Table = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); }