Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PdsvtrBase entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("cono", entity.cono);
     row.SetField("typecd", entity.typecd);
     row.SetField("pdsvtrRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdsvtrBase(ref DataRow row, PdsvtrBase entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("whse", entity.whse);
     row.SetField("lineno", entity.lineno);
     row.SetField("cono", entity.cono);
     row.SetField("vendpdrecno", entity.vendpdrecno);
     row.SetField("typecd", entity.typecd);
     row.SetField("prcmult1", entity.prcmult1);
     row.SetField("prcmult2", entity.prcmult2);
     row.SetField("prcmult3", entity.prcmult3);
     row.SetField("prcmult4", entity.prcmult4);
     row.SetField("prcmult5", entity.prcmult5);
     row.SetField("prcmult6", entity.prcmult6);
     row.SetField("prcmult7", entity.prcmult7);
     row.SetField("prcmult8", entity.prcmult8);
     row.SetField("prcmult9", entity.prcmult9);
     row.SetField("prcdisc1", entity.prcdisc1);
     row.SetField("prcdisc7", entity.prcdisc7);
     row.SetField("prcdisc8", entity.prcdisc8);
     row.SetField("prcdisc9", entity.prcdisc9);
     row.SetField("prcdisc21", entity.prcdisc21);
     row.SetField("prcdisc22", entity.prcdisc22);
     row.SetField("prcdisc23", entity.prcdisc23);
     row.SetField("prcdisc24", entity.prcdisc24);
     row.SetField("prcdisc25", entity.prcdisc25);
     row.SetField("prcdisc26", entity.prcdisc26);
     row.SetField("prcdisc27", entity.prcdisc27);
     row.SetField("prcdisc28", entity.prcdisc28);
     row.SetField("prcdisc29", entity.prcdisc29);
     row.SetField("prcdisc31", entity.prcdisc31);
     row.SetField("prcdisc32", entity.prcdisc32);
     row.SetField("prcdisc33", entity.prcdisc33);
     row.SetField("prcdisc34", entity.prcdisc34);
     row.SetField("prcdisc35", entity.prcdisc35);
     row.SetField("prcdisc36", entity.prcdisc36);
     row.SetField("prcdisc37", entity.prcdisc37);
     row.SetField("prcdisc38", entity.prcdisc38);
     row.SetField("prcdisc39", entity.prcdisc39);
     row.SetField("prcdisc41", entity.prcdisc41);
     row.SetField("prcdisc42", entity.prcdisc42);
     row.SetField("prcdisc43", entity.prcdisc43);
     row.SetField("prcdisc44", entity.prcdisc44);
     row.SetField("prcdisc45", entity.prcdisc45);
     row.SetField("prcdisc46", entity.prcdisc46);
     row.SetField("prcdisc47", entity.prcdisc47);
     row.SetField("prcdisc48", entity.prcdisc48);
     row.SetField("prcdisc49", entity.prcdisc49);
     row.SetField("prcdisc51", entity.prcdisc51);
     row.SetField("prcdisc52", entity.prcdisc52);
     row.SetField("prcdisc53", entity.prcdisc53);
     row.SetField("prcdisc54", entity.prcdisc54);
     row.SetField("prcdisc55", entity.prcdisc55);
     row.SetField("prcdisc56", entity.prcdisc56);
     row.SetField("prcdisc57", entity.prcdisc57);
     row.SetField("prcdisc58", entity.prcdisc58);
     row.SetField("prcdisc59", entity.prcdisc59);
     row.SetField("prcdisc61", entity.prcdisc61);
     row.SetField("prcdisc62", entity.prcdisc62);
     row.SetField("prcdisc63", entity.prcdisc63);
     row.SetField("prcdisc64", entity.prcdisc64);
     row.SetField("prcdisc65", entity.prcdisc65);
     row.SetField("prcdisc66", entity.prcdisc66);
     row.SetField("prcdisc67", entity.prcdisc67);
     row.SetField("prcdisc68", entity.prcdisc68);
     row.SetField("prcdisc69", entity.prcdisc69);
     row.SetField("chainedfl", entity.chainedfl);
     row.SetField("vendorprice", entity.vendorprice);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("transproc", entity.transproc);
     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("qtybrk1", entity.qtybrk1);
     row.SetField("qtybrk2", entity.qtybrk2);
     row.SetField("qtybrk3", entity.qtybrk3);
     row.SetField("qtybrk4", entity.qtybrk4);
     row.SetField("qtybrk5", entity.qtybrk5);
     row.SetField("qtybrk6", entity.qtybrk6);
     row.SetField("qtybrk7", entity.qtybrk7);
     row.SetField("qtybrk8", entity.qtybrk8);
     row.SetField("buytype", entity.buytype);
     row.SetField("refer", entity.refer);
     row.SetField("prod", entity.prod);
     row.SetField("pdsvtrRowID", entity.rowID.ToByteArray());
 }