ComBasePhyRSizeBLL.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Core.Mes.Client.Comm.Format;
  2. using Core.Mes.Client.Comm.Server;
  3. using Core.Mes.Client.Comm.Tool;
  4. using Core.StlMes.Client.Qcm.model;
  5. using CoreFS.CA06;
  6. using System.Collections.Generic;
  7. namespace Core.StlMes.Client.Qcm.BLL
  8. {
  9. class ComBasePhyRSizeBLL
  10. {
  11. private OpeBase _ob;
  12. public ComBasePhyRSizeBLL(OpeBase ob)
  13. {
  14. this._ob = ob;
  15. }
  16. public List<ComBasePhyEntity> QueryPhy()
  17. {
  18. return EntityHelper.GetData<ComBasePhyEntity>(
  19. "com.steering.pss.qcm.DAL.ComBasePhyRSizeDAL.queryPhy", null, _ob);
  20. }
  21. public List<ComBasePhyRSizeEntity> QueryPhySize(string phyCode)
  22. {
  23. return EntityHelper.GetData<ComBasePhyRSizeEntity>("com.steering.pss.qcm.DAL.ComBasePhyRSizeDAL.queryPhySize",
  24. new object[] { phyCode }, _ob);
  25. }
  26. public void Save(List<ComBasePhyRSizeEntity> phyRSizeList)
  27. {
  28. List<string> listJSON = new List<string>();
  29. foreach (ComBasePhyRSizeEntity phyRSize in phyRSizeList)
  30. {
  31. listJSON.Add(JSONFormat.Format(phyRSize));
  32. }
  33. ServerHelper.SetData("com.steering.pss.qcm.DAL.ComBasePhyRSizeDAL.save",
  34. new object[] { listJSON }, _ob);
  35. }
  36. }
  37. }