public static bool UpdateTaxRate(int taxId, decimal taxRate, string code, string CodeDescription) { //修改添加行邮编码支持 TaxRateDao taxRateDao = new TaxRateDao(); if (taxRateDao.GetTaxRate(taxId, code) <= 0) { return(new TaxRateDao().UpdateTaxRate(taxId, taxRate, code, CodeDescription)); } return(false); }
public static int AddTaxRate(decimal taxRate, string code, string CodeDescription) { //修改添加行邮编码支持 TaxRateDao taxRateDao = new TaxRateDao(); int result = 0; if (taxRateDao.GetTaxRate(0, code) <= 0) { result = taxRateDao.AddTaxRate(taxRate, code, CodeDescription); } return(result); }
public TaxLicenceView(int UserId, TaxRateDao dao) : this() { }
public TaxRateView(int UserId, TaxRateDao dao) : this() { m_presenter = new TaxRatePresenter(this, dao); }
public TaxRatePresenter(ITaxRateView p_view, TaxRateDao p_taxRateDao) { m_view = p_view; m_taxRateDao = p_taxRateDao; }