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
91 lines
2.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
using System.Data;
|
|
|
|
|
|
namespace ICSSoft.Frame.APP
|
|
{
|
|
public class ICSPictureBLL
|
|
{
|
|
/// <summary>
|
|
/// 获取图纸信息
|
|
/// </summary>
|
|
/// <param name="no">工序</param>
|
|
/// <param name="prcvno">工艺路线</param>
|
|
/// <param name="ver">版本</param>
|
|
/// <param name="type">图纸名称</param>
|
|
/// <returns></returns>
|
|
public static string SearchPath(String no, String prcvno, String ver, String type, String partno)
|
|
{
|
|
try
|
|
{
|
|
|
|
return ICSPictureDAL.SearchPath(no, prcvno, ver, type, partno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取图纸信息所有类型
|
|
/// </summary>
|
|
/// <param name="no">工序</param>
|
|
/// <param name="prcvno">工艺路线</param>
|
|
/// <param name="ver">版本</param>
|
|
/// <param name="partno">图号(物料规格)</param>
|
|
/// <param name="typeList">图纸名称List</param>
|
|
/// <returns></returns>
|
|
public static DataTable SearchPathALL(String no, String prcvno, String ver, string partno, List<String> typeList)
|
|
{
|
|
try
|
|
{
|
|
|
|
return ICSPictureDAL.SearchPathALL(no, prcvno, ver, partno, typeList);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 获取图纸信息Item
|
|
/// </summary>
|
|
/// <param name="ItemCode">物料编码</param>
|
|
/// <returns>图纸地址</returns>
|
|
public static string SearchPathItem(String ItemCode, String type)
|
|
{
|
|
try
|
|
{
|
|
return ICSPictureDAL.SearchPathItem(ItemCode, type);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 拆分工艺路线 ,获取工艺路线和版本号
|
|
/// </summary>
|
|
/// <param name="RouteCodeOLD">MES工艺路线</param>
|
|
/// <param name="RouteCode">返回PLM工艺路线</param>
|
|
/// <param name="Version">返回版本号</param>
|
|
/// <returns></returns>
|
|
public static void GetRouteVersion(String RouteCodeOLD, ref string RouteCode, ref string Version)
|
|
{
|
|
try
|
|
{
|
|
ICSPictureDAL.GetRouteVersion(RouteCodeOLD, ref RouteCode, ref Version);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
}
|
|
}
|