本文整理汇总了C#中BusinessObjects.MasterDataBLL.GetCustomerByNo方法的典型用法代码示例。如果您正苦于以下问题:C# MasterDataBLL.GetCustomerByNo方法的具体用法?C# MasterDataBLL.GetCustomerByNo怎么用?C# MasterDataBLL.GetCustomerByNo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BusinessObjects.MasterDataBLL
的用法示例。
在下文中一共展示了MasterDataBLL.GetCustomerByNo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ImportTxtData
//.........这里部分代码省略.........
} else {
logbll.InsertImportLogDetail(logId, i + 1, "未找到Customer Type!");
FailCount += 1;
continue;
}
MasterData.CustomerChannelDataTable CustomerChannel = masterdatabll.GetCustomerChanneByCode(Customer[6]);
if (CustomerChannel.Rows.Count > 0) {
CustomerChannelID = CustomerChannel[0].CustomerChannelID;
} else {
logbll.InsertImportLogDetail(logId, i + 1, "未找到Customer Channel!");
FailCount += 1;
continue;
}
MasterData.ProvinceDataTable Province = masterdatabll.GetProvinceByName(Customer[8]);
if (Province.Rows.Count > 0) {
ProvinceID = Province[0].ProvinceID;
} else {
logbll.InsertImportLogDetail(logId, i + 1, "未找到Province!");
FailCount += 1;
continue;
}
MasterData.CustomerRegionDataTable CustomerRegion = masterdatabll.GetCustomerRegionByName(Customer[9]);
if (CustomerRegion.Rows.Count > 0)
CustomerRegionID = CustomerRegion[0].CustomerRegionID;
else {
logbll.InsertImportLogDetail(logId, i + 1, "未找到Customer Region!");
FailCount += 1;
continue;
}
MasterData.CustomerDataTable dtCustomer = masterdatabll.GetCustomerByNo(Customer[0]);
if (dtCustomer.Rows.Count > 0) {
//Update
masterdatabll.UpdateCustomer(dtCustomer[0].CustomerID, Customer[0], Customer[1], Customer[2], Customer[3], Customer[4], Customer[4],
CustomerTypeID, CustomerChannelID, Customer[7], ProvinceID, CustomerRegionID, Customer[10], Customer[11],
"", "", "", "", active, Customer[13]);
} else if (active)//未找到数据 并且active 是ture的才做插入
{
//导入数据
masterdatabll.InsertCustomer(Customer[0], Customer[1], Customer[2], Customer[3], Customer[4], Customer[5],
CustomerTypeID, CustomerChannelID, Customer[7], ProvinceID, CustomerRegionID, Customer[10], Customer[11],
"", "", "", "", active, Customer[13]);
} else {
logbll.InsertImportLogDetail(logId, i + 1, "未激活的数据不导入!");
FailCount += 1;
continue;
}
}
#endregion
#region 类型为货补
if (importType == 3) {
string[] Delivery = Content[i].Split('\t');
if (Delivery.Length != 7) {
logbll.InsertImportLogDetail(logId, i + 1, "Delivery数据COUNT错误!");
FailCount += 1;
continue;
}
string l_strMaaNumber = Delivery[0].ToString();
string l_strSKUNo = Delivery[1].ToString();
string l_strPrice = Delivery[2].ToString();
string l_strDeliveryNo = Delivery[3].ToString();
string l_strQuantity = Delivery[4].ToString();