public PRCDocument(PRCDocumentType type) { this.Type = type; this.MainDataTable = new DataTable(); this.SecondaryDataTable = new DataTable(); //set the correct server path //set the correct document path //depending on type, set table name }
public PRCDocument(PRCDocumentType type) { this.Type = type; this.MainDataTable = new DataTable(); this.SecondaryDataTable = new DataTable(); //set the correct server path //set the correct document path //depending on type, set table name }
public PRCDocument(Customer customer, PRCDocumentType type, Booking booking = null, BookingExtraSelection bookingExtraSelection = null) { this.Type = type; this.MainDataTable = new DataTable(); this.SecondaryDataTable = new DataTable(); this.CustomerID = customer.CustomerID; if (booking != null) { BookingID = booking.BookingID; } if (bookingExtraSelection != null) { this.BookingExtraSelectionID = bookingExtraSelection.BookingExtraSelectionID; } }
public PRCDocument(Customer customer, PRCDocumentType type, Booking booking = null, BookingExtraSelection bookingExtraSelection = null) { this.Type = type; this.MainDataTable = new DataTable(); this.SecondaryDataTable = new DataTable(); this.CustomerID = customer.CustomerID; if(booking != null) { BookingID = booking.BookingID; } if(bookingExtraSelection != null) { this.BookingExtraSelectionID = bookingExtraSelection.BookingExtraSelectionID; } }