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.
101 lines
2.5 KiB
101 lines
2.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
//using ZHCSoft.Base.Config.AppConfig;
|
|
using System.Data;
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class ICSDWGBLL
|
|
{
|
|
#region 删除
|
|
public static void deleteInfo(List<ICSDWG> op2userList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSDWGDAL.deleteInfo(op2userList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
|
|
}
|
|
#endregion
|
|
#region 新增和修改
|
|
public static void Add(int flag, ICSDWG Info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
List<ICSDWG> InfoList = new List<ICSDWG>() { Info };
|
|
ICSDWGDAL.Add(flag, InfoList, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
#region 新增和修改List
|
|
//public static string AddList(List<ICSDWG> InfoList, string dsconn)
|
|
//{
|
|
// try
|
|
// {
|
|
// if (string.IsNullOrWhiteSpace(dsconn))
|
|
// {
|
|
// throw new Exception("数据库连接字符串错误");
|
|
// }
|
|
// return ICSDWGDAL.AddList(InfoList, dsconn);
|
|
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// throw ex;
|
|
// }
|
|
//}
|
|
#endregion
|
|
|
|
#region 查询工序人员信息
|
|
//public static ICSDWG SearchInfoByCode(string opcode, string usercode, string dsconn)
|
|
//{
|
|
// try
|
|
// {
|
|
// List<ICSDWG> returnlist = ICSDWGDAL.SearchInfoByCode(opcode, usercode, dsconn);
|
|
// return returnlist[0];
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
|
|
// throw ex;
|
|
// }
|
|
|
|
//}
|
|
#endregion
|
|
|
|
|
|
#region 通过ID查询
|
|
public static DataTable searchInfoByID(string ID, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSDWGDAL.searchInfoByID(ID, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|