| | |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region 设备分布 生产资源对应的订单 |
| | | |
| | | [Route("Sc_OrderStateDistribution/Sc_OrderStateDistribution_Souce")] |
| | | [HttpGet] |
| | | public object Sc_OrderStateDistribution_Souce(string sWhere,string user,int OrganizationID) |
| | | { |
| | | try |
| | | { |
| | | string sql1 = string.Format("exec h_p_sc_HDeptSouceMOList {0},{1}", sWhere, OrganizationID); |
| | | |
| | | ds = oCN.RunProcReturn(sql1, "h_p_sc_HDeptSouceMOList"); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 根据基础资料ID 查找记录 |