Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWteiselectwt(ref DataRow row, Wteiselectwt entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("fromcono", entity.fromcono);
     row.SetField("shipfmwhse", entity.shipfmwhse);
     row.SetField("tocono", entity.tocono);
     row.SetField("shiptowhse", entity.shiptowhse);
     row.SetField("shiptoname", entity.shiptoname);
     row.SetField("transtype", entity.transtype);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("stagecdx", entity.stagecdx);
     row.SetField("laststgcdx", entity.laststgcdx);
     row.SetField("statusinfo", entity.statusinfo);
     row.SetField("botxt", entity.botxt);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Wteiselectwt BuildWteiselectwtFromRow(DataRow row)
        {
            Wteiselectwt entity = new Wteiselectwt();

            entity.wtno       = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf      = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.jrnlno     = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.notesfl    = row.IsNull("notesfl") ? string.Empty : row.Field <string>("notesfl");
            entity.fromcono   = row.IsNull("fromcono") ? 0 : row.Field <int>("fromcono");
            entity.shipfmwhse = row.IsNull("shipfmwhse") ? string.Empty : row.Field <string>("shipfmwhse");
            entity.tocono     = row.IsNull("tocono") ? 0 : row.Field <int>("tocono");
            entity.shiptowhse = row.IsNull("shiptowhse") ? string.Empty : row.Field <string>("shiptowhse");
            entity.shiptoname = row.IsNull("shiptoname") ? string.Empty : row.Field <string>("shiptoname");
            entity.transtype  = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.stagecd    = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.stagecdx   = row.IsNull("stagecdx") ? string.Empty : row.Field <string>("stagecdx");
            entity.laststgcdx = row.IsNull("laststgcdx") ? string.Empty : row.Field <string>("laststgcdx");
            entity.statusinfo = row.IsNull("statusinfo") ? string.Empty : row.Field <string>("statusinfo");
            entity.botxt      = row.IsNull("botxt") ? string.Empty : row.Field <string>("botxt");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }