public ActionResult BirthRegistration(string FormType)
        {
            string[]     IE           = Request.Params.AllKeys;
            BirthProcess BprocessView = new BirthProcess();

            BprocessView.Date_of_Birth = System.DateTime.Today;//For Current Date
            BprocessView.Date_of_Death = System.DateTime.Today;
            int CustID = Convert.ToInt32(Session["Cust_ID"].ToString());

            BprocessView.CustomerName    = obj.CustomerDetails(CustID);
            BprocessView.CustomerAddress = obj.CustomerAddress(CustID);
            BprocessView.CustomerGender  = obj.CustomerGender(CustID);
            // BprocessView.DocTypeList = objdocument.DocumentList();
            if (FormType == "BR")
            {
                BprocessView.DocList = obj.DocumentList(1); //1 is process id
            }
            else
            {
                BprocessView.DocList = obj.DocumentList(2); //2 is process id
            }
            BprocessView.FormType = FormType;

            return(View(BprocessView));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 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));
        }