Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PdsraBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("methodno", entity.methodno);
     row.SetField("vendno", entity.vendno);
     row.SetField("altprodgrp", entity.altprodgrp);
     row.SetField("custrebty", entity.custrebty);
     row.SetField("whse", entity.whse);
     row.SetField("startdt", entity.startdt);
     row.SetField("pdsraRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdsraBase(ref DataRow row, PdsraBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("methodno", entity.methodno);
     row.SetField("vendno", entity.vendno);
     row.SetField("altprodgrp", entity.altprodgrp);
     row.SetField("custrebty", entity.custrebty);
     row.SetField("whse", entity.whse);
     row.SetField("startdt", entity.startdt);
     row.SetField("enddt", entity.enddt);
     row.SetField("statustype", entity.statustype);
     row.SetField("altrebrecno", entity.altrebrecno);
     row.SetField("begmultiplier1", entity.begmultiplier1);
     row.SetField("begmultiplier2", entity.begmultiplier2);
     row.SetField("begmultiplier3", entity.begmultiplier3);
     row.SetField("begmultiplier4", entity.begmultiplier4);
     row.SetField("begmultiplier5", entity.begmultiplier5);
     row.SetField("endmultiplier1", entity.endmultiplier1);
     row.SetField("endmultiplier2", entity.endmultiplier2);
     row.SetField("endmultiplier3", entity.endmultiplier3);
     row.SetField("endmultiplier4", entity.endmultiplier4);
     row.SetField("endmultiplier5", entity.endmultiplier5);
     row.SetField("splitratio1", entity.splitratio1);
     row.SetField("splitratio2", entity.splitratio2);
     row.SetField("splitratio3", entity.splitratio3);
     row.SetField("splitratio4", entity.splitratio4);
     row.SetField("splitratio5", entity.splitratio5);
     row.SetField("percentage1", entity.percentage1);
     row.SetField("percentage2", entity.percentage2);
     row.SetField("percentage3", entity.percentage3);
     row.SetField("percentage4", entity.percentage4);
     row.SetField("percentage5", entity.percentage5);
     row.SetField("multiplier1", entity.multiplier1);
     row.SetField("multiplier2", entity.multiplier2);
     row.SetField("multiplier3", entity.multiplier3);
     row.SetField("multiplier4", entity.multiplier4);
     row.SetField("multiplier5", entity.multiplier5);
     row.SetField("calculatortype1", entity.calculatortype1);
     row.SetField("calculatortype2", entity.calculatortype2);
     row.SetField("calculatortype3", entity.calculatortype3);
     row.SetField("calculatortype4", entity.calculatortype4);
     row.SetField("calculatortype5", entity.calculatortype5);
     row.SetField("sellertype1", entity.sellertype1);
     row.SetField("sellertype2", entity.sellertype2);
     row.SetField("sellertype3", entity.sellertype3);
     row.SetField("sellertype4", entity.sellertype4);
     row.SetField("sellertype5", entity.sellertype5);
     row.SetField("distrtype1", entity.distrtype1);
     row.SetField("distrtype2", entity.distrtype2);
     row.SetField("distrtype3", entity.distrtype3);
     row.SetField("distrtype4", entity.distrtype4);
     row.SetField("distrtype5", entity.distrtype5);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("operinit", entity.operinit);
     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("pdsraRowID", entity.rowID.ToByteArray());
 }