You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.3 KiB
C#
107 lines
3.3 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 发运管理
|
|
/// </summary>
|
|
public class YYBDPrintDefineController : Controller
|
|
{
|
|
|
|
private YYBDPrintService service = new YYBDPrintService();
|
|
|
|
//
|
|
// GET: /ShipManagement/
|
|
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
/// <summary>
|
|
/// 获取客户产线列表
|
|
/// </summary>
|
|
///// <returns></returns>
|
|
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);
|
|
}
|
|
/// <summary>
|
|
/// 根据分页条件获取用户列表
|
|
/// </summary>
|
|
/// <param name="account"></param>
|
|
/// <param name="pager"></param>
|
|
/// <param name="direction"></param>
|
|
/// <param name="sort"></param>
|
|
/// <returns></returns>
|
|
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);
|
|
}
|
|
}
|
|
|
|
|
|
}
|