|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Web;
|
|
|
using Estsh.Web.Dal;
|
|
|
using System.Collections;
|
|
|
using Estsh.Web.Util;
|
|
|
using System.Data;
|
|
|
/***************************************************************************************************
|
|
|
*
|
|
|
* 作者:龚泽宇
|
|
|
* 创建时间:2015.12.21
|
|
|
* 描述:发运管理
|
|
|
* 修改日志:龚泽宇
|
|
|
*
|
|
|
* *************************************************************************************************/
|
|
|
namespace Estsh.Core.Services
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 发运管理
|
|
|
/// </summary>
|
|
|
public class YYBDPrintService
|
|
|
{
|
|
|
private YYBDPrintDal dal = new YYBDPrintDal(RemotingProxyProvider._remotingProxy);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 根据分页条件获取用户列表
|
|
|
/// </summary>
|
|
|
/// <param name="account"></param>
|
|
|
/// <param name="pager"></param>
|
|
|
/// <param name="direction"></param>
|
|
|
/// <param name="sort"></param>
|
|
|
/// <returns></returns>
|
|
|
public Hashtable AA(Pager pager, String direction, String sort, string order_no, string txtStartTime, string txtEndTime, string sort_type, string txtEndSeq)
|
|
|
{
|
|
|
Hashtable result = new Hashtable();
|
|
|
String strWhere = " 1=1 ";
|
|
|
if (sort_type != null && !sort_type.Trim().Equals(""))
|
|
|
{
|
|
|
strWhere += " and a.sort_type like '%" + sort_type.Trim() + "%'";
|
|
|
}
|
|
|
if (order_no != null && !order_no.Trim().Equals(""))
|
|
|
{
|
|
|
strWhere += " and a.order_no like '%" + order_no.Trim() + "%'";
|
|
|
}
|
|
|
|
|
|
result = dal.AA(pager.pageSize, pager.pageNo, strWhere, order_no, txtStartTime, txtEndTime, sort_type, txtEndSeq);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取客户产线列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public ArrayList Getsorttype()
|
|
|
{
|
|
|
Hashtable result = new Hashtable();
|
|
|
DataTable dt = dal.Getsorttype();
|
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dt);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
//public string Getsorttype()
|
|
|
//{
|
|
|
// Hashtable result = new Hashtable();
|
|
|
// string str = dal.Getsorttype();
|
|
|
// return str;
|
|
|
|
|
|
//}
|
|
|
|
|
|
public int GetPdlineID(string pdline_name)
|
|
|
{
|
|
|
return dal.GetPdlineID(pdline_name);
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 已打印
|
|
|
/// </summary>
|
|
|
/// <param name="ids"></param>
|
|
|
/// <returns></returns>
|
|
|
public int stateprint(String ids)
|
|
|
{
|
|
|
String[] idArray = ids.Split(',');
|
|
|
int count = 0;
|
|
|
foreach (String id in idArray)
|
|
|
{
|
|
|
if (!"".Equals(id))
|
|
|
{
|
|
|
count += this.dal.stateprint(id);
|
|
|
}
|
|
|
}
|
|
|
return count;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 未打印
|
|
|
/// </summary>
|
|
|
/// <param name="ids"></param>
|
|
|
/// <returns></returns>
|
|
|
public int stateChanges1(String ids)
|
|
|
{
|
|
|
String[] idArray = ids.Split(',');
|
|
|
int count = 0;
|
|
|
foreach (String id in idArray)
|
|
|
{
|
|
|
if (!"".Equals(id))
|
|
|
{
|
|
|
count += this.dal.stateChanges1(id);
|
|
|
}
|
|
|
}
|
|
|
return count;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|