public TenderHistory(int userId, int statusId, TenderActions action, string rejectionReason = "") { UserId = userId; StatusId = statusId; ActionId = (int)action; RejectionReason = rejectionReason; EntityCreated(); }
public OfferHistory(int tenderStatusId, int offerStatusId, TenderActions tenderAction, int userId, string cr) { TenderStatusId = tenderStatusId; OfferStatusId = offerStatusId; ActionId = (int)tenderAction; UserId = userId; CommericalRegisterNo = cr; EntityCreated(); }
public void AddActionToOfferHistory(int tenderStatusId, int offerStatusId, TenderActions action, int currentUserId, string cr) { OffersHistory.Add(new OfferHistory(tenderStatusId, offerStatusId, action, currentUserId, cr)); EntityUpdated(); }
public void AddActionHistory(int statusId, TenderActions action, string rejectionReason, int currentUserId) { Tender.TenderHistories.Add(new TenderHistory(currentUserId, statusId, action, rejectionReason)); EntityUpdated(); }
public void UpdateStatusToRejection(int tenderStatusId, int changeStatusId, string rejectionReason, int userId, TenderActions tenderAction) { ChangeRequestStatusId = changeStatusId; RejectionReason = rejectionReason; AddActionHistory(tenderStatusId, tenderAction, rejectionReason, userId); EntityUpdated(); }
public void UpdateStatus(int changeStatusId, int userId, TenderActions tenderAction) { ChangeRequestStatusId = changeStatusId; AddActionHistory(changeStatusId, tenderAction, "", userId); EntityUpdated(); }