using Api.Framework;
using Api.Framework.Enums;
using Api.Framework.Events;
using Api.Framework.Model;
using Api.Framework.SDK;
using Api.Framework.Timers;
using Api.Framework.Tools;
using CsharpHttpHelper;
using DevExpress.XtraEditors;
using FLSystem.Events;
using SqlSugar;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UI.Framework.Forms;
using static Api.Framework.Cps.AlimamaApi;
namespace FLSystem.Forms
{
public partial class cps_order_alimama : DevExpress.XtraEditors.XtraUserControl
{
public class view_cps_order_alimama
{
///
/// id
///
public long id { get; set; }
///
/// 商品标题
///
public string item_title { get; set; }
///
/// 购买数量
///
public string num_iid { get; set; }
///
/// 实际付款
///
public double pay_price { get; set; }
///
/// 实际总共佣金
///
public double commission { get; set; }
///
/// 订单父id
///
public string trade_parent_id { get; set; }
///
/// 订单子id
///
public string trade_id { get; set; }
///
/// 订单状态
///
public SystemOrderStatus db_status { get; set; }
private string _robotname;
///
/// 机器人微信号
///
public string robotname
{
get { return _robotname; }
set { if (string.IsNullOrEmpty(value)) _robotname = string.Empty; else _robotname = value; }
}
///
/// 机器人昵称
///
public string robotnick { get; set; }
private string _username;
///
/// 用户账号
///
public string username
{
get { return _username; }
set { if (string.IsNullOrEmpty(value)) _username = string.Empty; else _username = value; }
}
private string _usernick;
///
/// 用户昵称
///
public string usernick
{
get { return _usernick; }
set { if (string.IsNullOrEmpty(value)) _usernick = string.Empty; else _usernick = value; }
}
public long db_userid { get; set; }
///
/// 订单类型
///
public string order_type { get; set; }
///
/// 总佣金
///
public double pub_share_pre_fee { get; set; }
///
/// 付款金额
///
public double alipay_total_price { get; set; }
///
/// 商品单价
///
public double price { get; set; }
///
/// 购买数量
///
public int item_num { get; set; }
///
/// 推广位
///
public string adzone_id { get; set; }
///
/// 创建时间
///
public DateTime create_time { get; set; }
public string db_point { get; set; }
///
/// 联盟账号
///
public string db_cpsname { get; set; }
///
/// 联盟昵称
///
public string db_cpsnick { get; set; }
///
/// 冻结时间
///
public DateTime db_endtime { get; set; }
///
/// 显示返回的费用
///
public double showReturnFee { get; set; }
///
/// 退款手续费
///
public double refundFee { get; set; }
///
/// 卖方编码
///
public string seller_id { get; set; }
///
/// 预付款金额
///
public string deposit_price { get; set; }
///
/// 预售时期,用户对预售商品支付定金的付款时间
///
public string tb_deposit_time { get; set; }
///
/// 联盟技术费用比率
///
public double alimama_rate { get; set; }
///
/// 联盟技术费用
///
public double alimama_share_fee { get; set; }
///
///
///
public string auction_category { get; set; }
}
public cps_order_alimama(string textedit = "")
{
try
{
InitializeComponent();
var session = ApiClient.GetSession();
this.textEdit1.Text = textedit;
this.comboBoxEdit1.SelectedIndex = string.IsNullOrEmpty(textedit) ? 0 : 5;
this.dateTimePicker1.Value = DateTime.Parse(DateTime.Today.AddDays(-30).ToString("yyyy-MM-01"));
this.dateTimePicker2.Value = DateTime.Parse(DateTime.Now.AddDays(30).ToString("yyyy-MM-dd HH:mm:ss"));
this.gridView1.CustomDrawRowIndicator += gridView1_CustomDrawRowIndicator;
this.checkBox1.Checked = false;
#region 增加所有的机器人账号
this.comboBoxEdit3.Properties.Items.Clear();
var weixinBases = Chat.Framework.ChatClient.WXClient.Values.ToList();
var objList = new List