Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bool PHCOB = objITransactionBusiness.CheckPHCOpeningBalanceExist(PHCConstant.PHCID);
                if (PHCOB)
                {
                    txtPHCOBName.Enabled = false;
                    btnSave.Enabled      = false;

                    pnlstatus.BackColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.WarningBackGroundColor);
                    lblstatus.ForeColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.WarningForeColor);
                    lblstatus.Text      = "Already Opening Balance Amount has been alloted.";
                }
            }
        }