Example #1
0
        private async void _ButtGetStempelzeiten_Click(object sender, EventArgs e)
        {
            JsonCommand         cmd    = DataFoxServiceCommands.CreateGetStempelzeitenCommand(45310, DateTime.Today.AddDays(-7), DateTime.Today.MaximizeTimePart(), true);
            JsonCommandRetValue retval = await ModulesClientEnvironment.Default.JsonCommandClient.DoCommand(cmd);

            this._Ausgabe.Text = retval.ReturnCode + "\r\n" + retval.ReturnMessage + "\r\n" + retval.ReturnValue;
        }
Example #2
0
        public async void RefreshStempelTagInfos()
        {
            this.StempelTagInfos.Clear();
            this.ListViewStempelzeitenVisible = true;
            JsonCommand         cmd      = DataFoxServiceCommands.CreateGetStempelzeitenCommand(_CurrentUser.MitarbeiterkontaktIDGinkgo, DateTime.Today.AddDays(-7), DateTime.Today, true);
            JsonCommandRetValue retValue = await ModulesClientEnvironment.Default.JsonCommandClient.DoCommand(cmd);

            if (retValue.ReturnCode == 200)
            {
                List <StempelTagInfo> infos = JsonConvert.DeserializeObject <List <StempelTagInfo> >(retValue.ReturnValue);
                if (infos.Count > 0)
                {
                    infos.ForEach(x => _StempelTagInfos.Add(x));
                }
            }
        }