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.
109 lines
3.1 KiB
C#
109 lines
3.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Estsh.Web.Dal;
|
|
using Estsh.Web.Util;
|
|
using System.Collections;
|
|
using System.Data;
|
|
|
|
|
|
namespace Estsh.Core.Services
|
|
{
|
|
public class XTEDIReportDefineService
|
|
{
|
|
XTEDIReportDefineDal dal = new XTEDIReportDefineDal(RemotingProxyProvider._remotingProxy);
|
|
|
|
|
|
/// <summary>
|
|
/// 获取配置名称
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public ArrayList GetPdlineName()
|
|
{
|
|
return dal.GetPdlineName();
|
|
}
|
|
public ArrayList GetTerminalName()
|
|
{
|
|
return dal.GetTerminalName();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据分页条件获取分页菜单数据
|
|
/// </summary>
|
|
/// <param name="PartMasterName"></param>
|
|
/// <param name="pager"></param>
|
|
/// <param name="direction"></param>
|
|
/// <param name="sort"></param>
|
|
/// <returns></returns>
|
|
public Hashtable getEDIRelationshipListByPage(String txtStartTime, Pager pager, String direction, String sort)
|
|
{
|
|
Hashtable result = new Hashtable();
|
|
//String strWhere = " 1=1 ";
|
|
|
|
result = dal.getEDIRelationshipListByPage(pager.pageSize, pager.pageNo, txtStartTime);
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 保存菜单数据
|
|
/// </summary>
|
|
/// <param name="htParams"></param>
|
|
/// <returns></returns>
|
|
public int saveModelType(Hashtable htParams)
|
|
{
|
|
return dal.saveModelType(htParams);
|
|
}
|
|
/// <summary>
|
|
/// 更新菜单数据
|
|
/// </summary>
|
|
/// <param name="htParams"></param>
|
|
/// <returns></returns>
|
|
public int updateModelType(Hashtable htParams)
|
|
{
|
|
return dal.updateModelType(htParams);
|
|
}
|
|
/// <summary>
|
|
/// 删除菜单
|
|
/// </summary>
|
|
/// <param name="ids"></param>
|
|
/// <returns></returns>
|
|
public int deleteModelType(String ids)
|
|
{
|
|
String[] idArray = ids.Split(',');
|
|
int count = 0;
|
|
foreach (String id in idArray)
|
|
{
|
|
if (!"".Equals(id))
|
|
{
|
|
count += this.dal.deleteModelType(id);
|
|
}
|
|
}
|
|
return count;
|
|
}
|
|
|
|
public int GetModelID(string model_name)
|
|
{
|
|
return dal.GetModelID(model_name);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 根据分页条件获取分页菜单数据(导出时使用)
|
|
/// </summary>
|
|
/// <param name="ModelPartName"></param>
|
|
/// <param name="pager"></param>
|
|
/// <param name="direction"></param>
|
|
/// <param name="sort"></param>
|
|
/// <returns></returns>
|
|
public DataTable getShippingExport(String txtStartTime, Pager pager, String direction, String sort)
|
|
{
|
|
DataTable result = null;
|
|
result = dal.getShippingExport(pager.pageSize, pager.pageNo, txtStartTime);
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
}
|