/// <summary> /// 删除 /// </summary> public override void EntityDelete() { PaymentHandleRule rule = new PaymentHandleRule(); PaymentHandle entity = EntityGet(); rule.RDelete(entity); }
/// <summary> /// 绑定Grid /// </summary> public override void BindGrid() { PaymentHandleRule rule = new PaymentHandleRule(); gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1)); gridView1.GridControl.Show(); }
/// <summary> /// 新增 /// </summary> public override int EntityAdd() { PaymentHandleRule rule = new PaymentHandleRule(); PaymentHandle entity = EntityGet(); rule.RAdd(entity); return(entity.ID); }
public void BindGrid() { PaymentHandleRule rule = new PaymentHandleRule(); DataTable dt = rule.RShow(" AND OrderFormNo =" + SysString.ToDBString(m_OrderFormNo), ProcessGrid.GetQueryField(gridView1)); Common.AddDtRow(dt, 20); gridView1.GridControl.DataSource = dt; gridView1.GridControl.Show(); }
public override void btnSave_Click(object sender, EventArgs e) { try { this.BaseFocusLabel.Focus(); string p_Message = string.Empty; if (!Check(out p_Message)) { this.ShowMessage(p_Message); return; } PaymentHandleRule rule = new PaymentHandleRule(); PaymentHandle[] Entity = EntityDtsGet(); rule.RSave(m_OrderFormNo, Entity); this.ShowInfoMessage("保存成功"); frmWHfrmPayment_Load(null, null); } catch (Exception E) { this.ShowMessage(E.Message); } }
public override void btnLoad_Click(object sender, EventArgs e) { if (!FCommon.RightCheck(this.FormID, this.RightFormID, this.FormListAID, this.FormListBID, RightSub.权限0)) { this.ShowMessage("没有此权限,请联系管理员"); return; } ButtonItem btn = (ButtonItem)sender; PaymentHandleRule rule = new PaymentHandleRule(); PaymentHandle entity = new PaymentHandle(); entity.ID = HTDataID; entity.SelectByID(); if (btn.Text == "撤销已阅") { if (entity.ReadFlag == 0) { this.ShowMessage("该单据还未阅,无需撤销"); return; } entity.ReadFlag = 0; rule.RUpdate(entity); } if (btn.Text == "已阅") { if (entity.ReadFlag == 1) { this.ShowMessage("该单据已阅,无需再阅"); return; } entity.ReadFlag = 1; rule.RUpdate(entity); } btnQuery_Click(null, null); ProcessGrid.GridViewFocus(gridView1, new string[] { "ID" }, new string[] { entity.ID.ToString() }); }