customertype.cs
来自「某个公司需要维持良好的客户关系」· CS 代码 · 共 62 行
CS
62 行
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 + =
减小字号Ctrl + -
显示快捷键?