| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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<ComMscRJgEntity> GetMscRJgBySpec(string ordLnPk)
- {
- return EntityHelper.GetData<ComMscRJgEntity>("com.steering.pss.qcm.DAL.ComMscRJgDAL.getMscRJgBySpec",
- new object[] { ordLnPk }, ob);
- }
- /// <summary>
- /// 插入到质量设计接箍和冶金关系表
- /// </summary>
- /// <param name="mscRJgList"></param>
- public void InsertDesignMscRJg(List<SlmOrdDesignMscJgEntity> 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);
- }
- /// <summary>
- /// 通过合同行主键查询设定接箍
- /// </summary>
- /// <param name="ordLnPk"></param>
- /// <returns></returns>
- public SlmOrdDesignMscJgEntity GetKeyJgByOrdLnPk(string ordLnPk, bool isCraft)
- {
- List<SlmOrdDesignMscJgEntity> designMscJgList = EntityHelper.GetData<SlmOrdDesignMscJgEntity>(
- "com.steering.pss.qcm.DAL.ComMscRJgDAL.getKeyJgByOrdLnPk",
- new object[] { ordLnPk, isCraft.ToString() }, ob);
- if (designMscJgList.Count > 0)
- {
- return designMscJgList[0];
- }
- else
- {
- return null;
- }
- }
- }
- }
|