public PrivetOrder(PrivetOrder obj) { this.crateBy = obj.crateBy; this.createdDate = obj.createdDate; this.customer = obj.customer; this.dateSendBill = obj.dateSendBill; this.daysToPaid = obj.daysToPaid; this.descriptionTask = obj.descriptionTask; this.hoursUse = obj.hoursUse; this.invoiceNo = obj.invoiceNo; this.paid = obj.paid; this.paidHour = obj.paidHour; this.paidToAcc = obj.paidToAcc; this.taskDate = obj.taskDate; }
/// <summary> /// /// </summary> /// <param name="input">Input count cannot be above 17. If it is so it will be ignored.</param> /* * Private Orders */ public CreateInvoice(List <T> input, Interface.IprivetCustomer customer, Interface.IbankAccounts bank, Interface.Idepartment dep, int daysToPay, string fakturaNo) { this.orders = input; if (!(input is List <Interface.IprivetOrder>)) { throw new ArgumentException("Not of right type"); } this.privateCustomer = customer; this.bank = bank; this.daysToPay = daysToPay; this.fakturaNo = "P-" + fakturaNo; this.dep = dep; }
public PrivetOrder(Interface.Iworker crateBy, DateTime createdDate, Interface.IprivetCustomer customer, DateTime dateSendBill, int daysToPaid, string descriptionTask, double hoursUse, int invoiceNo, bool paid, double paidHour, int paidToAcc, DateTime taskDate) { this.crateBy = crateBy; this.createdDate = createdDate; this.customer = customer; this.dateSendBill = dateSendBill; this.daysToPaid = daysToPaid; this.descriptionTask = descriptionTask; this.hoursUse = hoursUse; this.invoiceNo = invoiceNo; this.paid = paid; this.paidHour = paidHour; this.paidToAcc = paidToAcc; this.taskDate = taskDate; }