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 Newtonsoft.Json;
using Core.Mes.Client.Comm.Server;
using System.Data;
namespace Core.StlMes.Client.SaleOrder.BLL
{
public class CraftOrdDesignStdCicBLL
{
private OpeBase _ob;
public CraftOrdDesignStdCicBLL(OpeBase ob)
{
_ob = ob;
}
///
/// 查询质量设计成分
///
///
///
public List Query(CraftOrdDesignStdCicEntity designStdCicEntity)
{
List designStdCicEntityList = EntityHelper.GetData(
"com.steering.pss.sale.order.DAL.CraftOrdDesignStdCicDAL.query", new object[] { JSONFormat.Format(designStdCicEntity) }, _ob);
return designStdCicEntityList;
}
///
/// 查询质量设计成分
///
///
///
public List QueryByDesignKeyCic(string[] parms)
{
List designStdCicEntityList = EntityHelper.GetData(
"com.steering.pss.sale.order.DAL.CraftOrdDesignStdCicDAL.queryByDesignKeyCic", new object[] { parms }, _ob);
return designStdCicEntityList;
}
///
/// 通过DESIGN_KEY查询质量设计成分
///
///
///
public List QueryCicByDesignKey(CraftOrdDesignStdCicEntity designStdCicEntity)
{
List designStdCicEntityList = EntityHelper.GetData(
"com.steering.pss.sale.order.DAL.CraftOrdDesignStdCicDAL.queryCicByDesignKey", new object[] { JSONFormat.Format(designStdCicEntity) }, _ob);
return designStdCicEntityList;
}
///
/// 保存
///
public void Save(List craftOrdDesignStdCicEntitys)
{
List jsons = new List();
foreach (var craftOrdDesignStdCicEntity in craftOrdDesignStdCicEntitys)
{
jsons.Add(JSONFormat.Format(craftOrdDesignStdCicEntity));
}
ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdCicDAL.Save", new object[] { jsons }, _ob);
}
///
/// 删除
///
public void Delete(List craftOrdDesignStdCicEntitys)
{
List jsons = new List();
foreach (var craftOrdDesignStdCicEntity in craftOrdDesignStdCicEntitys)
{
jsons.Add(JSONFormat.Format(craftOrdDesignStdCicEntity));
}
ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdCicDAL.Delete", new object[] { jsons }, _ob);
}
///
/// 获取工艺评审制程
///
///
///
public DataTable getCraftMscPline(string designKey, string processCode)
{
return ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdCicDAL.getCraftMscPline",
new object[] { designKey, processCode }, _ob);
}
}
}