Beispiel #1
0
        public ActionResult ShowTemplate(string TemplateId, string RequestId)
        {
            NCETemplate Temp = new NCETemplate();

            ViewBag.Bag_CCTRequestId = RequestId; // Only View Admin all template customers show -3 template

            return(PartialView("P_ShowSingleTemplate", Temp.getTemplateData(TemplateId, "%")));
        }
Beispiel #2
0
 public ActionResult CTemplateSelect(string RequestId)
 {
     if (RequestId != null)
     {
         NCETemplate Temp = new NCETemplate();
         ViewBag.Bag_CCRequestId = RequestId;
         return(View(Temp.getTemplateData("%", "%", "%")));
     }// Only View Admin all template customers show -3 template
     return(HttpNotFound("Ooops, There is no page like this :/"));
 }
Beispiel #3
0
        public ActionResult NewSupportDocForTemplate(int id, string sid, string tempid, string isactive)
        {
            NCETemplate          objTemp = new NCETemplate();
            List <M_NCETemplate> Temp    = objTemp.getTemplateData("%", "Y", "%");

            ViewBag.Bag_NceTemplates = new SelectList(Temp, "Template_Id", "Template_Name");

            List <M_SupportDocument> Support = objSettings.SDocument_getSDcouments("%", "%");

            ViewBag.Bag_SupportDoc = new SelectList(Support, "SupportingDocument_Id", "SupportingDocument_Name");
            M_SupportDocument sp = new M_SupportDocument();

            if (id != 0)
            {
                sp.Template_SupportID    = id;
                sp.SupportingDocument_Id = sid;
                sp.Template_Id           = tempid;
                sp.Is_Mandatory          = isactive;
                return(PartialView("P_NewSupportDocForTemplate", sp));
            }
            sp.Is_Mandatory = "Y";
            return(PartialView("P_NewSupportDocForTemplate", sp));
        }