Exemplo n.º 1
0
        /// <summary>
        /// 自定义表单字段表详情
        /// </summary>
        /// <param name="CFF_ID">ID</param>
        /// <returns></returns>
        public ActionResult CustomFromFieldDetail(string CFF_ID)
        {
            int CFF_ID_ = ParmEncryp.DecryptInt(CFF_ID);

            if (CFF_ID_ == 0)
            {
                return(Content("<script>top.extAlert('非法访问!')</script>"));
            }
            CustomFromField entity      = bll.GetCustomFromField(CFF_ID_);
            string          checkResult = base.CheckDetailGetUsersPerm();

            if (!String.IsNullOrEmpty(checkResult))
            {
                return(Content("<script>" + checkResult + "</script>"));
            }
            Users u = userHelper.GetUser();

            return(View(entity));
        }
Exemplo n.º 2
0
        public ActionResult FormDesignAdd(FormDesign entity)
        {
            entity.Aid  = ParmEncryp.DecryptInt(Request.Form["aid"]);
            entity.ACid = ParmEncryp.DecryptInt(Request.Form["acid"]);
            ArchivesCases ac     = acbll.GetArchivesCases(entity.ACid);
            ActionResult  result = base.AddExecuteScript(ac, bll.GetFormDesignListCount, entity, "FormDesign", "表单信息表", "FormDesignAdd");

            if (result != null)
            {
                return(result);
            }
            Users u    = userHelper.GetUser();
            int   flag = bll.AddFormDesign(entity);

            if (flag > 0)
            {
                return(pageHelper.AlertCloseWin("FormDesignAdd", "新增成功!"));
            }
            else
            {
                return(pageHelper.ExtAlert("新增失败!"));
            }
        }
Exemplo n.º 3
0
        public string DelFormDesign(string ID)
        {
            int ID_ = ParmEncryp.DecryptInt(ID);

            if (ID_ == 0)
            {
                return("top.extAlert('非法访问!');");
            }
            FormDesign entity       = bll.GetFormDesign(ID_);
            string     checkRresult = base.CheckDelGetUsersPerm();

            if (!String.IsNullOrEmpty(checkRresult))
            {
                return(checkRresult);
            }
            else if (bll.DelFormDesign(ID_) && acbll.UpdArchivesCasesDataLog(entity.ACid, "FormDesign", 0))
            {
                return("$('#refreshdataBtn').click();top.extAlert('删除成功!');");
            }
            else
            {
                return("top.extAlert('删除失败!');");
            }
        }
Exemplo n.º 4
0
        public string DelCustomFromField(string CFF_ID)
        {
            int CFF_ID_ = ParmEncryp.DecryptInt(CFF_ID);

            if (CFF_ID_ == 0)
            {
                return("top.extAlert('非法访问!');");
            }
            CustomFromField entity       = bll.GetCustomFromField(CFF_ID_);
            string          checkRresult = base.CheckDelGetUsersPerm();

            if (!String.IsNullOrEmpty(checkRresult))
            {
                return(checkRresult);
            }
            else if (bll.DelCustomFromField(CFF_ID_))
            {
                return("$('#refreshdataBtn').click();top.extAlert('删除成功!');");
            }
            else
            {
                return("top.extAlert('删除失败!');");
            }
        }