Ejemplo n.º 1
0
        public string PrintKitchenStockReport(List <InventoryStockReport> aReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
            VariousMethod       aMethod             = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);

            strBody += header;
            //   strBody += "\r\n";

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Kitchen Stock Report");
            // strBody += "\r\n";
            double totalRawCost = aReports.Sum(a => a.Price);

            strBody += "\r\n" + "Total Raw Costing= " + totalRawCost.ToString("F02");
            double balanceAmount = aReports.Sum(a => a.UnitPrice * a.BalanceQty);

            strBody += "\r\n" + stringPrintFormater.ItemLabeledText("Total Balance Price: " + balanceAmount, "");

            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            strBody += "\r\n" + stringPrintFormater.GridCell("Date", 30, false);
            strBody += stringPrintFormater.GridCell("Item Name", 50, false);
            strBody += stringPrintFormater.GridCell("Received Qty.", 17, false);
            strBody += stringPrintFormater.GridCell("Send Qty.", 17, false); // Its should be active when Professional Package is active
            strBody += stringPrintFormater.GridCell("Damage Qty.", 17, false);
            strBody += stringPrintFormater.GridCell("Sale Qty.", 17, false);
            strBody += stringPrintFormater.GridCell("Balance Qty.", 17, false);
            strBody += stringPrintFormater.GridCell("Raw M.P.", 17, false); //// Its should be active when Professional Package is active
            // strBody += stringPrintFormater.GridCell("Advance Amount", 19, false);

            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (InventoryStockReport report in aReports)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 30, false);
                strBody += stringPrintFormater.GridCell(report.ItemName, 50, false);
                strBody += stringPrintFormater.GridCell(report.ReceivedQty.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.SendQty.ToString("F02"), 17, false);  // Its should be active when Professional Package is active
                strBody += stringPrintFormater.GridCell(report.DamageQty.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.SaleQty.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.BalanceQty.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.Price.ToString("F02"), 17, false); // Its should be active when Professional Package is active
                // strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();
            }


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Ejemplo n.º 2
0
        public string PrintPurchaseReport(List <InventoryReport> aReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
            VariousMethod       aMethod             = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);

            strBody += header;
            //   strBody += "\r\n";
            double totalPrice = aReports.Sum(a => a.TotalAmount);

            strBody += "\r\n" + stringPrintFormater.ItemLabeledText("Total Purchase Price: " + totalPrice, "");
            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Inventory Purchase Report");
            // strBody += "\r\n";
            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            strBody += "\r\n" + stringPrintFormater.GridCell("Date", 23, false);
            strBody += stringPrintFormater.GridCell("Item Name", 35, false);
            strBody += stringPrintFormater.GridCell("Supplier Name", 35, false);
            strBody += stringPrintFormater.GridCell("Quantity", 17, false);
            strBody += stringPrintFormater.GridCell("Unit", 10, false);
            strBody += stringPrintFormater.GridCell("Total Amount", 17, false);
            strBody += stringPrintFormater.GridCell("Paid Amount", 17, false);
            strBody += stringPrintFormater.GridCell("Payment Type", 21, false);


            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (InventoryReport report in aReports)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 23, false);
                strBody += stringPrintFormater.GridCell(report.ItemName, 35, false);
                strBody += stringPrintFormater.GridCell(report.SupplierName, 35, false);
                strBody += stringPrintFormater.GridCell(report.Quantity.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.Unit, 10, false);
                strBody += stringPrintFormater.GridCell(report.TotalAmount.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.PaidAmount.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.PaymentType, 21, false);
                // strBody += stringPrintFormater.GridCell(report.DamageReport, 17, false);
                // strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();
            }


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Ejemplo n.º 3
0
        public string PrintPurchaseReport(List<InventoryReport> aReports)
        {
            string strBody = "";
               StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
               VariousMethod aMethod = new VariousMethod();
               string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);
               strBody += header;
               //   strBody += "\r\n";
               double totalPrice = aReports.Sum(a => a.TotalAmount);
               strBody += "\r\n" + stringPrintFormater.ItemLabeledText("Total Purchase Price: " + totalPrice, "");
               strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Inventory Purchase Report");
               // strBody += "\r\n";
               strBody += "\r\n";
               strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

               strBody += "\r\n" + stringPrintFormater.GridCell("Date", 23, false);
               strBody += stringPrintFormater.GridCell("Item Name", 35, false);
               strBody += stringPrintFormater.GridCell("Supplier Name", 35, false);
               strBody += stringPrintFormater.GridCell("Quantity", 17, false);
               strBody += stringPrintFormater.GridCell("Unit", 10, false);
               strBody += stringPrintFormater.GridCell("Total Amount", 17, false);
               strBody += stringPrintFormater.GridCell("Paid Amount", 17, false);
               strBody += stringPrintFormater.GridCell("Payment Type", 21, false);

               strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

               foreach (InventoryReport report in aReports)
               {
               strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 23, false);
               strBody += stringPrintFormater.GridCell(report.ItemName, 35, false);
               strBody += stringPrintFormater.GridCell(report.SupplierName, 35, false);
               strBody += stringPrintFormater.GridCell(report.Quantity.ToString("F02"), 17, false);
               strBody += stringPrintFormater.GridCell(report.Unit, 10, false);
               strBody += stringPrintFormater.GridCell(report.TotalAmount.ToString("F02"), 17, false);
               strBody += stringPrintFormater.GridCell(report.PaidAmount.ToString("F02"), 17, false);
               strBody += stringPrintFormater.GridCell(report.PaymentType, 21, false);
              // strBody += stringPrintFormater.GridCell(report.DamageReport, 17, false);
               // strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
               strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

               }

               strBody += aMethod.AddEndPart();

               return strBody;
        }
Ejemplo n.º 4
0
        public string PrintTransactionReport(List <TransationReport> aReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
            VariousMethod       aMethod             = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);

            strBody += header;
            //   strBody += "\r\n";

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Inventory Transaction Report");
            // strBody += "\r\n";
            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            strBody += "\r\n" + stringPrintFormater.GridCell("Date", 23, false);
            strBody += stringPrintFormater.GridCell("Item Name", 45, false);
            strBody += stringPrintFormater.GridCell("Quantity", 17, false);
            strBody += stringPrintFormater.GridCell("Unit", 17, false);
            // strBody += stringPrintFormater.GridCell("Total Price", 17, false);// Its should be active when Professional Package is active
            strBody += stringPrintFormater.GridCell("Transaction Type", 21, false);
            strBody += stringPrintFormater.GridCell("Damage Report", 17, false);
            // strBody += stringPrintFormater.GridCell("Advance Amount", 19, false);

            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (TransationReport report in aReports)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 23, false);
                strBody += stringPrintFormater.GridCell(report.ItemName, 45, false);
                strBody += stringPrintFormater.GridCell(report.Quantity.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.Unit, 17, false);
                // strBody += stringPrintFormater.GridCell(report.TotalPrice.ToString("F02"), 17, false);// Its should be active when Professional Package is active
                strBody += stringPrintFormater.GridCell(report.TransactionType, 21, false);
                strBody += stringPrintFormater.GridCell(report.DamageReport, 17, false);
                // strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();
            }


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Ejemplo n.º 5
0
        public string SupplierPaymentReportPrint(List <Supplier> aSupplierReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
            VariousMethod       aMethod             = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);

            strBody += header;
            //   strBody += "\r\n";

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Supplier Information");
            // strBody += "\r\n";
            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            // strBody += "\r\n" + stringPrintFormater.GridCell("Date Time", 30, false);
            strBody += "\r\n" + stringPrintFormater.GridCell("Supplier Name", 30, false);
            strBody += stringPrintFormater.GridCell("Supplier Information", 65, false);
            strBody += stringPrintFormater.GridCell("Total Amount", 17, false);
            strBody += stringPrintFormater.GridCell("Paid Amount", 17, false);
            strBody += stringPrintFormater.GridCell("Due Amount.", 17, false);
            strBody += stringPrintFormater.GridCell("Advance Amount", 19, false);

            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (Supplier report in aSupplierReports)
            {
                //strBody += "\r\n" + stringPrintFormater.GridCell(report.PaymentDate.ToString(), 30, false);
                strBody += "\r\n" + stringPrintFormater.GridCell(report.Name, 30, false);
                strBody += stringPrintFormater.GridCell(report.ContactInformation, 65, false);
                strBody += stringPrintFormater.GridCell(report.TotalAmount.ToString(), 17, false);
                strBody += stringPrintFormater.GridCell(report.PaidAmount.ToString(), 17, false);
                strBody += stringPrintFormater.GridCell(report.DueAmount.ToString(), 17, false);
                strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();
            }


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Ejemplo n.º 6
0
        public string PrintTransactionReport(List<TransationReport> aReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
            VariousMethod aMethod = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);
            strBody += header;
            //   strBody += "\r\n";

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Inventory Transaction Report");
            // strBody += "\r\n";
            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            strBody += "\r\n" + stringPrintFormater.GridCell("Date", 23, false);
            strBody += stringPrintFormater.GridCell("Item Name", 45, false);
            strBody += stringPrintFormater.GridCell("Quantity", 17, false);
            strBody += stringPrintFormater.GridCell("Unit", 17, false);
               // strBody += stringPrintFormater.GridCell("Total Price", 17, false);// Its should be active when Professional Package is active
            strBody += stringPrintFormater.GridCell("Transaction Type", 21, false);
            strBody += stringPrintFormater.GridCell("Damage Report", 17, false);
            // strBody += stringPrintFormater.GridCell("Advance Amount", 19, false);

            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (TransationReport report in aReports)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 23, false);
                strBody += stringPrintFormater.GridCell(report.ItemName, 45, false);
                strBody += stringPrintFormater.GridCell(report.Quantity.ToString("F02"), 17, false);
                strBody += stringPrintFormater.GridCell(report.Unit, 17, false);
                // strBody += stringPrintFormater.GridCell(report.TotalPrice.ToString("F02"), 17, false);// Its should be active when Professional Package is active
                strBody += stringPrintFormater.GridCell(report.TransactionType, 21, false);
                strBody += stringPrintFormater.GridCell(report.DamageReport, 17, false);
                // strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            }

            strBody += aMethod.AddEndPart();

            return strBody;
        }
Ejemplo n.º 7
0
        public string SupplierPaymentReportPrint(List <SupplierPaymentReport> aPaymentReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
            VariousMethod       aMethod             = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);

            strBody += header;
            //   strBody += "\r\n";

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Supplier Payment Report");
            // strBody += "\r\n";
            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            strBody += "\r\n" + stringPrintFormater.GridCell("Date Time", 30, false);
            strBody += stringPrintFormater.GridCell("Supplier Name", 50, false);
            strBody += stringPrintFormater.GridCell("Total Amount", 18, false);
            strBody += stringPrintFormater.GridCell("Paid Amount", 18, false);
            strBody += stringPrintFormater.GridCell("Payment Type.", 18, false);
            strBody += stringPrintFormater.GridCell("User Name", 30, false);

            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (SupplierPaymentReport report in aPaymentReports)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.PaymentDate.ToString(), 30, false);
                strBody += stringPrintFormater.GridCell(report.SupplierName, 50, false);
                strBody += stringPrintFormater.GridCell(report.TotalAmount.ToString(), 18, false);
                strBody += stringPrintFormater.GridCell(report.PaidAmount.ToString(), 18, false);
                strBody += stringPrintFormater.GridCell(report.PaymentType, 18, false);
                strBody += stringPrintFormater.GridCell(report.UserName, 30, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();
            }


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Ejemplo n.º 8
0
        public string SupplierPaymentReportPrint(List<SupplierPaymentReport> aPaymentReports)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
               VariousMethod aMethod=new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);
            strBody += header;
            //   strBody += "\r\n";

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Supplier Payment Report");
               // strBody += "\r\n";
            strBody += "\r\n";
            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            strBody += "\r\n" + stringPrintFormater.GridCell("Date Time", 30, false);
              strBody += stringPrintFormater.GridCell("Supplier Name", 50, false);
            strBody += stringPrintFormater.GridCell("Total Amount", 18, false);
            strBody += stringPrintFormater.GridCell("Paid Amount", 18, false);
            strBody += stringPrintFormater.GridCell("Payment Type.", 18, false);
            strBody += stringPrintFormater.GridCell("User Name", 30, false);

            strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            foreach (SupplierPaymentReport report in aPaymentReports)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.PaymentDate.ToString(), 30, false);
                strBody += stringPrintFormater.GridCell(report.SupplierName, 50, false);
                strBody += stringPrintFormater.GridCell(report.TotalAmount.ToString(), 18, false);
                strBody += stringPrintFormater.GridCell(report.PaidAmount.ToString(), 18, false);
                strBody += stringPrintFormater.GridCell(report.PaymentType, 18, false);
                strBody += stringPrintFormater.GridCell(report.UserName, 30, false);
                strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

            }

               strBody += aMethod.AddEndPart();

            return strBody;
        }
Ejemplo n.º 9
0
        public string PrintKitchenStockReport(List<InventoryStockReport> aReports)
        {
            string strBody = "";
               StringPrintFormater stringPrintFormater = new StringPrintFormater(172);
               VariousMethod aMethod = new VariousMethod();
               string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);
               strBody += header;
               //   strBody += "\r\n";

               double balanceAmount = aReports.Sum(a => a.UnitPrice * a.BalanceQty);

               strBody += "\r\n" + stringPrintFormater.ItemLabeledText("Total Balance Price: "+balanceAmount,"");
               strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Inventory Stock Report");
               // strBody += "\r\n";
               strBody += "\r\n";
               strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

               strBody += "\r\n" + stringPrintFormater.GridCell("Date", 30, false);
               strBody += stringPrintFormater.GridCell("Item Name", 50, false);
               strBody += stringPrintFormater.GridCell("Received Qty.", 17, false);
               strBody += stringPrintFormater.GridCell("Send Qty.", 17, false);
               strBody += stringPrintFormater.GridCell("Damage Qty.", 17, false);
               strBody += stringPrintFormater.GridCell("Balance Qty.", 17, false);
               // strBody += stringPrintFormater.GridCell("Advance Amount", 19, false);

               strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

               foreach (InventoryStockReport report in aReports)
               {
               strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 30, false);
               strBody += stringPrintFormater.GridCell(report.ItemName, 50, false);
               strBody += stringPrintFormater.GridCell(report.ReceivedQty.ToString(), 17, false);
               strBody += stringPrintFormater.GridCell(report.SendQty.ToString(), 17, false);
               strBody += stringPrintFormater.GridCell(report.DamageQty.ToString(), 17, false);
               strBody += stringPrintFormater.GridCell(report.BalanceQty.ToString(), 17, false);
               // strBody += stringPrintFormater.GridCell(report.AdvanceAmount.ToString(), 19, false);
               strBody += "\r\n" + stringPrintFormater.CreateDashedLine();

               }

               strBody += aMethod.AddEndPart();

               return strBody;
        }