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 CraftOrdDesignStdGicBLL { private OpeBase _ob; public CraftOrdDesignStdGicBLL(OpeBase ob) { _ob = ob; } /// /// 查询质量设计加工 /// /// /// public List Query(CraftOrdDesignStdGicEntity designStdGicEntity) { List designStdGicEntityList = EntityHelper.GetData( "com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.query", new object[] { JSONFormat.Format(designStdGicEntity) }, _ob); return designStdGicEntityList; } /// /// 查询质量设计加工 /// /// /// public List QueryByDesignKeyGic(string[] parms) { List designStdGicEntityList = EntityHelper.GetData( "com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.queryByDesignKeyGic", new object[] { parms }, _ob); return designStdGicEntityList; } /// /// 通过DESIGN_KEY查询质量设计加工 /// /// /// public List QueryGicByDesignKey(CraftOrdDesignStdGicEntity designStdGicEntity) { List designStdGicEntityList = EntityHelper.GetData( "com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.queryGicByDesignKey", new object[] { JSONFormat.Format(designStdGicEntity) }, _ob); return designStdGicEntityList; } /// /// 保存 /// public void Save(List craftOrdDesignStdGicEntitys) { List jsons = new List(); foreach (var craftOrdDesignStdGicEntity in craftOrdDesignStdGicEntitys) { jsons.Add(JSONFormat.Format(craftOrdDesignStdGicEntity)); } ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.Save", new object[] { jsons }, _ob); } /// /// 删除 /// public void Delete(List craftOrdDesignStdGicEntitys) { List jsons = new List(); foreach (var craftOrdDesignStdGicEntity in craftOrdDesignStdGicEntitys) { jsons.Add(JSONFormat.Format(craftOrdDesignStdGicEntity)); } ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.Delete", new object[] { jsons }, _ob); } /// /// 获取工艺评审制程 /// /// /// public DataTable getCraftMscPline(string designKey, string processCode) { return ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftOrdDesignStdGicDAL.getCraftMscPline", new object[] { designKey, processCode }, _ob); } } }