Exemplo n.º 1
0
 public CustomerExportWholeSalePriceSkuService(customerscheduledtask task)
 {
     _task = task;
     _exportedEisSupplierSKUs = new List <string>();
     _generatedFile           = string.Format("{0}\\{1}\\{2}",
                                              _exportedFileFolder,
                                              TaskType,
                                              Guid.NewGuid() + "_" + _task.ImportFileName);
 }
Exemplo n.º 2
0
 private TaskService _createCustomerTaskServiceInstance(customerscheduledtask task)
 {
     if (task.TaskType == CustomerScheduledTaskType.CUSTOMER_EXPORT_SKU)
     {
         return(new CustomerExportWholeSalePriceSkuService(task as customerscheduledtask));
     }
     else
     {
         throw new ArgumentException("Unknown task type: " + task.TaskType);
     }
 }