コード例 #1
0
        public CashTransferListingReport(IPdfLauncher pdfLauncher)
            : base("Cash Transfer Listing",
                   " ", " ", pdfLauncher)
        {
            reportPageSize = PageSize.LETTER.Rotate();

            showReportDate = false;
            heading aHeading = new heading()
            {
                align        = Element.ALIGN_LEFT,
                width        = 50f,
                format       = "{0}",
                showTotal    = false,
                field_align  = -1,
                header_align = -1,
                Translator   = null
            };

            aHeading.text      = "Transfer #";
            aHeading.fieldName = "TRANSFERNUMBER";
            headers.Add(aHeading);

            aHeading.width     = 100f;
            aHeading.text      = "Transfer Type";
            aHeading.fieldName = "TRANSFERTYPE";
            headers.Add(aHeading);

            aHeading.text      = "Transfer Date / Time";
            aHeading.fieldName = "TRANSFERDATE";
            headers.Add(aHeading);

            aHeading.width     = 60f;
            aHeading.text      = "Transfer Amount";
            aHeading.fieldName = "TRANSFERAMOUNT";
            aHeading.format    = "{0:C}";
            aHeading.align     = Element.ALIGN_RIGHT;
            headers.Add(aHeading);

            aHeading.align     = Element.ALIGN_CENTER;
            aHeading.format    = "{0}";
            aHeading.width     = 100f;
            aHeading.text      = "Source";
            aHeading.fieldName = "SOURCE";
            headers.Add(aHeading);

            aHeading.text      = "Destination";
            aHeading.fieldName = "DESTINATION";
            headers.Add(aHeading);

            aHeading.width     = 75f;
            aHeading.text      = "Status";
            aHeading.fieldName = "TRANSFERSTATUS";
            headers.Add(aHeading);

            aHeading.align     = Element.ALIGN_LEFT;
            aHeading.text      = "User Id";
            aHeading.fieldName = "USERID";
            headers.Add(aHeading);
        }
コード例 #2
0
 public PickupPaymentReceipt(PickupPaymentContext context, IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
     Context      = context;
     OtherFees    = 0;
     PfiMailerFee = 0;
     TicketTotal  = 0;
 }
コード例 #3
0
 protected ReportBase(string footer, string disclaimer, string totalLabel, IPdfLauncher pdfLauncher)
     : this(pdfLauncher)
 {
     _ShopTime   = DateTime.Now;
     _footer     = footer;
     _disclaimer = disclaimer;
     _totalLabel = totalLabel;
     _pageSize   = PageSize.LETTER;
 }
コード例 #4
0
        public JewelryCountDetailReport(IPdfLauncher pdfLauncher)
            : base("Jewelry Count Worksheet", "", "", pdfLauncher)
        {
            showReportDate     = false;
            GroupByFooterTitle = "Total Count for Case {0}:";

            heading aHeading = new heading()
            {
                align        = Element.ALIGN_CENTER,
                width        = 45f,
                format       = "{0}",
                showTotal    = false,
                field_align  = -1,
                header_align = -1,
                Translator   = null
            };

            aHeading.text      = "Jewelry Case";
            aHeading.fieldName = "JCASE";
            aHeading.groupBy   = true;
            headers.Add(aHeading);

            aHeading.text      = "Transaction\nTime";
            aHeading.fieldName = "TRANS_TIME";
            aHeading.groupBy   = false;
            headers.Add(aHeading);

            aHeading.text      = "Employee #";
            aHeading.fieldName = "CREATEDBY";
            headers.Add(aHeading);

            aHeading.text      = "Transaction\nStatus";
            aHeading.fieldName = "STATUS_CD";
            headers.Add(aHeading);

            aHeading.text      = "Transaction\nNumber";
            aHeading.fieldName = "DISP_DOC";
            headers.Add(aHeading);

            aHeading.text      = "Short\nCode";
            aHeading.fieldName = "SHORT_CODE";
            headers.Add(aHeading);

            aHeading.text         = "Merchandise Description";
            aHeading.fieldName    = "MD_DESC";
            aHeading.field_align  = Element.ALIGN_LEFT;
            aHeading.header_align = Element.ALIGN_CENTER;
            aHeading.width        = 200f;
            headers.Add(aHeading);
        }
コード例 #5
0
        public static bool DoReport(ReportObject reportObject, IPdfLauncher pdfLauncher)
        {
            bool reportOK = false;

            RunReport runReport = new RunReport();

            runReport.reportObject = reportObject;

            //runReport.reportObject = this;
            if (FileLogger.Instance.IsLogInfo)
            {
                FileLogger.Instance.logMessage(LogLevel.INFO, "ReportProcessing",
                                               "- Report " + reportObject.ReportTitle + " has been requested.");
            }

            if (runReport.CreateReport(pdfLauncher))
            {
                try
                {
                    //SMurphy 4/13/2010 problem when Adobe is already open
                    Process adbProcess = AdobeReaderOpen();
                    if (adbProcess != null)
                    {
                        adbProcess.Kill();
                    }
                }
                catch (Exception eX)
                {
                    if (FileLogger.Instance.IsLogError)
                    {
                        FileLogger.Instance.logMessage(LogLevel.ERROR, "RunReport", "Exception thrown when killing Adobe processes: {0}:{1} {2}",
                                                       eX, eX.Data, eX.StackTrace ?? "NoStackTrace");
                    }
                }

                try
                {
                    pdfLauncher.ShowPDFFile(reportObject.ReportTempFileFullName, false);
                    reportOK = true;
                }
                catch (Exception /*exc*/)
                {
                    reportOK = false;
                }
            }

            return(reportOK);
        }
コード例 #6
0
        public DailySalesReport_Summary(IPdfLauncher pdfLauncher)
            : base("Daily Sales Employee Summary", "", "Totals:", pdfLauncher)
        {
            // TODO: add sales header for criteria, and gross profit to totals; total format??
            //

            showReportDate = false;
            reportPageSize = PageSize.LETTER;

            GroupByFooterTitle = "Total for User ID: {0}";
            showGroupCount     = false;

            heading aHeading = new heading()
            {
                align        = Element.ALIGN_LEFT,
                width        = 70f,
                format       = "{0}",
                showTotal    = false,
                field_align  = Element.ALIGN_RIGHT,
                header_align = Element.ALIGN_RIGHT,
                Translator   = null
            };

            aHeading.text      = "User ID";
            aHeading.fieldName = "USERID";
            headers.Add(aHeading);

            aHeading.text      = "Total Cost";
            aHeading.fieldName = "TOTAL_COST";
            aHeading.showTotal = true;
            aHeading.format    = "{0:F2}";
            headers.Add(aHeading);

            aHeading.text      = "Total Retail";
            aHeading.fieldName = "TOTAL_RETAIL";
            headers.Add(aHeading);

            aHeading.text      = "Gross Profit";
            aHeading.fieldName = "GROSS_PROFIT";
            aHeading.format    = "{0:p0}";
            headers.Add(aHeading);

            aHeading.text      = " R/S % Variance";
            aHeading.fieldName = "AVG_VARNC_PCT";
            aHeading.format    = "{0:F0} %";
            headers.Add(aHeading);
        }
コード例 #7
0
        public JewelryCountSummaryReport(IPdfLauncher pdfLauncher)
            : base("Jewelry Count Summary", "", "Transaction Total:", pdfLauncher)
        {
            showReportDate = false;
            heading aHeading = new heading()
            {
                align        = Element.ALIGN_CENTER,
                width        = 70f,
                format       = "{0}",
                showTotal    = false,
                field_align  = -1,
                header_align = -1,
                Translator   = null
            };

            aHeading.text      = "Jewelry Case";
            aHeading.fieldName = "JCASE";
            headers.Add(aHeading);

            aHeading.text      = "Sales";
            aHeading.fieldName = "SALES";
            aHeading.showTotal = true;
            headers.Add(aHeading);

            aHeading.text      = "Layaways";
            aHeading.fieldName = "LAYAWAYS";
            headers.Add(aHeading);

            aHeading.text      = "Transfer Out/OS";
            aHeading.fieldName = "TRANSFERSOUT";
            headers.Add(aHeading);

            aHeading.text      = "Returns";
            aHeading.fieldName = "RETURNS";
            headers.Add(aHeading);

            aHeading.text      = "Police Seize";
            aHeading.fieldName = "SEIZES";
            headers.Add(aHeading);

            aHeading.text      = "Case Total";
            aHeading.fieldName = "TOTAL";
            headers.Add(aHeading);
        }
コード例 #8
0
        public static bool DoReport(LayawayReportObject reportObject, bool open, IPdfLauncher pdfLauncher)
        {
            bool reportOK = false;
            LayawayRunReports runReport = new LayawayRunReports();

            runReport.reportObject = reportObject;

            //runReport.reportObject = this;

            FileLogger.Instance.logMessage(LogLevel.INFO, "ReportProcessing", "- Report " + reportObject.ReportTitle + " has been requested.");

            if (runReport.CreateReport(pdfLauncher))
            {
                if (open)
                {
                    pdfLauncher.ShowPDFFile(reportObject.ReportTempFileFullName, false);
                }
            }

            return(reportOK);
        }
コード例 #9
0
 public PawnTicketAddendumDocument(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #10
0
 public SummaryReport(List <TransferItemVO> transferList, ReportObject.TransferINReportStruct reportObj, IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
     _transferList = transferList;
     _reportObj    = reportObj;
     _logPath      = reportObj.logPath;
 }
コード例 #11
0
 public RefurbList(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #12
0
 public PostAuditReport(IPdfLauncher pdfLauncher) : base(pdfLauncher)
 {
 }
コード例 #13
0
 public TransferOutScrapsReport(List <TransferItemVO> t, List <IItem> s, BusinessRuleVO rule, DateTime shopDT, string userName, string transferNumber,
                                string catcoTransferType, string logPath, ReportObject.TransferReport reportObj, IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
     _mdseTransfer      = t;
     _trnsfrItems       = s;
     _shopDT            = shopDT;
     _userName          = userName;
     _transferNumber    = transferNumber;
     brMetalType        = rule;
     _catcoTransferType = catcoTransferType;
     _logPath           = logPath;
     _reportTitle       = String.Format("Transfer Out {0} Summary", _catcoTransferType);
     _reportObj         = reportObj;
 }
コード例 #14
0
 protected AbstractExtensionMemo(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
     Documents         = new List <string>();
     ExtensionToPdfMap = new Dictionary <int, string>();
 }
コード例 #15
0
        public PartialPaymentListingReport(IPdfLauncher pdfLauncher)
            : base("Partial Payments Listing",
                   " ", " ", pdfLauncher)
        {
            reportType = "Inquiry";

            reportPageSize = PageSize.LETTER.Rotate();

            showReportDate = false;
            heading aHeading = new heading()
            {
                align        = Element.ALIGN_CENTER,
                width        = 50f,
                format       = "{0}",
                showTotal    = false,
                field_align  = -1,
                header_align = -1,
                Translator   = null
            };

            aHeading.text      = "Loan #";
            aHeading.fieldName = "TICKET_NUMBER";
            headers.Add(aHeading);

            aHeading.text      = "Loan Date Made";
            aHeading.fieldName = "DATE_MADE";
            aHeading.format    = "{0:d}";
            headers.Add(aHeading);

            aHeading.width     = 110f;
            aHeading.text      = "Customer Name";
            aHeading.fieldName = "cust_name";
            aHeading.format    = "{0}";
            headers.Add(aHeading);

            aHeading.width     = 60f;
            aHeading.text      = "Date Of Birth";
            aHeading.fieldName = "birthdate";
            aHeading.format    = "{0:d}";
            //aHeading.align = Element.ALIGN_RIGHT;
            headers.Add(aHeading);

            aHeading.text      = "Loan Amount";
            aHeading.fieldName = "LOAN_AMOUNT";
            aHeading.format    = "{0:C2}";
            headers.Add(aHeading);

            aHeading.text      = "New Principal Amount";
            aHeading.fieldName = "CURRENT_PRIN_AMOUNT";
            aHeading.format    = "{0:C2}";
            headers.Add(aHeading);

            aHeading.width     = 80f;
            aHeading.text      = "Partial Payment Date Paid";
            aHeading.fieldName = "PP_DATE";
            aHeading.format    = "{0:d}";
            headers.Add(aHeading);

            aHeading.width     = 60f;
            aHeading.text      = "Partial Payment Amount";
            aHeading.fieldName = "PP_AMOUNT";
            aHeading.format    = "{0:C2}";
            headers.Add(aHeading);

            aHeading.text      = "Partial Payment Status";
            aHeading.fieldName = "status_cd";
            aHeading.format    = "{0}";
            headers.Add(aHeading);
        }
コード例 #16
0
 public ExtensionMemoOhio(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #17
0
 public TerminatedLayawayPickingSlip(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #18
0
 public LayawayContractReport(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
 public AuthorizationToReleaseFingerprints(int seizeNumber, ProductType productType, ReleaseFingerprintsContext context, IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
     _context     = context;
     _seizeNumber = seizeNumber;
     _productType = productType;
 }
コード例 #20
0
        public CACCSalesReport(IPdfLauncher pdfLauncher)
            : base("CACC Sales Analysis",
                   "NOTE:  The figures for SALES only includes actual sales.  It does not include reductions of inventory for Transfers-Out, Police Seizures, etc..", "", pdfLauncher)
        {
            showReportDate = false;
            heading aHeading = new heading()
            {
                align        = Element.ALIGN_LEFT,
                width        = 114f,
                format       = "{0}",
                showTotal    = false,
                field_align  = -1,
                header_align = -1,
                Translator   = null
            };

            aHeading.text      = "CACC Type";
            aHeading.fieldName = "CAT_DESC";
            headers.Add(aHeading);

            aHeading.text      = "Beginning\nInventory";
            aHeading.fieldName = "START_INVENTORY";
            aHeading.width     = 38f;
            aHeading.align     = Element.ALIGN_CENTER;
            headers.Add(aHeading);

            aHeading.text      = "Quantity\nSold";
            aHeading.fieldName = "NR_SOLD";
            aHeading.width     = 32f;
            headers.Add(aHeading);

            aHeading.text      = "Average\nCost";
            aHeading.fieldName = "AVG_COST";
            aHeading.align     = Element.ALIGN_RIGHT;
            aHeading.format    = "{0:0.00}";
            headers.Add(aHeading);

            aHeading.text      = "Average\nRetail";
            aHeading.fieldName = "AVG_RETAIL";
            headers.Add(aHeading);

            aHeading.text      = "Gross\nProfit %";
            aHeading.fieldName = "GROSS_PROFIT";
            aHeading.align     = Element.ALIGN_CENTER;
            aHeading.format    = "{0:0.0}";
            headers.Add(aHeading);

            aHeading.text      = "Quantity\nAdded";
            aHeading.fieldName = "QTY_ADDED";
            aHeading.format    = "{0}";
            aHeading.width     = 34f;
            headers.Add(aHeading);

            aHeading.text      = "Charge\nOff";
            aHeading.fieldName = "CHARGE_OFF";
            aHeading.width     = 32f;
            headers.Add(aHeading);

            aHeading.text      = "Charge\nOn";
            aHeading.fieldName = "CHARGE_ON";
            aHeading.width     = 32f;
            headers.Add(aHeading);

            aHeading.text      = "Ending\nInventory";
            aHeading.fieldName = "END_INVENTORY";
            aHeading.width     = 36f;
            headers.Add(aHeading);

            aHeading.text      = "End Inv\nAvg Cost";
            aHeading.fieldName = "END_INV_COST";
            aHeading.align     = Element.ALIGN_RIGHT;
            aHeading.format    = "{0:0.00}";
            headers.Add(aHeading);

            aHeading.text      = "Turns";
            aHeading.fieldName = "TURNS";
            aHeading.width     = 38f;
            aHeading.align     = Element.ALIGN_RIGHT;
            aHeading.format    = "{0}";
            headers.Add(aHeading);
        }
コード例 #21
0
 public LayawayForefeitPickingSlip(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #22
0
 public GunBookUtility(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #23
0
 public CostRevisionReport(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #24
0
 public TrakkerUploadReport(IPdfLauncher pdfLauncher) : base(pdfLauncher)
 {
     //_ReportObject = new AuditReportsObject();
     //ReportObject = _ReportObject;
 }
コード例 #25
0
 public RetailPriceChangeReport(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #26
0
 public RetailSaleInquiryDetailReport(IPdfLauncher pdfLauncher) : base(pdfLauncher)
 {
 }
コード例 #27
0
 public StatusChangeReport(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }
コード例 #28
0
 public PfiPostReport(DataTable dataTable, string sTotalCost, string sTags, string sAsOf, DateTime shopTime, ReportObject reportObject, IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
     if (dataTable != null)
     {
         _Records      = dataTable.Rows;
         _RecordCount  = _Records.Count;
         _ShopTime     = shopTime;
         _StoreNumber  = reportObject.ReportStore;
         _Tags         = sTags;
         _TotalCost    = sTotalCost;
         _AsOf         = sAsOf;
         _ReportObject = reportObject;
     }
 }
コード例 #29
0
 public InventorySummaryResponseReport(IPdfLauncher pdfLauncher) : base(pdfLauncher)
 {
     //_ReportObject = new AuditReportsObject();
     //ReportObject = _ReportObject;
 }
コード例 #30
0
 public PFIMailerDocument(IPdfLauncher pdfLauncher)
     : base(pdfLauncher)
 {
 }