using Core.Mes.Client.Comm.Format; using Core.Mes.Client.Comm.Server; using Core.Mes.Client.Comm.Tool; using Core.StlMes.Client.Qcm.model; using CoreFS.CA06; using System.Collections; using System.Collections.Generic; namespace Core.StlMes.Client.Qcm.BLL { public class ComMscRJgBLL { private OpeBase ob; public ComMscRJgBLL(OpeBase ob) { this.ob = ob; } public List GetMscRJgBySpec(string ordLnPk) { return EntityHelper.GetData("com.steering.pss.qcm.DAL.ComMscRJgDAL.getMscRJgBySpec", new object[] { ordLnPk }, ob); } /// /// 插入到质量设计接箍和冶金关系表 /// /// public void InsertDesignMscRJg(List mscRJgList, string ordLnPk, bool isCraft) { ArrayList list = new ArrayList(); foreach (SlmOrdDesignMscJgEntity mscRJgEntity in mscRJgList) { list.Add(JSONFormat.Format(mscRJgEntity)); } ServerHelper.SetData("com.steering.pss.qcm.DAL.ComMscRJgDAL.insertDesignMscRJg", new object[] { list, ordLnPk, isCraft.ToString() }, ob); } /// /// 通过合同行主键查询设定接箍 /// /// /// public SlmOrdDesignMscJgEntity GetKeyJgByOrdLnPk(string ordLnPk, bool isCraft) { List designMscJgList = EntityHelper.GetData( "com.steering.pss.qcm.DAL.ComMscRJgDAL.getKeyJgByOrdLnPk", new object[] { ordLnPk, isCraft.ToString() }, ob); if (designMscJgList.Count > 0) { return designMscJgList[0]; } else { return null; } } } }