// Update the ZeitKonto for a given interval,
        // e.g. recalculate the working hour count.
        public void UpdateZeitKontoForQuarter(int q, int y)
        {
            if (!userLoggedIn)
            {
                return;
            }

            ZeitKonto k = null;

            string idS = String.Format("{0}|{1}|{2}", userId, q, y);

            try
            {
                k = npcontext.GetObjectById <ZeitKonto>(idS);
            }
            catch (Exception e)
            { }
            if (k == null)
            {
                k         = npcontext.CreateObject <ZeitKonto>();
                k.MId     = userId;
                k.Periode = q;
                k.Jahr    = y;
            }

            npcontext.CommitObject(k);
        }
        // Returns the ZeitKonto for a given quarter
        public ZeitKonto GetZeitKontoForQuarter(int q, int y)
        {
            ZeitKonto k = null;

            string idS = String.Format("{0}|{1}|{2}", userId, q, y);

            try
            {
                k = npcontext.GetObjectById <ZeitKonto>(idS);
            }
            catch (Exception e)
            { }

            return(k);
        }