锐腾搅拌上料功能
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.

150 lines
4.0 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSSoft.Frame.Data.Entity;
using ICSSoft.Frame.Data.DAL;
using ICSSoft.Base.Config.AppConfig;
using System.Data;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSMO2UserBLL
{
#region 增加修改
public static void Add(List<FormICSMO2UserUIModel> MO2UserInfoList, string dsconn)
{
try
{
if (string.IsNullOrWhiteSpace(dsconn))
{
throw new Exception("请输入......");
}
ICSMO2UserDAL.Add(MO2UserInfoList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void AddOrEdit(List<FormICSMO2UserUIModel> list, List<ICSMO2UserDetail> list_detail, string dsconn)
{
try
{
if (string.IsNullOrWhiteSpace(dsconn))
{
throw new Exception("请输入......");
}
ICSMO2UserDAL.AddAndEdit(list, list_detail, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void AddOrEdit(FormICSMO2UserUIModel info, string dsconn)
{
try
{
if (string.IsNullOrWhiteSpace(dsconn))
{
throw new Exception("请输入......");
}
ICSMO2UserDAL.AddAndEdit(info, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 删除
public static void deleteInfo(List<string> codeList, string dsconn)
{
try
{
ICSMO2UserDAL.Delete(codeList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 取消下发
public static void cancelSend(List<string> codeList, string dsconn)
{
try
{
ICSMO2UserDAL.cancelSend(codeList, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
public static void cancelSend(List<string> lotno, List<string> opcode, string dsconn)
{
try
{
ICSMO2UserDAL.cancelSend(lotno, opcode, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void CancelSended(List<string> list, string StrCon)
{
ICSMO2UserDAL.CancelSended(list, StrCon);
}
public static void CancelSendedWW(List<string> list, string StrCon)
{
ICSMO2UserDAL.CancelSendedWW(list, StrCon);
}
public static DataTable SelectMO2USER(string MOCODE, string MOSEQ, string StrCon, string wp)
{
return ICSMO2UserDAL.SelectMO2USER(MOCODE, MOSEQ, StrCon, wp);
}
public static void Delete(List<string> listID, string StrCon)
{
ICSMO2UserDAL.Delete(listID, StrCon);
}
public static void Import(List<ICSMO2User> mo2userList, string appConnectString)
{
ICSMO2UserDAL.Import(mo2userList, appConnectString);
}
public static DataTable ExportTemplate(string appConnectString, string workpoint, bool onlyNotSend, string mocode)
{
return ICSMO2UserDAL.ExportTemplate(appConnectString, workpoint, onlyNotSend, mocode);
}
public static void SendAhwit(string LOTNO, string ROUTECODE, int OPSEQ, string OPCODE, string WorkPoint, DateTime timeCreated, string appConnectString)
{
ICSMO2UserDAL.SendAhwit(LOTNO, ROUTECODE, OPSEQ, OPCODE, WorkPoint, timeCreated, appConnectString);
}
}
}