/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SaspBase entity) { row.SetField("printernm", entity.printernm); row.SetField("saspRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSaspBase(ref DataRow row, SaspBase entity) { row.SetField("printernm", entity.printernm); row.SetField("descrip", entity.descrip); row.SetField("wide", entity.wide); row.SetField("ptype", entity.ptype); row.SetField("pcommand", entity.pcommand); row.SetField("operinit", entity.operinit); row.SetField("transtm", entity.transtm); row.SetField("transdt", entity.transdt); row.SetField("pclose1", entity.pclose1); row.SetField("pclose2", entity.pclose2); row.SetField("pclose3", entity.pclose3); row.SetField("pclose4", entity.pclose4); row.SetField("pclose5", entity.pclose5); row.SetField("pclose6", entity.pclose6); row.SetField("pclose7", entity.pclose7); row.SetField("pclose8", entity.pclose8); row.SetField("pclose9", entity.pclose9); row.SetField("pclose10", entity.pclose10); row.SetField("pcompress1", entity.pcompress1); row.SetField("pcompress2", entity.pcompress2); row.SetField("pcompress3", entity.pcompress3); row.SetField("pcompress4", entity.pcompress4); row.SetField("pcompress5", entity.pcompress5); row.SetField("pcompress6", entity.pcompress6); row.SetField("pcompress7", entity.pcompress7); row.SetField("pcompress8", entity.pcompress8); row.SetField("pcompress9", entity.pcompress9); row.SetField("pcompress10", entity.pcompress10); row.SetField("pnormal1", entity.pnormal1); row.SetField("pnormal2", entity.pnormal2); row.SetField("pnormal3", entity.pnormal3); row.SetField("pnormal4", entity.pnormal4); row.SetField("pnormal5", entity.pnormal5); row.SetField("pnormal6", entity.pnormal6); row.SetField("pnormal7", entity.pnormal7); row.SetField("pnormal8", entity.pnormal8); row.SetField("pnormal9", entity.pnormal9); row.SetField("pnormal10", entity.pnormal10); row.SetField("pinit1", entity.pinit1); row.SetField("pinit2", entity.pinit2); row.SetField("pinit3", entity.pinit3); row.SetField("pinit4", entity.pinit4); row.SetField("pinit5", entity.pinit5); row.SetField("pinit6", entity.pinit6); row.SetField("pinit7", entity.pinit7); row.SetField("pinit8", entity.pinit8); row.SetField("pinit9", entity.pinit9); row.SetField("pinit10", entity.pinit10); row.SetField("user6", entity.user6); row.SetField("user7", entity.user7); row.SetField("user8", entity.user8); row.SetField("user9", entity.user9); row.SetField("armaillbl", entity.armaillbl); row.SetField("cmmaillbl", entity.cmmaillbl); row.SetField("prodlbl", entity.prodlbl); row.SetField("shiplbl", entity.shiplbl); row.SetField("binloclbl", entity.binloclbl); row.SetField("edilbl", entity.edilbl); row.SetField("picklbl", entity.picklbl); row.SetField("rxsprinter", entity.rxsprinter); row.SetField("transproc", entity.transproc); row.SetField("cono", entity.cono); row.SetField("cartonlbl", entity.cartonlbl); row.SetField("rcvlbl", entity.rcvlbl); row.SetField("rcvwtlbl", entity.rcvwtlbl); row.SetField("maxlabels", entity.maxlabels); 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("saspgroup", entity.saspgroup); row.SetField("altsizeprinter", entity.altsizeprinter); row.SetField("labelsize", entity.labelsize); row.SetField("saspRowID", entity.rowID.ToByteArray()); }