public string LeaveValidation(string fromDate, string toDate, string leaveTypeCode, string uploaded_files) { string result = ""; string company_Code = _objCurr.GetCompanyCode(); string user_Code = _objCurr.GetUserCode(); result = _objSP.LeaveValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); if (result == "NO ISSUE") { int privilege_value = _objSP.GetLeaveValidationPrivilege(company_Code, user_Code, leaveTypeCode); if (privilege_value == 1) { result = _objSP.AllowAcrossMonthLeaveValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); if (result == "NO ISSUE") { result = _objSP.MinMaxValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); if (result == "NO ISSUE") { result = _objSP.MonthlyYearlyValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); if (result == "NO ISSUE") { result = _objSP.AttachmentValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode, uploaded_files); if (result == "NO ISSUE") { result = _objSP.SandwichPolicyValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); if (result == "NO ISSUE") { result = _objSP.ClubbingValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); if (result == "NO ISSUE") { result = _objSP.LeavebalanceValidation(company_Code, user_Code, fromDate, toDate, leaveTypeCode); } } } } } } } } return(result); }