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.
209 lines
4.7 KiB
209 lines
4.7 KiB
using Aspose.Cells;
|
|
using NFine.Application.WMS;
|
|
using NFine.Code;
|
|
using System;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Web.Mvc;
|
|
|
|
namespace NFine.Web.Areas.WMS.Controllers
|
|
{
|
|
public class WatchPanelController : ControllerBase
|
|
{
|
|
|
|
private WatchPanelApp App = new WatchPanelApp();
|
|
|
|
|
|
//当天工单生产信息
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetWIPDATA(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetWIPDATA();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
//车间人员信息
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetWIPUser(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetWIPUser();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 收料信息
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetWIPRCV(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetWIPRCV();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 收料图表
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetWIPRCVChart(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetWIPRCVChart();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 发料信息
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetMaterialPick(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetMaterialPick();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 发料图表
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetMaterialPickChart(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetMaterialPickChart();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 销售发货
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSo(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetSo();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 工单欠料
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetOwe(string XX)
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetOwe();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP2()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP3()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP4()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP1021()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP21021()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP31021()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|