MES.BLL/BusinessBLL/SaleBillInWareHouseBLL.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MES.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Transactions;
namespace MES.BLL.BusinessBLL
{
public class SaleBillInWareHouseBLL : BaseOperationBLL<T_SaleBillInWareHouse>
{
/// <summary>
/// 插入采购入库的结果
/// </summary>
/// <param name="purchaseInWareHouseList"></param>
/// <param name="purchaseInWareHouseDetailList"></param>
/// <returns></returns>
public string InsertSaleBillWareHouseResult(T_SaleBillInWareHouse model, List<T_SaleBillInWareHouse_Detail> SaleBillInWareHouseDetailList)
{
string strResult = string.Empty;
using (TransactionScope ts = new TransactionScope())
{
try
{
this.Insert(model);
foreach (T_SaleBillInWareHouse_Detail material in SaleBillInWareHouseDetailList)
{
new SaleBillInWareHouse_DetailBLL().Insert(material);
}
ts.Complete();
}
catch (Exception ex)
{
strResult = string.Format("{0}", ex);
ts.Dispose();
}
}
return strResult;
}
/// <summary>
/// 更新
/// </summary>
/// <param name="purchaseInWareHouseList"></param>
/// <param name="purchaseInWareHouseDetailList"></param>
/// <returns></returns>
public string UpdateSaleBillWareHouseResult(T_SaleBillInWareHouse saleBillInWareHouse, List<T_SaleBillInWareHouse_Detail> saleBillInWareHouseDetailList)
{
string strResult = string.Empty;
using (TransactionScope ts = new TransactionScope())
{
try
{
StringBuilder strPurchaseBuilder = new StringBuilder();
后面还有 243 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
