Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ClinicalQuestionTemplateId = 0;
        Page.Title = "Adjust order";
        CallCenter_CallCenterMaster1 obj;

        obj = (CallCenter_CallCenterMaster1)this.Master;
        obj.SetTitle("");


        if (!IsPostBack)
        {
            if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No")
            {
                divCall.Style.Add(HtmlTextWriterStyle.Display, "none");
                divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden");
            }
            else
            {
                var repository = new CallCenterCallRepository();
                var objCall    = repository.GetCallCenterEntity(ExistingCallId);
                hfCallStartTime.Value = objCall.TimeCreated;
            }
        }

        var eventCustomerRepository = IoC.Resolve <IEventCustomerRepository>();

        if (Request.QueryString["EventCustomerID"] != null)
        {
            EventCustomerId = Convert.ToInt64(Request.QueryString["EventCustomerID"]);
            var eventCustomer = eventCustomerRepository.GetById(EventCustomerId);

            CustomerId = eventCustomer.CustomerId;
            EventId    = eventCustomer.EventId;
        }
        else if (Request.QueryString["EventId"] != null && Request.QueryString["CustomerId"] != null)
        {
            EventId    = Convert.ToInt64(Request.QueryString["EventId"]);
            CustomerId = Convert.ToInt64(Request.QueryString["CustomerId"]);

            EventCustomerId = eventCustomerRepository.Get(EventId, CustomerId).Id;
        }

        if (EventId > 0)
        {
            var corporateAccountRepository = IoC.Resolve <ICorporateAccountRepository>();

            var account = corporateAccountRepository.GetbyEventId(EventId);

            if (account != null)
            {
                if (account.AskClinicalQuestions && account.ClinicalQuestionTemplateId.HasValue)
                {
                    FillClinicialQuestionnaireDiv.Visible = true;
                    ClinicalQuestionTemplateId            = account.ClinicalQuestionTemplateId.Value;
                    GetRecommendationText();
                }
            }
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = "Customer Details";
        CallCenter_CallCenterMaster1 obj;

        obj = (CallCenter_CallCenterMaster1)this.Master;
        obj.SetTitle("Customer Details");

        if (!IsPostBack)
        {
            if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No")
            {
                divCall.Style.Add(HtmlTextWriterStyle.Display, "none");
                divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden");
                obj.SetBreadCrumbRoot = "<a href=\"/App/CallCenter/CallCenterRep/CallCenterRepCustomerList.aspx?Call=No\">Customer List</a>";
            }
            else
            {
                var repository = new CallCenterCallRepository();
                var objCall    = repository.GetCallCenterEntity(ExistingCallId);
                hfCallStartTime.Value = objCall.TimeCreated;
                obj.SetBreadCrumbRoot = "<a href=\"/App/CallCenter/CallCenterRep/CustomerVerification.aspx\">Customer List</a>";
            }
        }
    }
    private void EndCall()
    {
        var repository = new CallCenterCallRepository();
        var objCall    = repository.GetCallCenterEntity(CallId);

        objCall.TimeEnd = DateTime.Now.ToString();
        objCall.Status  = (long)CallStatus.Attended;

        var callcenterDal = new CallCenterDAL();

        callcenterDal.UpdateCall(objCall);
    }
Exemplo n.º 4
0
        private void SetPageReDirection()
        {
            string redirecturl = ViewState["ReferredQuery"].ToString();

            if (CurrentRole == Roles.CallCenterRep)
            {
                if (!(Request.QueryString["Call"] != null && Request.QueryString["Call"].ToLower() == "no"))
                {
                    if (CallId.HasValue)
                    {
                        var repository = new CallCenterCallRepository();
                        var call       = repository.GetCallCenterEntity(CallId.Value);
                        EndCall();
                        StartCall(call.CalledCustomerID);
                    }
                }
            }
            Response.RedirectUser(redirecturl);
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Title = "Edit Customer";
        var objMaster = (CallCenter_CallCenterMaster1)this.Master;

        if (SystemRoleId == (long)Roles.CallCenterRep)
        {
            objMaster.SetBreadCrumbRoot = "<a href=\"/CallCenter/CallCenterRepDashboard/Index\">DashBoard</a>";
        }
        else if (SystemRoleId == (long)Roles.CallCenterManager)
        {
            objMaster.SetBreadCrumbRoot = "<a href=\"/App/CallCenter/CallCenterManagerDashBoard.aspx\">DashBoard</a>";
        }

        objMaster.SetTitle("Customer Profile");
        if (!IsPostBack)
        {
            if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No")
            {
                divCall.Style.Add(HtmlTextWriterStyle.Display, "none");
                divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden");
            }
            else
            {
                var repository = new CallCenterCallRepository();
                var objCall    = repository.GetCallCenterEntity(ExistingCallId);
                hfCallStartTime.Value = objCall.TimeCreated;
            }

            if (Request.QueryString["UserID"] != null)
            {
                UCEditCustomer1.UserID = Convert.ToInt32(Request.QueryString["UserID"]);
            }
            else if (Request.QueryString["CustomerID"] != null)
            {
                var otherDal = new OtherDAL();
                UCEditCustomer1.UserID = Convert.ToInt32(otherDal.GetUid(Convert.ToInt32(Request.QueryString["CustomerID"])));
            }
        }
    }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No")
                {
                    divCall.Style.Add(HtmlTextWriterStyle.Display, "none");
                    divCall.Style.Add(HtmlTextWriterStyle.Visibility, "hidden");
                }
                else
                {
                    var repository = new CallCenterCallRepository();
                    var objCall    = repository.GetCallCenterEntity(ExistingCallId);
                    hfCallStartTime.Value = objCall.TimeCreated;
                }
            }

            CallCenter_CallCenterMaster1 obj;

            obj = (CallCenter_CallCenterMaster1)this.Master;
            obj.SetTitle("");
        }
    private void StartCall(long calledCustomerid)
    {
        var objCcRepCall = new ECall();

        if (CallId > 0)
        {
            var repository = new CallCenterCallRepository();
            var call       = repository.GetCallCenterEntity(CallId);

            objCcRepCall.IncomingPhoneLine  = call.IncomingPhoneLine;
            objCcRepCall.CallersPhoneNumber = call.CallersPhoneNumber;
        }

        objCcRepCall.CallCenterCallCenterUserID = IoC.Resolve <ISessionContext>().UserSession.CurrentOrganizationRole.OrganizationRoleUserId;
        objCcRepCall.TimeCreated      = DateTime.Now.ToString();
        objCcRepCall.CalledCustomerID = calledCustomerid;
        objCcRepCall.CallNotes        = new List <ECallCenterNotes>();

        var callcenterDal = new CallCenterDAL();

        CallId = callcenterDal.UpdateCall(objCcRepCall);
    }
Exemplo n.º 8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            RegistrationFlow.CanSaveConsentInfo = false;
            if (Request.QueryString["guid"] == null || Request.QueryString["guid"] == string.Empty)
            {
                Response.RedirectUser("/CallCenter/CallCenterRepDashboard/Index");
            }

            SetDisplayControls();
            SetJavaScriptEvents();
            if (!IsPostBack)
            {
                var   repository = new CallCenterCallRepository();
                ECall objCall    = repository.GetCallCenterEntity(ExistingCallId);
                if (objCall != null && (!string.IsNullOrWhiteSpace(objCall.CallersPhoneNumber) || !string.IsNullOrWhiteSpace(objCall.CallBackNumber)))
                {
                    var commonCode = new CommonCode();
                    txtCallBackNo.Text = commonCode.FormatPhoneNumber(string.IsNullOrWhiteSpace(objCall.CallersPhoneNumber) ? objCall.CallBackNumber : objCall.CallersPhoneNumber);
                }

                hfCallStartTime.Value = objCall.TimeCreated;
                if ((Request.UrlReferrer != null) && Request.UrlReferrer.LocalPath == "/App/CallCenter/CallCenterRep/CustomerVerification.aspx")
                {
                    if (CurrentProspectCustomerId > 0)
                    {
                        SetProspectCustomerDataToControls();
                    }
                    if (RegistrationFlow != null)
                    {
                        txtSourceCode.Text = RegistrationFlow.CallSourceCode;
                    }
                    if (Request.QueryString["CustomerId"] != null)
                    {
                        txtCustomerID.Text = Request.QueryString["CustomerId"];
                    }
                }
                else if (Request.UrlReferrer != null && Request.UrlReferrer.LocalPath == "/App/CallCenter/CallCenterRep/AddNotes.aspx")
                {
                    if (CurrentProspectCustomerId > 0)
                    {
                        SetProspectCustomerDataToControls();
                        CurrentProspectCustomerId = 0;
                        txtFirstName.Text         = "";
                    }
                }
                else if (CurrentProspectCustomerId > 0)
                {
                    SetProspectCustomerDataToControls();
                }

                if (RegistrationFlow != null)
                {
                    RegistrationFlow.CallSourceCode     = string.Empty;
                    RegistrationFlow.SourceCode         = string.Empty;
                    RegistrationFlow.SourceCodeId       = 0;
                    RegistrationFlow.SourceCodeAmount   = 0;
                    RegistrationFlow.TestIds            = null;
                    RegistrationFlow.PackageId          = 0;
                    RegistrationFlow.AppointmentSlotIds = null;
                    RegistrationFlow.ShippingDetailId   = 0;
                    RegistrationFlow.ShippingOptionId   = 0;
                    RegistrationFlow.ShippingAddressId  = 0;
                    RegistrationFlow.ProductId          = 0;
                    RegistrationFlow.PackageCost        = 0;
                    RegistrationFlow.TotalAmount        = 0;
                }
            }

            if (Request.Params["__EVENTTARGET"] != null && Request.Params["__EVENTTARGET"] == "Search")
            {
                SearchCustomer();
            }
        }
Exemplo n.º 9
0
        private void SearchCustomer()
        {
            var repository = new CallCenterCallRepository();
            var objCall    = repository.GetCallCenterEntity(ExistingCallId);

            ViewState["IncomingPhoneLine"]  = objCall.IncomingPhoneLine;
            RegistrationFlow.CallSourceCode = txtSourceCode.Text;

            if (!string.IsNullOrEmpty(txtSourceCode.Text) || !string.IsNullOrEmpty(txtCallBackNo.Text))
            {
                objCall.SourceCode     = txtSourceCode.Text;
                objCall.CallBackNumber = PhoneNumber.ToNumber(txtCallBackNo.Text);

                var callcenterDal = new CallCenterDAL();
                callcenterDal.UpdateCall(objCall);
            }

            if (GetCustomerList() == false && (txtCustomerID.Text.Trim().Length > 0 || GetProspectCustomerList() == false))
            {
                if (txtCustomerID.Text.Trim().Length > 0)
                {
                    ClientScript.RegisterStartupScript(typeof(string), "jscode_NoRecordsFound",
                                                       "alert('Customer with ID " + txtCustomerID.Text.Trim() + " not found. Please try again.');", true);
                    return;
                }
                if (txtCustomerID.Text.Trim().Length == 0)
                {
                    CurrentProspectCustomerId = 0;
                    SetProspectCustomer();

                    Response.RedirectUser("CustomerOptions.aspx?FirstName=" + txtFirstName.Text + "&LastName=" + txtLastName.Text +
                                          "&CallBackNo=" + txtCallBackNo.Text + "&Zip=" + txtZipCode.Text + "&guid=" + GuId);
                }
            }
            else
            {
                if (txtCustomerID.Text.Trim().Length > 0)
                {
                    Response.RedirectUser("/App/CallCenter/CallCenterRep/CustomerOptions.aspx?CustomerID=" + txtCustomerID.Text.Trim() + "&guid=" + GuId);
                    //Response.RedirectUser("CustomerVerification.aspx?FirstName=" + txtFirstName.Text + "&LastName=" + txtLastName.Text +
                    //                  (!string.IsNullOrEmpty(txtCallBackNo.Text) ? "&CallBackNo=" + txtCallBackNo.Text : "") +
                    //                  (!string.IsNullOrEmpty(txtZipCode.Text) ? "&Zip=" + txtZipCode.Text : "") +
                    //                  (!string.IsNullOrEmpty(txtCustomerID.Text) ? "&CustomerId=" + txtCustomerID.Text.Trim() : "")
                    //                  + (!string.IsNullOrEmpty(txtMemberId.Text) ? "&MemberId=" + txtMemberId.Text : "")
                    //                  + (!string.IsNullOrEmpty(txtHicn.Text) ? "&Hicn=" + txtHicn.Text : "")
                    //                  + (!string.IsNullOrEmpty(txtPhoneNumber.Text) ? "&PhoneNumber=" + txtPhoneNumber.Text : "")
                    //                  + (!string.IsNullOrEmpty(txtEmail.Text) ? "&EmailId=" + txtEmail.Text : "")
                    //                  + (!string.IsNullOrEmpty(txtMbiNumber.Text) ? "&MbiNumber=" + txtMbiNumber.Text : "")
                    //                  + "&guid=" + GuId);
                }
                else
                {
                    if (CurrentProspectCustomerId > 0)
                    {
                        SetProspectCustomer();
                    }
                    Response.RedirectUser("CustomerVerification.aspx?FirstName=" + txtFirstName.Text + "&LastName=" + txtLastName.Text +
                                          (!string.IsNullOrEmpty(txtCallBackNo.Text) ? "&CallBackNo=" + txtCallBackNo.Text : "") +
                                          (!string.IsNullOrEmpty(txtZipCode.Text) ? "&Zip=" + txtZipCode.Text : "")
                                          + (!string.IsNullOrEmpty(txtMemberId.Text) ? "&MemberId=" + txtMemberId.Text : "")
                                          + (!string.IsNullOrEmpty(txtHicn.Text) ? "&Hicn=" + txtHicn.Text : "")
                                          + (!string.IsNullOrEmpty(txtPhoneNumber.Text) ? "&PhoneNumber=" + txtPhoneNumber.Text : "")
                                          + (!string.IsNullOrEmpty(txtEmail.Text) ? "&EmailId=" + txtEmail.Text : "")
                                          + (!string.IsNullOrEmpty(txtMbiNumber.Text) ? "&MbiNumber=" + txtMbiNumber.Text : "")
                                          + "&guid=" + GuId);
                }
            }
        }
 protected void imgbtnResolved_Click(object sender, ImageClickEventArgs e)
 {
     if (ViewState["Case1"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText  = "The Login Issue has been resolved successfully";
         ViewState["Case1"] = null;
     }
     else if (ViewState["Case2"] != null)
     {
         //string resetPwdQueryString = SetPassword(ViewState["Case2"].ToString());
         bool mailsentUserName = SendParsedMailUserName();
         bool mailsentPassword = SendParsedMailPassword();
         if (mailsentUserName == true && mailsentPassword == true)
         {
             divMail.InnerText = "The Login Issue has been resolved successfully.The User Name & Reset Password Link has been sent to Customer's email.";
             DisplayInfoDiv(true);
         }
         ViewState["Case2"] = null;
     }
     else if (ViewState["Case3"] != null)
     {
         SetPassword(ViewState["Case3"].ToString());
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case4"] != null)
     {
         //string resetPwdQueryString = SetPassword(ViewState["Case4"].ToString());
         bool mailsentUserName = SendParsedMailUserName();
         bool mailsentPassword = SendParsedMailPassword();
         if (mailsentUserName == true && mailsentPassword == true)
         {
             divMail.InnerText = "The Login Issue has been resolved successfully.The User Name &  Reset Password Link has been sent to Customer's email.";
             DisplayInfoDiv(true);
         }
     }
     else if (ViewState["Case5"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case6"] != null)
     {
         bool mailsentUserName = SendParsedMailUserName();
         if (mailsentUserName)
         {
             divMail.InnerText = "The Login Issue has been resolved successfully.The User Name has been sent to Customer's email.";
             DisplayInfoDiv(true);
         }
     }
     else if (ViewState["Case7"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case8"] != null)
     {
         bool mailsentUserName = SendParsedMailUserName();
         if (mailsentUserName)
         {
             divMail.InnerText = "The Login Issue has been resolved successfully.The User Name has been sent to Customer's email.";
             DisplayInfoDiv(true);
         }
     }
     else if (ViewState["Case9"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case10"] != null)
     {
         //string resetPwdQueryString = SetPassword(ViewState["Case10"].ToString());
         bool mailsentPassword = SendParsedMailPassword();
         if (mailsentPassword)
         {
             divMail.InnerText = "The Login Issue has been resolved successfully.The Reset Password Link has been sent to Customer's email.";
             DisplayInfoDiv(true);
         }
     }
     else if (ViewState["Case11"] != null)
     {
         SetPassword(ViewState["Case11"].ToString());
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case12"] != null)
     {
         //string resetPwdQueryString = SetPassword(ViewState["Case12"].ToString());
         bool mailsentPassword = SendParsedMailPassword();
         if (mailsentPassword == true)
         {
             divMail.InnerText = "The Login Issue has been resolved successfully.The Reset Password Link has been sent to Customer's email.";
             DisplayInfoDiv(true);
         }
     }
     else if (ViewState["Case13"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case14"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case15"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case16"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     else if (ViewState["Case17"] != null)
     {
         DisplayInfoDiv(true);
         divMail.InnerText = "The Login Issue has been resolved successfully";
     }
     if (!(Request.QueryString["Call"] != null && Request.QueryString["Call"] == "No"))
     {
         var repository = new CallCenterCallRepository();
         var call       = repository.GetCallCenterEntity(CallId);
         EndCall();
         StartCall(call.CalledCustomerID);
     }
     Response.RedirectUser("CustomerOptions.aspx?CustomerID=" + Request.QueryString["CustomerID"] + "&Name=" + Request.QueryString["Name"] + "&guid=" + GuId);
 }
Exemplo n.º 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //Get the customer detail
        Page.Title = "Report Status";
        CallCenter_CallCenterMaster1 obj;

        obj = (CallCenter_CallCenterMaster1)this.Master;
        obj.SetTitle("Report Status");
        obj.SetBreadCrumbRoot = "<a href=\"/CallCenter/CallCenterRepDashboard/Index\">Dashboard</a>";

        obj.hideucsearch();
        if (!IsPostBack)
        {
            var   repository = new CallCenterCallRepository();
            ECall objCall    = repository.GetCallCenterEntity(ExistingCallId);
            hfCallStartTime.Value = objCall.TimeCreated;

            if (CustomerId.HasValue && Customer != null)
            {
                spnCustomerName.InnerText = Customer.NameAsString;
                string strCustAddress = CommonClass.FormatAddress(Customer.Address.StreetAddressLine1,
                                                                  Customer.Address.StreetAddressLine2,
                                                                  Customer.Address.City,
                                                                  Customer.Address.State,
                                                                  Customer.Address.ZipCode.Zip);
                spnAddress.InnerHtml = strCustAddress;
                spnEmail.InnerText   = Customer.Email != null?Customer.Email.ToString() : string.Empty;


                var           masterDal     = new MasterDAL();
                List <EEvent> customerEvent = masterDal.GetCustomerEvent(CustomerId.Value.ToString(), 1);

                DataTable tbltemp = new DataTable();
                tbltemp.Columns.Add("Id");
                tbltemp.Columns.Add("Name");
                tbltemp.Columns.Add("Date");
                tbltemp.Columns.Add("City");
                tbltemp.Columns.Add("AppTime");
                tbltemp.Columns.Add("Package");
                tbltemp.Columns.Add("PaymentMethod");
                tbltemp.Columns.Add("Status");
                tbltemp.Columns.Add("EventCustomerID");
                tbltemp.Columns.Add("HostName");
                tbltemp.Columns.Add("HostAddress");

                if (customerEvent != null)
                {
                    for (Int32 intCounter = 0; intCounter < customerEvent.Count; intCounter++)
                    {
                        string strEventDate =
                            Convert.ToDateTime(customerEvent[intCounter].EventDate).ToString("MMM dd yyyy");

                        string strAppointmentStartTime =
                            Convert.ToDateTime(customerEvent[intCounter].Customer[0].EventAppointment.StartTime).
                            ToString("hh:mm tt");
                        string strAppointmentEndTime =
                            Convert.ToDateTime(customerEvent[intCounter].Customer[0].EventAppointment.EndTime).ToString(
                                "hh:mm tt");
                        string strAppointmentTime = strAppointmentStartTime + " - " +
                                                    strAppointmentEndTime;
                        string strPackage      = customerEvent[intCounter].Customer[0].EventPackage.Package.PackageName;
                        string strReportStatus = customerEvent[intCounter].Customer[0].Interpreted.ToString();
                        string strPayMethod    = customerEvent[intCounter].Customer[0].PaymentDetail.PaymentType.Name;

                        tbltemp.Rows.Add(new object[]
                        {
                            customerEvent[intCounter].EventID, customerEvent[intCounter].Name,
                            strEventDate, customerEvent[intCounter].Host.Address.City,
                            strAppointmentTime, strPackage, strPayMethod, strReportStatus,
                            customerEvent[intCounter].Customer[0].CustomerEventTestID,
                            customerEvent[intCounter].Host.Name, "HostAddress"
                        });
                    }

                    dgeventhistory.DataSource = tbltemp;
                    ViewState["DSGRID"]       = tbltemp;
                    dgeventhistory.DataBind();


                    dbsearch.Visible          = true;
                    dbsearch.Style["display"] = "";
                }
                else
                {
                    dbsearch.Visible          = false;
                    dbsearch.Style["display"] = "";

                    dgeventhistory.Visible   = false;
                    dvSearchResult.InnerText = "No Result found";
                }
            }
        }
    }