using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpSupplierProduct")] public class CeErpSupplierProduct : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private int _supplierID = 0; /// ///供应商 /// [Property] public int SupplierID { get { return _supplierID; } set { _supplierID = value; } } private int _productID = 0; /// ///产品类型 /// [Property] public int ProductID { get { return _productID; } set { _productID = value; } } private string _productCrafts = ""; /// ///产品工艺 /// [Property] public string ProductCrafts { get { return _productCrafts; } set { _productCrafts = value; } } private int _minNum = 0; /// /// /// [Property] public int MinNum { get { return _minNum; } set { _minNum = value; } } private int _maxNum = 0; /// /// /// [Property] public int MaxNum { get { return _maxNum; } set { _maxNum = value; } } private string _area = ""; /// ///地区 /// [Property] public string Area { get { return _area; } set { _area = value; } } private double _sizeL = 0; /// /// /// [Property] public double SizeL { get { return _sizeL; } set { _sizeL = value; } } private double _sizeW = 0; /// /// /// [Property] public double SizeW { get { return _sizeW; } set { _sizeW = value; } } private int _bsort = 0; /// ///排序 /// [Property] public int Bsort { get { return _bsort; } set { _bsort = value; } } private string _crafts = ""; /// /// /// [Property] public string Crafts { get { return _crafts; } set { _crafts = value; } } private string _productText = ""; /// ///产品名字 /// [Property] public string ProductText { get { return _productText; } set { _productText = value; } } private string _productIds = ""; /// ///产品ID /// [Property] public string ProductIds { get { return _productIds; } set { _productIds = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpSupplierProduct where id=" + id); ExecuteNonQuery(sql.ToString()); } } }