protected void Page_Load(object sender, EventArgs e) { Master.Holdermenu6 = "用车管理 » 用车申请"; if (!Page.IsPostBack) { BindGridView(); List <usecartype> TypeList = new YunShanOA.BusinessLogic.UseCar.UseTypeManager().GetUsecarTypeList(); this.ddlCarType.DataSource = TypeList; ddlCarType.DataTextField = "UseCarTypeName"; ddlCarType.DataValueField = "UseCarTypeID"; ddlCarType.DataBind(); this.ddlCarType.SelectedValue = "1"; this.lblcarCount.Text = new CarManager().GetCarByTAndS(int.Parse(this.ddlCarType.SelectedValue), 2).Count().ToString(); text(); } }
protected void Page_Load(object sender, EventArgs e) { Master.Holdermenu6 = "用车管理 » 用车申请"; if (!Page.IsPostBack) { BindGridView(); List<usecartype> TypeList = new YunShanOA.BusinessLogic.UseCar.UseTypeManager().GetUsecarTypeList(); this.ddlCarType.DataSource = TypeList; ddlCarType.DataTextField = "UseCarTypeName"; ddlCarType.DataValueField = "UseCarTypeID"; ddlCarType.DataBind(); this.ddlCarType.SelectedValue = "1"; this.lblcarCount.Text = new CarManager().GetCarByTAndS(int.Parse(this.ddlCarType.SelectedValue), 2).Count().ToString(); text(); } }