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.
99 lines
2.0 KiB
99 lines
2.0 KiB
using Aspose.Cells;
|
|
using NFine.Application.SRM;
|
|
using NFine.Code;
|
|
using System;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Web.Mvc;
|
|
|
|
namespace NFine.Web.Areas.SRM.Controllers
|
|
{
|
|
public class WatchPanelController : ControllerBase
|
|
{
|
|
|
|
private WatchPanelApp App = new WatchPanelApp();
|
|
|
|
|
|
|
|
|
|
public virtual ActionResult PanelWIP_WorkShop()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpPost]
|
|
public ActionResult GetPlanAndGoodRate()
|
|
{
|
|
try
|
|
{
|
|
|
|
return Content(App.GetPlanAndGoodRate().ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
|
|
}
|
|
|
|
[HttpPost]
|
|
public ActionResult GetOrderCompleteQty()
|
|
{
|
|
try
|
|
{
|
|
|
|
return Content(App.GetOrderCompleteQty().ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
|
|
}
|
|
[HttpPost]
|
|
public ActionResult GetOrderCompleteQtyWithSeg()
|
|
{
|
|
try
|
|
{
|
|
|
|
return Content(App.GetOrderCompleteQtyWithSeg().ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
|
|
}
|
|
|
|
[HttpPost]
|
|
public ActionResult GetOrderCheckQtyWithSeg()
|
|
{
|
|
try
|
|
{
|
|
|
|
return Content(App.GetOrderCheckQtyWithSeg().ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
|
|
}
|
|
|
|
[HttpPost]
|
|
public ActionResult GetMoProcess(int begin, int totalCount)
|
|
{
|
|
try
|
|
{
|
|
|
|
return Content(App.GetMoProcess(begin, totalCount).ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|