Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, BarcodedtlBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("vendorId", entity.vendorId);
     row.SetField("barcodeId", entity.barcodeId);
     row.SetField("attributeName", entity.attributeName);
     row.SetField("barcodedtlRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBarcodedtlBase(ref DataRow row, BarcodedtlBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("barcode_id", entity.barcodeId);
     row.SetField("attribute_name", entity.attributeName);
     row.SetField("attribute_desc", entity.attributeDesc);
     row.SetField("value_start", entity.valueStart);
     row.SetField("value_length", entity.valueLength);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("barcodedtlRowID", entity.rowID.ToByteArray());
 }