CopyRecordStrValue($vFilter, $_GET, 'patr_name'); CopyRecordDateValue($vFilter, $_GET, 'beg_date'); CopyRecordDateValue($vFilter, $_GET, 'end_date'); // $vTab->AddTableAction('печать', CompoundURL('cases_list.pdf', $vFilter)); $vResult = $vTab->ProduceHTML($vDB, GetPageIdxOrLast(), 20); return $vResult; } } // ======================================================================= RegisterListParams(); $vForm =& new TSearchForm(); if ($vForm->validate()) { $vValues = $vForm->getSubmitValues(); $vFilter = array(); CopyParam($vFilter, $vValues, 'case_id'); CopyParam($vFilter, $vValues, 'last_name'); CopyParam($vFilter, $vValues, 'first_name'); CopyParam($vFilter, $vValues, 'patr_name'); CopyRecordDateValue($vFilter, $vValues, 'beg_date'); CopyRecordDateValue($vFilter, $vValues, 'end_date'); // CopyParam($vFilter, $vValues, 'Order'); Redirect(CompoundURL('queue.html', $vFilter)); } else { $vTemplate =& CreateTemplate(); $vRenderer =& CreateRenderer($vTemplate); $vForm->accept($vRenderer); $vView =& new TData(); $vView->form = $vRenderer->toObject(); $vTemplate->compile('doc/queue.html'); $vTemplate->outputObject($vView); }
{ } // ======================================================================= if (!array_key_exists('beg_date', $_GET)) { $_GET['beg_date'] = date('Y-m-d'); } if (!array_key_exists('end_date', $_GET)) { $_GET['end_date'] = date('Y-m-d'); } if (!array_key_exists('paytype', $_GET)) { $_GET['paytype'] = 0; } RegisterListParams(); $vForm =& new TSearchForm(); if ($vForm->validate()) { $vValues = $vForm->getSubmitValues(); $vFilter = array(); CopyRecordDateValue($vFilter, $vValues, 'beg_date'); CopyRecordDateValue($vFilter, $vValues, 'end_date'); CopyParam($vFilter, $vValues, 'paytype'); // CopyParam($vFilter, $vValues, 'Order'); Redirect(CompoundURL('surgeries_report.pdf', $vFilter)); } else { $vTemplate =& CreateTemplate(); $vRenderer =& CreateRenderer($vTemplate); $vForm->accept($vRenderer); $vView =& new TData(); $vView->form = $vRenderer->toObject(); $vTemplate->compile('chief/surgeries_report.html'); $vTemplate->outputObject($vView); }
} } // ======================================================================= if (empty($_GET['beg_date'])) { $_GET['show_diagnosis'] = 1; } RegisterListParams(); $vForm =& new TSearchForm(); if ($vForm->validate()) { $vValues = $vForm->getSubmitValues(); $vFilter = array(); CopyRecordRefValue($vFilter, $vValues, 'case_id'); CopyRecordRefValue($vFilter, $vValues, 'doctor_id'); CopyParam($vFilter, $vValues, 'last_name'); CopyParam($vFilter, $vValues, 'first_name'); CopyParam($vFilter, $vValues, 'patr_name'); CopyRecordDateValue($vFilter, $vValues, 'beg_date'); CopyRecordDateValue($vFilter, $vValues, 'end_date'); CopyParam($vFilter, $vValues, 'show_diagnosis'); CopyParam($vFilter, $vValues, 'show_cure'); // CopyParam($vFilter, $vValues, 'Order'); Redirect(CompoundURL('curecheck.html', $vFilter)); } else { $vTemplate =& CreateTemplate(); $vRenderer =& CreateRenderer($vTemplate); $vForm->accept($vRenderer); $vView =& new TData(); $vView->form = $vRenderer->toObject(); $vTemplate->compile('doc/curecheck.html'); $vTemplate->outputObject($vView); }
$vTab->AddTableAction('печать', CompoundURL('rgs_list.pdf', $vFilter)); $vResult = $vTab->ProduceHTML($vDB, @$_GET['PageIdx'] + 0, 20); return $vResult; } } // ======================================================================= if (!array_key_exists('beg_date', $_GET)) { $_GET['beg_date'] = date('Y-m-d'); } if (!array_key_exists('end_date', $_GET)) { $_GET['end_date'] = date('Y-m-d'); } RegisterListParams(); $vForm =& new TSearchForm(); if ($vForm->validate()) { $vValues = $vForm->getSubmitValues(); $vFilter = array(); CopyParam($vFilter, $vValues, 'case_id'); CopyRecordDateValue($vFilter, $vValues, 'beg_date'); CopyRecordDateValue($vFilter, $vValues, 'end_date'); // CopyParam($vFilter, $vValues, 'Order'); Redirect(CompoundURL('rgs_list.html', $vFilter)); } else { $vTemplate =& CreateTemplate(); $vRenderer =& CreateRenderer($vTemplate); $vForm->accept($vRenderer); $vView =& new TData(); $vView->form = $vRenderer->toObject(); $vTemplate->compile('reg/rgs_list.html'); $vTemplate->outputObject($vView); }
} // ======================================================================= RegisterListParams(); $vForm =& new TSearchForm(); if ($vForm->validate()) { $vValues = $vForm->getSubmitValues(); $vFilter = array(); CopyRecordRefValue($vFilter, $vValues, 'case_id'); CopyRecordRefValue($vFilter, $vValues, 'doctor_id'); CopyParam($vFilter, $vValues, 'last_name'); CopyParam($vFilter, $vValues, 'first_name'); CopyParam($vFilter, $vValues, 'patr_name'); CopyRecordDateValue($vFilter, $vValues, 'beg_date'); CopyRecordDateValue($vFilter, $vValues, 'end_date'); CopyParam($vFilter, $vValues, 'is_primary'); CopyParam($vFilter, $vValues, 'empty_diagnosis_mkb'); CopyParam($vFilter, $vValues, 'is_bad_doc'); CopyParam($vFilter, $vValues, 'is_bad_illdoc'); CopyParam($vFilter, $vValues, 'eisoms_status'); CopyRecordBoolValue($vFilter, $vValues, 'is_lost_outcome'); // CopyParam($vFilter, $vValues, 'Order'); Redirect(CompoundURL('surgeries.html', $vFilter)); } else { $vTemplate =& CreateTemplate(); $vRenderer =& CreateRenderer($vTemplate); $vForm->accept($vRenderer); $vView =& new TData(); $vView->form = $vRenderer->toObject(); $vTemplate->compile('doc/surgeries.html'); $vTemplate->outputObject($vView); }
$vTab->AddColumn('id', 'Адрес проживания', array('align' => 'left', 'fmt' => 'tcfLocAddr')); $vTab->AddColumn('phone', 'Телефон'); $vTab->AddColumn('id', '', array('align' => 'center', 'fmt' => 'tcfSelectItem')); $vResult = $vTab->ProduceHTML($vDB, @$_GET['PageIdx'] + 0, 20); return $vResult; } } // ======================================================================= GetPreparedGet(); $vForm =& new TSearchForm(); $vTemplate =& CreateTemplate(); $vRenderer =& CreateRenderer($vTemplate); $vForm->accept($vRenderer); $vView =& new TData(); $vView->form = $vRenderer->toObject(); $vTemplate->compile('reg/search_client_popup.html'); $vTemplate->outputObject($vView); if ($vForm->validate()) { $vValues = $vForm->getSubmitValues(); $vFilter = array(); CopyParam($vFilter, $vValues, 'last_name'); CopyParam($vFilter, $vValues, 'first_name'); CopyParam($vFilter, $vValues, 'patr_name'); CopyParam($vFilter, $vValues, 'doc_type_id'); CopyParam($vFilter, $vValues, 'doc_series'); CopyParam($vFilter, $vValues, 'doc_number'); CopyParam($vFilter, $vValues, 'insurance_company_id'); CopyParam($vFilter, $vValues, 'polis_series'); CopyParam($vFilter, $vValues, 'polis_number'); // CopyParam($vFilter, $vValues, 'Order'); }