Пример #1
0
        protected void btnApprove_Click(object sender, EventArgs e)
        {
            ACERegister oACERegister = new ACERegister();

            oACERegister.RegNo = txtRegistrationNo.Text.Trim();
            IssueDAL oIssueDAL = new IssueDAL();

            oACERegister.UserDetails = ucUserDet.UserDetail;
            Result oResult = (Result)oIssueDAL.ApproveACERegister(oACERegister);

            if (oResult.Status)
            {
                if (oResult.Message.Equals("E"))
                {
                    ucMessage.OpenMessage("Required Script is not available now", Constants.MSG_TYPE_ERROR);
                }
                else
                {
                    //TotalClear();
                    ucMessage.OpenMessage(Constants.MSG_SUCCESS_APPROVE + " with Reg. No.: <b>" + (string)oResult.Return + "</b>", Constants.MSG_TYPE_SUCCESS);
                }
            }
            else
            {
                ucMessage.OpenMessage(Constants.MSG_ERROR_APPROVE, Constants.MSG_TYPE_ERROR);
            }
        }