Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWteireceivelistcriteria(ref DataRow row, Wteireceivelistcriteria entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("tocono", entity.tocono);
     row.SetField("fmwhse", entity.fmwhse);
     row.SetField("towhse", entity.towhse);
     row.SetField("includewtfl", entity.includewtfl);
     row.SetField("includedofl", entity.includedofl);
     row.SetField("fmshipdt", entity.fmshipdt);
     row.SetField("toshipdt", entity.toshipdt);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("transtype", entity.transtype);
     row.SetField("prod", entity.prod);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Wteireceivelistcriteria BuildWteireceivelistcriteriaFromRow(DataRow row)
        {
            Wteireceivelistcriteria entity = new Wteireceivelistcriteria();

            entity.wtno             = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf            = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.tocono           = row.IsNull("tocono") ? 0 : row.Field <int>("tocono");
            entity.fmwhse           = row.IsNull("fmwhse") ? string.Empty : row.Field <string>("fmwhse");
            entity.towhse           = row.IsNull("towhse") ? string.Empty : row.Field <string>("towhse");
            entity.includewtfl      = row.Field <bool>("includewtfl");
            entity.includedofl      = row.Field <bool>("includedofl");
            entity.fmshipdt         = row.Field <DateTime?>("fmshipdt");
            entity.toshipdt         = row.Field <DateTime?>("toshipdt");
            entity.stagecd          = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.transtype        = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.jrnlno           = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }