纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

463 lines
10 KiB

2 years ago
11 months ago
10 months ago
11 months ago
2 years ago
11 months ago
2 years ago
  1. using Aspose.Cells;
  2. using NFine.Application.WMS;
  3. using NFine.Code;
  4. using System;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.IO;
  8. using System.Web.Mvc;
  9. namespace NFine.Web.Areas.WMS.Controllers
  10. {
  11. public class WatchPanelController : ControllerBase
  12. {
  13. private WatchPanelApp App = new WatchPanelApp();
  14. //当天工单生产信息
  15. [HttpGet]
  16. [HandlerAjaxOnly]
  17. public ActionResult GetWIPDATA(string XX)
  18. {
  19. try
  20. {
  21. var data = App.GetWIPDATA();
  22. return Content(data.ToJson());
  23. }
  24. catch (Exception ex)
  25. {
  26. return Content(ex.Message);
  27. }
  28. }
  29. //车间人员信息
  30. [HttpGet]
  31. [HandlerAjaxOnly]
  32. public ActionResult GetWIPUser(string XX)
  33. {
  34. try
  35. {
  36. var data = App.GetWIPUser();
  37. return Content(data.ToJson());
  38. }
  39. catch (Exception ex)
  40. {
  41. return Content(ex.Message);
  42. }
  43. }
  44. /// <summary>
  45. /// 收料信息
  46. /// </summary>
  47. /// <param name="XX"></param>
  48. /// <returns></returns>
  49. [HttpGet]
  50. [HandlerAjaxOnly]
  51. public ActionResult GetWIPRCV(string XX)
  52. {
  53. try
  54. {
  55. var data = App.GetWIPRCV();
  56. return Content(data.ToJson());
  57. }
  58. catch (Exception ex)
  59. {
  60. return Content(ex.Message);
  61. }
  62. }
  63. /// <summary>
  64. /// 收料图表
  65. /// </summary>
  66. /// <param name="XX"></param>
  67. /// <returns></returns>
  68. [HttpGet]
  69. [HandlerAjaxOnly]
  70. public ActionResult GetWIPRCVChart(string XX)
  71. {
  72. try
  73. {
  74. var data = App.GetWIPRCVChart();
  75. return Content(data.ToJson());
  76. }
  77. catch (Exception ex)
  78. {
  79. return Content(ex.Message);
  80. }
  81. }
  82. /// <summary>
  83. /// 发料信息
  84. /// </summary>
  85. /// <param name="XX"></param>
  86. /// <returns></returns>
  87. [HttpGet]
  88. [HandlerAjaxOnly]
  89. public ActionResult GetMaterialPick(string XX)
  90. {
  91. try
  92. {
  93. var data = App.GetMaterialPick();
  94. return Content(data.ToJson());
  95. }
  96. catch (Exception ex)
  97. {
  98. return Content(ex.Message);
  99. }
  100. }
  101. /// <summary>
  102. /// 发料图表
  103. /// </summary>
  104. /// <param name="XX"></param>
  105. /// <returns></returns>
  106. [HttpGet]
  107. [HandlerAjaxOnly]
  108. public ActionResult GetMaterialPickChart(string XX)
  109. {
  110. try
  111. {
  112. var data = App.GetMaterialPickChart();
  113. return Content(data.ToJson());
  114. }
  115. catch (Exception ex)
  116. {
  117. return Content(ex.Message);
  118. }
  119. }
  120. /// <summary>
  121. /// 销售发货
  122. /// </summary>
  123. /// <param name="XX"></param>
  124. /// <returns></returns>
  125. [HttpGet]
  126. [HandlerAjaxOnly]
  127. public ActionResult GetSo(string XX)
  128. {
  129. try
  130. {
  131. var data = App.GetSo();
  132. return Content(data.ToJson());
  133. }
  134. catch (Exception ex)
  135. {
  136. return Content(ex.Message);
  137. }
  138. }
  139. /// <summary>
  140. /// 查询月度每日下单行数与每日完成出库行数
  141. /// </summary>
  142. /// <param name="XX"></param>
  143. /// <returns></returns>
  144. [HttpGet]
  145. [HandlerAjaxOnly]
  146. public ActionResult GetGridJson_MonthDaliyComplete()
  147. {
  148. try
  149. {
  150. var data = App.GetGridJson_MonthDaliyComplete();
  151. return Content(data.ToJson());
  152. }
  153. catch (Exception ex)
  154. {
  155. return Content(ex.Message);
  156. }
  157. }
  158. /// <summary>
  159. /// 查询月度每日合格数行数与每日完成入库行数
  160. /// </summary>
  161. /// <param name="XX"></param>
  162. /// <returns></returns>
  163. [HttpGet]
  164. [HandlerAjaxOnly]
  165. public ActionResult GetGridJson_MonthDaliyRcv()
  166. {
  167. try
  168. {
  169. var data = App.GetGridJson_MonthDaliyRcv();
  170. return Content(data.ToJson());
  171. }
  172. catch (Exception ex)
  173. {
  174. return Content(ex.Message);
  175. }
  176. }
  177. /// <summary>
  178. /// 查询配发料百分比
  179. /// </summary>
  180. /// <param name="XX"></param>
  181. /// <returns></returns>
  182. [HttpGet]
  183. [HandlerAjaxOnly]
  184. public ActionResult GetGridJson_MonthLLPer()
  185. {
  186. try
  187. {
  188. var data = App.GetGridJson_MonthLLPer();
  189. return Content(data.ToJson());
  190. }
  191. catch (Exception ex)
  192. {
  193. return Content(ex.Message);
  194. }
  195. }
  196. /// <summary>
  197. /// 查询一期库存状态
  198. /// </summary>
  199. /// <returns></returns>
  200. [HttpGet]
  201. [HandlerAjaxOnly]
  202. public ActionResult GetGridJson_WareStatusOne()
  203. {
  204. try
  205. {
  206. var data = App.GetGridJson_WareStatusOne();
  207. return Content(data.ToJson());
  208. }
  209. catch (Exception ex)
  210. {
  211. return Content(ex.Message);
  212. }
  213. }
  214. /// <summary>
  215. /// 查询二期库存状态
  216. /// </summary>
  217. /// <returns></returns>
  218. [HttpGet]
  219. [HandlerAjaxOnly]
  220. public ActionResult GetGridJson_WareStatusTwo()
  221. {
  222. try
  223. {
  224. var data = App.GetGridJson_WareStatusTwo();
  225. return Content(data.ToJson());
  226. }
  227. catch (Exception ex)
  228. {
  229. return Content(ex.Message);
  230. }
  231. }
  232. /// <summary>
  233. /// 查询三期库存状态
  234. /// </summary>
  235. /// <returns></returns>
  236. [HttpGet]
  237. [HandlerAjaxOnly]
  238. public ActionResult GetGridJson_WareStatusThree()
  239. {
  240. try
  241. {
  242. var data = App.GetGridJson_WareStatusThree();
  243. return Content(data.ToJson());
  244. }
  245. catch (Exception ex)
  246. {
  247. return Content(ex.Message);
  248. }
  249. }
  250. /// <summary>
  251. /// 查询物料配料进度
  252. /// </summary>
  253. /// <returns></returns>
  254. [HttpGet]
  255. [HandlerAjaxOnly]
  256. public ActionResult GetGridJson_ApplyStatus()
  257. {
  258. try
  259. {
  260. var data = App.GetGridJson_ApplyStatus();
  261. return Content(data.ToJson());
  262. }
  263. catch (Exception ex)
  264. {
  265. return Content(ex.Message);
  266. }
  267. }
  268. /// <summary>
  269. /// 查询库存物料周转天数
  270. /// </summary>
  271. /// <returns></returns>
  272. [HttpGet]
  273. [HandlerAjaxOnly]
  274. public ActionResult GetGridJson_ItemAge()
  275. {
  276. try
  277. {
  278. var data = App.GetGridJson_ItemAge();
  279. return Content(data.ToJson());
  280. }
  281. catch (Exception ex)
  282. {
  283. return Content(ex.Message);
  284. }
  285. }
  286. [HttpGet]
  287. [HandlerAjaxOnly]
  288. public ActionResult GetGridJson_ItemAgeNew()
  289. {
  290. try
  291. {
  292. var data = App.GetGridJson_ItemAgeNew();
  293. return Content(data.ToJson());
  294. }
  295. catch (Exception ex)
  296. {
  297. return Content(ex.Message);
  298. }
  299. }
  300. /// <summary>
  301. /// 查询193/199/zmm188处理进度
  302. /// </summary>
  303. /// <returns></returns>
  304. [HttpGet]
  305. [HandlerAjaxOnly]
  306. public ActionResult GetGridJson_StoreStatus()
  307. {
  308. try
  309. {
  310. var data = App.GetGridJson_StoreStatus();
  311. return Content(data.ToJson());
  312. }
  313. catch (Exception ex)
  314. {
  315. return Content(ex.Message);
  316. }
  317. }
  318. /// <summary>
  319. /// 查询库存物料周转天数
  320. /// </summary>
  321. /// <returns></returns>
  322. [HttpGet]
  323. [HandlerAjaxOnly]
  324. public ActionResult GetGridJson_ItemZzDays()
  325. {
  326. try
  327. {
  328. var data = App.GetGridJson_ItemZzDays();
  329. return Content(data.ToJson());
  330. }
  331. catch (Exception ex)
  332. {
  333. return Content(ex.Message);
  334. }
  335. }
  336. /// <summary>
  337. /// 工单欠料
  338. /// </summary>
  339. /// <param name="XX"></param>
  340. /// <returns></returns>
  341. [HttpGet]
  342. [HandlerAjaxOnly]
  343. public ActionResult GetOwe(string XX)
  344. {
  345. try
  346. {
  347. var data = App.GetOwe();
  348. return Content(data.ToJson());
  349. }
  350. catch (Exception ex)
  351. {
  352. return Content(ex.Message);
  353. }
  354. }
  355. public virtual ActionResult PanelWIP()
  356. {
  357. return View();
  358. }
  359. public virtual ActionResult PanelWIP2()
  360. {
  361. return View();
  362. }
  363. public virtual ActionResult PanelWIP3()
  364. {
  365. return View();
  366. }
  367. public virtual ActionResult PanelWIP4()
  368. {
  369. return View();
  370. }
  371. public virtual ActionResult PanelWIP5()
  372. {
  373. return View();
  374. }
  375. public virtual ActionResult PanelWIP6()
  376. {
  377. return View();
  378. }
  379. public virtual ActionResult PanelWIP7()
  380. {
  381. return View();
  382. }
  383. public virtual ActionResult PanelWIP8()
  384. {
  385. return View();
  386. }
  387. public virtual ActionResult PanelWIP9()
  388. {
  389. return View();
  390. }
  391. public virtual ActionResult PanelWIP1021()
  392. {
  393. return View();
  394. }
  395. public virtual ActionResult PanelWIP21021()
  396. {
  397. return View();
  398. }
  399. public virtual ActionResult PanelWIP31021()
  400. {
  401. return View();
  402. }
  403. }
  404. }