Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public TaxLicenceView(int UserId, TaxRateDao dao) : this()
 {
 }
Example #4
0
 public TaxRateView(int UserId, TaxRateDao dao) : this()
 {
     m_presenter = new TaxRatePresenter(this, dao);
 }
Example #5
0
 public TaxRatePresenter(ITaxRateView p_view, TaxRateDao p_taxRateDao)
 {
     m_view       = p_view;
     m_taxRateDao = p_taxRateDao;
 }