一厂MES,含注塑,喷涂,冲孔
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.
 
 
 
 
 

52 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MESClassLibrary
{
public class BussinessHelper
{
/// <summary>
/// 注塑打印机模板名称
/// </summary>
/// <param name="stationNo">工位编号</param>
/// <param name="isSupply">是否直供件0:非直供 1:直供</param>
/// <returns></returns>
public static string PrintMoudleName(string stationNo, string isSupply = "0")
{
if ("IM05,IM08,IM10".Contains(stationNo)) //二维小条码
{
return "单个条码2.grf";
}
else if ("IM06,IM07,IM09,IM11,IM12,".Contains(stationNo)) //一维条码
{
return "单个条码.grf";
}
else if ("IM01,IM02,IM03,IM04,IM15,IM18,IM20".Contains(stationNo)) //小米大条码
{
return "Sill.grf";
}
else if ("IM13,IM14".Contains(stationNo)) //直供条码
{
//return "单个条码1.grf";
if (isSupply == "0") //13,14机台,直供件打二维码 非直供件打一维码
{
return "单个条码.grf";
}
else
{
return "单个条码2.grf";
}
}
else
{
return "单个条码2.grf";
}
}
}
}