public bool Handle(Paid message) { _dispatcher.Publish(new Report(message.Order, message.CorrelationId, message.MessageId)); return(true); }
public void clearAll() { employeeFatherName.Clear(); employeeName.Clear(); Paid.Clear(); employeeId.Clear(); }
private void metroButton2_Click(object sender, EventArgs e) { Paid pay = new Paid(); this.Hide(); pay.Show(); }
/// <summary> /// Prints receipt /// </summary> /// <param name="pay"> number that represents the method of payment</param> private void Receipt(int pay) { ReceiptPrinter r = new ReceiptPrinter(); StringBuilder sb = new StringBuilder(); sb.Append("\t Cowboy Cafe\n _________________________________________\n\nOrder #" + OrderNumber.ToString() + "\t\t\t" + DateTime.Now + "\n\n"); foreach (IOrderItem i in Items) { sb.Append(i.ToString() + "\t\t " + i.Price.ToString("C2")); foreach (string st in i.SpecialInstructions) { sb.Append("\n\t" + st); } sb.Append("\n"); } sb.Append("\nSubtotal: " + Subtotal.ToString("C2") + "\nTax: \t " + Tax.ToString("C2") + "\nTotal: \t " + Total.ToString("C2") + "\n"); if (pay == 0) { sb.Append("\nPaid: \t" + Paid.ToString("C2")); } else { sb.Append("\nCredit: \t " + Paid.ToString("C2")); } sb.Append("\nChange: \t " + Change.ToString("C2")); string s = sb.ToString(); MessageBox.Show(s); r.Print(s); s = "Contents of the Cash Drawer\n\n____________________________\n Coins\n____________________________\n\nPennies: " + cd.Pennies + "\nNickels: " + cd.Nickels + "\nDimes: " + cd.Dimes + "\nQuarters: " + cd.Quarters + "\nHalf Dollars: " + cd.HalfDollars + "\nDollars: " + cd.Dollars + "\n\n____________________________\n Bills\n____________________________\n\nOnes: " + cd.Ones + "\nTwos: " + cd.Twos + "\nFives: " + cd.Fives + "\nTens: " + cd.Tens + "\nTwenties: " + cd.Twenties + "\nFifties: " + cd.Fifties + "\nHundreds: " + cd.Hundreds + "\n\n____________________________\nCash Drawer Total: " + cd.TotalValue.ToString("C2") + "\n____________________________\n"; MessageBox.Show(s); NewOrder(); }
private string Validate(string propertyName) { // Return error message if there is error on else return empty or null string string validationMessage = string.Empty; if (_firstLoad) { return(validationMessage); } switch (propertyName) { case "Current": if (!double.TryParse(Current.ToString(), out uselessParse)) { validationMessage = "Only Digits Are Allowed"; } break; case "Paid": if (!double.TryParse(Paid.ToString(), out uselessParse)) { validationMessage = "Only Digits Are Allowed"; } break; } return(validationMessage); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Status.GetHashCode(); hash = hash * 23 + Amount.GetHashCode(); hash = hash * 23 + Currency.GetHashCode(); hash = hash * 23 + Description.GetHashCode(); hash = hash * 23 + Capture.GetHashCode(); hash = hash * 23 + Authorized.GetHashCode(); hash = hash * 23 + Reversed.GetHashCode(); hash = hash * 23 + Paid.GetHashCode(); hash = hash * 23 + Transaction.GetHashCode(); hash = hash * 23 + Card.GetHashCode(); hash = hash * 23 + Refunded.GetHashCode(); hash = hash * 23 + Refunds.GetHashCode(); hash = hash * 23 + FailureCode.GetHashCode(); hash = hash * 23 + FailureMessage.GetHashCode(); hash = hash * 23 + Customer.GetHashCode(); hash = hash * 23 + IP.GetHashCode(); hash = hash * 23 + Dispute.GetHashCode(); hash = hash * 23 + ReturnURI.GetHashCode(); hash = hash * 23 + AuthorizeURI.GetHashCode(); return(hash); } }
private void Btn2_Click(object sender, RoutedEventArgs e) { Price.GetBindingExpression(NumericUpDown.ValueProperty).UpdateSource(); OldDebt.GetBindingExpression(NumericUpDown.ValueProperty).UpdateSource(); TransportCost.GetBindingExpression(NumericUpDown.ValueProperty).UpdateSource(); Paid.GetBindingExpression(NumericUpDown.ValueProperty).UpdateSource(); }
public override string ToString() { string res = $"{Date.ToString()} {Type.ToString()}\n"; res += $"Paid: {Paid.ToString()}\n"; res += $"Received: {Received.ToString()}\n"; res += $"Fees: {Fees.ToString()}\n"; res += $"XChange Rate: {XRate.ToString()}\n"; return(res); }
public override int GetHashCode() { var hashCode = 903062700; hashCode = hashCode * -1521134295 + Paid.GetHashCode(); hashCode = hashCode * -1521134295 + Salary.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Instructor> .Default.GetHashCode(Instructor); return(hashCode); }
private void button1_Click(object sender, EventArgs e) { //listView1.Items.Clear(); CustomerName.Text = ""; cid = ""; prid = ""; Address.Text = ""; Unpaid.Text = ""; Rent.Clear(); Paid.Clear(); }
public void clearAll() { AdmissionNumber.Clear(); StdName.Clear(); FatheName.Clear(); Grade.Clear(); TotalFee.Clear(); PreviousDues.Clear(); Calculated.Clear(); Paid.Clear(); Dues.Clear(); }
public override int GetHashCode() { unchecked { int hash = 17; if (Recipient != default(string)) { hash = hash * 23 + Recipient.GetHashCode(); } if (BankAccount != default(BankAccount)) { hash = hash * 23 + BankAccount.GetHashCode(); } if (Sent != default(bool)) { hash = hash * 23 + Sent.GetHashCode(); } if (Paid != default(bool)) { hash = hash * 23 + Paid.GetHashCode(); } if (Fee != default(long)) { hash = hash * 23 + Fee.GetHashCode(); } if (Amount != default(long)) { hash = hash * 23 + Amount.GetHashCode(); } if (Currency != default(string)) { hash = hash * 23 + Currency.GetHashCode(); } if (FailFast != default(bool)) { hash = hash * 23 + FailFast.GetHashCode(); } if (FailureCode != default(string)) { hash = hash * 23 + FailureCode.GetHashCode(); } if (FailureMessage != default(string)) { hash = hash * 23 + FailureMessage.GetHashCode(); } if (Transaction != default(string)) { hash = hash * 23 + Transaction.GetHashCode(); } return(hash); } }
public static PaidDto MapToDto(this Paid entity) { if (entity == null) { return(null); } return(new PaidDto { Id = entity.Id, PaidSum = entity.PaidSum, Comment = entity.Comment }); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Agent != null) { hashCode = hashCode * 59 + Agent.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (UserId != null) { hashCode = hashCode * 59 + UserId.GetHashCode(); } if (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (LegacyProfile != null) { hashCode = hashCode * 59 + LegacyProfile.GetHashCode(); } if (Suspended != null) { hashCode = hashCode * 59 + Suspended.GetHashCode(); } if (Paid != null) { hashCode = hashCode * 59 + Paid.GetHashCode(); } if (Migrated != null) { hashCode = hashCode * 59 + Migrated.GetHashCode(); } if (Legacy != null) { hashCode = hashCode * 59 + Legacy.GetHashCode(); } return(hashCode); } }
private void DepositButtonClick(object sender, RoutedEventArgs e) { try { InvoiceTable newDeposit = new InvoiceTable(); newDeposit.AdmissionNumber = Id; newDeposit.PayingMonth = GetFeeMonth(); newDeposit.TotalFeeOfMonth = int.Parse(Calculated.Text.ToString()); newDeposit.Paid = int.Parse(Paid.Text.ToString()); newDeposit.Dues = int.Parse(Dues.Text.ToString()); if (DepositDate.Text.Contains("/")) { newDeposit.InvoiceDate = DateTime.ParseExact(DepositDate.Text.ToString(), "dd/MM/yyyy", CultureInfo.InvariantCulture); } else { newDeposit.InvoiceDate = DateTime.ParseExact(DepositDate.Text.ToString(), "dd-MM-yyyy", CultureInfo.InvariantCulture); } context.InvoiceTables.Add(newDeposit); context.SaveChanges(); context.FeePaid(admissionNumber: Id, feeMonth: GetFeeMonth()); nextInvoice(); loadData(); clearAll(); this.ShowMessageAsync("Done", "Fee Deposit"); } catch (FormatException) { if (AdmissionNumber.Text == "") { this.ShowMessageAsync("Obstructed", "Couldn't calculate the students fee of the month or the Admission ID is missing"); AdmissionNumber.Focus(); } else if (Paid.Text == "") { Paid.Focus(); } } catch (Exception err) { MessageBox.Show(err.ToString()); } }
public JournalMaterialTrade(JObject evt) : base(evt, JournalTypeEnum.MaterialTrade) { MarketID = evt["MarketID"].LongNull(); TraderType = evt["TraderType"].Str(); Paid = evt["Paid"]?.ToObjectProtected <Traded>(); if (Paid != null) { Paid.Normalise(); } Received = evt["Received"]?.ToObjectProtected <Traded>(); if (Received != null) { Received.Normalise(); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Recipient.GetHashCode(); hash = hash * 23 + BankAccount.GetHashCode(); hash = hash * 23 + Sent.GetHashCode(); hash = hash * 23 + Paid.GetHashCode(); hash = hash * 23 + Fee.GetHashCode(); hash = hash * 23 + Amount.GetHashCode(); hash = hash * 23 + Currency.GetHashCode(); hash = hash * 23 + FailureCode.GetHashCode(); hash = hash * 23 + FailureMessage.GetHashCode(); hash = hash * 23 + Transaction.GetHashCode(); return(hash); } }
/// <summary> /// Creates the reciept to be sent to the printer /// </summary> /// <param name="cardOrCash">0 if card 1 if cash</param> private void PrintReceipt(int cardOrCash) { ReceiptPrinter rp = new ReceiptPrinter(); StringBuilder sb = new StringBuilder(); sb.Append("---------- COWBOY CAFE ----------\n"); sb.Append(DateTime.Now + "\n"); sb.Append("Order #: " + PrevOrderNumber + "\n"); /* Iterate over all items */ foreach (IOrderItem i in Items) { sb.Append(i.ToString() + "\t\t" + i.Price.ToString("C2") + "\n"); /* Iterate through the special instruction for the item i */ foreach (string s in i.SpecialInstructions) { sb.Append(s + "\n"); } sb.Append("\n"); } sb.Append("Subtotal: " + Subtotal.ToString("C2") + "\n"); sb.Append("Tax: " + Tax.ToString("C2") + "\n"); sb.Append("Total: " + TotalWithTax.ToString("C2") + "\n\n"); if (cardOrCash == 1) { sb.Append("Paid: " + Paid.ToString("C2") + "\n"); sb.Append("Change: " + Change.ToString("C2") + "\n"); } else { sb.Append("Credit Card was used!\n"); } string sr = sb.ToString(); MessageBox.Show(sr); rp.Print(sr); ShowDrawerContents(); SetNewOrder(); }
protected void Page_Load(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("select AccountMaster.MemberID ,tblmembermaster.UserName,Sum(case when dateoftransaction>=getdate()then isnull(Credit,0) else 0 end) as Remaining, Sum(case when dateoftransaction<getdate()then isnull(Credit,0) else 0 end) as Paid,Sum(Credit) as Total from AccountMaster Inner Join tblMemberMaster on AccountMaster.MemberID=tblMemberMaster.UserCode WHERE TxnType=3 Group by AccountMaster.MemberID,tblmembermaster.UserName", con); SqlDataAdapter da = new SqlDataAdapter(cmd); using (DataTable dt = new DataTable()) { da.Fill(dt); GridView1.DataSource = dt; GridView1.DataBind(); total = dt.AsEnumerable().Sum(row => row.Field <decimal>("Total")); Paid = dt.AsEnumerable().Sum(row => row.Field <decimal>("Paid")); Remaining = dt.AsEnumerable().Sum(row => row.Field <decimal>("Remaining")); GridView1.FooterRow.Cells[2].Text = "Total"; GridView1.FooterRow.Cells[3].Text = total.ToString(); GridView1.FooterRow.Cells[4].Text = Paid.ToString(); GridView1.FooterRow.Cells[5].Text = Remaining.ToString(); } }
private void btnAdd_Click_1(object sender, EventArgs e) { try { if (cbBetaald.Checked == true) { Paid pe = new Paid(tbFirstName.Text, tbSirName.Text, textBox3.Text, Convert.ToDecimal(textBox1.Text), profilepath, rtbAboutMe.Text); d.employees.Add(pe as IEmployee); } else { Charity ce = new Charity(tbFirstName.Text, tbSirName.Text, textBox3.Text, profilepath, rtbAboutMe.Text); d.employees.Add(ce as IEmployee); } } catch (Exception ex) { MessageBox.Show(ex.Message); } Update(); ClearForm(); }
/// <summary> /// Vygeneruje z nákupního košíku XML účtenku /// </summary> public void GenerateXmlFile(string filename, List <ShoppingCartItem> ShoppingCart, DateTime time) { if (!Directory.Exists(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "PASS", "Bill"))) { Directory.CreateDirectory(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "PASS", "Bill")); } using (XmlWriter xmlWriter = XmlWriter.Create(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "PASS", "Bill", filename))) { xmlWriter.WriteRaw("<?xml-stylesheet type=\"text/xsl\" href=\"../CashRegister/Bill.xslt\"?>"); xmlWriter.WriteStartElement("bill"); foreach (ShoppingCartItem item in ShoppingCart) { xmlWriter.WriteStartElement("product"); xmlWriter.WriteElementString("name", item.AddedProduct.name.Trim()); xmlWriter.WriteElementString("quantity", item.Quantity.ToString()); xmlWriter.WriteElementString("unit", item.UnitName.Trim()); if (!item.AddedProduct.priceForUnit) { xmlWriter.WriteElementString("unitQuantity", item.AddedProduct.unitQuantity.ToString()); } xmlWriter.WriteElementString("expirationDate", ((DateTime)item.AddedProduct.expirationDate).ToString("dd.MM.yyyy")); xmlWriter.WriteElementString("code", item.AddedProduct.code.ToString()); xmlWriter.WriteElementString("totalPrice", item.TotalPrice.ToString()); xmlWriter.WriteElementString("priceForUnit", item.AddedProduct.priceForUnit.ToString()); xmlWriter.WriteElementString("priceForSingleUnit", item.AddedProduct.price.ToString()); xmlWriter.WriteElementString("vatType", item.AddedProduct.vatId.ToString()); xmlWriter.WriteEndElement(); } xmlWriter.WriteElementString("totalShoppingCartPrice", Sum.ToString()); xmlWriter.WriteElementString("paid", Paid.ToString()); xmlWriter.WriteElementString("change", Change.ToString()); xmlWriter.WriteElementString("staff", PASS.GeneralClasses.Authentification.AuthUser.Username); xmlWriter.WriteElementString("time", time.ToShortDateString() + " " + time.ToShortTimeString()); //DPH se počítá dohromady pro všechny výrobky dané kategorie (A,B,C,D) List <VAT> listOfVat = GetVat(); decimal? vatSum = GetVatSum(listOfVat); decimal? vatSumSingle = GetVatSumSingle(listOfVat); xmlWriter.WriteElementString("vatSum", string.Format("{0:0.00}", vatSum)); xmlWriter.WriteElementString("vatSumSingle", string.Format("{0:0.00}", vatSumSingle)); foreach (VAT singleVat in listOfVat) { xmlWriter.WriteStartElement(singleVat.id.ToString()); xmlWriter.WriteAttributeString("percentage", singleVat.percentage); xmlWriter.WriteAttributeString("totalPrice", string.Format("{0:0.00}", singleVat.vatValueProducts)); xmlWriter.WriteString(string.Format("{0:0.00}", singleVat.vatValue)); xmlWriter.WriteEndElement(); } //Informace do hlavičky Company company = CompanyInfo.GetCompanyInfo(); xmlWriter.WriteElementString("companyName", company.name.Trim()); // Name je vždy vyplněné //Další nepovinné údaje, pokud chybí, tak se to do XML nebude přidávat if (!string.IsNullOrEmpty(company.adress)) { xmlWriter.WriteElementString("companyAdress", company.adress.Trim()); } if (!string.IsNullOrEmpty(company.city)) { xmlWriter.WriteElementString("companyCity", company.city.Trim()); } if (company.postalCode != null) { xmlWriter.WriteElementString("companyPostalCode", company.postalCode.ToString()); } if (!string.IsNullOrEmpty(company.phone)) { xmlWriter.WriteElementString("companyPhone", company.phone.Trim()); } if (!string.IsNullOrEmpty(company.web)) { xmlWriter.WriteElementString("companyWeb", company.web.Trim()); } Bill billInfo = BillInfo.GetBillInfo(); if (!string.IsNullOrEmpty(billInfo.billText)) { xmlWriter.WriteElementString("billText", billInfo.billText.Trim()); } xmlWriter.WriteEndElement(); } }
/// <summary> /// Returns true if GameProfile instances are equal /// </summary> /// <param name="other">Instance of GameProfile to be compared</param> /// <returns>Boolean</returns> public bool Equals(GameProfile other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Agent == other.Agent || Agent != null && Agent.Equals(other.Agent) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( UserId == other.UserId || UserId != null && UserId.Equals(other.UserId) ) && ( CreatedAt == other.CreatedAt || CreatedAt != null && CreatedAt.Equals(other.CreatedAt) ) && ( LegacyProfile == other.LegacyProfile || LegacyProfile != null && LegacyProfile.Equals(other.LegacyProfile) ) && ( Suspended == other.Suspended || Suspended != null && Suspended.Equals(other.Suspended) ) && ( Paid == other.Paid || Paid != null && Paid.Equals(other.Paid) ) && ( Migrated == other.Migrated || Migrated != null && Migrated.Equals(other.Migrated) ) && ( Legacy == other.Legacy || Legacy != null && Legacy.Equals(other.Legacy) )); }
public string FTP_LAEastBatonRouge(string houseno, string sname, string sttype, string parcelNumber, string searchType, string orderNumber, string ownername, string directParcel) { GlobalClass.global_orderNo = orderNumber; HttpContext.Current.Session["orderNo"] = orderNumber; GlobalClass.global_parcelNo = parcelNumber; string StartTime = "", AssessmentTime = "", TaxTime = "", CitytaxTime = "", LastEndTime = ""; var driverService = PhantomJSDriverService.CreateDefaultService(); driverService.HideCommandPromptWindow = true; using (driver = new PhantomJSDriver())//PhantomJSDriver { try { StartTime = DateTime.Now.ToString("HH:mm:ss"); if (searchType == "titleflex") { string address = houseno + " " + sname + " " + sttype; gc.TitleFlexSearch(orderNumber, parcelNumber, "", address, "LA", "East Baton Rouge"); if ((HttpContext.Current.Session["TitleFlex_Search"] != null && HttpContext.Current.Session["TitleFlex_Search"].ToString() == "Yes")) { driver.Quit(); return("MultiParcel"); } else if (HttpContext.Current.Session["titleparcel"].ToString() == "") { HttpContext.Current.Session["EastbatonLA_NoRecord"] = "Yes"; driver.Quit(); return("No Data Found"); } parcelNumber = HttpContext.Current.Session["titleparcel"].ToString(); searchType = "parcel"; } driver.Navigate().GoToUrl("http://www.ebrpa.org/PageDisplay.asp?p1=1503"); Thread.Sleep(2000); IWebElement iframeElement = null; try { iframeElement = driver.FindElement(By.XPath("/html/body/center/div[2]/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/font/div[1]/iframe")); } catch { } try { if (iframeElement == null) { iframeElement = driver.FindElement(By.XPath("//*[@id='single-blocks']/div[2]/div[2]/div/div/div/div/div/iframe")); } } catch { } Thread.Sleep(2000); driver.SwitchTo().Frame(iframeElement); //if (searchType == "address") //{ // //driver.Navigate().GoToUrl("http://www.ebrpa.org/PageDisplay.asp?p1=1503"); // //Thread.Sleep(2000); // //IWebElement iframeElement = driver.FindElement(By.XPath("/html/body/center/div[2]/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/font/div[1]/iframe")); // //Thread.Sleep(2000); // driver.SwitchTo().Frame(iframeElement); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/input[3]")).Click(); // Thread.Sleep(2000); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/div[2]/div/input[1]")).SendKeys(houseno); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/div[2]/div/input[2]")).SendKeys(sname); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/div[5]/button")).Click(); // Thread.Sleep(2000); // //Screen-Shot // gc.CreatePdf_WOP(orderNumber, "AddressSearch", driver, "LA", "East Baton Rouge"); // //MultiParcel // IWebElement MultiParcelTable = driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/table/tbody")); // IList<IWebElement> MultiParcelTR = MultiParcelTable.FindElements(By.TagName("tr")); // if (MultiParcelTR.Count == 1) // { // NavigateUrl(driver); // } // else // { // try // { // string no = driver.FindElement(By.XPath("//*[@id='ng-view']/div/div")).Text; // if (no.Contains("No results found")) // { // HttpContext.Current.Session["EastbatonLA_NoRecord"] = "Yes"; // driver.Quit(); // return "No Data Found"; // } // } // catch // { // } // IList<IWebElement> MultiParcelTD; // foreach (IWebElement multi in MultiParcelTR) // { // MultiParcelTD = multi.FindElements(By.TagName("td")); // if (MultiParcelTD.Count != 0) // { // parcelNumber = MultiParcelTD[0].Text; // Ownername = MultiParcelTD[1].Text; // Physicaladdrerss = MultiParcelTD[2].Text; // Multidata = Ownername + "~" + Physicaladdrerss; // gc.insert_date(orderNumber, parcelNumber, 177, Multidata, 1, DateTime.Now); // } // HttpContext.Current.Session["multiParcel_LAEastBatonRouge"] = "Yes"; // } // if (MultiParcelTR.Count > 25) // { // HttpContext.Current.Session["multiParcel_LAEastBatonRouge_Multicount"] = "Maximum"; // } // driver.Quit(); // return "MultiParcel"; // } //} //else if (searchType == "parcel") //{ // driver.Navigate().GoToUrl("http://www.ebrpa.org/PageDisplay.asp?p1=1503"); // Thread.Sleep(2000); // IWebElement iframeElement = driver.FindElement(By.XPath("/html/body/center/div[2]/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/font/div[1]/iframe")); // driver.SwitchTo().Frame(iframeElement); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/input[1]")).Click(); // Thread.Sleep(2000); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/input[7]")).SendKeys(parcelNumber); // gc.CreatePdf(orderNumber, parcelNumber, "ParcelSearch", driver, "LA", "East Baton Rouge"); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/div[5]/button")).Click(); // Thread.Sleep(2000); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/table/tbody/tr/td[4]/a")).Click(); // Thread.Sleep(3000); // NavigateUrl(driver); //} //else if (searchType == "ownername") //{ // driver.Navigate().GoToUrl("http://www.ebrpa.org/PageDisplay.asp?p1=1503"); // Thread.Sleep(2000); // IWebElement iframeElement = driver.FindElement(By.XPath("/html/body/center/div[2]/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/font/div[1]/iframe")); // driver.SwitchTo().Frame(iframeElement); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/input[2]")).Click(); // Thread.Sleep(2000); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/input[7]")).SendKeys(ownername); // gc.CreatePdf(orderNumber, parcelNumber, "ParcelSearch", driver, "LA", "East Baton Rouge"); // driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/form/div[5]/button")).Click(); // Thread.Sleep(2000); // gc.CreatePdf(orderNumber, outparcelno, "Property_Search", driver, "LA", "East Baton Rouge"); // //MultiParcel // IWebElement MultiParcelTable = driver.FindElement(By.XPath("/html/body/div[2]/div/div[3]/div/div/table/tbody")); // IList<IWebElement> MultiParcelTR = MultiParcelTable.FindElements(By.TagName("tr")); // if (MultiParcelTR.Count == 1) // { // NavigateUrl(driver); // } // else // { // IList<IWebElement> MultiParcelTD; // foreach (IWebElement multi in MultiParcelTR) // { // MultiParcelTD = multi.FindElements(By.TagName("td")); // if (MultiParcelTD.Count != 0) // { // parcelNumber = MultiParcelTD[0].Text; // Ownername = MultiParcelTD[1].Text; // Physicaladdrerss = MultiParcelTD[2].Text; // Multidata = Ownername + "~" + Physicaladdrerss; // gc.insert_date(orderNumber, parcelNumber, 177, Multidata, 1, DateTime.Now); // } // } // HttpContext.Current.Session["multiParcel_LAEastBatonRouge"] = "Yes"; // if (MultiParcelTR.Count > 25) // { // HttpContext.Current.Session["multiParcel_LAEastBatonRouge_Multicount"] = "Maximum"; // } // driver.Quit(); // return "MultiParcel"; // } //} if (searchType == "address") { driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/input[3]")).Click(); Thread.Sleep(2000); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/div[2]/div/input[1]")).SendKeys(houseno); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/div[2]/div/input[2]")).SendKeys(sname); gc.CreatePdf_WOP(orderNumber, "Address Search", driver, "LA", "East Baton Rouge"); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/div[5]/button")).Click(); Thread.Sleep(2000); //Screen-Shot gc.CreatePdf_WOP(orderNumber, "Address Search Result", driver, "LA", "East Baton Rouge"); //MultiParcel IWebElement MultiParcelTable = driver.FindElement(By.XPath("//*[@id='ng-view']/div/table/tbody")); IList <IWebElement> MultiParcelTR = MultiParcelTable.FindElements(By.TagName("tr")); if (MultiParcelTR.Count == 1) { NavigateUrl(driver); } else { try { string no = driver.FindElement(By.XPath("//*[@id='ng-view']/div/div")).Text; if (no.Contains("No results found")) { HttpContext.Current.Session["EastbatonLA_NoRecord"] = "Yes"; driver.Quit(); return("No Data Found"); } } catch { } IList <IWebElement> MultiParcelTD; foreach (IWebElement multi in MultiParcelTR) { MultiParcelTD = multi.FindElements(By.TagName("td")); if (MultiParcelTD.Count != 0) { parcelNumber = MultiParcelTD[0].Text; Ownername = MultiParcelTD[1].Text; Physicaladdrerss = MultiParcelTD[2].Text; Multidata = Ownername + "~" + Physicaladdrerss; gc.insert_date(orderNumber, parcelNumber, 177, Multidata, 1, DateTime.Now); } HttpContext.Current.Session["multiParcel_LAEastBatonRouge"] = "Yes"; } if (MultiParcelTR.Count > 25) { HttpContext.Current.Session["multiParcel_LAEastBatonRouge_Multicount"] = "Maximum"; } driver.Quit(); return("MultiParcel"); } } else if (searchType == "parcel") { //driver.Navigate().GoToUrl("http://www.ebrpa.org/PageDisplay.asp?p1=1503"); //Thread.Sleep(2000); //IWebElement iframeElement = driver.FindElement(By.XPath("/html/body/center/div[2]/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/font/div[1]/iframe")); //driver.SwitchTo().Frame(iframeElement); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/input[1]")).Click(); Thread.Sleep(2000); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/input[7]")).SendKeys(parcelNumber); gc.CreatePdf(orderNumber, parcelNumber, "ParcelSearch", driver, "LA", "East Baton Rouge"); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/div[5]/button")).Click(); Thread.Sleep(2000); driver.FindElement(By.XPath("//*[@id='ng-view']/div/table/tbody/tr/td[4]/a")).Click(); Thread.Sleep(3000); NavigateUrl(driver); } else if (searchType == "ownername") { //driver.Navigate().GoToUrl("http://www.ebrpa.org/PageDisplay.asp?p1=1503"); //Thread.Sleep(2000); //IWebElement iframeElement = driver.FindElement(By.XPath("/html/body/center/div[2]/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/font/div[1]/iframe")); //driver.SwitchTo().Frame(iframeElement); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/input[2]")).Click(); Thread.Sleep(2000); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/input[7]")).SendKeys(ownername); gc.CreatePdf(orderNumber, parcelNumber, "ParcelSearch", driver, "LA", "East Baton Rouge"); driver.FindElement(By.XPath("//*[@id='ng-view']/div/form/div[5]/button")).Click(); Thread.Sleep(2000); gc.CreatePdf(orderNumber, outparcelno, "Property_Search", driver, "LA", "East Baton Rouge"); //MultiParcel IWebElement MultiParcelTable = driver.FindElement(By.XPath("//*[@id='ng-view']/div/table/tbody")); IList <IWebElement> MultiParcelTR = MultiParcelTable.FindElements(By.TagName("tr")); if (MultiParcelTR.Count == 1) { NavigateUrl(driver); } else { IList <IWebElement> MultiParcelTD; foreach (IWebElement multi in MultiParcelTR) { MultiParcelTD = multi.FindElements(By.TagName("td")); if (MultiParcelTD.Count != 0) { parcelNumber = MultiParcelTD[0].Text; Ownername = MultiParcelTD[1].Text; Physicaladdrerss = MultiParcelTD[2].Text; Multidata = Ownername + "~" + Physicaladdrerss; gc.insert_date(orderNumber, parcelNumber, 177, Multidata, 1, DateTime.Now); } } HttpContext.Current.Session["multiParcel_LAEastBatonRouge"] = "Yes"; if (MultiParcelTR.Count > 25) { HttpContext.Current.Session["multiParcel_LAEastBatonRouge_Multicount"] = "Maximum"; } driver.Quit(); return("MultiParcel"); } } //Scrapped Data //Property Deatails outparcelno = driver.FindElement(By.XPath("/html/body/div[3]/div/div[1]/span[2]")).Text; OwnerName = driver.FindElement(By.XPath("/html/body/div[3]/div/div[2]/div/span[2]")).Text; if (OwnerName.Contains("\r\n")) { OwnerName = OwnerName.Replace("\r\n", ","); } Mailingaddress = driver.FindElement(By.XPath("/html/body/div[3]/div/div[3]/div/span")).Text; if (Mailingaddress.Contains("\r\n")) { Mailingaddress = Mailingaddress.Replace("\r\n", ","); } Property_Type = driver.FindElement(By.XPath("/html/body/div[3]/div/div[5]/div/span")).Text; Propertyaddress = driver.FindElement(By.XPath("/html/body/div[3]/div/div[7]/div/span[2]")).Text; if (Propertyaddress.Contains("\r\n")) { Propertyaddress = Propertyaddress.Replace("\r\n", ","); } gc.CreatePdf(orderNumber, outparcelno, "Assement", driver, "LA", "East Baton Rouge"); //Assessment Details //string year = driver.FindElement(By.XPath("/html/body/div[2]/div/span[1]")).Text; //IWebElement TBAssess = driver.FindElement(By.XPath("/html/body/div[3]/div/div[8]/table/tbody")); string year = ""; try { year = driver.FindElement(By.XPath("/html/body/div[2]/div/span")).Text.Replace("Assessment Listing", "").Trim(); } catch { } IWebElement TBAssess = driver.FindElement(By.XPath("//*[@id='parcelDetails']/div[8]/table/tbody")); IList <IWebElement> TRAssess = TBAssess.FindElements(By.TagName("tr")); IList <IWebElement> TDAssess; foreach (IWebElement assess in TRAssess) { TDAssess = assess.FindElements(By.TagName("td")); if (TDAssess.Count != 0) { Property_class = TDAssess[0].Text; AssedValues = TDAssess[1].Text; Units = TDAssess[2].Text; Homestead = TDAssess[3].Text; Assement_details = year + "~" + Property_class + "~" + AssedValues + "~" + Units + "~" + Homestead; gc.insert_date(orderNumber, outparcelno, 198, Assement_details, 1, DateTime.Now); } } AssessmentTime = DateTime.Now.ToString("HH:mm:ss"); //TaxDistribution Details //IWebElement TBTax = driver.FindElement(By.XPath("/html/body/div[3]/div/div[11]/table/tbody")); IWebElement TBTax = driver.FindElement(By.XPath("//*[@id='parcelDetails']/div[11]/table/tbody")); IList <IWebElement> TRTax = TBTax.FindElements(By.TagName("tr")); IList <IWebElement> TDTax; foreach (IWebElement tax in TRTax) { TDTax = tax.FindElements(By.TagName("td")); if (TDTax.Count != 0) { Millage = TDTax[0].Text; Mills = TDTax[1].Text; Tax = TDTax[2].Text; Homestead_Tax = TDTax[3].Text; TaxDistributionDetails = Millage + "~" + Mills + "~" + Tax + "~" + Homestead_Tax; gc.insert_date(orderNumber, outparcelno, 201, TaxDistributionDetails, 1, DateTime.Now); } } amc.TaxId = outparcelno; //TaxInformation Details driver.Navigate().GoToUrl("http://snstaxpayments.com/ebr"); Thread.Sleep(2000); driver.FindElement(By.Id("submit")).SendKeys(Keys.Enter); Thread.Sleep(2000); driver.FindElement(By.XPath("/html/body/div[1]/div[3]/form/div/div/div[1]/div[2]/label/input")).Click(); Thread.Sleep(2000); driver.FindElement(By.Id("searchFor1")).SendKeys(outparcelno); gc.CreatePdf(orderNumber, outparcelno, "Tax", driver, "LA", "East Baton Rouge"); driver.FindElement(By.Id("searchButton")).SendKeys(Keys.Enter); Thread.Sleep(2000); gc.CreatePdf(orderNumber, outparcelno, "View", driver, "LA", "East Baton Rouge"); IWebElement SelectOption = driver.FindElement(By.Id("taxyear")); IList <IWebElement> Select = SelectOption.FindElements(By.TagName("option")); List <string> option = new List <string>(); int Check = 0; foreach (IWebElement Op in Select) { if (Check <= 2) { option.Add(Op.Text); Check++; } } int amccount = 0; foreach (string item in option) { var SelectAddress = driver.FindElement(By.Id("taxyear")); var SelectAddressTax = new SelectElement(SelectAddress); SelectAddressTax.SelectByText(item); Thread.Sleep(4000); driver.FindElement(By.Id("searchButton")).SendKeys(Keys.Enter); Thread.Sleep(4000); try { driver.FindElement(By.XPath("/html/body/div[1]/div[3]/div[3]/table/tbody/tr/td[1]/button")).Click(); Thread.Sleep(7000); } catch { } gc.CreatePdf(orderNumber, outparcelno, "Popup 2015", driver, "LA", "East Baton Rouge"); //Open Popup try { Notice = driver.FindElement(By.XPath("/html/body/div[5]/div[2]/div/div/div[3]/div[1]")).Text; Notice = WebDriverTest.After(Notice, "Tax Notice#"); Taxyear = driver.FindElement(By.XPath("/html/body/div[5]/div[2]/div/div/div[3]/div[2]")).Text; Taxyear = WebDriverTest.After(Taxyear, "Tax Year"); amc.TaxYear = Taxyear; TaxPayer = driver.FindElement(By.XPath("/html/body/div[5]/div[2]/div/div/div[4]")).Text; TaxPayer = WebDriverTest.Between(TaxPayer, "Taxpayer", "**** ").Replace("\r\n", " ").Trim(); IWebElement TBOpen = driver.FindElement(By.XPath("/html/body/div[5]/div[2]/div/div/div[5]")); IList <IWebElement> DivMaster = TBOpen.FindElements(By.TagName("div")); foreach (IWebElement div in DivMaster) { Taxes = DivMaster[0].Text.Trim(); Interest = DivMaster[1].Text.Trim(); Cost = DivMaster[2].Text.Trim(); Other = DivMaster[3].Text.Trim(); Paid = DivMaster[4].Text.Trim(); Balance = DivMaster[5].Text.Trim(); } try { IWebElement ITaxsale = driver.FindElement(By.XPath("//*[@id='details']/div[5]")); if (ITaxsale.Text.Contains("Tax Sale Status: ")) { amc.IsDelinquent = "Yes"; } double TaxesAmount = 0.00, InterestAmount = 0.00, CostAmount = 0.00, OtherAmount = 0.00, PaidAmount = 0.00, BalanceAmount = 0.00; TaxesAmount = Convert.ToDouble(Taxes.Replace("Taxes\r\n", "").Trim()); InterestAmount = Convert.ToDouble(Interest.Replace("Interest\r\n", "").Trim()); PaidAmount = Convert.ToDouble(Paid.Replace("Paid\r\n", "").Trim()); CostAmount = Convert.ToDouble(Cost.Replace("Cost\r\n", "").Trim()); OtherAmount = Convert.ToDouble(Other.Replace("Other\r\n", "").Trim()); BalanceAmount = Convert.ToDouble(Balance.Replace("Balance\r\n", "").Trim()); if (TaxesAmount != 0 && InterestAmount == 0 && CostAmount == 0 && OtherAmount == 0 && PaidAmount != 0 && BalanceAmount == 0) { amc.Instamount1 = Taxes.Replace("Taxes\r\n", "").Trim(); amc.Instamountpaid1 = Paid.Replace("Paid\r\n", "").Trim(); amc.InstPaidDue1 = "Paid"; amc.IsDelinquent = "No"; } else if (TaxesAmount != 0 && InterestAmount == 0 && CostAmount == 0 && OtherAmount == 0 && PaidAmount == 0 && BalanceAmount != 0 && TaxesAmount == BalanceAmount) { amc.Instamount1 = Taxes.Replace("Taxes\r\n", "").Trim(); amc.Instamountpaid1 = Balance.Replace("Balance\r\n", "").Trim(); amc.InstPaidDue1 = "Due"; amc.IsDelinquent = "No"; } else if (TaxesAmount != 0 && InterestAmount != 0 && ((CostAmount != 0 || CostAmount == 0) && (OtherAmount == 0 || OtherAmount != 0)) && PaidAmount == 0 && BalanceAmount != 0 && TaxesAmount < BalanceAmount) { amc.IsDelinquent = "Yes"; } else if (TaxesAmount != 0 && InterestAmount != 0 && ((CostAmount != 0 || CostAmount == 0) && (OtherAmount == 0 || OtherAmount != 0)) && PaidAmount != 0 && BalanceAmount == 0 && TaxesAmount < PaidAmount) { amc.IsDelinquent = "Yes"; } } catch { } if (Interest.Replace("Interest\r\n", "") != "0.00" && Balance.Replace("Balance\r\n", "") != "0.00") { Deliquent_Interest = Interest; Deliquent_Balance = Balance; Interest = ""; Balance = ""; DeliquentTaxInformation = Notice + "~" + Taxyear + "~" + TaxPayer + "~" + Taxes.Replace("Taxes\r\n", "") + "~" + Interest.Replace("Interest\r\n", "") + "~" + Cost.Replace("Cost\r\n", "") + "~" + Other.Replace("Other\r\n", "") + "~" + Paid.Replace("Paid\r\n", "") + "~" + Balance.Replace("Balance\r\n", "") + "~" + Deliquent_Interest.Replace("Interest\r\n", "") + "~" + Deliquent_Balance.Replace("Balance\r\n", ""); gc.insert_date(orderNumber, outparcelno, 203, DeliquentTaxInformation, 1, DateTime.Now); } else { string TaxInformation = Notice + "~" + Taxyear + "~" + TaxPayer + "~" + Taxes.Replace("Taxes\r\n", "") + "~" + Interest.Replace("Interest\r\n", "") + "~" + Cost.Replace("Cost\r\n", "") + "~" + Other.Replace("Other\r\n", "") + "~" + Paid.Replace("Paid\r\n", "") + "~" + Balance.Replace("Balance\r\n", "") + "~" + Deliquent_Interest.Replace("Interest\r\n", "") + "~" + Deliquent_Balance.Replace("Balance\r\n", ""); gc.insert_date(orderNumber, outparcelno, 203, TaxInformation, 1, DateTime.Now); } Legal_Description = driver.FindElement(By.XPath("//*[@id='details']/div[7]")).Text.Replace("Legal", ""); if (amccount < 1) { if (amc.IsDelinquent == "Yes") { gc.InsertAmrockTax(orderNumber, amc.TaxId, null, null, null, null, null, null, null, null, null, null, null, null, amc.IsDelinquent); amccount++; } if (amc.IsDelinquent == "No") { gc.InsertAmrockTax(orderNumber, amc.TaxId, amc.Instamount1, amc.Instamount2, amc.Instamount3, amc.Instamount4, amc.Instamountpaid1, amc.Instamountpaid2, amc.Instamountpaid3, amc.Instamountpaid4, amc.InstPaidDue1, amc.InstPaidDue2, amc.instPaidDue3, amc.instPaidDue4, amc.IsDelinquent); amccount++; } } //Tax History IWebElement TBHistory = driver.FindElement(By.XPath("/html/body/div[5]/div[2]/div/div/div[9]/table/tbody")); IList <IWebElement> TRHistory = TBHistory.FindElements(By.TagName("tr")); IList <IWebElement> TDHistory; foreach (IWebElement History in TRHistory) { TDHistory = History.FindElements(By.TagName("td")); if (TDHistory.Count != 0) { Date = TDHistory[0].Text; Description = TDHistory[1].Text; Amount = TDHistory[2].Text; TaxHistory = Date + "~" + Description + "~" + Amount; gc.insert_date(orderNumber, outparcelno, 202, TaxHistory, 1, DateTime.Now); } } IWebElement ITax = driver.FindElement(By.XPath("//*[@id='details']/div[2]/a")); strTax = ITax.GetAttribute("href"); Thread.Sleep(5000); driver.Navigate().GoToUrl(strTax); Actions action = new Actions(driver); action.SendKeys(Keys.Escape).Build().Perform(); gc.CreatePdf(orderNumber, outparcelno, "Bill 2015", driver, "LA", "East Baton Rouge"); driver.Navigate().Back(); Thread.Sleep(2000); } catch { } } try { for (int k = 1; k < 4; k++) { if (k == 1) { try { var SelectAddress2017 = driver.FindElement(By.Id("taxyear")); var SelectAddressTax2017 = new SelectElement(SelectAddress2017); SelectAddressTax2017.SelectByIndex(0); Thread.Sleep(4000); driver.FindElement(By.Id("searchButton")).SendKeys(Keys.Enter); Thread.Sleep(4000); gc.CreatePdf(orderNumber, outparcelno, "View1", driver, "LA", "East Baton Rouge"); driver.FindElement(By.XPath("/html/body/div[1]/div[3]/div[3]/table/tbody/tr/td[1]/button")).Click(); Thread.Sleep(5000); IWebElement ITax = driver.FindElement(By.XPath("//*[@id='details']/div[2]/a")); strTax = ITax.GetAttribute("href"); Thread.Sleep(5000); driver.Navigate().GoToUrl(strTax); Actions action = new Actions(driver); action.SendKeys(Keys.Escape).Build().Perform(); gc.CreatePdf(orderNumber, outparcelno, "Bill 2017", driver, "LA", "East Baton Rouge"); driver.Navigate().Back(); Thread.Sleep(2000); } catch { } } else if (k == 2) { try { var SelectAddress2016 = driver.FindElement(By.Id("taxyear")); var SelectAddressTax2016 = new SelectElement(SelectAddress2016); SelectAddressTax2016.SelectByIndex(1); Thread.Sleep(4000); driver.FindElement(By.Id("searchButton")).SendKeys(Keys.Enter); Thread.Sleep(4000); gc.CreatePdf(orderNumber, outparcelno, "View2", driver, "LA", "East Baton Rouge"); driver.FindElement(By.XPath("/html/body/div[1]/div[3]/div[3]/table/tbody/tr/td[1]/button")).Click(); Thread.Sleep(5000); IWebElement ITax = driver.FindElement(By.XPath("//*[@id='details']/div[2]/a")); strTax = ITax.GetAttribute("href"); Thread.Sleep(5000); driver.Navigate().GoToUrl(strTax); Actions action = new Actions(driver); action.SendKeys(Keys.Escape).Build().Perform(); gc.CreatePdf(orderNumber, outparcelno, "Bill 2016", driver, "LA", "East Baton Rouge"); driver.Close(); } catch { } } } } catch { } property_details = OwnerName + "~" + Propertyaddress + "~" + Mailingaddress + "~" + Property_Type + "~" + Legal_Description; gc.insert_date(orderNumber, outparcelno, 197, property_details, 1, DateTime.Now); TaxTime = DateTime.Now.ToString("HH:mm:ss"); LastEndTime = DateTime.Now.ToString("HH:mm:ss"); gc.insert_TakenTime(orderNumber, "LA", "East Baton Rouge", StartTime, AssessmentTime, TaxTime, CitytaxTime, LastEndTime); driver.Quit(); //megrge pdf files gc.mergpdf(orderNumber, "LA", "East Baton Rouge"); return("Data Inserted Successfully"); } catch (Exception ex) { driver.Quit(); GlobalClass.LogError(ex, orderNumber); throw ex; } } }
public override int GetHashCode() { return(CertificateCode.GetHashCode() ^ Sum.GetHashCode() ^ Used.GetHashCode() * 123 ^ Paid.GetHashCode() * 321 ^ Enable.GetHashCode() * 323); }
public override int GetHashCode() { unchecked { int hash = 17; if (Status != default(ChargeStatus)) { hash = hash * 23 + Status.GetHashCode(); } if (Amount != default(long)) { hash = hash * 23 + Amount.GetHashCode(); } if (Currency != default(string)) { hash = hash * 23 + Currency.GetHashCode(); } if (Description != default(string)) { hash = hash * 23 + Description.GetHashCode(); } if (Metadata != default(IDictionary <string, object>)) { hash = hash * 23 + Metadata.GetHashCode(); } if (Capture != default(bool)) { hash = hash * 23 + Capture.GetHashCode(); } if (Authorized != default(bool)) { hash = hash * 23 + Authorized.GetHashCode(); } if (Reversed != default(bool)) { hash = hash * 23 + Reversed.GetHashCode(); } if (Paid != default(bool)) { hash = hash * 23 + Paid.GetHashCode(); } if (Transaction != default(string)) { hash = hash * 23 + Transaction.GetHashCode(); } if (SourceOfFund != default(SourceOfFunds)) { hash = hash * 23 + SourceOfFund.GetHashCode(); } if (Card != default(Card)) { hash = hash * 23 + Card.GetHashCode(); } if (Refunded != default(long)) { hash = hash * 23 + Refunded.GetHashCode(); } if (Refunds != default(ScopedList <Refund>)) { hash = hash * 23 + Refunds.GetHashCode(); } if (FailureCode != default(string)) { hash = hash * 23 + FailureCode.GetHashCode(); } if (FailureMessage != default(string)) { hash = hash * 23 + FailureMessage.GetHashCode(); } if (Customer != default(string)) { hash = hash * 23 + Customer.GetHashCode(); } if (IP != default(string)) { hash = hash * 23 + IP.GetHashCode(); } if (Dispute != default(Dispute)) { hash = hash * 23 + Dispute.GetHashCode(); } if (ReturnURI != default(string)) { hash = hash * 23 + ReturnURI.GetHashCode(); } if (AuthorizeURI != default(string)) { hash = hash * 23 + AuthorizeURI.GetHashCode(); } if (Offsite != default(OffsiteTypes)) { hash = hash * 23 + Offsite.GetHashCode(); } if (InstallmentTerms != default(int)) { hash = hash * 23 + InstallmentTerms.GetHashCode(); } return(hash); } }
public string PaidString() { return(Paid.ToString("c")); }
public override string ToString() { return("[ ID = " + RentID + ". RentDate = " + RentDate.ToShortDateString() + ". DateGet = " + DateGet.ToShortDateString() + ". CarID = " + Car.CarID + ". ClientId = " + Client.Id + ". RentPrice = " + RentPrice + ". Paid = " + Paid.ToString() + ". WorkerFIO = " + WorkerFIO + ". ]"); }