วันพุธที่ 27 พฤศจิกายน พ.ศ. 2562

yii2 การนับคนเปิดอ่านบทความ

_item.php

แทรกบรรทัดนี้
<h5 class="media-heading"><?php echo $model->event_name; ?> <span class="badge">
<i class="fa fa-eye" aria-hidden="true">
</i> <?php echo $model->view; ?></span></h5>

ไฟล์view
<div class="donate-view">
<?php
$view = $model->view + 1;
$model->view = $view;
$model->save();
?>
สร้าง table เพิ่ม column  view  int 11
view int 11 0 -



















วันอังคารที่ 19 พฤศจิกายน พ.ศ. 2562

การแก้ไขส่งออกข้อมููลเคลม(E-claim)เกิดข้อมูลผิดพลาด เนื่องจากไฟล์มีปัญหาจึงไม่สามารถนำเข้าระบบได้

การแก้ไขส่งออกข้อมููลเคลม(E-claim)เกิดข้อมูลผิดพลาด เนื่องจากไฟล์มีปัญหาจึงไม่สามารถนำเข้าระบบได้

สถานะข้อมูลในโปรแกรม e-Claim
0  = ผ่านการตรวจสอบขั้นต้น รอส่ง
1 =  ไม่ผ่านการตรวจสอบขั้นต้น
2 =  ส่งข้อมูลไปยัง สปสช.
3 = ไม่ผ่านการตรวจสอบจาก สปสช.
4 = ผ่านการตรวจสอบจาก สปสช.
5 = ข้อมูลเก่า


ฐาน MySQL ใช้คำสั่ง
update eclaimdb.m_registerdata m set m.status='0' where m.filename_send in ('eclaim_10953_1_25630410_131803924.ecd','eclaim_10953_1_25630410_142522738.ecd','eclaim_10953_2_25630414_140014667.ecd','eclaim_10953_1_25630414_14045515.ecd');


ฐาน Access ใช้คำสั่ง

update m_registerdata m set m.status='0' where m.filename_send in ('eclaim_10953_1_25630410_131803924.ecd','eclaim_10953_1_25630410_142522738.ecd','eclaim_10953_2_25630414_140014667.ecd','eclaim_10953_1_25630414_14045515.ecd');



ฐาน MySQL ใช้คำสั่ง
update eclaimdb.m_registerdata m set m.status='0' where m.filename_send in ('eclaim_10953_OPCS_25621113_145121585.ecd');

ฐาน Access ใช้คำสั่ง
update m_registerdata m set m.status='0' where m.filename_send in ('eclaim_10953_OPCS_25621113_145121585.ecd');


เมื่อดำเนินการเรียบร้อย ข้อมูลที่เคยส่งจะเปลี่ยนจากสีเหลืองเป็นสีขาว ให้หน่วยบริการแก้ไขเคสที่มีปัญหา จากนั้นส่งออกข้อมูลทั้งหมดใหม่อีกครั้ง