using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Core.Mes.Client.Comm.Format; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Tool; using CoreFS.CA06; namespace Core.StlMes.Client.SaleOrder.BLL { public class CraftFileApplyBLL { private OpeBase _ob; public CraftFileApplyBLL(OpeBase ob) { _ob = ob; } public List Query(CraftFileApplyEntity craftFileApply) { return EntityHelper.GetData( "com.steering.pss.sale.order.DAL.CraftFileApplyDAL.query", new object[] { JSONFormat.Format(craftFileApply) }, _ob); } public void Save(List craftFileApplyList) { ArrayList list = new ArrayList(); foreach (CraftFileApplyEntity craftFileApply in craftFileApplyList) { list.Add(JSONFormat.Format(craftFileApply)); } ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftFileApplyDAL.save", new object[] { list }, _ob); } public DataTable GetSampeCnt(CraftFileApplyEntity craftFileApply) { DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftFileApplyDAL.getSampeCnt", new object[] { JSONFormat.Format(craftFileApply) }, _ob); return dt; } public DataTable GetMatchCraftFile(string ordLnPk) { DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftFileApplyDAL.getMatchCraftFile", new object[] { ordLnPk }, _ob); return dt; } } }