Exemplo n.º 1
0
 public override void Controloktolt(Controltipus egycont, bool force, bool kellchild, bool kellfocus)
 {
     HozferJog = UserParamTabla.AktualTermeszetesJogosultsag;
     base.Controloktolt(egycont, force, kellchild, kellfocus);
     egycont.HozferJog = HozferJog;
     DatumokAllit(mozgasinfo.AktualViewRow);
 }
Exemplo n.º 2
0
 public Penztarbetet(FakUserInterface fak, VezerloControl hivo, Vezerloinfo aktivvezerles)
 {
     InitializeComponent();
     ParameterAtvetel(fak, hivo, aktivvezerles);
     VezerloControl = hivo;
     panel1.Controls.Remove(panel12);
     SzuloGyerekInit();
     termfocsopinfo = FakUserInterface.GetKodtab("C", "Termfocsop");
     termalcsopinfo = FakUserInterface.GetKodtab("C", "Termalcsop");
     termcsopinfo = FakUserInterface.GetKodtab("C", "Termcsop");
     termekkodok = FakUserInterface.GetBySzintPluszTablanev("C", "TERMEKKOD");
     termfocsopalcsop = FakUserInterface.GetOsszef("C", "Termfocsopalcsop");
     termalcsopcsop = FakUserInterface.GetOsszef("C", "Termalcsopcsop");
     termcsopkod = FakUserInterface.GetOsszef("C", "Termcsopkod");
     termekkodtag = (MezoTag)termekkod.Tag;
     koltsfocsopinfo = FakUserInterface.GetKodtab("C", "Koltsfocsop");
     koltsalcsopinfo = FakUserInterface.GetKodtab("C", "Koltsalcsop");
     koltscsopinfo = FakUserInterface.GetBySzintPluszTablanev("C", "KOLTSEGCSOPORT");
     koltsegkodok = FakUserInterface.GetBySzintPluszTablanev("C", "KOLTSEGKOD");
     koltsfocsopalcsop = FakUserInterface.GetOsszef("C", "Koltsfocsopalcsop");
     koltsalcsopcsop = FakUserInterface.GetOsszef("C", "Koltsalcsopcsop");
     koltscsopkod = FakUserInterface.GetOsszef("C", "Koltscsopkod");
     dataGridView1.Columns.Remove(dataGridView1.Columns["KIVET"]);
     dataGridView1.Columns.Remove(dataGridView1.Columns["KOLTSEGKOD_ID_K"]);
     toolStripfo.Visible = false;
     mozgascontrol = ControltipusCollection.Find(groupBox1);
     mozgasinfo = mozgascontrol.Tablainfo;
 }
Exemplo n.º 3
0
 public override void Controloktolt(Controltipus egycont, bool force, bool kellchild, bool kellfocus)
 {
     mozgasinfo.TablaColumns["KOLTSCSOP_ID"].Lehetures = true;
     HozferJog = UserParamTabla.AktualTermeszetesJogosultsag;
     mozgascontrol.UserFilter = "BETET <> 0";
     base.Controloktolt(egycont, force, kellchild, kellfocus);
     egycont.HozferJog = HozferJog;
     DatumokAllit(mozgasinfo.AktualViewRow);
 }
Exemplo n.º 4
0
 public Penztarpenztar(FakUserInterface fak, VezerloControl hivo, Vezerloinfo aktivvezerles)
 {
     InitializeComponent();
     ParameterAtvetel(fak, hivo, aktivvezerles);
     VezerloControl = hivo;
     panel1.Controls.Remove(panel12);
     SzuloGyerekInit();
     toolStripfo.Visible = false;
     mozgascontrol = ControltipusCollection.Find(groupBox1);
     mozgasinfo = mozgascontrol.Tablainfo;
 }
Exemplo n.º 5
0
 public override void ButtonokEnableAllit(Controltipus egycont, bool kellchild)
 {
     base.ButtonokEnableAllit(egycont, kellchild);
     if (mozgasinfo.AktualViewRow != null && HozferJog == HozferJogosultsag.Irolvas)
     {
         uj1.Visible = true;
         uj1.Enabled = true;
         torol1.Visible = true;
         torol1.Enabled = true;
     }
 }
Exemplo n.º 6
0
 public Folyoosztottkivet(FakUserInterface fak, VezerloControl hivo, Vezerloinfo aktivvezerles)
 {
     InitializeComponent();
     ParameterAtvetel(fak, hivo, aktivvezerles);
     VezerloControl = hivo;
     panel12.Controls.Remove(panel2);
     panel12.Controls.Remove(panel111);
     toolStripfo.Visible = false;
     SzuloGyerekInit();
     mozgascontrol = ControltipusCollection.Find(groupBox1);
     mozgasinfo = mozgascontrol.Tablainfo;
     tetelcontrol = ControltipusCollection.Find("panel112");
     tetelinfo = tetelcontrol.Tablainfo;
     koltsfocsopinfo = FakUserInterface.GetKodtab("C", "Koltsfocsop");
     koltsalcsopinfo = FakUserInterface.GetKodtab("C", "Koltsalcsop");
     koltscsopinfo = FakUserInterface.GetBySzintPluszTablanev("C", "KOLTSEGCSOPORT");
     FakUserInterface.Combokupdate(koltscsopinfo.TablaTag);
     koltscsopcsop = FakUserInterface.GetOsszef("C", "Koltscsopkod");
     koltssemainfo = FakUserInterface.GetCsoport("C", "Feloszt");
     szazalinfo = FakUserInterface.GetKodtab("C", "Fszazal");
     koltsegkodok = FakUserInterface.GetBySzintPluszTablanev("C", "KOLTSEGKOD");
     termekkodok = FakUserInterface.GetBySzintPluszTablanev("C", "TERMEKKOD");
     termfocsopinfo = FakUserInterface.GetKodtab("C", "Termfocsop");
     termalcsopinfo = FakUserInterface.GetKodtab("C", "Termalcsop");
     termcsopinfo = FakUserInterface.GetKodtab("C", "Termcsop");
     termekkodok = FakUserInterface.GetBySzintPluszTablanev("C", "TERMEKKOD");
     termfocsopalcsop = FakUserInterface.GetOsszef("C", "Termfocsopalcsop");
     termalcsopcsop = FakUserInterface.GetOsszef("C", "Termalcsopcsop");
     termcsopkod = FakUserInterface.GetOsszef("C", "Termcsopkod");
     koltsfocsopalcsop = FakUserInterface.GetOsszef("C", "Koltsfocsopalcsop");
     koltsalcsopcsop = FakUserInterface.GetOsszef("C", "Koltsalcsopcsop");
     koltscsopkod = FakUserInterface.GetOsszef("C", "Koltscsopkod");
     koltscsoptag = (MezoTag)koltscsop.Tag;
     koltsfocsoptag = (MezoTag)koltsegfocsop.Tag;
     koltsalcsoptag = (MezoTag)koltsegalcsop.Tag;
     koltskodtag = (MezoTag)koltsegkod.Tag;
     termkodtag = (MezoTag)termekkod.Tag;
     termcsoptag = (MezoTag)termekcsoport.Tag;
     termalcsoptag = (MezoTag)termekalcsop.Tag;
     termfocsoptag = (MezoTag)termekfocsop.Tag;
     tetelszamtag = (MezoTag)tetelszam.Tag;
     mozgasinfo.TablaColumns["KOLTSCSOP_ID"].Lehetures = false;
     mozgasinfo.TablaColumns["KOLTSCSOP_ID"].ReadOnly = false;
     mozgasinfo.TablaColumns["KOLTSCSOP_ID"].Lathato = true;
     dataGridView1.Columns.Remove(dataGridView1.Columns["BETET"]);
     dataGridView1.Columns.Remove(dataGridView1.Columns["TERMEKKOD_ID_K"]);
     dataGridView1.Columns.Remove(dataGridView1.Columns["KOLTSEGKOD_ID_K"]);
 }
Exemplo n.º 7
0
        public Bevszla(FakUserInterface fak,VezerloControl hivo,Vezerloinfo aktivvezerles)
        {
            InitializeComponent();
            ParameterAtvetel(fak, hivo, aktivvezerles);
            VezerloControl = hivo;
            panel2.Parent.Controls.Remove(panel2);
            panel111.Parent.Controls.Remove(panel111);
            toolStrip12.Items.Remove(elolrol12);
            toolStrip12.Items.Remove(rogzit12);
//            toolStrip12.Items.Remove(torol12);
            SzuloGyerekInit();
            toolStripfo.Visible = false;
            szla = ControltipusCollection.Find(groupBox1);
            szlatetel = ControltipusCollection.Find(groupBox122);
            szlainfo = szla.Tablainfo;
            tetelinfo = szlatetel.Tablainfo;
            afainfo=fak.GetKodtab("C","Afa");
            bruttotag = (MezoTag)brutto.Tag;
            nettotag = (MezoTag)netto.Tag;
            termekkodtag = (MezoTag)termekkod.Tag;
            partnertag = (MezoTag)partner.Tag;
            maradektag  = (MezoTag)maradek.Tag;
            tetelszamtag = (MezoTag)tetelszam.Tag;
            afakulcstag = (MezoTag)afakulcs.Tag;
            termekfocsoptag = (MezoTag)termfocsop.Tag;
            termekalcsoptag = (MezoTag)termalcsop.Tag;
            termekcsoptag = (MezoTag)termcsop.Tag;
            partnerinfo = FakUserInterface.GetByAzontip("SZCTPARTNER");
            vezirpartnerinfo = FakUserInterface.GetByAzontip("SZCTVEZIRPARTNER");
            termfocsopinfo = FakUserInterface.GetKodtab("C", "Termfocsop");
            termalcsopinfo = FakUserInterface.GetKodtab("C", "Termalcsop");
            termcsopinfo = FakUserInterface.GetKodtab("C", "Termcsop");
            termekkodok = FakUserInterface.GetBySzintPluszTablanev("C", "TERMEKKOD");
            termfocsopalcsop = FakUserInterface.GetOsszef("C", "Termfocsopalcsop");
            termalcsopcsop = FakUserInterface.GetOsszef("C", "Termalcsopcsop");
            termcsopkod = FakUserInterface.GetOsszef("C", "Termcsopkod");
            szazalekinfo = FakUserInterface.GetKodtab("C", "Fszazal");
            szazalekosfeloszt = FakUserInterface.GetCsoport("C", "Termfeloszt");
        }
Exemplo n.º 8
0
 /// <summary>
 /// Controltipus adattablainak tartalmat visszaalitja az eredetire, tolt
 /// </summary>
 /// <param name="conttip">
 /// Conttroltipus
 /// </param>
 public void Elolrol(Controltipus conttip)
 {
     ArrayList ar = Tablainfok(conttip);
     conttip.FakUserInterface.ForceAdattolt((Tablainfo[])ar.ToArray(typeof(Tablainfo)), true);
     Hivo.Controloktolt(conttip, true, true, true);
 }
Exemplo n.º 9
0
 public override void ButtonokEnableAllit(Controltipus egycont, bool kellchild)
 {
 }
Exemplo n.º 10
0
 /// <summary>
 /// kereses controltipus alapjan
 /// </summary>
 /// <param name="conttip">
 /// a keresett controltipus
 /// </param>
 /// <returns>
 /// Controltipus vagy null
 /// </returns>
 public Controltipus this[Controltipus conttip]
 {
     get 
     {
         int i = this.IndexOf(conttip);
         if(i==-1)
             return null;
         else
             return this[i];
     }
 }
Exemplo n.º 11
0
        /// <summary>
        /// Uj Controltipus hozzaadasa, a befuzes TabIndex alapjan
        /// </summary>
        /// <param name="tabindex">
        /// a tabindex
        /// </param>
        /// <param name="conttip">
        /// a Controltipus
        /// </param>
        /// <returns>
        /// a befuzes indexe
        /// </returns>
        public int Add(int tabindex, Controltipus conttip)
        {
            bool megvan = false;
            int i = 0;
            for (i = 0; i < tabindexek.Count; i++)
            {
                int egyindex = Convert.ToInt32(tabindexek[i].ToString());
                if (egyindex > tabindex)
                {
                    megvan = true;
                    this.Insert(i, conttip);
                    tabindexek.Insert(i, tabindex);
                    if (conttip.InputGroupBox == null)
                        GroupBoxokNevei.Insert(i, conttip.GridGroupBox.Name);
                    else
                        GroupBoxokNevei.Insert(i, conttip.InputGroupBox.Name);
                    if (conttip.Panel != null)
                        PanelekNevei.Insert(i, conttip.Panel.Name);
                    else
                        PanelekNevei.Insert(i, "");
                    GridViewk.Insert(i, conttip.DataGridView);
                    ToolStripek.Insert(i, conttip.ToolStrip);
                    break;
                }
            }
            if (!megvan)
            {
                tabindexek.Add(tabindex);
                if (conttip.InputGroupBox == null)
                    GroupBoxokNevei.Add(conttip.GridGroupBox.Name);
                else
                    GroupBoxokNevei.Add(conttip.InputGroupBox.Name);
                if (conttip.Panel != null)
                    PanelekNevei.Add(conttip.Panel.Name);
                else
                    PanelekNevei.Add("");

                GridViewk.Add(conttip.DataGridView);
                ToolStripek.Add(conttip.ToolStrip);
                i = this.Add(conttip);
            }
            return i;
        }
Exemplo n.º 12
0
 //public virtual void DataGridView_CellValidated(object sender, DataGridViewCellEventArgs e)
 //{
 //    DataGridView gw = (DataGridView)sender;
 //    if (gw.Enabled)
 //    {
 //        DataGridViewCell cell = gw[e.ColumnIndex, e.RowIndex];
 //        Taggyart egytag = (Taggyart)gw.Columns[e.ColumnIndex].Tag;
 //        Taggyart egytag1;
 //        if (egytag != null)
 //        {
 //            egytag.SelectedCell = cell;
 //            if (cell.Tag == null)
 //            {
 //                egytag1 = Fak.Taggyart(cell, egytag);
 //                cell.Tag = egytag1;
 //            }
 //            else
 //                egytag1 = (Taggyart)cell.Tag;
 //            string hiba = Fak.Hibavizsg(egytag1);
 //        }
 //    }
 //}
 /// <summary>
 /// egyedi validalast vegez a controltipusinformacio inputcontroljain, child(ok) eseten azokon is
 /// </summary>
 /// <param name="egycont">
 /// controlinformacio
 /// </param>
 /// <returns>
 /// true:hiba
 /// </returns>
 public bool Egyvalid(Controltipus egycont)
 {
     bool childhiba = false;
     bool hiba = Egyvalid(egycont.MezoControlInfo);
     childhiba = egycont.ChildControltipus.Egyvalid();
     return hiba || childhiba;
 }
Exemplo n.º 13
0
 /// <summary>
 /// controltipusinformacio es a childok tablainformacioinak adatbazisbeli visszaallitasa, ezekre a Controloktolt hivasa is
 /// </summary>
 /// <param name="conttip">
 /// kivant controltipusinformacio
 /// </param>
 public virtual void Elolrol(Controltipus conttip)
 {
     this.Visible = false;
     ControltipusCollection.Elolrol(conttip);
     Controloktolt(conttip, false, true,true);
     this.Visible = true;
 }
Exemplo n.º 14
0
        public Partner(FakUserInterface fak, Base hivo, Vezerloinfo vezerles)
        {
            InitializeComponent();
            ParameterAtvetel(fak, hivo, vezerles);
            partnerinfo = FakUserInterface.GetByAzontip("T CTPARTNER");
            vezpartnerinfo = FakUserInterface.GetByAzontip("T CTVEZIRPARTNER");
            vezpartnerinfo.ComboColumns["MARKETINGPARTNER"].DefaultValue = "N";
            gyokerpartner = UserParamTabla.TermCegPluszCegalattiTablainfok["PARTNERGYOKER"];
            gyokerpartner.ViewSorindex = 0;
            Hivo = hivo;
            toolStripfo.Visible = false;
            toolStrip1.Items.Remove(torol);
            if (hivo.Name == "VezerloControl")
            {
                VezerloControl = (VezerloControl)hivo;
                FakUserInterface.AdattoltByAktid(gyokerpartner);
                FakUserInterface.OsszesAdattoltByParent("PARTNERGYOKER");

            }
            else
            {
                VezerloControl = (VezerloControl)hivo.Hivo;
                partnerinfo.AktIdentity = -1;
                FakUserInterface.AdattoltByAktid(partnerinfo);
                FakUserInterface.OsszesAdattoltByParent("PARTNER");
//                panel1.Controls.Remove(toolStrip1);
                panel1.Controls.Remove(groupBox1);
                groupBox2.Dock = DockStyle.Fill;
                toolStrip1.Items.Remove(uj);
                toolStrip1.Items.Remove(elozo);
                toolStrip1.Items.Remove(kovetkezo);
                elolrol.Text = "Vissza";
            }
            AlapinfoInit(new object[] { new object[] { Alapinfotipus.Alap, new Panel[] { panel1, panel2 } } });
            kieg = ControltipusCollection.Find(groupBox3);
            bevpartnercol = vezpartnerinfo.InputColumns["BEVPARTNER"];
            koltspartnercol = vezpartnerinfo.InputColumns["KOLTSPARTNER"];
            partnerkoltsegkodcol = vezpartnerinfo.ComboColumns["KOLTSEGKOD_ID"];
            partnertermekkodcol = vezpartnerinfo.ComboColumns["TERMEKKOD_ID"];
            partnersemakodcol = vezpartnerinfo.ComboColumns["SEMA_ID"];
            termsemakodcol = vezpartnerinfo.ComboColumns["TERMSEMA_ID"];
            bevpartnerindex = vezpartnerinfo.InputColumns.IndexOf("BEVPARTNER");
            koltspartnerindex = vezpartnerinfo.InputColumns.IndexOf("KOLTSPARTNER");
            koltsegkodindex = vezpartnerinfo.InputColumns.IndexOf("KOLTSEGKOD_ID");
            termekkodindex = vezpartnerinfo.InputColumns.IndexOf("TERMEKKOD_ID");
            semakodindex = vezpartnerinfo.InputColumns.IndexOf("SEMA_ID");
            termsemakodindex = vezpartnerinfo.InputColumns.IndexOf("TERMSEMA_ID");
        }
Exemplo n.º 15
0
       /// <summary>
       /// objectum letrehozasa
       /// </summary>
       /// <param name="tipus">
       /// objectum tipusa
       /// </param>
       /// <param name="cont">
       /// a panel vagy groupbox
       /// </param>
       /// <param name="hivo">
       /// hivo UserControl
       /// </param>
        public Controltipus(ControlAlap.Alapinfotipus tipus, Control cont, ControlAlap hivo)
        {
            ChildControltipus=new ControltipusCollection(hivo);
            ParentChain = new ControltipusCollection(hivo);
            Tipus = tipus;
            Hivo = hivo;
            TipusString = Hivo.Alapinfostring[(int)tipus];
            FakUserInterface = hivo.FakUserInterface;
            Controltipus egygyerek;
            Panel panel;
            switch (tipus)
            {
                case ControlAlap.Alapinfotipus.Alap:
                    Panel = (Panel)cont;
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    break;
                case ControlAlap.Alapinfotipus.CsakDataGrid:
                    Panel = (Panel)cont;
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    break;
                case ControlAlap.Alapinfotipus.Valtozasok:
                    Panel = (Panel)cont;
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    break;
                case ControlAlap.Alapinfotipus.Szulo:
                    panel = (Panel)cont;
                    Panel = (Panel)panel.Controls[0];
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    panel = (Panel)panel.Controls[1];
                    egygyerek = new Controltipus(ControlAlap.Alapinfotipus.Child, panel, Hivo);
                    egygyerek.Parent = this;
//                    ChildControltipus.Add(egygyerek.TabIndex, egygyerek);
                    break;
                case ControlAlap.Alapinfotipus.SzuloGyerekValtozasok:
                    panel = (Panel)cont;
                    Panel = (Panel)panel.Controls[0];
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    if (panel.Controls.Count > 1)
                    {
                        try
                        {
                            panel = (Panel)panel.Controls[1];
                            foreach (Panel egypanel in panel.Controls)
                                new Controltipus(ControlAlap.Alapinfotipus.Child, egypanel, Hivo);
                        }
                        catch
                        {
                        }
                    }
                    break;
                case ControlAlap.Alapinfotipus.Tobbgyerek:
                    panel = (Panel)cont;
                    Panel = (Panel)panel.Controls[0];
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    foreach (Panel egypanel in panel.Controls)
                    {
                        egygyerek = new Controltipus(ControlAlap.Alapinfotipus.Child, egypanel, Hivo);
                        egygyerek.Parent = this;
//                        ChildControltipus.Add(egygyerek.TabIndex, egygyerek);
                    }
                    break;
                case ControlAlap.Alapinfotipus.Child:
                    Panel = (Panel)cont;
                    TabIndex = Panel.TabIndex;
                    PanelControlokErtekel(Panel);
                    Hivo.ControltipusCollection.Add(TabIndex, this);
                    break;
            }
        }
Exemplo n.º 16
0
        /// <summary>
        /// Controltipus es gyerekei adattablainak rogzitese, rogzites utani eljaras
        /// </summary>
        /// <param name="egycont">
        /// Controltipus
        /// </param>
        /// <returns>
        /// sikeres rogzites
        /// </returns>
        public bool Rogzit(Controltipus egycont)
        {
            Hivo.RogzitesElott();
            ArrayList ar = Tablainfok(egycont);
            bool ret = egycont.FakUserInterface.Rogzit((Tablainfo[])ar.ToArray(typeof(Tablainfo)));
//            egycont.Valtozott = false;
            Hivo.RogzitesUtan();
            return ret;
        }
Exemplo n.º 17
0
 public override void ButtonokEnableAllit(Controltipus egycont, bool kellchild)
 {
     base.ButtonokEnableAllit(egycont, kellchild);
     if (egycont == szla)
         IrhatAllitasok();
     if (egycont == szlatetel)
     {
         if (HozferJog == Base.HozferJogosultsag.Csakolvas )
             egycont.Panel.Enabled = true;
         uj12.Enabled = irhat;
         torol12.Enabled = irhat;
     }
 }
Exemplo n.º 18
0
 /// <summary>
 /// controltipusinformacio adattabla toltes, ha ez egy childcontroltipus, beallitast is vegez
 /// </summary>
 /// <param name="egycont">
 /// controltipusinformacio
 /// </param>
 /// <param name="force">
 /// mindenkeppen vegrehajtando vagy csak, ha uj node-dal hivtak vagy nem volt valtozas
 /// </param>
 /// <param name="kellchild">
 /// a childcontrolinfokra is?
 /// </param>
 /// <param name="kellfocus">
 /// ??
 /// </param>
 public virtual void Controloktolt(Controltipus egycont, bool force, bool kellchild,bool kellfocus)
 {
     egycont.Controloktolt(force, kellchild,kellfocus);
     if (egycont.Parent != null)
         Beallit(egycont, egycont.Tablainfo.ViewSorindex, kellchild);
 }
Exemplo n.º 19
0
 /// <summary>
 /// controltipusinformacio toolStripButton-jainak Enabled az allapotnak megfelelo modon 
 /// </summary>
 /// <param name="egycont">
 /// a kivant controltipusinformacio
 /// </param>
 /// <param name="kellchild">
 /// allitsuk-e a childcontroltipusokra is?
 /// </param>
 public virtual void ButtonokEnableAllit(Controltipus egycont, bool kellchild)
 {
     egycont.ButtonokEnableAllit();
     if (kellchild && egycont.ChildControltipus.Count != 0)
     {
         foreach (Controltipus cont in egycont.ChildControltipus)
             ButtonokEnableAllit(cont, kellchild);
     }
 }
Exemplo n.º 20
0
 private void PanelControlokErtekel(Panel panel)
 {
     panel.Enter += Panel_Enter;
     panel.Leave += Panel_Leave;
     Control egycont;
     for (int i = 0; i < panel.Controls.Count; i++)
     {
         egycont = panel.Controls[i];
         if (egycont.Name.Contains("Strip"))
             ButtonokAllit(egycont);
         else if (egycont.Name.Contains("groupBox"))
         {
             GroupBox groupBox = (GroupBox)egycont;
             if (groupBox.Controls.Count != 0)
             {
                 try
                 {
                     DataGridView = (DataGridView)groupBox.Controls[0];
                     DataGridView.Scroll += Hivo.GridView_Scroll;
                     DataGridView.CellMouseClick += Hivo.GridView_CellMouseClick;
                     GridGroupBox = groupBox;
                 }
                 catch
                 {
                     InputGroupBox = groupBox;
                     InputGroupBox.Enter += GroupBox_Enter;
                     InputGroupBox.Leave += GroupBox_Leave;
                 }
             }
         }
     }
     string parentpanelnev = "";
     if (panel.Tag != null)
         parentpanelnev = panel.Tag.ToString();
     if (parentpanelnev != "")
     {
         Controltipus parent = Hivo.ControltipusCollection.Find(parentpanelnev);
         if (parent != null)
         {
             this.Parent = parent;
             this.ParentChain.AddRange(parent.ParentChain);
             this.ParentChain.Add(parent);
             parent.ChildControltipus.Add(this);
         }
     }
 }
Exemplo n.º 21
0
 public override void Controloktolt(Controltipus egycont, bool force, bool kellchild, bool kellfocus)
 {
     HozferJog = UserParamTabla.AktualTermeszetesJogosultsag;
     mozgascontrol.UserFilter = "KIVET <> 0 AND TETELSOROK_SZAMA <> 0";
     base.Controloktolt(egycont, force, kellchild, kellfocus);
     egycont.HozferJog = HozferJog;
     if (egycont == mozgascontrol)
     {
         DatumokAllit(mozgasinfo.AktualViewRow);
     }
 }
Exemplo n.º 22
0
        /// <summary>
        /// Hibavizsgalat egy controltipusra
        /// </summary>
        /// <param name="conttip">
        /// inputcontrolinformacio
        /// </param>
        /// <returns>
        /// true: hiba van
        /// </returns>

        public virtual bool Hibavizsg(Controltipus conttip)
        {
            bool hiba = false;
            Tablainfo tabinfo = conttip.Tablainfo;
            if (!tabinfo.LehetUres && tabinfo.Ures || tabinfo.Valtozott)
                hiba = Hibavizsg(conttip.MezoControlInfo);
            if (!hiba)
            {
                hiba = Egyvalid(conttip.MezoControlInfo);
            }
            return hiba;
        }
Exemplo n.º 23
0
 /// <summary>
 /// kivant controltipusinfo kivant dataview index alapjan beallitasokat vegez
 /// </summary>
 /// <param name="egycont">
 /// controltipusinfo
 /// </param>
 /// <param name="viewindex">
 /// dataview index
 /// </param>
 /// <param name="kellchild">
 /// ha van childcontroltipusa, az(ok)at is kell-e allitani
 /// </param>
 public virtual void Beallit(Controltipus egycont, int viewindex, bool kellchild)
 {
     Beallit(egycont, viewindex, kellchild, false);
 }
Exemplo n.º 24
0
 /// <summary>
 /// Controltipus es gyerekei tablainformacioinak osszevadaszasa
 /// </summary>
 /// <param name="egycont">
 /// a controltipus
 /// </param>
 /// <returns>
 /// tablainformaciok listaja
 /// </returns>
 public ArrayList Tablainfok(Controltipus egycont)
 {
     ArrayList ar = new ArrayList();
     if(!egycont.Tablainfo.NemKell)
         ar.Add(egycont.Tablainfo);
     egycont.ChildControltipus.Tablainfok(ar);
     return ar;
 }
Exemplo n.º 25
0
        public override void Beallit(Controltipus egycont, int viewindex, bool kellchild)
        {
            base.Beallit(egycont, viewindex, kellchild);
            Tablainfo info = egycont.Tablainfo;
            if (info == tetelinfo)
            {
                string szov = afakulcs.Text;
                afakod = FakUserInterface.GetTartal(afainfo, "KOD", "SZOVEG", szov)[0];
                afaszazalek = Convert.ToInt32(afakod);
            }

        }
Exemplo n.º 26
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="egycont"></param>
 /// <param name="viewindex"></param>
 /// <param name="kellchild"></param>
 /// <param name="kellfocus"></param>
 public virtual void Beallit(Controltipus egycont, int viewindex, bool kellchild, bool kellfocus)
 {
     egycont.Beallit(viewindex, kellchild, kellfocus);
 }
Exemplo n.º 27
0
 /// <summary>
 /// Meghivasra kerul mindig, ha beallitasra van szukseg. Specialis beallitasok eseteben felulirando
 /// </summary>
 /// <param name="egycont"></param>
 public virtual void EgyediBeallit(Controltipus egycont)
 {
 }
Exemplo n.º 28
0
 public override void EgyediBeallit(Controltipus egycont)
 {
     string savfilt = vezpartnerinfo.DataView.RowFilter;
     textBox1.ReadOnly = false;
     Tablainfo info = egycont.Tablainfo;
     if (egycont.Aktid != -1)
     {
         string[] colnevek = new string[] { "MARKETINGPARTNER", "MUNKALAPPARTNER", "SULIPARTNER" };
         vezpartnerinfo.DataView.RowFilter = "";
         for(int i=0;i<colnevek.Length;i++)
         {
             vezpartnerinfo.DataView.RowFilter=colnevek[i]+"='I'";
             if(vezpartnerinfo.DataView.Count!=0)
             {
             textBox1.ReadOnly = true;
                 break;
             }
         }
         vezpartnerinfo.DataView.RowFilter = savfilt;
     }
 }