예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRssjjobgroup(ref DataRow row, Rssjjobgroup entity)
 {
     row.SetField("groupnm", entity.groupnm);
     row.SetField("jobdesc", entity.jobdesc);
     row.SetField("inusefl", entity.inusefl);
     row.SetField("interval", entity.interval);
     row.SetField("starttype", entity.starttype);
     row.SetField("startdt", entity.startdt);
     row.SetField("starttm", entity.starttm);
     row.SetField("starthour", entity.starthour);
     row.SetField("startminute", entity.startminute);
     row.SetField("startampm", entity.startampm);
     row.SetField("starttmdisp", entity.starttmdisp);
     row.SetField("queuenm", entity.queuenm);
     row.SetField("lastrundt", entity.lastrundt);
     row.SetField("lasthour", entity.lasthour);
     row.SetField("lastminute", entity.lastminute);
     row.SetField("lastampm", entity.lastampm);
     row.SetField("lastruntm", entity.lastruntm);
     row.SetField("ilastruntm", entity.ilastruntm);
     row.SetField("jobstarttm", entity.jobstarttm);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Rssjjobgroup BuildRssjjobgroupFromRow(DataRow row)
        {
            Rssjjobgroup entity = new Rssjjobgroup();

            entity.groupnm     = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm");
            entity.jobdesc     = row.IsNull("jobdesc") ? string.Empty : row.Field <string>("jobdesc");
            entity.inusefl     = row.Field <bool>("inusefl");
            entity.interval    = row.IsNull("interval") ? 0 : row.Field <int>("interval");
            entity.starttype   = row.IsNull("starttype") ? string.Empty : row.Field <string>("starttype");
            entity.startdt     = row.Field <DateTime?>("startdt");
            entity.starttm     = row.IsNull("starttm") ? 0 : row.Field <int>("starttm");
            entity.starthour   = row.IsNull("starthour") ? 0 : row.Field <int>("starthour");
            entity.startminute = row.IsNull("startminute") ? 0 : row.Field <int>("startminute");
            entity.startampm   = row.IsNull("startampm") ? string.Empty : row.Field <string>("startampm");
            entity.starttmdisp = row.IsNull("starttmdisp") ? string.Empty : row.Field <string>("starttmdisp");
            entity.queuenm     = row.IsNull("queuenm") ? string.Empty : row.Field <string>("queuenm");
            entity.lastrundt   = row.Field <DateTime?>("lastrundt");
            entity.lasthour    = row.IsNull("lasthour") ? 0 : row.Field <int>("lasthour");
            entity.lastminute  = row.IsNull("lastminute") ? 0 : row.Field <int>("lastminute");
            entity.lastampm    = row.IsNull("lastampm") ? string.Empty : row.Field <string>("lastampm");
            entity.lastruntm   = row.IsNull("lastruntm") ? string.Empty : row.Field <string>("lastruntm");
            entity.ilastruntm  = row.IsNull("ilastruntm") ? 0 : row.Field <int>("ilastruntm");
            entity.jobstarttm  = row.IsNull("jobstarttm") ? 0 : row.Field <int>("jobstarttm");
            entity.operinit    = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transdt     = row.Field <DateTime?>("transdt");
            entity.transtm     = row.IsNull("transtm") ? string.Empty : row.Field <string>("transtm");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }