using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Estsh.Web.Util;
using System.Collections;
using Estsh.Web.Service;
using Estsh.Web.Models;
/***************************************************************************************************
*
* 作者:贾文涛
* 创建时间:2014.07.17
* 描述:成品发运(JIS)控制类
* 修改日志:
*
* *************************************************************************************************/
namespace Estsh.Core.Web.Controllers
{
///
/// 成品发运(JIS)模块的控制类
///
public class ShippingJISController : Controller
{
private ShippingJISService service = new ShippingJISService();
public ActionResult Index()
{
return View();
}
#region 成品发运(JIS)
///
/// 获得需要发运的数据
///
///
///
///
///
///
///
public ActionResult getShippingData(String endCarNo, String endOrderNo, String endSeq, String chkCarNo, String useNo)
{
Hashtable htReq = new Hashtable();
htReq.Add("endCarNo",endCarNo);
htReq.Add("endOrderNo",endOrderNo);
htReq.Add("endSeq",endSeq);
htReq.Add("chkCarNo",chkCarNo);
htReq.Add("useNo", useNo);
Hashtable result = this.service.getShippingData(htReq);
return Json(result);
}
///
/// 查询车身件订单
///
///
public ActionResult GetJISCSJOrderNOList()
{
Hashtable result = this.service.GetJISCSJOrderNOList();
return Json(result, JsonRequestBehavior.AllowGet);
}
///
/// 查询车身件发运数据
///
///
///
public ActionResult GetShippingCSJ(String csjOrderNo)
{
Hashtable htReq = new Hashtable();
htReq.Add("csjOrderNo", csjOrderNo);
Hashtable result = this.service.GetShippingCSJ(htReq);
return Json(result);
}
///
///
///
///
///
public ActionResult SubmitShippingData()
{
Hashtable htReq = new Hashtable();
htReq.Add("endCarNo", Request.Params["endCarNo"]);
htReq.Add("endOrderNo", Request.Params["endOrderNo"]);
htReq.Add("endSeq", Request.Params["endSeq"]);
htReq.Add("chkCarNo", Request.Params["chkCarNo"]);
htReq.Add("useNo", Request.Params["useNo"]);
htReq.Add("csjOrderNo", Request.Params["csjOrderNo"]);
htReq.Add("plateNumber", Request.Params["plateNumber"]);
htReq.Add("shippingOrder", Request.Params["shippingOrder"]);
htReq.Add("factory", Request.Params["factory"]);
htReq.Add("shippingLocateName", Request.Params["shippingLocateName"]);
htReq.Add("shippingDate", Request.Params["shippingDate"]);
htReq.Add("costomCode", Request.Params["costomCode"]);
htReq.Add("startCarNo", Request.Params["startCarNo"]);
Hashtable result = new Hashtable();
try
{
result = this.service.SubmitShippingData(htReq);
}
catch (Exception e)
{
result.Add("@retCode", "Fail");
result.Add("@retMsg",e.Message);
}
return Json(result);
}
#endregion
}
}