/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromShpdtlBase(ref DataRow row, ShpdtlBase entity) { row.SetField("manifest_id", entity.manifestId); row.SetField("pro_num_id", entity.proNumId); row.SetField("invoice_num", entity.invoiceNum); row.SetField("tracking_id", entity.trackingId); row.SetField("void", entity.@void); row.SetField("package_type", entity.packageType); row.SetField("consignee_name", entity.consigneeName); row.SetField("addr1", entity.addr1); row.SetField("addr2", entity.addr2); row.SetField("city", entity.city); row.SetField("state", entity.state); row.SetField("zip", entity.zip); row.SetField("zone", entity.zone); row.SetField("weight", entity.weight); row.SetField("actual_weight", entity.actualWeight); row.SetField("residential_flag", entity.residentialFlag); row.SetField("charges", entity.charges); row.SetField("cod_amt", entity.codAmt); row.SetField("declared_value", entity.declaredValue); row.SetField("ups_ground_track", entity.upsGroundTrack); row.SetField("add_on_handling", entity.addOnHandling); row.SetField("add_on_cost", entity.addOnCost); row.SetField("call_tag_issued", entity.callTagIssued); row.SetField("oversized", entity.oversized); row.SetField("shp_by_irms", entity.shpByIrms); 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("route", entity.route); row.SetField("ship_cust_code", entity.shipCustCode); row.SetField("addr_ext1", entity.addrExt1); row.SetField("addr_ext2", entity.addrExt2); row.SetField("addr_ext3", entity.addrExt3); row.SetField("shpdtlRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, ShpdtlBase entity) { row.SetField("trackingId", entity.trackingId); row.SetField("shpdtlRowID", entity.rowID.ToByteArray()); }