Ejemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("NoonMealRecNo,InstitutionsName,TotalCenter,Completed,Pending,CreatedBy,CreatedDate,FinancialYear,PeriodCategory,Period")] NoonMealPdlForm2 noonMealPdlForm2)
        {
            using (var _context = new auditinternalContext())
            {
                ViewBag.ListOfFinancialYear  = _context.TblMasterFinancialyear.ToList();
                ViewBag.ListOfPeriodCategory = _context.TblMasterPeriodCategory.ToList();
                ViewBag.ListOfInstitutions   = _context.TblMasterInstitutions.ToList();
            }
            if (ModelState.IsValid)
            {
                _context.Add(noonMealPdlForm2);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "NoonMealForm2"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "NoonMealForm2"
                    };
                }
            }
            return(View(noonMealPdlForm2));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Create([Bind("Annexure4FormBrecNo,Institutions,FinancialYear,AuditFees")] Annexure4FormB annexure4FormB)
        {
            using (var _context = new auditinternalContext())
            {
                ViewBag.ListOfFinancialYear = _context.TblMasterFinancialyear.ToList();
                ViewBag.ListOfInstitutions  = _context.TblMasterInstitutions.ToList();
            }
            if (ModelState.IsValid)
            {
                _context.Add(annexure4FormB);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "Annexure4B"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "Annexure4B"
                    };
                }
            }
            return(View(annexure4FormB));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> Create([Bind("AuditPdlForm1ArecNo,FinancialYear,District,Institutions,NoOfInstitutions,InstPendingPrevMonth,InstCompletedThisMonth,InstPendingEndMonth")] AuditPdlForm1a auditPdlForm1a)
        {
            using (var _context = new auditinternalContext())
            {
                ViewBag.ListOfFinancialYear = _context.TblMasterFinancialyear.ToList();
                ViewBag.ListOfDistrict      = _context.TblMasterDistrict.ToList();
                ViewBag.ListOfInstitutions  = _context.TblMasterInstitutions.ToList();
            }
            if (ModelState.IsValid)
            {
                _context.Add(auditPdlForm1a);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "AuditForm1a"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "AuditForm1a"
                    };
                }
            }
            return(View(auditPdlForm1a));
        }
Ejemplo n.º 4
0
        public async Task <IActionResult> Create([Bind("NoonMealRecNo,Subject,AsstDirector,Inspector,DeputyInspector,AssistantInspector,JuniorAssistant,Typist,RecordClerk,OfficeAssistant,FinancialYear,PeriodCategory,Period")] NoonMealPdlForm13 noonMealPdlForm13)
        {
            using (var _context = new auditinternalContext())
            {
                ViewBag.ListOfFinancialYear  = _context.TblMasterFinancialyear.ToList();
                ViewBag.ListOfPeriodCategory = _context.TblMasterPeriodCategory.ToList();
            }
            if (ModelState.IsValid)
            {
                _context.Add(noonMealPdlForm13);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "NoonMealForm13"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "NoonMealForm13"
                    };
                }
                //return RedirectToAction(nameof(Index));
            }
            return(View(noonMealPdlForm13));
        }
Ejemplo n.º 5
0
        public async Task <IActionResult> Create([Bind("RtiPdlRecNo,Details,OriginalPetitions,Appealpetitions,OriginalAppealPetitions,Total")] RtiPdl rtiPdl)
        {
            if (ModelState.IsValid)
            {
                _context.Add(rtiPdl);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "RtiPdls"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "RtiPdls"
                    };
                }
            }
            return(View(rtiPdl));



            //if (ModelState.IsValid)
            //{
            //    _context.Add(rtiPdl);
            //    await _context.SaveChangesAsync();
            //    return RedirectToAction(nameof(Index));
            //}
            //return View(rtiPdl);
        }
Ejemplo n.º 6
0
        public async Task <IActionResult> Create([Bind("PdlBoradForm6RecNo,NameDesignation,StaffMeeting,OfficeWorkBillWork,AuditWork,PucWork,PensionCertificationWork,OtherDuty,GovtHoliday,LeaveAvailed,TotalDays")] PdlBoardForm6 pdlBoardForm6)
        {
            if (ModelState.IsValid)
            {
                _context.Add(pdlBoardForm6);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(pdlBoardForm6));
        }
Ejemplo n.º 7
0
        public async Task <IActionResult> Create([Bind("UserName,Password,Id")] Login login)
        {
            if (ModelState.IsValid)
            {
                _context.Add(login);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(login));
        }
Ejemplo n.º 8
0
        public async Task <IActionResult> Create([Bind("AuditPdlFormIrecNo,FinancialYear,District,Institutions,CentreInstitutionDetails,PendencyReasons")] AuditPdlFormI auditPdlFormI)
        {
            using (var _context = new auditinternalContext())
            {
                ViewBag.ListOfFinancialYear = _context.TblMasterFinancialyear.ToList();
                ViewBag.ListOfDistrict      = _context.TblMasterDistrict.ToList();
                ViewBag.ListOfInstitutions  = _context.TblMasterInstitutions.ToList();
            }
            if (ModelState.IsValid)
            {
                _context.Add(auditPdlFormI);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "AuditFormI"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "AuditFormI"
                    };
                }
            }
            return(View(auditPdlFormI));


            //if (ModelState.IsValid)
            //{
            //    _context.Add(auditPdlFormI);
            //    await _context.SaveChangesAsync();
            //    return RedirectToAction(nameof(Index));
            //}
            //return View(auditPdlFormI);
        }
Ejemplo n.º 9
0
        public async Task <IActionResult> Create([Bind("Annexure3FormArecNo,AdministrativeDepartment,InstitutionDetails,Pendency2013To14,Pendency2014To15,Pendency2015To16,Pendency2016To17")] Annexure3FormA annexure3FormA)
        {
            if (ModelState.IsValid)
            {
                _context.Add(annexure3FormA);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "Annexure3A"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "Annexure3A"
                    };
                }
            }
            return(View(annexure3FormA));
        }
Ejemplo n.º 10
0
        public async Task <IActionResult> Create([Bind("CommunityFormBrecNo,DistrictOffice,OfficerPersonnelsName,PostName,Grade,JoiningDate,Gender,Religion,Category,FormRecNo")] CommunityFormB communityFormB)
        {
            if (ModelState.IsValid)
            {
                _context.Add(communityFormB);
                var result = await _context.SaveChangesAsync();

                if (result == 1)
                {
                    Result          = "Saved";
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/>Details Successfully Saved!!.", Status = "S", BackPageAction = "Index", BackPageController = "CommunityB"
                    };
                }
                else
                {
                    ViewData["Msg"] = new MessageDTO {
                        Message = "Dear User,<br/><b>Some Error Ocurred Please try Later. if the problem persists contact your system administrator..", Status = "E", BackPageAction = "Index", BackPageController = "CommunityB"
                    };
                }
            }
            return(View(communityFormB));
        }