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.
127 lines
3.1 KiB
127 lines
3.1 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.Data.BLL
|
|
{
|
|
public class ICSEQPCHECKLISTBLL
|
|
{
|
|
public static void Add(FormICSEQPCHECKLISTUIModel checklistInfo, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
List<FormICSEQPCHECKLISTUIModel> equipmentInfoList = new List<FormICSEQPCHECKLISTUIModel>() { checklistInfo };
|
|
|
|
|
|
ICSEQPCHECKLISTDAL.AddAndEdit(equipmentInfoList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
#region select
|
|
public static FormICSEQPCHECKLISTUIModel SearchCheckListInfoByEQPIDandCKGROUP(string id,string ckgroup, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
List<FormICSEQPCHECKLISTUIModel> returnlist = ICSEQPCHECKLISTDAL.SearchCheckListInfoByEQPIDandCKGROUP(id,ckgroup, dsconn);
|
|
return returnlist[0];
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region delete
|
|
public static void delete(List<String> guidList)
|
|
{
|
|
ICSEQPCHECKLISTDAL.delete(guidList);
|
|
}
|
|
#endregion
|
|
|
|
|
|
public static DataTable GetShiftCode()
|
|
{
|
|
try
|
|
{
|
|
return ICSShiftDAL.GetShiftCode();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
public static DataTable SelectShiftTypeCode()
|
|
{
|
|
return ICSShiftDAL.SelectShiftTypeCode();
|
|
}
|
|
|
|
public static DataTable SelectShiftTypeId(string str)
|
|
{
|
|
return ICSShiftDAL.SelectShiftTypeId(str);
|
|
}
|
|
|
|
#region 车间代码是否存在
|
|
public static bool IsIncludingShiftCode(string faccode, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSShiftDAL.IsIncludingShiftCode(faccode, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
//#region 班次次序是否存在
|
|
//public static bool IsIncludingInShiftSeq(int shiftsqe, string shifttypeid)
|
|
//{
|
|
// try
|
|
// {
|
|
// return ICSShiftDAL.IsIncludingInShiftSeq(shiftsqe, shifttypeid);
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// throw ex;
|
|
// }
|
|
|
|
//}
|
|
//#endregion
|
|
|
|
#region 判断是否在时段中
|
|
public static bool isIncludingInICSTP(List<string> idList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSShiftDAL.isIncludingInICSTP(idList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|