예제 #1
0
    protected void btnApprove_Click(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(hdBranchID.Value))
        {
            Branch    oBranch    = new Branch(hdBranchID.Value);
            BranchDAL oBranchDAL = new BranchDAL();
            oBranch.UserDetails = ucUserDet.UserDetail;

            Result oResult = (Result)oBranchDAL.Approve(oBranch);
            if (oResult.Status)
            {
                ucMessage.OpenMessage(Constants.MSG_SUCCESS_APPROVE, Constants.MSG_TYPE_SUCCESS);
                ucMessage.OpenMessage(Constants.MSG_SUCCESS_APPROVE + " with<BR> <b>Branch Code:&nbsp;" + txtBranchID.Text + "&nbsp;:&nbsp;" + txtBranchName.Text.ToUpper() + "</B>", Constants.MSG_TYPE_SUCCESS);
            }
            else
            {
                ucMessage.OpenMessage(Constants.MSG_ERROR_APPROVE, Constants.MSG_TYPE_ERROR);
            }
        }
        else
        {
            ucMessage.OpenMessage(Constants.MSG_ERROR_APPROVE, Constants.MSG_TYPE_ERROR);
        }
    }