package cn.muchinfo.rma.business.contract

/**
 * 现货合同信息 0 18 4
 * optional string ContractNo = 1; // string 现货合同编号
optional int32 ContractType = 2; // int32 现货合同类型-1:采购-1:销售
optional uint32 UserID = 3; // uint32 机构ID
optional uint32 BuyUserID = 4; // uint32 采购方ID
optional uint32 SellUserID = 5; // uint32 客户ID
optional string SignDate = 6; // string 签订日期
optional bytes ContractAttachment = 7; // bytes 合同附件
optional double ContractMargin = 8; // double 合同保证金
optional uint32 DeliveryGoodsID = 9; // uint32 现货品种ID
optional uint32 WrStandardID = 10; // uint32 现货商品ID
optional string BrandID = 11; // string 品牌ID
optional uint32 ProductType = 12; // uint32 产品类型-1:标准仓单2:等标3:非标
optional double ConvertFactor = 13; // double 标仓系数
optional string SpotGoodsDesc = 14; // string 商品型号
optional uint32 PriceType = 15; // uint32 定价类型-1:一口价2:点价3:暂定价
optional double Qty = 16; // double 数量
optional double Price = 17; // double 价格暂定价[1:一口价、3:暂定价]
optional double Amount = 18; // double 金额[1:一口价、3:暂定价]
optional string DeliveryStartDate = 19; // string 交收期(开始)
optional string DeliveryEndDate = 20; // string 交收期(结束)
optional uint32 GoodsID = 21; // uint32 点价合约ID-0:为现货，其它为期货商品合约ID[2:点价3:暂定价]
optional double PriceMove = 22; // double 升贴水[2:点价3:暂定价]
optional string StartDate = 23; // string 点价开始日期[2:点价3:暂定价]
optional string EndDate = 24; // string 点价结束日期[2:点价3:暂定价]
optional string PointDesc = 25; // string 点价备注[2:点价3:暂定价]
optional string DeliveryDesc = 26; // string 交收方式
optional uint32 MerUserID = 27; // uint32 跟单员ID
optional uint32 TradeUserID = 28; // uint32 交易员ID
optional double PricedQty = 29; // double 已定价量
optional double PricedAmount = 30; // double 已定价金额
optional uint32 SpotGoodsModelID = 31; // uint32 现货型号ID
optional uint32 SpotGoodsBrandID = 32; // uint32 现货品牌ID
 */
data class SpotContractInfo(
    var ContractNo: String = "",
    var ContractType: Int = 0,
    var UserID: Int = 0,
    var BuyUserID: Int = 0,
    var SellUserID: Int = 0,
    var SignDate: String = "",
    var ContractAttachment: String = "",
    var ContractMargin: Double = 0.0,
    var DeliveryGoodsID: Int = 0,
    var WrStandardID: Int = 0,
    var BrandID: String = "",
    var ProductType: Int = 0,
    var ConvertFactor: Double = 0.0,
    var SpotGoodsDesc: String = "",
    var PriceType: Int = 0,
    var Qty: Double = 0.0,
    var Price: Double = 0.0,
    var Amount: Double = 0.0,
    var DeliveryStartDate: String = "",
    var DeliveryEndDate: String = "",
    var GoodsID: Int = 0,
    var PriceMove: Double = 0.0,
    var StartDate: String = "",
    var EndDate: String = "",
    var PointDesc: String = "",
    var DeliveryDesc: String = "",
    var MerUserID: Int = 0,
    var TradeUserID: Int = 0,
    var PricedQty: Double = 0.0,
    var PricedAmount: Double = 0.0,
    var SpotGoodsModelID: Int = 0,
    var SpotGoodsBrandID: Int = 0
)