yl
2022-06-21 f7fdf63c13241dfa7d66a3315fd54429670e24bf
VueWebApi/Controllers/BasicSettingController.cs
@@ -215,6 +215,13 @@
        #endregion
        #region[用户清单导入]
        /// <summary>
        /// 用户清单导入
        /// </summary>
        /// <param name="files">上传用户清单导入文件</param>
        /// <returns></returns>
        [Route(template: "ImportUserExcel")]
        [HttpPost]
        public HttpResponseMessage ImportUserExcel(HttpPostedFileBase files)
        {
            string savePath;
@@ -410,6 +417,22 @@
        }
        #endregion
        #region[角色清单关联用户查询1]
        /// <summary>
        /// 角色清单关联用户查询1
        /// </summary>
        /// <param name="rolecode">角色编码</param>
        /// <returns></returns>
        [Route(template: "RoleAssociationUserTwo")]
        [HttpGet]
        [HiddenApi]
        public HttpResponseMessage RoleAssociationUserTwo(string rolecode = null)
        {
            mes = BasicSettingBLL.RoleAssociationUserTwo(rolecode);
            return TJson.toJson(mes);
        }
        #endregion
        #region[角色清单关联用户保存]
        /// <summary>
        /// 角色清单关联用户保存
@@ -417,21 +440,21 @@
        /// <param name="rolecode">角色编码</param>
        /// <param name="json">提交数据对象</param>
        /// <returns></returns>
        [Route(template: "SaveUserAssoctRole")]
        [Route(template: "SaveRoleAssoctUser")]
        [HttpPost]
        public HttpResponseMessage SaveRoleAssociationUser(string rolecode, List<ObjectData> json)
        public HttpResponseMessage SaveRoleAssoctUser(string rolecode, List<ObjectData> json)
        {
            //JavaScriptSerializer Serializer = new JavaScriptSerializer();
            //List<RoleUserSubmit> objs = new List<RoleUserSubmit>(); 
            //objs = Serializer.Deserialize<List<RoleUserSubmit>>(json);
            mes = BasicSettingBLL.SaveRoleAssociationUser(rolecode, json);
            mes = BasicSettingBLL.SaveRoleAssoctUser(rolecode, json);
            return TJson.toJson(mes);
        }
        #endregion
        #region[角色清单关联功能查询]
        /// <summary>
        /// 用户清单关联功能查询
        /// 角色清单关联功能查询
        /// </summary>
        /// <param name="rolecode">角色编码</param>
        /// <param name="type">操作端分类编码</param>
@@ -511,5 +534,20 @@
            return TJson.toJson(mes);
        }
        #endregion
        #region[往来单位删除]
        /// <summary>
        /// 往来单位删除
        /// </summary>
        /// <param name="unitid">往来单位ID</param>
        /// <returns></returns>
        [Route(template: "DeleteCurrentUnit")]
        [HttpPost]
        public HttpResponseMessage DeleteCurrentUnit(string unitid)
        {
            mes = BasicSettingBLL.DeleteCurrentUnit(unitid);
            return TJson.toJson(mes);
        }
        #endregion
    }
}