403Webshell
Server IP : 31.14.161.123  /  Your IP : 216.73.216.229
Web Server : Apache
System : Linux cpanel.classit.ro 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User : diamedic ( 1014)
PHP Version : 8.2.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/diamedic/public_html/gestiune/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/diamedic/public_html/gestiune/js/app.js
"use strict";
/* App Module */

// Declare app level module which depends on filters, and services
var asApp = angular.module('asApp', [
  'ui.router',
  'ngSanitize',
  'ui.bootstrap',
  'vr.directives.slider',
  'angular-loading-bar',
  'ngTable',
  'asApp.filters',
]);


asApp.controller('IndexCtrl', function ($scope, $interval, $filter, ngTableParams,$http) {
  $scope.lista = {
                 0 : {name: "Manusi", tip: 'nesterile',cant: 1,pret:15.4,color :"#0f0", grup : ""},
                 1: {name: "Manusi", tip: 'sterile',cant: 1,pret:15.4,color :"#0f0", grup : ""},

                 2: {name: "Set linii", tip: '4008',cant: 1,pret:15.4,color :"#f00", grup : "obligatorii"},
				 3: {name: "Set linii", tip: '5008',cant: 1,pret:15.4,color :"#f00", grup : "obligatorii"},

                 4: {name: "Dializor", tip: 'FX60',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 5: {name: "Dializor", tip: 'FX80',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 6: {name: "Dializor", tip: 'FX100',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 7: {name: "Dializor", tip: 'FX600',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 8: {name: "Dializor", tip: 'FX800',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 9: {name: "Perfuzor", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 10: {name: "Ser fiziologic", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 11: {name: "Canula punctie Arteriala", tip: '15G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 12: {name: "Canula punctie Arteriala", tip: '16G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 13: {name: "Canula punctie Arteriala", tip: '17G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 14: {name: "Canula punctie Venoasa", tip: '15G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 15: {name: "Canula punctie Venoasa", tip: '16G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 16: {name: "Canula punctie Venoasa", tip: '17G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 17: {name: "ACID", tip: '1,25',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 18: {name: "ACID", tip: '1,5',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 19: {name: "ACID", tip: '1,5 + Glucoza',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 20: {name: "ACID", tip: '1,75',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 21: {name: "Kit", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 22: {name: "Bibag", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 23: {name: "Seringa", tip: '1ml',cant: 1,pret:15.4,color :"#f0c", grup : "seringi"},
                 24: {name: "Seringa", tip: '2ml',cant: 1,pret:15.4,color :"#ff0", grup : "seringi"},
                 25: {name: "Seringa", tip: "5ml",cant: 1,pret:15.4,color :"#f0f", grup : "seringi"},
                 26: {name: "Seringa", tip: "10ml",cant: 1,pret:15.4,color :"#f0f", grup : "seringi"},
                 27: {name: "Seringa", tip: "20ml",cant: 1,pret:15.4,color :"#f0f", grup :"seringi"},
                 28: {name: "Seringa", tip: "30ml",cant: 1,pret:15.4,color :"#f0f", grup : "seringi"},

                 29: {name: "Algifen", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 30: {name: "Algocalmin", tip: "fiola",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 31: {name: "Calciu gluconic", tip: "fiola",cant: 1,pret:15.4,color :"#f0f", grup : ""},

                 32: {name: "Miofilin", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 33: {name: "Nifedipin", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 34: {name: "Glucoza 30%", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 35: {name: "Heparina Sodica", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 36: {name: "Arnetin", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 37: {name: "Baneocin", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 39: {name: "Amlodipina", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 56: {name: "Claritine", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 40: {name: "Clonidina", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},
                 41: {name: "Cordarone", tip: "ml",cant: 1,pret:15.4,color :"#f0f", grup : ""},



                 42: {name: "Innohep", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS", ind : 500},
                 43: {name: "Venofer", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 44: {name: "Aranesp", tip: "10",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 45: {name: "Aranesp", tip: "20",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 46: {name: "Aranesp", tip: "30",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 47: {name: "Aranesp", tip: "40",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 48: {name: "Aranesp", tip: "50",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 49: {name: "Alpha D3", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 50: {name: "Dicarbocalm", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 51: {name: "Mimpara", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 52: {name: "Osvaren", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 53: {name: "Renagel", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 54: {name: "Zemplar", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                
                 55: {name: "Metoprolol", tip: '',cant: 1,pret:15.4,color :"#00f"}};

$scope.listaArray = $filter('ObjToArray')($scope.lista);

	$scope.pacient = { 	name: "Grosu Victoria", 
						age: "55", 
						program : "LMV" };
	$scope.pacient.default = 'test';
	
	  $scope.selectedState = '';

$scope.pat1= [];
$scope.pat2= [];
$scope.pat3= [];
$scope.pat4= [];
$scope.pat5= [];
$scope.pat6= [];


$scope.pat1.protocol= {
                 42: {name: "Innohep", tip: "",cant: 1000,pret:15.4,color :"#f0f", grup : "PNS", ind : 500},
                 5: {name: "Dializor", tip: 'FX80',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 11: {name: "Canula punctie Arteriala", tip: '15G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 14: {name: "Canula punctie Venoasa", tip: '15G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 19: {name: "ACID", tip: '1,5 + Glucoza',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 3: {name: "Set linii", tip: '5008',cant: 1,pret:15.4,color :"#f00", grup : "obligatorii"},
                 21: {name: "Kit", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 22: {name: "Bibag", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 23: {name: "Seringa", tip: '1ml',cant: 1,pret:15.4,color :"#f0c", grup : "seringi"},

                 0: {name: "Manusi", tip: 'nesterile',cant: 1,pret:15.4,color :"#0f0", grup : ""},

                 44: {name: "Aranesp", tip: "10",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
                 43: {name: "Venofer", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},

                 29: {name: "Algifen", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : ""}};


$scope.pat2.protocol = {
        42: {name: "Innohep", tip: "",cant: 3500,pret:15.4,color :"#f0f", grup : "PNS", ind : 500},
         5: {name: "Dializor", tip: 'FX60',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
         11: {name: "Canula punctie Arteriala", tip: '16G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
         14: {name: "Canula punctie Venoasa", tip: '16G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
         19: {name: "ACID", tip: '1,5',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
         3: {name: "Set linii", tip: '4008',cant: 1,pret:15.4,color :"#f00", grup : "obligatorii"},
         21: {name: "Kit", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
         22: {name: "Bibag", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

         26: {name: "Seringa", tip: "10ml",cant: 1,pret:15.4,color :"#f0f", grup : "seringi"},

         0: {name: "Manusi", tip: 'nesterile',cant: 1,pret:15.4,color :"#0f0", grup : ""},

         53: {name: "Renagel", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"},
         43: {name: "Venofer", tip: "",cant: 1,pret:15.4,color :"#f0f", grup : "PNS"}

    }


                $scope.pat3.protocol = {
                 42: {name: "Innohep", tip: "",cant: 2000,pret:15.4,color :"#f0f", grup : "PNS", ind : 500},
                 5: {name: "Dializor", tip: 'FX100',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 11: {name: "Canula punctie Arteriala", tip: '17G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 14: {name: "Canula punctie Venoasa", tip: '17G',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 19: {name: "ACID", tip: '1,5 + Glucoza',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 3: {name: "Set linii", tip: '5008',cant: 1,pret:15.4,color :"#f00", grup : "obligatorii"},
                 21: {name: "Kit", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},
                 22: {name: "Bibag", tip: '',cant: 1,pret:15.4,color :"#c00", grup : "obligatorii"},

                 23: {name: "Seringa", tip: '1ml',cant: 1,pret:15.4,color :"#f0c", grup : "seringi"},

                 0: {name: "Manusi", tip: 'sterile',cant: 1,pret:15.4,color :"#0f0", grup : ""}
                 };

$scope.pat4.protocol = { }
$scope.pat5.protocol = { }
$scope.pat6.protocol = { }




$scope.pat1.protocol = $filter('ObjToArray')($scope.pat1.protocol);
$scope.pat2.protocol = $filter('ObjToArray')($scope.pat2.protocol);
$scope.pat3.protocol = $filter('ObjToArray')($scope.pat3.protocol);
$scope.pat4.protocol = $filter('ObjToArray')($scope.pat4.protocol);
$scope.pat5.protocol = $filter('ObjToArray')($scope.pat5.protocol);
$scope.pat6.protocol = $filter('ObjToArray')($scope.pat6.protocol);

 $scope.protocolArray = $scope.pat1.protocol;

$scope.schimbaPat = function(pat){
   
    $scope.protocolArray = $scope[pat].protocol;

}

angular.forEach($scope.protocolArray, function(value, key) {
   delete $scope.listaArray[key];
});

    $scope.grupuri = [ 'obligatorii', 'seringi', 'PNS',''];


		$scope.query = '';		
$scope.q = function(n){
	 $scope.query = $scope.query + n;

}

$scope.bkspace = function(){
	$scope.query = $scope.query.slice(0, -1);
}	

$scope.alfabet = [{a: "a", b: "b", c: "c"},
                {a: "d", b: "e", c: "f"},
                {a: "g", b: "h", c: "i"},
                {a: "j", b: "k", c: "l"},
                {a: "m", b: "n", c: "o"},
                {a: "p", b: "q", c: "r"},
                {a: "s", b: "t", c: "u"},
                {a: "v", b: "x", c: "y"}];
$scope.show = false;

$scope.cant = function(w,h){
	$scope.protocolArray[w].cant = $scope.protocolArray[w].cant+h;
}

$scope.validare = function(a){
    a.back = 'valid';
}

$scope.Ctrl = function (){
	$scope.show = $scope.show === false ? true : false;
	$scope.query = '';	
}

$scope.atentie = "ALERGIC VENOFER";

$scope.startSedinta = new Date().getTime();
 var nDate = new Date().getTime();
 
$scope.intervalSedinta =  nDate - $scope.startSedinta;



$interval(function(){ 

   nDate = new Date().getTime();
    $scope.intervalSedinta =  nDate - $scope.startSedinta;
}, 999);

$scope.addMed = function(n){
    $scope.protocolArray[n] = $scope.listaArray[n];
    delete $scope.listaArray[n];

}
    $scope.tableParams = new ngTableParams({
        page: 1,            // show first page.
        count: 10,           // count per page
		sorting: {
          name: 'asc'
        }
    }, {
        total: $scope.protocolArray.length, // length of data
		counts: [],
        getData: function($defer, params) {
		
           // use build-in angular filter
          // $scope.protocol = $filter('orderBy')($scope.protocol, params.orderBy());
                // use build-in angular filter
            // var orderedData = params.sorting() ?
            //                     $filter('orderBy')($scope.protocolArray, params.orderBy()) :
            //                     $scope.protocolArray;

           // $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count()));
             // $defer.resolve($filter('orderBy')($scope.protocolArray, params.orderBy()));
             // var orderid = $filter('orderBy')($scope.protocolArray, params.orderBy());
             // console.log(orderid);
             $filter('sortDia')($scope.protocolArray);
        }
    });
	
	
		  
		  
		   // var responsePromise = $http.get("http://soopra.ro/lista_consum.json");

     //            responsePromise.success(function(data, status, headers, config) {
     //               console.log(data);
     //            });
     //            responsePromise.error(function(data, status, headers, config) {
     //                alert("AJAX failed!");
     //            });
		  
$scope.delete = function(n,w){
	if(w == "c"){
		$scope.protocolArray[n].show = true;
	}else if(w=='r'){
		$scope.protocolArray[n].show = false;
	}else if(w=='s'){
        $scope.protocolArray[n].show = false;
        $scope.listaArray[n] = $scope.protocolArray[n];

        delete $scope.protocolArray[n];

	}
}
	
	
})


  .config(['$stateProvider', '$urlRouterProvider', '$httpProvider',
    function ($stateProvider, $urlRouterProvider, $httpProvider) {
   

      $stateProvider
        .state('home', {
          url: '/',
          templateUrl : 'protocol.html',
          controller: 'IndexCtrl'
        })
        .state('home.sala', {
          url: 'sala:id',
          templateUrl : 'sala.html',
          controller: 'salaCtrl'
        })
        .state('home.sala.pat', {
          url: '/pat:p',
          templateUrl : 'pat.html',
          controller: 'patCtrl'
          
        })
        .state('home.sala2', {
          url: 'sala2'
        });


    }
  ])

  .controller('patCtrl', function ($stateParams, $scope, $interval, $filter, ngTableParams,$http) {

        console.log($stateParams.p);
        $scope.schimbaPat('pat2');
  })

  .controller('salaCtrl', function ($scope, $interval, $filter, ngTableParams,$http) {

        console.log('test');
  });

Youez - 2016 - github.com/yon3zu
LinuXploit