Ejemplo n.º 1
0
 protected void lnkBtnLogout_Click(object sender, EventArgs e)
 {
     try
     {
         CentralDBMainBL objCentralDBBL = new CentralDBMainBL();
         objCentralDBBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), System.DateTime.Now, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
         Session.Abandon();
         Response.Redirect("Login.aspx");
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 2
0
 protected void lnkBtnLogout_Click(object sender, EventArgs e)
 {
     try
     {
         CentralDBMainBL objCentralDBBL = new CentralDBMainBL();
         DataSet dsDatetime = objHotLeadsBL.GetDatetime();
         DateTime dtNow = Convert.ToDateTime(dsDatetime.Tables[0].Rows[0]["Datetime"].ToString());
         objHotLeadsBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), dtNow, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
         Session.Abandon();
         Response.Redirect("Login.aspx");
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 3
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         int CarID = Convert.ToInt32(Session["CustViewCarID"].ToString());
         int UID = Convert.ToInt32(Session[Constants.USER_ID].ToString());
         int CallType = Convert.ToInt32(ddlCallType.SelectedItem.Value);
         int CallReason = Convert.ToInt32(ddlCallReason.SelectedItem.Value);
         int CallResolution = Convert.ToInt32(ddlCallResolution.SelectedItem.Value);
         string SpokeWith = txtSpokenWith.Text;
         string Notes = txtTicketNotes.Text.Trim();
         if (txtTicketNotes.Text.Trim() != "")
         {
             String UpdatedBy = Session[Constants.NAME].ToString();
             string InternalNotesNew = txtTicketNotes.Text.Trim();
             string UpdateByWithDate = System.DateTime.Now.ToUniversalTime().AddHours(-4).ToString() + "-" + UpdatedBy + "<br>";
             InternalNotesNew = UpdateByWithDate + InternalNotesNew.Trim() + "<br>" + "-------------------------------------------------";
             //Notes = InternalNotesNew;
             DataSet dsNewIntNotes = objdropdownBL.USP_UpdateCustomerInternalNotes(CarID, InternalNotesNew, UID);
             Session.Timeout = 180;
         }
         else
         {
             Notes = txtTicketNotes.Text;
         }
         if (TicketConfirm.Value == "false")
         {
             bool bnew = objdropdownBL.USP_SmartzSaveCSDetails(CarID, UID, CallType, CallReason, Notes, CallResolution, SpokeWith);
         }
         else
         {
             int TicketType = Convert.ToInt32(ddlTicketType.SelectedItem.Value);
             int Priority = Convert.ToInt32(ddlTicketPriority.SelectedItem.Value);
             int CallBackID = Convert.ToInt32(ddlCallBack.SelectedItem.Value);
             string TicketDescription = txtTicketDescription.Text;
             if (txtTicketDescription.Text.Trim() != "")
             {
                 String UpdatedBy = Session[Constants.NAME].ToString();
                 string InternalNotesNew = txtTicketDescription.Text.Trim();
                 string UpdateByWithDate = System.DateTime.Now.ToUniversalTime().AddHours(-4).ToString() + "-" + UpdatedBy + "<br>";
                 InternalNotesNew = UpdateByWithDate + InternalNotesNew.Trim() + "<br>" + "-------------------------------------------------";
                 // Notes = InternalNotesNew;
                 DataSet dsNewIntNotes = objdropdownBL.USP_UpdateCustomerInternalNotes(CarID, InternalNotesNew, UID);
                 Session.Timeout = 180;
             }
             bool bnew = objdropdownBL.USP_SmartzSaveCSandTicketDetails(CarID, UID, CallType, CallReason, Notes, TicketType, Priority, CallBackID, TicketDescription, CallResolution, SpokeWith);
         }
         if (Session["Click"] == "1")
         {
             Response.Redirect("index.aspx");
         }
         if (Session["Click"] == "2")
         {
             CentralDBMainBL objCentralDBBL = new CentralDBMainBL();
             objCentralDBBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), System.DateTime.Now, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
             Session.Abandon();
             Response.Redirect("Login.aspx");
         }
         if (Session["Click"] == "3")
         {
             Response.Redirect("CarDetailsView.aspx");
         }
         if (Session["Click"] == "4")
         {
             Response.Redirect("Index.aspx");
         }
         if (Session["Click"] == "6")
         {
             Response.Redirect("SearchNew.aspx");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 4
0
 protected void btnJustChecking_Click(object sender, EventArgs e)
 {
     try
     {
         if (Session["Click"] == "1")
         {
             Response.Redirect("index.aspx");
         }
         if (Session["Click"] == "2")
         {
             CentralDBMainBL objCentralDBBL = new CentralDBMainBL();
             objCentralDBBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), System.DateTime.Now, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
             Session.Abandon();
             Response.Redirect("Login.aspx");
         }
         if (Session["Click"] == "3")
         {
             Response.Redirect("CarDetailsView.aspx");
         }
         if (Session["Click"] == "4")
         {
             Response.Redirect("Index.aspx");
         }
         if (Session["Click"] == "6")
         {
             Response.Redirect("SearchNew.aspx");
         }
         //Response.Redirect("SearchNew.aspx");
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 5
0
    protected void btnJustChecking_Click(object sender, EventArgs e)
    {
        try
        {
            if (Session["Click"] == "1")
            {
                Response.Redirect("index.aspx");
            }
            if (Session["Click"] == "2")
            {
                CentralDBMainBL objCentralDBBL = new CentralDBMainBL();
                objCentralDBBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), System.DateTime.Now, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
                Session.Abandon();
                Response.Redirect("Login.aspx");
            }
            if (Session["Click"] == "4")
            {
                Response.Redirect("Index.aspx");
            }
            if (Session["Click"] == "5")
            {
                if (Session["RedirectFrom"].ToString() == "1")
                {
                    Response.Redirect("SearchNew.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "2")
                {
                    Response.Redirect("WelcomeCalls.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "3")
                {
                    Response.Redirect("Tickets.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "4")
                {
                    Response.Redirect("CustomerService.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "5")
                {
                    Response.Redirect("PDDateDetails.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "6")
                {
                    Response.Redirect("Days30CallReview.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "7")
                {
                    Response.Redirect("Days60CallsReview.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "8")
                {
                    Response.Redirect("FreeSales.aspx");
                }
                if (Session["RedirectFrom"].ToString() == "9")
                {
                    Response.Redirect("RecentList.aspx");
                }

            }
            if (Session["Click"] == "6")
            {
                Response.Redirect("SearchNew.aspx");
            }
            if (Session["Click"] == "7")
            {
                //Response.Redirect("CustomerView.aspx");
                mdepTicketAlert.Hide();
            }
            //Response.Redirect("SearchNew.aspx");
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }