Package cli_fmw.utils

Examples of cli_fmw.utils.ErrorValue


            }
        } catch (ClipsException ex) {
            if (getColumnClass(col) == Boolean.class) {
                return false;
            } else {
                return new ErrorValue(ex);
            }
        }
    }
View Full Code Here


        switch (columnIndex) {
            case COL_SERVICE: {
                try {
                    return item.getService();
                } catch (ClipsException e) {
                    return new ErrorValue(e);
                }
            }              
            case COL_WEIGHT: return item.getWeight();
            case COL_DURATION: return item.getDefaultDuration();
            case COL_DISCOUNT: return item.getDiscount();
View Full Code Here

                    }
                    return data != null ? data.getId() : "";
                }
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
        return null;
    }
View Full Code Here

                }
                default:
                    return null;
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
    }
View Full Code Here

                    return dirSpec.getItemFromID(d.specialityID);
                default:
                    throw new IllegalArgumentException("Неверный номер столбца " + col);
            }
        } catch (DirectoryItemNotFoundException ex) {
            return new ErrorValue(ex);
        }
    }
View Full Code Here

            case COL_TITLE : return item;
            case COL_TYPE :
                try {
                    return item.getmedexamType();
                } catch (ClipsException ex) {
                    return new ErrorValue(ex);
                }
            case COL_DIRTY : return item.getDirty();
            case COL_ITEMS : {
                try {
                    String s = "";
                    int count = item.getPacketItemCount();
                    for (int i = 0; i < count; i++) {
                        s += item.getPacketItem(i).toString() + (i == count - 1 ? "" : "; ");
                    }
                    return s;
                } catch (ClipsException ex) {
                    return new ErrorValue(ex);
                }
            }
            default: throw new IndexOutOfBoundsException("Некорректный номер столбца : " + col);

        }
View Full Code Here

                case COL_COLLAB: {
                    return directionLocal.getSerrenLocal().getSerRenDirector();
                }
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
        return null;
    }
View Full Code Here

                    }
                    return data != null ? data.getId() : "";
                }
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
        return null;
    }
View Full Code Here

                    String surName = dirSurname.getItemFromID(colData.surnameID).getTitle();
                    String name = dirName.getItemFromID(colData.nameID).getTitle();
                    String pathron = dirPathron.getItemFromID(colData.pathronID).getTitle();
                    return surName + " " + name + " " + pathron;
                } catch (DirectoryItemNotFoundException ex) {
                    return new ErrorValue(ex);
                }
            }
            case COL_CLIENT: {
                if (clientList.size() == 0) {
                    return "Не найден";
View Full Code Here

                return service.getVisitType() != null ? service.getVisitType() : "";
            } else {
                return null;
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
    }
View Full Code Here

TOP

Related Classes of cli_fmw.utils.ErrorValue

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.