Package net.caece.pri.hibernate.vo

Examples of net.caece.pri.hibernate.vo.UserForm


        UserDao dao = new UserDao();
        add(dao, obj);
    }

    public void delete() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        delete(dao, obj);

        // empty all fields
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
    }
View Full Code Here


        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
    }

    public void objToView(Object obj) {
        UserForm var = (UserForm) obj;

        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Textbox userNameTB = (Textbox) getFellow("userName");
        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            logger.debug("" + var.getOrgId() + ", " + s.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == s.getOrgId()) {
                orgIdCB.setSelectedItem(item);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());
        passwdTB.setText(var.getPasswd());
    }
View Full Code Here

        }

        refreshObjEntities(para);

        // empty all fields , except the query condition field
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
View Full Code Here

    public void refreshObjEntities() {
        refreshObjEntities("User.getAll", objListRenderer);
    }

    public void update() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        update(dao, obj);
    }
View Full Code Here

        onCreate();

        refreshObjEntities();

        // empty all fields
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);

    }
View Full Code Here

        System.out.println("CCCCCCCCCCCCCCCCCCCC" + queryOrgName);
        refreshObjEntities(para);

        // empty all fields , except the query condition field
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
        orgCB.setSelectedItem(orgCbItem);

    }
View Full Code Here

        return user;
    }

    public void objToView(Object obj) {
        UserForm var = (UserForm) obj;

        Combobox orgCB = (Combobox) getFellow("OrgId");
        Textbox userNameTB = (Textbox) getFellow("UserDutyWinUserName");
        Textbox accountTB = (Textbox) getFellow("Account");
        Textbox passwdTB = (Textbox) getFellow("Passwd");

        Iterator orgCbIt = orgCB.getItems().iterator();
        while (orgCbIt.hasNext()) {
            Comboitem orgCbItem = (Comboitem) orgCbIt.next();
            Org org = (Org) orgCbItem.getValue();

            logger.debug("" + var.getOrgId() + ", " + org.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == org.getOrgId()) {
                orgCB.setSelectedItem(orgCbItem);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());

        // B/C we only save md5 value, therefore , no need to show md5
        passwdTB.setText("");
    }
View Full Code Here

        this.refreshSubListbox(obj);
    }

    public void refreshSubListbox(Object obj) {
        UserForm var = (UserForm) obj;
        subListbox = (Listbox) getFellow("subObjListbox");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingDocList = sess.selectList("Duty.getAll", var.getUserId());
        sess = null;

        subListModel = new ListModelList(buildingDocList, true);
        subListbox.setModel(subListModel);
        subListbox.setItemRenderer(buildingDocListRenderer);
View Full Code Here

        UserDao dao = new UserDao();
        add(dao, obj);
    }

    public void delete() {
        UserForm obj = (UserForm) objListbox.getSelectedItem().getValue();
        UserDao dao = new UserDao();
        delete(dao, obj);

        // empty all fields
        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
    }
View Full Code Here

        UserForm emptyObj = new UserForm();
        objToView(emptyObj);
    }

    public void objToView(Object obj) {
        UserForm var = (UserForm) obj;

        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Textbox userNameTB = (Textbox) getFellow("userName");
        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            logger.debug("" + var.getOrgId() + ", " + s.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == s.getOrgId()) {
                orgIdCB.setSelectedItem(item);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());
        passwdTB.setText(var.getPasswd());
    }
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.vo.UserForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.