/// <summary>
 /// Function to fill the Currency combobox
 /// </summary>
 public void CurrencyComboFill()
 {
     try
     {
         SettingsBll BllSettings = new SettingsBll();
         List<DataTable> listObjCurrency = new List<DataTable>();
         DateTime dtDate = Convert.ToDateTime(dtpVoucherDate.Value);
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         listObjCurrency = TransactionGeneralFillObj.CurrencyComboByDate(dtDate);
         cmbCurrency.DataSource = listObjCurrency[0];
         cmbCurrency.DisplayMember = "currencyName";
         cmbCurrency.ValueMember = "exchangeRateId";
         cmbCurrency.SelectedValue = 1m;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SV 11 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Here fill the currency combobox in the grid
 /// </summary>
 public void GridCurrencyComboFill()
 {
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         listObj = TransactionGeneralFillObj.CurrencyComboByDate(Convert.ToDateTime(dtpContraVoucherDate.Value));
         dgvcmbCurrency.DataSource = listObj[0];
         DataRow drow = listObj[0].NewRow();
         drow["currencyName"] = string.Empty;
         drow["exchangeRateId"] = 0;
         listObj[0].Rows.InsertAt(drow, 0);
         dgvcmbCurrency.DisplayMember = "currencyName";
         dgvcmbCurrency.ValueMember = "exchangeRateId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("CV:03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// CurrencyComboFill
 /// </summary>
 public void CurrencyComboFill()
 {
     bool IsTrue = false;
     TransactionsGeneralFillBll TransactionGenerateFillObj = new TransactionsGeneralFillBll();
     try
     {
         IsTrue = true;
         List<DataTable> listObj = new List<DataTable>();
         CurrencyBll BllCurrency = new CurrencyBll();
         SettingsBll BllSettings = new SettingsBll();
         listObj = TransactionGenerateFillObj.CurrencyComboByDate(dtpDate.Value);
         cmbCurrency.DataSource = listObj[0];
         cmbCurrency.DisplayMember = "currencyName";
         cmbCurrency.ValueMember = "exchangeRateId";
         cmbCurrency.SelectedValue = 1m;
         if (BllSettings.SettingsStatusCheck("MultiCurrency") == "Yes")
         {
             cmbCurrency.Enabled = true;
         }
         else
         {
             cmbCurrency.Enabled = false;
         }
         IsTrue = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("DN32:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Currency combo fill
 /// </summary>
 public void ComboCurrencyFill()
 {
     TransactionsGeneralFillBll transactionGeneralFillObj = new TransactionsGeneralFillBll();
     SettingsBll BllSettings = new SettingsBll();
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         listObj = transactionGeneralFillObj.CurrencyComboByDate(Convert.ToDateTime(txtSalesQuotationDate.Text));
         cmbCurrency.DataSource = listObj[0];
         cmbCurrency.DisplayMember = "currencyName";
         cmbCurrency.ValueMember = "exchangeRateId";
         cmbCurrency.SelectedValue = 1m;
         DataRow dr = listObj[0].NewRow();
         if (BllSettings.SettingsStatusCheck("MultiCurrency") == "Yes")
         {
             cmbCurrency.Enabled = true;
         }
         else
         {
             cmbCurrency.Enabled = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("SQ:13" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        /// <summary>
        /// Currency Combofill function
        /// </summary>
        public void GridCurrencyComboFill()
        {
            try
            {
                List<DataTable> listObj = new List<DataTable>();
                TransactionsGeneralFillBll Obj = new TransactionsGeneralFillBll();
                listObj = Obj.CurrencyComboByDate(Convert.ToDateTime(txtDate.Text));
                DataRow dr = listObj[0].NewRow();
                dr["exchangeRateId"] = "0";
                dr["currencyName"] = string.Empty;
                listObj[0].Rows.InsertAt(dr, 0);
                dgvcmbCurrency.DataSource = listObj[0];
                dgvcmbCurrency.DisplayMember = "currencyName";
                dgvcmbCurrency.ValueMember = "exchangeRateId";
                SettingsBll BllSettings = new SettingsBll();
                if (BllSettings.SettingsStatusCheck("MultiCurrency") == "Yes")
                {
                    dgvcmbCurrency.ReadOnly = false;
                }
                else
                {
                    dgvcmbCurrency.ReadOnly = true;

                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("PV5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 /// <summary>
 /// Function to fill Currency combobox
 /// </summary>
 public void CurrencyComboFill()
 {
     TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
     SettingsBll BllSettings = new SettingsBll();
     List<DataTable> listObj = new List<DataTable>();
     try
     {
         DateTime dtDate = Convert.ToDateTime(dtpDate.Value);
         List<DataTable> listObjCurrency = new List<DataTable>();
         listObjCurrency = TransactionGeneralFillObj.CurrencyComboByDate(dtDate);
         cmbCurrency.DataSource = listObjCurrency[0];
         cmbCurrency.DisplayMember = "currencyName";
         cmbCurrency.ValueMember = "exchangeRateId";
         cmbCurrency.Enabled = (BllSettings.SettingsStatusCheck("MultiCurrency") == "Yes") ? true : false;
         cmbCurrency.SelectedValue = 1;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR:02" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        /// <summary>
        /// Function to fill currency combo box
        /// </summary>
        public void CurrencyComboFill()
        {
            try
            {
                List<DataTable> ListObj = new List<DataTable>();
                TransactionsGeneralFillBll Obj = new TransactionsGeneralFillBll();
                ListObj = Obj.CurrencyComboByDate(dtmVoucherDate);
                dgvcmbCurrency.DataSource = ListObj[0];
                dgvcmbCurrency.DisplayMember = "currencyName";
                dgvcmbCurrency.ValueMember = "exchangeRateId";
                SettingsBll BllSettings = new SettingsBll();
                if (BllSettings.SettingsStatusCheck("MultiCurrency") == "Yes")
                {
                    dgvcmbCurrency.ReadOnly = false;
                }
                else
                {
                    dgvcmbCurrency.ReadOnly = true;

                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("PB:9" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 /// <summary>
 /// Function to fill the currency combobox
 /// </summary>
 public void CurrencyComboFill()
 {
     try
     {
         isValueChanged = true;
         List<DataTable> listObjCurrency = new List<DataTable>();
         SettingsBll BllSettings = new SettingsBll();
         TransactionsGeneralFillBll TransactionGeneralFillObj = new TransactionsGeneralFillBll();
         listObjCurrency = TransactionGeneralFillObj.CurrencyComboByDate(Convert.ToDateTime(txtDate.Text));
         cmbcurrency.DataSource = listObjCurrency[0];
         cmbcurrency.DisplayMember = "currencyName";
         cmbcurrency.ValueMember = "exchangeRateId";
         cmbcurrency.SelectedValue = 1m;
         if (BllSettings.SettingsStatusCheck("MultiCurrency") == "Yes")
         {
             cmbcurrency.Enabled = true;
         }
         else
         {
             cmbcurrency.Enabled = false;
         }
         isValueChanged = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("MR26:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }