78 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
 | |
| /// <summary>
 | |
| ///INTERFACE CLASS FOR TABLE t_erp_pandian
 | |
| ///By wm  
 | |
| ///on 06/08/2023
 | |
| /// </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_pandian : Erp_pandian_base
 | |
|     {
 | |
|         public Erp_pandian()
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         public Erp_pandian(int id): base(id)
 | |
|         {
 | |
| 
 | |
|         }
 | |
|         public Erp_pandian(DataRow dr): base(dr)
 | |
|         {
 | |
| 
 | |
|         }
 | |
|       protected override void getImp()
 | |
|         {
 | |
|             model_imp = new Erp_pandian_Imp();  
 | |
|         }
 | |
| 
 | |
|         //begin cust db operation, query, excute sql etc.
 | |
|         public DataTable getOrder(string orderNo)
 | |
|         {
 | |
|             cmdParameters[0] = orderNo;
 | |
|             return CustQuery(100).Tables[0];
 | |
|         }
 | |
| 
 | |
|         public  Erp_pandian getGoodsSumary(string orderNo,string goodsId)
 | |
|         {
 | |
|             cmdParameters[0] = orderNo;
 | |
|             cmdParameters[1] = goodsId;
 | |
|             DataTable dt = CustQuery(200).Tables[0];
 | |
|             foreach (DataRow dr in dt.Rows)
 | |
|             {
 | |
|                 return new Erp_pandian(dr);
 | |
|             }
 | |
|             return new Erp_pandian();
 | |
|         }
 | |
| 
 | |
|        /* public List< Erp_pandian> getGoodsDetail(string goodsId)
 | |
|         {
 | |
|             cmdParameters[0] = goodsId;
 | |
|             List<Erp_pandian> pands = new List<Erp_pandian>();
 | |
|             DataTable dt = CustQuery(300).Tables[0];
 | |
|             foreach (DataRow dr in dt.Rows)
 | |
|             {
 | |
|                 pands.Add ( new Erp_pandian(dr));
 | |
|             }
 | |
|             return pands;
 | |
|         }*/
 | |
|         public DataTable getGoodsDetail(string orderNo,string goodsId)
 | |
|         {
 | |
|             cmdParameters[0] = orderNo;
 | |
|             cmdParameters[1] = goodsId;
 | |
| 
 | |
|             return CustQuery(300).Tables[0];
 | |
|           
 | |
|         }
 | |
| 
 | |
|     }
 | |
| }
 | |
|   |