示例#1
0
 /// <summary>
 /// Function to fill AccountyLedger combobox
 /// </summary>
 public void LedgerComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         TransactionsGeneralFill obj = new TransactionsGeneralFill();
         dtbl = obj.AccountLedgerComboFill();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[2] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbAccountLedger.DataSource = dtbl;
         cmbAccountLedger.DisplayMember = "ledgerName";
         cmbAccountLedger.ValueMember = "ledgerId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("RR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill AccountyLedger combobox
 /// </summary>
 public void LedgerComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         TransactionsGeneralFill obj = new TransactionsGeneralFill();
         dtbl = obj.AccountLedgerComboFill();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[2] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbAccountLedger.DataSource    = dtbl;
         cmbAccountLedger.DisplayMember = "ledgerName";
         cmbAccountLedger.ValueMember   = "ledgerId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("RR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#3
0
 /// <summary>
 /// Function to fill AccountyLedger combobox
 /// </summary>
 public void LedgerComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         TransactionsGeneralFill obj = new TransactionsGeneralFill();
         dtbl = obj.AccountLedgerComboFill();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[2] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbAccountLedger.DataSource    = dtbl;
         cmbAccountLedger.DisplayMember = "ledgerName";
         cmbAccountLedger.ValueMember   = "ledgerId";
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "RR2:" + ex.Message;
     }
 }
示例#4
0
 /// <summary>
 /// Grid ledger combobox fill
 /// </summary>
 public void GridLedgerComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         TransactionsGeneralFill obj = new TransactionsGeneralFill();
         dtbl = obj.AccountLedgerComboFill();
         DataRow drow = dtbl.NewRow();
         drow["ledgerName"] = string.Empty;
         drow["ledgerId"] = "0";
         dtbl.Rows.InsertAt(drow, 0);
         dgvcmbAccountLedger.DataSource = dtbl;
         dgvcmbAccountLedger.ValueMember = "ledgerId";
         dgvcmbAccountLedger.DisplayMember = "ledgerName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("RV9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }