/// ///INTERFACE CLASS FOR TABLE t_erp_sale_d ///By wm ///on 02/10/2021 /// using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace DeiNiu.wms.Data.Model { [Serializable] public class Erp_sale_d : Erp_sale_d_base { public Erp_sale_d() { } public Erp_sale_d(int id) : base(id) { } public Erp_sale_d(DataRow dr) : base(dr) { } protected override void getImp() { model_imp = new Erp_sale_d_Imp(); } //begin cust db operation, query, excute sql etc. public DataSet QueryByName(string name) { cmdParameters[0] = name; return CustQuery(100); } public List getList(string orderNo) { List lst = new List(); cmdParameters[0] = orderNo; DataTable dt = CustQuery(200).Tables[0]; foreach (DataRow dr in dt.Rows) { lst.Add(new Erp_sale_d(dr)); } return lst; } } }