Newer
Older
StartupManagement / src / BusinessCardManagement.java
import javax.swing.*;
import java.util.*;

public class BusinessCardManagement {
	private Screen screen;
	private ScreenTemplates screenTemplates;
	private W4ca84254d30c423ab8e449171a5b5123 w4ca84254d30c423ab8e449171a5b5123;
	private SearchScreen searchScreen;
	private SearchCriteriaScreen searchCriteriaScreen;
	private Result result;
	private CompanyList companyList;
	private W2d109ad3739d4744a1874ac179fc38b9 w2d109ad3739d4744a1874ac179fc38b9;
	private Map<String, BusinessCardManagementElement> value = new HashMap<>();
	private Widget1 widget;
	public BusinessCardManagement(Screen screen, ScreenTemplates screenTemplates, W4ca84254d30c423ab8e449171a5b5123 w4ca84254d30c423ab8e449171a5b5123, SearchScreen searchScreen, SearchCriteriaScreen searchCriteriaScreen, Result result, CompanyList companyList, W2d109ad3739d4744a1874ac179fc38b9 w2d109ad3739d4744a1874ac179fc38b9) {
		this.screen = screen;
		this.screenTemplates = screenTemplates;
		this.w4ca84254d30c423ab8e449171a5b5123 = w4ca84254d30c423ab8e449171a5b5123;
		this.searchScreen = searchScreen;
		this.searchCriteriaScreen = searchCriteriaScreen;
		this.result = result;
		this.companyList = companyList;
		this.w2d109ad3739d4744a1874ac179fc38b9 = w2d109ad3739d4744a1874ac179fc38b9;
	}
	public Map<String, Map<String, Object>> getValue() {
		Map<String, Map<String, Object>> value = new HashMap<>();
		for (String key: this.value.keySet()) {
			BusinessCardManagementElement businessCardManagementElement = this.value.get(key);
			value.put(key, businessCardManagementElement.getValue());
		}
		return value;
	}
	public BusinessCardManagementElement getBusinessCardManagementElement(String companyName) {
		return this.value.get(companyName);
	}
	public void updateFromState(String scId, String wid, int state, String company_, String representative_, String position_, String establishment_, String address1_, String address2_, String businessdescription1_, String businessdescription2_, String companyoverview_, String URL_, String contactPerson1_, String position1_, String tel1_, String email1_, String contactPerson2_, String position2_, String tel2_, String email2_, String contactPerson3_, String position3_, String tel3_, String email3_, String contactPerson4_, String position4_, String tel4_, String email4_) {
        Map<String, BusinessCardManagementElement> temp_if15;
        if ((((state==0)&&!company_.equals(""))&&!(this.value.containsKey(company_)))) {
            this.value.put(company_,new BusinessCardManagementElement(representative_, position_, establishment_, address1_, address2_, businessdescription1_, businessdescription2_, companyoverview_, URL_, contactPerson1_, position1_, tel1_, email1_, contactPerson2_, position2_, tel2_, email2_, contactPerson3_, position3_, tel3_, email3_, contactPerson4_, position4_, tel4_, email4_));
            temp_if15 = this.value;
        } else {
            temp_if15 = this.value;
        }
        this.value = temp_if15;
		String searchCriteriaScreen = this.searchCriteriaScreen.getValue();
		String result = this.result.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchCriteriaScreen).getWidgets1().getWidget1(result);
		this.widget.updateDataFromBusinessCardManagement(scId, wid, this.getValue(), searchCriteriaScreen, result);
		String w2d109ad3739d4744a1874ac179fc38b9 = this.w2d109ad3739d4744a1874ac179fc38b9.getValue();
		String companyList = this.companyList.getValue();
		this.widget = screenTemplates.getScreenTemplate(companyList).getWidgets1().getWidget1(w2d109ad3739d4744a1874ac179fc38b9);
		this.widget.updateDataFromBusinessCardManagement3(scId, wid, this.getValue(), w2d109ad3739d4744a1874ac179fc38b9, companyList);
		String w4ca84254d30c423ab8e449171a5b5123 = this.w4ca84254d30c423ab8e449171a5b5123.getValue();
		String searchScreen = this.searchScreen.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchScreen).getWidgets1().getWidget1(w4ca84254d30c423ab8e449171a5b5123);
		this.widget.updateDataFromBusinessCardManagement2(scId, wid, this.getValue(), w4ca84254d30c423ab8e449171a5b5123, searchScreen);
	}
	public void updateFromState2(String scId, String wid, int state, String company_, String representative_, String position_, String establishment_, String address1_, String address2_, String businessdescription1_, String businessdescription2_, String companyoverview_, String URL_, String contactPerson1_, String position1_, String tel1_, String email1_, String contactPerson2_, String position2_, String tel2_, String email2_, String contactPerson3_, String position3_, String tel3_, String email3_, String contactPerson4_, String position4_, String tel4_, String email4_) {
        Map<String, BusinessCardManagementElement> temp_if14;
        if ((((state==0)&&!company_.equals(""))&&!(this.value.containsKey(company_)))) {
            this.value.put(company_,new BusinessCardManagementElement(representative_, position_, establishment_, address1_, address2_, businessdescription1_, businessdescription2_, companyoverview_, URL_, contactPerson1_, position1_, tel1_, email1_, contactPerson2_, position2_, tel2_, email2_, contactPerson3_, position3_, tel3_, email3_, contactPerson4_, position4_, tel4_, email4_));
            temp_if14 = this.value;
        } else {
            temp_if14 = this.value;
        }
        this.value = temp_if14;
		String searchCriteriaScreen = this.searchCriteriaScreen.getValue();
		String result = this.result.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchCriteriaScreen).getWidgets1().getWidget1(result);
		this.widget.updateDataFromBusinessCardManagement(scId, wid, this.getValue(), searchCriteriaScreen, result);
		String w2d109ad3739d4744a1874ac179fc38b9 = this.w2d109ad3739d4744a1874ac179fc38b9.getValue();
		String companyList = this.companyList.getValue();
		this.widget = screenTemplates.getScreenTemplate(companyList).getWidgets1().getWidget1(w2d109ad3739d4744a1874ac179fc38b9);
		this.widget.updateDataFromBusinessCardManagement3(scId, wid, this.getValue(), w2d109ad3739d4744a1874ac179fc38b9, companyList);
		String w4ca84254d30c423ab8e449171a5b5123 = this.w4ca84254d30c423ab8e449171a5b5123.getValue();
		String searchScreen = this.searchScreen.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchScreen).getWidgets1().getWidget1(w4ca84254d30c423ab8e449171a5b5123);
		this.widget.updateDataFromBusinessCardManagement2(scId, wid, this.getValue(), w4ca84254d30c423ab8e449171a5b5123, searchScreen);
	}
	public void updateFromState3(String scId, String wid, int state, String editcompany_, String editrepresentative_, String editposition_, String editestablish_, String editaddress1_, String editaddress2_, String editbusiness1_, String editbusiness2_, String editcompanydetail_, String editURL_, String editcontactPerson1_, String editposition1_, String edittel1_, String editemail1_, String editcontactPerson2_, String editposition2_, String edittel2_, String editemail2_, String editcontactPerson3_, String editposition3_, String edittel3_, String editemail3_, String editcontactPerson4_, String editposition4_, String edittel4_, String editemail4_) {
        Map<String, BusinessCardManagementElement> temp_if16;
        if ((((state==0)&&!editcompany_.equals(""))&&this.value.containsKey(editcompany_))) {
            this.value.put(editcompany_,new BusinessCardManagementElement(editrepresentative_, editposition_, editestablish_, editaddress1_, editaddress2_, editbusiness1_, editbusiness2_, editcompanydetail_, editURL_, editcontactPerson1_, editposition1_, edittel1_, editemail1_, editcontactPerson2_, editposition2_, edittel2_, editemail2_, editcontactPerson3_, editposition3_, edittel3_, editemail3_, editcontactPerson4_, editposition4_, edittel4_, editemail4_));
            temp_if16 = this.value;
        } else {
            temp_if16 = this.value;
        }
        this.value = temp_if16;
		String searchCriteriaScreen = this.searchCriteriaScreen.getValue();
		String result = this.result.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchCriteriaScreen).getWidgets1().getWidget1(result);
		this.widget.updateDataFromBusinessCardManagement(scId, wid, this.getValue(), searchCriteriaScreen, result);
		String w2d109ad3739d4744a1874ac179fc38b9 = this.w2d109ad3739d4744a1874ac179fc38b9.getValue();
		String companyList = this.companyList.getValue();
		this.widget = screenTemplates.getScreenTemplate(companyList).getWidgets1().getWidget1(w2d109ad3739d4744a1874ac179fc38b9);
		this.widget.updateDataFromBusinessCardManagement3(scId, wid, this.getValue(), w2d109ad3739d4744a1874ac179fc38b9, companyList);
		String w4ca84254d30c423ab8e449171a5b5123 = this.w4ca84254d30c423ab8e449171a5b5123.getValue();
		String searchScreen = this.searchScreen.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchScreen).getWidgets1().getWidget1(w4ca84254d30c423ab8e449171a5b5123);
		this.widget.updateDataFromBusinessCardManagement2(scId, wid, this.getValue(), w4ca84254d30c423ab8e449171a5b5123, searchScreen);
	}
	public void addBusinessCardManagement(String scId, String wid, String representative, String position, String establishment, String address1, String address2, String businessDescription1, String businessDescription2, String companyOverview, String URL, String companyName, String contactPerson1, String position1, String tel1, String email1, String contactPerson2, String position2, String tel2, String email2, String contactPerson3, String position3, String tel3, String email3, String contactPerson4, String position4, String tel4, String email4) {
        this.value.put(companyName,new BusinessCardManagementElement(representative, position, establishment, address1, address2, businessDescription1, businessDescription2, companyOverview, URL, contactPerson1, position1, tel1, email1, contactPerson2, position2, tel2, email2, contactPerson3, position3, tel3, email3, contactPerson4, position4, tel4, email4));
		String searchCriteriaScreen = this.searchCriteriaScreen.getValue();
		String result = this.result.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchCriteriaScreen).getWidgets1().getWidget1(result);
		this.widget.updateDataFromBusinessCardManagement(scId, wid, this.getValue(), searchCriteriaScreen, result);
		String w2d109ad3739d4744a1874ac179fc38b9 = this.w2d109ad3739d4744a1874ac179fc38b9.getValue();
		String companyList = this.companyList.getValue();
		this.widget = screenTemplates.getScreenTemplate(companyList).getWidgets1().getWidget1(w2d109ad3739d4744a1874ac179fc38b9);
		this.widget.updateDataFromBusinessCardManagement3(scId, wid, this.getValue(), w2d109ad3739d4744a1874ac179fc38b9, companyList);
		String w4ca84254d30c423ab8e449171a5b5123 = this.w4ca84254d30c423ab8e449171a5b5123.getValue();
		String searchScreen = this.searchScreen.getValue();
		this.widget = screenTemplates.getScreenTemplate(searchScreen).getWidgets1().getWidget1(w4ca84254d30c423ab8e449171a5b5123);
		this.widget.updateDataFromBusinessCardManagement2(scId, wid, this.getValue(), w4ca84254d30c423ab8e449171a5b5123, searchScreen);
	}

    public void imports(String curScreen, String wid, int state) {
        JPanel mainPanel = screen.getPresenter().getMainPanel();
    }

    public void save(String curScreen, String wid, int state) {
        JPanel mainPanel = screen.getPresenter().getMainPanel();
    }
}