56 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
 | |
| /// <summary>
 | |
| ///INTERFACE CLASS FOR TABLE t_ProjectDetail
 | |
| ///By wm with codesmith. 
 | |
| ///on 04/18/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 ProjectDetail : ProjectDetail_base
 | |
|     {
 | |
|         public ProjectDetail()
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         public ProjectDetail(int id): base(id)
 | |
|         {
 | |
| 
 | |
|         }
 | |
|         protected override void getImp()
 | |
|         {
 | |
|             model_imp = new ProjectDetail_Imp();
 | |
| 
 | |
|         }
 | |
|         //begin cust db operation, query, excute sql etc.
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 返回某项目明细
 | |
|         /// </summary>
 | |
|         /// <param name="projectId"></param>
 | |
|         /// <returns></returns>
 | |
|         public DataTable GetProjectDetails(int projectId)
 | |
|         {
 | |
|             cmdParameters[0] = projectId;
 | |
|             return CustQuery(100).Tables[0];
 | |
|         }
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 项目明细的附件信息
 | |
|         /// </summary>
 | |
|         /// <returns></returns>
 | |
|         public DataTable GetFiles()
 | |
|         {
 | |
|             return _id > 0 ? CustQuery(200).Tables[0] : new DataTable();
 | |
|         }
 | |
|     }
 | |
| }
 |