/// <summary> /// Swaps the receiving units. /// </summary> /// <param name="receivingUnitID">The receiving unit ID.</param> /// <param name="receivingUnitIDTarget">The receiving unit ID target.</param> public static void SwapReceivingUnits(int receivingUnitID, int receivingUnitIDTarget) { BLL.Institution ru = new Institution(); var query = HCMIS.Repository.Queries.Institution.UpdateSwapReceivingUnitsOrder(receivingUnitID, receivingUnitIDTarget); ru.LoadFromRawSql(query); ru.FlushData(); query = HCMIS.Repository.Queries.Institution.UpdateSwapReceivingUnitsIssueDoc(receivingUnitID, receivingUnitIDTarget); ru.LoadFromRawSql(query); }
/// <summary> /// Swaps the receiving units. /// </summary> /// <param name="receivingUnitID">The receiving unit ID.</param> /// <param name="receivingUnitIDTarget">The receiving unit ID target.</param> public static void SwapReceivingUnits(int receivingUnitID, int receivingUnitIDTarget) { BLL.Institution ru = new Institution(); var query = HCMIS.Repository.Queries.Institution.UpdateSwapReceivingUnitsOrder(receivingUnitID, receivingUnitIDTarget); ru.LoadFromRawSql(query); ru.FlushData(); query = HCMIS.Repository.Queries.Institution.UpdateSwapReceivingUnitsIssueDoc(receivingUnitID, receivingUnitIDTarget); ru.LoadFromRawSql(query); }