Ejemplo n.º 1
0
        protected void ddlSpType_SelectedIndexChanged(object sender, EventArgs e)
        {
            string sSPTypeID = ddlSpType.SelectedValue;

            TotalClear();
            if (!string.IsNullOrEmpty(sSPTypeID))
            {
                ddlSpType.Text = sSPTypeID;
                LoadCurrencyBySPType(ddlSpType.SelectedValue);
                SPTypeDAL oSPTypeDAL = new SPTypeDAL();
                Result    oResult    = oSPTypeDAL.GetCurrencyBySPTypeID(ddlSpType.SelectedValue);
                if (oResult.Status)
                {
                    SPType oSPType = oResult.Return as SPType;
                    ViewState[_BASE_CURRENCY] = oSPType.Currency.CurrencyID;
                }
                if (ddlSpType.SelectedValue.Equals(Constants.SP_TYPE_DIB) ||
                    ddlSpType.SelectedValue.Equals(Constants.SP_TYPE_DPB))
                {
                    txtCovRateToBC.Enabled = true;
                    txtCovRateToBC.Text    = "1.0000";
                }
                else
                {
                    txtCovRateToBC.Text    = "1.0000";
                    txtCovRateToBC.Enabled = false;
                }
            }

            //txtReimConvRate.Text = string.Empty;
            txtReimConvRate.Enabled = true;
            txtBBReferenceNo.Focus();
        }