Ejemplo n.º 1
0
        public int AddLogistic(string name, string description, decimal amount, int quantity, int programId, int eventId)
        {
            // FUNCTION: Add a new logistic
            // PRE-CONDITIONS:
            // POST-CONDITIONS:
            Logistic logistic = new Logistic();
            logistic.name = name;
            logistic.description = description;
            logistic.amount = amount;
            logistic.quantity = quantity;
            logistic.programId = programId;
            server.GetEvent(eventId).AddLogistic(logistic);

            return logistic.logisticId;
        }
Ejemplo n.º 2
0
 //LogisticLists add/delete/edit
 public void AddLogistic(Logistic newLogistic)
 {
     // FUNCTION: Add new logistic to the list
     // PRE-CONDITIONS:
     // POST-CONDITIONS:
     newLogistic.logisticId = this.logisticId++;
     logisticList.Add(newLogistic);
 }