Ejemplo n.º 1
0
        public static Wlstatus BuildWlstatusFromRow(DataRow row)
        {
            Wlstatus entity = new Wlstatus();

            entity.ordertype                 = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.orderno                   = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf                  = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.wlwhsefl                  = row.Field <bool>("wlwhsefl");
            entity.wlesbfl                   = row.Field <bool>("wlesbfl");
            entity.bannerfl                  = row.Field <bool>("bannerfl");
            entity.wlwhsechgfl               = row.Field <bool>("wlwhsechgfl");
            entity.editorderfl               = row.Field <bool>("editorderfl");
            entity.wlunpickoefl              = row.Field <bool>("wlunpickoefl");
            entity.cancancelorderfl          = row.Field <bool>("cancancelorderfl");
            entity.custorddata               = row.IsNull("custorddata") ? string.Empty : row.Field <string>("custorddata");
            entity.rcvorddata                = row.IsNull("rcvorddata") ? string.Empty : row.Field <string>("rcvorddata");
            entity.displaymsg1               = row.IsNull("displaymsg1") ? string.Empty : row.Field <string>("displaymsg1");
            entity.displaymsg2               = row.IsNull("displaymsg2") ? string.Empty : row.Field <string>("displaymsg2");
            entity.displaymsg3               = row.IsNull("displaymsg3") ? string.Empty : row.Field <string>("displaymsg3");
            entity.whse                      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.transtype                 = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.twlstagecd                = row.IsNull("twlstagecd") ? 0 : row.Field <int>("twlstagecd");
            entity.pickcnt                   = row.IsNull("pickcnt") ? 0 : row.Field <int>("pickcnt");
            entity.rtfl                      = row.Field <bool>("rtfl");
            entity.custfl                    = row.Field <bool>("custfl");
            entity.twlmsg                    = row.IsNull("twlmsg") ? string.Empty : row.Field <string>("twlmsg");
            entity.wlunpickoeerrmsg          = row.IsNull("wlunpickoeerrmsg") ? string.Empty : row.Field <string>("wlunpickoeerrmsg");
            entity.wLStatusScreenTitleDetail = row.IsNull("WLStatusScreenTitleDetail") ? string.Empty : row.Field <string>("WLStatusScreenTitleDetail");
            entity.fiWLWhseChgFLLabel        = row.IsNull("fiWLWhseChgFLLabel") ? string.Empty : row.Field <string>("fiWLWhseChgFLLabel");
            entity.fiWLUnPickOeFlLabel       = row.IsNull("fiWLUnPickOeFlLabel") ? string.Empty : row.Field <string>("fiWLUnPickOeFlLabel");
            entity.fiWLWhseChgFl             = row.Field <bool>("fiWLWhseChgFl");
            entity.fiWLUnPickOeFl            = row.Field <bool>("fiWLUnPickOeFl");
            entity.fiWLWhseChgFlSensitive    = row.Field <bool>("fiWLWhseChgFlSensitive");
            entity.fiWLWhseChgFlHidden       = row.Field <bool>("fiWLWhseChgFlHidden");
            entity.fiWLUnPickOEFlSensitive   = row.Field <bool>("fiWLUnPickOEFlSensitive");
            entity.fiWLUnPickOEFlHidden      = row.Field <bool>("fiWLUnPickOEFlHidden");
            entity.origWLWhseChgFl           = row.Field <bool>("OrigWLWhseChgFl");
            entity.userfield                 = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWlstatus(ref DataRow row, Wlstatus entity)
 {
     row.SetField("ordertype", entity.ordertype);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("wlwhsefl", entity.wlwhsefl);
     row.SetField("wlesbfl", entity.wlesbfl);
     row.SetField("bannerfl", entity.bannerfl);
     row.SetField("wlwhsechgfl", entity.wlwhsechgfl);
     row.SetField("editorderfl", entity.editorderfl);
     row.SetField("wlunpickoefl", entity.wlunpickoefl);
     row.SetField("cancancelorderfl", entity.cancancelorderfl);
     row.SetField("custorddata", entity.custorddata);
     row.SetField("rcvorddata", entity.rcvorddata);
     row.SetField("displaymsg1", entity.displaymsg1);
     row.SetField("displaymsg2", entity.displaymsg2);
     row.SetField("displaymsg3", entity.displaymsg3);
     row.SetField("whse", entity.whse);
     row.SetField("transtype", entity.transtype);
     row.SetField("twlstagecd", entity.twlstagecd);
     row.SetField("pickcnt", entity.pickcnt);
     row.SetField("rtfl", entity.rtfl);
     row.SetField("custfl", entity.custfl);
     row.SetField("twlmsg", entity.twlmsg);
     row.SetField("wlunpickoeerrmsg", entity.wlunpickoeerrmsg);
     row.SetField("WLStatusScreenTitleDetail", entity.wLStatusScreenTitleDetail);
     row.SetField("fiWLWhseChgFLLabel", entity.fiWLWhseChgFLLabel);
     row.SetField("fiWLUnPickOeFlLabel", entity.fiWLUnPickOeFlLabel);
     row.SetField("fiWLWhseChgFl", entity.fiWLWhseChgFl);
     row.SetField("fiWLUnPickOeFl", entity.fiWLUnPickOeFl);
     row.SetField("fiWLWhseChgFlSensitive", entity.fiWLWhseChgFlSensitive);
     row.SetField("fiWLWhseChgFlHidden", entity.fiWLWhseChgFlHidden);
     row.SetField("fiWLUnPickOEFlSensitive", entity.fiWLUnPickOEFlSensitive);
     row.SetField("fiWLUnPickOEFlHidden", entity.fiWLUnPickOEFlHidden);
     row.SetField("OrigWLWhseChgFl", entity.origWLWhseChgFl);
     row.SetField("userfield", entity.userfield);
 }