| | |
| | | |
| | | #endregion |
| | | |
| | | #region 选择用户基础资料 |
| | | #region 选择职员基础资料 |
| | | |
| | | #region 条件查询用户列表 |
| | | #region 条件查询职员列表 |
| | | [Route("PublicPageMethod/UserList")] |
| | | [HttpGet] |
| | | public object UserList(string sWhere) |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 根据树型id查找用户列表 |
| | | #region 根据树型id查找职员列表 |
| | | [Route("Gy_MaintenanceMode/UserCX")] |
| | | [HttpGet] |
| | | public object UserCX(long HInterID) |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 树型列表用户列表数据 |
| | | #region 树型列表职员列表数据 |
| | | [Route("Gy_MaintenanceMode/UserLoadTree")] |
| | | [HttpGet] |
| | | public object UserLoadTree(string sWhere) |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 选择用户基础资料 |
| | | |
| | | #region 条件查询用户列表 |
| | | [Route("PublicPageMethod/PeopleList")] |
| | | [HttpGet] |
| | | public object PeopleList(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | |
| | | ds = oCN.RunProcReturn("Select czybm HNumber,czymc HName from h_v_Gy_UserList " + sWhere + " Order by czybm ", "h_v_Gy_UserList"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无用户数据!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | } |
| | | } |