// 当用户导航到此页面时执行。 private void InitParas() { //permissionClient.GetSysDictionaryByCategoryCompleted += new EventHandler<SMT.Saas.Tools.PermissionWS.GetSysDictionaryByCategoryCompletedEventArgs>(permissionClient_GetSysDictionaryByCategoryCompleted); // permissionClientOther.GetSysDictionaryByFatherIDCompleted += new EventHandler<GetSysDictionaryByFatherIDCompletedEventArgs>(permissionClientOther_GetSysDictionaryByFatherIDCompleted); //地区差异补贴 client.GetAreaAllowanceByAreaIDCompleted += new EventHandler <GetAreaAllowanceByAreaIDCompletedEventArgs>(client_GetAreaAllowanceByAreaIDCompleted); //client.GetAreaAllowanceByIDCompleted += new EventHandler<GetAreaAllowanceByIDCompletedEventArgs>(client_GetAreaAllowanceByIDCompleted); //client.GetQueryProgramSubsidiesCompleted += new EventHandler<GetQueryProgramSubsidiesCompletedEventArgs>(client_GetQueryProgramSubsidiesCompleted); client.GetTravelSolutionFlowCompleted += new EventHandler <GetTravelSolutionFlowCompletedEventArgs>(client_GetTravelSolutionFlowCompleted); // 地区分类 client.GetAreaWithPagingCompleted += new EventHandler <GetAreaWithPagingCompletedEventArgs>(client_GetAreaWithPagingCompleted); ToolBar1.btnNew.Visibility = Visibility.Collapsed; ToolBar1.retNew.Visibility = Visibility.Collapsed; ToolBar1.btnDelete.Visibility = Visibility.Collapsed; ToolBar1.cbxCheckState.Visibility = Visibility.Collapsed; ToolBar1.txtCheckStateName.Visibility = Visibility.Collapsed; ToolBar1.btnEdit.Visibility = Visibility.Collapsed; //ToolBar1.btnEdit.Click += new RoutedEventHandler(btnEdit_Click); ToolBar1.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click); ToolBar1.btnAudit.Visibility = Visibility.Collapsed; ToolBar1.BtnView.Visibility = Visibility.Collapsed; ToolBar1.retRead.Visibility = Visibility.Collapsed; ToolBar1.retAudit.Visibility = Visibility.Collapsed; ToolBar1.retDelete.Visibility = Visibility.Collapsed; ToolBar1.ShowRect(); //开始获取数据 PostLevelDicts = (from a in Application.Current.Resources["SYS_DICTIONARY"] as List <T_SYS_DICTIONARY> where a.DICTIONCATEGORY == "POSTLEVEL" orderby a.DICTIONARYVALUE select a).ToList(); LoadSolutionInfos(); }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(Request.QueryString["SysCatID"])) { Common.MessageBox.Show(this, "缺少参数", Common.MessageBox.InfoType.warning, "history.back"); return; } int sid = 0; if (!int.TryParse(Request.QueryString["SysCatID"], out sid)) { Common.MessageBox.Show(this, "参数无效", Common.MessageBox.InfoType.warning, "history.back"); return; } ToolBar1.AddBtn("返回", new EventHandler(Back)); ToolBar1.AddBtn("刷新", new EventHandler(Reflesh)); ToolBar1.AddBtn("删除", new EventHandler(Delete), "onclick", "return confirm('确认删除所选记录吗?');"); ToolBar1.AddBtn("属性选项", new EventHandler(ProValue)); ToolBar1.AddBtn("修改", new EventHandler(Edit)); ToolBar1.AddBtn("添加", new EventHandler(Add)); ToolBar1.AspNetPager.PageChanged += new EventHandler(AspNetPager_PageChanged); Button1.Click += new EventHandler(Button1_Click); if (IsPostBack) { return; } BindDate("SysCatID=" + Request.QueryString["SysCatID"]); }
/// <summary> /// Agrega iconos a la ToolBar. /// </summary> /// <param name="e"></param> protected override void OnPreLoad(EventArgs e) { base.OnPreLoad(e); ToolBar1.ItemCommand += ToolBar1_ItemCommand; if (Usuario.Modules[GetRefference()].Add) { ToolBar1.AddNewToolbarButton(); } if (Usuario.Modules[GetRefference()].Edit) { ToolBar1.AddSaveToolbarButton(); } }
protected void Page_Load(object sender, EventArgs e) { ToolBar1.AddBtn("刷新", new EventHandler(Reflesh)); ToolBar1.AddBtn("删除", new EventHandler(Delete), "onclick", "return confirm('确认删除所选记录吗?');"); ToolBar1.AddBtn("属性", new EventHandler(Property)); ToolBar1.AddBtn("修改", new EventHandler(Edit)); ToolBar1.AddBtn("添加", new EventHandler(Add)); ToolBar1.AspNetPager.PageChanged += new EventHandler(AspNetPager_PageChanged); ProCat1.BindEvent(new EventHandler(DropDownList1_SelectedIndexChanged), 1); ProCat1.BindEvent(new EventHandler(DropDownList2_SelectedIndexChanged), 2); Button1.Click += new EventHandler(Button1_Click); if (IsPostBack) { return; } BindDate("parentid=0"); ProCat1.ShowLevel = 2; }
protected void Page_Load(object sender, EventArgs e) { ToolBar1.AddBtn("刷新", new EventHandler(Reflesh)); ToolBar1.AddBtn("删除", new EventHandler(Delete), "onclick", "return confirm('确认删除所选记录吗?');"); ToolBar1.AddBtn("添加", new EventHandler(Add)); if (IsPostBack) { return; } int pid = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"])) { pid = int.Parse(Request.QueryString["id"]); } ViewState["pid"] = pid; BindDate("parentid=@0", pid); }