/// ///INTERFACE CLASS FOR TABLE t_ProjectDetail ///By wm with codesmith. ///on 04/18/2017 /// 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. /// /// 返回某项目明细 /// /// /// public DataTable GetProjectDetails(int projectId) { cmdParameters[0] = projectId; return CustQuery(100).Tables[0]; } /// /// 项目明细的附件信息 /// /// public DataTable GetFiles() { return _id > 0 ? CustQuery(200).Tables[0] : new DataTable(); } } }