121 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			121 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
	
|  |  | |||
|  | /// <summary> | |||
|  | ///LOGIC CLASS FOR TABLE t_wmsOutRequest | |||
|  | ///By wm with codesmith.  | |||
|  | ///on 05/18/2017 | |||
|  | /// </summary> | |||
|  | 
 | |||
|  | using System; | |||
|  | using System.Collections.Generic; | |||
|  | using System.Linq; | |||
|  | using System.Text; | |||
|  | using DeiNiu.wms.Data.Model; | |||
|  | using System.Data; | |||
|  | using System.Transactions; | |||
|  | using DeiNiu.Utils; | |||
|  | using System.Threading; | |||
|  | using System.ServiceModel; | |||
|  | 
 | |||
|  | namespace DeiNiu.wms.Logical | |||
|  | { | |||
|  |     [Serializable] | |||
|  |     public class lWmsOutRequest  :lbase | |||
|  |     { | |||
|  |         WmsOutRequest _obj; | |||
|  |         WmsOutPickRequest _pickRequestObj; | |||
|  |         public lWmsOutRequest(int operId):base(operId) | |||
|  |         { | |||
|  |             initialize();        | |||
|  |         } | |||
|  |         public lWmsOutRequest() | |||
|  |         { | |||
|  |              initialize(); | |||
|  |         } | |||
|  | 
 | |||
|  |         public WmsOutPickRequest  pickRequestObj | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_pickRequestObj == null) | |||
|  |                 { | |||
|  |                     _pickRequestObj = new WmsOutPickRequest(); | |||
|  |                 } | |||
|  |                 return _pickRequestObj; | |||
|  |             } | |||
|  |         } | |||
|  |         public  WmsOutRequest getWmsOutRequest | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_obj == null) | |||
|  |                 { | |||
|  |                     _obj = new WmsOutRequest(); | |||
|  |                 } | |||
|  |                 return _obj; | |||
|  |             } | |||
|  |         } | |||
|  |    | |||
|  | 		/// <summary> | |||
|  | 		/// get all data | |||
|  | 		/// </summary> | |||
|  |         public DataSet getAllData() | |||
|  |         { | |||
|  |            return getWmsOutRequest.Query(); | |||
|  |         } | |||
|  | 
 | |||
|  |         /// <summary> | |||
|  |         /// get all data | |||
|  |         /// </summary> | |||
|  |         public DataSet getAllActiveData() | |||
|  |         { | |||
|  |             return getWmsOutRequest.QueryActived(); | |||
|  |         } | |||
|  | 
 | |||
|  | 
 | |||
|  | 
 | |||
|  | 		/// <summary> | |||
|  | 		/// get a record by id | |||
|  | 		/// </summary> | |||
|  |         public void initialize(int id) | |||
|  | 		{ | |||
|  |             _obj = id != 0 ? new WmsOutRequest(id) : new WmsOutRequest(); | |||
|  | 		} | |||
|  | 
 | |||
|  |         /// <summary> | |||
|  | 		/// get a record by id 0 | |||
|  | 		/// </summary> | |||
|  |         public void initialize() | |||
|  |         { | |||
|  |             initialize(0); | |||
|  |         } | |||
|  | 
 | |||
|  |          /// <summary> | |||
|  |         /// get a record by id | |||
|  |         /// </summary> | |||
|  |         public void initialize(DataRow dr) | |||
|  |         { | |||
|  |             _obj = new WmsOutRequest(dr); | |||
|  |         } | |||
|  | 
 | |||
|  |         protected override DeiNiu.Data.BaseObject.BaseModel getModel() | |||
|  |         { | |||
|  |             return getWmsOutRequest; | |||
|  |         } | |||
|  | 
 | |||
|  |         //begin cust db operation, query, excute sql etc. | |||
|  |          | |||
|  |      | |||
|  |          private bool valid() | |||
|  |         { | |||
|  |             return true; | |||
|  |         } | |||
|  | 
 | |||
|  |          | |||
|  | 
 | |||
|  |           | |||
|  |    | |||
|  |     } | |||
|  |      | |||
|  |      | |||
|  | } | |||
|  |   |