/// <summary> /// 删除 /// </summary> public override void EntityDelete() { ColorSampleRule rule = new ColorSampleRule(); ColorSample entity = EntityGet(); rule.RDelete(entity); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { ColorSampleRule rule = new ColorSampleRule(); gridView1.GridControl.DataSource = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.Show(); }
/// <summary> /// 修改 /// </summary> public override void EntityUpdate() { ColorSampleRule rule = new ColorSampleRule(); ColorSample entity = EntityGet(); ColorSampleDts[] entitydts = EntityDtsGet(); entity.SubmitFlag = this.HTSubmitFlagUpdateGet(); rule.RUpdate(entity, entitydts); }
/// <summary> /// 新增 /// </summary> public override int EntityAdd() { ColorSampleRule rule = new ColorSampleRule(); ColorSample entity = EntityGet(); ColorSampleDts[] entitydts = EntityDtsGet(); entity.SubmitFlag = this.HTSubmitFlagInsertGet(); rule.RAdd(entity, entitydts); return(entity.ID); }