Beispiel #1
0
        public virtual void BejelformAlapInit(Bejelentkezo bejel, Bitmap bitmap, ImageLayout layout, string formszov, Icon icon)
        {
            InitializeComponent();
//            ErrorProvider.ContainerControl = containerControl1;
            this.panel1.BackgroundImage = bitmap;
            this.panel1.BackgroundImageLayout = layout;
            Bejel = bejel;
            alkid = Bejel.alkid;
            kezeloidkar = bejel.KezeloIdkArray;
            Sqlinterface.RendszerUserConn(Bejel.Rendszerconn, Bejel.Userconn);
            Sqlinterface.Select(kezelok, Bejel.Userconn, "KEZELOK", "", "", false);
            string maidat = DateTime.Today.ToShortDateString();
            if (maidat.EndsWith("."))
                maidat = maidat.Substring(0, maidat.Length - 1);
            if (bejel.Rgazdaid=="-1")             // kell egy rendszergazda
            {
                label2.Text = "Rendszergazda:";
                textBox2.UseSystemPasswordChar = false;
                kezelorow = null;
            }
            else
                textBox2.UseSystemPasswordChar = true;
            label5.Text = formszov;
            if (icon != null)
                this.Icon = icon;
            vanujceg = Bejel.Vanujceg;
            label4.Visible=vanujceg;
            comboBox1.Visible=vanujceg;
            if (vanujceg)
            {
                string ho_nap = ".01.01";
                int jelenev = DateTime.Today.Year;
                string[] itemek = new string[] { (jelenev - 1).ToString() + ho_nap, jelenev.ToString() + ho_nap, (jelenev + 1).ToString() + ho_nap };
                comboBox1.Items.AddRange(itemek);
                comboBox1.SelectedIndex = 1;
            }
 //           this.Focus();
            textBox1.Focus();
        }
Beispiel #2
0
 public BejelformAlap (Bejelentkezo bejel, Bitmap bitmap, ImageLayout layout, string formszov,Icon icon)
 {
     BejelformAlapInit(bejel, bitmap, layout, formszov, icon);
 }
Beispiel #3
0
 //private void Kezeloszereprendberak(Tablainfo szerepinfo)
 //{
 //    Tablainfo kezalkalm = FakUserInterface.GetOsszef("U", "KezeloAlkalm");
 //    string[] idk = FakUserInterface.GetTartal(kezalkalm, "SORSZAM1");
 //    if (idk.Length > 1)
 //    {
 //        string savfilt = szerepinfo.DataView.RowFilter;
 //        for (int i = 0; i < idk.Length; i++)
 //        {
 //            szerepinfo.DataView.RowFilter = "KEZELO_ID = " + idk[i];
 //            bool van = szerepinfo.DataView.Count != 0;
 //            szerepinfo.DataView.RowFilter = "";
 //            if (!van)
 //            {
 //                DataRow row = szerepinfo.Ujsor();
 //                row["CEG_ID"] = FakUserInterface.AktualCegid;
 //                row["ALKALMAZAS_ID"] = FakUserInterface.AlkalmazasId;
 //                row["KEZELO_ID"] = idk[i];
 //                row["SZEREPKOD"] = "10";
 //            }
 //            szerepinfo.DataView.RowFilter = savfilt;
 //            if (szerepinfo.Modositott)
 //                FakUserInterface.Rogzit(szerepinfo);
 //        }
 //    }
 //}
 public void Open(Bejelentkezo bejel)
 {
     Bejelentkezo = bejel;
     KezeloId = bejel.Kezeloid;
     FakUserInterface = bejel.FakUserInterface;
     Cegszerzodesinfo = FakUserInterface.GetByAzontip("SZCTCEGSZERZODES");
     Tablainfo tablanevek = FakUserInterface.GetByAzontip("SZRTTABLANEVEK");
     TermTablaNevek = new ArrayList(FakUserInterface.GetTartal(tablanevek, "SZOVEG"));
     TermTablanevIdk = new ArrayList(FakUserInterface.GetTartal(tablanevek, "ID"));
     tablanevek.DataView.RowFilter = "SZULOSZINT<>''";
     AdatbeviteliTablaNevek = FakUserInterface.GetTartal(tablanevek, "SZOVEG");
     tablanevek.DataView.RowFilter = "";
     Tablainfo userallapotok = FakUserInterface.GetByAzontip("SZRTUSERALLAPOTOK");
     Allapotok = new bool[userallapotok.DataView.Count];
     string[] userallapotnevek = FakUserInterface.GetTartal(userallapotok, "SZOVEG");
     UserAllapotNevek = new ArrayList(userallapotnevek);
     Allapotszamitasok = FakUserInterface.GetTartal(userallapotok, "SZAMITAS");
     UserAllapotIdk = FakUserInterface.GetTartal(userallapotok, "ID");
     VizsgalandoTablanevek = FakUserInterface.GetTartal(userallapotok, "TABLANEV");
     Tablainfo kozosallapotok = FakUserInterface.GetByAzontip("SZRTKOZOSUSERALLAPOTOK");
     userallapotnevek = FakUserInterface.GetTartal(kozosallapotok, "SZOVEG");
     KozosAllapotNevek = new ArrayList(userallapotnevek);
     KozosAllapotszamitasok = FakUserInterface.GetTartal(kozosallapotok, "SZAMITAS");
     KozosVizsgalandoTablanevek = FakUserInterface.GetTartal(kozosallapotok, "TABLANEV");
     AktivCegInformaciok = Bejelentkezo.AktivCegInformaciok;
     LezartCegInformaciok = Bejelentkezo.LezartCegInformaciok;
     LezartCeg = Bejelentkezo.LezartCeg;
     if (LezartCeg)
         AktualCegInformaciok = LezartCegInformaciok;
     else
         AktualCegInformaciok = AktivCegInformaciok;
     ArrayList ar = new ArrayList(AktualCegInformaciok);
     FakUserInterface.AktualCegconn = "";
     Tablainfo usercontn = FakUserInterface.GetBySzintPluszTablanev("R", "USERCONTROLNEVEK");
     UserContNevIdk = FakUserInterface.GetTartal(usercontn, "ID", "SZOVEG", MainControl.letezousercontrolnevek);
     LetezoUserControlNevek = new ArrayList(MainControl.letezousercontrolnevek);
     UserContKezszint = FakUserInterface.GetOsszef("R", "UserContKezszint");
     UserContHozferjog = new Base.HozferJogosultsag[UserContNevIdk.Length];
     KezSzintek = FakUserInterface.GetKodtab("R", "Kezszint");
     SetAktualCeginformacio(LezartCeg, ar.IndexOf(bejel.AktualCegInformacio));
 }
Beispiel #4
0
 public override bool AlkalmazasBejelentkezes()
 {
     Bejelentkezo = new Bejelentkezo();
     Bejelentkezo.BejelentkezoAlapInit(connstringek, Alkalmazas);
     return Bejelentkezo.Show(true,global::Vezir.Properties.Resources._1350376768_user8, System.Windows.Forms.ImageLayout.Zoom,"",this.Icon);
 }
Beispiel #5
0
 public static void Open(Bejelentkezo bejel, MainControl cont)
 {
     MainControl = cont;
     Szladat = MainControl.szladat;
     if (Usrutinok == null)
         Usrutinok = new UsRutinok();
     Usrutinok.Open(bejel);
 }