Commit f12ddf53 authored by 黄奎's avatar 黄奎

页面修改

parent 3881abb5
......@@ -394,7 +394,7 @@ namespace Edu.Module.Course
SaleRemark = item.Remark,
TeacherRemark = "",
TradeWay = Common.Enum.Course.TradeWayEnum.OnLine,
Unit_Price = item.DiscountPrice,
Unit_Price = item.OriginalPrice,
UpdateBy = offerModel.CreateBy,
UpdateTime = DateTime.Now,
OfferId = offerId,
......
......@@ -104,9 +104,8 @@ namespace Edu.Module.Course
public object GetStudentInfoModule(int OrderId, int GuestId)
{
var obj = new object();
var glist = order_GuestRepository.GetOrderGuestListRepository(new RB_Order_Guest_ViewModel() { OrderId = OrderId });
var orderModel = orderRepository.GetEntity(OrderId);
var guestModel = glist.Where(qitem => qitem.Id == GuestId)?.FirstOrDefault();
var guestModel = order_GuestRepository.GetEntity<RB_Order_Guest_ViewModel>(GuestId);
var classModel = new RB_Class_ViewModel();
var courseModel = new RB_Course_ViewModel();
decimal PreferPrice = 0;//总金额
......@@ -122,12 +121,11 @@ namespace Edu.Module.Course
}
var qids = (classModel?.ManagerId ?? 0).ToString() + "," + (orderModel?.EnterID ?? 0).ToString();
var empList = accountRepository.GetEmployeeListRepository(new Employee_ViewModel() { QIds = qids });
if (glist != null && glist.Count > 0)
{
PreferPrice = orderModel.PreferPrice / glist.Count();
DiscountMoney = orderModel.PerDiscountMoney;
Money = (orderModel.PreferPrice - orderModel.DiscountMoney) / glist.Count();//平均每人费用
}
PreferPrice = orderModel.PreferPrice / orderModel.GuestNum;
DiscountMoney = orderModel.PerDiscountMoney;
Money = (orderModel.PreferPrice - orderModel.DiscountMoney) / orderModel.GuestNum;//平均每人费用
string dxMoney = StringHelper.MoneyToUpper(Money.ToString());
obj = new
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment