BMS-HOSxP Community

HOSxP => Development => ข้อความที่เริ่มโดย: udomchok ที่ กรกฎาคม 05, 2013, 12:14:43 PM

หัวข้อ: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: udomchok ที่ กรกฎาคม 05, 2013, 12:14:43 PM
ขอรบกวน อ.ชัยพร ช่วยปรับความกว้างของ column staff ในทุกตารางที่เกี่ยวข้องกันให้ด้วยครับ เพราะมีบาง ร.พ. กำหนด user ที่ใช้ login เป็นเลขประจำตัวประชาชน ทำให้เก็บข้อมูลลงบางตารางไม่ถูกต้องครับ
เช่น screen_doctor.staff varchar (10) เป็นต้น

ขอบคุณครับ   :) :) :) :)
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: udomchok ที่ กรกฎาคม 09, 2013, 01:17:08 AM
อ.ชัยพร แก้ไขให้แล้วใน Version 3.56.7.7
ขอบคุณครับ


ตารางที่มีการปรับเปลี่ยนความกว้างของ staff

opitemrece_arc.staff varchar (15)
opitemrece_bak.staff varchar (15)
opitemrece_delta.staff varchar (15)
opitemrece_finance_delete.staff varchar (15)
opitemrece_ipd.staff varchar (15)
opitemrece_trx.staff varchar (15)
ovst.staff varchar (15)
ptdepart.staff varchar (15)
rx_operator.check_staff varchar(15)
rx_operator.pay_staff varchar(15)
rx_operator.confirm_staff varchar(15)
screen_doctor.staff varchar (15)
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: jassada ที่ กรกฎาคม 09, 2013, 08:50:23 AM
ไม่ทราบใช้เวลาในการปรับนานไหมครับ
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: Noppadol ที่ กรกฎาคม 09, 2013, 09:33:05 AM
แล้วบางตารางที่ไม่ใช่ staff หล่ะครับ เพราะในฐานมีฟิวล์ที่เก็บข้อมูลเหล่านี้ทั้ง user/login/loginname ???
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: ittipol ที่ กรกฎาคม 09, 2013, 09:39:18 AM
เยี่ยมเลยครับอาจารย์รอมานานล่ะครับ
เพราะ staff ผมใช้งานเป็น 13 หลักครับ
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: udomchok ที่ กรกฎาคม 09, 2013, 21:23:42 PM
เยี่ยมเลยครับอาจารย์รอมานานล่ะครับ
เพราะ staff ผมใช้งานเป็น 13 หลักครับ
อ้าว...อย่างนี้ ข้อมูลก็ผิดพลาดไปเยอะแล้วสิครับ เพราะหลายตารางเก็บแค่ 10
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: udomchok ที่ กรกฎาคม 09, 2013, 21:25:13 PM
ไม่ทราบใช้เวลาในการปรับนานไหมครับ
นานครับ
ovst, screen_doctor อย่างน้อย 2 ตารางนี้ก็พอสมควรแล้ว ขึ้นกับจำนวนข้อมูลและ spec server ด้วยครับ
แนะนำทำตอนดึก ๆ ที่ไม่ค่อยมีใครใช้งานนะครับ
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: udomchok ที่ กรกฎาคม 09, 2013, 21:30:43 PM
แล้วบางตารางที่ไม่ใช่ staff หล่ะครับ เพราะในฐานมีฟิวล์ที่เก็บข้อมูลเหล่านี้ทั้ง user/login/loginname ???
ลองแจ้งตารางที่ว่ามาด้วยครับ
ผมลองหาดูบ้างแล้ว แต่ยังไม่พบ หากพบในตารางไหนจะได้ให้ อ.ชัยพร ปรับปรุงให้ เพื่อให้เกิดประโยชน์กับ ร.พ. อื่น ๆ ด้วย
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: usa0823 ที่ กรกฎาคม 09, 2013, 21:31:51 PM
น่ากลัวจริงๆ :o
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: Noppadol ที่ กรกฎาคม 10, 2013, 18:35:18 PM
ประมาณนี้อ่ะครับพี่โก้

update allergy_confirm set staff = 'xxx' where staff = 'zzz';
update ar_detail set staff = 'xxx' where staff = 'zzz';
update blood_pay_detail set staff = 'xxx' where staff = 'zzz';
update clinic_cormobidity_list set staff = 'xxx' where staff = 'zzz';
update custom_pttype set staff = 'xxx' where staff = 'zzz';
update depression_screen set staff = 'xxx' where staff = 'zzz';
update doctor_cert set staff = 'xxx' where staff = 'zzz';
update doctor_consult set staff = 'xxx' where staff = 'zzz';
update doctor_fee_list set staff = 'xxx' where staff = 'zzz';
update doctor_order_print set staff = 'xxx' where staff = 'zzz';
update doctor_order_print_head set staff = 'xxx' where staff = 'zzz';
update doctor_order_print_head_queue set staff = 'xxx' where staff = 'zzz';
update doctor_order_print_queue set staff = 'xxx' where staff = 'zzz';
update doctor_schedule set staff = 'xxx' where staff = 'zzz';
update drug_counseling_list set staff = 'xxx' where staff = 'zzz';
update drug_due_list set staff = 'xxx' where staff = 'zzz';
update drugeval set staff = 'xxx' where staff = 'zzz';
update drugstore_detail set staff = 'xxx' where staff = 'zzz';
update drugstore_head set staff = 'xxx' where staff = 'zzz';
update ds_opdscreen_drink set staff = 'xxx' where staff = 'zzz';
update dt_ipd_list set staff = 'xxx' where staff = 'zzz';
update dtmain set staff = 'xxx' where staff = 'zzz';
update dw_emr_log set staff = 'xxx' where staff = 'zzz';
update edoc_revolve_list set staff = 'xxx' where staff = 'zzz';
update edoc_user_list set staff = 'xxx' where staff = 'zzz';
update enoc_member set staff = 'xxx' where staff = 'zzz';
update enoc_member_dw set staff = 'xxx' where staff = 'zzz';
update eye_screen set staff = 'xxx' where staff = 'zzz';
update finance_deposit set staff = 'xxx' where staff = 'zzz';
update finance_ticket_visit set staff = 'xxx' where staff = 'zzz';
update health_med_queue set staff = 'xxx' where staff = 'zzz';
update hipdata_service_ds set staff = 'xxx' where staff = 'zzz';
update his_ovst set staff = 'xxx' where staff = 'zzz';
update incoth_summary_head set staff = 'xxx' where staff = 'zzz';
update ipd_df set staff = 'xxx' where staff = 'zzz';
update ipd_nurse_note set staff = 'xxx' where staff = 'zzz';
update ipt set staff = 'xxx' where staff = 'zzz';
update ipt_admit_queue set staff = 'xxx' where staff = 'zzz';
update ipt_chart_location_log set staff = 'xxx' where staff = 'zzz';
update ipt_diagnosis_log set staff = 'xxx' where staff = 'zzz';
update ipt_pttype set staff = 'xxx' where staff = 'zzz';
update ipt_vital_sign set staff = 'xxx' where staff = 'zzz';
update ipt_vital_sign_history set staff = 'xxx' where staff = 'zzz';
update iptdiag set staff = 'xxx' where staff = 'zzz';
update kpi_detail set staff = 'xxx' where staff = 'zzz';
update kpi_save set staff = 'xxx' where staff = 'zzz';
update lab_access_log set staff = 'xxx' where staff = 'zzz';
update lab_app_order set staff = 'xxx' where staff = 'zzz';
update lab_entry_log set staff = 'xxx' where staff = 'zzz';
update lab_order set staff = 'xxx' where staff = 'zzz';
update lab_order_print set staff = 'xxx' where staff = 'zzz';
update medication_reconciliation set staff = 'xxx' where staff = 'zzz';
update money_mamber set staff = 'xxx' where staff = 'zzz';
update nurse_confirm_rx set staff = 'xxx' where staff = 'zzz';
update oapp_cancel set staff = 'xxx' where staff = 'zzz';
update oapp_pending_log set staff = 'xxx' where staff = 'zzz';
update opd_hn_change set staff = 'xxx' where staff = 'zzz';
update opd_order_no set staff = 'xxx' where staff = 'zzz';
update opd_regist_sendlist set staff = 'xxx' where staff = 'zzz';
update opdcard_location set staff = 'xxx' where staff = 'zzz';
update opdcard_not_found set staff = 'xxx' where staff = 'zzz';
update opdcard_print_log set staff = 'xxx' where staff = 'zzz';
update opdscreen_bp set staff = 'xxx' where staff = 'zzz';
update opdscreen_cc_history set staff = 'xxx' where staff = 'zzz';
update opdscreen_pregnancy set staff = 'xxx' where staff = 'zzz';
update operation_anes_problem set staff = 'xxx' where staff = 'zzz';
update operation_cancel set staff = 'xxx' where staff = 'zzz';
update operation_list set staff = 'xxx' where staff = 'zzz';
update operation_postpone set staff = 'xxx' where staff = 'zzz';
update operation_schedule set staff = 'xxx' where staff = 'zzz';
update opitemrece set staff = 'xxx' where staff = 'zzz';
update opitemrece_arc set staff = 'xxx' where staff = 'zzz';
update opitemrece_bak set staff = 'xxx' where staff = 'zzz';
update opitemrece_delete_log set staff = 'xxx' where staff = 'zzz';
update opitemrece_delta set staff = 'xxx' where staff = 'zzz';
update opitemrece_finance_delete set staff = 'xxx' where staff = 'zzz';
update opitemrece_finance_log set staff = 'xxx' where staff = 'zzz';
update opitemrece_ipd set staff = 'xxx' where staff = 'zzz';
update opitemrece_log set staff = 'xxx' where staff = 'zzz';
update opitemrece_trx set staff = 'xxx' where staff = 'zzz';
update ovst set staff = 'xxx' where staff = 'zzz';
update ovst_department set staff = 'xxx' where staff = 'zzz';
update ovst_sks_confirm set staff = 'xxx' where staff = 'zzz';
update ovst_vaccine set staff = 'xxx' where staff = 'zzz';
update ovstdiag set staff = 'xxx' where staff = 'zzz';
update patient_allergy_pcu_screen set staff = 'xxx' where staff = 'zzz';
update patient_emr_log set staff = 'xxx' where staff = 'zzz';
update patient_file set staff = 'xxx' where staff = 'zzz';
update patient_foreignworker set staff = 'xxx' where staff = 'zzz';
update patient_hospital_refer set staff = 'xxx' where staff = 'zzz';
update patient_ipd_scan set staff = 'xxx' where staff = 'zzz';
update patient_log set staff = 'xxx' where staff = 'zzz';
update patient_nc set staff = 'xxx' where staff = 'zzz';
update patient_opd_scan set staff = 'xxx' where staff = 'zzz';
update patient_realname set staff = 'xxx' where staff = 'zzz';
update patient_special_prop set staff = 'xxx' where staff = 'zzz';
update patient_vaccine set staff = 'xxx' where staff = 'zzz';
update pcu_reporttemplate set staff = 'xxx' where staff = 'zzz';
update person_dmht_risk_screen_head set staff = 'xxx' where staff = 'zzz';
update person_ht011 set staff = 'xxx' where staff = 'zzz';
update person_ipd_home set staff = 'xxx' where staff = 'zzz';
update person_screen_form set staff = 'xxx' where staff = 'zzz';
update person_screen_head set staff = 'xxx' where staff = 'zzz';
update pq_doctor set staff = 'xxx' where staff = 'zzz';
update pq_ipd_rxorder set staff = 'xxx' where staff = 'zzz';
update pq_ipdorder set staff = 'xxx' where staff = 'zzz';
update pq_opdcard set staff = 'xxx' where staff = 'zzz';
update pq_opdcard_tag set staff = 'xxx' where staff = 'zzz';
update pq_rxorder set staff = 'xxx' where staff = 'zzz';
update pq_screen set staff = 'xxx' where staff = 'zzz';
update pt_consult set staff = 'xxx' where staff = 'zzz';
update pt_medication_history set staff = 'xxx' where staff = 'zzz';
update ptdepart set staff = 'xxx' where staff = 'zzz';
update pttype_log set staff = 'xxx' where staff = 'zzz';
update rcpt_arrear set staff = 'xxx' where staff = 'zzz';
update rcpt_credit set staff = 'xxx' where staff = 'zzz';
update rcpt_current set staff = 'xxx' where staff = 'zzz';
update rcpt_debt set staff = 'xxx' where staff = 'zzz';
update rcpt_debt_cancel set staff = 'xxx' where staff = 'zzz';
update rcpt_debt_finance set staff = 'xxx' where staff = 'zzz';
update referin set staff = 'xxx' where staff = 'zzz';
update reporttemplate_history set staff = 'xxx' where staff = 'zzz';
update rx_pay_template set staff = 'xxx' where staff = 'zzz';
update screen_doctor set staff = 'xxx' where staff = 'zzz';
update service_time set staff = 'xxx' where staff = 'zzz';
update social_aid set staff = 'xxx' where staff = 'zzz';
update stock_adjust_head set staff = 'xxx' where staff = 'zzz';
update stock_check_warehouse_head set staff = 'xxx' where staff = 'zzz';
update stock_manual_head set staff = 'xxx' where staff = 'zzz';
update stock_ovst set staff = 'xxx' where staff = 'zzz';
update stock_warehouse_adj_head set staff = 'xxx' where staff = 'zzz';
update surveil_member set staff = 'xxx' where staff = 'zzz';
update surveil_member_507 set staff = 'xxx' where staff = 'zzz';
update surveil_member_dw set staff = 'xxx' where staff = 'zzz';
update universal_form set staff = 'xxx' where staff = 'zzz';
update universal_head set staff = 'xxx' where staff = 'zzz';
update village_school_shift set staff = 'xxx' where staff = 'zzz';
update visit_plan set staff = 'xxx' where staff = 'zzz';
update visit_pttype set staff = 'xxx' where staff = 'zzz';
update visit_pttype_change set staff = 'xxx' where staff = 'zzz';
update vital_sign_data set staff = 'xxx' where staff = 'zzz';
update xray_appointment set staff = 'xxx' where staff = 'zzz';
update xray_film_staff set staff = 'xxx' where staff = 'zzz';
update xray_order set staff = 'xxx' where staff = 'zzz';
update xray_report set staff = 'xxx' where staff = 'zzz';
update rcpt_abort set user = 'xxx' where user = 'zzz';
update rcpt_print set user = 'xxx' where user = 'zzz';
update sp_use set user = 'xxx' where user = 'zzz';
update rx_operator set login = 'xxx' where login = 'zzz';
update drug_user_check set loginname = 'xxx' where loginname = 'zzz';
update edoc_activity_list set loginname = 'xxx' where loginname = 'zzz';
update ir_prepare set loginname = 'xxx' where loginname = 'zzz';
update ksklog set loginname = 'xxx' where loginname = 'zzz';
update lab_items_report_right set loginname = 'xxx' where loginname = 'zzz';
update micnp set loginname = 'xxx' where loginname = 'zzz';
update onlineuser set loginname = 'xxx' where loginname = 'zzz';
update onlineuser_dshos set loginname = 'xxx' where loginname = 'zzz';
update opduser set loginname = 'xxx' where loginname = 'zzz';
update opduser_default set loginname = 'xxx' where loginname = 'zzz';
update opduser_right set loginname = 'xxx' where loginname = 'zzz';
update printserver set loginname = 'xxx' where loginname = 'zzz';
update readmit set loginname = 'xxx' where loginname = 'zzz';
update report_access_log set loginname = 'xxx' where loginname = 'zzz';
update risk_user_access set loginname = 'xxx' where loginname = 'zzz';
update stock_user set loginname = 'xxx' where loginname = 'zzz';
update user_finger_template set loginname = 'xxx' where loginname = 'zzz';
update web_pwd set loginname = 'xxx' where loginname = 'zzz';


เพราะผมเคยอัพเดตข้อมูลในฐาน  แต่ไม่รู้ว่าหลังๆจะมีเพิ่มมาอีกหรือเปล่า ???
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: nongnine ที่ กรกฎาคม 11, 2013, 14:42:09 PM
ลองเอา เครื่องมือค้นหา ไปตรวจได้ครับ
เครื่องมือจะค้นหา field ที่ระบุ ในทุกตาราง และ
- แสดงรายตารางที่มีฟิลด์ ที่ระบุอยู่
- จะบอกขนาดฟิลด์ และกรองขนาดฟิลด์ได้
- สร้างและส่งออกคำสั่งปรับปรุงตารางเป็น file ได้
- เปิดตารางและแก้ไขให้ถูกได้ และส้รางชุดคำสั่งเป็นไฟล์

และนำไฟล์ไปปรับปรุงได้เอง ด้วยมือ

ดาวน์โหลดที่ http://thaigovweb.com/download.php?file=HOSMiniXE&type=rar
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: Noppadol ที่ กรกฎาคม 11, 2013, 16:18:10 PM
ลองเอา เครื่องมือค้นหา ไปตรวจได้ครับ
เครื่องมือจะค้นหา field ที่ระบุ ในทุกตาราง และ
- แสดงรายตารางที่มีฟิลด์ ที่ระบุอยู่
- จะบอกขนาดฟิลด์ และกรองขนาดฟิลด์ได้
- สร้างและส่งออกคำสั่งปรับปรุงตารางเป็น file ได้
- เปิดตารางและแก้ไขให้ถูกได้ และส้รางชุดคำสั่งเป็นไฟล์

และนำไฟล์ไปปรับปรุงได้เอง ด้วยมือ

ดาวน์โหลดที่ http://thaigovweb.com/download.php?file=HOSMiniXE&type=rar

ทดสอบแล้วครับ เงียบกริบ ทุกเมนู ไม่ทราบว่านอกจากตั้งค่า connect ฐาน hos แล้ว ต้องตั้งอะไรอีกมั๊ยครับ
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: nongnine ที่ กรกฎาคม 11, 2013, 23:14:03 PM
ลองเอา เครื่องมือค้นหา ไปตรวจได้ครับ
เครื่องมือจะค้นหา field ที่ระบุ ในทุกตาราง และ
- แสดงรายตารางที่มีฟิลด์ ที่ระบุอยู่
- จะบอกขนาดฟิลด์ และกรองขนาดฟิลด์ได้
- สร้างและส่งออกคำสั่งปรับปรุงตารางเป็น file ได้
- เปิดตารางและแก้ไขให้ถูกได้ และส้รางชุดคำสั่งเป็นไฟล์

และนำไฟล์ไปปรับปรุงได้เอง ด้วยมือ

ดาวน์โหลดที่ http://thaigovweb.com/download.php?file=HOSMiniXE&type=rar

ทดสอบแล้วครับ เงียบกริบ ทุกเมนู ไม่ทราบว่านอกจากตั้งค่า connect ฐาน hos แล้ว ต้องตั้งอะไรอีกมั๊ยครับ

ใช้เมนูตามภาพครับ
หัวข้อ: Re: เปลี่ยนความกว้างของ column staff ในทุกตาราง
เริ่มหัวข้อโดย: udomchok ที่ กรกฎาคม 13, 2013, 22:17:23 PM
ประมาณนี้อ่ะครับพี่โก้
..............
เพราะผมเคยอัพเดตข้อมูลในฐาน  แต่ไม่รู้ว่าหลังๆจะมีเพิ่มมาอีกหรือเปล่า ???

หลายตารางมีความกว้างมากกว่า 10 อยู่แล้วครับ ลองดูใน file แนบของกระทู้แรก

ส่วนการดูชื่อ field ไม่ต้องใช้ tools อื่นช่วยก็ได้ เพราะมีอยู่ HOSxP อยู่แล้ว
File ที่แนบมาในกระทู้แรกนั้นก็ใช้ tool ใน HOSxP นี่แหละ ดึงมาเหมือนกัน