using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//Ref:
using System.Data;
using QMAPP.BoraUpgrade.DAL;
using QMAPP.BoraUpgrade.Entity;
namespace QMAPP.BoraUpgrade.BLL
{
public class VirtualMaterialBLL
{
///
/// 获取全部宝来升级路由列表
///
///
public static List GetVirtualMateialByWorkCellCode(string workCellCode)
{
List returnVal = new List();
DataTable dataTable = VirtualMaterialDAL.GetVirtualMaterialByWorkCellCode(workCellCode);
if (dataTable.Rows.Count != 0)
{
foreach (DataRow currRow in dataTable.Rows)
{
T_QD_VirtualMaterial newVirtualMaterial = new T_QD_VirtualMaterial();
newVirtualMaterial.PID = int.Parse( currRow["PID"].ToString() );
newVirtualMaterial.WorkCellCode = currRow["WorkCellCode"].ToString();
newVirtualMaterial.MaterialCode = currRow["MaterialCode"].ToString();
newVirtualMaterial.MaterialType = currRow["MaterialType"].ToString();
returnVal.Add(newVirtualMaterial);
}
}
return returnVal;
}
}
}