89 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			89 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
 | |
| /// <summary>
 | |
| ///INTERFACE CLASS FOR TABLE t_wmsOutPickLable_tmp
 | |
| ///By wm with codesmith. 
 | |
| ///on 05/23/2017
 | |
| /// </summary>
 | |
| 
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Data;
 | |
| 
 | |
| namespace DeiNiu.wms.Data.Model
 | |
| {
 | |
|     [Serializable]
 | |
|     public class WmsOutPickLable_tmp : WmsOutPickLable_tmp_base
 | |
|     {
 | |
|         public WmsOutPickLable_tmp()
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         public WmsOutPickLable_tmp(int id): base(id)
 | |
|         {
 | |
| 
 | |
|         }
 | |
|         public WmsOutPickLable_tmp(DataRow dr): base(dr)
 | |
|         {
 | |
| 
 | |
|         }
 | |
|         public WmsOutPickLable_tmp (int color, int elabId, int elabAddress)
 | |
|         {
 | |
|             cmdParameters[0] = color;
 | |
|             cmdParameters[1] = elabId;
 | |
|             cmdParameters[2] = elabAddress;
 | |
|             DataTable dt = CustQuery(100).Tables[0];
 | |
|             if (dt.Rows.Count > 0)
 | |
|             {
 | |
|                 getModel(dt.Rows[0]);
 | |
|             }
 | |
| 
 | |
| 
 | |
|         }
 | |
|         public WmsOutPickLable_tmp(int color, int elabId, int elabAddress,int pickCount )
 | |
|         {
 | |
|             cmdParameters[0] = color;
 | |
|             cmdParameters[1] = elabId;
 | |
|             cmdParameters[2] = elabAddress;
 | |
|             cmdParameters[3] = pickCount;
 | |
|             DataTable dt = CustQuery(200).Tables[0];
 | |
|             if (dt.Rows.Count > 0)
 | |
|             {
 | |
|                 getModel(dt.Rows[0]);
 | |
|             }
 | |
| 
 | |
| 
 | |
|         }
 | |
|         protected override void getImp()
 | |
|         {
 | |
|             model_imp = new WmsOutPickLable_tmp_Imp();
 | |
| 
 | |
|         }
 | |
|        
 | |
|         //begin cust db operation, query, excute sql etc.
 | |
|         public DataSet QueryByName(string name)
 | |
|         {
 | |
|             cmdParameters[0] = name;
 | |
|             return  CustQuery(100);
 | |
|         }
 | |
| 
 | |
|         public int clearByDpsOrder(string jobNo)
 | |
|         {
 | |
|             cmdParameters[0] = jobNo;
 | |
|           return  CustOper(300);
 | |
|         }
 | |
|         public DataTable getByDpsOrder(string jobNo)
 | |
|         {
 | |
|             cmdParameters[0] = jobNo;
 | |
|             return CustQuery(400).Tables[0];
 | |
|         }
 | |
|         public int clearByPartion(int partion)
 | |
|         {
 | |
|             cmdParameters[0] = partion;
 | |
|             return CustOper(500);
 | |
|         }
 | |
|     }
 | |
| }
 | |
|   |