using System;
using System.Collections.Generic;
namespace CallCenterApi.Model
{
///
/// 订单表
///
[Serializable]
public partial class orders
{
public orders()
{ }
#region Model
private int _id;
private string _order_no = string.Empty;
private string _trade_no = string.Empty;
private int? _user_id = 0;
private string _user_name = string.Empty;
private string _accept_name = string.Empty;
private string _post_code = string.Empty;
private string _telphone = string.Empty;
private string _mobile = string.Empty;
private string _address = string.Empty;
private string _remark = string.Empty;
private int _status = 1;
private DateTime _add_time = DateTime.Now;
private decimal _order_amount = 0;
private int _express_id = 0;
private string _express_no = string.Empty;
///
/// 自增ID
///
public int id
{
set { _id = value; }
get { return _id; }
}
///
/// 订单号
///
public string order_no
{
set { _order_no = value; }
get { return _order_no; }
}
///
/// 用户ID
///
public int? user_id
{
set { _user_id = value; }
get { return _user_id; }
}
///
/// 用户名
///
public string user_name
{
set { _user_name = value; }
get { return _user_name; }
}
/////
///// 支付方式
/////
//public int payment_id
//{
// set { _payment_id = value; }
// get { return _payment_id; }
//}
/////
///// 支付手续费
/////
//public decimal payment_fee
//{
// set { _payment_fee = value; }
// get { return _payment_fee; }
//}
/////
///// 支付状态0未支付1待支付2已支付
/////
//public int payment_status
//{
// set { _payment_status = value; }
// get { return _payment_status; }
//}
/////
///// 支付时间
/////
//public DateTime? payment_time
//{
// set { _payment_time = value; }
// get { return _payment_time; }
//}
///
/// 快递ID
///
public int express_id
{
set { _express_id = value; }
get { return _express_id; }
}
///
/// 快递单号
///
public string express_no
{
set { _express_no = value; }
get { return _express_no; }
}
/////
///// 物流费用
/////
//public decimal express_fee
//{
// set { _express_fee = value; }
// get { return _express_fee; }
//}
/////
///// 发货状态1未发货2已发货
/////
//public int express_status
//{
// set { _express_status = value; }
// get { return _express_status; }
//}
/////
///// 发货时间
/////
//public DateTime? express_time
//{
// set { _express_time = value; }
// get { return _express_time; }
//}
///
/// 收货人姓名
///
public string accept_name
{
set { _accept_name = value; }
get { return _accept_name; }
}
///
/// 邮政编码
///
public string post_code
{
set { _post_code = value; }
get { return _post_code; }
}
///
/// 联系电话
///
public string telphone
{
set { _telphone = value; }
get { return _telphone; }
}
///
/// 手机
///
public string mobile
{
set { _mobile = value; }
get { return _mobile; }
}
public string address
{
set { _address = value; }
get { return _address; }
}
///
/// 订单备注
///
public string remark
{
set { _remark = value; }
get { return _remark; }
}
///
/// 订单总金额
///
public decimal order_amount
{
set { _order_amount = value; }
get { return _order_amount; }
}
///
/// 订单状态1生成订单,2确认订单,3完成订单,4取消订单,5作废订单
///
public int status
{
set { _status = value; }
get { return _status; }
}
///
/// 下单时间
///
public DateTime add_time
{
set { _add_time = value; }
get { return _add_time; }
}
///
/// 开单坐席工号
///
public string usercode { get; set; }
private List _order_goods;
///
/// 商品列表
///
public List order_goods
{
set { _order_goods = value; }
get { return _order_goods; }
}
#endregion
}
public enum EnumOrderStatus
{
已下单 = 1,
待确认 = 2,
确认发货 = 3,
已取消 = 4,
已打印 = 5,
已发货 = 6,
已签收 = 7,
已退回 = 8,
已收款 = 9,
已退签 = 10
}
}