예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcwarehouseglsave(ref DataRow row, Icwarehouseglsave entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("icaddonexpglacct", entity.icaddonexpglacct);
     row.SetField("icaddonrevglacct", entity.icaddonrevglacct);
     row.SetField("icinvintransitglacct", entity.icinvintransitglacct);
     row.SetField("icaddonintransitglacct", entity.icaddonintransitglacct);
     row.SetField("icinterdivisionalglacct", entity.icinterdivisionalglacct);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("rowid-icsd", entity.rowidIcsd.ToByteArray());
 }
예제 #2
0
        public static Icwarehouseglsave BuildIcwarehouseglsaveFromRow(DataRow row)
        {
            Icwarehouseglsave entity = new Icwarehouseglsave();

            entity.whse                    = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.icaddonexpglacct        = row.IsNull("icaddonexpglacct") ? string.Empty : row.Field <string>("icaddonexpglacct");
            entity.icaddonrevglacct        = row.IsNull("icaddonrevglacct") ? string.Empty : row.Field <string>("icaddonrevglacct");
            entity.icinvintransitglacct    = row.IsNull("icinvintransitglacct") ? string.Empty : row.Field <string>("icinvintransitglacct");
            entity.icaddonintransitglacct  = row.IsNull("icaddonintransitglacct") ? string.Empty : row.Field <string>("icaddonintransitglacct");
            entity.icinterdivisionalglacct = row.IsNull("icinterdivisionalglacct") ? string.Empty : row.Field <string>("icinterdivisionalglacct");
            entity.user1                   = row.IsNull("user1") ? string.Empty : row.Field <string>("user1");
            entity.user2                   = row.IsNull("user2") ? string.Empty : row.Field <string>("user2");
            entity.user3                   = row.IsNull("user3") ? string.Empty : row.Field <string>("user3");
            entity.user4                   = row.IsNull("user4") ? string.Empty : row.Field <string>("user4");
            entity.user5                   = row.IsNull("user5") ? string.Empty : row.Field <string>("user5");
            entity.user6                   = row.Field <decimal?>("user6");
            entity.user7                   = row.Field <decimal?>("user7");
            entity.user8                   = row.Field <DateTime?>("user8");
            entity.user9                   = row.Field <DateTime?>("user9");
            entity.rowidIcsd               = row.Field <byte[]>("rowid-icsd").ToStringEncoded();
            return(entity);
        }