示例#1
0
        /// <summary>
        ///   Converts current object to a PSV row
        /// </summary>
        public string ToPsvRow()
        {
            string[] data =
            {
                OrderId.ToString(),
                ProgramName,
                OrderDate.ToString(Constants.DateTimeIsoFormat),
                LastName,
                FirstName,
                SpouseName,
                string.Join(",",                                  Children),
                Address,
                Suburb,
                State,
                PostCode.ToString(),
                TelNo,
                MobileNo,
                SpouseMobileNo,
                Email1,
                Email2,
                PaymentDate.ToString(Constants.DateTimeIsoFormat),
                OrderStatus
            };

            return(string.Join("|", data));
        }
示例#2
0
文件: Header.cs 项目: h4ckm03d/reflex
 public override string ToString()
 {
     //return PaymentDate.ToString();
     return(string.Format(Template,
                          (int)RecordType,
                          EPaymentId,
                          CorporateID,
                          CorporateName,
                          DebitingAccountNumber,
                          PaymentDate.ToString("ddMMyyyy"),
                          FileBatchNo,
                          TotalDebitingAmount * 100,
                          BussinessRegNo,
                          MailingAddress1,
                          MailingAddress2,
                          ContactNo
                          ));
 }
示例#3
0
        /// <summary>
        ///  Convert current object to PSV row
        /// </summary>
        /// <returns>PSV row</returns>
        public string ToPsvRow()
        {
            string[] data =
            {
                OrderId.ToString(),
                ProgramName,
                OrderDate.ToString(Constants.DateTimeIsoFormat),
                FirstName,
                LastName,
                TelNo,
                MobileNo,
                Email1,
                Email2,
                PaymentDate.ToString(Constants.DateTimeIsoFormat),
                Quantity.ToString(),
                TotalAmount.ToString("f02"),
                TicketType,
                PaymentMode,
                OrderStatus
            };

            return(string.Join("|", data));
        }
示例#4
0
文件: Payment.cs 项目: Dziulis/BVKKMN
 public override string ToString()
 {
     return($"{Number};{PaymentDate.ToString("yyyy-MM-dd")};{decimal.Round(PaymentLeft, 2)};{decimal.Round(CreditCovered, 2)};{decimal.Round(Interest, 2)};{decimal.Round(MonthlyPayment)};{decimal.Round(AmountLeftAfterPayment, 2)}");
 }
示例#5
0
 public override string ToString()
 {
     return(PaymentDate.ToString("dd/MM/yyyy") +
            "-" +
            InstallmentValue.ToString("F2", CultureInfo.InvariantCulture));
 }
示例#6
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            //Create Word Application
            word.Application wordApp = new word.Application();
            wordApp.Visible = true;

            //Create the Document
            word.Document wordDoc = wordApp.Documents.Add();

            //Create the Heading Parahraph
            word.Paragraph wordPara = wordDoc.Paragraphs.Add();
            wordPara.Range.Text = "End of Shift Report";
            object styleName = "Intense Quote";

            wordPara.Range.set_Style(ref styleName);
            wordPara.Range.InsertParagraphAfter();

            //Create a New Paragraph
            word.Paragraph wordPara2 = wordDoc.Paragraphs.Add();
            wordPara2.Range.Text = "This Document Contains all the crucial information regarding the Total Sales made per Shift. This information includes the Total Sales Made in the Shift, Each Sale made, their payment type and amounts. The total Amount of Sales Made this shift is: " + lblTotalSalesMade.Text + " " + "The Total Revenue made today is: R" + lblRevenue.Text;
            object styleName2 = "Subtle Emphasis";

            wordPara2.Range.set_Style(ref styleName2);
            wordPara2.Range.InsertParagraphAfter();


            int    PaymentID;
            double PaumentAmount;
            string PaymentDate;
            double PaymentVAT;
            double AmountReceived;
            double Change;
            int    PaymentTypeID;
            string Description;
            string Type;

            SqlConnection sqlcon = new SqlConnection(Globals.ConnectionString);

            sqlcon.Open();
            string        cmd    = "SELECT PaymentID, PaymentAmount, PaymentDate, PaymentVAt, AmountReceived, Change, PaymentTypeID FROM Payment WHERE PaymentDate ='" + lblDate.Text + "'";
            SqlCommand    sqlcom = new SqlCommand(cmd, sqlcon);
            SqlDataReader dr     = sqlcom.ExecuteReader();

            if (dr.HasRows)
            {
                while (dr.Read())
                {
                    PaymentID      = Convert.ToInt32((dr["PaymentID"]));
                    PaumentAmount  = Convert.ToDouble((dr["PaymentAmount"]));
                    PaymentDate    = (dr["PaymentDate"].ToString());
                    PaymentVAT     = Convert.ToDouble((dr["PaymentVAt"]));
                    AmountReceived = Convert.ToDouble((dr["AmountReceived"]));
                    Change         = Convert.ToDouble((dr["Change"]));
                    PaymentTypeID  = Convert.ToInt32((dr["PaymentTypeID"]));

                    if (PaymentTypeID == 1)
                    {
                        Type = "Cash Sale";
                    }
                    else
                    {
                        Type = "Credit Card Sale";
                    }

                    Details = "Payment ID: " + PaymentID.ToString() + "\n" +
                              "Payment Amount: R" + PaumentAmount.ToString() + "\n" +
                              "Payment Date: " + PaymentDate.ToString() + "\n" +
                              "VAT: R" + PaymentVAT.ToString() + "\n" +
                              "Amount Received: R" + AmountReceived.ToString() + "\n" +
                              "Change: R" + Change.ToString() + "\n" +
                              "Payment Type: " + Type.ToString() + "\n";


                    word.Paragraph wordPara3  = wordDoc.Paragraphs.Add();
                    object         styleName3 = "List Paragraph";
                    wordPara3.Range.set_Style(ref styleName3);
                    wordPara3.Range.InsertParagraphAfter();
                    wordPara3.Range.Text = Details;
                }
            }

            dr.Close();
            sqlcon.Close();
        }
示例#7
0
 // generatory zapytań MySQL
 public string GenerateUpdateQuery()
 {
     return(String.Format("UPDATE faktura SET id_kontrahenta={0}, data_wystawienia='{1}', termin_platnosci='{2}', data_sprzedazy='{3}', forma_platnosci='{4}', zaplacona_kwota='{5}' WHERE numer='{6}'", CustomerID, InvoiceDate.ToString(), PaymentDate.ToString(), SellingDate.ToString(), Array.IndexOf(paymentMethods, PaymentMethod) + 1, AmountPaid, Number));
 }
示例#8
0
        public void PayFund(float amount)
        {
            string response =
                $"Paid to Mr./Mrs./Miss. {RecepientName} Amount INR. {amount}/- [From A/C: {AccoutnNumber}, Bank: {BankName}] On date of {PaymentDate.ToString(CultureInfo.InvariantCulture)}";

            Console.WriteLine(response);
        }