Package clips.main

Examples of clips.main.ClipsConfig


    abstract public String getTitle();


    public void openLpuInfo(boolean delete) throws xBaseJException, IOException {
        if (lpuInfo == null) {
            ClipsConfig cfg = ClipsConfig.getInstance();
            File dir = new File(cfg.getRegisterExportPath(), "SEND");
            dir.mkdir();
            dir = new File(dir, getDirName());
            dir.mkdir();
            File dbfFile = new File(dir, "lpu_info.dbf");
            if (delete) {
View Full Code Here


        closeLpuInfo();
        return new Pair<Date, Date>(date1, date2);
    }

    public Date getDateGenerated() {
        ClipsConfig cfg = ClipsConfig.getInstance();
        File dir = new File(cfg.getRegisterExportPath(), "SEND");
        dir.mkdir();
        dir = new File(dir, getDirName());
        dir.mkdir();
        File dbfFile = new File(dir, "reg_lpu.dbf");
        if (dbfFile.exists()) {
View Full Code Here

        }
    }

    public void openRegLpu(boolean delete) throws xBaseJException, IOException {
        if (regLpu == null) {
            ClipsConfig cfg = ClipsConfig.getInstance();
            File dir = new File(cfg.getRegisterExportPath(), "SEND");
            dir.mkdir();
            dir = new File(dir, getDirName());
            dir.mkdir();
            File dbfFile = new File(dir, "reg_lpu.dbf");
            if (delete) {
View Full Code Here

}//GEN-LAST:event_btDeleteTypeActionPerformed

private void btImageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btImageActionPerformed
    try {
        JFileChooser dlg = new JFileChooser();
        ClipsConfig cfg = ClipsConfig.getInstance();
        dlg.setCurrentDirectory(cfg.getRegisterExportPath());
        dlg.setFileSelectionMode(JFileChooser.FILES_ONLY);
        dlg.setMultiSelectionEnabled(false);
        dlg.setFileFilter(new FileNameExtensionFilter("изображения", "jpg", "jpeg", "bmp", "png", "gif"));
        int res = dlg.showOpenDialog(this);
        if (res == JFileChooser.OPEN_DIALOG) {
View Full Code Here

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void addFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addFileActionPerformed
        JFileChooser      dlg = new JFileChooser();
        ClipsConfig        cfg = ClipsConfig.getInstance();
        dlg.setCurrentDirectory(cfg.getLastOpenDialogPath());
        FileNameExtensionFilter    filter = new FileNameExtensionFilter("Файлы DICOM(*.dcm)", new String[]{"dcm", "dicm", "dicom"});
        dlg.addChoosableFileFilter(filter);
        dlg.setMultiSelectionEnabled(true);
        int          res = dlg.showOpenDialog(this);
        if (res == JFileChooser.APPROVE_OPTION){
            cfg.setLastOpenDialogPath(dlg.getCurrentDirectory());
            File[]        files = dlg.getSelectedFiles();
            if (files == null) {
                return;
            }
            DicomFileInput      input = new DicomFileInput();
View Full Code Here

    /** Creates new form PanelCreateDeseaseList */
    public PanelRegisterDlo(PageContainer container) throws ClipsException {
        super(container);
        initComponents();

        ClipsConfig cfg = ClipsConfig.getInstance();
        tfDir.setText(cfg.getRegisterExportPath().getAbsolutePath());
        tableErrors.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        tableErrors.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            @Override
            public void valueChanged(ListSelectionEvent e) {
View Full Code Here

    }
}//GEN-LAST:event_btStartActionPerformed

private void btDirSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btDirSelectActionPerformed
    JFileChooser    dlg = new JFileChooser();
    ClipsConfig cfg = ClipsConfig.getInstance();
    dlg.setCurrentDirectory(cfg.getRegisterExportPath());
    dlg.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int  res = dlg.showOpenDialog(this);
    if (res == JFileChooser.APPROVE_OPTION){
        cfg.setRegisterExportPath(dlg.getSelectedFile());
    }
    tfDir.setText(cfg.getRegisterExportPath().getAbsolutePath());
}//GEN-LAST:event_btDirSelectActionPerformed
View Full Code Here

    }
}//GEN-LAST:event_btRemoveAgregatorActionPerformed

private void addFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addFileActionPerformed
    JFileChooser      dlg = new JFileChooser();
    ClipsConfig        cfg = ClipsConfig.getInstance();
    dlg.setCurrentDirectory(cfg.getLastOpenDialogPath());
    FileNameExtensionFilter    filter = new FileNameExtensionFilter("Файлы DICOM(*.dcm)", new String[]{"dcm", "dicm", "dicom"});
    dlg.addChoosableFileFilter(filter);
    dlg.setMultiSelectionEnabled(true);
    int          res = dlg.showOpenDialog(this);
    if (res == JFileChooser.APPROVE_OPTION){
      cfg.setLastOpenDialogPath(dlg.getCurrentDirectory());
      File[]        files = dlg.getSelectedFiles();
      if (files == null) {
        return;
      }
      DicomFileInput      input = new DicomFileInput();
View Full Code Here

    private PersonFields personF;
    private RecipeFields recipeF;

    public void openPersonInfo() throws xBaseJException, IOException {
        if (regPin == null) {
            ClipsConfig cfg = ClipsConfig.getInstance();
            File dir = new File(cfg.getRegisterExportPath(), "SEND");
            dir.mkdir();
            dir = new File(dir, dloRegDir);
            dir.mkdir();
            File dbfFile = new File(dir, "REG_PIN.DBF");
            regPin = new DBF(dbfFile.getAbsolutePath(), true, "cp866");
View Full Code Here



    public void openRecipeInfo() throws xBaseJException, IOException {
        if (adPr == null) {
            ClipsConfig cfg = ClipsConfig.getInstance();
            File dir = new File(cfg.getRegisterExportPath(), "SEND");
            dir.mkdir();
            dir = new File(dir, dloRegDir);
            dir.mkdir();
            File dbfFile = new File(dir, "AD_PR.DBF");
            adPr = new DBF(dbfFile.getAbsolutePath(), true, "cp866");
View Full Code Here

TOP

Related Classes of clips.main.ClipsConfig

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.