SPMMO21400_휴일회진등록.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO21400" position="absolute 0 0 900 716" titletext="주말/공휴일/출장일 회진 등록" onload="SPMMO21400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="외래 환자별 진료소요시간" position="absolute 0 71 186 92" align="align:center middle;" id="caption2" class="tit_2"/>
  8. <Grid position="absolute 0 88 900 716" align="align:center middle;" id="grd_holirndlist" binddataset="ds_main_holirndlist">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="25"/>
  13. <Column size="80"/>
  14. <Column size="90"/>
  15. <Column size="75"/>
  16. <Column size="75"/>
  17. <Column size="150"/>
  18. <Column size="90"/>
  19. <Column size="72"/>
  20. <Column size="90"/>
  21. <Column size="120"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="24" band="head"/>
  28. <Row size="24"/>
  29. </Rows>
  30. <Band id="head">
  31. <Cell/>
  32. <Cell col="1" text="등록번호"/>
  33. <Cell col="2" text="성명"/>
  34. <Cell col="3" text="입원일자"/>
  35. <Cell col="4" text="회진일자"/>
  36. <Cell col="5" text="진료과"/>
  37. <Cell col="6" text="전문의"/>
  38. <Cell col="7" text="회진"/>
  39. <Cell col="8" text="등록자"/>
  40. <Cell col="9" text="등록일시"/>
  41. <Cell col="10"/>
  42. <Cell col="11"/>
  43. <Cell col="12"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head" expr="expr:currow+1"/>
  47. <Cell col="1" text="bind:pid"/>
  48. <Cell col="2" text="bind:hngnm"/>
  49. <Cell col="3" displaytype="date" text="bind:indd"/>
  50. <Cell col="4" displaytype="date" text="bind:rndddopt"/>
  51. <Cell col="5" text="bind:orddept"/>
  52. <Cell col="6" text="bind:medispclnm"/>
  53. <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:rgstyn" expr="expr:(rgstyn==&quot;Y&quot;||rgstyn==1)?1:0"/>
  54. <Cell col="8" text="bind:rgstdrnm"/>
  55. <Cell col="9" displaytype="normal" text="bind:rgstdt" mask="####-##-## ##:##"/>
  56. <Cell col="10" text="bind:instcd"/>
  57. <Cell col="11" text="bind:rnddd"/>
  58. <Cell col="12" text="bind:cretno"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Static text="주말/공휴일/출장일 회진 등록" position="absolute 0 0 213 25" id="caption6" class="tit_1"/>
  64. <Button position="absolute 812 67 854 86" id="btn_save" class="btn5" text="저장" onclick="btn_save_onclick"/>
  65. <Button position="absolute 857 67 899 86" id="button1" class="btn5" text="닫기" onclick="button1_onclick"/>
  66. <Div id="group1" taborder="1" class="div_SA" position="absolute 0 25 900 60">
  67. <Layouts>
  68. <Layout>
  69. <Static id="caption14" text="회 진 일" class="search_name" position="absolute 16 10 92 27" anchor="default"/>
  70. <Static id="caption26" text="진 료 과" class="search_name" position="absolute 258 10 334 27" anchor="default"/>
  71. <Static id="caption29" text="전 문 의" class="search_name" position="absolute 563 10 639 27" anchor="default"/>
  72. <Calendar id="ipt_orddd" taborder="1" class="input" position="absolute 96 9 202 28" anchor="default" onchanged="group1_ipt_orddd_onchanged"/>
  73. <Shape id="line3" linetype="vertical" position="absolute 807 8 813 29" anchor="default"/>
  74. <Combo id="cmb_orddept" taborder="2" innerdataset="@ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_default" position="absolute 337 9 487 28" anchor="default" onitemchanged="group1_cmb_orddept_onitemchanged"/>
  75. <Button id="btn_req" taborder="3" text="조회" class="btn1" position="absolute 827 7 883 29" anchor="default" onclick="group1_btn_req_onclick"/>
  76. <Combo id="cmb_medispclid" taborder="4" innerdataset="@ds_init_userlist" codecolumn="userid" datacolumn="usernm" position="absolute 642 9 732 28" anchor="default"/>
  77. </Layout>
  78. </Layouts>
  79. </Div>
  80. </Layout>
  81. </Layouts>
  82. <Objects>
  83. <Dataset id="ds_main_holirndlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_holirndlist_oncolumnchanged">
  84. <ColumnInfo>
  85. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  86. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  87. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  88. <Column id="rndddopt" type="STRING" size="256" sumtext="회진일자_OUTPUT"/>
  89. <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
  90. <Column id="medispclnm" type="STRING" size="256" sumtext="진료의사"/>
  91. <Column id="rgstyn" type="STRING" size="256" sumtext="진료여부"/>
  92. <Column id="rgstdrnm" type="STRING" size="256" sumtext="등록자"/>
  93. <Column id="rgstdt" type="STRING" size="256" sumtext="등록일시"/>
  94. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  95. <Column id="rnddd" type="STRING" size="256" sumtext="회진일자"/>
  96. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  97. </ColumnInfo>
  98. </Dataset>
  99. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="orddd" type="STRING" size="256"/>
  102. <Column id="orddeptcd" type="STRING" size="256"/>
  103. <Column id="medispclid" type="STRING" size="256"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row/>
  107. </Rows>
  108. </Dataset>
  109. <Dataset id="ds_init_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  110. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  111. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  112. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  115. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  116. <Column id="rnddd" type="STRING" size="256" sumtext="회진일자"/>
  117. <Column id="rgstyn" type="STRING" size="256" sumtext="진료여부"/>
  118. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  119. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. </Objects>
  123. <Bind>
  124. <BindItem id="item0" compid="group1.ipt_orddd" propid="value" datasetid="ds_main_cond" columnid="orddd"/>
  125. <BindItem id="item1" compid="group1.cmb_orddept" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
  126. <BindItem id="item2" compid="group1.cmb_medispclid" propid="value" datasetid="ds_main_cond" columnid="medispclid"/>
  127. </Bind>
  128. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  129. * System Name :
  130. * Job Name :
  131. * Creator :
  132. * Make Date : 2014-12-31
  133. * Description :
  134. *---------------------------------------------------------------------------------------
  135. * Modify Date Modifier Modify Description
  136. *---------------------------------------------------------------------------------------
  137. * 2014-12-31 Live Converter TF->XP
  138. *
  139. *---------------------------------------------------------------------------------------
  140. ****************************************************************************************/
  141. //=======================================================================================
  142. // Lib Include
  143. //---------------------------------------------------------------------------------------
  144. include "com_commonxp::comm_main.xjs"
  145. include "emr_prcpmngtxp::SPMMO21400.xjs"
  146. include "emr_prcpmngtxp::MMOCommon.xjs"
  147. include "emr_medirecxp::MMRCommon.xjs"
  148. //=======================================================================================
  149. // Event
  150. //---------------------------------------------------------------------------------------
  151. /****************************************************************************************
  152. * Components : Form
  153. * Components ID : SPMMO21400
  154. * Event : onload
  155. * Argument : 01.obj : Object Event has occurred
  156. * : 02.e : Event Object
  157. * Description : 화면오픈시 폼load이후 실행
  158. ****************************************************************************************/
  159. function SPMMO21400_onload(obj:Form, e:LoadEventInfo)
  160. {
  161. frmf_initForm(obj); // 폼 초기화
  162. fInitialize_SPMMO21400();
  163. }
  164. /****************************************************************************************
  165. * Components : Calendar
  166. * Components ID : group1.ipt_orddd
  167. * Event : onchanged
  168. * Argument : 01.obj : Object Event has occurred
  169. * : 02.e : Event Object
  170. * Description : 회진일자 변경시 조회 실행
  171. ****************************************************************************************/
  172. function group1_ipt_orddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  173. {
  174. var ev = new ClickEventInfo;
  175. frmf_inputEnterKey("group1.btn_req", "onclick", ev );
  176. }
  177. /****************************************************************************************
  178. * Components : Combo
  179. * Components ID : group1.cmb_orddept
  180. * Event : onitemchanged
  181. * Argument : 01.obj : Object Event has occurred
  182. * : 02.e : Event Object
  183. * Description : 진료과 변경시 전문의 재조회
  184. ****************************************************************************************/
  185. function group1_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  186. {
  187. ds_init_userlist.clear();
  188. lf_mmbfGetUserComboList(ds_init_userlist,group1.cmb_orddept.value,"0330","","","","","","","");
  189. if(ds_init_userlist.rowcount > 0) {
  190. // frmf_addDsItem(ds_init_userlist,"userid","usernm","전체","-"); //의사콤보 전체항목 추가
  191. frmf_addComboItem("group1.cmb_medispclid");
  192. } else {
  193. ds_main_cond.setColumn(0,"medispclid","-");
  194. }
  195. group1.cmb_medispclid.index = 0;
  196. }
  197. /****************************************************************************************
  198. * Components : Button
  199. * Components ID : group1.btn_req
  200. * Event : onclick
  201. * Argument : 01.obj : Object Event has occurred
  202. * : 02.e : Event Object
  203. * Description : 조회 버튼 실행
  204. ****************************************************************************************/
  205. function group1_btn_req_onclick(obj:Button, e:ClickEventInfo)
  206. {
  207. fReqHoliRndList();
  208. }
  209. /****************************************************************************************
  210. * Components : Button
  211. * Components ID : btn_save
  212. * Event : onclick
  213. * Argument : 01.obj : Object Event has occurred
  214. * : 02.e : Event Object
  215. * Description : 저장 버튼 실행
  216. ****************************************************************************************/
  217. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  218. {
  219. fClkBtnHoliRndSave();
  220. }
  221. /****************************************************************************************
  222. * Components : Button
  223. * Components ID : button1
  224. * Event : onclick
  225. * Argument : 01.obj : Object Event has occurred
  226. * : 02.e : Event Object
  227. * Description : 닫기 버튼 실행
  228. ****************************************************************************************/
  229. function button1_onclick(obj:Button, e:ClickEventInfo)
  230. {
  231. this.close();
  232. }
  233. /****************************************************************************************
  234. * Components : Dataset
  235. * Components ID : ds_main_holirndlist
  236. * Event : oncolumnchanged
  237. * Argument : 01.obj : Object Event has occurred
  238. * : 02.e : Event Object
  239. * Description : 체크 항목 선택시 값 Y/N 전환
  240. ****************************************************************************************/
  241. function ds_main_holirndlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  242. {
  243. if(e.columnid=="rgstyn") {
  244. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  245. var ls_today = "";
  246. if (obj.getColumn(e.row,e.columnid) == "Y")
  247. {
  248. ls_today = ds_main_cond.getColumn(0,"orddd");
  249. }
  250. obj.setColumn(e.row,"rndddopt",ls_today);
  251. obj.setColumn(e.row,"rnddd",ds_main_cond.getColumn(0,"orddd"));
  252. }
  253. }]]></Script>
  254. </Form>
  255. </FDL>