503 lines
13 KiB
C#
503 lines
13 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using WMS.Attirubte;
|
|||
|
|
using System.ComponentModel;
|
|||
|
|
|
|||
|
|
namespace WMS.Model.CK
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 出库通知单明细
|
|||
|
|
/// <summary>
|
|||
|
|
[Serializable]
|
|||
|
|
[TableClmAttribute(TableName = "T_CK_ORDERDETAIL")]
|
|||
|
|
public class OrderDetailModel
|
|||
|
|
{
|
|||
|
|
#region Model
|
|||
|
|
private decimal cost_price = 0;
|
|||
|
|
private string _ORDER_ID = string.Empty;
|
|||
|
|
private string _businessid = string.Empty;
|
|||
|
|
private string _good_id = string.Empty;
|
|||
|
|
private string _good_name = string.Empty;
|
|||
|
|
private string _specification = string.Empty;
|
|||
|
|
private decimal _goods_num = 0;
|
|||
|
|
private string _remark = string.Empty;
|
|||
|
|
private decimal _page_num = 0;
|
|||
|
|
private decimal _weith = 0;
|
|||
|
|
private decimal _area_num = 0;
|
|||
|
|
private decimal _price = 0;
|
|||
|
|
private string _scale_unit = string.Empty;
|
|||
|
|
private string _goods_type_id = string.Empty;
|
|||
|
|
private string _goods_type_name = string.Empty;
|
|||
|
|
private decimal _total_volume = 0;
|
|||
|
|
private decimal _gvolume = 0;
|
|||
|
|
private string _unit = string.Empty;
|
|||
|
|
private decimal goods_money = 0;
|
|||
|
|
private string storage_area_id = string.Empty;
|
|||
|
|
private string storage_area_name = string.Empty;
|
|||
|
|
private string location_id = string.Empty;
|
|||
|
|
private decimal serialnumber = 0;
|
|||
|
|
private bool canPicking = false;
|
|||
|
|
private bool needAddGoods = false;
|
|||
|
|
private decimal pick_num = 0;
|
|||
|
|
private string _pickman = string.Empty;
|
|||
|
|
private string barCode = string.Empty;
|
|||
|
|
private decimal _tr_num = 0;
|
|||
|
|
private decimal _tr_need_num = 0;
|
|||
|
|
|
|||
|
|
bool _ischeck = false;
|
|||
|
|
string _CUSTONER_ID = string.Empty;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string _addtime = "";
|
|||
|
|
/// <summary>
|
|||
|
|
/// 仓库编号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("生成时间")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string addtime
|
|||
|
|
{
|
|||
|
|
get { return _addtime; }
|
|||
|
|
set { _addtime = value; }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private string _create_date = "";
|
|||
|
|
/// <summary>
|
|||
|
|
/// 仓库编号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("订单时间")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string CREATE_DATE
|
|||
|
|
{
|
|||
|
|
get { return _create_date; }
|
|||
|
|
set { _create_date = value; }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string _stroage_id = "";
|
|||
|
|
/// <summary>
|
|||
|
|
/// 仓库编号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("仓库编号")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string STORAGE_ID
|
|||
|
|
{
|
|||
|
|
get { return _stroage_id; }
|
|||
|
|
set { _stroage_id = value; }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
[DisplayName("客户编号")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string CUSTONER_ID
|
|||
|
|
{
|
|||
|
|
get { return _CUSTONER_ID; }
|
|||
|
|
set { _CUSTONER_ID = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[DisplayName("选择")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public Boolean IsCheck
|
|||
|
|
{
|
|||
|
|
get { return _ischeck; }
|
|||
|
|
set { _ischeck = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 出库单号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("出库单号")]
|
|||
|
|
public string ORDER_ID
|
|||
|
|
{
|
|||
|
|
set { _ORDER_ID = value; }
|
|||
|
|
get { return _ORDER_ID; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 原业务单号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("原业务单号")]
|
|||
|
|
public string BUSINESSID
|
|||
|
|
{
|
|||
|
|
set { _businessid = value; }
|
|||
|
|
get { return _businessid; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料编号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料编号")]
|
|||
|
|
[TableClmAttribute(JoinTableClmName = "GOODS_NAME", JoinTableClm = "GOODS_ID", ClmJoinTable = "T_BASE_GOODS")]
|
|||
|
|
public string GOOD_ID
|
|||
|
|
{
|
|||
|
|
set { _good_id = value; }
|
|||
|
|
get { return _good_id; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料名称
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料名称")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string Good_name
|
|||
|
|
{
|
|||
|
|
get { return _good_name; }
|
|||
|
|
set { _good_name = value; }
|
|||
|
|
}
|
|||
|
|
string _sts = "";
|
|||
|
|
/// <summary>
|
|||
|
|
/// 状态
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("状态")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string STS
|
|||
|
|
{
|
|||
|
|
get { return _sts; }
|
|||
|
|
set { _sts = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 规格
|
|||
|
|
///
|
|||
|
|
[DisplayName("规格")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string SPECIFICATION
|
|||
|
|
{
|
|||
|
|
set { _specification = value; }
|
|||
|
|
get { return _specification; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("需求数量")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal GOODS_NUM
|
|||
|
|
{
|
|||
|
|
set { _goods_num = value; }
|
|||
|
|
get { return _goods_num; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 备注
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("备注")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string REMARK
|
|||
|
|
{
|
|||
|
|
set { _remark = value; }
|
|||
|
|
get { return _remark; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 包装数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("出库箱数")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal PAGE_NUM
|
|||
|
|
{
|
|||
|
|
set { _page_num = value; }
|
|||
|
|
get { return _page_num; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料重量(注:为数量*物料重量)
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料重量")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal Weith
|
|||
|
|
{
|
|||
|
|
get { return _weith; }
|
|||
|
|
set { _weith = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 某库区该物料总数
|
|||
|
|
/// </summary>
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal AREA_NUM
|
|||
|
|
{
|
|||
|
|
get { return _area_num; }
|
|||
|
|
set { _area_num = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 标准价
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("标准金额")]
|
|||
|
|
public decimal PRICE
|
|||
|
|
{
|
|||
|
|
set { _price = value; }
|
|||
|
|
get { return _price; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 重量单位
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("重量单位")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string SCALE_UNIT
|
|||
|
|
{
|
|||
|
|
set { _scale_unit = value; }
|
|||
|
|
get { return _scale_unit; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料分类
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料分类")]
|
|||
|
|
[TableClmAttribute(JoinTableClmName = "GOODS_TYPE_NAME", JoinTableClm = "GOODS_TYPE_ID", ClmJoinTable = "T_BASE_GOODS_TYPE", ClassName = "GOODS_TYPE_NAME")]
|
|||
|
|
public string GOODS_TYPE_ID
|
|||
|
|
{
|
|||
|
|
set { _goods_type_id = value; }
|
|||
|
|
get { return _goods_type_id; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料分类名称
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料分类名称")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string Goods_type_name
|
|||
|
|
{
|
|||
|
|
get { return _goods_type_name; }
|
|||
|
|
set { _goods_type_name = value; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 总体积
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("总体积")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal TOTAL_VOLUME
|
|||
|
|
{
|
|||
|
|
set { _total_volume = value; }
|
|||
|
|
get { return _total_volume; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 单位体积
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("单位体积")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal GVOLUME
|
|||
|
|
{
|
|||
|
|
set { _gvolume = value; }
|
|||
|
|
get { return _gvolume; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 单位
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("单位")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string UNIT
|
|||
|
|
{
|
|||
|
|
set { _unit = value; }
|
|||
|
|
get { return _unit; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料金额 只加Model 没加数据库
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料金额")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal Goods_money
|
|||
|
|
{
|
|||
|
|
get { return goods_money; }
|
|||
|
|
set { goods_money = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 库区编号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("库区编号")]
|
|||
|
|
[TableClmAttribute(JoinTableClmName = "STORAGE_AREA_NAME", JoinTableClm = "STORAGE_AREA_ID", ClmJoinTable = "T_BASE_STORAGE_AREA")]
|
|||
|
|
public string Storage_area_id
|
|||
|
|
{
|
|||
|
|
get { return storage_area_id; }
|
|||
|
|
set { storage_area_id = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 库区名称
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("库区名称")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string Storage_area_name
|
|||
|
|
{
|
|||
|
|
get { return storage_area_name; }
|
|||
|
|
set { storage_area_name = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 库位编号
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("库位编号")]
|
|||
|
|
public string Location_id
|
|||
|
|
{
|
|||
|
|
get { return location_id; }
|
|||
|
|
set { location_id = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 序号 -打印单据使用
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("序号")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal Serialnumber
|
|||
|
|
{
|
|||
|
|
get { return serialnumber; }
|
|||
|
|
set { serialnumber = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 已捡货数
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("已捡货数")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal PICK_NUM
|
|||
|
|
{
|
|||
|
|
get { return pick_num; }
|
|||
|
|
set { pick_num = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public bool CANPICKING
|
|||
|
|
{
|
|||
|
|
get { return canPicking; }
|
|||
|
|
set { canPicking = value; }
|
|||
|
|
}
|
|||
|
|
//[TableClm(NoSelect = false)]
|
|||
|
|
//public bool NEEDADDGOODS
|
|||
|
|
//{
|
|||
|
|
// get { return needAddGoods; }
|
|||
|
|
// set { needAddGoods = value; }
|
|||
|
|
//}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 临时存放捡货人
|
|||
|
|
/// </summary>
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string PICKMAN
|
|||
|
|
{
|
|||
|
|
set { _pickman = value; }
|
|||
|
|
get { return _pickman; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 物料条码
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("物料条码")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string BarCode
|
|||
|
|
{
|
|||
|
|
get { return barCode; }
|
|||
|
|
set { barCode = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 已生成运输单的数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("已运数量")]
|
|||
|
|
public decimal TR_NUM
|
|||
|
|
{
|
|||
|
|
set { _tr_num = value; }
|
|||
|
|
get { return _tr_num; }
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// 未运数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("未运数量")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal TR_NEED_NUM
|
|||
|
|
{
|
|||
|
|
set { _tr_need_num = value; }
|
|||
|
|
get { return _tr_need_num; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 成本价
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("成本价")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal Cost_price
|
|||
|
|
{
|
|||
|
|
get { return cost_price; }
|
|||
|
|
set { cost_price = value; }
|
|||
|
|
}
|
|||
|
|
decimal _PACKING_NUM = 0;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 未运数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("装箱数")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal PACKING_NUM
|
|||
|
|
{
|
|||
|
|
set { _PACKING_NUM = value; }
|
|||
|
|
get { return _PACKING_NUM; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
string xq_type = "";
|
|||
|
|
/// <summary>
|
|||
|
|
/// 需求类型
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("需求类型")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public string XQ_TYPE
|
|||
|
|
{
|
|||
|
|
set { xq_type = value; }
|
|||
|
|
get { return xq_type; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
decimal _BUY_NUM = 0;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 已采数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("已采数量")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal BUY_NUM
|
|||
|
|
{
|
|||
|
|
set { _BUY_NUM = value; }
|
|||
|
|
get { return _BUY_NUM; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
decimal _NUM = 0;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 本次数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("本次数量")]
|
|||
|
|
[TableClm(NoSelect = false)]
|
|||
|
|
public decimal NOWNUM
|
|||
|
|
{
|
|||
|
|
set { _NUM = value; }
|
|||
|
|
get { return _NUM; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
decimal _shelves_num = 0;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 库存数量
|
|||
|
|
/// </summary>
|
|||
|
|
[DisplayName("库存数量")]
|
|||
|
|
public decimal SHELVES_NUM
|
|||
|
|
{
|
|||
|
|
set { _shelves_num = value; }
|
|||
|
|
get { return _shelves_num; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
string _ORDER_TYPE = "";
|
|||
|
|
|
|||
|
|
[DisplayName("单据类型")]
|
|||
|
|
public string ORDER_TYPE
|
|||
|
|
{
|
|||
|
|
set { _ORDER_TYPE = value; }
|
|||
|
|
get { return _ORDER_TYPE; }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion Model
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|