锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.7 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using ICSSoft.Frame.Data.Entity;
  6. using ICSSoft.Frame.Data.DAL;
  7. using System.Data;
  8. namespace ICSSoft.Frame.APP
  9. {
  10. public class ICSPictureBLL
  11. {
  12. /// <summary>
  13. /// 获取图纸信息
  14. /// </summary>
  15. /// <param name="no">工序</param>
  16. /// <param name="prcvno">工艺路线</param>
  17. /// <param name="ver">版本</param>
  18. /// <param name="type">图纸名称</param>
  19. /// <returns></returns>
  20. public static string SearchPath(String no, String prcvno, String ver, String type, String partno)
  21. {
  22. try
  23. {
  24. return ICSPictureDAL.SearchPath(no, prcvno, ver, type, partno);
  25. }
  26. catch (Exception ex)
  27. {
  28. throw ex;
  29. }
  30. }
  31. /// <summary>
  32. /// 获取图纸信息所有类型
  33. /// </summary>
  34. /// <param name="no">工序</param>
  35. /// <param name="prcvno">工艺路线</param>
  36. /// <param name="ver">版本</param>
  37. /// <param name="partno">图号(物料规格)</param>
  38. /// <param name="typeList">图纸名称List</param>
  39. /// <returns></returns>
  40. public static DataTable SearchPathALL(String no, String prcvno, String ver, string partno, List<String> typeList)
  41. {
  42. try
  43. {
  44. return ICSPictureDAL.SearchPathALL(no, prcvno, ver, partno, typeList);
  45. }
  46. catch (Exception ex)
  47. {
  48. throw ex;
  49. }
  50. }
  51. /// <summary>
  52. /// 获取图纸信息Item
  53. /// </summary>
  54. /// <param name="ItemCode">物料编码</param>
  55. /// <returns>图纸地址</returns>
  56. public static string SearchPathItem(String ItemCode, String type)
  57. {
  58. try
  59. {
  60. return ICSPictureDAL.SearchPathItem(ItemCode, type);
  61. }
  62. catch (Exception ex)
  63. {
  64. throw ex;
  65. }
  66. }
  67. /// <summary>
  68. /// 拆分工艺路线 ,获取工艺路线和版本号
  69. /// </summary>
  70. /// <param name="RouteCodeOLD">MES工艺路线</param>
  71. /// <param name="RouteCode">返回PLM工艺路线</param>
  72. /// <param name="Version">返回版本号</param>
  73. /// <returns></returns>
  74. public static void GetRouteVersion(String RouteCodeOLD, ref string RouteCode, ref string Version)
  75. {
  76. try
  77. {
  78. ICSPictureDAL.GetRouteVersion(RouteCodeOLD, ref RouteCode, ref Version);
  79. }
  80. catch (Exception ex)
  81. {
  82. throw ex;
  83. }
  84. }
  85. }
  86. }