Beispiel #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.BPToolBar1.ButtonClick += new EventHandler(BPToolBar1_ButtonClick);
            this.BPToolBar2.ButtonClick += new EventHandler(BPToolBar2_ButtonClick);

            if (this.IsPostBack == false)
            {
                En.Entity en = ClassFactory.GetEn(this.EnsName);

                this.BPToolBar1.AddLab("Lab_desc", "获取或设置默认值");
                this.BPToolBar1.AddSpt("spt14");
                this.BPToolBar1.AddBtn(NamesOfBtn.Delete, "删除");
                this.BPToolBar1.AddSpt("spt1");

                this.BPToolBar1.AddToolbarCheckBtnGroup("ToolbarCheckBtnGroup1");
                this.ToolbarCheckBtnGroup1.Add("Btn_My", "我的设置");
                if (WebUser.No == "admin")
                {
                    this.ToolbarCheckBtnGroup1.Add("Btn_Global", "全局设置");
                }

                this.ToolbarCheckBtnGroup1.Add("Btn_Top40", "全局设置");
                //this.ToolbarCheckBtnGroup1.Add("Btn_Top40", "历史记录");

                this.BPToolBar1.AddSpt("spt2");
                this.BPToolBar1.AddBtn("Btn_Help", "帮助");
                this.ToolbarCheckBtnGroup1.Items[1].Selected = true;

                this.BPToolBar1.AddSpt("spt2");

                this.BPToolBar2.AddLab("Lab2", "值");
                this.BPToolBar2.AddTB("TB_Key");
                this.TB_Key.Width = new System.Web.UI.WebControls.Unit(350);
                if (WebUser.No == "admin")
                {
                    this.BPToolBar2.AddBtn("Btn_SaveToMyDefaultValues", "保存为我的设置");
                    this.BPToolBar2.AddBtn("Btn_SaveToAppDefaultValues", "保存为全局设置");
                }
                else
                {
                    this.BPToolBar2.AddBtn("Btn_SaveToMyDefaultValues", "保存");
                }

                this.BPToolBar2.AddSpt("spt1");
                this.BPToolBar2.AddBtn(NamesOfBtn.Cancel);
                this.BPToolBar2.AddBtn(NamesOfBtn.Confirm);
                this.BPToolBar2.AddSpt("spt2");
                this.SetDGData();
            }

            if (this.CurrentSelectedCheckButton.Index == 2)
            {
                this.BPToolBar1.GetBtnByKey(NamesOfBtn.Delete).Enabled = false;
            }
            else
            {
                this.BPToolBar1.GetBtnByKey(NamesOfBtn.Delete).Enabled = true;
            }
        }
Beispiel #2
0
 /// <summary>
 /// 调用文件管理者
 /// </summary>
 /// <param name="en"></param>
 protected void InvokeFileManager(En.Entity en)
 {
     this.WinOpenShowModalDialog(this.Request.ApplicationPath + "Comm/FileManager.aspx?EnsName=" + en.ToString() + "&PK=" + en.PKVal, "文件管理员", "FileManager", 800, 600, 50, 50);
 }