| | |
| | | |
| | | #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) |
| | |
| | | { |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("Select HItemID,HParentID,HNumber,HName from Gy_EquipMent where HStopflag=0 Order by HItemID", "Gy_EquipMent"); |
| | | ds = oCN.RunProcReturn("Select HInterID,HEquipFileNumber,HName from Gy_EquipFileBillMain Order by HInterID", "Gy_EquipFileBillMain"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "Select HItemID,HParentID,HNumber,HName from Gy_EquipMent where 1 = 1 "; |
| | | string sql1 = "Select HInterID,HEquipFileNumber,HName from Gy_EquipFileBillMain where 1 = 1 "; |
| | | string sql = sql1 + sWhere; |
| | | ds = oCN.RunProcReturn(sql, "Gy_EquipMent"); |
| | | ds = oCN.RunProcReturn(sql, "HEquipFileNumber"); |
| | | } |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | |
| | | |
| | | #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 |
| | | } |
| | | } |