示例#1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, WaveBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("batch", entity.batch);
     row.SetField("waveRowID", entity.rowID.ToByteArray());
 }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWaveBase(ref DataRow row, WaveBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("batch", entity.batch);
     row.SetField("task_id", entity.taskId);
     row.SetField("line_count", entity.lineCount);
     row.SetField("order_count", entity.orderCount);
     row.SetField("weight", entity.weight);
     row.SetField("cube", entity.cube);
     row.SetField("drop_date_time", entity.dropDateTime);
     row.SetField("active_date_time", entity.activeDateTime);
     row.SetField("ship_date_time", entity.shipDateTime);
     row.SetField("drop_price", entity.dropPrice);
     row.SetField("ship_price", entity.shipPrice);
     row.SetField("single_line_orders", entity.singleLineOrders);
     row.SetField("cart", entity.cart);
     row.SetField("host_batch", entity.hostBatch);
     row.SetField("emp_num", entity.empNum);
     row.SetField("ship_cube", entity.shipCube);
     row.SetField("ship_weight", entity.shipWeight);
     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("wave_status", entity.waveStatus);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("waveRowID", entity.rowID.ToByteArray());
 }