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.
82 lines
1.9 KiB
82 lines
1.9 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 ICSEQPMaterialInfoBLL
|
|
{
|
|
public static void Add(FormICSEQPMaterialInfoUIModel equipmentInfo, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
List<FormICSEQPMaterialInfoUIModel> equipmentInfoList = new List<FormICSEQPMaterialInfoUIModel>() { equipmentInfo };
|
|
|
|
|
|
ICSEQPMaterialInfoDAL.AddAndEdit(equipmentInfoList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
#region select
|
|
public static FormICSEQPTSUIModel SearchEQPTSInfoByID(string id, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
List<FormICSEQPTSUIModel> returnlist = ICSEQPTSDAL.SearchEQPTSInfoByID(id, dsconn);
|
|
return returnlist[0];
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region delete
|
|
public static void delete(List<String> guidList,string mcode)
|
|
{
|
|
ICSEQPMaterialInfoDAL.delete(guidList,mcode);
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region 班次次序是否存在
|
|
//public static bool IsIncludingInShiftSeq(int shiftsqe, string shifttypeid)
|
|
//{
|
|
// try
|
|
// {
|
|
// return ICSShiftDAL.IsIncludingInShiftSeq(shiftsqe, shifttypeid);
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// throw ex;
|
|
// }
|
|
|
|
//}
|
|
//#endregion
|
|
|
|
|
|
|
|
}
|
|
}
|