Exemplo n.º 1
0
        /// <summary>
        /// 检查部门代码是否存在,不存在,返回y
        /// </summary>
        /// <param name="deptcode"></param>
        /// <param name="deptId"></param>
        /// <param name="parentId"></param>
        /// <returns></returns>
        public ActionResult CheckDeptCodeExists(string deptcode, int deptId, int parentId)
        {
            bool isExists = _deptManager.CheckDeptCodeExists(deptcode, deptId, parentId, CurrentTenant.TenantId);

            return(Json(!isExists, JsonRequestBehavior.AllowGet));
        }