Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardlstprcapinvlst(ref DataRow row, Reptwizardlstprcapinvlst entity)
 {
     row.SetField("includefl", entity.includefl);
     row.SetField("apinvno", entity.apinvno);
     row.SetField("seqno", entity.seqno);
     row.SetField("seqno2", entity.seqno2);
     row.SetField("amount", entity.amount);
     row.SetField("invdt", entity.invdt);
     row.SetField("duedt", entity.duedt);
     row.SetField("disputefl", entity.disputefl);
     row.SetField("refer", entity.refer);
     row.SetField("statusdisplay", entity.statusdisplay);
     row.SetField("transtype", entity.transtype);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Reptwizardlstprcapinvlst BuildReptwizardlstprcapinvlstFromRow(DataRow row)
        {
            Reptwizardlstprcapinvlst entity = new Reptwizardlstprcapinvlst();

            entity.includefl     = row.Field <bool>("includefl");
            entity.apinvno       = row.IsNull("apinvno") ? string.Empty : row.Field <string>("apinvno");
            entity.seqno         = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.seqno2        = row.IsNull("seqno2") ? 0 : row.Field <int>("seqno2");
            entity.amount        = row.IsNull("amount") ? decimal.Zero : row.Field <decimal>("amount");
            entity.invdt         = row.Field <DateTime?>("invdt");
            entity.duedt         = row.Field <DateTime?>("duedt");
            entity.disputefl     = row.Field <bool>("disputefl");
            entity.refer         = row.IsNull("refer") ? string.Empty : row.Field <string>("refer");
            entity.statusdisplay = row.IsNull("statusdisplay") ? string.Empty : row.Field <string>("statusdisplay");
            entity.transtype     = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }