Beispiel #1
0
        public static void setIdMasina()
        {
            statiaCurenta = new BMasina();
            statiaCurenta.initMasina();

            CGestiuneIO.setIdCalculator(statiaCurenta.Id);
        }
Beispiel #2
0
        public static string getIdMasina()
        {
            string idCalc = CGestiuneIO.GetValoareDupaTipCheie(CGestiuneIO.EnumTipCheie.IdCalc);

            if (string.IsNullOrEmpty(idCalc))
            {
                statiaCurenta = new BMasina();
                statiaCurenta.initMasina();

                idCalc = statiaCurenta.Id;
                CGestiuneIO.setIdCalculator(idCalc);
            }

            return(idCalc);

            //if (statiaCurenta == null)
            //{
            //    statiaCurenta = new BMasina();
            //    statiaCurenta.initMasina();
            //}

            //return statiaCurenta.Id;
        }