70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
	
	
|  |  | |||
|  | /// <summary> | |||
|  | ///INTERFACE CLASS FOR TABLE t_erp_purch_ship | |||
|  | ///By wm   | |||
|  | ///on 06/19/2018 | |||
|  | /// </summary> | |||
|  | 
 | |||
|  | using System; | |||
|  | using System.Collections.Generic; | |||
|  | using System.Linq; | |||
|  | using System.Text; | |||
|  | using System.Data; | |||
|  | 
 | |||
|  | namespace DeiNiu.wms.Data.Model | |||
|  | { | |||
|  |     [Serializable] | |||
|  |     public class Erp_purch_ship : Erp_purch_ship_base | |||
|  |     { | |||
|  |         public Erp_purch_ship() | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  | 
 | |||
|  |         public Erp_purch_ship(int id): base(id) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |         public Erp_purch_ship(DataRow dr): base(dr) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |       protected override void getImp() | |||
|  |         { | |||
|  |             model_imp = new Erp_purch_ship_Imp();   | |||
|  |         } | |||
|  | 
 | |||
|  |         //begin cust db operation, query, excute sql etc. | |||
|  |       public DataTable queryByPurOrder(string orderNo) | |||
|  |         { | |||
|  |             cmdParameters[0] = orderNo; | |||
|  |             return  CustQuery(100).Tables[0]; | |||
|  |         } | |||
|  | 
 | |||
|  |       public DataTable getShipReceiveDetail(string shipNo) | |||
|  |       { | |||
|  |           cmdParameters[0] = shipNo; | |||
|  |           return CustQuery(200).Tables[0]; | |||
|  |       } | |||
|  | 
 | |||
|  |       public DataTable getShipReceiveDetail(int shipId) | |||
|  |       { | |||
|  |           cmdParameters[0] = shipId; | |||
|  |           return CustQuery(201).Tables[0]; | |||
|  |       } | |||
|  | 
 | |||
|  |       public DataTable getShipDetail(string shipNo) | |||
|  |       { | |||
|  |           cmdParameters[0] = shipNo; | |||
|  |           return CustQuery(300).Tables[0]; | |||
|  |       } | |||
|  | 
 | |||
|  |       public DataSet QueryPages(string querystr, int rownumStart, int rownumEnd) | |||
|  |       { | |||
|  |           this.rownumEnd = rownumEnd; | |||
|  |           this.rownumStart = rownumStart; | |||
|  |           return this.Query(getCondition(querystr)); | |||
|  |       } | |||
|  |     } | |||
|  | } | |||
|  |   |