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.
269 lines
6.6 KiB
269 lines
6.6 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 ICSHeatTreatmentBLL
|
|
{
|
|
#region AddandEdit
|
|
public static void AddList(List<ICSOpFile> equipmentInfoList,string Transno, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
|
|
ICSHeatTreatmentDAL.AddAndEditList(equipmentInfoList, Transno,dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region AddSample
|
|
public static void AddSample(List<ICSOpFile> equipmentInfoList, string ID, string Transno,int flag, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
|
|
ICSHeatTreatmentDAL.AddSample(equipmentInfoList, ID,Transno,flag, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region select
|
|
public static ICSToCheck select(String guid, String Appconstr)
|
|
{
|
|
return ICSHeatTreatmentDAL.select(guid, Appconstr);
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region FindAll
|
|
public static DataTable FindAll(string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.FindAll(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region delete
|
|
public static void delete(string ItemCode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.delete(ItemCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region AddPDF
|
|
public static void AddPDF(string id,string transno,string filetype,string fname, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.AddPDF(id,transno,filetype, fname, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void AddINPDF(string INCode, string tFileName, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.AddINPDF(INCode, tFileName, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region DeletePDF
|
|
public static void DeletePDF(string TransNO, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.DeletePDF(TransNO, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void DeletePDFAll(string TransNO, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.DeletePDFAll(TransNO, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void DeletePDF1(string id, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.DeletePDF1(id, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void DeleteINPDF(string id, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSHeatTreatmentDAL.DeleteINPDF(id, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
public static DataTable Check(string BarCode, string ToCheckNo, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.Check(BarCode, ToCheckNo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable CheckNo(string BarCode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.CheckNo(BarCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#region delete
|
|
|
|
public static void delete(List<string> guidList,string Appconstr)
|
|
{
|
|
ICSHeatTreatmentDAL.delete(guidList, Appconstr);
|
|
}
|
|
#endregion
|
|
|
|
public static ICSOpFileDetail GetModel(string TransNO, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.GetModel(TransNO, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable GetModeldt(string TransNO, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.GetModeldt(TransNO, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSOpFileDetail GetModel1(string id, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.GetModel1(id, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSINFile GetINModel(string id, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSHeatTreatmentDAL.GetINModel(id, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#region AddandEdit
|
|
public static void AddINList(List<ICSINFile> datas, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
ICSHeatTreatmentDAL.AddINList(datas, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region delete
|
|
public static void deleteIN(List<String> guidList)
|
|
{
|
|
ICSHeatTreatmentDAL.deleteIN(guidList);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|