CraftFileApplyBLL.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Text;
  7. using Core.Mes.Client.Comm.Format;
  8. using Core.Mes.Client.Comm.Server;
  9. using Core.Mes.Client.Comm.Tool;
  10. using CoreFS.CA06;
  11. namespace Core.StlMes.Client.SaleOrder.BLL
  12. {
  13. public class CraftFileApplyBLL
  14. {
  15. private OpeBase _ob;
  16. public CraftFileApplyBLL(OpeBase ob)
  17. {
  18. _ob = ob;
  19. }
  20. public List<CraftFileApplyEntity> Query(CraftFileApplyEntity craftFileApply)
  21. {
  22. return EntityHelper.GetData<CraftFileApplyEntity>(
  23. "com.steering.pss.sale.order.DAL.CraftFileApplyDAL.query", new object[] { JSONFormat.Format(craftFileApply) }, _ob);
  24. }
  25. public void Save(List<CraftFileApplyEntity> craftFileApplyList)
  26. {
  27. ArrayList list = new ArrayList();
  28. foreach (CraftFileApplyEntity craftFileApply in craftFileApplyList)
  29. {
  30. list.Add(JSONFormat.Format(craftFileApply));
  31. }
  32. ServerHelper.SetData("com.steering.pss.sale.order.DAL.CraftFileApplyDAL.save",
  33. new object[] { list }, _ob);
  34. }
  35. public DataTable GetSampeCnt(CraftFileApplyEntity craftFileApply)
  36. {
  37. DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftFileApplyDAL.getSampeCnt",
  38. new object[] { JSONFormat.Format(craftFileApply) }, _ob);
  39. return dt;
  40. }
  41. public DataTable GetMatchCraftFile(string ordLnPk)
  42. {
  43. DataTable dt = ServerHelper.GetData("com.steering.pss.sale.order.DAL.CraftFileApplyDAL.getMatchCraftFile",
  44. new object[] { ordLnPk }, _ob);
  45. return dt;
  46. }
  47. }
  48. }