Package realcix20.guis.views

Examples of realcix20.guis.views.ObjectInfo


           
                boolean result = false;
               
                Iterator correspondenceItemRowsIter = correspondenceRow.getRowSet().getRows().iterator();
                while (correspondenceItemRowsIter.hasNext()) {
                    Row correspondenceItemRow = (Row)correspondenceItemRowsIter.next();
                    int newR = -1;
                    if ( (ObjectUtil.findNewCell(correspondenceItemRow, "TI", "R").getColumnValue() != null) &&
                            (ObjectUtil.findNewCell(correspondenceItemRow, "TI", "R").getColumnValue().toString().trim().length() > 0) ) {
                        newR = Integer.parseInt(ObjectUtil.findNewCell(correspondenceItemRow, "TI", "R").getColumnValue().toString());
                    }
View Full Code Here


                boolean result = true;
       
                Vector rAndRis = new Vector();
                Iterator rowsIter = correspondenceRow.getRowSet().getRows().iterator();
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    int newR = -1;
                    int newRI = -1;
                    if ( (ObjectUtil.findNewCell(row, "TI", "R").getColumnValue() != null) && (ObjectUtil.findNewCell(row, "TI", "R").getColumnValue().toString().trim().length() > 0) ) {
                        newR = Integer.parseInt(ObjectUtil.findNewCell(row, "TI", "R").getColumnValue().toString());                  
                    }
View Full Code Here

           
                //Test if can regs
                boolean allTamtEqualsZero = true;
                Iterator rowsIter = correspondenceRow.getRowSet().getRows().iterator();
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    if (correspondenceRow.isAdd()) {
                        if (row != correspondenceRow) {
                            Double tempTAmt = Double.parseDouble(ObjectUtil.findNewCell(row, "TI", "TAMT").getColumnValue().toString());
                            if (tempTAmt != 0.0) {
                                allTamtEqualsZero = false;
                                break;
                            }
                        }
                    } else {
                        Double tempTAmt = Double.parseDouble(ObjectUtil.findNewCell(row, "TI", "TAMT").getColumnValue().toString());
                        if (tempTAmt != 0.0) {
                            allTamtEqualsZero = false;
                            break;
                        }
                    }
                }
                if (allTamtEqualsZero) {
                    return -1;
                }
           
                //delete oldR
                Vector newRAndOldRs = new Vector();//data struct: new_R-newR
                rowsIter = correspondenceRow.getRowSet().getRows().iterator();
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    int oldR = -1;
                    int newR = -1;
                    if ( (ObjectUtil.findOldCell(row, "TI", "R").getColumnValue() != null) && (ObjectUtil.findOldCell(row, "TI", "R").getColumnValue().toString().trim().length() > 0) ) {
                        oldR = Integer.parseInt(ObjectUtil.findOldCell(row, "TI", "R").getColumnValue().toString());                  
                    }
                    if ( (ObjectUtil.findNewCell(row, "TI", "R").getColumnValue() != null) && (ObjectUtil.findNewCell(row, "TI", "R").getColumnValue().toString().trim().length() > 0) ) {
                        newR = Integer.parseInt(ObjectUtil.findNewCell(row, "TI", "R").getColumnValue().toString());                  
                    }
                    if (!row.isDelete()) {
                        if (oldR != -1) {
                            TaxClass.deleteR(oldR);//USE TaxClass
                            TaxClass.deleteRI(oldR);//USE TaxClass
                        }
                        if (newR != -1) {
                            TaxClass.deleteR(newR);//USE TaxClass
                            TaxClass.deleteRI(newR);//USE TaxClass
                        }
                    } else {
                        if (!row.isAdd()) {
                            if (oldR != -1) {
                                TaxClass.deleteR(oldR);//USE TaxClass
                                TaxClass.deleteRI(oldR);//USE TaxClass
                            }
                        }
                    }                   
                }               
                rowsIter = correspondenceRow.getRowSet().getRows().iterator();
                int new_R = TaxClass.getMAXR() + 1;
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    int newR = -1;
                    if ( (ObjectUtil.findNewCell(row, "TI", "R").getColumnValue() != null) && (ObjectUtil.findNewCell(row, "TI", "R").getColumnValue().toString().trim().length() > 0) ) {
                        newR = Integer.parseInt(ObjectUtil.findNewCell(row, "TI", "R").getColumnValue().toString());                  
                    }
                    String str = new_R + "-" + newR;
                    newRAndOldRs.add(str);               
                }
               
                //add new R
                rowsIter = correspondenceRow.getRowSet().getRows().iterator();
                Iterator newRAndOldRsIter = newRAndOldRs.iterator();
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    String str = (String)newRAndOldRsIter.next();
                    StringTokenizer st = new StringTokenizer(str, "-");    
                    String tDate = ObjectUtil.findNewCell(correspondenceRow, "T", "DUE").getColumnValue().toString();
                    String txt512 = "";
                    if (ObjectUtil.findNewCell(correspondenceRow, "T", "TXT256").getColumnValue() != null)
                        txt512 = ObjectUtil.findNewCell(correspondenceRow, "T", "TXT256").getColumnValue().toString();
                    new_R = Integer.parseInt(st.nextElement().toString());
                    TaxClass.insertr(new_R, tDate, txt512);//USE TaxClass                             
                }
               
                //add newri
                correspondenceRow.setModify(true);
                rowsIter = correspondenceRow.getRowSet().getRows().iterator();
                newRAndOldRsIter = newRAndOldRs.iterator();
                int currentRI = 1;
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    String str = (String)newRAndOldRsIter.next();
                    StringTokenizer st = new StringTokenizer(str, "-");
                    String tDate = ObjectUtil.findNewCell(correspondenceRow, "T", "DUE").getColumnValue().toString();
                    String txt512 = "";
                    String ld = CorrespondenceClass.getLD(correspondenceRow);
View Full Code Here

   
    protected void contactRelationship1_11(final JComponent component, final JComponent childComponent) {               
       
        //set initial value
        if (ComponentManager.getValue(component) != null) {
            CurrencyPlugin cp = CurrencyPlugin.getInstance();
            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
            int fraction = cp.getFraction(ComponentManager.getValue(component).toString());
            if (fraction > 0) {
                sb.append(cp.getFpoint());
            }
            for (int i = 1; i <= fraction; i++) {
                sb.append("0");
            }
            DecimalFormat df = new DecimalFormat(sb.toString());
            NumberFormatter nf = new NumberFormatter(df);
            DefaultFormatterFactory factory = new DefaultFormatterFactory(nf);
            ((JFormattedTextField)childComponent).setFormatterFactory(factory);
        }
       
        ((JComboBox)component).addActionListener(
                new ActionAdapter() {
           
                    public void actionPerformed(ActionEvent e) {
                       
                        if (ComponentManager.getValue(component) != null) {
                            CurrencyPlugin cp = CurrencyPlugin.getInstance();
                            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                            int fraction = cp.getFraction(ComponentManager.getValue(component).toString());
                            if (fraction > 0) {
                                sb.append(cp.getFpoint());
                            }
                            for (int i = 1; i <= fraction; i++) {
                                sb.append("0");
                            }
                            DecimalFormat df = new DecimalFormat(sb.toString());
View Full Code Here

   
    protected void contactRelationship1_12(final JComponent component, final JComponent childComponent) {               
       
        //set initial value
        if (ComponentManager.getValue(component) != null) {
            CurrencyPlugin cp = CurrencyPlugin.getInstance();
            UomPlugin up = UomPlugin.getInstance();
            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
            int fraction = up.getFraction(ComponentManager.getValue(component).toString());
            if (fraction > 0) {
                sb.append(".");
            }
            for (int i = 1; i <= fraction; i++) {
                sb.append("0");
            }
            DecimalFormat df = new DecimalFormat(sb.toString());
            NumberFormatter nf = new NumberFormatter(df);
            DefaultFormatterFactory factory = new DefaultFormatterFactory(nf);
            ((JFormattedTextField)childComponent).setFormatterFactory(factory);
        }
       
        ((JComboBox)component).addActionListener(
                new ActionAdapter() {
           
                    public void actionPerformed(ActionEvent e) {
                                               
                        if (ComponentManager.getValue(component) != null) {
                            CurrencyPlugin cp = CurrencyPlugin.getInstance();
                            UomPlugin up = UomPlugin.getInstance();
                            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                            int fraction = up.getFraction(ComponentManager.getValue(component).toString());
                            if (fraction > 0) {
                                sb.append(".");
                            }
                            for (int i = 1; i <= fraction; i++) {
View Full Code Here

                JMonthPicker monthPicker = new JMonthPicker();
                component = monthPicker;               
                break;               
            case 11:
            case 12:               
                CurrencyPlugin cp = CurrencyPlugin.getInstance();
                //set default format,Ĭ�ϵ����ָ�ʽ������               
                StringBuffer sb = new StringBuffer("###");                    
                sb.append(cp.getSepor() + "###");
                DecimalFormat  df = new DecimalFormat(sb.toString());
                JFormattedTextField formattedTextField = new JFormattedTextField(df);
                component = formattedTextField;               
                break;               
            case 16:               
                cp = CurrencyPlugin.getInstance();               
                //set format
                sb = new StringBuffer("###");
                sb.append(cp.getSepor() + "###");
                int fraction = Integer.parseInt(GlobalValueManager.getValue("APPLIATION.DEFFRACTION"));
                if (fraction > 0) {
                    sb.append(cp.getFpoint());
                }
                for (int i = 1; i <= fraction; i++) {
                    sb.append("0");
                }
                df = new DecimalFormat(sb.toString());               
View Full Code Here

    protected void contactRelationship1_12(final JComponent component, final JComponent childComponent) {               
       
        //set initial value
        if (ComponentManager.getValue(component) != null) {
            CurrencyPlugin cp = CurrencyPlugin.getInstance();
            UomPlugin up = UomPlugin.getInstance();
            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
            int fraction = up.getFraction(ComponentManager.getValue(component).toString());
            if (fraction > 0) {
                sb.append(".");
            }
            for (int i = 1; i <= fraction; i++) {
                sb.append("0");
            }
            DecimalFormat df = new DecimalFormat(sb.toString());
            NumberFormatter nf = new NumberFormatter(df);
            DefaultFormatterFactory factory = new DefaultFormatterFactory(nf);
            ((JFormattedTextField)childComponent).setFormatterFactory(factory);
        }
       
        ((JComboBox)component).addActionListener(
                new ActionAdapter() {
           
                    public void actionPerformed(ActionEvent e) {
                                               
                        if (ComponentManager.getValue(component) != null) {
                            CurrencyPlugin cp = CurrencyPlugin.getInstance();
                            UomPlugin up = UomPlugin.getInstance();
                            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                            int fraction = up.getFraction(ComponentManager.getValue(component).toString());
                            if (fraction > 0) {
                                sb.append(".");
                            }
                            for (int i = 1; i <= fraction; i++) {
                                sb.append("0");
View Full Code Here

            value = new Boolean(checkBox.isSelected());
        } else if (component instanceof DetailText) {//31
            DetailText detailText = (DetailText)component;
            value = detailText.getValue();
        } else if (component instanceof DetailList) {//81
            DetailList detailList = (DetailList)component;
            value = detailList.getValue();
        } else if (component instanceof XrCalculator) {
            XrCalculator xrCalculator = (XrCalculator)component;
            value = xrCalculator.getValue();
        } else if (component instanceof PasswordEdit) {
            PasswordEdit passwordEdit = (PasswordEdit)component;
View Full Code Here

                DetailText detailText = new DetailText();
                component = detailText;               
                break;               
            case 81:
            case 87:               
                DetailList detailList = new DetailList(column);
                detailList.setEditabled(false);
                component = detailList;               
                break;               
            case 83:               
                XrCalculator xrCalculator = new XrCalculator(column);
                component = xrCalculator;               
                break;               
            case 82:               
                detailList = new DetailList(column);
                detailList.setEditabled(true);
                component = detailList;               
                break;                                                  
            case 4:               
                PasswordEdit passwordEdit = new PasswordEdit(column);
                component = passwordEdit;               
View Full Code Here

            value = label.getText();
        } else if (component instanceof JCheckBox) {
            JCheckBox checkBox = (JCheckBox)component;
            value = new Boolean(checkBox.isSelected());
        } else if (component instanceof DetailText) {//31
            DetailText detailText = (DetailText)component;
            value = detailText.getValue();
        } else if (component instanceof DetailList) {//81
            DetailList detailList = (DetailList)component;
            value = detailList.getValue();
        } else if (component instanceof XrCalculator) {
            XrCalculator xrCalculator = (XrCalculator)component;
View Full Code Here

TOP

Related Classes of realcix20.guis.views.ObjectInfo

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.