예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            long regionId = 0;

            if (!string.IsNullOrEmpty(Request.QueryString["regionId"]) && long.TryParse(Request.QueryString["regionId"], out regionId))
            {
                thisTaxRegion = genBll.GetSingleGeneral(regionId, true);
            }
            long cateId = 0;

            if (!string.IsNullOrEmpty(Request.QueryString["cateId"]) && long.TryParse(Request.QueryString["cateId"], out cateId))
            {
                thisTaxCate = genBll.GetSingleGeneral(cateId, true);
            }

            long id = 0;

            if (!string.IsNullOrEmpty(Request.QueryString["id"]) && long.TryParse(Request.QueryString["id"], out id))
            {
                thisCate = genBll.GetRegionCate(id);
            }
            if (thisCate != null)
            {
                isAdd         = false;
                thisTaxRegion = genBll.GetSingleGeneral(thisCate.tax_region_id, true);
                thisTaxCate   = genBll.GetSingleGeneral(thisCate.tax_cate_id, true);
                taxList       = genBll.GetCateTaxList(thisCate.id);
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            long regionCateId = 0;

            if (!string.IsNullOrEmpty(Request.QueryString["regionCateId"]) && long.TryParse(Request.QueryString["regionCateId"], out regionCateId))
            {
                thisCate = genBll.GetRegionCate(regionCateId);
            }
            long id = 0;

            if (!string.IsNullOrEmpty(Request.QueryString["id"]) && long.TryParse(Request.QueryString["id"], out id))
            {
                thisCateTax = genBll.GetCateTax(id);
            }
            if (thisCateTax != null)
            {
                isAdd    = false;
                thisCate = genBll.GetRegionCate(thisCateTax.tax_region_cate_id);
            }

            if (thisCate == null)
            {
                Response.Write("<script>alert('未获取到税收类型信息!');window.close();</script>");
            }
        }