private void dataGridRMA_ExportAllClick(object sender, EventArgs e)
        {
            if (this.dataGridRMA.ItemsSource == null || this.dataGridRMA.TotalCount == 0)
            {
                Window.Alert(ResCustomerCalingQuery.Msg_NoData);
                return;
            }
            InitExportFilter();
            ColumnSet col = new ColumnSet(this.dataGridRMA);

            col.SetWidth("ProductID", 15);
            col.SetWidth("ProductName", 100);
            facade.ExportRMAList(filter, new ColumnSet[] { col });
        }
        private void dataGridComplain_ExportAllClick(object sender, EventArgs e)
        {
            if (this.dataGridComplain.ItemsSource == null || this.dataGridComplain.TotalCount == 0)
            {
                Window.Alert(ResCustomerCalingQuery.Msg_NoData);
                return;
            }
            InitExportFilter();
            ColumnSet col = new ColumnSet(this.dataGridComplain);

            col.SetWidth("ComplainSysNo", 15);
            col.SetWidth("SOSysNo", 15);
            col.SetWidth("Subject", 100);
            facade.ExportComplainList(filter, new ColumnSet[] { col });
        }
        private void dataGridCalling_ExportAllClick(object sender, EventArgs e)
        {
            if (this.dataGridCalling.ItemsSource == null || this.dataGridCalling.TotalCount == 0)
            {
                Window.Alert(ResCustomerCalingQuery.Msg_NoData);
                return;
            }
            InitExportFilter();
            ColumnSet col = new ColumnSet(this.dataGridCalling);

            col.SetWidth("OrderSysNo", 15);
            col.SetWidth("LastEditDate", 20);
            col.SetWidth("Status", 15);
            col.SetWidth("LastEditUserName", 20);
            facade.ExportCalling(filter, new ColumnSet[] { col });
        }
        private void dataGridSo_ExportAllClick(object sender, EventArgs e)
        {
            if (this.dataGridSo.ItemsSource == null || this.dataGridSo.TotalCount == 0)
            {
                Window.Alert(ResCustomerCalingQuery.Msg_NoData);
                return;
            }
            InitExportFilter();
            ColumnSet col = new ColumnSet(this.dataGridSo);

            col.Insert(0, "SOID", ResCustomerCalingQuery.Grid_So_SoSysNo, 15);
            col.SetWidth("CustomerID", 20);
            col.SetWidth("IsFPSO", 15);
            col.SetWidth("TotalAmount", 15);
            col.SetWidth("UpdatedMan", 20);
            facade.ExportSOList(filter, new ColumnSet[] { col });
        }
Exemple #5
0
        private void DataGrid_Product_ResultList_ExportAllClick(object sender, EventArgs e)
        {
            if (lastQueryVM == null || this.DataGrid_Product_ResultList.TotalCount < 1)
            {
                Window.Alert(ResRMAReports.Msg_ExportError);
                return;
            }
            if (this.DataGrid_Product_ResultList.TotalCount > 10000)
            {
                Window.Alert(ResRMAReports.Msg_ExportExceedsLimitCount);
                return;
            }

            ColumnSet col = new ColumnSet(this.DataGrid_Product_ResultList, true);

            col.SetWidth("ProductID", 15)
            .SetWidth("ProductName", 48);
            facade.ExportProductExcelFile(lastQueryVM, new ColumnSet[] { col });
        }
Exemple #6
0
        //private void QueryResultGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        //{
        //    if (this.QueryResultGrid.SelectedItem != null)
        //    {
        //        this.btnAudit.IsEnabled = ((CustomerPointsAddRequestStatus)(this.QueryResultGrid.SelectedItem as dynamic).status == CustomerPointsAddRequestStatus.AuditWaiting);
        //    }
        //}

        private void QueryResultGrid_ExportAllClick(object sender, EventArgs e)
        {
            if (this.QueryResultGrid.ItemsSource == null)
            {
                Window.Alert(ResCustomerPointsAddRequest.Msg_NoData);
                return;
            }
            queryRequest          = viewModel.ConvertVM <CustomerPointsAddQueryVM, CustomerPointsAddRequestFilter>();
            queryRequest.PageInfo = new PagingInfo()
            {
                PageIndex = 0,
                PageSize  = ConstValue.MaxRowCountLimit,
                SortBy    = string.Empty
            };
            ColumnSet col = new ColumnSet(this.QueryResultGrid);

            col.SetWidth("neweggaccount", 15);
            col.SetWidth("ownbydepartment", 15);
            col.SetWidth("point", 15);
            col.SetWidth("memo", 20);
            col.SetWidth("CreateDate", 20);
            col.SetWidth("confirmtime", 20);
            serviceFacade.ExportCustomerPointsAddList(queryRequest, new ColumnSet[] { col });
        }