Пример #1
0
        public ActionResult Index(string pApplicationCode)
        {
            MDModel <SecurityApplication, SecurityForm> vModel = new MDModel <SecurityApplication, SecurityForm>();

            vModel.Master     = oApplicationBLL.GetByCode(pApplicationCode);
            vModel.DetailList = oFormBLL.GetByApplicationCode(pApplicationCode).ToList();
            return(View(vModel));
        }
        //
        // GET: /Application/Edit/5

        public ActionResult Edit(string pApplicationCode)
        {
            SecurityApplication vApplication = oApplicationBLL.GetByCode(pApplicationCode);

            if (vApplication == null)
            {
                return(HttpNotFound());
            }

            return(View(vApplication));
        }
Пример #3
0
        //GET: /User/Details/5
        public ActionResult IndexUserForms(string pUserCode, string pApplicationCode)
        {
            MMDModel <SecurityUser, SecurityApplication, SecurityForm> vModel = new MMDModel <SecurityUser, SecurityApplication, SecurityForm>();

            vModel.Master1    = oUserBLL.GetByCode(pUserCode);
            vModel.Master2    = oApplicationBLL.GetByCode(pApplicationCode);
            vModel.DetailList = oFormBLL.GetByApplicationCode(vModel.Master2.ApplicationCode).ToList();

            if (vModel.Master1 == null || vModel.Master2 == null)
            {
                return(HttpNotFound());
            }

            return(View(vModel));
        }