Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeioloadlinetabscriteria(ref DataRow row, Oeioloadlinetabscriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("actllineno", entity.actllineno);
     row.SetField("whse", entity.whse);
     row.SetField("lineitemtype", entity.lineitemtype);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("returnfl", entity.returnfl);
     row.SetField("specnstype", entity.specnstype);
     row.SetField("kitfl", entity.kitfl);
     row.SetField("ordertype", entity.ordertype);
     row.SetField("tallyfl", entity.tallyfl);
     row.SetField("extcomfl", entity.extcomfl);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Oeioloadlinetabscriteria BuildOeioloadlinetabscriteriaFromRow(DataRow row)
        {
            Oeioloadlinetabscriteria entity = new Oeioloadlinetabscriteria();

            entity.orderno      = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf     = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.actllineno   = row.IsNull("actllineno") ? 0 : row.Field <int>("actllineno");
            entity.whse         = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.lineitemtype = row.IsNull("lineitemtype") ? string.Empty : row.Field <string>("lineitemtype");
            entity.shipprod     = row.IsNull("shipprod") ? string.Empty : row.Field <string>("shipprod");
            entity.returnfl     = row.Field <bool>("returnfl");
            entity.specnstype   = row.IsNull("specnstype") ? string.Empty : row.Field <string>("specnstype");
            entity.kitfl        = row.Field <bool>("kitfl");
            entity.ordertype    = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.tallyfl      = row.Field <bool>("tallyfl");
            entity.extcomfl     = row.Field <bool>("extcomfl");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }