天津投入产出系统后端
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.
 
 
 
 
 
 

43 lines
1.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//Ref:
using System.Data;
using QMAPP.BoraUpgrade.Common;
using QMAPP.BoraUpgrade.Entity;
namespace QMAPP.BoraUpgrade.DAL
{
public class VirtualMaterialDAL
{
#region 根据工单ID提取物料列表
/// <summary>
/// 根据工单ID提取物料列表
/// </summary>
/// <returns></returns>
public static DataTable GetVirtualMaterialByWorkCellCode(string workCellCode)
{
DataTable returnVal = new DataTable();
string sqlScript =
@"
Select * From T_QD_VirtualMaterial Where WorkCellCode = '{0}'
";
DataSet dataSet = SqlHelper.ExecuteDataset(
Config.maindbConnectionString, CommandType.Text, string.Format(sqlScript, workCellCode));
if (dataSet.Tables.Count > 0)
{
returnVal = dataSet.Tables[0];
}
return returnVal;
}
#endregion
}
}