BLL/Bll_ek_orders.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HModel;
using Hxj.Data;
namespace Bll
{
public class Bll_ek_orders
{
#region 自定义业务实现
/// <summary>
/// 通过主键获取实体信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public static bool SaveOrder(ek_orders o, IList<ek_order_goods> list, DateTime date, int type ,out int order_no)
{
bool f = false;
DbTrans trans = DbSession.Default.BeginTransaction();
order_no = 0;
try
{
if (type == 1)
{
#region 进货单和订单
//订单
int c = DbSession.Default.Insert<ek_orders>(o, trans);
if (c > 0)
{
order_no = c;
//订单详细
foreach (ek_order_goods t in list)
{
t.order_id = c;
int resM = DbSession.Default.Insert<ek_order_goods>(t, trans);
if (resM > 0)
{
}
else
{
trans.Rollback();
return false;
}
}
}
else
{
order_no = 0;
trans.Rollback();
return false;
}
后面还有 218 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。