Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWteelinesummary(ref DataRow row, Wteelinesummary entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("icsnpofl", entity.icsnpofl);
     row.SetField("seecostfl", entity.seecostfl);
     row.SetField("wtserialentty", entity.wtserialentty);
     row.SetField("wtlotentty", entity.wtlotentty);
     row.SetField("journalno", entity.journalno);
     row.SetField("jrnlpostdt", entity.jrnlpostdt);
     row.SetField("tocono", entity.tocono);
     row.SetField("shipfmwhse", entity.shipfmwhse);
     row.SetField("shiptowhse", entity.shiptowhse);
     row.SetField("transtype", entity.transtype);
     row.SetField("wlwhsechgfl", entity.wlwhsechgfl);
 }
Ejemplo n.º 2
0
        public static Wteelinesummary BuildWteelinesummaryFromRow(DataRow row)
        {
            Wteelinesummary entity = new Wteelinesummary();

            entity.wtno          = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf         = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.icsnpofl      = row.Field <bool>("icsnpofl");
            entity.seecostfl     = row.Field <bool>("seecostfl");
            entity.wtserialentty = row.IsNull("wtserialentty") ? string.Empty : row.Field <string>("wtserialentty");
            entity.wtlotentty    = row.IsNull("wtlotentty") ? string.Empty : row.Field <string>("wtlotentty");
            entity.journalno     = row.IsNull("journalno") ? 0 : row.Field <int>("journalno");
            entity.jrnlpostdt    = row.Field <DateTime?>("jrnlpostdt");
            entity.tocono        = row.IsNull("tocono") ? 0 : row.Field <int>("tocono");
            entity.shipfmwhse    = row.IsNull("shipfmwhse") ? string.Empty : row.Field <string>("shipfmwhse");
            entity.shiptowhse    = row.IsNull("shiptowhse") ? string.Empty : row.Field <string>("shiptowhse");
            entity.transtype     = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.wlwhsechgfl   = row.Field <bool>("wlwhsechgfl");
            return(entity);
        }