public void editCustomerInfo(string email) { //print (dictionaryCustomer [activitymanager.getCustomerLoggedIn().getEmail()].getLastName()); dictionaryCustomer.Remove(email); dictionaryCustomer.Add(activitymanager.getCustomerLoggedIn().getEmail(), activitymanager.getCustomerLoggedIn()); }
public void setInputFields() { firstNameField.text = activitymanager.getCustomerLoggedIn().getFirstName(); lastNameField.text = activitymanager.getCustomerLoggedIn().getLastName(); emailField.text = activitymanager.getCustomerLoggedIn().getEmail(); passwordField.text = activitymanager.getCustomerLoggedIn().getPassword(); }
//get into hamburger menu public void hamburgerMenuButtonClicked() { //hamburger menu animationscript.playHamburgerMenuSlideInCustomer(); //hamburger menu background hamburgerMenuFadeBackground.SetActive(true); animationscript.playHamburgerMenuFadeBackgroundInCustomer(); //setting profile name hamburgerProfileName.text = activitymanager.getCustomerLoggedIn().getFirstName() + " " + activitymanager.getCustomerLoggedIn().getLastName(); }
public void createReviewHistoryList() { foreach (Transform child in rowPrefabParent.transform) { GameObject.Destroy(child.gameObject); } numberOfRows = 0; numberOfRequests = 0; totalNumberOfRows = activitymanagerScript.getCustomerLoggedIn().getServiceRequestSize(); print(totalNumberOfRows + "total"); for (int i = 0; i < totalNumberOfRows; i++) { addRowFinished(); } }
public void okClicked() { if (isOther) { if (make.text == "" | model.text == "" | year.text == "" | colour.text == "" | lattitude.text == "" | longitude.text == "" | price.text == "" | problem.text == "") { //input field message SSTools.ShowMessage("input field empty", SSTools.Position.bottom, SSTools.Time.twoSecond); return; } canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setMake(make.text); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setModel(model.text); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setYear(int.Parse(year.text)); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setColour(colour.text); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setlattitude(float.Parse(lattitude.text)); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setlongitude(float.Parse(longitude.text)); //create service request receipt loginActivity loginactivity = canvas.GetComponent <loginActivity> (); loginactivity.totalIDCount++; loginactivity.saveTotalIDCount(); serviceRequestReceipt reciept = new serviceRequestReceipt(loginactivity.totalIDCount, activitymanager.getCustomerLoggedIn().id, problem.text, float.Parse(price.text)); reciept.car = canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car; activitymanager.addServiceRequest(reciept); //loginactivity.saveReceipt(activitymanager.getCustomerLoggedIn().id,reciept); //serviceRequestReciept currentReciept = activitymanager.getServiceRequest (activitymanager.getServiceRequestSize () - 1); activitymanager.getCustomerLoggedIn().addServiceRequest(reciept); loginactivity.saveCustomer(activitymanager.getCustomerLoggedIn()); //currentReciept.customer = activitymanager.getCustomerLoggedIn(); //currentReciept.car = activitymanager.getCustomerLoggedIn ().car; SSTools.ShowMessage("request Sent", SSTools.Position.bottom, SSTools.Time.twoSecond); backButtonServiceRequestClicked(); canvas.GetComponent <homeMenuScript> ().createRowsOfRequests(); } else { if (make.text == "" | model.text == "" | year.text == "" | colour.text == "" | lattitude.text == "" | longitude.text == "") { //input field message SSTools.ShowMessage("input field empty", SSTools.Position.bottom, SSTools.Time.twoSecond); return; } canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setMake(make.text); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setModel(model.text); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setYear(int.Parse(year.text)); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setColour(colour.text); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setlattitude(float.Parse(lattitude.text)); canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car.setlongitude(float.Parse(longitude.text)); //create service request receipt loginActivity loginactivity = canvas.GetComponent <loginActivity> (); loginactivity.totalIDCount++; loginactivity.saveTotalIDCount(); serviceRequestReceipt reciept = new serviceRequestReceipt(loginactivity.totalIDCount, activitymanager.getCustomerLoggedIn().id, service.name, service.price); reciept.car = canvas.GetComponent <activityManager> ().getCustomerLoggedIn().car; activitymanager.addServiceRequest(reciept); //loginactivity.saveReceipt(activitymanager.getCustomerLoggedIn().id,reciept); //serviceRequestReciept currentReciept = activitymanager.getServiceRequest (activitymanager.getServiceRequestSize () - 1); activitymanager.getCustomerLoggedIn().addServiceRequest(reciept); loginactivity.saveCustomer(activitymanager.getCustomerLoggedIn()); //currentReciept.customer = activitymanager.getCustomerLoggedIn(); //currentReciept.car = activitymanager.getCustomerLoggedIn ().car; SSTools.ShowMessage("request Sent", SSTools.Position.bottom, SSTools.Time.twoSecond); backButtonServiceRequestClicked(); canvas.GetComponent <homeMenuScript> ().createRowsOfRequests(); } requestPriceText.gameObject.SetActive(true); requestTypeText.gameObject.SetActive(true); carText.gameObject.SetActive(true); priceText.gameObject.SetActive(true); price.gameObject.SetActive(false); problem.gameObject.SetActive(false); isOther = false; }