Esempio n. 1
0
        public PartialViewResult Table(string id)
        {
            if (!id.Contains("_BO_"))
            {
                id += "_BO_";
            }
            var meta = new MetaBoRepo().GetMETA(id);

            return(PartialView(meta));
        }
Esempio n. 2
0
 public async Task <IHttpActionResult> GetDataSources()
 {
     try
     {
         return(Ok(MetaBoRepo.GetDataSources()));
     }
     catch (Exception ex)
     {
         return(Ok(ex.Message));
     }
 }
Esempio n. 3
0
        public PartialViewResult Formulaire(string id, string compKey)
        {
            if (!id.Contains("_BO_"))
            {
                id += "_BO_";
            }
            var meta = new MetaBoRepo().GetMETA(id);

            ViewBag.compKey = compKey;
            return(PartialView(meta));
        }
Esempio n. 4
0
        public PartialViewResult SubForm(string id)
        {
            ViewBag.isSubForm = true;
            id += "_BO_";
            var meta = new MetaBoRepo().GetMETA(id);

            try
            {
                UserRoleManager.Instance.VerifyAccess(meta.BO_DB_NAME);
            }
            catch (System.UnauthorizedAccessException ex)
            {
                ViewBag.Message = ex.Message;
                return(PartialView("Unauthorized"));
            }

            return(PartialView("Index", meta));
        }
Esempio n. 5
0
        public PartialViewResult Index(string id)
        {
            if (id != "workflow")
            {
                id += "_BO_";
            }
            var meta = new MetaBoRepo().GetMETA(id);

            try
            {
                UserRoleManager.Instance.VerifyAccess(meta.BO_DB_NAME);
            }
            catch (System.UnauthorizedAccessException ex)
            {
                ViewBag.Message = ex.Message;
                return(PartialView("Unauthorized"));
            }

            return(PartialView(meta));
        }
Esempio n. 6
0
        public PartialViewResult Admin(string id)
        {
            var meta = new MetaBoRepo().GetMETA(id);

            return(PartialView("Index", meta));
        }