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