Exemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PoeralBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("reportno", entity.reportno);
     row.SetField("lineno", entity.lineno);
     row.SetField("seqno", entity.seqno);
     row.SetField("poeralRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoeralBase(ref DataRow row, PoeralBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("reportno", entity.reportno);
     row.SetField("lineno", entity.lineno);
     row.SetField("seqno", entity.seqno);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("whse", entity.whse);
     row.SetField("vendfl", entity.vendfl);
     row.SetField("accepttype", entity.accepttype);
     row.SetField("qtyord", entity.qtyord);
     row.SetField("unit", entity.unit);
     row.SetField("price", entity.price);
     row.SetField("ordertype", entity.ordertype);
     row.SetField("orderaltno", entity.orderaltno);
     row.SetField("orderaltsuf", entity.orderaltsuf);
     row.SetField("linealtno", entity.linealtno);
     row.SetField("duedt", entity.duedt);
     row.SetField("cubes", entity.cubes);
     row.SetField("weight", entity.weight);
     row.SetField("netamt", entity.netamt);
     row.SetField("proddesc", entity.proddesc);
     row.SetField("wtcono", entity.wtcono);
     row.SetField("pdsvfl", entity.pdsvfl);
     row.SetField("nonstockty", entity.nonstockty);
     row.SetField("seasontype", entity.seasontype);
     row.SetField("famgrptype", entity.famgrptype);
     row.SetField("stkqtyord", entity.stkqtyord);
     row.SetField("priceoverfl", entity.priceoverfl);
     row.SetField("qtysurplus", entity.qtysurplus);
     row.SetField("prodcat", entity.prodcat);
     row.SetField("unitconv", entity.unitconv);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("addlcarrycost", entity.addlcarrycost);
     row.SetField("orignetamt", entity.orignetamt);
     row.SetField("rpterr", entity.rpterr);
     row.SetField("proddesc2", entity.proddesc2);
     row.SetField("seqaltno", entity.seqaltno);
     row.SetField("reqshipdt", entity.reqshipdt);
     row.SetField("commentfl", entity.commentfl);
     row.SetField("rushfl", entity.rushfl);
     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("lockfl", entity.lockfl);
     row.SetField("npnafl", entity.npnafl);
     row.SetField("ignoreltfl", entity.ignoreltfl);
     row.SetField("icspecrecno", entity.icspecrecno);
     row.SetField("transproc", entity.transproc);
     row.SetField("reportpri", entity.reportpri);
     row.SetField("belowopfl", entity.belowopfl);
     row.SetField("criticalfl", entity.criticalfl);
     row.SetField("blno", entity.blno);
     row.SetField("blsuf", entity.blsuf);
     row.SetField("esrqstid", entity.esrqstid);
     row.SetField("user10", entity.user10);
     row.SetField("user11", entity.user11);
     row.SetField("user12", entity.user12);
     row.SetField("user13", entity.user13);
     row.SetField("user14", entity.user14);
     row.SetField("user15", entity.user15);
     row.SetField("user16", entity.user16);
     row.SetField("user17", entity.user17);
     row.SetField("user18", entity.user18);
     row.SetField("user19", entity.user19);
     row.SetField("user20", entity.user20);
     row.SetField("user21", entity.user21);
     row.SetField("user22", entity.user22);
     row.SetField("user23", entity.user23);
     row.SetField("user24", entity.user24);
     row.SetField("companyrank", entity.companyrank);
     row.SetField("whserank", entity.whserank);
     row.SetField("contractno", entity.contractno);
     row.SetField("pdsvcrecno", entity.pdsvcrecno);
     row.SetField("superfl", entity.superfl);
     row.SetField("countryoforigin", entity.countryoforigin);
     row.SetField("tariffcd", entity.tariffcd);
     row.SetField("poeralRowID", entity.rowID.ToByteArray());
 }