public ActionResult status() { using (UOSEntities db = new UOSEntities()) { obj = GetData(); int instid = Convert.ToInt32(obj.Institute_Id); var list = db.AJ_Affi_Ins_Pop_Instu_Info(instid); UserStatus status = new UserStatus(); foreach (var item in list) { status.Email = item.Ins_Email; status.InstituteName = item.Ins_Name; status.MobileNumber = item.Ins_OfficMobile; status.Nature = item.College_Catg; status.PhoneNumber = item.Ins_ContactPTCL; status.PostalAddress = item.Ins_PostAddres; status.PrincipalName = item.Ins_PrinciPal_Name; obj.Application_id = Convert.ToInt32(item.application_id); if (item.Securty_status == 1) { status.Status = "successfully Granted"; status.ReturnStatusIdentity = 1; } else if (item.is_grant_Affiliation == true && (item.Securty_status == 0 || item.Securty_status == null)) { var dv = db.Aj_affi_Get_application_Prog_scurity_Fee(item.application_id); foreach (var ite in dv) { status.Status = "Affiliation conditionally granted Submit your Secuirty Fee as soon as possiable with demand daraf of RS."; status.StatusValueFOrLink = ite.Value.ToString(); status.Status1 = "And Upload Draft."; status.ReturnStatusIdentity = 2; } } else if (item.Is_visit == true && (item.is_grant_Affiliation == false || item.is_grant_Affiliation == null) && (item.Securty_status == 0 || item.Securty_status == null)) { status.Status = "Application is in visiting schedule. Affiliation Inspection committee will visit you soon."; } else if (item.Is_visit_assign == true && (item.Is_visit == false || item.Is_visit == null)) { status.Status = "Application is in process wait for visit of affiliation insecption committee."; } else if (item.IS_submit == true && (item.Is_visit_assign == false || item.Is_visit_assign == null)) { status.Status = "Your Application Is submit from your side please wait for further action from Affiliation Branch of UOS."; } else if ((item.IS_submit == false || item.IS_submit == null) && (item.Is_visit_assign == false || item.Is_visit_assign == null)) { status.Status = "You Application Is not complet Or Reject from Admin due to some deficieny."; } } return(View(status)); } }
byte[] Download_Rpt_Insitut_info(int Inst_ID) { using (UOSEntities db = new UOSEntities()) { Microsoft.Reporting.WebForms.LocalReport rpt = new Microsoft.Reporting.WebForms.LocalReport(); rpt.ReportPath = Server.MapPath(@"~/Aff_Reports/Rpt_Affi_Instu_Info.rdlc"); rpt.DataSources.Add(new ReportDataSource("AJ_Affi_Ins_Pop_Instu_Info", db.AJ_Affi_Ins_Pop_Instu_Info(Convert.ToInt32(Inst_ID)))); return(rpt.Render("PDF")); } }