Beispiel #1
0
        private LoadOperation <Web.Model.taxpayer> LoadTaxPayerEntities()
        {
            IsBusy = false;
            EntityQuery <DocumentManager.Web.Model.taxpayer> lQuery = documentManagerContext.GetTaxpayerQuery();

            lQuery = lQuery.Where(c => (c.taxpayer_group_id == 1));

            return(documentManagerContext.Load(lQuery.SortAndPageBy(this.taxPayerView)));
        }
        private LoadOperation <DocumentManager.Web.Model.taxpayer> LoadTaxPayerEntities()
        {
            EntityQuery <DocumentManager.Web.Model.taxpayer> lQuery = documentManagerContext.GetTaxpayerQuery();

            if (FilterContext != null)
            {
                lQuery = lQuery.Where(c => (c.taxpayer_group_id == GroupID) && (c.taxpayer_code.ToLower().Contains(FilterContext.ToLower()) || c.taxpayer_name.ToLower().Contains(FilterContext.ToLower())));
            }
            else
            {
                lQuery = lQuery.Where(c => (c.taxpayer_group_id == GroupID));
            }
            return(documentManagerContext.Load(lQuery.SortAndPageBy(this.taxPayerView)));
        }
        private LoadOperation <Web.Model.taxpayer> LoadTaxPayerEntities()
        {
            IsBusy = false;
            EntityQuery <DocumentManager.Web.Model.taxpayer> lQuery = documentManagerContext.GetTaxpayerQuery();

            lQuery = lQuery.Where(c => (c.taxpayer_group_id == GroupID));
            if (!String.IsNullOrEmpty(FilterString))
            {
                lQuery = lQuery.Where(c => (c.taxpayer_code.Contains(FilterString)) || (c.taxpayer_name.Contains(FilterString)));
            }
            if (GroupID != 1)
            {
                string lYear = DateTime.Now.Year.ToString();
                lQuery = lQuery.Where(c => (c.taxpayer_regyear == lYear || c.taxpayer_project_finish == false));
            }
            return(documentManagerContext.Load(lQuery.SortAndPageBy(this.taxPayerView)));
        }
Beispiel #4
0
        private void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityList.Clear();

            LoadOperation loadOperation = sender as LoadOperation;

            foreach (Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity lFileTypeEntity = new FileTypeEntity();
                lFileTypeEntity.FileType = filetype;
                lFileTypeEntity.Update();
                FileTypeEntityList.Add(lFileTypeEntity);
            }

            LoadOperation <DocumentManager.Web.Model.taxpayer> loadOperationTaxPayer =
                documentManagerContext.Load <DocumentManager.Web.Model.taxpayer>(documentManagerContext.GetTaxpayerQuery());

            loadOperationTaxPayer.Completed += loadOperationTaxPayer_Completed;
        }
Beispiel #5
0
        private LoadOperation <Web.Model.taxpayer> LoadTaxPayerEntities()
        {
            EntityQuery <DocumentManager.Web.Model.taxpayer> lQuery = documentManagerContext.GetTaxpayerQuery();

            return(documentManagerContext.Load(lQuery.SortAndPageBy(this.taxPayerView)));
        }