SMMNW15300_정맥염발생보고.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW15300" position="absolute 0 0 1200 785" titletext="정맥염 발생보고" oninit="SMMNW15300_oninit" onload="SMMNW15300_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1211 749" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 24 1195 64" align="align:center top;" id="grp_sea" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 1195 40" id="roundrect3" class="roundrect_search" type="roundrectangle" anchor="default"/>
  14. <Static text="병 동 :" position="absolute 10 11 75 28" id="caption11" class="search_name" anchor="default"/>
  15. <Static text="보고일자 :" position="absolute 260 11 331 28" id="caption17" class="search_name" anchor="default"/>
  16. <Combo position="absolute 75 10 200 29" id="cmb_ward" class="combo_search" innerdataset="@ds_init_dept_dept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" displayrowcount="40" type="search"/>
  17. <Calendar position="absolute 335 10 440 29" id="ipt_genrdd" class="input_search" anchor="default" autoselect="true"/>
  18. <Button position="absolute 1005 10 1061 32" id="button1" class="btn1" text="조회" anchor="default" onclick="group5_grp_sea_button1_onclick"/>
  19. <Shape position="absolute 992 10 998 30" linetype="vertical" id="line1" class="line_4" anchor="default"/>
  20. <Static text="~" position="absolute 445 10 460 30" id="caption4" anchor="default"/>
  21. <Calendar position="absolute 460 10 565 29" id="input1" class="input_search" anchor="default" autoselect="true"/>
  22. <Button position="absolute 1121 10 1177 32" id="button2" class="btn6" taborder="9" text="출력" anchor="default" onclick="group5_grp_sea_button2_onclick"/>
  23. <Button position="absolute 1063 10 1119 32" id="button3" class="btn7" taborder="8" text="엑셀" anchor="default" onclick="group5_grp_sea_button3_onclick"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. <Static text="정맥염 발생보고" position="absolute 0 0 137 25" id="caption6" class="tit_1" anchor="default"/>
  28. <Grid position="absolute 0 99 1195 749" id="grd_veingruplist" binddataset="ds_main_veingrupinfo_veingruplist" anchor="default" cellsizingtype="both" autosizingtype="row" extendsizetype="row" cellsizebandtype="allband">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="25" band="left"/>
  33. <Column size="100"/>
  34. <Column size="60"/>
  35. <Column size="70"/>
  36. <Column size="35"/>
  37. <Column size="35"/>
  38. <Column size="145"/>
  39. <Column size="90"/>
  40. <Column size="50"/>
  41. <Column size="75"/>
  42. <Column size="100"/>
  43. <Column size="130"/>
  44. <Column size="50"/>
  45. <Column size="150"/>
  46. <Column size="60"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell/>
  65. <Cell col="1" text="병동"/>
  66. <Cell col="2" text="등록번호"/>
  67. <Cell col="3" text="이름"/>
  68. <Cell col="4" text="성별"/>
  69. <Cell col="5" text="나이"/>
  70. <Cell col="6" text="정맥염발생부위"/>
  71. <Cell col="7" text="발생일자"/>
  72. <Cell col="8" text="시간"/>
  73. <Cell col="9" text="발생장소"/>
  74. <Cell col="10" text="발생장소(원내)"/>
  75. <Cell col="11" text="발생원인"/>
  76. <Cell col="12" text="단계"/>
  77. <Cell col="13" text="중재"/>
  78. <Cell col="14" text="등록자"/>
  79. <Cell col="15" text="recrid"/>
  80. <Cell col="16" text="genrplceid"/>
  81. <Cell col="17" text="causeid"/>
  82. <Cell col="18" text="stageid"/>
  83. <Cell col="19" text="interventionid"/>
  84. <Cell col="20" text="grupcd"/>
  85. <Cell col="21" text="instcd"/>
  86. <Cell col="22" text="indd"/>
  87. <Cell col="23" text="cretno"/>
  88. <Cell col="24" text="veifrecseq"/>
  89. <Cell col="25" text="signno"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell celltype="head" expr="expr:currow + 1"/>
  93. <Cell col="1" displaytype="combo" edittype="none" text="bind:wardcd" suppress="1" suppressalign="middle,over" combodataset="ds_init_dept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  94. <Cell col="2" style="align:center middle;" text="bind:pid" suppress="1" suppressalign="middle,over"/>
  95. <Cell col="3" style="align:left middle;" text="bind:patnm" suppress="1" suppressalign="middle,over"/>
  96. <Cell col="4" style="align:center middle;" text="bind:sex" suppress="2" suppressalign="middle,over"/>
  97. <Cell col="5" style="align:right middle;" text="bind:age" taborder="3" suppress="3" suppressalign="middle,over"/>
  98. <Cell col="6" displaytype="normal" edittype="none" style="align:left middle;" text="bind:veifpartnm" suppress="4" suppressalign="middle,over"/>
  99. <Cell col="7" displaytype="date" edittype="none" style="align:center middle;" text="bind:genrdd" suppress="5" suppressalign="middle,over" calendardisplaynulltype="none"/>
  100. <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:genrtm" mask="expr:utlf_isNull(genrtm) ? '' : '##:##'" suppress="6" suppressalign="middle,over"/>
  101. <Cell col="9" displaytype="normal" edittype="none" style="align:left middle;" text="bind:genrplce" suppress="7" suppressalign="middle,over"/>
  102. <Cell col="10" displaytype="combo" edittype="none" style="padding:0 0 0 2;" text="bind:genrplcewardcd" suppress="8" suppressalign="middle,over" combodataset="ds_tmp_deptinfo_deptlist" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  103. <Cell col="11" displaytype="normal" edittype="none" style="align:left middle;" text="bind:cause" suppress="9" suppressalign="middle,over"/>
  104. <Cell col="12" style="align:center middle;" text="bind:stage" suppress="10" suppressalign="middle,over"/>
  105. <Cell col="13" style="align:left middle;padding:3 2 3 2;" text="bind:intervention" wordwrap="both" suppress="11" suppressalign="middle,over" autosizerow="limitmin"/>
  106. <Cell col="14" style="align:left middle;" text="bind:recrnm" suppress="12" suppressalign="middle,over"/>
  107. <Cell col="15" text="bind:recrid"/>
  108. <Cell col="16" text="bind:genrplceid"/>
  109. <Cell col="17" text="bind:causeid"/>
  110. <Cell col="18" text="bind:stageid"/>
  111. <Cell col="19" text="bind:interventionid"/>
  112. <Cell col="20" text="bind:grupcd"/>
  113. <Cell col="21" text="bind:instcd"/>
  114. <Cell col="22" text="bind:indd"/>
  115. <Cell col="23" text="bind:cretno"/>
  116. <Cell col="24" text="bind:veifrecseq"/>
  117. <Cell col="25" text="bind:signno"/>
  118. </Band>
  119. </Format>
  120. </Formats>
  121. </Grid>
  122. <Shape position="absolute 0 95 1195 101" linetype="horizontal" id="line4" class="line_10" anchor="default"/>
  123. <Static text="정맥염 발생보고" position="absolute 0 79 144 95" align="align:center middle;" id="caption1" class="tit_2" anchor="default"/>
  124. </Layout>
  125. </Layouts>
  126. </Div>
  127. <Static position="absolute 0 749 1000 779" id="caption2"/>
  128. <Div position="absolute 0 756 1200 783" id="grp_btn">
  129. <Layouts>
  130. <Layout>
  131. <Static text="[표]" position="absolute 1160 0 1190 20" id="caption3"/>
  132. </Layout>
  133. </Layouts>
  134. </Div>
  135. </Layout>
  136. </Layouts>
  137. <Objects>
  138. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="wardcd" type="STRING" size="256"/>
  141. <Column id="fromdd" type="STRING" size="256"/>
  142. <Column id="todd" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row>
  146. <Col id="wardcd"/>
  147. <Col id="fromdd"/>
  148. <Col id="todd"/>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. <Dataset id="ds_main_veingrupinfo_veingruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  153. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  154. <Dataset id="ds_tmp_deptinfo_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  155. <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  156. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  157. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  158. <Dataset id="ds_send_printdata_veingrupinfo_veingruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  159. </Objects>
  160. <Bind>
  161. <BindItem id="item0" compid="group5.grp_sea.cmb_ward" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  162. <BindItem id="item1" compid="group5.grp_sea.ipt_genrdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  163. <BindItem id="item2" compid="group5.grp_sea.input1" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  164. </Bind>
  165. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  166. * System Name :
  167. * Job Name :
  168. * Creator :
  169. * Make Date : 2015-11-13
  170. * Description :
  171. *---------------------------------------------------------------------------------------
  172. * Modify Date Modifier Modify Description
  173. *---------------------------------------------------------------------------------------
  174. * 2015-11-13 Live Converter TF->XP
  175. *
  176. *---------------------------------------------------------------------------------------
  177. ****************************************************************************************/
  178. include "com_commonxp::comm_main.xjs";
  179. function SMMNW15300_oninit(obj:Form, e:InitEventInfo)
  180. {
  181. frmf_initForm(obj);
  182. }
  183. function SMMNW15300_onload(obj:Form, e:LoadEventInfo)
  184. {
  185. var instcd = sysf_getUserInfo("dutplceinstcd");
  186. var standard_yn = "orduseyn";
  187. var ord_deptflag = 'W';
  188. var rslt_ref = "ds_init_dept_dept";
  189. var sort_field = "depthngnm";
  190. var sort_method = "asc";
  191. var dt = utlf_getCurrentDate();
  192. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, dt, "", "",rslt_ref ,false, "");
  193. frmf_addComboItem("group5.grp_sea.cmb_ward", "전 체", "", "above" );
  194. //발생장소(원내) 부서 코드 조회
  195. var oParam = {};
  196. oParam.id = "TRMNW11001";
  197. oParam.service = "wardorderapp.NursPrcpMngt";
  198. oParam.method = "reqGetDeptListInfo";
  199. oParam.inds = "req=ds_send";
  200. oParam.outds = "ds_tmp_deptinfo_deptlist=deptlist";
  201. oParam.async = false;
  202. tranf_submit(oParam);
  203. dsf_makeValue(ds_main_cond,"fromdd", "string", dt);
  204. dsf_makeValue(ds_main_cond,"todd", "string", dt);
  205. }
  206. function group5_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  207. {
  208. ds_send_reqdata.clearData();
  209. ds_send_reqdata.copyData(ds_main_cond);
  210. var oParam = {};
  211. oParam.id = "TRMNW15300";
  212. oParam.service = "wardcareapp.WardCareRec";
  213. oParam.method = "reqGetVeingrupList";
  214. oParam.inds = "reqdata=ds_send_reqdata";
  215. oParam.outds = "ds_main_veingrupinfo_veingruplist=veingruplist";
  216. oParam.async = false;
  217. tranf_submit(oParam);
  218. ds_main_veingrupinfo_veingruplist.rowposition = -1;
  219. }
  220. function group5_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
  221. {
  222. ds_send_printdata_veingrupinfo_veingruplist.clearData();
  223. ds_send_printdata_veingrupinfo_veingruplist.copyData(ds_main_veingrupinfo_veingruplist); // 리스트copy
  224. for(var i=0 ; i< ds_send_printdata_veingrupinfo_veingruplist.rowcount;i++){
  225. // 병동 value -> label값으로 변경
  226. var wardnm = group5.grd_veingruplist.getCellText(i, group5.grd_veingruplist.getBindCellIndex("body","wardcd"));
  227. dsf_makeValue(ds_send_printdata_veingrupinfo_veingruplist,"wardnm", "string", wardnm, i);
  228. // 발생장소(원내) value -> label값으로 변경
  229. var genrplcewardnm = group5.grd_veingruplist.getCellText(i, group5.grd_veingruplist.getBindCellIndex("body","genrplcewardcd"));
  230. dsf_makeValue(ds_send_printdata_veingrupinfo_veingruplist,"genrplcewardnm", "string", genrplcewardnm, i);
  231. }
  232. var objDOM = rptf_createDOM();
  233. rptf_setNodeListToDOM(objDOM, "root/send/printdata/veingrupinfo/veingruplist", ds_send_printdata_veingrupinfo_veingruplist);// 데이터셋 1
  234. var objParam = new Object();
  235. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  236. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  237. rptf_exeReportPreview30(["RPMNW15300"],[objParam], option);
  238. }
  239. function group5_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. grdf_exportExcel(group5.grd_veingruplist, "정맥염발생보고_" + utlf_getCurrentDate(), "SheetName1" , true, "" , "" , true);
  242. }
  243. ]]></Script>
  244. </Form>
  245. </FDL>