Beispiel #1
0
 private void WriteToActivityLog()
 {
     if (MyCommon.LRTadoConn.State == ConnectionState.Closed)
     {
         MyCommon.Open_LogixRT();
     }
     MyCommon.Activity_Log(3, OfferID, CurrentUser.AdminUser.ID, historyString);
     MyCommon.Close_LogixRT();
 }
Beispiel #2
0
    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()");
    }