| | |
| | | public int? Hang { get; set; } |
| | | public int? Lie { get; set; } |
| | | |
| | | public string Fenzu { get; set; } |
| | | public int? BannerId { get; set; } |
| | | |
| | | public string Shangxiawu { get; set; } |
| | | public string ShangxiawuName { get; set; } |
| | | |
| | |
| | | |
| | | public string ClassID { get; set; } |
| | | } |
| | | |
| | | |
| | | public class BanciFanhui |
| | | { |
| | | |
| | | |
| | | public string name { get; set; } |
| | | |
| | | public string value { get; set; } |
| | | |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | using zhengcaioa.Models; |
| | | |
| | | namespace IServices |
| | | { |
| | |
| | | |
| | | |
| | | List<OrderBanciZuoweiDTO> GetOrderBanciZuoweiList(string banciId); |
| | | |
| | | |
| | | |
| | | List<OrderBanci> GetDangQianBanciList(string id); |
| | | } |
| | | } |
| | |
| | | public int? Renshu { get; set; } |
| | | public int? Hang { get; set; } |
| | | public int? Lie { get; set; } |
| | | public string Fenzu { get; set; } |
| | | public int? BannerId { get; set; } |
| | | |
| | | } |
| | | } |
| | |
| | | entity.Property(e => e.Lie) |
| | | .HasColumnName("lie"); |
| | | |
| | | entity.Property(e => e.Fenzu) |
| | | .HasColumnName("Fenzu"); |
| | | |
| | | entity.Property(e => e.BannerId) |
| | | .HasMaxLength(50) |
| | | .HasColumnName("BannerId"); |
| | | |
| | | entity.Property(e => e.Shijian) |
| | | .HasColumnType("datetime") |
| | | .HasColumnName("shijian"); |
| | |
| | | updateproject.Renshu = entity.Renshu; |
| | | updateproject.Hang = entity.Hang; |
| | | updateproject.Lie = entity.Lie; |
| | | updateproject.Fenzu = entity.Fenzu; |
| | | updateproject.BannerId = entity.BannerId; |
| | | |
| | | } |
| | | if(entity.Hang.HasValue && entity.Lie.HasValue) |
| | | { |
| | |
| | | Lie = a.Lie ?? 0, |
| | | |
| | | |
| | | Fenzu = a.Fenzu, |
| | | BannerId = a.BannerId??0, |
| | | |
| | | |
| | | Creater = a.Creater, |
| | | Createtime = a.Createtime, |
| | | |
| | |
| | | Hang = a.Hang ?? 0, |
| | | Lie = a.Lie ?? 0, |
| | | |
| | | Fenzu = a.Fenzu, |
| | | BannerId = a.BannerId ?? 0, |
| | | |
| | | Creater = a.Creater, |
| | | Createtime = a.Createtime, |
| | | |
| | |
| | | |
| | | return list; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public List<OrderBanci> GetDangQianBanciList(string id) |
| | | { |
| | | |
| | | |
| | | |
| | | |
| | | List<OrderBanci> list = new List<OrderBanci>(); |
| | | |
| | | |
| | | try |
| | | { |
| | | var orderBanci = _context.OrderBancis.Find(id); |
| | | if (orderBanci != null) |
| | | { |
| | | list = _context.OrderBancis.Where(x => x.RecStatus == "A" && x.Fenzu == orderBanci.Fenzu).OrderBy(x => x.Shijian).ToList(); |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return list; |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | |
| | | //获取当前的培训 |
| | | public IActionResult GetDangQianBanciList(string id) |
| | | { |
| | | ReturnMsg<List<BanciFanhui>> returnMsg = new ReturnMsg<List<BanciFanhui>>(); |
| | | returnMsg.code = 2; |
| | | try |
| | | { |
| | | |
| | | List<OrderBanci> orderBanciDTOs = _orderBanciService.GetDangQianBanciList(id); |
| | | List<BanciFanhui> banciFanhuis = new List<BanciFanhui>(); |
| | | |
| | | if (orderBanciDTOs != null && orderBanciDTOs.Count > 0) |
| | | { |
| | | foreach (var orderBanciDTO in orderBanciDTOs) |
| | | { |
| | | BanciFanhui banciFanhui = new BanciFanhui(); |
| | | banciFanhui.name = orderBanciDTO.Shijian.HasValue ? orderBanciDTO.Shijian.Value.ToString("yyyy-MM-dd") : ""; |
| | | banciFanhui.value = orderBanciDTO.Id; |
| | | banciFanhuis.Add(banciFanhui); |
| | | } |
| | | } |
| | | |
| | | |
| | | returnMsg.code = 1; |
| | | returnMsg.count = orderBanciDTOs.Count; |
| | | returnMsg.returnObj = banciFanhuis; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有获取到token"; |
| | | returnMsg.count = 0; |
| | | |
| | | } |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">分组</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="人数" name="Fenzu" id="Fenzu" labtype="txt" addvisible="true" maxlength="50" editvisible="true" reg="" ismust="true" type="text" value="@Model.Fenzu" /> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | <div class="clearfix layer-area" style="padding-bottom:15px;"> |
| | | |
| | | |
| | | |
| | | |
| | | <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">横幅ID</label> |
| | | <div class="col-sm-2 col-md-2" grouptype="Vdata"> |
| | | <input class="form-control" label="人数" name="BannerId" id="BannerId" labtype="txt" addvisible="true" maxlength="10" editvisible="true" reg="" ismust="true" type="text" value="@Model.BannerId" oninput="if(value.length>8)value=value.slice(0,10)" onkeyup="value=value.replace(/[^\d]/g,'')"> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |