MES.BLL/BaseBLL/CustomerBLL.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MES.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace MES.BLL.BusinessBLL
{
public class CustomerBLL : BaseOperationBLL<T_Customer>
{
/// <summary>
/// 添加客户结果返回值
/// </summary>
/// <param name="model">权限Model</param>
/// <returns>返回结果</returns>
public string InsertCustomerResult(T_Customer model)
{
string strResult = string.Empty;
try
{
string strsql = @" select a.Customer_Area,a.Customer_Code,
a.Customer_Level_Code, a.Customer_Level_Name,
a.Customer_Linker,a.Customer_Name,a.Customer_Type_Code,
a.Note,a.Telephone,a.Customer_Type_Name
from T_Customer a
where a.Delete_Mark=1 and
a.Customer_Code='" + model.Customer_Code + "' and a.Customer_Name='"+model.Customer_Type_Name+"'";
if (this.SelectAllDataTable(strsql).Rows.Count == 0)
{
this.Insert(model);
}
else
{
strResult = "名称重复";
}
}
catch (Exception ex)
{
strResult = string.Format("{0}", ex);
}
return strResult;
}
/// <summary>
/// 更改客户结果
/// </summary>
/// <param name="model">客户Model</param>
/// <returns>返回结果</returns>
public string UpdateCustomerResult(T_Customer model)
{
string strResult = string.Empty;
StringBuilder strBuilder = new StringBuilder();
strBuilder.Append(" update T_Customer set Customer_Area='" + model.Customer_Area + "', ");
strBuilder.Append(" Customer_Linker='" + model.Customer_Linker + "', ");
strBuilder.Append(" Customer_Name='" + model.Customer_Name + "', ");
后面还有 60 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
