Package realcix20.classes.basic

Examples of realcix20.classes.basic.Row


            && (clsId != 150)
            && (clsId != 160)
            && (clsId != 190)
            && (clsId != 230)
            && (clsId != 270) ) {
            Row newRow = new Row(getContainer().getCurrentObject().getRowType());
            getContainer().getCurrentObject().getRows().add(newRow);
            new ObjectEdit(getContainer(), getContainer().getCurrentObject(), newRow, "Add");
            getContainer().setEnabled(false);  
        }                       
    }
View Full Code Here


    }
   
    private void transferCorrespondence(CixFile cixFile) {
       
            Vector data = cixFile.decryData(cixFile.getPublicKey());           
            Row correspondenceRow = (Row)data.get(0);
           
            JTree tree = getContainer().getTree();
            for (int i = 1; i <= tree.getRowCount(); i++) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                if (node != null) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();                   
                    //If it is a corresponedence class
                    if ( (oj.flag.equals("object")) && (oj.clsId == 520) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));                               
                            break;
                    }
                }
            }           
           
            Row newRow = ObjectUtil.cloneRow(getContainer().getCurrentObject(), correspondenceRow);
            newRow.setModify(false);
            newRow.setAdd(true);
           
            newRow.getRowSet().getRows().clear();
           
            Cell urtCell = ObjectUtil.findNewCell(newRow, "T", "URT");
            Cell tCell = ObjectUtil.findNewCell(newRow, "T", "T");
            urtCell.setColumnValue(tCell.getColumnValue());
            tCell.setColumnValue(null);
           
            Vector noEncryData = cixFile.getNoEncryData();
            String ns = (String)noEncryData.get(0);
            String p = (String)noEncryData.get(1);
            String pa = (String)noEncryData.get(2);
            Cell nsCell = ObjectUtil.findNewCell(newRow, "T", "NS");
            nsCell.setColumnValue(ns);
            Cell pCell = ObjectUtil.findNewCell(newRow, "T", "P");
            pCell.setColumnValue(p);
            Cell paCell = ObjectUtil.findNewCell(newRow, "T", "PA");
            paCell.setColumnValue(pa);           
           
            Cell createdbyCell = ObjectUtil.findNewCell(newRow, "T", "CREATEDBY");
            createdbyCell.setColumnValue(null);
            Cell createdCell = ObjectUtil.findNewCell(newRow, "T", "CREATED");
            createdCell.setColumnValue(null);
            Cell lastchangedbyCell = ObjectUtil.findNewCell(newRow, "T", "LASTCHANGEDBY");
            lastchangedbyCell.setColumnValue(null);
            Cell lastchangedCell = ObjectUtil.findNewCell(newRow, "T", "LASTCHANGED");
            lastchangedCell.setColumnValue(null);                       
           
            Iterator rowsIter = correspondenceRow.getRowSet().getRows().iterator();
            while (rowsIter.hasNext()) {
                Row row = (Row)rowsIter.next();
                if (!row.isDelete()) {
                    Row cloneRow = ObjectUtil.cloneRow(getContainer().getCurrentObject(), row);                   
                    Cell tamtCell = ObjectUtil.findNewCell(cloneRow, "TI", "TAMT");
                    if (tamtCell.getColumnValue() == null) {
                        tamtCell.setColumnValue(new Long(0));
                    } else {
                        Number number = (Number)tamtCell.getColumnValue();
View Full Code Here

    }
   
    private void notValidInvite(CixFile cixFile) {
       
            Vector data = cixFile.decryData(cixFile.getPublicKey());
            Row partnerRow = (Row)data.get(0);
            Cell urnsCell = ObjectUtil.findNewCell(partnerRow, "P", "URNS");
            Cell urpCell = ObjectUtil.findNewCell(partnerRow, "P", "URP");
            String str = TxtManager.getTxt("PARTNER.NOTFINDUSER");
            str = str.replaceAll("%", (String)urnsCell.getColumnValue());
            str = str.replaceAll("#", (String)urpCell.getColumnValue());
View Full Code Here

                    }
                }
            }
       
            Vector data = cixFile.decryData(cixFile.getPublicKey());           
            Row partnerRow = (Row)data.get(0);
            Vector pubKeys = (Vector)((Vector)data.get(1)).get(0);
            Vector pas = (Vector)((Vector)data.get(1)).get(1);
            Vector urpas = (Vector)((Vector)data.get(1)).get(2);
            Cell urnsCell = ObjectUtil.findNewCell(partnerRow, "P", "URNS");
            Cell urpCell = ObjectUtil.findNewCell(partnerRow, "P", "URP");
            String urns = (String)urnsCell.getColumnValue();
            String urp = (String)urpCell.getColumnValue();
           
            Row mainRow = null;
            Iterator rowsIter = getContainer().getCurrentObject().getRows().iterator();
            while (rowsIter.hasNext()) {
                Row row = (Row)rowsIter.next();
                Cell nsCell = ObjectUtil.findNewCell(row, "P", "NS");
                Cell pCell = ObjectUtil.findNewCell(row, "P", "P");
                String ns = (String)nsCell.getColumnValue();
                String p = (String)pCell.getColumnValue();
                if ( (ns.equals(urns)) && (p.equals(urp)) ) {
                    mainRow = row;
                    break;
                }
            }
           
            Cell nsCell = ObjectUtil.findNewCell(partnerRow, "P", "NS");
            Cell pCell = ObjectUtil.findNewCell(partnerRow, "P", "P");
            urnsCell = ObjectUtil.findNewCell(mainRow, "P", "URNS");
            urpCell = ObjectUtil.findNewCell(mainRow, "P", "URP");
            urnsCell.setColumnValue(nsCell.getColumnValue());
            urpCell.setColumnValue(pCell.getColumnValue());
            mainRow.setModify(true);
           
            Iterator childRowsIter = mainRow.getRowSet().getRows().iterator();
            while (childRowsIter.hasNext()) {
                Row childRow = (Row)childRowsIter.next();
                Cell paCell = ObjectUtil.findNewCell(childRow, "PA", "PA");
                String pa = (String)paCell.getColumnValue();
                for (int i = 0; i < urpas.size(); i++) {
                    String urpa = (String)urpas.get(i);
                    if (urpa.equals(pa)) {
                        Cell pubKeyCell = ObjectUtil.findNewCell(childRow, "PA", "PUBKEY");
                        Cell urpaCell = ObjectUtil.findNewCell(childRow, "PA", "URPA");
                        urpaCell.setColumnValue(pas.get(i));
                        pubKeyCell.setColumnValue(pubKeys.get(i));
                        childRow.setModify(true);
                    }
                }
            }                        
           
            getContainer().getCurrentObject().classUpdate_WholeObject(mainRow, false);
View Full Code Here

    }
   
    private void receiveAnInvite(CixFile cixFile) {
       
            Vector data = cixFile.decryData(cixFile.getPublicKey());
            Row partnerRow = (Row)data.get(0);
            Vector pubKeys = (Vector)((Vector)data.get(1)).get(0);
            Vector pas = (Vector)((Vector)data.get(1)).get(1);     
           
            JTree tree = getContainer().getTree();
            //test
            for (int i = 1; i <= tree.getRowCount(); i++) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                if (node != null) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();                   
                    //If it is a reg class
                    if ( (oj.flag.equals("object")) && (oj.clsId == 250) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));                               
                            break;
                    }
                }
            }
           
            Row newRow = new Row(getContainer().getCurrentObject().getRowType());
            newRow.setAdd(true);
            Cell nsCell = ObjectUtil.findNewCell(partnerRow, "P", "NS");
            Cell pCell = ObjectUtil.findNewCell(partnerRow, "P", "P");
            Cell urnsCell = ObjectUtil.findNewCell(newRow, "P", "URNS");
            Cell urpCell = ObjectUtil.findNewCell(newRow, "P", "URP");
            urnsCell.setColumnValue(nsCell.getColumnValue());
            urpCell.setColumnValue(pCell.getColumnValue());
           
            Iterator partnerChildRowsIter = partnerRow.getRowSet().getRows().iterator();
            int currentChildRow = 0;
            while (partnerChildRowsIter.hasNext()) {
                Row partnerChildRow = (Row)partnerChildRowsIter.next();
                if ( (!partnerChildRow.isDelete()) && (partnerChildRow != partnerRow) ) {
                    currentChildRow++;
                    Row newChildRow = ObjectUtil.cloneRow(getContainer().getCurrentObject(), newRow);
                                       
                    Cell paCell = ObjectUtil.findNewCell(partnerChildRow, "PA", "PA");
                    Cell urpaCell = ObjectUtil.findNewCell(newChildRow, "PA", "URPA");
                    urpaCell.setColumnValue(paCell.getColumnValue());
                   
                    for (int i = 0; i < pas.size(); i++) {
                        String pa = (String)pas.get(i);                       
                        if (pa.equals((String)paCell.getColumnValue())) {
                            Cell pubKeyCell = ObjectUtil.findNewCell(newChildRow, "PA", "PUBKEY");
                            pubKeyCell.setColumnValue(pubKeys.get(i));
                        }
                    }
                   
                    paCell = ObjectUtil.findNewCell(newChildRow, "PA", "PA");
                    paCell.setColumnValue("PA" + currentChildRow);
                   
                    newChildRow.setAdd(true);
                    newRow.getRowSet().getRows().add(newChildRow);
                }
            }
                       
            getContainer().getCurrentObject().getRows().add(newRow);
View Full Code Here

            return result;           
        }
       
        public static void analyPartnerCIXFile(Vector datas, MainListener listener) {
           
                Row partnerRow = null;
                Vector partnerAccountRows = null;
                Vector publicKeys = null;
                Vector banks = null;
                Vector addresses = null;
                Row familyRow = null;
                Vector mePartnerAccountRows = null;
                partnerRow = (Row)datas.get(0);
                partnerAccountRows = (Vector)datas.get(1);
                publicKeys = (Vector)datas.get(2);
                banks = (Vector)datas.get(3);
                addresses = (Vector)datas.get(4);
                familyRow = (Row)datas.get(5);
                mePartnerAccountRows = (Vector)datas.get(6);               
               
                Iterator partnerAccountRowsIter = partnerAccountRows.iterator();
                Iterator publicKeysIter = publicKeys.iterator();
                Iterator mePartnerAccountRowsIter = mePartnerAccountRows.iterator();               
               
                //Output
                while (partnerAccountRowsIter.hasNext()) {
                    Row row = (Row)partnerAccountRowsIter.next();
                    row.print();
                }                                               
               
                Vector newPartnerAccountRows = new Vector();
                Vector newPublicKeys = new Vector();
                Vector newMePartnerAccountRows = new Vector();
                Vector oldPartnerAccountRows = new Vector();
                Vector oldPublicKeys = new Vector();
                Vector oldMePartnerAccountRows = new Vector();
                Vector ruserPartnerRow;
               
                boolean useFamilyOrRuser = false;//true:family / false:ruser
                int n = 0;
                String ruser = null;
                Row templatePartnerAccountRow = null;
                partnerAccountRowsIter = partnerAccountRows.iterator();
                while (partnerAccountRowsIter.hasNext()) {
                    Row partnerAccountRow = (Row)partnerAccountRowsIter.next();
                    PublicKey publicKey = (PublicKey)publicKeysIter.next();
                    Row mePartnerAccountRow = (Row)mePartnerAccountRowsIter.next();
                    String urns = null;
                    String urp = null;
                    String urpa = null;
                    if ( (ObjectUtil.findNewCell(partnerAccountRow, "PA", "URNS").getColumnValue() != null) &&
                            (!ObjectUtil.findNewCell(partnerAccountRow, "PA", "URNS").toString().trim().equals("")) )
                        urns = (String)ObjectUtil.findNewCell(partnerAccountRow, "PA", "URNS").getColumnValue();
                    if ( (ObjectUtil.findNewCell(partnerAccountRow, "PA", "URP").getColumnValue() != null) &&
                            (!ObjectUtil.findNewCell(partnerAccountRow, "PA", "URP").toString().trim().equals("")) )
                        urp = (String)ObjectUtil.findNewCell(partnerAccountRow, "PA", "URP").getColumnValue();
                    if ( (ObjectUtil.findNewCell(partnerAccountRow, "PA", "URPA").getColumnValue() != null) &&
                            (!ObjectUtil.findNewCell(partnerAccountRow, "PA", "URPA").toString().trim().equals("")) )
                        urpa = (String)ObjectUtil.findNewCell(partnerAccountRow, "PA", "URPA").getColumnValue();
//                    System.err.println("urns = " + urns + "   urp = " + urp + "   urpa = " + urpa);
//                    System.err.println("ObjectUtil.findNewCell(partnerAccountRow, 'PA', 'RUSER').getColumnValue() = " +
//                            ObjectUtil.findNewCell(partnerAccountRow, "PA", "RUSER").getColumnValue());
                    templatePartnerAccountRow = mePartnerAccountRow;
                    if ( (urns == null) || (urp == null) || (urns.trim().equals("")) || (urp.trim().equals("")) ) {
                        //templatePartnerAccountRow = mePartnerAccountRow;
                        /*if (n == 0) {
                            ruser = ObjectUtil.findNewCell(partnerAccountRow, "PA", "RUSER").getColumnValue().toString();                           
                        } else if (!useFamilyOrRuser) {
                            if (!ruser.equals(ObjectUtil.findNewCell(partnerAccountRow, "PA", "RUSER").getColumnValue().toString()))
                                useFamilyOrRuser = true;
                        }*/  
                        n++;
                        newPartnerAccountRows.add(partnerAccountRow);
                        newPublicKeys.add(publicKey);
                        newMePartnerAccountRows.add(mePartnerAccountRow);
                    } else {
                        oldPartnerAccountRows.add(partnerAccountRow);
                        oldPublicKeys.add(publicKey);
                        oldMePartnerAccountRows.add(mePartnerAccountRow);
                    }                
                }
//                System.err.println("newPartnerAccountRows.size() = " + newPartnerAccountRows.size());
//                System.err.println("oldMePartnerAccountRows.size() = " + oldMePartnerAccountRows.size());
//                System.err.println("banks.size() = " + banks.size());
//                System.err.println("addresses.size() = " + addresses.size());
               
                DialogManager.showMessageDialog(listener.getContainer(), TxtManager.getTxt("INFORMATION.IMPORT.IMPORTSUCCESS"));
                boolean hasNewPartnerAccount = (newPartnerAccountRows.size() > 0);
                boolean hasOldPartnerAccount = (oldPartnerAccountRows.size() > 0);
               
                if (hasOldPartnerAccount) {                   
                    GlobalValueManager.setValue("APPLICATION.IMPORT", "import");
                    DialogManager.showMessageDialog(listener.getContainer(), TxtManager.getTxt("INFORMATION.IMPORT.UPDATEPARTNERPART"));
                    StringBuffer sb = new StringBuffer("");
                    Iterator oldPartnerAccountRowsIter = oldPartnerAccountRows.iterator();
                    Iterator oldPublicKeysIter = oldPublicKeys.iterator();
                    Iterator oldMePartnerAccountRowsIter = oldMePartnerAccountRows.iterator();
                    PartnerClass partner = (PartnerClass)ClassManager.createClass(250);
                    while (oldPartnerAccountRowsIter.hasNext()) {
                        Row oldPartnerAccountRow = (Row)oldPartnerAccountRowsIter.next();
                        PublicKey publicKey = (PublicKey)oldPublicKeysIter.next();
                        Row oldMePartnerAccountRow = (Row)oldMePartnerAccountRowsIter.next();
                        String urns = null;
                        String urp = null;
                        String urpa = null;
                        if ( (ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URNS").getColumnValue() != null) &&
                                (ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URNS").toString().trim().length() > 0) )
                            urns = ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URNS").getColumnValue().toString();
                        if ( (ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URP").getColumnValue() != null) &&
                                (ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URP").toString().trim().length() > 0) )
                            urp = ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URP").getColumnValue().toString();
                        if ( (ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URPA").getColumnValue() != null) &&
                                (ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URPA").toString().trim().length() > 0) )
                            urpa = ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "URPA").getColumnValue().toString();
                       
                        System.err.println("old urns = " + urns + "   urp = " + urp + "  urpa = " + urpa);
                       
                        if ( (urpa != null) && (!urpa.trim().equals("")) ) {
                            Row partnerAccountRow = findPartnerAccountRow(partner, urns, urp, urpa);
                            if (partnerAccountRow == null) {
                                sb.append(TxtManager.getTxt("INFORMATION.IMPORT.UPDATEPARTNERFAILPART1"));
                                sb.append(urns + "/" + urp + "/" + urpa + " " + TxtManager.getTxt("INFORMATION.IMPORT.UPDATEPARTNERFAILPART2") + "\n");
                            } else {
                                partnerAccountRow.setModify(true);
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "CO").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "CO").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "FNAME").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "FNAME").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "LNAME").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "LNAME").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "DOMAIN").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "DOMAIN").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "EMAIL").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "EMAIL").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "PA", "URNS").setColumnValue(ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "NS").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "PA", "URP").setColumnValue(ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "P").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "PA", "URPA").setColumnValue(ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "PA").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "PA", "PUBKEY").setColumnValue(publicKey);
                                ObjectUtil.findNewCell(partnerAccountRow, "PA", "BLOCK").setColumnValue(false);
                                ObjectUtil.findNewCell(partnerAccountRow, "PA", "APPPASS").setColumnValue(null);
                                partner.classUpdate_WholeObject(partnerAccountRow, false);
                                /*Iterator addressRowsIter = addresses.iterator();
                                while (addressRowsIter.hasNext()) {
                                    Row addressRow = (Row)addressRowsIter.next();
                                    updateAddress(addressRow, urns, urp);
                                }*/
                                updateAddresses(addresses, urns, urp);
                                Iterator bankRowsIter = banks.iterator();
                                while (bankRowsIter.hasNext()) {
                                    Row bankRow = (Row)bankRowsIter.next();
                                    updateBank(bankRow, urns, urp);
                                }
                                sb.append(TxtManager.getTxt("INFORMATION.IMPORT.UPDATEPARTNERSUCCESSPART1"));
                                sb.append(urns + "/" + urp + "/" + urpa + " " + TxtManager.getTxt("INFORMATION.IMPORT.UPDATEPARTNERSUCCESSPART2") + "\n");
                            }
                        } else {
                            Row partnerAccountRow = findPartnerRow(partner, urns, urp);
                            if (partnerAccountRow == null) {
                                sb.append(TxtManager.getTxt("INFORMATION.IMPORT.ADDNEWPARTNERACCOUNTFAILPART1"));
                                sb.append(urns + "/" + urp + " " + TxtManager.getTxt("INFORMATION.IMPORT.ADDNEWPARTNERACCOUNTFAILPART2") + "\n");
                            } else {
                                Row newAccountRow = ObjectUtil.cloneRow(partner, partnerAccountRow);
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "CO").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "CO").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "FNAME").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "FNAME").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "LNAME").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "LNAME").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "DOMAIN").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "DOMAIN").getColumnValue());
                                ObjectUtil.findNewCell(partnerAccountRow, "P", "EMAIL").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "EMAIL").getColumnValue());
                                ObjectUtil.findNewCell(newAccountRow, "PA", "URNS").setColumnValue(ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "NS").getColumnValue());
                                ObjectUtil.findNewCell(newAccountRow, "PA", "URP").setColumnValue(ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "P").getColumnValue());
                                ObjectUtil.findNewCell(newAccountRow, "PA", "URPA").setColumnValue(ObjectUtil.findNewCell(oldPartnerAccountRow, "PA", "PA").getColumnValue());
                                ObjectUtil.findNewCell(newAccountRow, "PA", "PUBKEY").setColumnValue(publicKey);
                                ObjectUtil.findNewCell(newAccountRow, "PA", "PA").setColumnValue(getNewPA(urns, urp));
                                ObjectUtil.findNewCell(newAccountRow, "PA", "BLOCK").setColumnValue(false);
                                ObjectUtil.findNewCell(newAccountRow, "PA", "APPPASS").setColumnValue(null);
                                newAccountRow.setAdd(true);
                                partnerAccountRow.getRowSet().getRows().add(newAccountRow);
                                sb.append(TxtManager.getTxt("INFORMATION.IMPORT.ADDNEWPARTNERACCOUNTSUCCESSPART1"));
                                sb.append(urns + "/" + urp + "/" + getNewPA(urns, urp) + " " + TxtManager.getTxt("INFORMATION.IMPORT.ADDNEWPARTNERACCOUNTSUCCESSPART2") + "\n");
                                partner.classUpdate_WholeObject(partnerAccountRow, false);
                                updateAddresses(addresses, urns, urp);
                                /*Iterator addressRowsIter = addresses.iterator();
                                while (addressRowsIter.hasNext()) {
                                    Row addressRow = (Row)addressRowsIter.next();
                                    updateAddress(addressRow, urns, urp);
                                }*/
                                Iterator bankRowsIter = banks.iterator();
                                while (bankRowsIter.hasNext()) {
                                    Row bankRow = (Row)bankRowsIter.next();
                                    updateBank(bankRow, urns, urp);
                                }
                            }
                        }                     
                    }
                    DialogManager.showMessageDialog(listener.getContainer(), sb.toString());
                    GlobalValueManager.setValue("APPLICATION.IMPORT", "noimport");
                }
                listener.showObjectSettingView(250);
                listener.getContainer().updateTable();
                if (hasNewPartnerAccount) {
                    GlobalValueManager.setValue("APPLICATION.IMPORT", "import");
                    DialogManager.showMessageDialog(listener.getContainer(), TxtManager.getTxt("INFORMATION.IMPORT.CREATEPARTNERPART"));
                    Row newRow = new Row(listener.getContainer().getCurrentObject().getRowType());
                   
                    ObjectUtil.findNewCell(newRow, "P", "CO").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "CO").getColumnValue());
                    ObjectUtil.findNewCell(newRow, "P", "FNAME").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "FNAME").getColumnValue());
                    ObjectUtil.findNewCell(newRow, "P", "LNAME").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "LNAME").getColumnValue());
                    ObjectUtil.findNewCell(newRow, "P", "DOMAIN").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "DOMAIN").getColumnValue());
                    ObjectUtil.findNewCell(newRow, "P", "EMAIL").setColumnValue(ObjectUtil.findNewCell(templatePartnerAccountRow, "P", "EMAIL").getColumnValue());
                                       
                    Iterator newPartnerAccountRowsIter = newPartnerAccountRows.iterator();
                    Iterator newPublicKeysIter = newPublicKeys.iterator();
                    Iterator newMePartnerAccountRowsIter = newMePartnerAccountRows.iterator();
                    n = 1;
                    while (newPartnerAccountRowsIter.hasNext()) {
                        Row templateRow = (Row)newPartnerAccountRowsIter.next();
                        PublicKey publicKey = (PublicKey)newPublicKeysIter.next();
                        Row mePartnerAccountRow = (Row)newMePartnerAccountRowsIter.next();
                        Row childRow = ObjectUtil.addnewChildRow(listener.getContainer().getCurrentObject(), templateRow);
                        ObjectUtil.findNewCell(childRow, "PA", "URNS").setColumnValue(ObjectUtil.findNewCell(childRow, "PA", "NS").getColumnValue());
                        ObjectUtil.findNewCell(childRow, "PA", "NS").setColumnValue(null);
                        ObjectUtil.findNewCell(childRow, "PA", "URP").setColumnValue(ObjectUtil.findNewCell(childRow, "PA", "P").getColumnValue());
                        ObjectUtil.findNewCell(childRow, "PA", "P").setColumnValue(null);
                        ObjectUtil.findNewCell(childRow, "PA", "URPA").setColumnValue(ObjectUtil.findNewCell(childRow, "PA", "PA").getColumnValue());
View Full Code Here

        }
       
        public static void updateAddresses(Vector addressRows, String ns, String p) {
            AddressClass address = (AddressClass)ClassManager.createClass(280);           
            Iterator addressRowsIter = addressRows.iterator();
            Row tempAddressRow = null;
            while (addressRowsIter.hasNext()) {
                addressRowsIter.next();
                tempAddressRow = findAddressRow(address, ns, p);
                if (tempAddressRow != null) {
                    address.classDelete_WholeObject(tempAddressRow);
                }
            }
            addressRowsIter = addressRows.iterator();
            while (addressRowsIter.hasNext()) {
                Row addressRow = (Row)addressRowsIter.next();
                tempAddressRow = ObjectUtil.cloneRow(address, addressRow);
                ObjectUtil.findNewCell(tempAddressRow, "ADDR", "ADDR").setColumnValue(getMAXADD() + 1);
                ObjectUtil.findNewCell(tempAddressRow, "ADDR", "NS").setColumnValue(ns);
                ObjectUtil.findNewCell(tempAddressRow, "ADDR", "P").setColumnValue(p);
                address.getRows().add(tempAddressRow);
View Full Code Here

        public static void updateAddress(Row addressRow, String ns, String p) {
           
                System.err.println("addressRow = " );
                addressRow.print();
                AddressClass address = (AddressClass)ClassManager.createClass(280);
                Row tempAddressRow = findAddressRow(address, ns, p);
                if (tempAddressRow != null) {
                    address.classDelete_WholeObject(tempAddressRow);
                }
                tempAddressRow = ObjectUtil.cloneRow(address, addressRow);
                ObjectUtil.findNewCell(tempAddressRow, "ADDR", "ADDR").setColumnValue(getMAXADD() + 1);
View Full Code Here

        public static void updateBank(Row bankRow, String ns, String p) {
           
                System.err.println("bankRow = ");
                bankRow.print();
                PartnerBankClass bank = (PartnerBankClass)ClassManager.createClass(260);               
                Row tempBankRow = ObjectUtil.cloneRow(bank, bankRow);
                ObjectUtil.findNewCell(tempBankRow, "PB", "NS").setColumnValue(ns);
                ObjectUtil.findNewCell(tempBankRow, "PB", "P").setColumnValue(p);
                System.err.println("ns = " + ns);
                System.err.println("tempBankRow = ");
                tempBankRow.print();
                bank.classDelete_WholeObject(tempBankRow);                               
                bank.getRows().add(tempBankRow);               
                bank.classInsert_WholeObject(tempBankRow, false);
           
        }
View Full Code Here

           
        }
       
        public static Row findBankRow(PartnerBankClass bank, String ns, String p) {
           
                Row bankRow = null;
                Iterator bankRowsIter = bank.getRows().iterator();
                while (bankRowsIter.hasNext()) {
                    Row tempBankRow = (Row)bankRowsIter.next();
                    if ( (ObjectUtil.findNewCell(tempBankRow, "PB", "NS").getColumnValue().equals(ns)) &&
                            (ObjectUtil.findNewCell(tempBankRow, "PB", "P").getColumnValue().equals(p)) ) {
                        bankRow = tempBankRow;
                        break;
                    }
View Full Code Here

TOP

Related Classes of realcix20.classes.basic.Row

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.