Example #1
0
 private ProductStatus GetProductStatusFrom(DataRow row)
 {
     if (row == null) return null;
     ProductStatus ps = new ProductStatus();
     ps.Remark = Formatter.GetStringValueFrom(row, "Remark");
     ps.StatusID = Formatter.GetStringValueFrom(row, "StatusID");
     ps.StatusName = Formatter.GetStringValueFrom(row, "StatusName");
     return ps;
 }
Example #2
0
 private void AssignNewStatus(ProductStatus item)
 {
     if (item == null) return;
     if (!statusList.ContainsKey(item.StatusID)) return;
     ProductStatus oldItem = statusList[item.StatusID];
     oldItem.StatusName = item.StatusName;
     oldItem.Remark = item.Remark;
 }