示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeordersuspendglobals(ref DataRow row, Oeordersuspendglobals entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("operinit", entity.operinit);
     row.SetField("g-pickprintfl", entity.gPickprintfl);
     row.SetField("g-pickfilefl", entity.gPickfilefl);
     row.SetField("g-printernmpck", entity.gPrinternmpck);
     row.SetField("g-queuepck", entity.gQueuepck);
     row.SetField("g-whse", entity.gWhse);
     row.SetField("g-whereappfl", entity.gWhereappfl);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Oeordersuspendglobals BuildOeordersuspendglobalsFromRow(DataRow row)
        {
            Oeordersuspendglobals entity = new Oeordersuspendglobals();

            entity.cono          = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.operinit      = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.gPickprintfl  = row.Field <bool>("g-pickprintfl");
            entity.gPickfilefl   = row.Field <bool>("g-pickfilefl");
            entity.gPrinternmpck = row.IsNull("g-printernmpck") ? string.Empty : row.Field <string>("g-printernmpck");
            entity.gQueuepck     = row.IsNull("g-queuepck") ? string.Empty : row.Field <string>("g-queuepck");
            entity.gWhse         = row.IsNull("g-whse") ? string.Empty : row.Field <string>("g-whse");
            entity.gWhereappfl   = row.Field <bool>("g-whereappfl");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }