/// <summary>
        /// 显示自定义窗体
        /// </summary>
        private void AddWindow()
        {
            try
            {
                Window window = new Window();
                window.ID    = "PrivAdd";
                window.Title = GetLangStr("PrivManager41", "增加权限");

                window.Width         = Unit.Pixel(360);
                window.Height        = Unit.Pixel(220);
                window.Modal         = true;
                window.Maximizable   = false;
                window.Resizable     = false;
                window.Hidden        = true;
                window.AutoLoad.Mode = LoadMode.Merge;
                window.Layout        = "FitLayout";

                Ext.Net.FormPanel tab = new Ext.Net.FormPanel();
                tab.MonitorValid = true;
                tab.Title        = GetLangStr("PrivManager42", "权限信息");
                tab.Header       = false;
                tab.Padding      = 20;
                tab.Height       = 200;

                TextField txtPrivId = CommonExt.AddTextField("txtAPrivID", GetLangStr("PrivManager9", "权限编号"));
                txtPrivId.Text     = tgsPproperty.GetMinRecordId();
                txtPrivId.Disabled = true;
                tab.Items.Add(txtPrivId);
                tab.Items.Add(CommonExt.AddTextFieldWidth("txtAPrivName", GetLangStr("PrivManager10", "权限名称"), false, GetLangStr("PrivManager45", "请输入权限名称")));
                tab.Items.Add(CommonExt.AddTextFieldWidth("txtARemark", GetLangStr("PrivManager11", "权限描述"), true, GetLangStr("PrivManager47", "请输入权限描述")));
                tab.Buttons.Add(CommonExt.AddButton("butSaveEdit", GetLangStr("PrivManager13", "保存"), "Disk", "PrivManager.InfoSave()"));
                tab.Buttons.Add(CommonExt.AddButton("butCancelEdit", GetLangStr("PrivManager49", "取消"), "Cancel", window.ClientID + ".hide()"));
                tab.Listeners.ClientValidation.Handler = "butSaveEdit.setDisabled(!valid);";
                window.Items.Add(tab);
                window.Render(this.Form);
                window.Show();
            }

            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("PrivManager.aspx-AddWindow", ex.Message + ";" + ex.StackTrace, "AddWindow has an exception");
            }
        }