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.
160 lines
4.5 KiB
160 lines
4.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using System.Data;
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class ICSROUTEBLL
|
|
{
|
|
#region 增加和修改List
|
|
public static void AddList(List<ICSROUTE> InfoList, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSROUTEDAL.AddList(InfoList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static string AddList(List<ICSROUTE> RouteLists, List<ICSROUTE2OP> OPLists, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSROUTEDAL.AddList(RouteLists, OPLists, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 增加和编辑
|
|
public static void AddandEdit(ICSROUTE routeLot, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSROUTEDAL.AddandEdit(routeLot, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 根据途程id查询途程信息
|
|
public static ICSROUTE select(String guid, String Appconstr)
|
|
{
|
|
return ICSROUTEDAL.select(guid, Appconstr);
|
|
}
|
|
|
|
public static ICSROUTE search(string ROUTECODE, String Appconstr)
|
|
{
|
|
return ICSROUTEDAL.search(ROUTECODE, Appconstr);
|
|
}
|
|
|
|
public static ICSROUTE2OP select(string ROUTECODE, string OPCODE, string Appconstr)
|
|
{
|
|
return ICSROUTEDAL.select(ROUTECODE, OPCODE, Appconstr);
|
|
}
|
|
|
|
public static ICSROUTE2OP search(string ROUTECODE, int OPSEQ, string Appconstr)
|
|
{
|
|
return ICSROUTEDAL.search(ROUTECODE, OPSEQ, Appconstr);
|
|
}
|
|
#endregion
|
|
|
|
#region 删除
|
|
public static void delete(List<String> guidList, List<string> codeList)
|
|
{
|
|
ICSROUTEDAL.delete(guidList, codeList);
|
|
}
|
|
#endregion
|
|
|
|
#region 判断是途程否在途程和工序的关系维护中
|
|
public static bool isIncludingInICSROUTE2OP(List<string> idList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSROUTEDAL.isIncludingInICSROUTE2OP(idList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<ICSROUTE2OP> IncludingInICSROUTE2OP(List<string> idList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSROUTEDAL.IncludingInICSROUTE2OP(idList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 判断产品和途程的关系维护中是否已使用该途程
|
|
public static bool isIncludingInICSITEM2ROUTE(List<string> idList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSROUTEDAL.isIncludingInICSITEM2ROUTE(idList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
public static List<ICSITEM2ROUTE> IncludingInICSITEM2ROUTE(List<string> idList, string dsconn)
|
|
{
|
|
return ICSROUTEDAL.IncludingInICSITEM2ROUTE(idList, dsconn);
|
|
}
|
|
#endregion
|
|
|
|
#region 判断产品、途程和工序的关系维护中是否已使用该途程
|
|
public static bool isIncludingInICSITEMROUTE2OP(List<string> idList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSROUTEDAL.isIncludingInICSITEMROUTE2OP(idList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<ICSITEMROUTE2OP> IncludingInICSITEMROUTE2OP(List<string> idList, string dsconn)
|
|
{
|
|
return ICSROUTEDAL.IncludingInICSITEMROUTE2OP(idList, dsconn);
|
|
}
|
|
#endregion
|
|
|
|
#region 获取工序信息
|
|
public static DataTable GetOPCODE(string OPCODE, string WorkPointCode, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
DataTable dt = ICSROUTEDAL.GetOPCODE(OPCODE, WorkPointCode, dsconn);
|
|
return dt;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|