コード例 #1
0
 private void FillTransactionType()
 {
     objUtilData = new UtilityDB();
     try
     {
         DataTable dt = objUtilData.dtSPIntConvTranType();
         if (dt.Rows.Count > 0)
         {
             TranTypeLoad             = true;
             cmbTrnType.DataSource    = dt;
             cmbTrnType.DisplayMember = "type";
             cmbTrnType.ValueMember   = "name";
         }
         TranTypeLoad = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "DC SP", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
     finally
     {
         objUtilData    = null;
         Cursor.Current = Cursors.Default;
     }
 }