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.

76 lines
2.3 KiB
C#

2 years ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Estsh.Web.Dal;
using Estsh.Web.Util;
using System.Data;
using System.Text;
using System.Collections;
namespace Estsh.Core.Services
{
public class ProduceQueryService
{
/***************************************************************************************************
*
*
* 2013.04.22
* Service
*
*
*
* *************************************************************************************************/
private ProduceQuery dal = new ProduceQuery(RemotingProxyProvider._remotingProxy);
/// <summary>
/// 汇总信息
/// </summary>
/// <returns></returns>
public ArrayList GetSummary(string _where,ref DataTable dt)
{
dt = dal.GetSummary(_where);
return DataTypeConvert.NewObject.DataTableToArrayList(dt);
}
/// <summary>
/// 查询车型
/// </summary>
/// <returns></returns>
public ArrayList GetModelType()
{
return DataTypeConvert.NewObject.DataTableToArrayList(dal.GetModelType());
}
/// <summary>
/// 查询生产类型
/// </summary>
/// <returns></returns>
public DataTable GetProduceType()
{
return dal.GetProduceType();
}
public ArrayList GetSummaryDtail(string _where, string typeID,ref DataTable dt)
{
dt = dal.GetSummaryDtail(_where, typeID);
return DataTypeConvert.NewObject.DataTableToArrayList(dt);
}
public TreeNode convert(string value,string key, String rootPath)
{
TreeNode node = new TreeNode();
node.nodeChecked = false;
node.chkDisabled = false;
node.icon = rootPath + "/libs/icons/user_group.gif";
node.iconClose = "";
node.iconOpen = "";
node.id = System.Convert.ToString(value);
node.name = key;
node.parentId = System.Convert.ToString(value);
node.oldParentId = System.Convert.ToString(value);
node.open = true;
return node;
}
}
}