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.
464 lines
10 KiB
464 lines
10 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 GetGridJson_MonthDaliyComplete()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_MonthDaliyComplete();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询月度每日合格数行数与每日完成入库行数
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_MonthDaliyRcv()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_MonthDaliyRcv();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询配发料百分比
|
|
/// </summary>
|
|
/// <param name="XX"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_MonthLLPer()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_MonthLLPer();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询一期库存状态
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_WareStatusOne()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_WareStatusOne();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询二期库存状态
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_WareStatusTwo()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_WareStatusTwo();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询三期库存状态
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_WareStatusThree()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_WareStatusThree();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询物料配料进度
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_ApplyStatus()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_ApplyStatus();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询库存物料周转天数
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_ItemAge()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_ItemAge();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_ItemAgeNew()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_ItemAgeNew();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询193/199/zmm188处理进度
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_StoreStatus()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_StoreStatus();
|
|
|
|
return Content(data.ToJson());
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return Content(ex.Message);
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 查询库存物料周转天数
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridJson_ItemZzDays()
|
|
{
|
|
try
|
|
{
|
|
var data = App.GetGridJson_ItemZzDays();
|
|
|
|
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 PanelWIP5()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP6()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP7()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP8()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP9()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public virtual ActionResult PanelWIP1021()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP21021()
|
|
{
|
|
return View();
|
|
}
|
|
public virtual ActionResult PanelWIP31021()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|