/// <summary> /// it reactivates a direct-deleted record by the stock-keeper /// </summary> /// <param name="requId">DB identifier of the target request</param> /// <param name="reqUserId">userId, who wanted that</param> public void undeletADeletedRequest(int requId, int reqUserId) { modelRequestWrite = new RequestsModelWirteOut(dbci, parentMain); try { modelRequestWrite.undeletRequestTableDeletedRecord(userIdOfOperator, requId.ToString(), reqUserId.ToString()); } catch (ErrorServiceRenewRecord e) { throw new ErrorServiceRequests(e.Message); } catch (Exception e) { throw new ErrorServiceRequests("Ismeretlen hiba történt (ServRequ_undelAct) " + e.Message); } }
/// <summary> /// it reactivates a direct-deleted record by the stock-keeper /// </summary> /// <param name="modUserId">userId, who does that</param> /// <param name="reqStartDate">startDate of the target equest</param> /// <param name="reqQuantId">strippingId of the target equest</param> /// <param name="reqUserId">userId, who wanted that</param> public void undeletADeletedRequest(string reqStartDate, int reqQuantId, int reqUserId) { modelRequestWrite = new RequestsModelWirteOut(dbci, parent); try { modelRequestWrite.undeletRequestTableDeletedRecord(userIdOfPoerator, reqStartDate.Replace(".", "-"), reqQuantId.ToString(), reqUserId.ToString()); } catch (ErrorServiceRenewRecord e) { throw new ErrorServiceRequests(e.Message); } catch (Exception e) { throw new ErrorServiceRequests("Ismeretlen hiba történt (ServRequ_undelAct) " + e.Message); } }