Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromInvpickssummary(ref DataRow row, Invpickssummary entity)
 {
     row.SetField("tot_inv_qty", entity.totInvQty);
     row.SetField("tot_repl_qty", entity.totReplQty);
     row.SetField("tot_pick_qty", entity.totPickQty);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Invpickssummary BuildInvpickssummaryFromRow(DataRow row)
        {
            Invpickssummary entity = new Invpickssummary();

            entity.totInvQty  = row.IsNull("tot_inv_qty") ? decimal.Zero : row.Field <decimal>("tot_inv_qty");
            entity.totReplQty = row.IsNull("tot_repl_qty") ? decimal.Zero : row.Field <decimal>("tot_repl_qty");
            entity.totPickQty = row.IsNull("tot_pick_qty") ? decimal.Zero : row.Field <decimal>("tot_pick_qty");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }