| | |
| | | string sql1 = string.Format(@"select * from h_v_IF_DepartmentList where 组织名称='" + Organization + "'"); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn(sql1 + sWhere + "order by HItemID desc", "h_v_IF_DepartmentList"); |
| | | ds = oCN.RunProcReturn(sql1 + sWhere + "order by 部门代码", "h_v_IF_DepartmentList"); |
| | | } |
| | | else |
| | | { |
| | | string sql = sql1 + sWhere + "order by HItemID desc"; |
| | | string sql = sql1 + sWhere + "order by 部门代码 "; |
| | | ds = oCN.RunProcReturn(sql, "h_v_IF_DepartmentList"); |
| | | } |
| | | |
| | |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |