Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWteicancelreceipt(ref DataRow row, Wteicancelreceipt entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("stagecdx", entity.stagecdx);
     row.SetField("laststgcdx", entity.laststgcdx);
     row.SetField("botxt", entity.botxt);
     row.SetField("wteicanceluserfield", entity.wteicanceluserfield);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Wteicancelreceipt BuildWteicancelreceiptFromRow(DataRow row)
        {
            Wteicancelreceipt entity = new Wteicancelreceipt();

            entity.wtno                = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf               = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.stagecd             = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.stagecdx            = row.IsNull("stagecdx") ? string.Empty : row.Field <string>("stagecdx");
            entity.laststgcdx          = row.IsNull("laststgcdx") ? string.Empty : row.Field <string>("laststgcdx");
            entity.botxt               = row.IsNull("botxt") ? string.Empty : row.Field <string>("botxt");
            entity.wteicanceluserfield = row.IsNull("wteicanceluserfield") ? string.Empty : row.Field <string>("wteicanceluserfield");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }