using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Collections; using Estsh.Web.Service; using Estsh.Web.Util; /*************************************************************************************************** * * * *************************************************************************************************/ namespace Estsh.Core.Web.Controllers { /// /// 发运管理 /// public class YYPrintDefineController : Controller { private YYPrintService service = new YYPrintService(); // // GET: /ShipManagement/ public ActionResult Index() { return View(); } /// /// 获取客户产线列表 /// /// public ActionResult GetCustPDLineName() { Hashtable result = new Hashtable(); ArrayList list = this.service.GetCustPDLine(); result.Add("list", list); return Json(result, JsonRequestBehavior.AllowGet); } /// /// 强制打印 /// /// /// /// public ActionResult stateprint(String pdline_name) { int delCount = 0; //int pdline_id = this.service.GetPdlineID(Request["pdline_name"].ToString()); try { delCount = this.service.stateprint(pdline_name); } catch (Exception e) { delCount = -1; } Hashtable result = new Hashtable(); result.Add("status", delCount); return Json(result); } public ActionResult stateChanges1(String ids) { int delCount = 0; try { delCount = this.service.stateChanges1(ids); } catch (Exception e) { delCount = -1; } Hashtable result = new Hashtable(); result.Add("status", delCount); return Json(result); } /// /// 根据分页条件获取用户列表 /// /// /// /// /// /// public ActionResult getYYShipManagementListByPage(String account, Pager pager, String direction, String sort, string cbCustPDLine, string txtStartTime, string txtEndTime, string txtStartSeq, string txtEndSeq) { Hashtable result = new Hashtable(); result.Add("pager.pageNo", pager.pageNo); Hashtable dataHt = this.service.getYYShipManagementListByPage(pager, direction, sort, cbCustPDLine, txtStartTime, txtEndTime, txtStartSeq, txtEndSeq); result.Add("rows", dataHt["dataList"]); result.Add("pager.totalRows", dataHt["totalCount"]); result.Add("sort", sort); result.Add("direction", direction); return Json(result); } } }