Optinomic / apps

Optinomic applications
1 stars 2 forks source link

Export-Toolbox Entwicklung neue Falltypenfilter #164

Closed SonjaKaufmann closed 6 years ago

SonjaKaufmann commented 6 years ago

Es wäre toll, wenn es in der neuen Export-Toolbox (Entwicklung) bei dem Filter "Falltypen" auch die folgenden Optionen gäbe:

Denn das Eingabedatum wie in der alten Version ist ein relativ unscharfer Filter, der immer zu viel rauslöschen führt. Wäre super wenn dies möglichst bald geht, denn das würde die aktuellen Exporte sehr erleichtern. Allerdings dreht der BSCL-Export derzeit im Leeren. Da scheint irgendetwas zu hängen.

ottigerb commented 6 years ago

Zusätzliche Falltypenfilter sind wie folgt in der App http://optinomic.cust.local/client.new/#/user/app/org.optinomic.export.toolbox.v2.suedhang/template/export erstellt:

        d.falltyp = {
          "all": [
            {
              "id": 0,
              "typ": "Alle",
              "name": "Alle Messungen im Erhebungszeitraum ausgeben"
            }, {
              "id": 1,
              "typ": "A1",
              "name": "Ein- und Austritt im Erhebungszeitraum"
            }, {
              "id": 2,
              "typ": "A2",
              "name": "Einritt vor Erhebungszeitraum und Austritt im Erhebungszeitraum"
            }, {
              "id": 3,
              "typ": "B",
              "name": "Einritt im Erhebungszeitraum und Austritt nach Erhebungszeitraum"
            }, {
              "id": 4,
              "typ": "C",
              "name": "Eintritt vor Erhebungszeitraum und Austritt nach Erhebungszeitraum"
            }, {
              "id": 5,
              "typ": "S1",
              "name": "Eintritt im Erhebungszeitraum"
            }, {
              "id": 6,
              "typ": "S2",
              "name": "Austritt im Erhebungszeitraum"
            }, {
              "id": 7,
              "typ": "S3",
              "name": "Eintritt oder Austritt im Erhebungszeitraum"
            }
          ]
        };

Anwendung der Filter wie folgt:


// Falltyp: S1
                                        if (filter.typ === "S1") {
                                            if (eintritt_in_range === true) {
                                                file_responses.push(sr);
                                            };
                                        };

                                        // Falltyp: S2
                                        if (filter.typ === "S2") {
                                            if (austritt_in_range === true) {
                                                file_responses.push(sr);
                                            };
                                        };

                                        // Falltyp: S3
                                        if (filter.typ === "S3") {
                                            if ((eintritt_in_range === true) || (austritt_in_range === true)) {
                                                file_responses.push(sr);
                                            };
                                        };
``
SonjaKaufmann commented 6 years ago

Super, merci für die schnelle Umsetzung. Ist schön, dasd es mit Dir so gut klappt, mit Erne und AG Büro 70 ist das gaaaaannnnnnzzzzzzzzz anders :-(

ottigerb commented 6 years ago

Gerne! :-)

Die anderen Issues sind ebenfalls "in Mache" - Tom wird es richten!