| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | /// <summary> | 
					
						
							|  |  |  |  | ///Data Object  | 
					
						
							|  |  |  |  | ///BASIC CLASS FOR TABLE t_erp_purch_d | 
					
						
							|  |  |  |  | ///By wm   | 
					
						
							| 
									
										
										
										
											2024-02-06 19:36:47 +08:00
										 |  |  |  | ///on 01/13/2024 | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | /// </summary> | 
					
						
							|  |  |  |  |   | 
					
						
							|  |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Data; | 
					
						
							|  |  |  |  | using DeiNiu.Data.BaseObject; | 
					
						
							|  |  |  |  |   | 
					
						
							|  |  |  |  | namespace  DeiNiu.wms.Data.Model | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 	#region Erp_purch_d_base | 
					
						
							|  |  |  |  | 	/// <summary> | 
					
						
							|  |  |  |  | 	/// This object represents the properties and methods of a Erp_purch_d_base. | 
					
						
							|  |  |  |  |     /// </summary> | 
					
						
							|  |  |  |  |     [Serializable] | 
					
						
							|  |  |  |  | 	public class Erp_purch_d_base  : BaseModel {  | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |                         | 
					
						
							|  |  |  |  |                     internal string _pur_order = String.Empty,_Opur_order= String.Empty;    | 
					
						
							|  |  |  |  |                     internal int _pur_order_sn,_Opur_order_sn;    | 
					
						
							| 
									
										
										
										
											2024-02-06 19:36:47 +08:00
										 |  |  |  |                     internal decimal _packingQty,_OpackingQty;    | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  |                     internal string _goods_id = String.Empty,_Ogoods_id= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _batch = String.Empty,_Obatch= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _productDate = String.Empty,_OproductDate= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _validDate = String.Empty,_OvalidDate= String.Empty;    | 
					
						
							|  |  |  |  |                     internal decimal _count,_Ocount;    | 
					
						
							|  |  |  |  |                     internal decimal _arriveCount,_OarriveCount;    | 
					
						
							|  |  |  |  |                     internal decimal _receiveCount,_OreceiveCount;    | 
					
						
							|  |  |  |  |                     internal string _receiveRemark = String.Empty,_OreceiveRemark= String.Empty;    | 
					
						
							|  |  |  |  |                     internal decimal _rejectCount,_OrejectCount;    | 
					
						
							|  |  |  |  |                     internal decimal _validCount,_OvalidCount;    | 
					
						
							|  |  |  |  |                     internal decimal _onShelfCount,_OonShelfCount;    | 
					
						
							|  |  |  |  |                     internal int _storeType,_OstoreType;    | 
					
						
							|  |  |  |  |                     internal int _zhitongPartion,_OzhitongPartion;    | 
					
						
							|  |  |  |  |                     internal string _customerId = String.Empty,_OcustomerId= String.Empty;    | 
					
						
							|  |  |  |  |                     internal decimal _custQty,_OcustQty;    | 
					
						
							|  |  |  |  |                     internal string _custPoNo = String.Empty,_OcustPoNo= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _custNote = String.Empty,_OcustNote= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _add_date = String.Empty,_Oadd_date= String.Empty;    | 
					
						
							|  |  |  |  |                     internal int _erp_state,_Oerp_state;    | 
					
						
							|  |  |  |  |                     internal int _wms_state,_Owms_state;    | 
					
						
							|  |  |  |  |                     internal decimal _price,_Oprice;    | 
					
						
							|  |  |  |  |                     internal string _ext1 = String.Empty,_Oext1= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _ext2 = String.Empty,_Oext2= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _ext3 = String.Empty,_Oext3= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _ext4 = String.Empty,_Oext4= String.Empty;    | 
					
						
							|  |  |  |  |                     internal int _Ooperater;    | 
					
						
							|  |  |  |  |                         | 
					
						
							|  |  |  |  |                     internal string _createtime = String.Empty,_Ocreatetime= String.Empty;    | 
					
						
							|  |  |  |  |                         | 
					
						
							|  |  |  |  |                     internal bool _ERP_Down,_OERP_Down;    | 
					
						
							|  |  |  |  |                     internal string _ERP_Down_Date = String.Empty,_OERP_Down_Date= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _ERP_Down_User = String.Empty,_OERP_Down_User= String.Empty;    | 
					
						
							|  |  |  |  |                     internal string _entid = String.Empty,_Oentid= String.Empty;    | 
					
						
							|  |  |  |  | 		 | 
					
						
							|  |  |  |  | 		public  Erp_purch_d_base () { | 
					
						
							|  |  |  |  | 		} | 
					
						
							|  |  |  |  | 		public  Erp_purch_d_base (int id) { | 
					
						
							|  |  |  |  | 			_id=id; | 
					
						
							|  |  |  |  | 			getModel(); | 
					
						
							|  |  |  |  | 		} | 
					
						
							|  |  |  |  | 		public  Erp_purch_d_base(DataRow dr) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             getModel(dr); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |           public Erp_purch_d_base(System.Data.SqlClient.SqlConnection _Conn) | 
					
						
							|  |  |  |  |             : base(_Conn)  | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  |           protected override void getImp() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             model_imp = new Erp_purch_d_base_Imp();   | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 		#region Public Properties  | 
					
						
							|  |  |  |  |         public string  pur_order{ | 
					
						
							|  |  |  |  | 			get {return _pur_order;} | 
					
						
							|  |  |  |  | 			 set {_pur_order = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  int   pur_order_sn{ | 
					
						
							|  |  |  |  | 			get {return _pur_order_sn;} | 
					
						
							|  |  |  |  | 			 set {_pur_order_sn = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							| 
									
										
										
										
											2024-02-06 19:36:47 +08:00
										 |  |  |  |         public  decimal   packingQty{ | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 			get {return _packingQty;} | 
					
						
							|  |  |  |  | 			 set {_packingQty = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  goods_id{ | 
					
						
							|  |  |  |  | 			get {return _goods_id;} | 
					
						
							|  |  |  |  | 			 set {_goods_id = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  batch{ | 
					
						
							|  |  |  |  | 			get {return _batch;} | 
					
						
							|  |  |  |  | 			 set {_batch = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  productDate{ | 
					
						
							|  |  |  |  | 			get {return _productDate;} | 
					
						
							|  |  |  |  | 			 set {_productDate = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  validDate{ | 
					
						
							|  |  |  |  | 			get {return _validDate;} | 
					
						
							|  |  |  |  | 			 set {_validDate = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   count{ | 
					
						
							|  |  |  |  | 			get {return _count;} | 
					
						
							|  |  |  |  | 			 set {_count = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   arriveCount{ | 
					
						
							|  |  |  |  | 			get {return _arriveCount;} | 
					
						
							|  |  |  |  | 			 set {_arriveCount = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   receiveCount{ | 
					
						
							|  |  |  |  | 			get {return _receiveCount;} | 
					
						
							|  |  |  |  | 			 set {_receiveCount = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  receiveRemark{ | 
					
						
							|  |  |  |  | 			get {return _receiveRemark;} | 
					
						
							|  |  |  |  | 			 set {_receiveRemark = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   rejectCount{ | 
					
						
							|  |  |  |  | 			get {return _rejectCount;} | 
					
						
							|  |  |  |  | 			 set {_rejectCount = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   validCount{ | 
					
						
							|  |  |  |  | 			get {return _validCount;} | 
					
						
							|  |  |  |  | 			 set {_validCount = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   onShelfCount{ | 
					
						
							|  |  |  |  | 			get {return _onShelfCount;} | 
					
						
							|  |  |  |  | 			 set {_onShelfCount = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  int   storeType{ | 
					
						
							|  |  |  |  | 			get {return _storeType;} | 
					
						
							|  |  |  |  | 			 set {_storeType = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  int   zhitongPartion{ | 
					
						
							|  |  |  |  | 			get {return _zhitongPartion;} | 
					
						
							|  |  |  |  | 			 set {_zhitongPartion = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  customerId{ | 
					
						
							|  |  |  |  | 			get {return _customerId;} | 
					
						
							|  |  |  |  | 			 set {_customerId = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   custQty{ | 
					
						
							|  |  |  |  | 			get {return _custQty;} | 
					
						
							|  |  |  |  | 			 set {_custQty = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  custPoNo{ | 
					
						
							|  |  |  |  | 			get {return _custPoNo;} | 
					
						
							|  |  |  |  | 			 set {_custPoNo = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  custNote{ | 
					
						
							|  |  |  |  | 			get {return _custNote;} | 
					
						
							|  |  |  |  | 			 set {_custNote = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  add_date{ | 
					
						
							|  |  |  |  | 			get {return _add_date;} | 
					
						
							|  |  |  |  | 			 set {_add_date = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  int   erp_state{ | 
					
						
							|  |  |  |  | 			get {return _erp_state;} | 
					
						
							|  |  |  |  | 			 set {_erp_state = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  int   wms_state{ | 
					
						
							|  |  |  |  | 			get {return _wms_state;} | 
					
						
							|  |  |  |  | 			 set {_wms_state = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  decimal   price{ | 
					
						
							|  |  |  |  | 			get {return _price;} | 
					
						
							|  |  |  |  | 			 set {_price = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  ext1{ | 
					
						
							|  |  |  |  | 			get {return _ext1;} | 
					
						
							|  |  |  |  | 			 set {_ext1 = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  ext2{ | 
					
						
							|  |  |  |  | 			get {return _ext2;} | 
					
						
							|  |  |  |  | 			 set {_ext2 = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  ext3{ | 
					
						
							|  |  |  |  | 			get {return _ext3;} | 
					
						
							|  |  |  |  | 			 set {_ext3 = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  ext4{ | 
					
						
							|  |  |  |  | 			get {return _ext4;} | 
					
						
							|  |  |  |  | 			 set {_ext4 = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  int   operater{ | 
					
						
							|  |  |  |  | 			get {return _operater;} | 
					
						
							|  |  |  |  | 			 set {_operater = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  bool   dr{ | 
					
						
							|  |  |  |  | 			get {return _dr;} | 
					
						
							|  |  |  |  | 			    | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  createtime{ | 
					
						
							|  |  |  |  | 			get {return _createtime;} | 
					
						
							|  |  |  |  | 			 set {_createtime = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  lastmodified{ | 
					
						
							|  |  |  |  | 			get {return _lastmodified;} | 
					
						
							|  |  |  |  | 			    | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public  bool   ERP_Down{ | 
					
						
							|  |  |  |  | 			get {return _ERP_Down;} | 
					
						
							|  |  |  |  | 			 set {_ERP_Down = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  ERP_Down_Date{ | 
					
						
							|  |  |  |  | 			get {return _ERP_Down_Date;} | 
					
						
							|  |  |  |  | 			 set {_ERP_Down_Date = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  ERP_Down_User{ | 
					
						
							|  |  |  |  | 			get {return _ERP_Down_User;} | 
					
						
							|  |  |  |  | 			 set {_ERP_Down_User = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |         public string  entid{ | 
					
						
							|  |  |  |  | 			get {return _entid;} | 
					
						
							|  |  |  |  | 			 set {_entid = value;}     | 
					
						
							|  |  |  |  | 		}   | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  | 		  | 
					
						
							|  |  |  |  | 		#endregion | 
					
						
							|  |  |  |  |                   | 
					
						
							|  |  |  |  |       #region fieldNames  | 
					
						
							|  |  |  |  |       public enum fields{pur_order,pur_order_sn,packingQty,goods_id,batch,productDate,validDate,count,arriveCount,receiveCount,receiveRemark,rejectCount,validCount,onShelfCount,storeType,zhitongPartion,customerId,custQty,custPoNo,custNote,add_date,erp_state,wms_state,price,ext1,ext2,ext3,ext4,operater,ERP_Down,ERP_Down_Date,ERP_Down_User,entid} | 
					
						
							|  |  |  |  |       #endregion | 
					
						
							|  |  |  |  |      | 
					
						
							|  |  |  |  | 	 | 
					
						
							|  |  |  |  | 	} | 
					
						
							|  |  |  |  | 	#endregion | 
					
						
							|  |  |  |  | } |