void TDB_ab_sel_Click_Return(object sender, EventArgs e)
        {
            int         id = -1, rows = 0;
            SelTreeForm Fsel = (SelTreeForm)sender;

            id = Fsel.GetID;
            dlt.Get(id, ref rows);
            this.tdb_e_code.Text = dlt.ObjCode;
            this.tdb_e_id.Text   = dlt.ObjId.ToString();
            this.tdb_e_bez.Text  = dlt.ObjBez;
            this.tdb_e_text.Text = dlt.ObjText;
            if (dlt.ObjParentId == -1)
            {
                this.Dlt_e_parent.SelectedValue = -1;
                this.Dlt_e_ishost.CheckState    = CheckState.Checked;
                this.Dlt_e_parent.Visible       = false;
                ishost = true;
            }
            else
            {
                this.Dlt_e_parent.SelectedValue = dlt.ObjParentId;
                this.Dlt_e_ishost.CheckState    = CheckState.Unchecked;
                this.Dlt_e_parent.Visible       = true;
                ishost = false;
            }
            tdb.Sup dlt2 = new tdb.Sup();
            this.Dlt_e_host.Text   = dlt2.GetBez(dlt.ObjHost);
            this.Dlt_e_anz.Value   = dlt.ObjCapacity;
            this.Dlt_e_level.Value = dlt.ObjLevel;
            guikatid             = dlt.ObjCategory;
            guidlttid            = dlt.ObjSuptype;
            this.Dlt_e_dltt.Text = dlt.ObjSupT;
            this.Dlt_e_kat.Text  = dlt.ObjCatT;
        }
Beispiel #2
0
 void TDB_ab_sel_Click_Return(object sender, EventArgs e)
 {
     int id = -1, rows = 0;
     SelTreeForm Fsel = (SelTreeForm)sender;
     id = Fsel.GetID;
     dlt.Get(id, ref rows);
     this.tdb_e_code.Text = dlt.ObjCode;
     this.tdb_e_id.Text = dlt.ObjId.ToString();
     this.tdb_e_bez.Text = dlt.ObjBez;
     this.tdb_e_text.Text = dlt.ObjText;
     if (dlt.ObjParentId == -1)
     {
         this.Dlt_e_parent.SelectedValue = -1;
         this.Dlt_e_ishost.CheckState = CheckState.Checked;
         this.Dlt_e_parent.Visible = false;
         ishost = true;
     }
     else
     {
         this.Dlt_e_parent.SelectedValue = dlt.ObjParentId;
         this.Dlt_e_ishost.CheckState = CheckState.Unchecked;
         this.Dlt_e_parent.Visible = true;
         ishost = false;
     }
     tdb.Sup dlt2 = new tdb.Sup();
     this.Dlt_e_host.Text = dlt2.GetBez(dlt.ObjHost);
     this.Dlt_e_anz.Value = dlt.ObjCapacity;
     this.Dlt_e_level.Value = dlt.ObjLevel;
     guikatid = dlt.ObjCategory;
     guidlttid = dlt.ObjSuptype;
     this.Dlt_e_dltt.Text = dlt.ObjSupT;
     this.Dlt_e_kat.Text = dlt.ObjCatT;
 }