customermanager.cs

来自「客户关系管理系统 客户关系管理系统」· CS 代码 · 共 41 行

CS
41
字号
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 + =
减小字号Ctrl + -
显示快捷键?