示例#1
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageProfile']) || $_SESSION['currentPageProfile']['page_name'] != 'Profiles') {
             $_SESSION['currentPageProfile'] = array('page_name' => 'Profiles', 'page_num' => 0, 'roles' => 'none', 'search' => false);
         }
         $this->userPhoto->ImageUrl = $this->setup->getAddress() . '/' . $_SESSION['foto'];
         $this->path_userimages->Value = $_SESSION['foto'];
         $this->populateData();
     }
 }
示例#2
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showUnitPuskesmas = true;
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageUnitPuskesmas']) || $_SESSION['currentPageUnitPuskesmas']['page_name'] != 'ad.dmaster.UnitPuskesmas') {
             $_SESSION['currentPageUnitPuskesmas'] = array('page_name' => 'ad.dmaster.UnitPuskesmas', 'page_num' => 0, 'search' => false);
         }
         $_SESSION['currentPageUnitPuskesmas']['search'] = false;
         $this->populateData();
     }
 }
示例#3
0
文件: Home.php 项目: silotester/silo
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showDashboard = true;
     $this->createObj('dmaster');
     $this->createObj('obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageHome']) || $_SESSION['currentPageHome']['page_name'] != 'ad.Home') {
             $idpuskesmas = $this->Pengguna->getDataUser('idpuskesmas');
             $_SESSION['currentPageHome'] = array('page_name' => 'ad.Home', 'stockobat' => $this->Obat->getJumlahStockObatPuskesmas($idpuskesmas), 'obatexpires' => $this->Obat->getJumlahObatExpirePuskesmas($idpuskesmas), 'lembarpo' => $this->Obat->getJumlahLPO('allwithoutcomplete', $idpuskesmas), 'distribusiobat' => $this->Obat->getJumlahDistribusiObat($_SESSION['ta'], $idpuskesmas));
         }
         $this->populateDataLPO();
     }
 }
示例#4
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuMutasiBarangKeluar = true;
     $this->showDetailSBBK = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageDetailSBBK']) || $_SESSION['currentPageDetailSBBK']['page_name'] != 'sa.mutasibarang.DetailSBBK') {
             $_SESSION['currentPageDetailSBBK'] = array('page_name' => 'sa.mutasibarang.DetailSBBK', 'page_num' => 0, 'search' => false, 'status_sbbk' => 'complete');
         }
         $_SESSION['currentPageDetailSBBK']['search'] = false;
         $this->cmbFilterStatus->Text = $_SESSION['currentPageDetailSBBK']['status_sbbk'];
         $this->populateData();
     }
 }
示例#5
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuReportMutasiObat = true;
     $this->showReportMutasiObatBulanan = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageMutasiObatBulanan']) || $_SESSION['currentPageMutasiObatBulanan']['page_name'] != 'ad.report.MutasiObatBulanan') {
             $_SESSION['currentPageMutasiObatBulanan'] = array('page_name' => 'ad.report.MutasiObatBulanan', 'page_num' => 0, 'search' => false, 'bulan' => date($_SESSION['ta'] . '-m-01'));
         }
         $this->lblBulanTahun->Text = $this->TGL->tanggal('F Y', $_SESSION['currentPageMutasiObatBulanan']['bulan']);
         $this->cmbFilterBulan->Text = $this->TGL->tanggal('m', $_SESSION['currentPageMutasiObatBulanan']['bulan']);
         $this->populateData();
     }
 }
示例#6
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showObatPuskesmas = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageObatPuskesmas']) || $_SESSION['currentPageObatPuskesmas']['page_name'] != 'ad.dmaster.ObatPuskesmas') {
             $_SESSION['currentPageObatPuskesmas'] = array('page_name' => 'ad.dmaster.ObatPuskesmas', 'page_num' => 0, 'search' => false, 'idprodusen' => 'none');
         }
         $_SESSION['currentPageObatPuskesmas']['search'] = false;
         $this->cmbFilterProdusen->DataSource = $this->DMaster->getListProdusen();
         $this->cmbFilterProdusen->Text = $_SESSION['currentPageObatPuskesmas']['idprodusen'];
         $this->cmbFilterProdusen->DataBind();
         $this->populateData();
     }
 }
示例#7
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuReportStock = true;
     $this->showReportPerpetualStock = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (isset($_SESSION['currentPagePerpetualStock']['dataobat']['idobat_puskesmas'])) {
             $this->detailProcess();
             $this->populateData();
         } else {
             if (!isset($_SESSION['currentPagePerpetualStock']) || $_SESSION['currentPagePerpetualStock']['page_name'] != 'ad.report.PerpetualStock') {
                 $_SESSION['currentPagePerpetualStock'] = array('page_name' => 'ad.report.PerpetualStock', 'page_num' => 0, 'search' => false, 'dataobat' => array());
             }
         }
     }
 }
示例#8
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showPemakaianObatUnit = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPagePemakaianObatUnit']) || $_SESSION['currentPagePemakaianObatUnit']['page_name'] != 'sa.mutasibarang.PemakaianObatUnit') {
             $_SESSION['currentPagePemakaianObatUnit'] = array('page_name' => 'sa.mutasibarang.PemakaianObatUnit', 'page_num' => 0, 'search' => false, 'idunitpuskesmas' => 'none', 'bulan' => date($_SESSION['ta'] . '-m-01'));
         }
         $_SESSION['currentPagePemakaianObatUnit']['search'] = false;
         $this->cmbFilterUnit->DataSource = $this->DMaster->getListUnitPuskesmas();
         $this->cmbFilterUnit->Text = $_SESSION['currentPagePemakaianObatUnit']['idunitpuskesmas'];
         $this->cmbFilterUnit->dataBind();
         $this->lblBulanTahun->Text = $this->TGL->tanggal('F Y', $_SESSION['currentPagePemakaianObatUnit']['bulan']);
         $this->cmbFilterBulan->Text = $this->TGL->tanggal('m', $_SESSION['currentPagePemakaianObatUnit']['bulan']);
         $this->populateData();
     }
 }
示例#9
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuMutasiBarangMasuk = true;
     $this->showSBBMBaru = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (isset($_SESSION['currentPageSBBMBaru']['datasbbm']['idsbbk'])) {
             $_SESSION['currentPageObat']['search'] = false;
             $this->detailProcess();
             $this->populateCart();
         } else {
             if (!isset($_SESSION['currentPageSBBMBaru']) || $_SESSION['currentPageSBBMBaru']['page_name'] != 'ad.mutasibarang.SBBMBaru') {
                 $_SESSION['currentPageSBBMBaru'] = array('page_name' => 'ad.mutasibarang.SBBMBaru', 'page_num' => 0, 'search' => false, 'datasbbm' => array(), 'idprodusen' => 'none', 'cart' => array());
             }
         }
     }
 }
示例#10
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showLPOBaru = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (isset($_SESSION['currentPageLPOBaru']['datalpo']['no_lpo'])) {
             $this->idProcess = 'add';
             $_SESSION['currentPageObat']['search'] = false;
             $this->detailProcess();
             $this->populateData();
             $this->populateCart();
         } else {
             if (!isset($_SESSION['currentPageLPOBaru']) || $_SESSION['currentPageLPOBaru']['page_name'] != 'ad.permintaan.LPOBaru') {
                 $_SESSION['currentPageLPOBaru'] = array('page_name' => 'ad.permintaan.LPOBaru', 'page_num' => 0, 'search' => false, 'datalpo' => array(), 'cart' => array(), 'tanggal_lpo' => date('Y-m-d'), 'status_lpo' => 'complete');
             }
         }
     }
 }
示例#11
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuMutasiBarangMasuk = true;
     $this->showDaftarSBBM = true;
     $this->createObj('Obat');
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         $this->Page->labelTahunDaftarSBBM->Text = $_SESSION['ta'];
         if (isset($_SESSION['currentPageDaftarSBBM']['datasbbm']['idsbbm_puskesmas'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageDaftarSBBM']) || $_SESSION['currentPageDaftarSBBM']['page_name'] != 'ad.mutasibarang.DaftarSBBM') {
                 $_SESSION['currentPageDaftarSBBM'] = array('page_name' => 'ad.mutasibarang.DaftarSBBM', 'page_num' => 0, 'search' => false, 'datasbbm' => array(), 'cart' => array());
             }
             $_SESSION['currentPageDaftarSBBM']['search'] = false;
             $this->populateData();
         }
     }
 }
示例#12
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuMutasiBarangKeluar = true;
     $this->showDaftarSBBK = true;
     $this->createObj('Obat');
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         $this->Page->labelTahunDaftarSBBK->Text = $_SESSION['ta'];
         if (isset($_SESSION['currentPageDaftarSBBK']['datasbbk']['no_sbbk_puskesmas'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageDaftarSBBK']) || $_SESSION['currentPageDaftarSBBK']['page_name'] != 'sa.mutasibarang.DaftarSBBK') {
                 $_SESSION['currentPageDaftarSBBK'] = array('page_name' => 'sa.mutasibarang.DaftarSBBK', 'page_num' => 0, 'search' => false, 'datasbbk' => array(), 'cart' => array(), 'status_sbbk' => 'complete');
             }
             $_SESSION['currentPageDaftarSBBK']['search'] = false;
             $this->cmbFilterStatus->Text = $_SESSION['currentPageDaftarSBBK']['status_sbbk'];
             $this->populateData();
         }
     }
 }
示例#13
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuReportStock = true;
     $this->showReportExpireObat = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageExpireObat']) || $_SESSION['currentPageExpireObat']['page_name'] != 'ad.report.ExpireObat') {
             $_SESSION['currentPageExpireObat'] = array('page_name' => 'ad.report.ExpireObat', 'page_num' => 0, 'idprogram' => 'none', 'waktuexpires' => 1, 'modeexpires' => 'bulankedepan');
         }
         $listprogram = $this->DMaster->getListProgram();
         $listprogram['none'] = 'Keseluruhan Program';
         $this->cmbFilterProgram->DataSource = $listprogram;
         $this->cmbFilterProgram->Text = $_SESSION['currentPageExpireObat']['idprogram'];
         $this->cmbFilterProgram->DataBind();
         $this->txtFilterWaktuExpires->Text = $_SESSION['currentPageExpireObat']['waktuexpires'];
         $this->cmbModeExpires->Text = $_SESSION['currentPageExpireObat']['modeexpires'];
         $this->setLabelJangkaWaktu();
         $this->populateData();
     }
 }
示例#14
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showDaftarLPO = true;
     $this->createObj('Obat');
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         $this->Page->labelTahunDaftarLPO->Text = $_SESSION['ta'];
         if (isset($_SESSION['currentPageDaftarLPO']['datalpo']['no_lpo'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageDaftarLPO']) || $_SESSION['currentPageDaftarLPO']['page_name'] != 'ad.permintaan.DaftarLPO') {
                 $_SESSION['currentPageDaftarLPO'] = array('page_name' => 'ad.permintaan.DaftarLPO', 'page_num' => 0, 'search' => false, 'datalpo' => array(), 'cart' => array(), 'response_lpo' => 1, 'status_lpo' => 'complete', 'tanggal_lpo' => date('Y-m-d'));
             }
             $_SESSION['currentPageDaftarLPO']['search'] = false;
             $daftar_lpo = $this->DMaster->removeIdFromArray($this->DMaster->getJenisResponseLPO(), 'none');
             $this->cmbResponseLPO->DataSource = $daftar_lpo;
             $this->cmbResponseLPO->Text = $_SESSION['currentPageDaftarLPO']['response_lpo'];
             $this->cmbResponseLPO->dataBind();
             $this->cmbFilterStatus->Text = $_SESSION['currentPageDaftarLPO']['status_lpo'];
             $this->populateData();
         }
     }
 }