Ejemplo n.º 1
0
 public ReprocessJob(long stationID, int groupID, long ownerID)
 {
     _id = 0;
     _date = DateTime.UtcNow;
     _stationID = stationID;
     _reportGroupID = groupID;
     _ownerID = ownerID;
     _items = new ReprocessItemList();
     _gotItems = true;
     _results = new ReprocessResultList();
     _gotResults = true;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get the items used in a specific reprocessing job.
        /// </summary>
        /// <param name="jobID"></param>
        /// <returns></returns>
        public static ReprocessItemList GetJobItems(int jobID)
        {
            ReprocessItemList retVal = new ReprocessItemList();

            EMMADataSet.ReprocessItemDataTable table = new EMMADataSet.ReprocessItemDataTable();
            lock (itemTableAdapter)
            {
                itemTableAdapter.FillByJob(table, jobID);
            }

            foreach (EMMADataSet.ReprocessItemRow row in table)
            {
                retVal.Add(new ReprocessItem(row));
            }

            return retVal;
        }
Ejemplo n.º 3
0
 public void ClearSourceItems()
 {
     _items = new ReprocessItemList();
     _gotItemsBuyPrice = false;
 }