using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("CE_ErpInvoicingInfo")] public class CeErpInvoicingInfo : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _comName = ""; /// ///公司全名 /// [Property] public string ComName { get { return _comName; } set { _comName = value; } } private string _cName = ""; /// ///公司简称 /// [Property] public string CName { get { return _cName; } set { _cName = value; } } private string _tax = ""; /// ///税号 /// [Property] public string Tax { get { return _tax; } set { _tax = value; } } private string _address = ""; /// ///注册地址 /// [Property] public string Address { get { return _address; } set { _address = value; } } private string _phone = ""; /// ///注册电话 /// [Property] public string Phone { get { return _phone; } set { _phone = value; } } private string _bank = ""; /// ///开户行 /// [Property] public string Bank { get { return _bank; } set { _bank = value; } } private string _bankAcc = ""; /// ///开户账号 /// [Property] public string BankAcc { get { return _bankAcc; } set { _bankAcc = value; } } private string _billKey = ""; /// ///开票身份认证 /// [Property] public string BillKey { get { return _billKey; } set { _billKey = value; } } private string _legal = ""; /// ///法人 /// [Property] public string legal { get { return _legal; } set { _legal = value; } } private string _taxrate = ""; /// ///税率 /// [Property] public string taxrate { get { return _taxrate; } set { _taxrate = value; } } private double _limitPrice = 0; /// /// /// [Property] public double LimitPrice { get { return _limitPrice; } set { _limitPrice = value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from CE_ErpInvoicingInfo where id=" + id); ExecuteNonQuery(sql.ToString()); } } }