示例#1
0
        public ActionResult Rejection(int id, string BnDType)
        {
            ClarificationModelList CmodelList = new ClarificationModelList();

            CmodelList.Attaken = new ActionTaken();
            string ProcessNo = null;

            int CustId = Convert.ToInt32(Session["Cust_ID"]);
            BirthProcessAction Bprocess = new BirthProcessAction();

            string Clarifications = Bprocess.CheckClarification(id, CustId);

            string[]      SplitStringLine   = Clarifications.Split(',', '|');
            List <string> ClarificationList = new List <string>();

            foreach (string List in SplitStringLine)
            {
                ClarificationList.Add(List);
            }
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            foreach (var item in ClarificationList)
            {
                sb.Append(item + "\n");
            }
            var str = new HtmlString(sb.ToString());


            #region Show birth/Death Page
            CmodelList.RegistrationForm = Bprocess.GetDataofparticularprocess(id);
            CmodelList.Clarification    = str.ToString();
            #endregion

            #region  Show identity Documents file
            CmodelList.Attaken.viewIdentityDocument = Bprocess.ShowIdentityDocumentList(id.ToString());
            #endregion

            #region  Show BnD related files
            ProcessNo = BnDType + "_" + id;
            CmodelList.Attaken.viewBnDDocument = Bprocess.ShowBnDDocumentList_1(ProcessNo);
            #endregion

            #region Show Document list related to birth or Death Specific
            if (BnDType == "BR")
            {
                CmodelList.DocList = Bprocess.DocumentList(1); //1 is process id
            }
            else
            {
                CmodelList.DocList = Bprocess.DocumentList(2); //2 is process id
            }
            #endregion

            #region show all Comments History

            CmodelList.Attaken.ShowAllComments = Bprocess.GetAllCommentsdata(id);

            #endregion
            return(View(CmodelList));
        }
示例#2
0
        public ActionResult AddAction(int BR_ID, string Message, string Type)
        {
            ActionTaken At = new ActionTaken();

            string custid = Session["Cust_ID"].ToString();

            if (Message != null)
            {
                Session["BirthRegister_ID"] = BR_ID;
                BirthProcessAction Bprocess = new BirthProcessAction();

                #region Show all data of Birth/Death Process
                At.Showall = Bprocess.GetDataofparticularprocess(BR_ID);
                #endregion

                #region Showall comments During verification
                At.ShowAllComments = Bprocess.GetAllCommentsdata(BR_ID);
                #endregion

                #region show all files loaded in Sql
                At.ShowallMessage = Bprocess.FileLoadMessage(Message);
                #endregion

                #region all Recomend/ clarification Comments
                At.Allrecomendedvarification = Bprocess.AddrecomendVerification();
                #endregion

                #region Appeal doc
                At.Appdoc = Bprocess.ShowAppealdate(BR_ID.ToString());


                #endregion

                At.BnDType = Type;
                return(View(At));
            }
            else
            {
                Session["BirthRegister_ID"] = BR_ID;
                BirthProcessAction Bprocess = new BirthProcessAction();
                At.Showall                   = Bprocess.GetDataofparticularprocess(BR_ID);
                At.ShowAllComments           = Bprocess.GetAllCommentsdata(BR_ID);
                At.Allrecomendedvarification = Bprocess.AddrecomendVerification();
                string ProcessNo = Type + "_" + BR_ID;

                At.viewIdentityDocument = Bprocess.ShowIdentityDocumentList(BR_ID.ToString());

                At.viewBnDDocument = Bprocess.ShowBnDDocumentList_1(ProcessNo);

                At.RoleName = Session["RoleDesc"].ToString();
                #region Appeal doc
                At.Appdoc = Bprocess.ShowAppealdate(ProcessNo);


                #endregion
                return(View(At));
            }
        }
示例#3
0
        public ActionResult Clarification(int id, string BnDType, string Next)
        {
            ClarificationModelList CmodelList = new ClarificationModelList();

            CmodelList.Attaken = new ActionTaken();

            int CustId = Convert.ToInt32(Session["Cust_ID"]);
            BirthProcessAction Bprocess       = new BirthProcessAction();
            string             Clarifications = Bprocess.CheckClarification(id, CustId);

            string[]      SplitStringLine   = Clarifications.Split(',', '|');
            List <string> ClarificationList = new List <string>();

            foreach (string List in SplitStringLine)
            {
                ClarificationList.Add(List);
            }
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            foreach (var item in ClarificationList)
            {
                sb.Append(item + "\n");
            }
            var str = new HtmlString(sb.ToString());

            CmodelList.RegistrationForm = Bprocess.GetDataofparticularprocess(id);
            CmodelList.Clarification    = str.ToString();


            CmodelList.Attaken.viewIdentityDocument = Bprocess.ShowIdentityDocumentList(id.ToString());

            string ProcessNo = BnDType + "_" + id;

            //CmodelList.viewBnDDocument = Bprocess.ShowBnDDocumentList();
            CmodelList.Attaken.viewBnDDocument = Bprocess.ShowBnDDocumentList_1(ProcessNo);

            if (BnDType == "BR")
            {
                CmodelList.DocList = Bprocess.DocumentList(1); //1 is process id
            }
            else
            {
                CmodelList.DocList = Bprocess.DocumentList(2); //2 is process id
            }
            return(View(CmodelList));
        }