예제 #1
0
 public StockOrder(
     string id,
     Provider provider,
     Storekeeper backer,
     IEnumerable <Article> articles,
     OrderReport report
     )
 {
     Id       = id;
     Provider = provider;
     Backer   = backer;
     Articles = articles;
     Report   = report;
 }
예제 #2
0
 public void UpdateReport(
     OrderReportStatus?status = null,
     DateTime?deliveredDate   = null,
     int?note             = null,
     string comment       = "",
     string photoFilePath = ""
     )
 {
     Report = new OrderReport(
         status ?? Report.Status,
         Report.OrderDate,
         deliveredDate ?? Report.DeliveryDate,
         note ?? Report.Note,
         comment ?? Report.Comment,
         photoFilePath ?? Report.PhotoFilePath
         );
 }