122 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			122 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C#
		
	
	
	
|  | /// <summary> | |||
|  | ///WCF Data Object  | |||
|  | ///BASIC CLASS FOR TABLE t_Lot | |||
|  | ///By wm   | |||
|  | ///on 08/07/2018 | |||
|  | /// </summary> | |||
|  |   | |||
|  | using System; | |||
|  | using System.Collections.Generic; | |||
|  | using System.Linq; | |||
|  | using System.Web; | |||
|  | using System.Runtime.Serialization; | |||
|  | using DeiNiu.wms.Data.Model; | |||
|  | 
 | |||
|  | namespace DeiNiu.Wcf  | |||
|  | { | |||
|  | 
 | |||
|  | 	#region WcfLot | |||
|  | 	/// <summary> | |||
|  | 	/// This object represents the properties and methods of a WcfLot. | |||
|  |     /// </summary> | |||
|  |     [DataContract] | |||
|  | 	public class WcfLot  {  | |||
|  | 
 | |||
|  |                     internal int _ID;    | |||
|  |                     internal string _lotName = String.Empty;    | |||
|  |                     internal string _description = String.Empty;    | |||
|  |                     internal int _operater;    | |||
|  |                     internal string _lastmodified = String.Empty;    | |||
|  |                     internal string _createtime = String.Empty;    | |||
|  |                     internal bool _dr;    | |||
|  | 		 | |||
|  | 		public  WcfLot () { | |||
|  | 		} | |||
|  | 		  | |||
|  |       | |||
|  | 		#region Public Properties  | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public  int   ID{ | |||
|  | 			get {return _ID;} | |||
|  | 			 set {_ID = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public string  lotName{ | |||
|  | 			get {return _lotName;} | |||
|  | 			 set {_lotName = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public string  description{ | |||
|  | 			get {return _description;} | |||
|  | 			 set {_description = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public  int   operater{ | |||
|  | 			get {return _operater;} | |||
|  | 			 set {_operater = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public string  lastmodified{ | |||
|  | 			get {return _lastmodified;} | |||
|  | 			 set {_lastmodified = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public string  createtime{ | |||
|  | 			get {return _createtime;} | |||
|  | 			 set {_createtime = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  |        | |||
|  |        [DataMember] | |||
|  |         public  bool   dr{ | |||
|  | 			get {return _dr;} | |||
|  | 			 set {_dr = value;}   | |||
|  | 		}   | |||
|  |          | |||
|  | 		  | |||
|  | 		#endregion | |||
|  |               | |||
|  | 	public  Lot getDbObject(){    | |||
|  |      | |||
|  |           Lot dbObj = new  Lot(ID);      | |||
|  |           dbObj.ID = ID;   | |||
|  |           dbObj.lotName = lotName;   | |||
|  |           dbObj.description = description;   | |||
|  |           dbObj.operater = operater;   | |||
|  |            | |||
|  |            return dbObj; | |||
|  |      | |||
|  |         } | |||
|  |       | |||
|  | 	  | |||
|  |      | |||
|  |     	public  WcfLot getWcfObject( Lot dbObj){    | |||
|  |      | |||
|  |           WcfLot wcfObj = new  WcfLot();      | |||
|  |           wcfObj.ID = dbObj.ID;   | |||
|  |           wcfObj.lotName = dbObj.lotName;   | |||
|  |           wcfObj.description = dbObj.description;   | |||
|  |           wcfObj.operater = dbObj.operater;   | |||
|  |            | |||
|  |            return wcfObj; | |||
|  |      | |||
|  |         } | |||
|  |       | |||
|  | 	} | |||
|  |      | |||
|  |      | |||
|  |      | |||
|  | 	#endregion | |||
|  | } |