VueWebApi/Controllers/BasicSettingController.cs
@@ -281,9 +281,9 @@
        #region[角色类型查询]
        #region[角色类型列表查询]
        /// <summary>
        /// 角色类型查询
        /// 角色类型列表查询
        /// </summary>
        /// <param name="page">页码</param>
        /// <param name="rows">每页显示条数</param>
@@ -327,6 +327,28 @@
        public HttpResponseMessage RoleTypeDelete(string RoleTypeCode)
        {
            mes = BasicSettingBLL.RoleTypeDelete(RoleTypeCode);
            return TJson.toJson(mes);
        }
        #endregion
        #region[角色类型下拉接口]
        /// <summary>
        /// 角色类型下拉接口
        /// </summary>
        /// <returns></returns>
        [Route(template: "RoleTypeSelect")]
        [HttpGet]
        public HttpResponseMessage RoleTypeSelect()
        {
            try
            {
                mes = BasicSettingBLL.RoleTypeSelect();
            }
            catch (Exception e)
            {
                mes.code = "300";
                mes.Message = e.Message;
            }
            return TJson.toJson(mes);
        }
        #endregion
@@ -461,7 +483,7 @@
        /// <returns></returns>
        [Route(template: "RoleAssociationRight")]
        [HttpGet]
        public HttpResponseMessage RoleAssociationRight(string rolecode,string type)
        public HttpResponseMessage RoleAssociationRight(string rolecode,string type=null)
        {
            mes = BasicSettingBLL.RoleAssociationRight(rolecode,type);
            return TJson.toJson(mes);
@@ -524,13 +546,15 @@
            string unitid = obj["id"].ToString();    //往来单位id(主键)
            string unitcode = obj["unitcode"].ToString(); //往来单位编码编码
            string unitname = obj["unitname"].ToString(); //往来单位名称
            string unitattr = obj["unitattr"].ToString(); //往来单属性
            string mtypecode = obj["mtypecode"].ToString(); //外购供方编码
            string btypecode = obj["btypecode"].ToString(); //外协供方编码
            string htypecode = obj["htypecode"].ToString(); //客户编码
            string person = obj["person"].ToString(); //联系人
            string contact = obj["contact"].ToString(); //联系方式
            string description = obj["description"].ToString(); //补充描述
            var usercode = HttpContext.Current.Request.Cookies["navTabId"].Value.ToString();
            var usercode = "Admin";//HttpContext.Current.Request.Cookies["admin"].Value.ToString();
            string OperType = obj["OperType"].ToString();  //操作类型
            mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, unitattr, person, contact, description, usercode, OperType);
            mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, mtypecode, btypecode,htypecode, person, contact, description, usercode, OperType);
            return TJson.toJson(mes);
        }
        #endregion