using AllBase.Helper; using AllBase.Model.MvvmBaseClasses; using NaiBa.Util.Extension; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace AllBase.Model.DBModel { public class oms_wei_external_procurement_log_info : PropertyNotifyObject { public string OutOrderNumStr { get { if (this.order_no == "3739906242901888256") { } return this.GetValue(x => x.OutOrderNumStr); } set { this.SetValue(x => x.OutOrderNumStr, value); } } public string OutOrderBuyerStr { get { return this.GetValue(x => x.OutOrderBuyerStr); } set { this.SetValue(x => x.OutOrderBuyerStr, value); } } public void SetOutOrderBuyerStr() { OutOrderBuyerStr = GlobalConfig.PDDBuyerLoginList.FirstOrDefault(b => b.buyer_id == buyer_account)?.buyer_name ?? GlobalConfig.TaobaoBuyerLoginList.FirstOrDefault(b => b.buyer_id == buyer_account)?.buyer_name ?? buyer_account; } public long id { get; set; } public string out_order_no { get { return this.GetValue(x => x.out_order_no); } set { if (this.order_no == "3739906242901888256") { } this.SetValue(x => x.out_order_no, value); OutOrderNumStr = value; } } public string order_no { get; set; } public string order_sku_id { get; set; } public string buyer_account { get; set; } public int? out_amount { get; set; } public string purchaser_note { get; set; } public string express_1_company { get; set; } public string express_1_waybill { get; set; } public string express_2_company { get; set; } public string express_2_waybill { get; set; } public string refund_status { get; set; } public DateTime pickup_time { get; set; } /// /// 中转仓状态:0 未使用,1 已创建,2 创建失败,3 处理中(业务方根据此字段处理中转流程) /// 使用此字段判断中转仓库是否已取号 /// public int? transfer_warehouse_status { get; set; } public string raw_message { get; set; } public DateTime created_time { get; set; } public DateTime updated_time { get; set; } public string platform { get; set; } public string order_platform_code { get; set; } /// /// 唯一值编码,一般为外采单号 /// public string order_code { get; set; } /// /// 取号状态 1 正常取号 2提前取号 3已更正 (已修改提前取号为正常取号) /// 使用此字段判断取号状态,如果是提前取号,需要修改新的物流单号,此时服务端状态将替换为已更正 /// public int? pre_allocated_order_no { get; set; } public int? is_transfer_ship { get; set; } /// /// 溯源码 /// public string random_code { get; set; } /// /// 1, "拒收" 2, "拦截" 3, "取消" 4, "订单作废" /// public int? transfer_refund_status { get; set; } /// /// 订单作废状态:0=正常,1=已作废,2=作废失败 /// public int? order_void_status { get; set; } /// /// 中转仓入库状态 0: 未入库, 1: 已入库, 2: 已出库, 3: 拦截到仓 /// public int? warehouse_status { get; set; } /// /// 中转入库时间 /// public DateTime? inbound_time { get; set; } /// /// 中转出库时间 /// public DateTime? outbound_time { get; set; } /// /// 是否有退货: 0=无,1=有 /// public int? has_return { get; set; } /// /// 订单初始金额(单位:分) /// public int? postage { get; set; } /// /// 重试取号是否成功:0=未尝试 1=成功 2=失败 /// public int? retry_acquire_success { get; set; } /// /// 超重费用,单位:分 /// public int? over_weight_fee { get; set; } /// /// 0未申请拒收 1已申请拒收 2申请拒收失败 3申请拒收成功 5取消拒收 /// public int has_reject { get; set; } /// /// 拦截到仓时间 /// public DateTime? blocked_arrival_time { get; set; } /// /// 拒收时间 /// public DateTime? rejected_time { get; set; } /// /// 拦截退回状态:0未处理,1已退回,2退回失败 /// public int? intercept_return_status { get; set; } /// /// 拦截退回时间 /// public DateTime? intercept_return_time { get; set; } /// /// 拦截退回操作信息/回调信息 /// public string intercept_return_info { get; set; } } }