|  |  | 
 |  |  |         } | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         #region 获取车间号 | 
 |  |  |         [Route("Gy_Material/Get_HDepartment")] | 
 |  |  |         [HttpGet] | 
 |  |  |         public object Get_HDepartment() | 
 |  |  |         { | 
 |  |  |             try | 
 |  |  |             { | 
 |  |  |                 DataSet oDs = new DataSet(); | 
 |  |  |                 //========== | 
 |  |  |                 oDs = oCN.RunProcReturn("select top(20) HItemID , HName from Gy_Department", "Gy_Department"); | 
 |  |  |                 objJsonResult.code = "1"; | 
 |  |  |                 objJsonResult.count = 1; | 
 |  |  |                 objJsonResult.Message = "获取成功!"; | 
 |  |  |                 objJsonResult.data = oDs.Tables[0]; | 
 |  |  |                 return objJsonResult; ; | 
 |  |  |             } | 
 |  |  |             catch (Exception e) | 
 |  |  |             { | 
 |  |  |                 objJsonResult.code = "0"; | 
 |  |  |                 objJsonResult.count = 0; | 
 |  |  |                 objJsonResult.Message = "删除失败!" + e.ToString(); | 
 |  |  |                 objJsonResult.data = null; | 
 |  |  |                 return objJsonResult; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         #endregion | 
 |  |  |  | 
 |  |  |         /// <summary> | 
 |  |  |         /// 获取项目列表 | 
 |  |  |         /// </summary> |