70 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			70 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
|  |  | |||
|  | /// <summary> | |||
|  | ///INTERFACE CLASS FOR TABLE t_wmsOutBox | |||
|  | ///By wm   | |||
|  | ///on 04/08/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 WmsOutBox : WmsOutBox_base | |||
|  |     { | |||
|  |         public WmsOutBox() | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  | 
 | |||
|  |         public WmsOutBox(int id): base(id) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |         public WmsOutBox(DataRow dr): base(dr) | |||
|  |         { | |||
|  | 
 | |||
|  |         } | |||
|  |       protected override void getImp() | |||
|  |         { | |||
|  |             model_imp = new WmsOutBox_Imp();   | |||
|  |         } | |||
|  | 
 | |||
|  |         //begin cust db operation, query, excute sql etc. | |||
|  |         public DataTable getboxIById(string boxid) | |||
|  |         { | |||
|  |             cmdParameters[0] = boxid; | |||
|  |             return  CustQuery(100).Tables[0]; | |||
|  |         } | |||
|  | 
 | |||
|  |         public bool deleteByBoxId(string boxid) | |||
|  |         { | |||
|  |             cmdParameters[0] = boxid; | |||
|  |             return CustOper(200) >0; | |||
|  |         } | |||
|  |           | |||
|  | 
 | |||
|  |         public DataSet getBoxWaves() | |||
|  |         { | |||
|  |             return CustQuery(300); | |||
|  |         } | |||
|  |           | |||
|  |         public DataTable getBoxsByWave(string waveOrder,int color) | |||
|  |         { | |||
|  |             cmdParameters[0] = waveOrder; | |||
|  |              | |||
|  |             if (color > 0) | |||
|  |             { | |||
|  |                 cmdParameters[1] = color; | |||
|  |                 return CustQuery(500).Tables[0]; | |||
|  |             } | |||
|  |             else return  CustQuery(400).Tables[0];; | |||
|  | 
 | |||
|  |         } | |||
|  |     } | |||
|  | } | |||
|  |   |