private void WriteToActivityLog() { if (MyCommon.LRTadoConn.State == ConnectionState.Closed) { MyCommon.Open_LogixRT(); } MyCommon.Activity_Log(3, OfferID, CurrentUser.AdminUser.ID, historyString); MyCommon.Close_LogixRT(); }
protected void reject_Click(object sender, EventArgs e) { string rejectionMsg = string.Empty; if (Request.Form["rejectText"].ToString().Trim() != "") { rejectionMsg = Request.Form["rejectText"].ToString().Trim(); } AMSResult <bool> offerRejected = oawService.RejectOffer(OfferID.Value.ConvertToLong(), adminUserID, rejectionMsg); if (offerRejected.Result) { string logMessage = Copient.PhraseLib.Lookup("term.offer-rejected", LanguageID); if (rejectionMsg != "") { logMessage = logMessage + " " + Copient.PhraseLib.Lookup("term.rejectionreason", LanguageID) + ": " + rejectionMsg; } mCommon.Activity_Log(3, OfferID.Value.ConvertToLong(), adminUserID, logMessage); FilterOffers(); } else { DisplayError(PhraseLib.Lookup("error.checklogs", LanguageID)); } CallScript("hideRejectConfirmation", "hideRejectConfirmation()"); }