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 YYBDPrintDefineController : Controller
{
private YYBDPrintService service = new YYBDPrintService();
//
// GET: /ShipManagement/
public ActionResult Index()
{
return View();
}
///
/// 获取客户产线列表
///
/////
public ActionResult Getsorttype()
{
Hashtable result = new Hashtable();
ArrayList list = this.service.Getsorttype();
result.Add("list", list);
return Json(result, JsonRequestBehavior.AllowGet);
}
//public ActionResult Getsorttype()
//{
// Hashtable result = new Hashtable();
// string str = this.service.Getsorttype();
// result.Add("data", str);
// return Json(result, JsonRequestBehavior.AllowGet);
//}
public ActionResult stateprint(String ids)
{
int delCount = 0;
//int pdline_id = this.service.GetPdlineID(Request["pdline_name"].ToString());
try
{
delCount = this.service.stateprint(ids);
}
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 AA(String account, Pager pager, String direction, String sort, string order_no, string txtStartTime, string txtEndTime, string sort_type, string txtEndSeq)
{
Hashtable result = new Hashtable();
result.Add("pager.pageNo", pager.pageNo);
Hashtable dataHt = this.service.AA(pager, direction, sort, order_no, txtStartTime, txtEndTime, sort_type, txtEndSeq);
result.Add("rows", dataHt["dataList"]);
result.Add("pager.totalRows", dataHt["totalCount"]);
result.Add("sort", sort);
result.Add("direction", direction);
return Json(result);
}
}
}