Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetprintglobals(ref DataRow row, Oeetprintglobals entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("operinit", entity.operinit);
     row.SetField("g-promomsg", entity.gPromomsg);
     row.SetField("g-whereappfl", entity.gWhereappfl);
     row.SetField("g-invprintfl", entity.gInvprintfl);
     row.SetField("g-ackprintfl", entity.gAckprintfl);
     row.SetField("g-pickprintfl", entity.gPickprintfl);
     row.SetField("g-dlvprintfl", entity.gDlvprintfl);
     row.SetField("g-rcptprintfl", entity.gRcptprintfl);
     row.SetField("g-invfilefl", entity.gInvfilefl);
     row.SetField("g-ackfilefl", entity.gAckfilefl);
     row.SetField("g-pickfilefl", entity.gPickfilefl);
     row.SetField("g-dlvfilefl", entity.gDlvfilefl);
     row.SetField("g-rcptfilefl", entity.gRcptfilefl);
     row.SetField("g-printernminv", entity.gPrinternminv);
     row.SetField("g-printernmack", entity.gPrinternmack);
     row.SetField("g-printernmpck", entity.gPrinternmpck);
     row.SetField("g-printernmdlv", entity.gPrinternmdlv);
     row.SetField("g-printernmrcpt", entity.gPrinternmrcpt);
     row.SetField("g-queueinv", entity.gQueueinv);
     row.SetField("g-queueack", entity.gQueueack);
     row.SetField("g-queuepck", entity.gQueuepck);
     row.SetField("g-queuedlv", entity.gQueuedlv);
     row.SetField("g-queuercpt", entity.gQueuercpt);
     row.SetField("g-whse", entity.gWhse);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Oeetprintglobals BuildOeetprintglobalsFromRow(DataRow row)
        {
            Oeetprintglobals entity = new Oeetprintglobals();

            entity.cono           = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.operinit       = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.gPromomsg      = row.IsNull("g-promomsg") ? string.Empty : row.Field <string>("g-promomsg");
            entity.gWhereappfl    = row.Field <bool>("g-whereappfl");
            entity.gInvprintfl    = row.Field <bool>("g-invprintfl");
            entity.gAckprintfl    = row.Field <bool>("g-ackprintfl");
            entity.gPickprintfl   = row.Field <bool>("g-pickprintfl");
            entity.gDlvprintfl    = row.Field <bool>("g-dlvprintfl");
            entity.gRcptprintfl   = row.Field <bool>("g-rcptprintfl");
            entity.gInvfilefl     = row.Field <bool>("g-invfilefl");
            entity.gAckfilefl     = row.Field <bool>("g-ackfilefl");
            entity.gPickfilefl    = row.Field <bool>("g-pickfilefl");
            entity.gDlvfilefl     = row.Field <bool>("g-dlvfilefl");
            entity.gRcptfilefl    = row.Field <bool>("g-rcptfilefl");
            entity.gPrinternminv  = row.IsNull("g-printernminv") ? string.Empty : row.Field <string>("g-printernminv");
            entity.gPrinternmack  = row.IsNull("g-printernmack") ? string.Empty : row.Field <string>("g-printernmack");
            entity.gPrinternmpck  = row.IsNull("g-printernmpck") ? string.Empty : row.Field <string>("g-printernmpck");
            entity.gPrinternmdlv  = row.IsNull("g-printernmdlv") ? string.Empty : row.Field <string>("g-printernmdlv");
            entity.gPrinternmrcpt = row.IsNull("g-printernmrcpt") ? string.Empty : row.Field <string>("g-printernmrcpt");
            entity.gQueueinv      = row.IsNull("g-queueinv") ? string.Empty : row.Field <string>("g-queueinv");
            entity.gQueueack      = row.IsNull("g-queueack") ? string.Empty : row.Field <string>("g-queueack");
            entity.gQueuepck      = row.IsNull("g-queuepck") ? string.Empty : row.Field <string>("g-queuepck");
            entity.gQueuedlv      = row.IsNull("g-queuedlv") ? string.Empty : row.Field <string>("g-queuedlv");
            entity.gQueuercpt     = row.IsNull("g-queuercpt") ? string.Empty : row.Field <string>("g-queuercpt");
            entity.gWhse          = row.IsNull("g-whse") ? string.Empty : row.Field <string>("g-whse");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }