📄 customermanager.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using MyCRM.Models;
using MyCRM.DAL;
using MyCRM.IDAL;
using MyCRM.DBFactory;
namespace MyCRM.BLL
{
public class CustomerManager
{
private static ICustomer icustomer = DBAccess.CreateCustomer();
public static int AddCustomer(Cst_customer customer)
{
return icustomer.AddCustomer(customer);
}
public static int UpdateCustomer(Cst_customer customer)
{
return icustomer.UpdateCustomer(customer);
}
public static int DelCustomer(string customerid)
{
return icustomer.DelCustomer(customerid);
}
public static Cst_customer GetCustomerByCustomerId(string customer)
{
return icustomer.GetCustomerByCustomerId(customer);
}
public static List<Cst_customer> GetAllCustomer()
{
return icustomer.GetAllCustomer();
}
public static List<Cst_customer> GetCustomerSelect(string num, string name, string manager, string adr, string level)
{
return icustomer.GetCustomerSelect(num,name,manager,adr,level);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -