| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | [Route("PublicPageMethod/Gy_RepairList_PDA")] |
| | | [HttpGet] |
| | | public object Gy_RepairList_PDA(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | if (sWhere != "" && sWhere != null) |
| | | { |
| | | sWhere = " and ( HNumber like '%" + sWhere + "%' or HName like '%" + sWhere + "%' ) "; |
| | | } |
| | | string sql1 = string.Format(@"Select HItemID,HParentID,HNumber,HName from Gy_Repair where HStopflag=0"); |
| | | ds = oCN.RunProcReturn(sql1 + sWhere + " order by HItemID ", "Gy_Repair"); |
| | | |
| | | 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 |
| | | |
| | | #region 根据树型id查找维修项目列表 |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | //故障原因页面优化后查询 20250113 |
| | | [Route("PublicPageMethod/Gy_ConkReasonList_PDA")] |
| | | [HttpGet] |
| | | public object List_PDA(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | if (sWhere != "" && sWhere != null) |
| | | { |
| | | sWhere = " and ( HNumber like '%" + sWhere + "%' or HName like '%" + sWhere + "%' ) "; |
| | | } |
| | | string sql1 = string.Format(@"Select HItemID,HParentID,HNumber,HName from Gy_ConkReason where HStopflag=0"); |
| | | ds = oCN.RunProcReturn(sql1 + sWhere + " order by HItemID ", "Gy_ConkReason"); |
| | | |
| | | 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 |
| | | |
| | | #region 根据树型id查找故障原因设置列表 |
| | | [Route("Gy_MaintenanceMode/FaultReasonCX")] |
| | |
| | | SQLHelper.ClsCN SubCn = new SQLHelper.ClsCN(); |
| | | string sql = string.Format(@"select '权限管理-用户' id,'' HNumber,'权限管理--用户' title,'' ParentID |
| | | union all |
| | | select gnbm id,gnsy HNumber,gnmc as title, case when sjgnbm='' then '权限管理--用户' else sjgnbm end ParentID from Xt_Xtgnb where sjgnbm='' |
| | | select gnbm id,gnsy HNumber,gnmc as title, case when sjgnbm='' then '权限管理--用户' else sjgnbm end ParentID from Xt_Xtgnb where sjgnbm='' and useflag=1 |
| | | union all |
| | | Select gnbm id,gnsy HNumber,gnmc as title,sjgnbm as ParentID |
| | | from Xt_Xtgnb where mjbz=0 and useflag=1 and rightflag=1 and sjgnbm in( |