//编辑 private void Btn_Edit_Click(object sender, EventArgs e) { this.opState = OpState.Update; UIControl.SetStatus(bar1, bar2, pnlMain, gridView1, OpState.Update); }
//取消 private void Btn_Cancel_Click(object sender, EventArgs e) { this.opState = OpState.Browse; UIControl.SetStatus(bar1, bar2, pnlMain, gridView1, OpState.Browse); //this.LoadData(curId); }
//=========================================================== private void FmBILL_Load(object sender, EventArgs e) { UIControl.SetStatus(bar1, bar2, pnlMain, gridView1, this.opState); this.Get(); }
//新增 private void Btn_Add_Click(object sender, EventArgs e) { this.opState = OpState.Add; UIControl.SetStatus(bar1, bar2, pnlMain, gridView1, OpState.Add); this.Add(); }