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.
56 lines
1.4 KiB
56 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using System.Data;
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class ICSTeamGroupBLL
|
|
{
|
|
public static ICSSGroup SelectByID(string id)
|
|
{
|
|
List<string> list = new List<string>() { id };
|
|
List<ICSSGroup> infs = ICSTeamGroupDAL.Select(list);
|
|
if (infs.Count == 0)
|
|
{
|
|
return null;
|
|
}
|
|
return infs[0];
|
|
}
|
|
|
|
public static List<ICSSGroup> SelectByID(List<string> list)
|
|
{
|
|
return ICSTeamGroupDAL.Select(list);
|
|
}
|
|
|
|
public static DataTable SelectAll()
|
|
{
|
|
return ICSTeamGroupDAL.SelectAll();
|
|
}
|
|
|
|
public static void Edit(ICSSGroup g)
|
|
{
|
|
List<ICSSGroup> list = new List<ICSSGroup>();
|
|
list.Add(g);
|
|
ICSTeamGroupDAL.Edit(list);
|
|
}
|
|
|
|
public static void Edit(List<ICSSGroup> list)
|
|
{
|
|
ICSTeamGroupDAL.Edit(list);
|
|
}
|
|
|
|
public static void DeleteFromID(List<string> listID)
|
|
{
|
|
ICSTeamGroupDAL.DeleteFromID(listID);
|
|
}
|
|
|
|
public static void DeleteFromCode(List<string> listCode)
|
|
{
|
|
ICSTeamGroupDAL.DeleteFromCode(listCode);
|
|
}
|
|
}
|
|
}
|