using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Mes.Client.Comm.Format;
using Core.Mes.Client.Comm.Tool;
using CoreFS.CA06;
using Core.Mes.Client.Comm.Server;
using System.Data;
namespace Core.StlMes.Client.SaleOrder.BLL
{
public class CraftOrdDesignStdPicBLL
{
private OpeBase _ob;
public CraftOrdDesignStdPicBLL(OpeBase ob)
{
_ob = ob;
}
///
/// 查询质量设计成分
///
///
///
public List Query(CraftOrdDesignStdPicEntity designStdPicEntity)
{
List designStdPicEntityList = EntityHelper.GetData(
"com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.query", new object[] { JSONFormat.Format(designStdPicEntity) }, _ob);
return designStdPicEntityList;
}
///
/// 查询质量设计成分
///
///
///
public List QueryByDesignKeyPic(string[] parms)
{
List designStdPicEntityList = EntityHelper.GetData(
"com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.queryByDesignKeyPic", new object[] { parms }, _ob);
return designStdPicEntityList;
}
///
/// 通过试样组获取检验大项
///
///
///
public DataRow GetPhyMaxByPhyMin(string phyCodeMin)
{
DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.getPhyMaxByPhyMin",
new object[] { phyCodeMin }, _ob);
if (dt.Rows.Count > 0)
{
return dt.Rows[0];
}
else
{
return null;
}
}
///
/// 通过DESIGN_KEY查询质量设计成分
///
///
///
public List QueryPicByDesignKey(CraftOrdDesignStdPicEntity designStdPicEntity)
{
List designStdPicEntityList = EntityHelper.GetData(
"com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.queryPicByDesignKey", new object[] { JSONFormat.Format(designStdPicEntity) }, _ob);
return designStdPicEntityList;
}
///
/// 保存
///
public void Save(List craftOrdDesignStdPicEntitys)
{
List jsons = new List();
foreach (var craftOrdDesignStdPicEntity in craftOrdDesignStdPicEntitys)
{
jsons.Add(JSONFormat.Format(craftOrdDesignStdPicEntity));
}
ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.Save", new object[] { jsons }, _ob);
}
///
/// 删除
///
public void Delete(List craftOrdDesignStdPicEntitys)
{
List jsons = new List();
foreach (var craftOrdDesignStdPicEntity in craftOrdDesignStdPicEntitys)
{
jsons.Add(JSONFormat.Format(craftOrdDesignStdPicEntity));
}
ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.Delete", new object[] { jsons }, _ob);
}
///
/// 获取工艺评审制程
///
///
///
public DataTable getCraftMscPline(string designKey, string processCode)
{
return ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.getCraftMscPline",
new object[] { designKey, processCode }, _ob);
}
///
/// 获取评审记录试样组的分组
///
///
///
///
///
///
public DataTable getGroupPhyMin(string designKey, string pic, string mscPline, string processCode)
{
return ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.getGroupPhyMin",
new object[] { designKey, pic, mscPline, processCode }, _ob);
}
///
/// 获取理化
///
///
public DataTable getPhyNameMin()
{
DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdPicDAL.getPhyNameMin",
new object[]{ }, _ob);
return dt;
}
}
}