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.
104 lines
2.8 KiB
C#
104 lines
2.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Estsh.Web.Util;
|
|
using System.Data;
|
|
using Estsh.Web.Dal;
|
|
using System.Collections;
|
|
using System.IO;
|
|
using NPOI.HSSF.UserModel;
|
|
using Com.Estsh.MES.App;
|
|
using System.Text;
|
|
using Aspose.Cells;
|
|
using DbCommon;
|
|
|
|
/***************************************************************************************************
|
|
*
|
|
* 作者:王勇
|
|
*
|
|
* *************************************************************************************************/
|
|
namespace Estsh.Core.Services
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class OrderListService
|
|
{
|
|
private OrderListDal dal = new OrderListDal(RemotingProxyProvider._remotingProxy);
|
|
|
|
|
|
public Hashtable getStockOrderListByPage(Pager pager, String direction,string str)
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
result = dal.getStockOrderListByPage(pager.pageSize, pager.pageNo, str);
|
|
return result;
|
|
}
|
|
|
|
public Hashtable getStockOrderDetailByPage(Pager pager, String direction, string str)
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
result = dal.getStockOrderDetailByPage(pager.pageSize, pager.pageNo, str);
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取工厂
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ArrayList GetFactory()
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
DataTable dt = dal.GetFactory();
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dt);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取供应商
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ArrayList GetVendor()
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
DataTable dt = dal.GetVendor();
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dt);
|
|
}
|
|
|
|
public DataTable updatePrintData(string ebeln)
|
|
{
|
|
DataTable dt = new DataTable();
|
|
dt = this.dal.updatePrintData(ebeln);
|
|
|
|
return dt;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 订单确认
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool dingDanQueRen(string ebeln)
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
bool bool_1 = dal.dingDanQueRen(ebeln);
|
|
return bool_1;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 发运确认
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool shipQueRen(string ebeln)
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
bool bool_1 = dal.shipQueRen(ebeln);
|
|
return bool_1;
|
|
}
|
|
|
|
public bool deleteOrder(String EBELN)
|
|
{
|
|
return dal.deleteOrder(EBELN);
|
|
}
|
|
|
|
}
|
|
} |