Ejemplo n.º 1
0
 /// <summary>
 /// VoucherType Combofill
 /// </summary>
 public void VoucherTypeComboFill()
 {
     try
     {
         isDontExecuteVoucherType = true;
         DataTable dtbl = new DataTable();
         PDCClearanceMasterSP sppdcClearance = new PDCClearanceMasterSP();
         cmbvouchertype.DataSource = null;
         dtbl = sppdcClearance.VouchertypeComboFill();
         cmbvouchertype.DataSource = dtbl;
         cmbvouchertype.ValueMember = "voucherTypeId";
         cmbvouchertype.DisplayMember = "voucherTypeName";
         cmbvouchertype.SelectedIndex = -1;
         isDontExecuteVoucherType = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PC1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Function to fill VoucherType combobox
 /// </summary>
 public void VoucherTypeComboFill()
 {
     try
     {
         isDontExecuteVoucherType = true;
         DataTable            dtbl           = new DataTable();
         PDCClearanceMasterSP sppdcClearance = new PDCClearanceMasterSP();
         cmbVouchertype.DataSource = null;
         dtbl = sppdcClearance.VouchertypeComboFill();
         DataRow dr = dtbl.NewRow();
         dr["voucherTypeId"]   = 0;
         dr["voucherTypeName"] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbVouchertype.DataSource    = dtbl;
         cmbVouchertype.ValueMember   = "voucherTypeId";
         cmbVouchertype.DisplayMember = "voucherTypeName";
         cmbVouchertype.SelectedIndex = 0;
         isDontExecuteVoucherType     = false;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PCREG5:" + ex.Message;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Function to fill VoucherType combobox
 /// </summary>
 public void VoucherTypeComboFill()
 {
     try
     {
         isDontExecuteVoucherType = true;
         DataTable            dtbl           = new DataTable();
         PDCClearanceMasterSP sppdcClearance = new PDCClearanceMasterSP();
         cmbVoucherType.DataSource = null;
         dtbl = sppdcClearance.VouchertypeComboFill();
         DataRow dr = dtbl.NewRow();
         dr["voucherTypeId"]   = 0;
         dr["voucherTypeName"] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbVoucherType.DataSource    = dtbl;
         cmbVoucherType.ValueMember   = "voucherTypeId";
         cmbVoucherType.DisplayMember = "voucherTypeName";
         cmbVoucherType.SelectedIndex = 0;
         isDontExecuteVoucherType     = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PCREP2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }