示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadpoquickviewtiesresults(ref DataRow row, Loadpoquickviewtiesresults entity)
 {
     row.SetField("ordertype", entity.ordertype);
     row.SetField("orderaltno", entity.orderaltno);
     row.SetField("orderaltsuf", entity.orderaltsuf);
     row.SetField("linealtno", entity.linealtno);
     row.SetField("seqaltno", entity.seqaltno);
     row.SetField("transtype", entity.transtype);
     row.SetField("customerwhse", entity.customerwhse);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdttm", entity.transdttm);
     row.SetField("seqno", entity.seqno);
 }
示例#2
0
        public static Loadpoquickviewtiesresults BuildLoadpoquickviewtiesresultsFromRow(DataRow row)
        {
            Loadpoquickviewtiesresults entity = new Loadpoquickviewtiesresults();

            entity.ordertype    = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.orderaltno   = row.IsNull("orderaltno") ? 0 : row.Field <int>("orderaltno");
            entity.orderaltsuf  = row.IsNull("orderaltsuf") ? 0 : row.Field <int>("orderaltsuf");
            entity.linealtno    = row.IsNull("linealtno") ? 0 : row.Field <int>("linealtno");
            entity.seqaltno     = row.IsNull("seqaltno") ? 0 : row.Field <int>("seqaltno");
            entity.transtype    = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.customerwhse = row.IsNull("customerwhse") ? string.Empty : row.Field <string>("customerwhse");
            entity.operinit     = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transdttm    = row.IsNull("transdttm") ? string.Empty : row.Field <string>("transdttm");
            entity.seqno        = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            return(entity);
        }