SPMRI09000_연명관리.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMR04000" position="absolute 0 0 1250 820" titletext="연명의료대상" oninit="SPMRI09000_oninit" onload="SPMRI09000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="roundrect1" type="roundrectangle" position="absolute 10 25 1240 60"/>
  8. <Static text="연명의료대상" position="absolute 10 0 128 25" id="caption6" class="tit_1"/>
  9. <Shape position="absolute 12 61 1239 67" linetype="horizontal" id="line12" class="line_10"/>
  10. <Combo position="absolute 838 33 936 52" id="cmb_orddeptcd" class="combo_search" innerdataset="@ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="cmb_orddeptcd_onitemchanged" taborder="5" visible="false"/>
  11. <Button position="absolute 1171 32 1227 54" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick" taborder="6"/>
  12. <Static text="진 료 과" position="absolute 775 34 840 51" id="caption3" class="search_name" visible="false"/>
  13. <Button position="absolute 1113 32 1169 54" id="button1" class="btn1" text="조회" onclick="button1_onclick" taborder="7"/>
  14. <Grid id="grd_list" taborder="8" binddataset="ds_main_list" useinputpanel="false" selecttype="multirow" oncelldblclick="grd_list_oncelldblclick" position="absolute 9 67 1239 814" cellsizebandtype="allband" cellsizingtype="col">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="20"/>
  19. <Column size="61"/>
  20. <Column size="64"/>
  21. <Column size="59"/>
  22. <Column size="39"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="40"/>
  27. <Column size="106"/>
  28. <Column size="41"/>
  29. <Column size="40"/>
  30. <Column size="89"/>
  31. <Column size="283"/>
  32. <Column size="67"/>
  33. <Column size="72"/>
  34. <Column size="105"/>
  35. <Column size="163"/>
  36. <Column size="117"/>
  37. <Column size="110"/>
  38. <Column size="147"/>
  39. <Column size="103"/>
  40. <Column size="40"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell/>
  48. <Cell col="1" text="관리대상"/>
  49. <Cell col="2" text="등록번호"/>
  50. <Cell col="3" text="성 명"/>
  51. <Cell col="4" text="성별"/>
  52. <Cell col="5" text="입원일"/>
  53. <Cell col="6" text="입실일"/>
  54. <Cell col="7" text="cretno"/>
  55. <Cell col="8" text="나이"/>
  56. <Cell col="9" text="주민번호"/>
  57. <Cell col="10" text="처방"/>
  58. <Cell col="11" text="사망"/>
  59. <Cell col="12" text="진료일"/>
  60. <Cell col="13" text="서식"/>
  61. <Cell col="14" text="환자상태"/>
  62. <Cell col="15" text="심사상태"/>
  63. <Cell col="16" text="병동"/>
  64. <Cell col="17" text="작성일시"/>
  65. <Cell col="18" text="작성부서"/>
  66. <Cell col="19" text="작성자"/>
  67. <Cell col="20" text="작성자 연락처"/>
  68. <Cell col="21" text="최종심사자"/>
  69. <Cell col="22" text="cretno"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head" expr="expr:currow + 1"/>
  73. <Cell col="1" text="bind:jinyn"/>
  74. <Cell col="2" text="bind:pid"/>
  75. <Cell col="3" style="align:left;" text="bind:hngnm"/>
  76. <Cell col="4" text="bind:sex"/>
  77. <Cell col="5" text="bind:orddd"/>
  78. <Cell col="6" text="bind:fromdd"/>
  79. <Cell col="7" text="bind:cretno"/>
  80. <Cell col="8" text="bind:age"/>
  81. <Cell col="9" style="align:left;" text="bind:rrgstno"/>
  82. <Cell col="10" text="bind:orderyn"/>
  83. <Cell col="11" text="bind:dethyn"/>
  84. <Cell col="12" text="bind:orddd" mask="####-##-##"/>
  85. <Cell col="13" style="align:left;" text="bind:formnm"/>
  86. <Cell col="14" text="bind:indschacptstat"/>
  87. <Cell col="15" text="bind:dschjudgprcsstat"/>
  88. <Cell col="16" style="align:left;" text="bind:wardnm"/>
  89. <Cell col="17" text="bind:issdt" mask="####-##-## ##:##"/>
  90. <Cell col="18" style="align:left;" text="bind:issdept"/>
  91. <Cell col="19" text="bind:issnm"/>
  92. <Cell col="20" text="bind:pdano"/>
  93. <Cell col="21" text="bind:simsaja"/>
  94. <Cell col="22" text="bind:cretno"/>
  95. </Band>
  96. </Format>
  97. </Formats>
  98. </Grid>
  99. <Static id="caption00" text="등록번호" class="search_name" position="absolute 312 35 377 52"/>
  100. <Edit id="Edit00" taborder="9" position="absolute 387 33 487 53"/>
  101. <Static id="caption01" text="작성일자" class="search_name" position="absolute 16 33 81 50"/>
  102. <Calendar id="ipt_infromdd" taborder="10" class="input_essential" position="absolute 94 31 187 50" mask="yyyy-mm-dd"/>
  103. <Calendar id="ipt_intodd" taborder="11" class="input_essential" position="absolute 195 31 288 50" mask="yyyy-mm-dd"/>
  104. <Button id="btn_new" taborder="12" text="신규" class="btn4" position="absolute 953 33 1009 55" onclick="btn_new_onclick" visible="false"/>
  105. </Layout>
  106. </Layouts>
  107. <Objects>
  108. <Dataset id="ds_init_ward_icudept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="deptnm" type="STRING"/>
  111. <Column id="deptcd" type="STRING"/>
  112. </ColumnInfo>
  113. </Dataset>
  114. <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="depthngnm" type="STRING"/>
  117. <Column id="deptcd" type="STRING"/>
  118. </ColumnInfo>
  119. </Dataset>
  120. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="ward" type="STRING" size="256"/>
  123. <Column id="orddept" type="STRING" size="256"/>
  124. <Column id="pid" type="STRING" size="256"/>
  125. <Column id="infromdd" type="STRING" size="256"/>
  126. <Column id="intodd" type="STRING" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row/>
  130. </Rows>
  131. </Dataset>
  132. <Dataset id="ds_temp_initlist_icudept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  135. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  136. </ColumnInfo>
  137. </Dataset>
  138. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="instcd" type="STRING" size="256" sumtext=""/>
  141. <Column id="pid" type="STRING" size="256" sumtext=""/>
  142. <Column id="hngnm" type="STRING" size="256" sumtext=""/>
  143. <Column id="sex" type="STRING" size="256" sumtext=""/>
  144. <Column id="age" type="STRING" size="256" sumtext=""/>
  145. <Column id="issdt" type="STRING" size="256" sumtext=""/>
  146. <Column id="issdept" type="STRING" size="256" sumtext=""/>
  147. <Column id="issnm" type="STRING" size="256"/>
  148. <Column id="pdano" type="STRING" size="256"/>
  149. <Column id="formnm" type="STRING" size="256"/>
  150. <Column id="rgstyn" type="STRING" size="256" sumtext="등록여부"/>
  151. <Column id="wardnm" type="STRING" size="256"/>
  152. <Column id="jinyn" type="STRING" size="256"/>
  153. <Column id="simsaja" type="STRING" size="256"/>
  154. <Column id="orddd" type="STRING" size="256"/>
  155. <Column id="cretno" type="STRING" size="256"/>
  156. <Column id="orderyn" type="STRING" size="256"/>
  157. <Column id="dethyn" type="STRING" size="256"/>
  158. <Column id="indschacptstat" type="STRING" size="256"/>
  159. <Column id="dschjudgprcsstat" type="STRING" size="256"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row/>
  163. </Rows>
  164. </Dataset>
  165. </Objects>
  166. <Bind>
  167. <BindItem id="item4" compid="cmb_orddeptcd" propid="value" datasetid="ds_cond" columnid="orddept"/>
  168. <BindItem id="item0" compid="Edit00" propid="value" datasetid="ds_cond" columnid="pid"/>
  169. <BindItem id="item5" compid="ipt_infromdd" propid="value" datasetid="ds_cond" columnid="infromdd"/>
  170. <BindItem id="item6" compid="ipt_intodd" propid="value" datasetid="ds_cond" columnid="intodd"/>
  171. </Bind>
  172. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  173. * System Name : 경대 의료정보시스템
  174. * Job Name : emr_anstrecxp -> SMMMR04000
  175. * Creator : yjh
  176. * Make Date : 2016-10-31
  177. * Description :
  178. *---------------------------------------------------------------------------------------
  179. * Modify Date Modifier Modify Description
  180. *---------------------------------------------------------------------------------------
  181. * 2016-10-31 yjh TF->XP
  182. *
  183. *---------------------------------------------------------------------------------------
  184. ****************************************************************************************/
  185. //=======================================================================================
  186. // Lib Include
  187. //---------------------------------------------------------------------------------------
  188. include "com_commonxp::comm_main.xjs";
  189. include "emr_prcpmngtxp::MMOCommon.xjs";
  190. //=======================================================================================
  191. // Global Form Variable
  192. //---------------------------------------------------------------------------------------
  193. var arErrorCode = new HashArray();
  194. //=======================================================================================
  195. // Function
  196. //---------------------------------------------------------------------------------------
  197. //=======================================================================================
  198. // Event
  199. //---------------------------------------------------------------------------------------
  200. /****************************************************************************************
  201. * Components : Form
  202. * Components ID : SMMMR04000
  203. * Event : oninit
  204. * Argument : 01.obj : Object Event has occurred
  205. * : 02.e : Event Object
  206. * Description : 화면 처음 초기화시
  207. ****************************************************************************************/
  208. function SPMRI09000_oninit(obj:Form, e:InitEventInfo)
  209. {
  210. frmf_initForm(obj); //폼 초기화
  211. }
  212. /****************************************************************************************
  213. * Components : Form
  214. * Components ID : SMMMR04000
  215. * Event : onload
  216. * Argument : 01.obj : Object Event has occurred
  217. * : 02.e : Event Object
  218. * Description : 화면 로딩 완료시
  219. ****************************************************************************************/
  220. function SPMRI09000_onload(obj:Form, e:LoadEventInfo)
  221. {
  222. fIni();
  223. }
  224. /****************************************************************************************
  225. * Components : Grid
  226. * Components ID : grd_list
  227. * Event : oncelldblclick
  228. * Argument : 01.obj : Object Event has occurred
  229. * : 02.e : Event Object
  230. * Description : 그리드 셀 더블클릭시
  231. ****************************************************************************************/
  232. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  233. {
  234. var row = ds_main_list.rowposition;
  235. var pid = ds_main_list.getColumn(row,"pid");
  236. var orddd = ds_main_list.getColumn(row,"orddd");
  237. var cretno = ds_main_list.getColumn(row,"cretno");
  238. var hngnm = ds_main_list.getColumn(row,"hngnm");
  239. frmf_setParameter("SPMRI09001_param_pid", pid);
  240. frmf_setParameter("SPMRI09001_param_orddd", orddd);
  241. frmf_setParameter("SPMRI09001_param_cretno", cretno);
  242. frmf_setParameter("SPMRI09001_param_hngnm", hngnm);
  243. frmf_setParameter("SPMRI09001_param_edityn", "Y");
  244. frmf_setParameter("SPMRI09001_param_jinyn", "Y");
  245. frmf_modal("SPMRI09001", "SPMRI09001", null, null, null, null, null, null, null, null, null, null, "M");
  246. //fSearch();
  247. }
  248. /****************************************************************************************
  249. * Components : Calendar
  250. * Components ID : ipt_reqstnddd
  251. * Event : onchanged
  252. * Argument : 01.obj : Object Event has occurred
  253. * : 02.e : Event Object
  254. * Description : 달력 값 변경시
  255. ****************************************************************************************/
  256. function ipt_reqstnddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  257. {
  258. ds_cond.setColumn(0, "stnddd", ds_cond.getColumn(0, "stnddd"));
  259. }
  260. /****************************************************************************************
  261. * Components : Calendar
  262. * Components ID : ipt_reqenddd
  263. * Event : onchanged
  264. * Argument : 01.obj : Object Event has occurred
  265. * : 02.e : Event Object
  266. * Description : 달력 값 변경시
  267. ****************************************************************************************/
  268. function ipt_reqenddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  269. {
  270. ds_cond.setColumn(0, "enddd", ds_cond.getColumn(0, "enddd"));
  271. }
  272. /****************************************************************************************
  273. * Components : Combo
  274. * Components ID : cmb_term
  275. * Event : onitemchanged
  276. * Argument : 01.obj : Object Event has occurred
  277. * : 02.e : Event Object
  278. * Description : 콤보 값 변경시
  279. ****************************************************************************************/
  280. function cmb_term_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  281. {
  282. var date2 = ipt_reqenddd.value;
  283. var term = cmb_term.value;
  284. ipt_reqstnddd.value = (date2+"").toDate().getAddDate(-term, "D").getDateFormat("YYYYMMDD");
  285. }
  286. /****************************************************************************************
  287. * Components : Combo
  288. * Components ID : cmb_icu
  289. * Event : onitemchanged
  290. * Argument : 01.obj : Object Event has occurred
  291. * : 02.e : Event Object
  292. * Description : 콤보 값 변경시
  293. ****************************************************************************************/
  294. function cmb_icu_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  295. {
  296. ds_cond.setColumn(0, "ward", ds_cond.getColumn(0, "ward"));
  297. }
  298. /****************************************************************************************
  299. * Components : Combo
  300. * Components ID : cmb_orddeptcd
  301. * Event : onitemchanged
  302. * Argument : 01.obj : Object Event has occurred
  303. * : 02.e : Event Object
  304. * Description : 콤보 값 변경시
  305. ****************************************************************************************/
  306. function cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  307. {
  308. ds_cond.setColumn(0, "orddept", ds_cond.getColumn(0, "orddept"));
  309. }
  310. /****************************************************************************************
  311. * Components : Button
  312. * Components ID : btn_excel
  313. * Event : onclick
  314. * Argument : 01.obj : Object Event has occurred
  315. * : 02.e : Event Object
  316. * Description : 엑셀버튼 클릭시
  317. ****************************************************************************************/
  318. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  319. {
  320. if( grd_list.rowcount > 0 ){
  321. grdf_exportExcel(grd_list, "YEON", "YEON", false, "", "user", false);
  322. } else {
  323. sysf_messageBox("조회된 데이터가 ", "I004");
  324. return;
  325. }
  326. }
  327. /****************************************************************************************
  328. * Components : Button
  329. * Components ID : button1
  330. * Event : onclick
  331. * Argument : 01.obj : Object Event has occurred
  332. * : 02.e : Event Object
  333. * Description : 조회버튼 클릭시
  334. ****************************************************************************************/
  335. function button1_onclick(obj:Button, e:ClickEventInfo)
  336. {
  337. fSearch();
  338. }
  339. function fSearch()
  340. {
  341. var oParam = {};
  342. oParam.id = "SPMRI09000_1";
  343. oParam.service = "recmngtapp.IntegrityRec";
  344. oParam.method = "reqGetYeonList";
  345. oParam.inds = "req=ds_cond";
  346. oParam.outds = "ds_main_list=list";
  347. oParam.async = false;
  348. //oParam.callback = "cf_TRMMR04001";
  349. tranf_submit(oParam);
  350. }
  351. function fIni()
  352. {
  353. grdf_initGrid(grd_list);
  354. var vNowDD = utlf_getCurrentDate();
  355. ds_cond.setColumn(0, "infromdd", vNowDD.toDate().getAddDate(-7, "D").getDateFormat());
  356. ds_cond.setColumn(0, "intodd", vNowDD);
  357. lf_mmbfGetDeptCodeComboList(ds_init_orddept_dept, "A", vNowDD);
  358. }
  359. function btn_new_onclick(obj:Button, e:ClickEventInfo)
  360. {
  361. frmf_setParameter("SPMRI09001_param_pid", "");
  362. frmf_setParameter("SPMRI09001_param_hngnm", "");
  363. frmf_setParameter("SPMRI09001_param_edityn", "Y");
  364. frmf_setParameter("SPMRI09001_param_newyn", "Y");
  365. frmf_modal("SPMRI09001", "SPMRI09001", null, null, null, null, null, null, null, null, null, null, "M");
  366. }
  367. ]]></Script>
  368. </Form>
  369. </FDL>