Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPackinglistcreate(ref DataRow row, Packinglistcreate entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("user_id", entity.userId);
     row.SetField("rt_num", entity.rtNum);
     row.SetField("cargo_control", entity.cargoControl);
     row.SetField("rtmstRowid", entity.rtmstRowid.ToByteArray());
     row.SetField("packinglistcreateuserfield", entity.packinglistcreateuserfield);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Packinglistcreate BuildPackinglistcreateFromRow(DataRow row)
        {
            Packinglistcreate entity = new Packinglistcreate();

            entity.coNum        = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum        = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.userId       = row.IsNull("user_id") ? string.Empty : row.Field <string>("user_id");
            entity.rtNum        = row.IsNull("rt_num") ? string.Empty : row.Field <string>("rt_num");
            entity.cargoControl = row.IsNull("cargo_control") ? string.Empty : row.Field <string>("cargo_control");
            entity.rtmstRowid   = row.Field <byte[]>("rtmstRowid").ToStringEncoded();
            entity.packinglistcreateuserfield = row.IsNull("packinglistcreateuserfield") ? string.Empty : row.Field <string>("packinglistcreateuserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }