예제 #1
0
 /// <summary>
 /// Function to fill datagridview
 /// </summary>
 public void Gridfill()
 {
     try
     {
         DataTable dtblCounter = new DataTable();
         CounterSP spCounter   = new CounterSP();
         dtblCounter           = spCounter.CounterOnlyViewAll();
         dgvCounter.DataSource = dtblCounter;
     }
     catch (Exception ex)
     {
         MessageBox.Show("CT2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 /// <summary>
 /// Function to fill datagridview
 /// </summary>
 public void Gridfill()
 {
     try
     {
         DataTable dtblCounter = new DataTable();
         CounterSP spCounter   = new CounterSP();
         dtblCounter           = spCounter.CounterOnlyViewAll();
         dgvCounter.DataSource = dtblCounter;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "CT2" + ex.Message;
     }
 }
예제 #3
0
 /// <summary>
 /// Function to fill datagridview
 /// </summary>
 public void Gridfill()
 {
     try
     {
         DataTable dtblCounter = new DataTable();
         CounterSP spCounter = new CounterSP();
         dtblCounter = spCounter.CounterOnlyViewAll();
         dgvCounter.DataSource = dtblCounter;
     }
     catch (Exception ex)
     {
         MessageBox.Show("CT2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #4
0
 /// <summary>
 /// Function to use the Counter Combo Fill
 /// </summary>
 public void CounterComboFill()
 {
     CounterSP SpCounter = new CounterSP();
     DataTable dtbl = new DataTable();
     try
     {
         dtbl = SpCounter.CounterOnlyViewAll();
         cmbCounter.DataSource = dtbl;
         cmbCounter.DisplayMember = "counterName";
         cmbCounter.ValueMember = "counterId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("POS : 11" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }