Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoeifinalupdate(ref DataRow row, Poeifinalupdate entity)
 {
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("receipttype", entity.receipttype);
     row.SetField("receiptprinter", entity.receiptprinter);
     row.SetField("picktype", entity.picktype);
     row.SetField("pickprinter", entity.pickprinter);
     row.SetField("printorder", entity.printorder);
     row.SetField("adjbofl", entity.adjbofl);
     row.SetField("trackno", entity.trackno);
     row.SetField("crctexistsfl", entity.crctexistsfl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Poeifinalupdate BuildPoeifinalupdateFromRow(DataRow row)
        {
            Poeifinalupdate entity = new Poeifinalupdate();

            entity.jrnlno         = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.receipttype    = row.IsNull("receipttype") ? string.Empty : row.Field <string>("receipttype");
            entity.receiptprinter = row.IsNull("receiptprinter") ? string.Empty : row.Field <string>("receiptprinter");
            entity.picktype       = row.IsNull("picktype") ? string.Empty : row.Field <string>("picktype");
            entity.pickprinter    = row.IsNull("pickprinter") ? string.Empty : row.Field <string>("pickprinter");
            entity.printorder     = row.IsNull("printorder") ? string.Empty : row.Field <string>("printorder");
            entity.adjbofl        = row.Field <bool>("adjbofl");
            entity.trackno        = row.IsNull("trackno") ? 0 : row.Field <int>("trackno");
            entity.crctexistsfl   = row.Field <bool>("crctexistsfl");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }