Пример #1
0
        private string AccessoriesReportPrint(List <Transaction1> aTransactions)
        {
            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("Accesssories Purchase Report");
            // strBody += "\r\n";


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

            strBody += "\r\n" + stringPrintFormater.GridCell("Date", 25, false);
            strBody += stringPrintFormater.GridCell("Item Name", 27, false);
            strBody += stringPrintFormater.GridCell("Transaction Type", 20, false);
            strBody += stringPrintFormater.GridCell("Quantity", 15, false);
            strBody += stringPrintFormater.GridCell("Item Unit", 15, false);
            strBody += stringPrintFormater.GridCell("Amount", 15, false);
            strBody += stringPrintFormater.GridCell("Supplier1", 25, false);
            strBody += stringPrintFormater.GridCell("Cause/Purpose", 27, false);



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

            foreach (Transaction1 report in aTransactions)
            {
                // if (report.TransactionType == "Purchase")
                {
                    strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 25, false);
                    strBody += stringPrintFormater.GridCell(report.ItemName, 27, false);
                    strBody += stringPrintFormater.GridCell(report.TransactionType, 20, false);
                    strBody += stringPrintFormater.GridCell(report.Quantity.ToString("F02"), 15, false);
                    strBody += stringPrintFormater.GridCell(report.ItemUnit, 15, false);

                    strBody += stringPrintFormater.GridCell(report.Amount.ToString("F02"), 15, false);
                    strBody += stringPrintFormater.GridCell(report.SupplierName, 25, false);
                    strBody += stringPrintFormater.GridCell(report.CauseOrPurpose, 27, false);


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


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Пример #2
0
        private string PrintEmployeeReport(List <EmployeeReport> aList)
        {
            string strBody = "";
            StringPrintFormater stringPrintFormater = new StringPrintFormater(180);
            VariousMethod       aMethod             = new VariousMethod();
            string header = aMethod.GetPrintDecorationText(VariousMethod.PrintDecoration.HEADER);

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

            strBody += "\r\n" + stringPrintFormater.CenterTextWithWhiteSpace("Employee Salary Report");
            // strBody += "\r\n";

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

            strBody += "\r\n" + stringPrintFormater.GridCell("Id No.", 15, false);
            strBody += stringPrintFormater.GridCell("Name", 15, false);
            strBody += stringPrintFormater.GridCell("Position", 15, false);
            strBody += stringPrintFormater.GridCell("Working days", 15, false);
            strBody += stringPrintFormater.GridCell("Ateending days", 15, false);
            strBody += stringPrintFormater.GridCell("Salary Structure(Tk)", 15, false);
            strBody += stringPrintFormater.GridCell("Deducted Salary(Tk)", 15, false);
            strBody += stringPrintFormater.GridCell("Payable Salary(Tk)", 15, false);
            strBody += stringPrintFormater.GridCell("Service Charge(Tk)", 15, false);
            strBody += stringPrintFormater.GridCell("Food And H.Rent Allow.(Tk)", 15, false);
            strBody += stringPrintFormater.GridCell("Total Payable Salary(Tk)", 15, false);
            strBody += stringPrintFormater.GridCell("Remarks", 15, false);


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

            foreach (DataGridViewRow report in employeereportdataGridView.Rows)
            {
                foreach (DataGridViewCell col in report.Cells)
                {
                    if (col.Value != null)
                    {
                        strBody += stringPrintFormater.GridCell(col.Value.ToString(), 15, false);
                    }
                    else
                    {
                        strBody += stringPrintFormater.GridCell("", 15, false);
                    }
                }

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


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Пример #3
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);
        }
Пример #4
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);
        }
Пример #5
0
        private string ProfitLossReportPrint(List <ProfitLoss> aProfitLosses)
        {
            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("Profit Loss Report");
            // strBody += "\r\n";


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

            strBody += "\r\n" + stringPrintFormater.GridCell("Date", 30, false);
            strBody += stringPrintFormater.GridCell("Row Mat. Cost", 22, false);
            strBody += stringPrintFormater.GridCell("Accessory Cost", 22, false);
            strBody += stringPrintFormater.GridCell("Salary Cost", 22, false);
            strBody += stringPrintFormater.GridCell("Sale Amount", 22, false);
            strBody += stringPrintFormater.GridCell("Profit", 22, false);
            strBody += stringPrintFormater.GridCell("Loss", 22, false);


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

            foreach (ProfitLoss report in aProfitLosses)
            {
                strBody += "\r\n" + stringPrintFormater.GridCell(report.Date.ToString(), 30, false);
                strBody += stringPrintFormater.GridCell(report.RMCost.ToString("F02"), 22, false);
                strBody += stringPrintFormater.GridCell(report.AccsCost.ToString("F02"), 22, false);
                strBody += stringPrintFormater.GridCell(report.SalaryCost.ToString("F02"), 22, false);
                strBody += stringPrintFormater.GridCell(report.SaleAmount.ToString("F02"), 22, false);
                strBody += stringPrintFormater.GridCell(report.Profit.ToString("F02"), 22, false);
                strBody += stringPrintFormater.GridCell(report.Loss.ToString("F02"), 22, false);

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


            strBody += aMethod.AddEndPart();


            return(strBody);
        }
Пример #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);
        }
Пример #7
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);
        }
Пример #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);
        }