protected void btnApprove_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(hdDptID.Value)) { Department oDpt = new Department(Util.GetIntNumber(hdDptID.Value)); DepartmentDAL oDptDAL = new DepartmentDAL(); oDpt.UserDetails = ucUserDet.UserDetail; Result oResult = (Result)oDptDAL.Approve(oDpt); if (oResult.Status) { ucMessage.OpenMessage(Constants.MSG_SUCCESS_APPROVE, 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); } }