Example #1
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"));
        }
Example #2
0
        public ActionResult AjaxPostCall(ActionTaken CommentData)
        {
            int                BR_ID    = Convert.ToInt16(Session["BirthRegister_ID"]);
            string             UserName = Session["U_Name"].ToString();
            int                UserId   = Convert.ToInt16(Session["U_ID"]);
            string             Action   = CommentData.Action;
            string             comments = CommentData.Comments;
            BirthProcessAction Bprocess = new BirthProcessAction();

            //insert all comment data in database
            string Insertresult = Bprocess.AddDataComments(BR_ID, UserName, Action, comments, UserId);

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