|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Web;
|
|
|
using Estsh.Web.Dal;
|
|
|
using System.Data;
|
|
|
using System.Collections;
|
|
|
using Estsh.Web.Util;
|
|
|
|
|
|
namespace Estsh.Core.Services
|
|
|
{
|
|
|
/***************************************************************************************************
|
|
|
*
|
|
|
* 作者:张茂忠
|
|
|
* 创建时间:2013.04.18
|
|
|
* 描述:照片查询模块Service层
|
|
|
* 修改日志:
|
|
|
*
|
|
|
*
|
|
|
* *************************************************************************************************/
|
|
|
public class ViewPhotosDefineService
|
|
|
{
|
|
|
private ViewPhotosDefine dal = new ViewPhotosDefine(RemotingProxyProvider._remotingProxy);
|
|
|
/// <summary>
|
|
|
/// 根据分页条件获取分页菜单数据
|
|
|
/// </summary>
|
|
|
/// <param name="menuName">查询条件</param>
|
|
|
/// <param name="pager"></param>
|
|
|
/// <param name="direction">排序方式</param>
|
|
|
/// <param name="sort">排序字段</param>
|
|
|
/// <returns></returns>
|
|
|
public Hashtable getListByPage(String strWhere, Pager pager, String direction, String sort)
|
|
|
{
|
|
|
Hashtable result = new Hashtable();
|
|
|
result = dal.getListByPage(pager.pageSize, pager.pageNo, strWhere, sort + " " + direction);
|
|
|
return result;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 获取车型名称
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public ArrayList GetModelType()
|
|
|
{
|
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dal.GetModelType());
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 获取配置名称
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public ArrayList GetModel(string where)
|
|
|
{
|
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dal.GetModel(where));
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 获取工位名称
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public ArrayList Getview_board(string viewboar_id)
|
|
|
{
|
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dal.Getview_board(viewboar_id));
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 查询一条信息
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public DataTable GetRow(string ruid)
|
|
|
{
|
|
|
DataTable dt = dal.GetRow(ruid);
|
|
|
return dt;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 获取所有产线名称
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public ArrayList GetPDLineName()
|
|
|
{
|
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dal.GetPDLineName());
|
|
|
}
|
|
|
}
|
|
|
} |