public void PrintData() { if (sql != null) { TotalFee = totalFeeLbl.Text; sql.HastaİslemleriPrintData(); DataTable dt = new DataTable(); dt.Columns.Add("Name", typeof(string)); dt.Columns.Add("Surname", typeof(string)); dt.Columns.Add("Polyclinic", typeof(string)); dt.Columns.Add("QueueNumber", typeof(string)); dt.Columns.Add("Hour", typeof(string)); dt.Columns.Add("ProcessTodo", typeof(string)); dt.Columns.Add("DrCode", typeof(string)); dt.Columns.Add("Unit", typeof(string)); dt.Columns.Add("UnitFee", typeof(string)); dt.Columns.Add("TotalFee", typeof(string)); dt.Columns.Add("DoctorName", typeof(string)); dt.Columns.Add("DispatchDate", typeof(string)); dt.Rows.Add(PatientName, PatientSurname, Polyclinic, QueueNumber, Hour, ProcessToDo, DoctorCode, Unit, UnitFee, TotalFee, DoctorName, DispatchDate.ToShortDateString()); PrintReport pReport = new PrintReport(); pReport.Database.Tables["PrintTable"].SetDataSource(dt); CrystalReport creport = new CrystalReport(); creport.crystalReportViewer1.ReportSource = pReport; creport.Show(); } }
public bool Equals(Cargo other) { return(other != null && Code.Equals(other.Code) && Volume.Equals(other.Volume) && Count.Equals(other.Count) && DispatchDate.Equals(other.DispatchDate) && CargoType.Equals(other.CargoType) && Sender.Equals(other.Sender) && Recipient.Equals(other.Recipient) && ShipmentStation.Equals(other.ShipmentStation) && DestinationStation.Equals(other.DestinationStation)); }
public override int GetHashCode() { var hashCode = 352033288; hashCode = hashCode * -1521134295 + Code.GetHashCode(); hashCode = hashCode * -1521134295 + Volume.GetHashCode(); hashCode = hashCode * -1521134295 + Count.GetHashCode(); hashCode = hashCode * -1521134295 + DispatchDate.GetHashCode(); hashCode = hashCode * -1521134295 + CargoType.GetHashCode(); hashCode = hashCode * -1521134295 + Sender.GetHashCode(); hashCode = hashCode * -1521134295 + Recipient.GetHashCode(); hashCode = hashCode * -1521134295 + ShipmentStation.GetHashCode(); hashCode = hashCode * -1521134295 + DestinationStation.GetHashCode(); return(hashCode); }
public override string ToString() { return(new StringBuilder() .Append(DispatchDate.ToString("d")).Append('\t') .Append(Code).Append('\t') .Append(CargoType).Append('\t') .Append(ShipmentCountry).Append('\t') .Append(ShipmentState).Append('\t') .Append(ShipmentRailRoad).Append('\t') .Append(ShipmentStation).Append('\t') .Append(Sender).Append('\t') .Append(DestinationCountry).Append('\t') .Append(DestinationState).Append('\t') .Append(DestinationRailRoad).Append('\t') .Append(DestinationStation).Append('\t') .Append(Recipient).Append('\t') .Append(Volume).Append('\t') .Append(Count).ToString()); }