纽威
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.

208 lines
4.7 KiB

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 GetOwe(string XX)
  147. {
  148. try
  149. {
  150. var data = App.GetOwe();
  151. return Content(data.ToJson());
  152. }
  153. catch (Exception ex)
  154. {
  155. return Content(ex.Message);
  156. }
  157. }
  158. public virtual ActionResult PanelWIP()
  159. {
  160. return View();
  161. }
  162. public virtual ActionResult PanelWIP2()
  163. {
  164. return View();
  165. }
  166. public virtual ActionResult PanelWIP3()
  167. {
  168. return View();
  169. }
  170. public virtual ActionResult PanelWIP4()
  171. {
  172. return View();
  173. }
  174. public virtual ActionResult PanelWIP1021()
  175. {
  176. return View();
  177. }
  178. public virtual ActionResult PanelWIP21021()
  179. {
  180. return View();
  181. }
  182. public virtual ActionResult PanelWIP31021()
  183. {
  184. return View();
  185. }
  186. }
  187. }