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.
115 lines
2.8 KiB
115 lines
2.8 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 ICSECG2ECBLL
|
|
{
|
|
public static void Add(DataTable dt, string ecgid, string ecgcode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSECG2ECDAL.AddAndEdit(dt, ecgid, ecgcode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
#region select
|
|
public static FormICSECG2ECUIModel SearchEcg2EcInfoByCode(string ecgid, string ecid, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
List<FormICSECG2ECUIModel> returnlist = ICSECG2ECDAL.SearchEcg2EcInfoByCode(ecgid,ecid,dsconn);
|
|
return returnlist[0];
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
//public static DataTable SearchPOInfoList(string str,string dsconn)
|
|
//{
|
|
// try
|
|
// {
|
|
// DataTable returndt = new DataTable();
|
|
|
|
// returndt.Columns.Add("工序代码", typeof(string));
|
|
// returndt.Columns.Add("工序", typeof(string));
|
|
// List<FormICSOPUIModel> returndal = ICSMODELOP2CKGROUPDAL.SearchOPInfoList(str,dsconn);
|
|
// foreach (FormICSOPUIModel returntype in returndal)
|
|
// {
|
|
// DataRow dr = returndt.NewRow();
|
|
|
|
// dr["工序代码"] = returntype.OPCODE;
|
|
// dr["工序"] = returntype.OPDESC;
|
|
// returndt.Rows.Add(dr);
|
|
|
|
// }
|
|
// return returndt;
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// throw ex;
|
|
// }
|
|
|
|
//}
|
|
|
|
#region delete
|
|
|
|
public static void delete(List<String> guidList)
|
|
{
|
|
ICSECG2ECDAL.delete(guidList);
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public static DataTable SelectECGId(string str, string wp)
|
|
{
|
|
try
|
|
{
|
|
return ICSECG2ECDAL.SelectECGId(str, wp);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
public static DataTable SelectECId(string str, string wp)
|
|
{
|
|
try
|
|
{
|
|
return ICSECG2ECDAL.SelectECId(str,wp);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#region edit
|
|
public static void Save(List<string> ecidList, List<string> ecgidList)
|
|
{
|
|
ICSECG2ECDAL.Save(ecidList, ecgidList);
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|