📄 customertype.cs
字号:
using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using CRM.IDAL;
using CRM.Model;
namespace CRM.BLL
{
/// <summary>
/// CustomerType 的摘要说明。
/// </summary>
public class CustomerType : Common
{
#region ICustomerType 成员
public static void Insert(CustomerTypeInfo type)
{
if(!Common.CheckStrIsNull(type.TypeName))
{
ICustomerType dal=CRM.DALFactory.CustomerType.Create();
dal.Insert(type);
}
}
public static void Delete(string typeId)
{
if(!Common.CheckStrIsNull(typeId))
{
ICustomerType dal=CRM.DALFactory.CustomerType.Create();
dal.Delete(typeId);
}
}
public static void Update(CustomerTypeInfo type)
{
if(!Common.CheckStrIsNull(type.TypeId,type.TypeName))
{
ICustomerType dal=CRM.DALFactory.CustomerType.Create();
dal.Update(type);
}
}
public static DataTable GetAllType()
{
ICustomerType dal=CRM.DALFactory.CustomerType.Create();
return dal.GetAllType();
}
public static CustomerTypeInfo GetTypeById(string typeId)
{
if(Common.CheckStrIsNull(typeId))
return null;
ICustomerType dal=CRM.DALFactory.CustomerType.Create();
return dal.GetTypeById(typeId);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -