public ActionResult Edit(Guid id)
        {
            ORG_DICT_EX cuobj = null;
            var         jmsg  = new JsonSMsg();

            try
            {
                cuobj       = _service.GetORG_DICTById(id);
                jmsg.Status = 0;
                jmsg.Data   = cuobj;
            }
            catch (Exception ex)
            {
                jmsg.Status  = -1;
                jmsg.Message = ex.Message;
            }
            return(Json(jmsg));
        }
        public ActionResult Save(ORG_DICT_EX CuObj, FormCollection form)
        {
            JsonSMsg rMsg = new JsonSMsg();

            try
            {
                CuObj.ORG_ID = base.CurrentUserOrgId;
                int ret = _service.SaveORG_DICT(CuObj);
                if (ret >= 0)
                {
                    rMsg.Status = 0;
                    rMsg.Data   = CuObj.ID;
                }
                else if (ret == -2)
                {
                    rMsg.Status  = -1;
                    rMsg.Message = "数据字典名称重复,请重新填写";
                }
                else if (ret == -3)
                {
                    rMsg.Status  = -1;
                    rMsg.Message = "数据字典名称值重复,请重新填写";
                }
                else
                {
                    rMsg.Status  = -1;
                    rMsg.Message = "意外错误,请稍后重试";
                }
            }
            catch (Exception ex)
            {
                rMsg.Status  = -1;
                rMsg.Message = ex.Message;
            }
            return(Json(rMsg));
        }