Example #1
0
        public static Vasectioncompletecriteria BuildVasectioncompletecriteriaFromRow(DataRow row)
        {
            Vasectioncompletecriteria entity = new Vasectioncompletecriteria();

            entity.vano               = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf              = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno              = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.wiplist            = row.IsNull("wiplist") ? string.Empty : row.Field <string>("wiplist");
            entity.functionnm         = row.IsNull("functionnm") ? string.Empty : row.Field <string>("functionnm");
            entity.period             = row.IsNull("period") ? 0 : row.Field <int>("period");
            entity.screenperiod       = row.IsNull("screenperiod") ? string.Empty : row.Field <string>("screenperiod");
            entity.postdt             = row.Field <DateTime?>("postdt");
            entity.screenpostdt       = row.IsNull("screenpostdt") ? string.Empty : row.Field <string>("screenpostdt");
            entity.stkadjfl           = row.Field <bool>("stkadjfl");
            entity.stkadjenablefl     = row.Field <bool>("stkadjenablefl");
            entity.addonfl            = row.Field <bool>("addonfl");
            entity.addondisplayfl     = row.Field <bool>("addondisplayfl");
            entity.sctntypeoverride   = row.IsNull("sctntypeoverride") ? string.Empty : row.Field <string>("sctntypeoverride");
            entity.autoshipprevfl     = row.Field <bool>("autoshipprevfl");
            entity.wlwhsechgfl        = row.Field <bool>("wlwhsechgfl");
            entity.screentitle        = row.IsNull("screentitle") ? string.Empty : row.Field <string>("screentitle");
            entity.reviewlaborcostsfl = row.Field <bool>("reviewlaborcostsfl");
            entity.userfield          = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasectioncompletecriteria(ref DataRow row, Vasectioncompletecriteria entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("wiplist", entity.wiplist);
     row.SetField("functionnm", entity.functionnm);
     row.SetField("period", entity.period);
     row.SetField("screenperiod", entity.screenperiod);
     row.SetField("postdt", entity.postdt);
     row.SetField("screenpostdt", entity.screenpostdt);
     row.SetField("stkadjfl", entity.stkadjfl);
     row.SetField("stkadjenablefl", entity.stkadjenablefl);
     row.SetField("addonfl", entity.addonfl);
     row.SetField("addondisplayfl", entity.addondisplayfl);
     row.SetField("sctntypeoverride", entity.sctntypeoverride);
     row.SetField("autoshipprevfl", entity.autoshipprevfl);
     row.SetField("wlwhsechgfl", entity.wlwhsechgfl);
     row.SetField("screentitle", entity.screentitle);
     row.SetField("reviewlaborcostsfl", entity.reviewlaborcostsfl);
     row.SetField("userfield", entity.userfield);
 }