示例#1
0
        private void BindGrid()
        {
            DataTable dt = TaxRate.GetAll(siteSettings.SiteGuid, geoZoneGuid);
            DataView  dv = dt.DefaultView;

            dv.Sort = sort;
            grdTaxRate.DataSource = dv;
            grdTaxRate.DataBind();
        }
示例#2
0
        private void InitViewBag(PurchaseInvoiceComplex info)
        {
            // 公司供應商廠商名稱
            ViewBag.CompanyList =
                new SelectList(this._GlobalService.GetCompanyShortNameList(), "Key", "Value", null);

            // 課稅別
            ViewBag.TaxLevelList =
                new SelectList(TaxLevel.GetAll(), "Value", "Text", null);

            // 營業稅率
            ViewBag.TaxRateList =
                new SelectList(TaxRate.GetAll(), "Value", "Text", null);

            // 狀態
            ViewBag.InvoiceStatusList =
                new SelectList(InvoiceStatus.GetAll(), "Value", "Text", null);
        }