Exemple #1
0
 private void btnModify_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.aisinoDataGrid1.SelectedRows.Count == 1)
         {
             BMXZQY_Edit edit = new BMXZQY_Edit(this.aisinoDataGrid1.SelectedRows[0].Cells["BM"].Value.ToString(), true);
             if (edit.ShowDialog() == DialogResult.OK)
             {
                 this.dataSet = this.districtManager.QueryDistrict(this.districtManager.Pagesize, this.districtManager.CurrentPage);
                 this.aisinoDataGrid1.DataSource = this.dataSet;
                 this.aisinoDataGrid1.Refresh();
             }
         }
         else
         {
             MessageManager.ShowMsgBox("INP-235105");
         }
     }
     catch (Exception exception)
     {
         this.log.Error(exception.ToString());
         ExceptionHandler.HandleError(exception);
     }
 }
Exemple #2
0
 private void aisinoDataGrid1_DataGridRowDbClickEvent(object sender, DataGridRowEventArgs e)
 {
     try
     {
         BMXZQY_Edit edit = new BMXZQY_Edit(e.CurrentRow.Cells["BM"].Value.ToString(), true);
         if (edit.ShowDialog() == DialogResult.OK)
         {
             this.dataSet = this.districtManager.QueryDistrict(this.districtManager.Pagesize, this.districtManager.CurrentPage);
             this.aisinoDataGrid1.DataSource = this.dataSet;
         }
     }
     catch (Exception exception)
     {
         this.log.Error(exception.ToString());
         ExceptionHandler.HandleError(exception);
     }
 }
Exemple #3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         BMXZQY_Edit edit = new BMXZQY_Edit(string.Empty, this);
         if (edit.ShowDialog() == DialogResult.OK)
         {
             this.dataSet = this.districtManager.QueryDistrict(this.districtManager.Pagesize, this.districtManager.CurrentPage);
             this.aisinoDataGrid1.DataSource = this.dataSet;
             this.aisinoDataGrid1.Refresh();
         }
     }
     catch (Exception exception)
     {
         this.log.Error(exception.ToString());
         ExceptionHandler.HandleError(exception);
     }
 }