/// <summary> /// 修改 /// </summary> public override void EntityUpdate() { QSRule rule = new QSRule(); QS entity = EntityGet(); rule.RUpdate(entity); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { QSRule rule = new QSRule(); DataTable dt = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
/// <summary> /// 新增 /// </summary> public override int EntityAdd() { QSRule rule = new QSRule(); QS entity = EntityGet(); rule.RAdd(entity); return(entity.ID); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { QSRule rule = new QSRule(); DataTable dt = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag")); setDt(dt); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }