示例#1
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showDaftarLPO = true;
     $this->createObj('Obat');
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         $this->Page->labelTahun->Text = $_SESSION['ta'];
         if (isset($_SESSION['currentPageDaftarLPO']['datalpo']['no_lpo'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageDaftarLPO']) || $_SESSION['currentPageDaftarLPO']['page_name'] != 'sa.permintaan.DaftarLPO') {
                 $_SESSION['currentPageDaftarLPO'] = array('page_name' => 'sa.permintaan.DaftarLPO', 'page_num' => 0, 'search' => false, 'datalpo' => array(), 'cart' => array(), 'response_lpo' => 1, 'tanggal_lpo' => date('Y-m-d'), 'idpuskesmas' => 'none');
             }
             $_SESSION['currentPageDaftarLPO']['search'] = false;
             $this->cmbDaftarPuskesmas->DataSource = $this->DMaster->getListPuskesmas();
             $this->cmbDaftarPuskesmas->Text = $_SESSION['currentPageDaftarLPO']['idpuskesmas'];
             $this->cmbDaftarPuskesmas->dataBind();
             $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->populateData();
         }
     }
 }
示例#2
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'] != 'sa.Home') {
             $str = "SELECT dsb.idobat,dsb.nama_obat,dsb.harga,dsb.idsatuan_obat,dsb.kemasan,dsb.tanggal_expire,dsb.idprogram,COUNT(kartu_stock.idobat) AS volume FROM master_sbbm msb JOIN detail_sbbm dsb ON (dsb.idsbbm=msb.idsbbm) LEFT JOIN (SELECT ks.idobat,dsb.harga FROM kartu_stock ks,detail_sbbm dsb WHERE dsb.iddetail_sbbm=ks.iddetail_sbbm AND ks.mode='masuk' AND ks.isdestroyed=0) AS kartu_stock ON (kartu_stock.idobat=dsb.idobat AND kartu_stock.harga=dsb.harga) WHERE msb.status='complete' AND dsb.tanggal_expire>=DATE(NOW()) AND dsb.tanggal_expire <= DATE_ADD(DATE(NOW()),INTERVAL 5 MONTH) GROUP BY dsb.idobat,dsb.harga HAVING COUNT(kartu_stock.idobat) > 0 ORDER BY dsb.tanggal_expire ASC,dsb.nama_obat ASC LIMIT 10";
             $this->DB->setFieldTable(array('idobat', 'nama_obat', 'harga', 'idsatuan_obat', 'kemasan', 'tanggal_expire', 'idprogram', 'volume'));
             $r = $this->DB->getRecord($str);
             $dataobatexpires = array();
             while (list($k, $v) = each($r)) {
                 $harga = $v['harga'];
                 $v['harga'] = $this->Obat->toRupiah($harga);
                 $v['nama_program'] = $this->DMaster->getNamaProgramByID($v['idprogram']);
                 $v['tanggal_expire'] = $this->TGL->tanggal('d/m/Y', $v['tanggal_expire']);
                 $subtotal = $v['volume'] * $harga;
                 $v['subtotal'] = $this->Obat->toRupiah($subtotal);
                 $dataobatexpires[$k] = $v;
             }
             $_SESSION['currentPageHome'] = array('page_name' => 'sa.Home', 'stockobat' => $this->Obat->getJumlahStockObat(), 'obatexpires' => $this->Obat->getJumlahObatExpire(), 'lembarpo' => $this->Obat->getJumlahLPO('allwithoutcomplete'), 'distribusiobat' => $this->Obat->getJumlahDistribusiObat($_SESSION['ta']), 'dataobatexpires' => $dataobatexpires);
         }
         $this->RepeaterObatKadaluarsa->DataSource = $_SESSION['currentPageHome']['dataobatexpires'];
         $this->RepeaterObatKadaluarsa->DataBind();
     }
 }
示例#3
0
文件: Cache.php 项目: silotester/silo
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuSettingSistem = true;
     $this->showCache = true;
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageCache']) || $_SESSION['currentPageCache']['page_name'] != 'sa.setting.Cache') {
             $_SESSION['currentPageCache'] = array('page_name' => 'sa.setting.Cache', 'page_num' => 0);
         }
     }
 }
示例#4
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showVariable = true;
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageVariables']) || $_SESSION['currentPageVariables']['page_name'] != 'm.setting.Variables') {
             $_SESSION['currentPageVariables'] = array('page_name' => 'm.setting.Variables', 'page_num' => 0);
         }
         $this->populateData();
     }
 }
示例#5
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();
     }
 }
示例#6
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageModalSBBM']) || $_SESSION['currentPageModalSBBM']['page_name'] != 'sa.mutasibarang.DetailSBBM') {
             $_SESSION['currentPageModalSBBM'] = array('page_name' => 'sa.mutasibarang.DetailSBBM', 'page_num' => 0, 'search' => false);
         }
         $_SESSION['currentPageModalSBBM']['search'] = false;
         $this->populateData();
     }
 }
示例#7
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuSettingSistem = true;
     $this->showUserDinas = true;
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageUserDinas']) || $_SESSION['currentPageUserDinas']['page_name'] != 'sa.setting.UserDinas') {
             $_SESSION['currentPageUserDinas'] = array('page_name' => 'sa.setting.UserDinas', 'page_num' => 0, 'search' => false);
         }
         $_SESSION['currentPageUserDinas']['search'] = false;
         $this->populateData();
     }
 }
示例#8
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showPenyalur = true;
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPagePenyalur']) || $_SESSION['currentPagePenyalur']['page_name'] != 'sa.dmaster.Penyalur') {
             $_SESSION['currentPagePenyalur'] = array('page_name' => 'sa.dmaster.Penyalur', 'page_num' => 0, 'search' => false);
         }
         $_SESSION['currentPagePenyalur']['search'] = false;
         $this->populateData();
     }
 }
示例#9
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuMutasiBarangKeluar = true;
     $this->showSBBKBebas = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageSBBKBebas']) || $_SESSION['currentPageSBBKBebas']['page_name'] != 'sa.mutasibarang.SBBKBebas') {
             $_SESSION['currentPageSBBKBebas'] = array('page_name' => 'sa.mutasibarang.SBBKBebas', 'page_num' => 0, 'search' => false, 'datasbbk' => array(), 'cart' => array());
         }
         $this->detailProcess();
     }
 }
示例#10
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showReportAnalisaKetersediaan = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageAnalisaKetersediaan']) || $_SESSION['currentPageAnalisaKetersediaan']['page_name'] != 'sa.report.AnalisaKetersediaan') {
             $_SESSION['currentPageAnalisaKetersediaan'] = array('page_name' => 'sa.report.AnalisaKetersediaan', 'page_num' => 0, 'search' => false);
         }
         $this->lblTahun->Text = $_SESSION['ta'];
         $this->populateData();
     }
 }
示例#11
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuSettingObatObatan = true;
     $this->showSumberDana = true;
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageSumberDana']) || $_SESSION['currentPageSumberDana']['page_name'] != 'sa.setting.SumberDana') {
             $_SESSION['currentPageSumberDana'] = array('page_name' => 'sa.setting.SumberDana', 'page_num' => 0, 'search' => false);
         }
         $_SESSION['currentPageSumberDana']['search'] = false;
         $this->populateData();
     }
 }
示例#12
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuReportStock = true;
     $this->showReportDinamikaLogistikObat = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageDinamikaLogistikObat']) || $_SESSION['currentPageDinamikaLogistikObat']['page_name'] != 'sa.report.DinamikaLogistikObat') {
             $_SESSION['currentPageDinamikaLogistikObat'] = array('page_name' => 'sa.report.DinamikaLogistikObat', 'page_num' => 0, 'search' => false);
         }
         $this->lblTahun->Text = $_SESSION['ta'];
         $this->populateData();
     }
 }
示例#13
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showUsulanKebutuhan = true;
     $this->createObj('Obat');
     $this->createObj('DMaster');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageUsulanKebutuhan']) || $_SESSION['currentPageUsulanKebutuhan']['page_name'] != 'sa.permintaan.UsulanKebutuhan') {
             $_SESSION['currentPageUsulanKebutuhan'] = array('page_name' => 'sa.permintaan.UsulanKebutuhan', 'page_num' => 0, 'search' => false, 'datalpo' => array(), 'cart' => array(), 'response_lpo' => 1, 'tanggal' => date('Y-m-d'));
         }
         $this->labelTahun->Text = $_SESSION['ta'];
         $_SESSION['currentPageUsulanKebutuhan']['search'] = false;
         $this->populateData();
     }
 }
示例#14
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showReportAnalisaKetersediaan = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageAnalisaKetersediaan']) || $_SESSION['currentPageAnalisaKetersediaan']['page_name'] != 'sa.report.AnalisaKetersediaan') {
             $_SESSION['currentPageAnalisaKetersediaan'] = array('page_name' => 'sa.report.AnalisaKetersediaan', 'page_num' => 0, 'search' => false, 'bulan' => date($_SESSION['ta'] . '-m-01'));
         }
         $this->lblBulanTahun->Text = $this->TGL->tanggal('F Y', $_SESSION['currentPageAnalisaKetersediaan']['bulan']);
         $this->cmbFilterBulan->Text = $this->TGL->tanggal('m', $_SESSION['currentPageAnalisaKetersediaan']['bulan']);
         $this->populateData();
     }
 }
示例#15
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();
     }
 }
示例#16
0
文件: Obat.php 项目: silotester/silo
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showObat = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageObat']) || $_SESSION['currentPageObat']['page_name'] != 'sa.dmaster.Obat') {
             $_SESSION['currentPageObat'] = array('page_name' => 'sa.dmaster.Obat', 'page_num' => 0, 'search' => false, 'idprodusen' => 'none');
         }
         $_SESSION['currentPageObat']['search'] = false;
         $this->cmbFilterProdusen->DataSource = $this->DMaster->getListProdusen();
         $this->cmbFilterProdusen->Text = $_SESSION['currentPageObat']['idprodusen'];
         $this->cmbFilterProdusen->DataBind();
         $this->populateData();
     }
 }
示例#17
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuReportMutasiObat = true;
     $this->showReportMutasiObatSemester = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (!isset($_SESSION['currentPageMutasiObatSemester']) || $_SESSION['currentPageMutasiObatSemester']['page_name'] != 'sa.report.MutasiObatSemester') {
             $_SESSION['currentPageMutasiObatSemester'] = array('page_name' => 'sa.report.MutasiObatSemester', 'page_num' => 0, 'search' => false, 'semester' => 1);
         }
         $this->lblSemester->Text = $_SESSION['currentPageMutasiObatSemester']['semester'] == 1 ? 'I (Januari - Juni)' : 'II (Juli - Desember)';
         $this->cmbFilterSemester->Text = $_SESSION['currentPageMutasiObatSemester']['semester'];
         $this->lblTahun->Text = $_SESSION['ta'];
         $this->populateData();
     }
 }
示例#18
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'])) {
             $this->detailProcess();
             $this->populateData();
         } else {
             if (!isset($_SESSION['currentPagePerpetualStock']) || $_SESSION['currentPagePerpetualStock']['page_name'] != 'sa.report.PerpetualStock') {
                 $_SESSION['currentPagePerpetualStock'] = array('page_name' => 'sa.report.PerpetualStock', 'page_num' => 0, 'search' => false, 'dataobat' => array());
             }
         }
     }
 }
示例#19
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) {
         $_SESSION['currentPageSBBMBaru']['search'] = false;
         if (isset($_SESSION['currentPageSBBMBaru']['datasbbm']['no_sbbm'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageSBBMBaru']) || $_SESSION['currentPageSBBMBaru']['page_name'] != 'sa.mutasibarang.SBBMBaru') {
                 $_SESSION['currentPageSBBMBaru'] = array('page_name' => 'sa.mutasibarang.SBBMBaru', 'page_num' => 0, 'search' => false, 'datasbbm' => array(), 'idprodusen' => 'none', 'cart' => array());
             }
         }
     }
 }
示例#20
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showPenghapusanStock = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         $this->Page->labelTahun->Text = $_SESSION['ta'];
         if (isset($_SESSION['currentPagePenghapusanStock']['datapenghapusan']['process'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPagePenghapusanStock']) || $_SESSION['currentPagePenghapusanStock']['page_name'] != 'sa.mutasibarang.PenghapusanStock') {
                 $_SESSION['currentPagePenghapusanStock'] = array('page_name' => 'sa.mutasibarang.PenghapusanStock', 'page_num' => 0, 'search' => false, 'datapenghapusan' => array(), 'cart' => array());
             }
             $_SESSION['currentPagePenghapusanStock']['search'] = false;
             $this->populateData();
         }
     }
 }
示例#21
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showSubMenuMutasiBarangMasuk = true;
     $this->showDaftarSBBM = true;
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         $this->Page->labelTahun->Text = $_SESSION['ta'];
         if (isset($_SESSION['currentPageDaftarSBBM']['datasbbm']['no_sbbm'])) {
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageDaftarSBBM']) || $_SESSION['currentPageDaftarSBBM']['page_name'] != 'sa.mutasibarang.DaftarSBBM') {
                 $_SESSION['currentPageDaftarSBBM'] = array('page_name' => 'sa.mutasibarang.DaftarSBBM', 'page_num' => 0, 'search' => false, 'datasbbm' => array(), 'cart' => array(), 'status_sbbm' => 'seluruh');
             }
             $_SESSION['currentPageDaftarSBBM']['search'] = false;
             $this->cmbFilterStatus->Text = $_SESSION['currentPageDaftarSBBM']['status_sbbm'];
             $this->populateData();
         }
     }
 }
示例#22
0
 public function onLoad($param)
 {
     parent::onLoad($param);
     $this->showReportDistribusiObat = true;
     $this->createObj('DMaster');
     $this->createObj('Obat');
     if (!$this->IsPostBack && !$this->IsCallBack) {
         if (isset($_SESSION['currentPageDistribusiObat']['datapuskesmas']['idpuskesmas'])) {
             $this->idProcess = 'view';
             $this->detailProcess();
         } else {
             if (!isset($_SESSION['currentPageDistribusiObat']) || $_SESSION['currentPageDistribusiObat']['page_name'] != 'sa.report.DistribusiObat') {
                 $_SESSION['currentPageDistribusiObat'] = array('page_name' => 'sa.report.DistribusiObat', 'page_num' => 0, 'search' => false, 'bulan' => date($_SESSION['ta'] . '-m-01'), 'datapuskesmas' => array());
             }
             $_SESSION['currentPageDistribusiObat']['search'] = false;
             $this->lblBulanTahun->Text = $this->TGL->tanggal('F Y', $_SESSION['currentPageDistribusiObat']['bulan']);
             $this->cmbFilterBulan->Text = $this->TGL->tanggal('m', $_SESSION['currentPageDistribusiObat']['bulan']);
             $this->populateData();
         }
     }
 }
示例#23
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'] != 'sa.report.ExpireObat') {
             $_SESSION['currentPageExpireObat'] = array('page_name' => 'sa.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();
     }
 }