示例#1
0
        /// <summary>
        /// 修改代码配置
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EditCode(long id)
        {
            var data = dalCode.GetEntity(id);

            if (data == null)
            {
                throw new JsMiracleException("要修改的代码配置不存在,请刷新后重试");
            }

            var ent = dalCodeType.GetEntityBylxdm(data.LXDM);

            if (ent == null)
            {
                throw new JsMiracleException("代码大类不存在");
            }

            ViewBag.LXMC = string.Format("{0}({1})", ent.LXMC, ent.LXDM);


            return(View(data));
        }