รพ.50พรรษา 21984
รพ.สรรพสิทธิ์ 10669
วันพุธที่ 13 พฤษภาคม พ.ศ. 2563
วันศุกร์ที่ 8 พฤษภาคม พ.ศ. 2563
Last_visit
(select concat(' บริการครั้งก่อน',cast(o1.visit_id as char(20)),' ', o1.reg_datetime)
from opd_visits as o1
inner join opd_diagnosis od1 ON od1.visit_id = o1.visit_id AND o1.is_cancel = 0 AND od1.is_cancel = 0
LEFT JOIN icd10new i1 ON i1.icd10 = od1.icd10 AND i1.icd10_tm BETWEEN 'A90' AND 'A999'
where o1.REG_DATETIME BETWEEN "2020-05-01 00:00:00 " AND NOW()
AND a.hn=o1.hn and a.visit_id > o1.visit_id order by o1.visit_id desc limit 1) as last_visit
from opd_visits as o1
inner join opd_diagnosis od1 ON od1.visit_id = o1.visit_id AND o1.is_cancel = 0 AND od1.is_cancel = 0
LEFT JOIN icd10new i1 ON i1.icd10 = od1.icd10 AND i1.icd10_tm BETWEEN 'A90' AND 'A999'
where o1.REG_DATETIME BETWEEN "2020-05-01 00:00:00 " AND NOW()
AND a.hn=o1.hn and a.visit_id > o1.visit_id order by o1.visit_id desc limit 1) as last_visit
วันพุธที่ 29 เมษายน พ.ศ. 2563
รัน Ubonsystem ต้องการ2 ตารางนี้
การรัน Ubonsystem ต้องการ2 ตารางนี้ chospital กับ office โปรแกรมถึงจะรันขี้น
SERVER_WEB_SERVICE=zone1.phoubon.in.th
DRIVER=com.mysql.jdbc.Driver
DATABASE=mbase_data
SERVER=192.168.200.2
PORT=3306
USERNAME=root
PASSWORD=1234
PCUCODE=10953
USER_SERVICE=u10953
PASS_SERVICE=p10953
TIME=10:05
DAY=1,2,3
DUMP=0
PATH_FILE=D://UbonSystem//export1//
PATH_FILE_OUT=D:\\UbonSystem\\export2\\
SERVER_WEB_SERVICE=zone1.phoubon.in.th
DRIVER=com.mysql.jdbc.Driver
DATABASE=mbase_data
SERVER=192.168.200.2
PORT=3306
USERNAME=root
PASSWORD=1234
PCUCODE=10953
USER_SERVICE=u10953
PASS_SERVICE=p10953
TIME=10:05
DAY=1,2,3
DUMP=0
PATH_FILE=D://UbonSystem//export1//
PATH_FILE_OUT=D:\\UbonSystem\\export2\\
วันพุธที่ 22 เมษายน พ.ศ. 2563
yii2 ปรับสีFont
$gridColumns = [
['class' => 'kartik\grid\SerialColumn'],
[
'attribute' => 'tdate',
'label' => 'วัน/เวลามารับบริการ',
'value' => function ($model, $key, $index, $widget) {
if ($model['tadmit'] === 'N') {
return "<font color='000000'>" . $model['tdate'] . "</font>";
} else {
return "<font color='ff0066'>" . $model['tdate'] . "</font>";
['class' => 'kartik\grid\SerialColumn'],
[
'attribute' => 'tdate',
'label' => 'วัน/เวลามารับบริการ',
'value' => function ($model, $key, $index, $widget) {
if ($model['tadmit'] === 'N') {
return "<font color='000000'>" . $model['tdate'] . "</font>";
} else {
return "<font color='ff0066'>" . $model['tdate'] . "</font>";
วันอังคารที่ 21 เมษายน พ.ศ. 2563
วันอังคารที่ 31 มีนาคม พ.ศ. 2563
วันศุกร์ที่ 27 มีนาคม พ.ศ. 2563
showPageSummary Option In Yii2
showPageSummary Option In Yii2
showPageSummary : ชนิด boolean [ TRUE , FALSE ] จะแสดงผลรวมของฟิลด์ ใน grid view. ค่าเริ่มต้นจะกำหนดไว้เป็น FALSE.
echo GridView::widget([
'dataProvider' => $dataProvider,
'hover' => TRUE,
'resizableColumns'=>true,
'showPageSummary' => true,
'columns' => [];
กำหนดใน column ที่ต้องการ sum
'pageSummary' => true
[
'headerOptions' => ['class' => 'text-center'],
'contentOptions' => ['class' => 'text-right'],
//'options' => ['style' => 'width:30px;'],
'attribute' => 'total_value',
'header' => 'มูลค่ารวม (บาท)',
'format'=>['decimal', 0],
'value' => function($data) {
return empty($data['total_value']) ? '0' : $data['total_value'];
},
'pageSummary' => true,
],
สมัครสมาชิก:
บทความ (Atom)