SPPMI03500_입원등록선택신청확인.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMI03500" position="absolute 0 0 592 411" titletext="선택신청서명 - 확인" onload="SPPMI03500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption26" text="선택신청서명 - 확인" class="tit_1" position="absolute 0 0 160 25"/>
  8. <Static id="caption1" text="선택서명리스트&#13;&#10; submit(&quot;TRPMI00121&quot;); &#13;&#10; " class="tit_2" position="absolute 0 30 118 46"/>
  9. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 46 587 52" style="strokepen:3 solid #33bbbbff;"/>
  10. <Grid id="grd_patappinfo" taborder="1" binddataset="ds_main_patappinfo" useinputpanel="false" position="absolute 0 51 587 368" autofittype="col" oncelldblclick="grd_patappinfo_oncelldblclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="84"/>
  15. <Column size="99"/>
  16. <Column size="132"/>
  17. <Column size="100"/>
  18. <Column size="54"/>
  19. <Column size="100"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="24" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell text="환자번호"/>
  29. <Cell col="1" text="입원희망일"/>
  30. <Cell col="2" text="진료과"/>
  31. <Cell col="3" text="진료의"/>
  32. <Cell col="4" text="선택여부"/>
  33. <Cell col="5" text="선택신청일"/>
  34. <Cell col="6" text="예약일"/>
  35. <Cell col="7" text="fromdd"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell style="align:center middle;" text="bind:pid"/>
  39. <Cell col="1" displaytype="date" edittype="date" style="align:center middle;" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  40. <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  41. <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
  42. <Cell col="4" displaytype="normal" style="align:center middle;" text="bind:specordyn"/>
  43. <Cell col="5" displaytype="date" edittype="date" style="align:center middle;" text="bind:elctappdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  44. <Cell col="6" displaytype="date" edittype="date" text="bind:rsrvdd"/>
  45. <Cell col="7" displaytype="date" edittype="date" text="bind:fromdd"/>
  46. </Band>
  47. </Format>
  48. </Formats>
  49. </Grid>
  50. <Button id="btn_confirm" taborder="2" text="수정" class="btn4" position="absolute 473 376 529 398" onclick="btn_confirm_onclick"/>
  51. <Button id="btn_cancel" taborder="3" text="닫기" class="btn4" position="absolute 531 376 587 398" onclick="btn_cancel_onclick"/>
  52. <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 367 587 373"/>
  53. </Layout>
  54. </Layouts>
  55. <Objects>
  56. <Dataset id="ds_main_patappinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  59. <Column id="orddd" type="STRING" size="256" sumtext="입원일"/>
  60. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  61. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  62. <Column id="specordyn" type="STRING" size="256" sumtext="선택여부"/>
  63. <Column id="elctappdd" type="STRING" size="256" sumtext="신청일"/>
  64. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일"/>
  65. <Column id="fromdd" type="STRING" size="256" sumtext="시작일"/>
  66. </ColumnInfo>
  67. </Dataset>
  68. <Dataset id="ds_init_P0018list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  69. <ColumnInfo>
  70. <Column id="cdid" type="STRING" size="256"/>
  71. <Column id="cdnm" type="STRING" size="256"/>
  72. </ColumnInfo>
  73. </Dataset>
  74. <Dataset id="ds_init_P0032list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  75. <ColumnInfo>
  76. <Column id="cdid" type="STRING" size="256"/>
  77. <Column id="cdnm" type="STRING" size="256"/>
  78. </ColumnInfo>
  79. </Dataset>
  80. <Dataset id="ds_init_P0059list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  81. <ColumnInfo>
  82. <Column id="cdid" type="STRING" size="256"/>
  83. <Column id="cdnm" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. </Dataset>
  86. <Dataset id="ds_init_P0002list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="cdid" type="STRING" size="256"/>
  89. <Column id="cdnm" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. </Dataset>
  92. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="cd" type="STRING" size="256" sumtext="진료과코드"/>
  95. <Column id="nm" type="STRING" size="256" sumtext="진료과명"/>
  96. <Column id="deptengabbr" type="STRING" size="256" sumtext="영문약어"/>
  97. <Column id="deptengabbr2" type="STRING" size="256" sumtext="영문약어"/>
  98. <Column id="reqdeptno" type="STRING" size="256" sumtext="과번호"/>
  99. <Column id="orddeptflag" type="STRING" size="256" sumtext="처방사용구분"/>
  100. </ColumnInfo>
  101. </Dataset>
  102. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="cd" type="STRING" size="256" sumtext="진료의사ID"/>
  105. <Column id="nm" type="STRING" size="256" sumtext="진료의사명"/>
  106. <Column id="dp" type="STRING" size="256" sumtext="진료과명"/>
  107. <Column id="sp" type="STRING" size="256" sumtext="선택진료"/>
  108. <Column id="nmspecyn" type="STRING" size="256" sumtext="이름 선택진료여부"/>
  109. <Column id="drengabbr" type="STRING" size="256" sumtext="의사영문약어"/>
  110. <Column id="jobposcd" type="STRING" size="256" sumtext="직위"/>
  111. </ColumnInfo>
  112. </Dataset>
  113. <Dataset id="ds_send_patappinfo_patappinfo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  114. </Objects>
  115. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  116. * System Name :
  117. * Job Name :
  118. * Creator :
  119. * Make Date : 2016-05-24
  120. * Description :
  121. *---------------------------------------------------------------------------------------
  122. * Modify Date Modifier Modify Description
  123. *---------------------------------------------------------------------------------------
  124. * 2016-05-24 Live Converter TF->XP
  125. *
  126. *---------------------------------------------------------------------------------------
  127. ****************************************************************************************/
  128. //=======================================================================================
  129. // Lib Include
  130. //---------------------------------------------------------------------------------------
  131. include 'com_commonxp::comm_main.xjs';
  132. var arErrorCode = new HashArray();
  133. //=======================================================================================
  134. // Local methods
  135. //---------------------------------------------------------------------------------------
  136. /****************************************************************************************
  137. * Argument :
  138. * Description :
  139. ****************************************************************************************/
  140. //=======================================================================================
  141. // callback
  142. //---------------------------------------------------------------------------------------
  143. function callback(sSvcId, nErrorCode, sErrorMsg){
  144. arErrorCode.push(sSvcId, nErrorCode);
  145. }
  146. //=======================================================================================
  147. // Events
  148. //---------------------------------------------------------------------------------------
  149. /****************************************************************************************
  150. * Argument :
  151. * Description : onload
  152. ****************************************************************************************/
  153. function SPPMI03500_onload(obj:Form, e:LoadEventInfo){
  154. // 폼 초기화
  155. frmf_initForm(obj);
  156. try{
  157. ds_send_patappinfo_patappinfo1.copyData(arg_ds_send_patappinfo_patappinfo1);
  158. }catch(e){}
  159. // 선택진료신청서 출력시 코드에 맞게 출력하기 위해 원무공통코드조회
  160. pamfGetCodeList([
  161. { dsNm: 'ds_init_P0018list', cdGrpId: 'P0018' },
  162. { dsNm: 'ds_init_P0059list', cdGrpId: 'P0059' },
  163. { dsNm: 'ds_init_P0032list', cdGrpId: 'P0032' }
  164. ]);
  165. // 공통코드조회
  166. appf_getCodeList([{ dsNm: 'ds_init_P0002list', cdGrpId: 'P0002' }]);
  167. ds_init_orddeptcd.addRow();
  168. ds_init_orddrid.addRow();
  169. dsf_createDsRow('ds_req', [
  170. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  171. { col: 'ioflag', type: 'string', size: 256, val: '' },
  172. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  173. ], false);
  174. // 기본사항조회(진료과,진료의등등)
  175. var oParam = {};
  176. oParam.id = "TRPMI00106";
  177. oParam.service = "pamcomnapp.PamComn";
  178. oParam.method = "reqGetComCD";
  179. oParam.inds = "req=ds_req";
  180. oParam.outds = "ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid";
  181. oParam.async = false;
  182. //oParam.callback = "cf_TRPMI00106";
  183. tranf_submit(oParam);
  184. dsf_createDsRow('ds_send', [
  185. { col: 'pid', type: 'string', size: 256, val: '' },
  186. { col: 'ordtype', type: 'string', size: 256, val: '' },
  187. { col: 'orddd', type: 'string', size: 256, val: '' },
  188. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  189. { col: 'orddrid', type: 'string', size: 256, val: '' },
  190. { col: 'specordyn', type: 'string', size: 256, val: '' },
  191. { col: 'fromdd', type: 'string', size: 256, val: '' },
  192. { col: 'flag', type: 'string', size: 256, val: '' }
  193. ], false);
  194. ds_main_patappinfo.clearData();
  195. ds_main_patappinfo.addRow();
  196. if(ds_send_patappinfo_patappinfo1.rowcount > 0) {
  197. ds_send.copyData(ds_send_patappinfo_patappinfo1);
  198. }
  199. oParam = {};
  200. oParam.id = "TRPMI00121";
  201. oParam.service = "ipatmngtapp.InRgst";
  202. oParam.method = "reqGetSpecOrdInInfolist";
  203. oParam.inds = "req=ds_send";
  204. oParam.outds = "ds_main_patappinfo=infolist";
  205. oParam.async = false;
  206. //oParam.callback = "cf_TRPMI00121";
  207. tranf_submit(oParam);
  208. }
  209. /****************************************************************************************
  210. * Argument :
  211. * Description : 그리드 셀 더블 클릭 이벤트
  212. ****************************************************************************************/
  213. function grd_patappinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo){
  214. btn_confirm.onclick();
  215. }
  216. /****************************************************************************************
  217. * Argument :
  218. * Description : 수정 버튼 클릭 클릭 이벤트
  219. ****************************************************************************************/
  220. function btn_confirm_onclick(obj:Button, e:ClickEventInfo){
  221. var row = grd_patappinfo.currentrow;
  222. if(row >= 0){
  223. dsf_createDsRow('ds_req', [
  224. { col: 'pid', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'pid') },
  225. { col: 'orddd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'orddd') },
  226. { col: 'orddeptcd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'orddeptcd') },
  227. { col: 'orddrid', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'orddrid') },
  228. { col: 'specordyn', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'specordyn') },
  229. { col: 'elctappdd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'elctappdd') },
  230. { col: 'rsrvdd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'rsrvdd') },
  231. { col: 'fromdd', type: 'string', size: 256, val: ds_main_patappinfo.getColumn(e.row, 'fromdd') },
  232. { col: 'ordtype', type: 'string', size: 256, val: 'I' }
  233. ], false);
  234. var oParam = {};
  235. oParam.id = "TXPMI00107";
  236. oParam.service = "ipatmngtapp.InRgst";
  237. oParam.method = "reqSetSpecOrddd";
  238. oParam.inds = "req=ds_req";
  239. oParam.outds = "ds_=result";
  240. oParam.async = false;
  241. oParam.callback = "callback";
  242. tranf_submit(oParam);
  243. if(arErrorCode.pop("TXPMI00107") > -1){
  244. sysf_messageBox('선택변경', 'I002');
  245. }
  246. }
  247. this.close();
  248. }
  249. /****************************************************************************************
  250. * Argument :
  251. * Description : 수정 버튼 클릭 클릭 이벤트
  252. ****************************************************************************************/
  253. function btn_cancel_onclick(obj:Button, e:ClickEventInfo){
  254. this.close();
  255. }
  256. ]]></Script>
  257. </Form>
  258. </FDL>