You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// 获取全部宝来升级路由列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static List<T_QD_VirtualMaterial> GetVirtualMateialByWorkCellCode(string workCellCode)
|
|
{
|
|
List<T_QD_VirtualMaterial> returnVal = new List<T_QD_VirtualMaterial>();
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|