Example #1
0
        private void PrintRecord()
        {
            string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls";

            ExportBackbound.ExportRecord(recordView, tempFile);

            if (System.IO.File.Exists(tempFile))
            {
                System.Diagnostics.Process.Start(tempFile);
            }
        }
Example #2
0
        private void PrintDetail(string boundID)
        {
            string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls";

            ExportBackbound.ExportDetail(detailView, boundID, tempFile);

            if (System.IO.File.Exists(tempFile))
            {
                System.Diagnostics.Process.Start(tempFile); //保存
            }
        }
Example #3
0
        private void PrintDetail()
        {
            string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls";

            detailGrid.ExportToXls(tempFile);

            if (System.IO.File.Exists(tempFile))
            {
                System.Diagnostics.Process.Start(tempFile);
            }
        }
Example #4
0
        private void PrintGrid(GridControl grid)
        {
            string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls";

            string customer = GetCustomerNo();
            string strDate  = GetOrderDate();

            ExportInvoice.ExportInvioceTotal(editView, customer, strDate, tempFile);

            if (System.IO.File.Exists(tempFile))
            {
                System.Diagnostics.Process.Start(tempFile);
            }
        }
Example #5
0
        private void PrintGrid(GridControl grid)
        {
            string orderNo  = inboundView.GetFocusedRowCellValue("ProductNo").ToString();
            string tempFile = AppConfig.GetTempDirectory() + Database.GetGlobalKey() + ".xls";

            if (grid == detailGrid)
            {
                ExportGridView.ExportDetail(this.detailView, tempFile);
            }
            else
            {
                ExportGridView.ExportRecord(orderNo, this.recordView, tempFile);
            }

            if (System.IO.File.Exists(tempFile))
            {
                System.Diagnostics.Process.Start(tempFile); //保存v
            }
        }