public ActionResult BirthRegistration(BirthProcess BRobject, HttpPostedFileBase httpPostedFileBase)
        {
            int id = BRobject.ID;

            if (string.IsNullOrEmpty(BRobject.DocumentType))
            {
                ModelState.AddModelError("DocumentType", "Please Select Document Type");
            }

            obj = new BirthProcessAction();
            int Custid = Convert.ToInt32(Session["Cust_ID"]);
            //Commented the lines below - Soumendu
            //
            //if (BRobject.CustomerGender == "Female")
            //    {
            //        BRobject.Name_of_Mother = BRobject.CustomerName;
            //    }
            //else
            //    {
            //        BRobject.Name_of_Father = BRobject.CustomerName;
            //    }
            string result = obj.create(BRobject, 1, Custid, BRobject.FormType);

            string[] line       = result.Split('|');
            string   Rt         = line[0].ToString();
            string   Appno      = line[1].ToString();
            string   FormType_1 = BRobject.FormType;

            Session["AppNo"] = FormType_1 + "_" + Appno;

            Clear();
            int Roleid = Convert.ToInt16(Session["SortedList1"]);
            int CustID = Convert.ToInt32(Session["Cust_ID"].ToString());

            if (Rt == "Registered Successfully")
            {
                string fileSavePath = HttpContext.Server.MapPath("~/UploadedFiles/");

                string rt = Utility.Util.AddDocuments(Request, BRobject.DocList, fileSavePath,
                                                      FormType_1 + "_" + Appno, CustID);

                string AppNo = FormType_1 + "_" + Appno;
                List <MailNotification> MailInfo = obj.getMailInfo("BirthApplied", AppNo);
                for (int i = 0; i < MailInfo.Count; i++)
                {
                    Utility.Util.INotificationService mailNotification = new Utility.Util.MailService
                                                                             ("*****@*****.**", MailInfo[i].Subject, MailInfo[i].MailAppNo);
                    mailNotification.Notify();
                }



                Message();
            }

            TempData["Viewstr"]      = Session["ViewData"].ToString();
            TempData["ErrorMessage"] = "Your application has been register succesfully." +
                                       "\n Your application id no:" + Appno;
            return(RedirectToAction("Index", "Login"));
        }
Exemple #2
0
        public ActionResult AddRejection(ClarificationModelList AppealContact)
        {
            Bprocess = new BirthProcessAction();

            for (int i = 0; i < AppealContact.RegistrationForm.Count; i++)
            {
                int    id     = AppealContact.RegistrationForm[i].ID;
                int    Custid = Convert.ToInt32(Session["Cust_ID"]);
                string Appno  = id.ToString();

                int Roleid = Convert.ToInt16(Session["SortedList1"]);


                string FormType_1 = AppealContact.RegistrationForm[i].BnDType.ToString();

                Session["AppNo"] = FormType_1 + "_" + Appno;


                string fileSavePath = Server.MapPath("~/UploadedFiles/");

                BR_ID = AppealContact.RegistrationForm[0].ID;

                Tbl_Document_List tblObj = new Tbl_Document_List();

                tblObj.Docname = AppealContact.AppealDoc.AppealFileName;

                List <Tbl_Document_List> list = new List <Tbl_Document_List>();

                list.Add(tblObj);

                string messageappeal = AppealContact.AppealDoc.AppealComment;


                //Appeal Applied
                string Insertresult = Bprocess.AddDataComments(BR_ID, "", "AppealRejection", "", 0);

                string rt = Utility.Util.AddAppealDocument(Request, list, fileSavePath,
                                                           FormType_1 + "_" + Appno, Custid, messageappeal);

                string BR_IDstr = AppealContact.RegistrationForm[0].BnDType + "_" + BR_ID;
                List <MailNotification> MailInfo = Bprocess.getMailInfo("BirthAppealtoApprover", BR_IDstr.ToString());
                for (int k = 0; k < MailInfo.Count; k++)
                {
                    Utility.Util.INotificationService mailNotification = new Utility.Util.MailService
                                                                             ("*****@*****.**", MailInfo[k].Subject, MailInfo[k].MailAppNo);
                    mailNotification.Notify();
                }
            }


            return(RedirectToAction("Dashboard", "DashBoard"));
        }
Exemple #3
0
        public ActionResult AddPayment(string DType)
        {
            string BR_IDstr = DType + "_" + Session["BirthRegister_ID"].ToString();

            List <MailNotification> MailInfo = Bprocess.getMailInfo("Payment", BR_IDstr.ToString());

            for (int i = 0; i < MailInfo.Count; i++)
            {
                Utility.Util.INotificationService mailNotification = new Utility.Util.MailService
                                                                         ("*****@*****.**", MailInfo[i].Subject, MailInfo[i].MailAppNo);
                mailNotification.Notify();
            }
            return(View());
        }
Exemple #4
0
        public ActionResult AjaxRecomendRejectCall(RecommendedRejects RR)
        {
            RejectList          = RR.Action;
            RejectComments      = RR.Comments;
            RejectActionSection = RR.ActionSection;

            BR_ID    = Convert.ToInt16(Session["BirthRegister_ID"]);
            UserName = Session["U_Name"].ToString();
            UserId   = Convert.ToInt16(Session["U_ID"]);
            Bprocess = new BirthProcessAction();

            InsertResult = Bprocess.AddRejectrecomendVerification(BR_ID, UserId, UserName, RejectActionSection, RejectList, RejectComments);

            if (InsertResult != "Approve" || InsertResult != "Clarification" || InsertResult != "RecommendRejection")
            {
                ViewBag.Message = Utility.Util.AltMsg("Verification has been done");
            }
            string BR_IDstr = "_" + Session["BirthRegister_ID"].ToString();

            if (RejectActionSection.Equals("Clarification"))
            {
                List <MailNotification> MailInfo = Bprocess.getMailInfo("Clarification", BR_IDstr.ToString());
                for (int i = 0; i < MailInfo.Count; i++)
                {
                    Utility.Util.INotificationService mailNotification = new Utility.Util.MailService
                                                                             ("*****@*****.**", MailInfo[i].Subject, MailInfo[i].MailAppNo);
                    mailNotification.Notify();
                }
            }
            else if (RejectActionSection.Contains("Rejection"))
            {
                List <MailNotification> MailInfo = Bprocess.getMailInfo("Rejection", BR_IDstr.ToString());
                for (int i = 0; i < MailInfo.Count; i++)
                {
                    Utility.Util.INotificationService mailNotification = new Utility.Util.MailService
                                                                             ("*****@*****.**", MailInfo[i].Subject, MailInfo[i].MailAppNo);
                    mailNotification.Notify();
                }
            }

            return(RedirectToAction("Dashboard", "DashBoard"));
        }