using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Api.Framework.Enums;
using Api.Framework.Tools;
using CsharpHttpHelper;
using Api.Framework;
using FLSystem.Events;
using System.Threading;
using Api.Framework.Events;
using Api.Framework.SDK;
using Api.Framework.Timers;
using Api.Framework.Model;
using SqlSugar;
using UI.Framework.Forms;
using Chat.Framework;
namespace FLSystem.Forms
{
public partial class cps_order_weipinhui : DevExpress.XtraEditors.XtraUserControl
{
public cps_order_weipinhui()
{
InitializeComponent();
}
public class view_cps_order_weipinhui
{
public long id { get; set; }
public string orderSn { 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 db_point { get; set; }
public string db_cpsname { get; set; }
public string db_cpsnick { get; set; }
public DateTime db_endtime { get; set; }
public string mallId { get; set; }
///
/// 是否自推自买 0-否,1-是
///
public WeipinhuiShiFou selfBuy { get; set; }
///
/// 下单时间 时间戳 单位毫秒
///
public long orderTime { get; set; }
///
/// 商品id
///
public string goodsId { get; set; }
///
/// 商品名称
///
public string goodsName { get; set; }
///
/// 商品数量
///
public int goodsCount { get; set; }
///
/// 商品成交价(元,保留两位小数,商品成交价上线之后的订单才有该值)
///
public double goodsFinalPrice { get; set; }
///
/// 商品计佣金额(元,保留两位小数)
///
public double commissionTotalCost { get; set; }
///
/// 商品佣金比例(%)
///
public double commissionRate { get; set; }
///
/// 商品佣金金额(元,保留两位小数)
///
public double commission { get; set; }
///
/// 推广PID:目前等同于channelTag
///
public string pid { get; set; }
///
/// 售后订单佣金变动:仅在订单完结之后发生售后行为时返回
///
public string afterSaleChangeCommission { get; set; }
///
/// 售后订单总商品数量变动:仅在订单完结之后发生售后行为时返回
///
public string afterSaleChangeGoodsCount { get; set; }
///
/// 是否预付订单:0-否,1-是
///
public WeipinhuiShiFou isPrepay { get; set; }
///
/// 订单归因方式:0-常规推广,1-惊喜红包,2-锁粉,3-超级红包
///
public WeipinhuiGuiYin orderTrackReason { get; set; }
public string sizeId { get; set; }
}
private void cps_order_weipinhui_Load(object sender, EventArgs e)
{
simpleButton1_Click(this.simpleButton1, null);
}
private void simpleButton1_Click(object sender, EventArgs e)
{
this.pageControl1.Go(sender, e);
}
public cps_order_weipinhui(string textedit = "")
{
InitializeComponent();
this.textEdit1.Text = textedit;
this.comboBoxEdit1.SelectedIndex = string.IsNullOrEmpty(textedit) ? 0 : 5;
this.checkBox1.Checked = false;
this.gridView1.CustomDrawRowIndicator += gridView1_CustomDrawRowIndicator;
#region 增加所有的机器人账号
this.comboBoxEdit3.Properties.Items.Clear();
var weixinBases = Chat.Framework.ChatClient.WXClient.Values.ToList();
var objList = new List