private void addButton_Click(object sender, EventArgs e)
        {
            if (this.cmnCde.test_prmssns(this.dfltPrvldgs[6]) == false)
            {
                this.cmnCde.showMsg("You don't have permission to perform" +
                                    " this action!\nContact your System Administrator!", 0);
                return;
            }
            if (this.is_dynamic == true)
            {
                this.cmnCde.showMsg("Cannot add values to dynamically generated value lists!", 0);
                return;
            }
            if (this.brghtValLstID <= 0)
            {
                this.cmnCde.showMsg("Please select a value List first!", 0);
                return;
            }
            addPssblValDiag nwDiag = new addPssblValDiag();

            nwDiag.lovNameTextBox.Text    = this.cmnCde.getLovNm(this.brghtValLstID);
            nwDiag.lovIDTextBox.Text      = this.brghtValLstID.ToString();
            nwDiag.pssblValIDTextBox.Text = "-1";
            nwDiag.allwdOrgsTextBox.Text  = this.get_all_OrgIDs();
            DialogResult dgRes = nwDiag.ShowDialog();

            if (dgRes == DialogResult.OK)
            {
            }
            this.loadValPanel();
        }
        private void editButton_Click(object sender, EventArgs e)
        {
            if (this.cmnCde.test_prmssns(this.dfltPrvldgs[7]) == false)
            {
                this.cmnCde.showMsg("You don't have permission to perform" +
                                    " this action!\nContact your System Administrator!", 0);
                return;
            }
            if (this.is_dynamic == true)
            {
                this.cmnCde.showMsg("Cannot edit values of dynamically generated value lists!", 0);
                return;
            }
            if (this.valuesListView.SelectedItems.Count <= 0)
            {
                this.cmnCde.showMsg("Please select a possible value first!", 0);
                return;
            }
            addPssblValDiag nwDiag = new addPssblValDiag();

            //if (this.definedByTextBox.Text == "SYS")
            // {
            // nwDiag.pssblValTextBox.ReadOnly = true;
            // nwDiag.pssblValTextBox.BackColor = Color.WhiteSmoke;
            // }
            nwDiag.lovNameTextBox.Text         = this.cmnCde.getLovNm(this.brghtValLstID);
            nwDiag.lovIDTextBox.Text           = this.brghtValLstID.ToString();
            nwDiag.pssblValIDTextBox.Text      = this.valuesListView.SelectedItems[0].SubItems[3].Text;
            nwDiag.pssblValTextBox.Text        = this.valuesListView.SelectedItems[0].SubItems[1].Text;
            nwDiag.descPssblVlTextBox.Text     = this.valuesListView.SelectedItems[0].SubItems[2].Text;
            nwDiag.isEnbldVlNmCheckBox.Checked = true;
            nwDiag.allwdOrgsTextBox.Text       = this.cmnCde.getGnrlRecNm(
                "gst.gen_stp_lov_values", "pssbl_value_id", "allowed_org_ids",
                long.Parse(this.valuesListView.SelectedItems[0].SubItems[3].Text));

            DialogResult dgRes = nwDiag.ShowDialog();

            if (dgRes == DialogResult.OK)
            {
            }
            this.loadValPanel();
        }