コード例 #1
0
 public ConsultationOrderTotalOutDetail(ConsultationOrderTotal total, int revenueRanking, int orderRanking, string revenuePoint, string orderPoint, List <ConsultationOrderTotal> ordertotallist)
 {
     // aRevenueTotal = total.RevenueTotal;
     // bRevenueTotal = _refundsum;
     CompleteMoney  = (Math.Round((total.CompleteMoney), 1)).ToString();
     CompleteTotal  = total.CompleteTotal.ToString();
     RevenueRanking = revenueRanking;
     OrderRanking   = orderRanking;
     RevenuePoint   = revenuePoint;
     OrderPoint     = orderPoint;
     Ordertotallist = ordertotallist.Select(t => new ConsultationOrderTotalModel(t)).ToList();
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 public ConsultationOrderTotalOutDetail(ConsultationOrderTotal total, double _refundsum, int revenueRanking, int orderRanking, string revenuePoint, string orderPoint, List <ConsultationOrderTotal> ordertotallist, List <OrderTradeRecord> orderTradeRecords)
 {
     // aRevenueTotal = total.RevenueTotal;
     // bRevenueTotal = _refundsum;
     CompleteMoney     = (Math.Round((total.CompleteMoney + _refundsum), 1)).ToString();
     CompleteTotal     = (total.CompleteTotal - total.RefundTotal).ToString();
     RevenueRanking    = revenueRanking;
     OrderRanking      = orderRanking;
     RevenuePoint      = revenuePoint;
     OrderPoint        = orderPoint;
     OrderTradeRecords = orderTradeRecords;
     Ordertotallist    = ordertotallist.Select(t => new ConsultationOrderTotalModel(t, orderTradeRecords)).ToList();
 }
コード例 #3
0
        public ConsultationOrderTotalModel(ConsultationOrderTotal total)
        {
            TotalDate = total.TotalDate;

            //var doctorrefund = orderTradeRecords.Where(t => t.CreatedOn >= TotalDate && t.CreatedOn < TotalDate.AddDays(1));
            Id            = total.Id;
            DoctorName    = total.DoctorName;
            DoctorID      = total.DoctorID;
            DoctorJSON    = total.DoctorJSON;
            CompleteTotal = total.CompleteTotal;
            //   aRevenueTotal = total.RevenueTotal;
            //   bPayMoney =Convert.ToDouble(doctorrefund.Sum(t=>t.PayMoney));
            //   cRevenueTotal = aRevenueTotal + bPayMoney;
            CompleteMoney = Math.Round(total.CompleteMoney, 1);
            TotalType     = total.TotalType;
            TotalDateUtc  = total.TotalDate.ToString("yyyy-MM-ddTHH:mm:ss");
        }