Exemplo n.º 1
0
 public CompanyOrder(CompanyOrder obj)
 {
     this.crateBy         = obj.crateBy;
     this.createdDate     = obj.createdDate;
     this.customer        = obj.customer;
     this.dateSenndBill   = obj.dateSenndBill;
     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;
 }
Exemplo n.º 2
0
        /*
         * Company orders
         */
        public CreateInvoice(List <T> input, Interface.IcompanyCustomer customer, Interface.IbankAccounts bank,
                             Interface.Idepartment dep, int daysToPay, string fakturaNo)
        {
            this.orders = input;

            if (!(input is List <Interface.IcompanyOrder>))
            {
                throw new ArgumentException("Not of right type");
            }

            this.companyCustomer = customer;
            this.bank            = bank;
            this.daysToPay       = daysToPay;
            this.fakturaNo       = "C-" + fakturaNo;
            this.dep             = dep;
        }
Exemplo n.º 3
0
 public CompanyOrder(Interface.Iworker crateBy, DateTime createdDate, Interface.IcompanyCustomer customer,
                     DateTime dateSenndBill, 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.dateSenndBill   = dateSenndBill;
     this.daysToPaid      = daysToPaid;
     this.descriptionTask = descriptionTask;
     this.hoursUse        = hoursUse;
     this.invoiceNo       = invoiceNo;
     this.paid            = paid;
     this.paidHour        = paidHour;
     this.paidToAcc       = paidToAcc;
     this.TaskDate        = taskDate;
 }