Example #1
0
        public string CardAuthorizationdoc(int id)
        {
            string PathStart = Server.MapPath("/Template");

            if (!Directory.Exists(PathStart))
            {
                Directory.CreateDirectory(PathStart);
            }

            string FolderNameByDate = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString();
            string path             = PathStart + "/" + FolderNameByDate;

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            Nj_Detail obj    = new Nj_Detail();
            var       result = obj.ClientDetail(id);

            string FolderNameByUserName = path + "/" + result.F_Name + result.L_Name;

            if (!Directory.Exists(FolderNameByUserName))
            {
                Directory.CreateDirectory(FolderNameByUserName);
            }


            string openpath = "/Template/" + FolderNameByDate + "/" + result.F_Name + result.L_Name + "/" + "CardAuthorization" + ".doc";
            string Filename = FolderNameByUserName + "/" + "CardAuthorization" + ".doc";
            var    doc      = DocX.Create(Filename);

            string headerText  = "Credit Card Authorization";
            var    titleFormat = new Formatting();

            titleFormat.FontFamily     = new System.Drawing.FontFamily("Arial Black");
            titleFormat.Size           = 20D;
            titleFormat.Position       = 12;
            titleFormat.UnderlineColor = new System.Drawing.Color();
            Novacode.Paragraph title = doc.InsertParagraph(headerText, false, titleFormat);
            title.Alignment = Alignment.center;

            string paraOne = ""
                             + "I  ,";

            string ParaOne1 = ""
                              + result.F_Name + " " + result.L_Name;

            string ParaOne2 = ""
                              + ", hereby authorize The Law "
                              + Environment.NewLine
                              + "Firm, LLC. to charge my Visa, MasterCard, or , "
                              + Environment.NewLine
                              + "American Express, card ";

            string ParaOne3 = ""
                              + result.Payment_Cardno
                              + Environment.NewLine;

            string ParaOne4 = ""
                              + " with expiration date of ";

            string ParaOne5 = ""
                              + result.Payment_Card_ExpDate;

            string ParaOne6 = ""
                              + ", the amount of ";

            string ParaOne7 = ""
                              + "$" + result.Payment_Total + Environment.NewLine
                              + ", on " + DateTime.Now.ToString("MMMM") + " " + DateTime.Now.Day.ToString() + "," + DateTime.Now.Year.ToString() + "," //December 23, 2016,
            ;

            string ParaOne8 = ""
                              + "for the services rendered on " + Environment.NewLine + " or to be rendered in the"
                              + " matter of ";

            string ParaOne9 = ""
                              + result.Summons;

            string ParaOne10 = ""
                               + "."
                               + Environment.NewLine + Environment.NewLine
                               + "                                                          ____________________________" + "     " + "    " + "    " + "    "
                               + "   " + "    " + "    " + "    "
                               + "." + "                             " + "                                      ";

            string ParaOne11 = ""
                               + result.F_Name + " " + result.L_Name;

            var paraFormat = new Formatting();

            paraFormat.FontFamily = new System.Drawing.FontFamily("Times New Roman");
            paraFormat.Size       = 20D;
            titleFormat.Position  = 12;
            doc.InsertParagraph(Environment.NewLine);
            doc.InsertParagraph(Environment.NewLine);

            var p = doc.InsertParagraph("", false, paraFormat);

            p.Append(paraOne).FontSize(19D).Append(ParaOne1).Bold().FontSize(19D).Append(ParaOne2).FontSize(19D).Append(ParaOne3).FontSize(19D).Bold().Append(ParaOne4).FontSize(19D).Append(ParaOne5).FontSize(19D).Bold().Append(ParaOne6).FontSize(19D).Append(ParaOne7).FontSize(19D).Bold().Append(ParaOne8).FontSize(19D).Append(ParaOne9).FontSize(19D).Bold().Append(ParaOne10).FontSize(15D).Append(ParaOne11).FontSize(19D).Bold();

            doc.Save();
            obj.ClientCertificateFiles(id, openpath);
            return(openpath);
        }
Example #2
0
        public string LegalServicesdoc(int id)
        {
            string PathStart = Server.MapPath("/Template");

            if (!Directory.Exists(PathStart))
            {
                Directory.CreateDirectory(PathStart);
            }

            string FolderNameByDate = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString();
            string path             = PathStart + "/" + FolderNameByDate;

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            Nj_Detail obj    = new Nj_Detail();
            var       result = obj.ClientDetail(id);

            string FolderNameByUserName = path + "/" + result.F_Name + result.L_Name;

            if (!Directory.Exists(FolderNameByUserName))
            {
                Directory.CreateDirectory(FolderNameByUserName);
            }
            string openpath    = "/Template/" + FolderNameByDate + "/" + result.F_Name + result.L_Name + "/" + "LegalServices" + ".doc";
            string Filename    = FolderNameByUserName + "/" + "LegalServices" + ".doc";
            var    doc         = DocX.Create(Filename);
            string headerText  = "AGREEMENT TO PROVIDE LEGAL SERVICES";
            string SubHeader   = "In Municipal Court";
            var    titleFormat = new Formatting();

            titleFormat.FontFamily     = new System.Drawing.FontFamily("Times New Roman");
            titleFormat.Size           = 12D;
            titleFormat.Position       = 10;
            titleFormat.UnderlineColor = new System.Drawing.Color();
            Novacode.Paragraph title = doc.InsertParagraph(headerText, false, titleFormat);
            title.Bold();
            title.Alignment = Alignment.center;
            Novacode.Paragraph title1 = doc.InsertParagraph(SubHeader, false, titleFormat);
            title1.Bold();
            title1.Alignment = Alignment.center;
            string paraOne = ""
                             + "    THIS AGREEMENT, dated October 12, 2016 is made between the Client,";
            string paraOne1 = ""
                              + " " + result.F_Name + " " + result.L_Name + "";

            string paraOne2 = ""
                              + ", whose address is ";


            string paraOne3 = ""
                              + result.Address1 + " " + result.ST + " " + result.City + " " + result.ZIP;
            string ParaOne4 = ""
                              + ", referred to as  the “Client” and The Stabile Law Firm, LLC, hereafter referred to as the “Law Firm.”"
                              + Environment.NewLine
                              + "    1. SUBJECT MATTER OF AGREEMENT"
                              + Environment.NewLine
                              + "    a. The “Law Firm” will represent the client in the following matters: Summons "
                              + result.Summons
                              + Environment.NewLine
                              + "    b. This Agreement does not obligate the “Law Firm” to appeal on behalf of the client. If the client wishes to appeal, and the “Law Firm” agrees to represent the client, an additional agreement will be entered into for that purpose."
                              + Environment.NewLine
                              + "    2. LEGAL SERVICES TO BE RENDERED"
                              + Environment.NewLine
                              + "    a. The legal services to be provided include all necessary court appearances, legal research, investigation, correspondence, preparation of legal documents, trial preparation and all related work required to properly represent the client in this matter."
                              + Environment.NewLine
                              + "     b. The above legal services will be performed as needed by the “Law Firm” and without need for consultation with or authorization from the client."
                              + Environment.NewLine
                              + "    3. LEGAL SERVICES NOT COVERED BY THIS AGREEMENT"
                              + Environment.NewLine
                              + "    This agreement requires that the law firm represent the client with respect to the above subject matter only. Any other matters, except those incidental to and necessarily included with the above matter, must be the subject of a separate agreement between the “Law Firm” and client."
                              + Environment.NewLine
                              + "    4. CALCULATION OF LEGAL FEES"
                              + Environment.NewLine
                              + "    Client agrees to pay the law firm a non-refundable flat fee of $";


            string ParaOne5 = ""
                              + result.Payment_Total;

            string ParaOne6 = ""
                              + " plus costs to negotiate a plea.  Costs may include, but are not limited to, the cost of discovery; transcript fees; and expert fees.   If you elect to pursue a trial, the fee for trial preparation will be an additional $1000.00 for DUI and Disorderly Persons matters and $500.00 for a Traffic Matter.  If a motion is filed, an additional fee of $500.00 will be charged."
                              + Environment.NewLine
                              + "    Additionally, if the client fails to appear at any scheduled Court date, the attorney can charge an additional $200.00 appearance fee (unless case is done by affidavit). Additionally, if there is an outstanding balance seven (7) days before the scheduled court appearance, the client authorizes the “Law Firm” to charge the remaining balance to his credit or debit card on file without further notification and/or approval."
                              + Environment.NewLine
                              + "    This agreement is for the summons listed in Paragraph 1.  If the Attorney arrives at court and other summons or complaints are listed on the docket that are not disclosed to Law Firm, an additional fee will be charged for those summons or complaints."
                              + Environment.NewLine
                              + "    5.	CONTRACTUAL RELATIONSHIP"
                              + Environment.NewLine
                              + "    “Law Firm” solely owes a legal duty to the Client regardless if a third party has paid any portion of Client’s fee.  In the event that a third party pays any portion of the aforementioned fee owed by the Client, a contractual financial obligation and relationship is hereby established between the “Law Firm” and third party.  In the event that the client defaults on paragraph 4 of this agreement, said third party agrees to act as a surety with respect to the fees owed by the client.  By entering this agreement, Client affirms that they have given third party adequate notice and the third party has freely and voluntarily acknowledged said surety relationship."
                              + Environment.NewLine
                              + "    6. AUTHORIZATION AND DECISION MAKING"
                              + Environment.NewLine
                              + "    The “Law Firm” is authorized to take all actions which the law firm deems advisable on behalf of the client. The “Law Firm” agrees to notify the client promptly of all significant developments in this matter and to consult with the client with respect to any significant decisions related to those developments."
                              + Environment.NewLine
                              + "    7. CLIENT’S RESPONSIBILITY"
                              + Environment.NewLine
                              + "    The client must fully cooperate with the “Law Firm” in this matter. The client must provide all information relevant to the subject matter of this agreement. Failure of the client to bring documents to court which is critical to a successful outcome may result in an additional fee of $200.00 per additional appearance at the Firm’s discretion. These documents include but are not limited to: driver’s license, vehicle registration, insurance card, driving abstract and restoration documents from the motor vehicle commission."
                              + Environment.NewLine
                              + "    8. NO GUARANTEED RESULT"
                              + Environment.NewLine
                              + "    The “Law Firm” shall act on behalf of the client in a courteous, conscientious and diligent manner at all times to achieve solutions which are reasonable and just for the client. However, the “Law Firm” does not guarantee or predict what the final outcome of this matter will be."
                              + Environment.NewLine
                              + "    9. SUPERVISING COUNSEL"
                              + Environment.NewLine
                              + "    The client understands that the “Law Firm” employs several attorneys and attorney assignment to the client’s case will be made by the “Law Firm”. The client further understands that the “Law Firm”, on occasion, refers cases to other competent attorneys who are more familiar with a given Court and that on those occasions the referred to “Law Firm” will share in the fee paid by the client."
                              + Environment.NewLine
                              + "    10. TERMINATION OF SERVICES"
                              + Environment.NewLine
                              + "    The “Law Firm” may terminate this agreement if the client is in breach of its obligations under this agreement or if the “Law Firm” is otherwise required to do so in accordance with the rules of professional conduct governing attorneys.  Should the client terminate this agreement, and a dispute arises thereon, it is agreed that the “Law Firm” is entitled to minimally receive a fee of $350.00 per hour for time expended on client’s behalf."
                              + Environment.NewLine
                              + "    11. INFORMATION TO BE MADE AVAILABLE TO THE CLIENT"
                              + Environment.NewLine
                              + "    The “Law Firm” agrees to make every effort to inform the client at all times as to the status of the matter and as to the acts which are being taken on behalf of the client. The “Law Firm” will make the file available to the client and when possible will send copies of the material to the client at the client’s expense."
                              + Environment.NewLine
                              + "    Client understands that matters may be resolved expeditiously or may take a long time. Client further understands that attorneys may want to delay their case for tactical reasons and client agrees to be patient and allow the attorneys to do what they believe is the right course of action in getting the most positive result."
                              + Environment.NewLine
                              + "    12. COMPLETE AGREEMENT"
                              + Environment.NewLine
                              + "    This writing includes the entire agreement between the client and the law firm regarding this matter. This agreement can only be modified with another written agreement signed by the client and the law firm. This agreement shall be binding upon both, the client and the law firm and their respective heirs, legal representatives and successors in interest."
                              + Environment.NewLine
                              + "    13. ACKNOWLEDGEMENT OF TERMS"
                              + Environment.NewLine
                              + "    Client hereby acknowledges that this agreement can be delivered to Client via email, fax, or regular mail.  Client further acknowledges that if agreement is delivered to Client via email, Client agrees to the terms as written by opening the email and reading the agreement even if Client does not physically sign the agreement."
                              + Environment.NewLine
                              + "    14. SIGNATURES"
                              + Environment.NewLine
                              + "    Both the client and the “Law Firm” have read and agreed to this agreement. The “Law Firm” has provided the client with answers to any questions and has further explained this agreement to the complete satisfaction of the client. The client has also been given a copy of this agreement."
                              + Environment.NewLine + Environment.NewLine
                              + "The Stabile Law Firm, LLC"
                              + Environment.NewLine
                              + "____________________________________       ____________________________________  For: Stabile Law Firm, LLC." + "            " + "                " + "                ";
            string ParaOne7 = ""
                              + result.F_Name + " " + result.L_Name
                              + Environment.NewLine + Environment.NewLine + Environment.NewLine + Environment.NewLine;

            title.Alignment = Alignment.center;
            string paratwo = ""
                             + Environment.NewLine
                             + "I ";

            string paratwo1 = ""
                              + result.F_Name + " " + result.L_Name;

            string paratwo2 = ""
                              + ", having retained the services of the Stabile Law Firm, LLC., (hereinafter "
                              + "referred to as the “Law Firm” ) in connection with matter(s) pending in ";

            string paratwo3 = ""
                              + result.Court_Name;

            string paratwo4 = ""
                              + " Court(s), hereby agree to comply with the following:"
                              + Environment.NewLine
                              + "1.      I must notify the “Law Firm” as soon as I receive a court notice.  Also, I must call to"
                              + " confirm court date two (2) days prior to date. If my phone number, email address or address changes, I must notify the firm and the court immediately."
                              + Environment.NewLine
                              + "2.      I must arrive on time to Court and inquire with Court staff as to check-in procedure (unless case is being handled by affidavit). I understand that the attorney’s may have other courts and may be delayed on arrival to Court.  I should, if asked by Court personnel or judge, indicate that I am pleading Not Guilty and that I am represented by an attorney."
                              + Environment.NewLine
                              + "3.      I must bring at the very least $200 to Court for possible fines."
                              + Environment.NewLine
                              + "4.      If I am charged with a Driving While Suspended, I must contact the Motor Vehicle Commission at 609-292-7500 and take all necessary steps to restore my license. I must bring proof in writing from the Motor Vehicle Commission that I am restored and/or in good standing regarding surcharges."
                              + Environment.NewLine
                              + "5.      If I am charged with any offense pertaining to Driver’s License, Registration and/or Insurance, I must bring original documents to Court"
                              + Environment.NewLine
                              + "6.      I acknowledge that if I fail to appear at a scheduled Court date, the Law Firm will charge me an additional appearance fee of $200.00 unless case is done by affidavit."
                              + Environment.NewLine + Environment.NewLine
                              + "Dated:   " + DateTime.Now.ToShortDateString() + "    " + "    " + "    " + "    " + "    " + "          " + "______________________________" + "    " + "    " + "                            " + ".                                              " + "                    " + "               ";

            string paratwo5 = ""
                              + result.F_Name + " " + result.L_Name;

            var paraFormat = new Formatting();

            paraFormat.FontFamily = new System.Drawing.FontFamily("Times New Roman");
            paraFormat.Size       = 12D;
            titleFormat.Position  = 6;
            doc.InsertParagraph(Environment.NewLine);
            var p = doc.InsertParagraph("", false, paraFormat);

            p.Append(paraOne).FontSize(12D).Append(paraOne1).Bold().FontSize(12D).Append(paraOne2).FontSize(12D).Append(paraOne3).FontSize(12D).Bold().Append(ParaOne4).FontSize(12D).Append(ParaOne5).FontSize(12D).Bold()
            .Append(ParaOne6).FontSize(12D).Append(ParaOne7).FontSize(12D).Bold();
            string ChildHeader = "CLIENT RESPONSIBILITIES AGREEMENT";

            Novacode.Paragraph title2 = doc.InsertParagraph(ChildHeader, false, titleFormat);
            title2.Bold();
            title2.Alignment = Alignment.center;
            var pp = doc.InsertParagraph("", false, paraFormat);

            pp.Append(paratwo).FontSize(12D).Append(paratwo1).FontSize(12D).Bold().Append(paratwo2).FontSize(12D).Append(paratwo3).FontSize(12D).Bold().Append(paratwo4).FontSize(12D).Append(paratwo5).FontSize(12D).Bold();
            pp.SetLineSpacing(LineSpacingType.Line, 1.3f);
            p.SetLineSpacing(LineSpacingType.Line, 1.3f);
            doc.Save();
            obj.ClientCertificateFiles(id, openpath);
            return(openpath);
        }
Example #3
0
        public string GenrateCheckScript(int id)
        {
            string PathStart = Server.MapPath("/Template");

            if (!Directory.Exists(PathStart))
            {
                Directory.CreateDirectory(PathStart);
            }

            string FolderNameByDate = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString();
            string path             = PathStart + "/" + FolderNameByDate;

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            Nj_Detail obj    = new Nj_Detail();
            var       result = obj.ClientDetail(id);

            string FolderNameByUserName = path + "/" + result.F_Name + result.L_Name;

            if (!Directory.Exists(FolderNameByUserName))
            {
                Directory.CreateDirectory(FolderNameByUserName);
            }

            string openpath = "/Template/" + FolderNameByDate + "/" + result.F_Name + result.L_Name + "/" + "CheckReceipt" + ".doc";
            string Filename = FolderNameByUserName + "/" + "CheckReceipt" + ".doc";
            var    doc      = DocX.Create(Filename);

            string headerText  = "Check Receipt";
            var    titleFormat = new Formatting();

            titleFormat.FontFamily     = new System.Drawing.FontFamily("Arial Black");
            titleFormat.Size           = 20D;
            titleFormat.Position       = 12;
            titleFormat.UnderlineColor = new System.Drawing.Color();

            Novacode.Paragraph title = doc.InsertParagraph(headerText, false, titleFormat);
            title.Alignment = Alignment.center;

            string paraOne = ""
                             + "I  ,";

            string paraOne1 = ""
                              + result.F_Name + " " + result.L_Name;

            string paraOne2 = ""
                              + ", have given the Stabile Law"
                              + Environment.NewLine
                              + "Firm, payment in the amount of, "
                              + "$";

            string paraOne3 = ""
                              + result.Payment_Paid
                              + Environment.NewLine;

            string paraOne4 = ""
                              + " , in cash on ";

            string paraOne5 = ""
                              + DateTime.Now.ToString("MMMM") + " " + DateTime.Now.Day.ToString() + "," + DateTime.Now.Year.ToString() + ",";


            string paraOne6 = ""
                              + "for the services" + Environment.NewLine + " rendered on or to be rendered in the  matter"
                              + Environment.NewLine
                              + " of  ";

            string paraOne7 = ""
                              + result.Summons
                              + Environment.NewLine + Environment.NewLine;

            string paraOne8 = ""
                              + "  The balance remaining is ";

            string paraOne9 = ""
                              + result.Payment_Balance + ""
                              + Environment.NewLine + Environment.NewLine;
            string paraOne10 = ""
                               + "                            " + "                                                ______________________                 "
                               + ".                                                                               ";
            string paraOne11 = ""
                               + result.F_Name + " " + result.L_Name;

            var paraFormat = new Formatting();

            paraFormat.FontFamily = new System.Drawing.FontFamily("Times New Roman");
            paraFormat.Size       = 20D;
            titleFormat.Position  = 12;
            doc.InsertParagraph(Environment.NewLine);
            doc.InsertParagraph(Environment.NewLine);

            var p = doc.InsertParagraph("", false, paraFormat);

            p.Append(paraOne).FontSize(19D).Append(paraOne1).Bold().FontSize(19D).Append(paraOne2).FontSize(19D).Append(paraOne3).FontSize(19D).Bold().Append(paraOne4).FontSize(19D).Append(paraOne5).FontSize(19D).Bold().Append(paraOne6).FontSize(19D).Append(paraOne7).FontSize(19D).Bold().Append(paraOne8).FontSize(19D).Append(paraOne9).FontSize(19D).Bold().Append(paraOne10).FontSize(15D).Append(paraOne11).FontSize(19D).Bold();

            //doc.InsertParagraph(paraOne, false, paraFormat);
            doc.Save();
            obj.ClientCertificateFiles(id, openpath);
            return(openpath);
        }