protected void ibtnStartCall_Click(object sender, ImageClickEventArgs e) { var objCcRepCall = new ECall(); objCcRepCall.CallCenterCallCenterUserID = IoC.Resolve <ISessionContext>().UserSession.CurrentOrganizationRole.OrganizationRoleUserId; objCcRepCall.TimeCreated = DateTime.Now.ToString(); objCcRepCall.IncomingPhoneLine = txtIncomingPhLine.Text; objCcRepCall.CallersPhoneNumber = txtCallersPhNumber.Text; objCcRepCall.CallNotes = new List <ECallCenterNotes>(); objCcRepCall.OutBound = chkOutBoundCall.Checked; var callcenterDal = new CallCenterDAL(); var returnresult = callcenterDal.UpdateCall(objCcRepCall); GuId = Guid.NewGuid().ToString(); var registrationFlow = new RegistrationFlowModel { GuId = GuId, CallId = returnresult, PreQualificationResultId = 0 }; RegistrationFlow = registrationFlow; Response.RedirectUser("BasicCallInfo.aspx?guid=" + GuId); }
public void UpdateCallStatus(int eventid, ECall call) { call.TimeEnd = DateTime.Now.ToString(); call.EventID = eventid; var callcenterDal = new CallCenterDAL(); callcenterDal.UpdateCall(call); }
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); }
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); }
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); } } }