private void btnModify_Click(object sender, EventArgs e) { try { if (this.aisinoDataGrid1.SelectedRows.Count == 1) { string bM = this.aisinoDataGrid1.SelectedRows[0].Cells["BM"].Value.ToString(); BMSPSM_Edit edit = new BMSPSM_Edit(this.aisinoDataGrid1.SelectedRows[0].Cells["SZ"].Value.ToString(), bM, true); if (edit.ShowDialog() == DialogResult.OK) { this.dataSet = this.customerManager.QueryGoodsTax(this.customerManager.Pagesize, this.customerManager.CurrentPage); this.aisinoDataGrid1.DataSource = this.dataSet; } } else { MessageManager.ShowMsgBox("INP-235105"); } } catch (Exception exception) { this.log.Error(exception.ToString()); ExceptionHandler.HandleError(exception); } }
private void treeViewBM1_onClickAdd(object sender, TreeSelectEventArgs e) { try { BMSPSM_Edit edit = new BMSPSM_Edit(e.BmString, this); if (edit.ShowDialog() == DialogResult.OK) { this.dataSet = this.customerManager.QueryGoodsTax(this.customerManager.Pagesize, this.customerManager.CurrentPage); this.aisinoDataGrid1.DataSource = this.dataSet; } } catch (Exception exception) { this.log.Error(exception.ToString()); ExceptionHandler.HandleError(exception); } }
private void aisinoDataGrid1_DataGridRowDbClickEvent(object sender, DataGridRowEventArgs e) { try { string bM = e.CurrentRow.Cells["BM"].Value.ToString(); BMSPSM_Edit edit = new BMSPSM_Edit(e.CurrentRow.Cells["SZ"].Value.ToString(), bM, true); if (edit.ShowDialog() == DialogResult.OK) { this.dataSet = this.customerManager.QueryGoodsTax(this.customerManager.Pagesize, this.customerManager.CurrentPage); this.aisinoDataGrid1.DataSource = this.dataSet; } } catch (Exception exception) { this.log.Error(exception.ToString()); ExceptionHandler.HandleError(exception); } }
private void btnAdd_Click(object sender, EventArgs e) { try { string sJBM = string.Empty; if (this.aisinoDataGrid1.SelectedRows.Count > 0) { sJBM = this.aisinoDataGrid1.SelectedRows[0].Cells["BM"].Value.ToString(); } BMSPSM_Edit edit = new BMSPSM_Edit(sJBM, this); if (edit.ShowDialog() == DialogResult.OK) { this.dataSet = this.customerManager.QueryGoodsTax(this.customerManager.Pagesize, this.customerManager.CurrentPage); this.aisinoDataGrid1.DataSource = this.dataSet; } } catch (Exception exception) { this.log.Error(exception.ToString()); ExceptionHandler.HandleError(exception); } }