Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity, int pageno)
 {
     sw.WriteLine("        TAMILNADU CIVIL SUPPLIES CORPORATION    " + entity.RName);
     sw.WriteLine(" Receipt From Excess/Transfer Internal/Region) of  Godown: : " + entity.GName);
     sw.WriteLine(" Date:" + report.FormatDate(entity.FromDate) + " - To: " + report.FormatDate(entity.Todate) + " PageNo : " + pageno.ToString());
     sw.WriteLine("----------------------------------------------------------------------------------------");
     sw.WriteLine("  Ack.No    Date         Depositor                 Commodity                Quantity");
     sw.WriteLine("----------------------------------------------------------------------------------------");
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Add header for document receipt
        /// </summary>
        /// <param name="streamWriter">Stream writer to write the text file.</param>
        /// <param name="stockReceipt"></param>
        /// <param name="isDuplicate"></param>
        public void AddDocHeaderForReceipt(StreamWriter streamWriter, DocumentStockReceiptList stockReceipt, bool isDuplicate = false)
        {
            streamWriter.WriteLine("|----------------------------------------------------------------------------------------------------------|");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                       TAMILNADU CIVIL SUPPLIES CORPORATION                               |");
            streamWriter.Write("|                                           ");
            streamWriter.Write(report.StringFormatWithoutPipe("REGION : ", 9, 1));
            streamWriter.Write(report.StringFormat(stockReceipt.RegionName, 53, 2));
            streamWriter.WriteLine("");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                                                                                          |");
            if (isDuplicate)
            {
                streamWriter.WriteLine("|                                      STOCK RECEIPT ACKNOWLEDGMENT            DUPLICATE COPY              |");
            }
            else
            {
                streamWriter.WriteLine("|                                      STOCK RECEIPT ACKNOWLEDGMENT                                        |");
            }
            streamWriter.WriteLine("|----------------------------------------------------------------------------------------------------------|");
            streamWriter.Write("|ACKNOWLEDGEMENT NO:");
            streamWriter.Write(report.StringFormatWithoutPipe(stockReceipt.SRNo, 21, 2));
            streamWriter.Write("ALLOTMENT/RELEASE ORDER: ");
            streamWriter.Write(report.StringFormatWithoutPipe(stockReceipt.OrderNo + " " + stockReceipt.PAllotment, 16, 2));
            streamWriter.Write("GATE PASS : "******"", 10, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.Write("|              DATE:");
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(stockReceipt.SRDate.ToString()), 21, 2));
            streamWriter.Write(report.StringFormatWithoutPipe("DATE: ", 25, 1));
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(stockReceipt.OrderDate.ToString()), 38, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.Write("|PERIOD OF ALLOTMENT:");
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(stockReceipt.SRDate.ToString()), 30, 2));
            streamWriter.Write("Transaction Type: ");
            streamWriter.Write(report.StringFormatWithoutPipe(stockReceipt.TransactionName, 36, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.Write("|RECEIVING GODOWN:");
            streamWriter.Write(report.StringFormatWithoutPipe(stockReceipt.GodownName, 30, 2));
            streamWriter.Write("DEPOSITOR'S NAME:");
            streamWriter.Write(report.StringFormatWithoutPipe(stockReceipt.DepositorName, 40, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.WriteLine("|----------------------------------------------------------------------------------------------------------|");
            streamWriter.WriteLine("||--------------------------------------------------------------------------------------------------------||");
            streamWriter.WriteLine("||SNo |STACK NO   |COMMODITY           | SCHEME       |UNIT WEIGHT  |NO.OF |  Gross        NET   |% OF    ||");
            streamWriter.WriteLine("||    |           |                    |              |             |  UNIT|   WEIGHT in Kgs/NOs |MOISTURE||");
            streamWriter.WriteLine("||--------------------------------------------------------------------------------------------------------||");
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity, int pageNo)
 {
     sw.WriteLine("      TamilNadu Civil Supplies Corporation       " + entity.RName);
     sw.WriteLine(HeaderTitle + entity.GName + " Godown");
     sw.WriteLine("      From : " + report.FormatDate(entity.FromDate) + "    To : " + report.FormatDate(entity.Todate) + "  Page No :" + pageNo.ToString());
     sw.WriteLine("--------------------------------------------------------------------------------------------------------");
     sw.WriteLine("Ack.No     Date       Commodity       Bundles  Nos       STACK NO    SYEAR Stack Commodity");
     sw.WriteLine("--------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("   TAMILNADU CIVIL SUPPLIES CORPORATION          " + entity.RName);
     sw.WriteLine("   Godown : " + entity.GName + "Delivery Order Details Society Wise with Issue Details");
     sw.WriteLine("   D.Ord Date:" + report.FormatDate(entity.FromDate) + "           To : " + report.FormatDate(entity.Todate));
     sw.WriteLine("----------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine(" Godown Name             D.O.No     D.O.Date  COMMODITY      SCHEME          NET.WT      Rate       C.AMOUNT  NC.AMOUNT     AMOUNT");
     sw.WriteLine("----------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Add header for Transaction receipt
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="entity"></param>
 public void AddHeaderForTransactionReceipt(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("    TAMILNADU CIVIL SUPPLIES CORPORATION      Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("      Receipt Date Wise Abstract Details of " + GName + " Godown");
     sw.WriteLine(" ");
     sw.WriteLine(" From: " + report.FormatDate(entity.FromDate) + " to " + report.FormatDate(entity.Todate) + "    Weight in Kilo Grams");
     sw.WriteLine("------------------------------------------------------------------------------------");
     sw.WriteLine(" Commodity                          Date       Transaction        Net Weight    ");
     sw.WriteLine("------------------------------------------------------------------------------------");
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Add header for Transaction receipt
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="entity"></param>
 public void AddHeaderForHoPurchase(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("                                     TAMILNADU CIVIL SUPPLIES CORPORATION                      Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                               Purchase Receipt Details of " + GName + " Godown");
     sw.WriteLine(" ");
     sw.WriteLine(" From: " + report.FormatDate(entity.FromDate) + " to " + report.FormatDate(entity.Todate) + "               Weight in Kilo Grams                                                             Page No: 1");
     sw.WriteLine("---------------------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("S.No Ack.No      Date       Place                               Commodity                     Bags    Net Weight  T.Memo No        Order No       Lorry No     |");
     sw.WriteLine("---------------------------------------------------------------------------------------------------------------------------------------------------------------|");
 }
Ejemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("                          TAMILNADU CIVIL SUPPLIES CORPORATION           Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                 Stock Issue Register Abstract (Society/CRS/NMP) of  " + GName + " Godown");
     sw.WriteLine(" ");
     sw.WriteLine(" From: " + report.FormatDate(entity.FromDate) + " to " + report.FormatDate(entity.Todate) + "                                                    Page No: 1");
     sw.WriteLine("---------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("S.No       To whom                  Scheme           Commodity                    NET. WEIGHT       Rate      Value  |");
     sw.WriteLine("---------------------------------------------------------------------------------------------------------------------|");
 }
Ejemplo n.º 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("               TAMILNADU CIVIL SUPPLIES CORPORATION            " + RName);
     sw.WriteLine(" ");
     sw.WriteLine("             Issue memo Date wise Details of " + SCName + " Scheme   Godown : " + GName);
     sw.WriteLine(" ");
     sw.WriteLine("          From:" + report.FormatDate(entity.FromDate) + "           To : " + report.FormatDate(entity.Todate));
     sw.WriteLine("---------------------------------------------------------------------------------------------------");
     sw.WriteLine("S.No   I.MEMO.NO    Date          Commodity       Net Weight(Kgs)        Issued To          ");
     sw.WriteLine("---------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 9
0
 public void AddHeader(StreamWriter sw, string Date)
 {
     sw.WriteLine("                                  TAMILNADU CIVIL SUPPLIES CORPORATION                  Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                                          Truck Memo Register");
     sw.WriteLine(" ");
     sw.WriteLine("Issue Date:" + report.FormatDate(Date) + " (Net Wt in kgs/Klts/Nos)   Godown : " + GName + "          Region :" + Regioncode);
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine("S.No Truck Memo   Mo.No           Ro.No       To Whom Issued                  Scheme     StackNo    No bags Commodity                 Net wt  ");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Add header for abstract report
 /// </summary>
 /// <param name="sw">streamwriter</param>
 /// <param name="entity">common entity</param>
 public void AddheaderForAbstract(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("                      TAMILNADU CIVIL SUPPLIES CORPORATION                Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                                 Stock Issue Register Abstract");
     sw.WriteLine(" ");
     sw.WriteLine("Issue Date:" + report.FormatDate(entity.FromDate) + "Godown : " + GName + "          Region :" + RName);
     sw.WriteLine("------------------------------------------------------------------------------------------");
     sw.WriteLine("StackNo       Commodity                           No Bags      Net Wt (in Kgs)\\Nos");
     sw.WriteLine("------------------------------------------------------------------------------------------");
     sw.WriteLine("");
 }
Ejemplo n.º 11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("                         TAMILNADU CIVIL SUPPLIES CORPORATION      Region: " + RName + " Report Date : " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                                          Hulling Rice Receipt Details of " + GName + " Godown ");
     sw.WriteLine(" ");
     sw.WriteLine("          From:" + report.FormatDate(entity.FromDate) + "   To:" + report.FormatDate(entity.Todate) + "               Weight in Kilo Grams                 Page No: 1");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("S.No|      Ack No      |      Date      |            Hulling Name             |        Commodity         |    Bags    |     Net Weight    |");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------|");
     // sw.WriteLine("    |                  |          |                                     |                          |            |                   |");
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Add header for document receipt
        /// </summary>
        /// <param name="streamWriter">Stream writer to write the text file.</param>
        /// <param name="truckMemoList"></param>
        /// <param name="isDuplicate"></param>
        public void AddDocHeaderForTruckMemo(StreamWriter streamWriter, DocumentStockTransferDetails truckMemoList, bool isDuplicate = false)
        {
            streamWriter.WriteLine("|----------------------------------------------------------------------------------------------------------|");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                       TAMILNADU CIVIL SUPPLIES CORPORATION                               |");
            streamWriter.Write("|                                           ");
            streamWriter.Write(report.StringFormatWithoutPipe("REGION : ", 9, 1));
            streamWriter.Write(report.StringFormat(truckMemoList.RegionName, 53, 2));
            streamWriter.WriteLine("");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                                                                                          |");
            if (isDuplicate)
            {
                streamWriter.WriteLine("|                                      STOCK ISSUE TRUCK MEMO            DUPLICATE COPY                    |");
            }
            else
            {
                streamWriter.WriteLine("|                                      STOCK ISSUE TRUCK MEMO                                              |");
            }
            streamWriter.WriteLine("|----------------------------------------------------------------------------------------------------------|");
            streamWriter.Write("|TRUCK MEMO NO:");
            streamWriter.Write(report.StringFormatWithoutPipe(truckMemoList.STNo, 21, 2));
            streamWriter.Write("ALLOTMENT/RELEASE ORDER: ");
            streamWriter.Write(report.StringFormatWithoutPipe(truckMemoList.RNo, 12, 2));
            streamWriter.Write("MOVE. ORDER NO: ");
            streamWriter.Write(report.StringFormatWithoutPipe(truckMemoList.MNo, 15, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.Write("|              DATE:");
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(truckMemoList.STDate.ToString()), 21, 2));
            streamWriter.Write(report.StringFormatWithoutPipe("TIME: ", 25, 1));
            streamWriter.Write(report.StringFormatWithoutPipe(report.GetCurrentTime(DateTime.Now), 16, 2));
            streamWriter.Write("DATE:");
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(truckMemoList.RDate.ToString()), 16, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.Write("|ISSUING GODOWN   :");
            streamWriter.Write(report.StringFormatWithoutPipe(truckMemoList.GodownName, 30, 2));
            streamWriter.Write("RECEIVER NAME: ");
            streamWriter.Write(report.StringFormatWithoutPipe(truckMemoList.ReceivingName, 41, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");

            streamWriter.WriteLine("|----------------------------------------------------------------------------------------------------------|");
            streamWriter.WriteLine("||--------------------------------------------------------------------------------------------------------||");
            streamWriter.WriteLine("||SNo |STACK NO   |COMMODITY           | SCHEME       |UNIT WEIGHT  |NO.OF |  Gross        NET   |% OF    ||");
            streamWriter.WriteLine("||    |           |                    |              |             |  UNIT|   WEIGHT in Kgs/NOs |MOISTURE||");
            streamWriter.WriteLine("||--------------------------------------------------------------------------------------------------------||");
        }
Ejemplo n.º 13
0
 /// <summary>
 /// Add header for Date wise report
 /// </summary>
 /// <param name="sw">Text Streamwriter</param>
 /// <param name="entity">Common Entity</param>
 public void AddHeader(StreamWriter sw, string date)
 {
     sw.WriteLine("                                  TAMILNADU CIVIL SUPPLIES CORPORATION                                  Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                                          Delivery Order Details");
     sw.WriteLine(" ");
     sw.WriteLine("Delivery Order Date:" + report.FormatDate(date) + "           Godown : " + GName + "          Region :" + Regioncode);
     sw.WriteLine("----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("S.No|  D.O.No   |   Total(Rs)     |  IssuerName   |Cheque/DD  | Pay.Amount(Rs)|   Scheme    |   Commodity  |Net.Wt(Kgs)| Rate(Rs)     | ITEM          |  Previous     |Other        |  Current     |  Margin    |");
     sw.WriteLine("    |           |                 |               |           |               |             |              |           |              | Amount        |   Balance     |Amount       |  Balance     |  Amount    |");
     sw.WriteLine("----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("    |           |                 |               |           |               |             |              |           |              |               |               |             |              |            |");
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Add header for document receipt
 /// </summary>
 /// <param name="streamWriter">Stream writer to write the text file.</param>
 /// <param name="stockReceipt"></param>
 /// <param name="isDuplicate"></param>
 public void AddDocHeaderForReceipt(StreamWriter streamWriter, QuantityAccountEntity quantityAccount)
 {
     streamWriter.WriteLine(" ");
     streamWriter.WriteLine("                          TAMILNADU CIVIL SUPPLIES CORPORATION ");
     streamWriter.Write("       ");
     streamWriter.Write(report.StringFormatWithoutPipe(quantityAccount.RName, 30, 1));
     streamWriter.Write(report.StringFormatWithoutPipe("- Issues Abstract -", 22, 2));
     streamWriter.Write(report.StringFormatWithoutPipe(quantityAccount.GName, 30, 2));
     streamWriter.WriteLine("");
     streamWriter.Write(" Date From.: "); //"R00002                             DATE: 03/Jan/2011");
     streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(quantityAccount.FromDate), 13, 2));
     streamWriter.Write(" To : ");
     streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(quantityAccount.ToDate), 13, 2));
     streamWriter.WriteLine(" ");
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Add header for document receipt
 /// </summary>
 /// <param name="streamWriter">Stream writer to write the text file.</param>
 /// <param name="stockReceipt"></param>
 /// <param name="isDuplicate"></param>
 public void AddDocHeaderForReceipt(StreamWriter streamWriter, CommonEntity commonEntity, string reportName)
 {
     streamWriter.WriteLine(" ");
     streamWriter.WriteLine("                          TAMILNADU CIVIL SUPPLIES CORPORATION ");
     streamWriter.Write("       ");
     streamWriter.Write(report.StringFormatWithoutPipe(commonEntity.RName, 30, 1));
     streamWriter.Write(report.StringFormatWithoutPipe(reportName, 22, 2));
     streamWriter.Write(report.StringFormatWithoutPipe(commonEntity.GName, 30, 2));
     streamWriter.WriteLine("");
     streamWriter.Write(" Date From.: "); //"R00002                             DATE: 03/Jan/2011");
     streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(commonEntity.FromDate), 13, 2));
     streamWriter.Write(" To : ");
     streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(commonEntity.Todate), 13, 2));
     streamWriter.WriteLine(" ");
 }
Ejemplo n.º 16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, StockParameter entity, int pageNo)
 {
     sw.WriteLine("                                          TamilNadu Civil Supplies Corporation       " + entity.RName);
     sw.WriteLine("                                             Stock Statement Details of " + entity.GName + " Godown");
     sw.WriteLine("     From : " + report.FormatDate(entity.FDate) + "    To : " + report.FormatDate(entity.ToDate) + "                                           Page No :" + pageNo.ToString());
     sw.WriteLine("|------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("|S.No| Commodity      |Ope.Bal      |Receipt      |Total(OB+Receipt)|Total Issue  |Closing.Bal  |Cummulative Shortage|Current CS   |Phy.Bal      |");
     sw.WriteLine("|------------------------------------------------------------------------------------------------------------------------------------------------|");
 }
Ejemplo n.º 17
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity, int pageNo)
 {
     sw.WriteLine("      TamilNadu Civil Supplies Corporation       " + entity.RName);
     sw.WriteLine("      Godown Name: " + entity.GName + "    Delivery Order Payment Details ");
     sw.WriteLine("      D.Ord.Date:" + report.FormatDate(entity.FromDate) + "    To : " + report.FormatDate(entity.Todate) + "  Page No :" + pageNo.ToString());
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine("   Godown Name           SOCIETY                             DONO       DO DATE      DD.NO      DD DATE       AMOUNT         BANK            CEREAL     NON CEREAL");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 18
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity, int pageno)
 {
     sw.WriteLine("        TAMILNADU CIVIL SUPPLIES CORPORATION          " + entity.RName);
     sw.WriteLine("        Truck Transit Details of  Godown: : " + entity.GName);
     sw.WriteLine("        Date:" + report.FormatDate(entity.FromDate) + "  To : " + report.FormatDate(entity.Todate) + "            PageNo : " + pageno.ToString());
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("SNO |T.MEMO NO  |REGION         |SENDER DATE |SENDER GODOWN    |LORRY NO  |BAGS  |QUANTITY(Kgs)|ACK NO    |RECEIVER DATE|RECEIVER GODOWN   |BAGS.RECD|RECD.QTY    |TRANSFER TYPE    |");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|");
 }
Ejemplo n.º 19
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("   TAMILNADU CIVIL SUPPLIES CORPORATION          " + entity.RName);
     sw.WriteLine("   Godown : " + entity.GName + "Delivery Order Details Society Wise with Issue Details");
     sw.WriteLine("   D.Ord Date:" + report.FormatDate(entity.FromDate) + "           To : " + report.FormatDate(entity.Todate));
     sw.WriteLine("----------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine(" Godown Name             DONO               SOCIETY                  D0 DATE  AMOUNTDUE      CHEQUE/DD       Adv.Col       DEB.BAL");
     sw.WriteLine("----------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 20
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity, int pageno)
 {
     sw.WriteLine("        TAMILNADU CIVIL SUPPLIES CORPORATION          " + entity.RName);
     sw.WriteLine("        Truck Memo Region Wise Details of  Godown: : " + entity.GName);
     sw.WriteLine("        Date:" + report.FormatDate(entity.FromDate) + "  To : " + report.FormatDate(entity.Todate) + "            PageNo : " + pageno.ToString());
     sw.WriteLine("-------------------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine("SNO  T.MEMO NO   DATE         RECEIVED GODOWN       REGION         Commodity       SCHEME       BAGS  NET Weight(Kgs) Doc.no/Lorry NO");
     sw.WriteLine("-------------------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 21
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity, int pageNo)
 {
     sw.WriteLine("      TamilNadu Civil Supplies Corporation       " + entity.RName);
     sw.WriteLine("      Godown Name: " + entity.GName + "    Stock Issue W/off Register ");
     sw.WriteLine("      Issue Date: " + report.FormatDate(entity.FromDate) + "    To : " + report.FormatDate(entity.Todate) + "  Page No :" + pageNo.ToString());
     sw.WriteLine("-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine(" SNO.  DATE      DOCUMENT NO  COMMODITY        NET.WEIGHT  STACK NO            REMARKS");
     sw.WriteLine("-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 22
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("  TamilNadu Civil Supplies Corporation          Region Name : " + entity.RName);
     sw.WriteLine("  Godown Name : " + entity.GName + "    Delivery Order Margin Amount Details");
     sw.WriteLine("  D.Ord.Date :" + report.FormatDate(entity.FromDate) + "  To : " + report.FormatDate(entity.Todate));
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine(" Godown Name                 SOCIETY  NAME                      DONO AND DATE     COMMODITY                 SCHEME         QUANTITY       RATE   MARGIN AMT.");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 23
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("  TamilNadu Civil Supplies Corporation                            DAILY CASH RECEIPT Account Register");
     sw.WriteLine(" ");
     sw.WriteLine("  Godown Name : " + entity.GName + "                         Region Name : " + entity.RName);
     sw.WriteLine(" ");
     sw.WriteLine(" From:" + report.FormatDate(entity.FromDate) + "           To : " + report.FormatDate(entity.Todate));
     sw.WriteLine("-----------------------------------------------------------------------------------------------------------------------------------------------------");
     sw.WriteLine(" S.No Depositor Name                           Receipt no & Date      DD/CH No              Date      Amount         BANK");
     sw.WriteLine("-----------------------------------------------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 24
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("                                    TAMILNADU CIVIL SUPPLIES CORPORATION                       " + RName);
     sw.WriteLine(" ");
     sw.WriteLine("                                        Issue Memo Datewise Details of - Commodity    Godown : " + GName);
     sw.WriteLine(" ");
     sw.WriteLine("          From:" + report.FormatDate(entity.FromDate) + "           To : " + report.FormatDate(entity.Todate));
     sw.WriteLine("--------------------------------------------------------------------------------------------------------------");
     sw.WriteLine("S.No   I.MEMO NO      Date         Commodity         NET Weight(Kgs)    ISSUED TO                 Lorry No   ");
     sw.WriteLine("---------------------------------------------------------------------------------------------------------------");
 }
Ejemplo n.º 25
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, CommonEntity entity)
 {
     sw.WriteLine("                                    TAMILNADU CIVIL SUPPLIES CORPORATION                       " + RName);
     sw.WriteLine(" ");
     sw.WriteLine("                                      Receipt Datewise Details of - " + TRName + " - " + ITName + "  Godown : " + GName);
     sw.WriteLine(" ");
     sw.WriteLine("          From:" + report.FormatDate(entity.FromDate) + "           To : " + report.FormatDate(entity.Todate) + "   ");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("S.No|  Ack No   |Date      |   Commodity    |  Bags  |  Qty(Kgs)/NO's  |   Received From     | Lorry No  |   T.MEMO.NO   | T.MEMO DT |  ORDERNO  | EXCESS | SHORT |");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("    |           |          |                |        |                 |                     |           |               |           |           |        |       |");
 }
Ejemplo n.º 26
0
        /// <summary>
        /// Add header for document receipt
        /// </summary>
        /// <param name="streamWriter">Stream writer to write the text file.</param>
        /// <param name="stockIssuesEntity"></param>
        /// <param name="isDuplicate"></param>
        public void AddDocHeaderForIssues(StreamWriter streamWriter, DocumentStockIssuesEntity stockIssuesEntity, bool isDuplicate = false)
        {
            streamWriter.WriteLine("---------------------------------------------------------------------------------------------------------------");
            streamWriter.WriteLine("|                                                                                                             |");
            streamWriter.WriteLine("|                                                                                                             |");
            streamWriter.WriteLine("|                                          TAMILNADU CIVIL SUPPLIES CORPORATION                               |");
            streamWriter.Write("|                                              ");
            streamWriter.Write(report.StringFormatWithoutPipe("REGION : ", 9, 1));
            streamWriter.Write(report.StringFormat(stockIssuesEntity.RegionName, 53, 2));
            streamWriter.WriteLine("");
            streamWriter.WriteLine("|                                                                                                             |");
            streamWriter.WriteLine("|                                                                                                             |");
            if (isDuplicate)
            {
                streamWriter.WriteLine("|                                      STOCK ISSUE - ISSUE MEMO                DUPLICATE COPY                 |");
            }
            else
            {
                streamWriter.WriteLine("|                                      STOCK ISSUE - ISSUE MEMO                                               |");
            }
            streamWriter.WriteLine("|-------------------------------------------------------------------------------------------------------------|");
            streamWriter.Write("|ISSUE MEMO NO  :   ");
            streamWriter.Write(report.StringFormatWithoutPipe(stockIssuesEntity.SINo, 21, 2));
            streamWriter.Write("DATE: ");
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(stockIssuesEntity.SIDate.ToString()), 12, 2));
            streamWriter.Write("TIME:");
            streamWriter.Write(report.StringFormatWithoutPipe(report.GetCurrentTime(DateTime.Now), 14, 2));
            streamWriter.Write(report.StringFormatWithoutPipe((stockIssuesEntity.IssueRegularAdvance.ToUpper() == "R" ? "REGULAR" : "ADVANCE"), 8, 2));
            streamWriter.Write(report.StringFormat(stockIssuesEntity.IRelates, 20, 2));
            streamWriter.WriteLine(" ");

            streamWriter.Write("|ISSUING GODOWN :   ");
            streamWriter.Write(report.StringFormatWithoutPipe(stockIssuesEntity.GodownName, 21, 2));
            streamWriter.Write(report.StringFormatWithoutPipe("TO WHOM ISSUED:", 15, 1));
            streamWriter.Write(report.StringFormatWithoutPipe(stockIssuesEntity.ReceiverName, 51, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");
            try
            {
                streamWriter.Write("|                                         ");
                streamWriter.Write(report.StringFormatWithoutPipe("ISSUER CODE  :", 15, 1));
                streamWriter.Write(report.StringFormatWithoutPipe(stockIssuesEntity.IssuerCode, 51, 2));
                streamWriter.Write("|");
                streamWriter.WriteLine(" ");
            }
            catch (Exception ex)
            {
                AuditLog.WriteError(ex.Message);
            }
            streamWriter.WriteLine("||------------------------------------------------------------------------------------------------------|-----|");
            streamWriter.WriteLine("||SNo|  STACK NO  |    COMMODITY                  |  SCHEME      |UNIT WEIGHT  |NO.OFUNITS|   NET Wt/Nos|MOI% |");
            streamWriter.WriteLine("||------------------------------------------------------------------------------------------------------|-----|");
        }
Ejemplo n.º 27
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sw"></param>
 /// <param name="date"></param>
 public void AddHeader(StreamWriter sw, string date)
 {
     sw.WriteLine("                                  TAMILNADU CIVIL SUPPLIES CORPORATION                        Report Date :   " + ManageReport.GetCurrentDate());
     sw.WriteLine(" ");
     sw.WriteLine("                                          Stock Receipt Register");
     sw.WriteLine(" ");
     sw.WriteLine("          Stock Receipt Register:" + report.FormatDate(date) + "           Godown : " + GName + "          Region :" + RName);
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("S.No|  Ack No   |Truck Memo No      | Lorry No  |   From Whom Received            |   Scheme   |  Stack No  |No bags |   Commodity   |Net Weight|");
     sw.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------|");
     sw.WriteLine("    |           |                   |           |                                 |            |            |        |               |          |");
 }
Ejemplo n.º 28
0
        /// <summary>
        /// Add header for document receipt
        /// </summary>
        /// <param name="streamWriter">Stream writer to write the text file.</param>
        /// <param name="stockReceipt"></param>
        /// <param name="isDuplicate"></param>
        public void AddDocHeaderForReceipt(StreamWriter streamWriter, DDChequeEntity chequeEntity)
        {
            streamWriter.WriteLine(" ");
            streamWriter.WriteLine("          TAMILNADU CIVIL SUPPLIES CORPORATION ");
            streamWriter.Write("       ");
            streamWriter.Write(report.StringFormatWithoutPipe(chequeEntity.RegionName, 30, 1));
            streamWriter.Write(report.StringFormatWithoutPipe("- RECEIPT -", 11, 2));
            streamWriter.Write(report.StringFormatWithoutPipe(chequeEntity.GodownName, 30, 2));
            streamWriter.WriteLine("");
            streamWriter.Write(" RECP.NO.: "); //"R00002                             DATE: 03/Jan/2011");
            streamWriter.Write(report.StringFormatWithoutPipe(chequeEntity.ReceiptNo, 25, 2));
            streamWriter.Write("   ");
            streamWriter.Write("DATE : ");
            streamWriter.Write(report.StringFormatWithoutPipe(report.FormatDate(chequeEntity.ReceiptDate), 13, 2));
            streamWriter.WriteLine("");
            streamWriter.WriteLine("------------------------------------------------------------------------------");
            streamWriter.Write("   Received with Thanks from Thiru / M/s.");
            streamWriter.Write(report.StringFormatWithoutPipe(chequeEntity.DDChequeItems[0].ReceivedFrom, 35, 2));
            streamWriter.WriteLine("");
            streamWriter.WriteLine("");
            streamWriter.Write(" Rupees ");
            string Rupees = string.Empty;

            try
            {
                NumberToWordConvertion numberToWord = new NumberToWordConvertion();
                //string[] split = chequeEntity.Total.Split('.');
                Rupees = numberToWord.GetNumberToWord(chequeEntity.Total);
                // ConvertNumbertoWords(Convert.ToInt64(split[0].ToString()));
            }
            catch (Exception ex)
            {
                AuditLog.WriteError(ex.Message + " " + ex.StackTrace);
            }
            streamWriter.Write(report.StringFormatWithoutPipe(Rupees, 68, 2));
            streamWriter.WriteLine("");
            report.AddMoreContent(streamWriter, Rupees, 68, 1);//Add content next line.
            streamWriter.WriteLine("");
            streamWriter.WriteLine(" by Cash/DD/Cheque ");
            streamWriter.WriteLine("------------------------------------------------------------------------------");
            streamWriter.WriteLine(" DD/Cheque No.      Date               Bank                      Amount");
            streamWriter.WriteLine("------------------------------------------------------------------------------");
        }
Ejemplo n.º 29
0
        /// <summary>
        /// Add header for document receipt
        /// </summary>
        /// <param name="streamWriter">Stream writer to write the text file.</param>
        /// <param name="deliveryOrderList"></param>
        /// <param name="isDuplicate"></param>
        public void AddDocHeaderForDeliveryOrder(StreamWriter streamWriter, DocumentDeliveryOrderEntity deliveryOrderEntity, bool isDuplicate = false)
        {
            streamWriter.WriteLine("|==========================================================================================================|");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                       TAMILNADU CIVIL SUPPLIES CORPORATION                               |");
            streamWriter.Write("|                                              ");
            streamWriter.Write(manageReport.StringFormatWithoutPipe("REGION : ", 9, 1));
            streamWriter.Write(manageReport.StringFormat(deliveryOrderEntity.RegionName, 50, 2));
            streamWriter.WriteLine("");
            streamWriter.WriteLine("|                                                                                                          |");
            streamWriter.WriteLine("|                                      DELIVERY ORDER                                                      |");
            streamWriter.WriteLine("|==========================================================================================================|");
            streamWriter.Write("|TRANSACTION:");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(deliveryOrderEntity.TransactionName, 21, 2));
            streamWriter.Write("GODOWN NAME: ");
            streamWriter.Write(manageReport.StringFormat(deliveryOrderEntity.GodownName, 59, 2));
            streamWriter.WriteLine(" ");
            streamWriter.Write("|DELIVERY ORDER: ");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(deliveryOrderEntity.Dono, 16, 2));
            streamWriter.Write("DATE: ");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(manageReport.FormatIndianDate(deliveryOrderEntity.DoDate.ToString()), 66, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");
            streamWriter.WriteLine("|==========================================================================================================|");

            streamWriter.Write("|ISSUE TO:");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(deliveryOrderEntity.ReceivorName, 96, 2) + "|");
            streamWriter.WriteLine(" ");
            streamWriter.Write("|INDENT NO:");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(deliveryOrderEntity.IndentNo, 21, 2));
            // streamWriter.Write(manageReport.StringFormatWithoutPipe("DATE: ", 25, 1));
            streamWriter.Write("PERMIT DATE:");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(manageReport.FormatDate(deliveryOrderEntity.PermitDate.ToString()), 13, 2));
            streamWriter.Write("ORDER PERIOD ENDING:");
            streamWriter.Write(manageReport.StringFormatWithoutPipe(deliveryOrderEntity.OrderPeriod, 27, 2));
            streamWriter.Write("|");
            streamWriter.WriteLine(" ");
            streamWriter.WriteLine("|==========================================================================================================|");
        }
Ejemplo n.º 30
0
        public void AddheaderValues(iTextSharp.text.Document doc, DocumentStockReceiptList stockReceipt)
        {
            PdfPTable table = new PdfPTable(6);

            table.DefaultCell.Border = iTextSharp.text.Rectangle.NO_BORDER;
            //table.setBorder(Border.NO_BORDER);
            //set overall width
            table.WidthPercentage = 100f;
            //set column widths
            int[] firstTablecellwidth = { 20, 20, 20, 20, 10, 10 };
            table.SetWidths(firstTablecellwidth);

            PdfPCell cell = new PdfPCell(new Phrase("ACKNOWLEDGEMENT NO:", NormalFont));

            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(stockReceipt.SRNo, NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("ALLOTMENT/RELEASE ORDER:" + stockReceipt.OrderNo + " " + stockReceipt.PAllotment, NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.Colspan             = 4;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("DATE:", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(report.FormatDate(stockReceipt.SRDate.ToString()), NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("DATE:", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(report.FormatDate(stockReceipt.OrderDate.ToString()), NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("GATE PASS:"******"", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("PERIOD OF ALLOTMENT:", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(report.FormatDate(stockReceipt.SRDate.ToString()), NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("Transaction Type:", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(stockReceipt.TransactionName, NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            cell.Colspan             = 3;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("RECEIVING GODOWN:", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(stockReceipt.GodownName, NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase("DEPOSITOR'S NAME:", NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_RIGHT;
            cell.BorderWidth         = 0;
            table.AddCell(cell);

            cell = new PdfPCell(new Phrase(stockReceipt.DepositorName, NormalFont));
            cell.HorizontalAlignment = Element.ALIGN_LEFT;
            cell.BorderWidth         = 0;
            cell.Colspan             = 3;
            table.AddCell(cell);

            doc.Add(table);
        }