private void dgQueryResult_LoadingDataSource(object sender, Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs e)
        {
            if (string.IsNullOrEmpty(queryVM.ProductID))
            {
                queryVM.ProductSysNo = null;
            }

            queryFilter = EntityConverter <ExperienceHallAllocateOrderQueryVM, ExperienceHallAllocateOrderQueryFilter> .Convert(queryVM);



            this.queryFilter.PagingInfo = new QueryFilter.Common.PagingInfo();

            this.queryFilter.PagingInfo.PageIndex = e.PageIndex;
            this.queryFilter.PagingInfo.PageSize  = e.PageSize;
            this.queryFilter.PagingInfo.SortBy    = e.SortField;
            serviceFacade.ExperienceHallAllocateOrderQuery(queryFilter, (innerObj, innerArgs) =>
            {
                if (innerArgs.FaultsHandle())
                {
                    return;
                }

                int totalCount = innerArgs.Result.TotalCount;
                this.dgQueryResult.ItemsSource = innerArgs.Result.Rows;
                this.dgQueryResult.TotalCount  = totalCount;
            });
        }
예제 #2
0
        public void ExportExcelExperienceHallAllocateOrderQuery(ExperienceHallAllocateOrderQueryFilter queryFilter, ColumnSet[] columns)
        {
            //queryFilter.CompanyCode = CPApplication.Current.CompanyCode;
            string relativeUrl = "/InventoryService/ExperienceHall/ExperienceHallAllocateOrderQuery";

            restClient.ExportFile(relativeUrl, queryFilter, columns);
        }
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     queryFilter      = new ExperienceHallAllocateOrderQueryFilter();
     queryVM          = new ExperienceHallAllocateOrderQueryVM();
     serviceFacade    = new ExperienceMaintainFacade(this);
     this.DataContext = queryVM;
     // expander1.DataContext = queryVM;
 }
        public QueryResult QueryExperienceHallAllocateOrder(ExperienceHallAllocateOrderQueryFilter request)
        {
            int totalCount;
            var dataTable = ObjectFactory <IExperienceHallQueryDA> .Instance.
                            QueryExperienceHallAllocateOrder(request, out totalCount);

            return(new QueryResult()
            {
                Data = dataTable,
                TotalCount = totalCount
            });
        }
        private void dgQueryResult_ExportAllClick(object sender, EventArgs e)
        {
            ExperienceHallAllocateOrderQueryFilter exportQueryRequest = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <ExperienceHallAllocateOrderQueryFilter>(queryFilter);

            exportQueryRequest.PagingInfo = new QueryFilter.Common.PagingInfo()
            {
                PageIndex = 0, PageSize = ConstValue.MaxRowCountLimit
            };
            ColumnSet columnSet = new ColumnSet()
                                  .Add("SysNo", "单据编号", 20)
                                  .Add("Status", "状态", 40)
                                  .Add("AllocateType", "调拨性质", 40)
                                  .Add("Indate", "创建时间", 20)
                                  .Add("InUserName", "创建人", 20)
                                  .Add("EditDate", "编辑时间", 20)
                                  .Add("EditUserName", "编辑人", 20)
                                  .Add("AuditDate", "审核时间", 20)
                                  .Add("AuditUserName", "审核人", 20);

            serviceFacade.ExportExcelExperienceHallAllocateOrderQuery(exportQueryRequest, new ColumnSet[] { columnSet });
        }
예제 #6
0
        public void ExperienceHallAllocateOrderQuery(ExperienceHallAllocateOrderQueryFilter queryFilter, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            string relativeUrl = "/InventoryService/ExperienceHall/ExperienceHallAllocateOrderQuery";

            restClient.QueryDynamicData(relativeUrl, queryFilter, callback);
        }