| | |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | ////查看权限 |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_Department", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "无查看权限"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | //查看权限 |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_Driver_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无查看权限"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //string sql1 = string.Format(@"select * from h_v_IF_DepartmentList where 组织名称='" + Organization + "'"); |
| | | string sql1 = string.Format(@"select * from h_v_Gy_driver where 1=1 "); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | |
| | | public string title { get; set; } |
| | | public List<TreeModel> children = new List<TreeModel>(); |
| | | } |
| | | [Route("Gy_Department/Gy_DepartmentTreeList")] |
| | | [Route("Gy_Driver/Gy_DepartmentTreeList")] |
| | | [HttpGet] |
| | | public object Gy_DepartmentTreeList(string sWhere) |
| | | { |
| | |
| | | try |
| | | { |
| | | ////删除权限 |
| | | //if (!DBUtility.ClsPub.Security_Log("Gy_Department_Delete", 1, false, user)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "无删除权限"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_Driver_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无删除权限"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | if (string.IsNullOrWhiteSpace(HItemID)) |
| | |
| | | //string msg5 = sArray[3].ToString(); |
| | | |
| | | //编辑权限 |
| | | if (!DBUtility.ClsPub.Security_Log_second("Gy_Department_Edit", 1, false, msg3)) |
| | | if (!DBUtility.ClsPub.Security_Log_second("Gy_Driver_Edit", 1, false, msg3)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | |
| | | { |
| | | try |
| | | { |
| | | ////审核权限 |
| | | //if (!DBUtility.ClsPub.Security_Log_second("Gy_Department_Check", 1, false, CurUserName)) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "审核失败!无权限!"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | //审核权限 |
| | | if (!DBUtility.ClsPub.Security_Log_second("Gy_Driver_Check", 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "审核失败!无权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | var ds = oCN.RunProcReturn("select * from Gy_Driver where HItemID=" + HInterID, "Gy_Driver"); |
| | | if (ds.Tables[0].Rows.Count > 0) |