コード例 #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            lblError.Text     = "";
            lblMenuError.Text = "";

            _admin.postResults results = new _admin.postResults();
            results = _admin.postMenus(_global.Fld2Int(hMenuId.Value), _global.Fld2Int(txtDisplayOrder.Text), txtTitle.Text, txtTarget.Text, chkIsPublic.Checked, chkIsDisabled.Checked, ucRoleSelection.getSelectedRoles(), ucPageSelection.getSelectedPages());

            if (results.errorMessage != "")
            {
                lblMenuError.Text = _global.FormatError(results.errorMessage);
                mpMenu.Show();
            }
            else
            {
                loadGrid();

                lblError.Text     = (_global.Fld2Int(hMenuId.Value) == -1) ? "Menu added successfully!" : "Menu saved successfully!";
                lblError.CssClass = "success";

                mpMenu.Hide();
            }
        }
コード例 #2
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            lblError.Text     = "";
            lblPageError.Text = "";

            _admin.postResults results = new _admin.postResults();
            results = _admin.postPages(_global.Fld2Int(hPageId.Value), txtTitle.Text, txtTarget.Text, chkIsDisabled.Checked, chkShowLoadProgress.Checked, ucRoleSelection.getSelectedRoles());

            if (results.errorMessage != "")
            {
                lblPageError.Text = _global.FormatError(results.errorMessage);
                mpPage.Show();
            }
            else
            {
                loadGrid();

                lblError.Text     = (_global.Fld2Int(hPageId.Value) == -1) ? "Page added successfully!" : "Page saved successfully!";
                lblError.CssClass = "success";

                mpPage.Hide();
            }
        }
コード例 #3
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            lblError.Text     = "";
            lblUserError.Text = "";

            _admin.postResults results = new _admin.postResults();
            results = _admin.postUsers(_global.Fld2Int(hUserId.Value), txtWindowsUserId.Text, txtFriendlyName.Text, txtPlantNumber.Text, chkIsDisabled.Checked, ucRoleSelection.getSelectedRoles());

            if (results.errorMessage != "")
            {
                lblUserError.Text = _global.FormatError(results.errorMessage);
                mpUser.Show();
            }
            else
            {
                loadGrid();

                lblError.Text     = (_global.Fld2Int(hUserId.Value) == -1) ? "User added successfully!" : "User saved successfully!";
                lblError.CssClass = "success";

                mpUser.Hide();
            }
        }
コード例 #4
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            lblError.Text     = "";
            lblRoleError.Text = "";

            _admin.postResults results = new _admin.postResults();
            results = _admin.postRoles(_global.Fld2Int(hRoleId.Value), txtRoleName.Text);

            if (results.errorMessage != "")
            {
                lblRoleError.Text = _global.FormatError(results.errorMessage);
                mpRole.Show();
            }
            else
            {
                loadGrid();

                lblError.Text     = (_global.Fld2Int(hRoleId.Value) == -1) ? "Role added successfully!" : "Role saved successfully!";
                lblError.CssClass = "success";

                mpRole.Hide();
            }
        }