Example #1
0
        public static List<Language> AjaxLanCollection()
        {
            if (ServerSession.GetUserToken(HttpContext.Current.Session) == null)
            {
                setUserToken();
            }
            UserToken vUserToken = new UserToken();
            vUserToken.AssignFromSource(ServerSession.GetUserToken(HttpContext.Current.Session));

            LanguageCollection vLanguageCollection = new LanguageCollection();
            UserServiceConsumer.GetLanguageCollection(vUserToken, vLanguageCollection);

            return vLanguageCollection.LanguageList;
        }
Example #2
0
        public static List<JobType> AjaxJbtCollection()
        {
            if (ServerSession.GetUserToken(HttpContext.Current.Session) == null)
            {
                setUserToken();
            }
            UserToken vUserToken = new UserToken();
            vUserToken.AssignFromSource(ServerSession.GetUserToken(HttpContext.Current.Session));

            JobTypeCollection vJobTypeCollection = new JobTypeCollection();
            UserServiceConsumer.GetJobTypeCollection(vUserToken, vJobTypeCollection);

            return vJobTypeCollection.JobTypeList;
        }
Example #3
0
        public static List<Client> AjaxClnJobCollection()
        {
            if (ServerSession.GetUserToken(HttpContext.Current.Session) == null)
            {
                setUserToken();
            }
            UserToken vUserToken = new UserToken();
            vUserToken.AssignFromSource(ServerSession.GetUserToken(HttpContext.Current.Session));

            ClientCollection vClientCollection = new ClientCollection();
            UserServiceConsumer.GetClientCollection(vUserToken, vClientCollection);

            foreach (Client vClient in vClientCollection.ClientList)
            {
                JobCollection vJobCollection = new JobCollection();
                vJobCollection.JobFilter.IsFiltered = true;
                vJobCollection.JobFilter.ClientKeyFilter = vClient.ClnKey;
                UserServiceConsumer.GetJobCollection(vUserToken, vJobCollection);
                foreach (Job vJob in vJobCollection.JobList)
                {
                    WorkItemCollection vWorkItemCollection = new WorkItemCollection();
                    vWorkItemCollection.WorkItemFilter.IsFiltered = true;
                    vWorkItemCollection.WorkItemFilter.ClientKeyFilter = vJob.ClnKey;
                    vWorkItemCollection.WorkItemFilter.JobKeyFilter = vJob.JobbKey;
                    UserServiceConsumer.GetWorkItemCollection(vUserToken, vWorkItemCollection);
                    foreach (WorkItem vWorkItem in vWorkItemCollection.WorkItemList)
                    {
                        vJob.children.Add(vWorkItem);
                    }
                    vJob.value = vJob.children.Count();
                    if (vClient.ClnKey == vJob.ClnKey)
                        vClient.children.Add(vJob);
                }
                vClient.value = vClient.children.Count();
            }
            return vClientCollection.ClientList;
        }
Example #4
0
        public static List<Contributor> AjaxConLanCollection()
        {
            if (ServerSession.GetUserToken(HttpContext.Current.Session) == null)
            {
                setUserToken();
            }
            UserToken vUserToken = new UserToken();
            vUserToken.AssignFromSource(ServerSession.GetUserToken(HttpContext.Current.Session));

            ContributorCollection vContributorCollection = new ContributorCollection();
            UserServiceConsumer.GetContributorCollection(vUserToken, vContributorCollection);

            foreach (Contributor vContributor in vContributorCollection.ContributorList)
            {
                LanguageCollection vLanguageCollection = new LanguageCollection();
                UserServiceConsumer.GetLanguageCollection(vUserToken, vLanguageCollection);
                foreach (Language vLanguage in vLanguageCollection.LanguageList)
                {
                    vContributor.children.Add(vLanguage);
                }

                vContributor.value = vContributor.children.Count();
            }
            return vContributorCollection.ContributorList;
        }