/// <summary> /// 删除 /// </summary> public override void EntityDelete() { DYGLRule rule = new DYGLRule(); DYGL entity = EntityGet(); rule.RDelete(entity); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { DYGLRule rule = new DYGLRule(); gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag")); gridView1.GridControl.Show(); }
/// <summary> /// 新增 /// </summary> public override int EntityAdd() { //txtShopID_Leave(null, null); DYGLRule rule = new DYGLRule(); DYGL entity = EntityGet(); rule.RAdd(entity); return(entity.ID); }
/// <summary> /// 修改 /// </summary> public override void EntityUpdate() { if (txtItemCode.Text.Trim() == "") { this.ShowMessage("请输入产品编码"); txtItemCode.Focus(); return; } //txtShopID_Leave(null, null); DYGLRule rule = new DYGLRule(); DYGL entity = EntityGet(); rule.RUpdate(entity); }