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#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;
}
}
}