📄 customersbl.cs
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VinciDataAccess.DataAccess;
using VinciDataAccess.Entity;
using System.Collections;
namespace VinciBusinessLogic.BusinessLogic
{
public class CustomersBL
{
private CustomersStore _customerStore;
public CustomersBL()
{
_customerStore = new CustomersStore();
}
public string GetCustomerName(int customerID)
{
if (customerID != null)
{
CustomersEntity customer = _customerStore.GetCustomerInfo(customerID);
string name = customer.ContactName;
return name;
}
else
{
return "";
}
}
public CustomersCollection GetCustomersList()
{
return _customerStore.GetCustomersList();
}
#region Chark
#region 根据客户ID返回客户RegionID
public int getRgnIDbyCutID(int _CustomerID)
{
VinciDataAccess.DataAccess.CustomersStore ctmStore = new CustomersStore();
VinciDataAccess.Entity.CustomersEntity ctmEntity = new CustomersEntity();
ctmEntity = ctmStore.GetCustomerInfo(_CustomerID);
int _RegionID = ctmEntity.RegionID;
return _RegionID;
}
#endregion
#endregion
//通过模糊客户名查出客户ID
//public ArrayList GetCustomerIDByCustomerName(string customerName)
//{
// return _customerStore.GetCustomerIDByCustomerName(customerName);
//}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -