| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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.Generic;
- using System.Data;
- namespace Core.StlMes.Client.Qcm.BLL
- {
- class ComBaseStdRTestBLL
- {
- private OpeBase _ob;
- public ComBaseStdRTestBLL(OpeBase ob)
- {
- _ob = ob;
- }
- public List<ComBaseStdRTestEntity> Query(string phyNameMin, string valiflag)
- {
- return EntityHelper.GetData<ComBaseStdRTestEntity>("com.steering.pss.qcm.DAL.ComBaseStdRTestDAL.Query",
- new object[] { phyNameMin, valiflag }, _ob);
- }
- public void Save(List<ComBaseStdRTestEntity> stdRTestEntitys)
- {
- List<string> parms = new List<string>();
- foreach (ComBaseStdRTestEntity stdRTestEntity in stdRTestEntitys)
- {
- parms.Add(JSONFormat.Format(stdRTestEntity));
- }
- ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseStdRTestDAL.Save",
- new object[] { parms }, _ob);
- }
- public void UpdateValidflag(List<ComBaseStdRTestEntity> stdRTestEntitys, string validflag)
- {
- List<string> parms = new List<string>();
- foreach (ComBaseStdRTestEntity stdRTestEntity in stdRTestEntitys)
- {
- parms.Add(JSONFormat.Format(stdRTestEntity));
- }
- ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBaseStdRTestDAL.UpdateValidflag",
- new object[] { parms, validflag }, _ob);
- }
- //获取试验标准基础数据
- public DataTable GetComBaseStdS()
- {
- return ServerHelper.GetData("com.steering.pss.qcm.DAL.ComBaseStdRTestDAL.GetComBaseStdS",
- new object[] { }, _ob);
- }
- //获取取样码基础数据
- public DataTable GetComBasePhyC()
- {
- return ServerHelper.GetData("com.steering.pss.qcm.DAL.ComBaseStdRTestDAL.GetComBasePhyC",
- new object[] { }, _ob);
- }
- public int GetRepateCnt(string stdCodeTest, string phyCodeMin, string pk)
- {
- return int.Parse(ServerHelper.GetData("com.steering.pss.qcm.DAL.ComBaseStdRTestDAL.GetRepateCnt",
- new object[] { stdCodeTest, phyCodeMin, pk }, _ob).Rows[0][0].ToString());
- }
- }
- }
|