예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBarcodemstBase(ref DataRow row, BarcodemstBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("barcode_id", entity.barcodeId);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("barcode_length", entity.barcodeLength);
     row.SetField("vendor_item_start", entity.vendorItemStart);
     row.SetField("vendor_item_length", entity.vendorItemLength);
     row.SetField("abs_num_start", entity.absNumStart);
     row.SetField("abs_num_length", entity.absNumLength);
     row.SetField("quantity_start", entity.quantityStart);
     row.SetField("quantity_length", entity.quantityLength);
     row.SetField("quantity_style", entity.quantityStyle);
     row.SetField("po_start", entity.poStart);
     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("po_length", entity.poLength);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("barcodemstRowID", entity.rowID.ToByteArray());
 }
예제 #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, BarcodemstBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("barcodeId", entity.barcodeId);
     row.SetField("vendorId", entity.vendorId);
     row.SetField("barcodemstRowID", entity.rowID.ToByteArray());
 }