schangxiang@126.com
2025-09-09 3d8966ba2c81e7e0365c8b123e861d18ee4f94f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
using iWareSAP.PARAM.Entity;
namespace iWareSAP.IDOC.Entity
{
    public class MovMaterial
    {
        /// <summary>
        /// 1移动类型
        /// </summary>
        public string BWART { get; set; }
 
        /// <summary>
        /// 2物料号
        /// </summary>
        public string MATNR { get; set; }
 
        /// <summary>
        /// 3工厂
        /// </summary>
        public string WERKS { get; set; }
 
        /// <summary>
        /// 4转出库位
        /// </summary>
        public string LGORT { get; set; }
 
 
        /// <summary>
        /// 5特殊类型表示
        /// </summary>
        public string SOBKZ { get; set; }
 
 
        /// <summary>
        /// 6供应商
        /// </summary>
        public string LIFNR { get; set; }
 
 
        /// <summary>
        /// 7销售订单
        /// </summary>
        public string KDAUF { get; set; }
 
 
        /// <summary>
        /// 8销售订单项
        /// </summary>
        public string KDPOS { get; set; }
 
        /// <summary>
        /// 9数量
        /// </summary>
        public decimal ERFMG { get; set; }
 
        /// <summary>
        /// 10单位
        /// </summary>
        public string ERFME { get; set; }
 
        /// <summary>
        /// 11工位
        /// </summary>
        public string CHARG { get; set; }
 
        /// <summary>
        /// 12序列号
        /// </summary>
        public string SERNR { get; set; }
 
        /// <summary>
        /// 13转入库位
        /// </summary>
        public string UMLGO { get; set; }
 
 
        /// <summary>
        /// 14验证类型
        /// </summary>
        public string BWTAR { get; set; }
 
 
 
        /// <summary>
        /// 构造函数
        /// </summary>
        public MovMaterial() { }
 
        /// <summary>
        /// 构造函数
        /// </summary>
        public MovMaterial(MovMaterialEntity movMaterial)
        {
            BWART = movMaterial.MoveType;
            MATNR = movMaterial.MaterialCode;
            WERKS = movMaterial.Plant;
            LGORT = movMaterial.FromStorageLocation;
            SOBKZ = movMaterial.SType;
            LIFNR = movMaterial.Vendor;
            KDAUF = movMaterial.SalesOrder;
            KDPOS = movMaterial.SalesOrderItem;
            ERFMG = movMaterial.Quantity;
            ERFME = movMaterial.Unit;
            CHARG = movMaterial.Batch;
            SERNR = movMaterial.SerialNo;
            UMLGO = movMaterial.ToStorageLocation;
            BWTAR = "";
            ERFMG = (int)ERFMG < ERFMG ? ERFMG : (int)ERFMG;
        }
  
        
 
 
        public override string ToString()
        {
            return string.Format("BWART(移动类型)={0},MATNR(物料号)={1},WERKS(工厂)={2},LGORT(转出库位)={3},SOBKZ(特殊类型)={4},LIFNR(供应商)={5},KDAUF(销售订单)={6}, KDPOS(销售订单项)={7},ERFMG(数量)={8},ERFME(单位)={9},CHARG(工作台)={10},SERNR(序列号)={11},UMLGO(转入库位)={12},BWTAR(验证类型)={13}", BWART, MATNR, WERKS, LGORT, SOBKZ, LIFNR, KDAUF, KDPOS, ERFMG, ERFME, CHARG, SERNR, UMLGO, BWTAR);  
        }
 
 
    }
}