看板
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.

98 lines
2.0 KiB

5 months ago
  1. using Aspose.Cells;
  2. using NFine.Application.SRM;
  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.SRM.Controllers
  10. {
  11. public class WatchPanelController : ControllerBase
  12. {
  13. private WatchPanelApp App = new WatchPanelApp();
  14. public virtual ActionResult PanelWIP_WorkShop()
  15. {
  16. return View();
  17. }
  18. [HttpPost]
  19. public ActionResult GetPlanAndGoodRate()
  20. {
  21. try
  22. {
  23. return Content(App.GetPlanAndGoodRate().ToJson());
  24. }
  25. catch (Exception ex)
  26. {
  27. return Content(ex.Message);
  28. }
  29. }
  30. [HttpPost]
  31. public ActionResult GetOrderCompleteQty()
  32. {
  33. try
  34. {
  35. return Content(App.GetOrderCompleteQty().ToJson());
  36. }
  37. catch (Exception ex)
  38. {
  39. return Content(ex.Message);
  40. }
  41. }
  42. [HttpPost]
  43. public ActionResult GetOrderCompleteQtyWithSeg()
  44. {
  45. try
  46. {
  47. return Content(App.GetOrderCompleteQtyWithSeg().ToJson());
  48. }
  49. catch (Exception ex)
  50. {
  51. return Content(ex.Message);
  52. }
  53. }
  54. [HttpPost]
  55. public ActionResult GetOrderCheckQtyWithSeg()
  56. {
  57. try
  58. {
  59. return Content(App.GetOrderCheckQtyWithSeg().ToJson());
  60. }
  61. catch (Exception ex)
  62. {
  63. return Content(ex.Message);
  64. }
  65. }
  66. [HttpPost]
  67. public ActionResult GetMoProcess(int begin, int totalCount)
  68. {
  69. try
  70. {
  71. return Content(App.GetMoProcess(begin, totalCount).ToJson());
  72. }
  73. catch (Exception ex)
  74. {
  75. return Content(ex.Message);
  76. }
  77. }
  78. }
  79. }