/// <summary>
        /// Init page
        /// </summary>
        private void InitPage()
        {
            LocalizationUtility.SetValueControl(this);
            this.ltrAdminApply.Text  = Constant.UI.admin_apply;
            this.ltrAdminCancel.Text = Constant.UI.admin_cancel;
            this.ltrAdminDelete.Text = Constant.UI.admin_delete;
            this.ltrAdminSave.Text   = Constant.UI.admin_save;

            ltrPage.Text         = LocalizationUtility.GetText(ltrPage.ID, Ci);
            ltrPageDetail.Text   = LocalizationUtility.GetText(ltrPageDetail.ID);
            ltrAminCategory.Text = LocalizationUtility.GetText(ltrAminCategory.ID);
            //this.ltrAminName.Text = Constant.UI.admin_name;
            this.ltrAminLangVi.Text = Constant.UI.admin_lang_Vi;
            this.ltrAminLangEn.Text = Constant.UI.admin_lang_En;
            //this.ltrAminName_En.Text = Constant.UI.admin_name_en;

            reqv_txtNameVi.Text         = Constant.UI.alert_empty_name_outsite;
            reqv_txtNameVi.ErrorMessage = Constant.UI.alert_empty_name;

            //Kiểm tra quyền
            SetRoleMenu();

            //load category
            GetDataDropDownCategory(this.drpCategory);

            //Bind Page
            XMLConfigBLL xmlBll = new XMLConfigBLL();

            xmlBll.getDataDropDownPage(drpPage, Constant.DSC.IdXmlPagePublish);
            drpPage.SelectedIndex = 1;
            xmlBll.getDataDropDownPage(drpPageDetail, Constant.DSC.IdXmlPagePublish);
            drpPageDetail.SelectedIndex = 2;
        }
Пример #2
0
        /// <summary>
        /// Init page
        /// </summary>
        private void InitPage()
        {
            // Add the onclick event handler so checking a parent node fires the OnTreeNodeCheckChanged event.
            TreeView1.Attributes.Add("onclick", "TreeNodeCheckChanged(event, this)");

            LocalizationUtility.SetValueControl(this);
            this.ltrAdminApply.Text  = Constant.UI.admin_apply;
            this.ltrAdminCancel.Text = Constant.UI.admin_cancel;
            this.ltrAdminDelete.Text = Constant.UI.admin_delete;
            this.ltrAdminSave.Text   = Constant.UI.admin_save;

            ltrPage.Text         = LocalizationUtility.GetText(ltrPage.ID, Ci);
            ltrPageDetail.Text   = LocalizationUtility.GetText(ltrPageDetail.ID);
            ltrAminCategory.Text = LocalizationUtility.GetText(ltrAminCategory.ID);
            //this.ltrAminName.Text = Constant.UI.admin_name;
            this.ltrAminLangVi.Text = Constant.UI.admin_lang_Vi;
            this.ltrAminLangEn.Text = Constant.UI.admin_lang_En;
            //this.ltrAminName_En.Text = Constant.UI.admin_name_en;

            reqv_txtNameVi.Text         = Constant.UI.alert_empty_name_outsite;
            reqv_txtNameVi.ErrorMessage = Constant.UI.alert_empty_name;

            //Kiểm tra quyền
            SetRoleMenu();

            //load category
            GetDataDropDownCategory(this.drpCategory);

            //Get Attribute
            GetAttribute();

            //Bind Page
            XMLConfigBLL xmlBll = new XMLConfigBLL();

            xmlBll.getDataDropDownPage(drpPage, Constant.DSC.IdXmlPagePublish);
            drpPage.SelectedIndex = 1;
            xmlBll.getDataDropDownPage(drpPageDetail, Constant.DSC.IdXmlPagePublish);
            drpPageDetail.SelectedIndex = 2;
        }