TG.WXCRM.V4/IBLL/Wx/IWX_COMMISSION.cs

114 lines
4.6 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using WX.CRM.Model.DTO;
using WX.CRM.Model.MAP;
namespace WX.CRM.IBLL.Wx
{
public interface IWX_COMMISSION
{
IEnumerable<UserOrderView> GetSaleUserReport(DateTime? sTime, DateTime? eTime, QueryUserComboDto usercomboDto, string sort = null, string order = null);
DataSet GetSaleUserMonthReport(string groupId, string inneruserId, decimal eId, decimal isDismiss);
IEnumerable<GroupOrderView> GetSaleGroupReport(QueryUserComboDto usercomboDto, DateTime? sTime, DateTime? eTime, string sort = null, string order = null);
//DataSet GetUserCommissionDetail(DateTime sTime, DateTime eTime, decimal? inneruserId);
IList<UserOrderCommissionDetialDto> GetUserCommissionDetail(DateTime sTime, DateTime eTime, decimal? inneruserId);
IEnumerable<UserNewsOrderView> GetUserNewsOrderReport(QueryUserComboDto usercomboDto, DateTime? sTime, DateTime? eTime);
IEnumerable<GroupNewsOrderView> GetGroupNewsOrderReport(QueryUserComboDto usercomboDto, DateTime? sTime, DateTime? eTime);
}
public class UserOrderView
{
public decimal Eid { get; set; }
public string UName { get; set; }
public string IsDismiss { get; set; }
public string GName { get; set; }
public Dictionary<string, decimal> OrderProductList { get; set; }
public decimal NewOrderPay { get; set; }
public decimal NewOrderCount { get; set; }
public decimal RenewOrderPay { get; set; }
public decimal RenewOrderCount { get; set; }
public decimal UpOrderPay { get; set; }
public decimal UpOrderCount { get; set; }
public decimal AllOrderPay { get; set; }
public decimal AllOrderCount { get; set; }
public decimal RefundOrderCount { get; set; }
public decimal RefundOrderPay { get; set; }
public decimal JsOrderCount { get; set; }
public decimal JsOrderPay { get; set; }
}
public class GroupOrderView
{
public string DeptName { get; set; }
public decimal GId { get; set; }
public string GName { get; set; }
public Dictionary<string, decimal> OrderProductList { get; set; }
public decimal NewOrderPay { get; set; }
public decimal NewOrderCount { get; set; }
public decimal RenewOrderPay { get; set; }
public decimal RenewOrderCount { get; set; }
public decimal UpOrderPay { get; set; }
public decimal UpOrderCount { get; set; }
public decimal AllOrderPay { get; set; }
public decimal AllOrderCount { get; set; }
public decimal RefundOrderCount { get; set; }
public decimal RefundOrderPay { get; set; }
public decimal UserOrderCount { get; set; }
public decimal UserOrderPay { get; set; }
public decimal JsOrderCount { get; set; }
public decimal JsOrderPay { get; set; }
}
public class UserOrderCommissionDetialDto
{
public decimal saleuserid { get; set; }
public decimal szzyorderid { get; set; }
public string SUBPRODUCTNAME { get; set; }
public string cname { get; set; }
public decimal commissionratio { get; set; }
public decimal arrivalpay { get; set; }
public decimal price { get; set; }
public string gname { get; set; }
public decimal eid { get; set; }
public string uname { get; set; }
public string isdismiss { get; set; }
public DateTime? entrydate { get; set; }
public DateTime? dismisstime { get; set; }
}
public class UserOrderCommissionDetialExport
{
[DisplayName("订单号")]
public decimal szzyorderid { get; set; }
[DisplayName("产品名称")]
public string SUBPRODUCTNAME { get; set; }
[DisplayName("客户名称")]
public string cname { get; set; }
[DisplayName("分成比例")]
public string commissionratio { get; set; }
[DisplayName("订单金额")]
public decimal arrivalpay { get; set; }
[DisplayName("分成金额")]
public decimal price { get; set; }
[DisplayName("组别")]
public string gname { get; set; }
[DisplayName("工号")]
public decimal eid { get; set; }
[DisplayName("姓名")]
public string uname { get; set; }
[DisplayName("【在/离】职")]
public string isdismiss { get; set; }
[DisplayName("入职时间")]
public DateTime? entrydate { get; set; }
[DisplayName("离职时间")]
public DateTime? dismisstime { get; set; }
}
}