예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeehaBase(ref DataRow row, OeehaBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("mediacd", entity.mediacd);
     row.SetField("cardno", entity.cardno);
     row.SetField("transcd", entity.transcd);
     row.SetField("seqno", entity.seqno);
     row.SetField("processcd", entity.processcd);
     row.SetField("commcd", entity.commcd);
     row.SetField("processno", entity.processno);
     row.SetField("amount", entity.amount);
     row.SetField("authamt", entity.authamt);
     row.SetField("saleamt", entity.saleamt);
     row.SetField("preauthno", entity.preauthno);
     row.SetField("category", entity.category);
     row.SetField("response", entity.response);
     row.SetField("mediaauth", entity.mediaauth);
     row.SetField("createdt", entity.createdt);
     row.SetField("createtm", entity.createtm);
     row.SetField("submitdt", entity.submitdt);
     row.SetField("submittm", entity.submittm);
     row.SetField("respdt", entity.respdt);
     row.SetField("resptm", entity.resptm);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("bankno", entity.bankno);
     row.SetField("statustype", entity.statustype);
     row.SetField("currproc", entity.currproc);
     row.SetField("avadd", entity.avadd);
     row.SetField("avzip", entity.avzip);
     row.SetField("destzip", entity.destzip);
     row.SetField("taxamt", entity.taxamt);
     row.SetField("cardid", entity.cardid);
     row.SetField("cmc", entity.cmc);
     row.SetField("cmm", entity.cmm);
     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("charpreauth", entity.charpreauth);
     row.SetField("charmediaauth", entity.charmediaauth);
     row.SetField("origamt", entity.origamt);
     row.SetField("bosuf", entity.bosuf);
     row.SetField("origproccd", entity.origproccd);
     row.SetField("exp", entity.exp);
     row.SetField("transproc", entity.transproc);
     row.SetField("ccholdbofl", entity.ccholdbofl);
     row.SetField("merchantid", entity.merchantid);
     row.SetField("oeehaRowID", entity.rowID.ToByteArray());
 }
예제 #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, OeehaBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("mediacd", entity.mediacd);
     row.SetField("cardno", entity.cardno);
     row.SetField("transcd", entity.transcd);
     row.SetField("seqno", entity.seqno);
     row.SetField("oeehaRowID", entity.rowID.ToByteArray());
 }