SMMNE09200_응급초진진단모니터링.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE09200" position="absolute 0 0 1190 880" titletext="응급초진기록지 추정진단 분석" onload="SMMNE09200_onload" ontimer="SMMNE09200_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static text="응급 초진 진단 분석" position="absolute 0 0 155 25" id="caption6" class="tit_1"/>
  8. <Div position="absolute 0 25 1180 65" align="align:center top;" id="group4" class="div_SA">
  9. <Layouts>
  10. <Layout>
  11. <Button position="absolute 1055 8 1111 30" id="btn_search" class="btn1" taborder="3" text="조회" anchor="default" onclick="group4_btn_search_onclick"/>
  12. <Shape position="absolute 1042 7 1048 32" linetype="vertical" id="line1" anchor="default"/>
  13. <Combo position="absolute 90 9 175 28" id="combo3" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" index="1" value="2" text="내원일">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">1</Col>
  22. <Col id="datacolumn">퇴원일</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">2</Col>
  26. <Col id="datacolumn">내원일</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Combo>
  31. <Static text="검색조건 :" position="absolute 10 11 85 28" id="caption8" class="search_name" anchor="default"/>
  32. <Static text="~" position="absolute 290 11 310 31" id="caption1" anchor="default"/>
  33. <Static text="내원사유 : " position="absolute 460 11 536 28" id="caption2" class="search_name" anchor="default"/>
  34. <cp_checkboxList id="checkbox1" titletext="CheckBox List" taborder="7" text="cp_checkboxList00" scrollbars="none" position="absolute 536 8 974 26" style="background:transparent; " col="4" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  35. <Button id="button2" taborder="8" text="엑셀" class="btn7" position="absolute 1113 8 1169 30" onclick="group4_button2_onclick"/>
  36. <Calendar id="input3" taborder="9" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" class="input_search" position="absolute 190 9 283 28"/>
  37. <Calendar id="input1" taborder="10" autoselect="true" dateformat="yyyy-MM-dd" class="input_search" position="absolute 308 9 401 28"/>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. <Shape position="absolute 0 66 1180 72" linetype="horizontal" id="line3" class="line_10"/>
  42. <Grid position="absolute 0 71 1180 871" id="grd_plist" binddataset="ds_grd_plist" oncelldblclick="grd_plist_oncelldblclick" autosizingtype="row" extendsizetype="row" cellsizingtype="col">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="31"/>
  47. <Column size="60"/>
  48. <Column size="50"/>
  49. <Column size="35"/>
  50. <Column size="35"/>
  51. <Column size="70"/>
  52. <Column size="40"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="65"/>
  58. <Column size="105"/>
  59. <Column size="135"/>
  60. <Column size="70"/>
  61. <Column size="40"/>
  62. <Column size="180"/>
  63. <Column size="180"/>
  64. <Column size="85"/>
  65. <Column size="55"/>
  66. <Column size="0"/>
  67. <Column size="100"/>
  68. <Column size="100"/>
  69. <Column size="100"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="24" band="head"/>
  73. <Row size="24"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell/>
  77. <Cell col="1" text="환자번호"/>
  78. <Cell col="2" text="이름"/>
  79. <Cell col="3" text="성별"/>
  80. <Cell col="4" text="나이"/>
  81. <Cell col="5" colspan="2" text="내원일시" taborder="undefined"/>
  82. <Cell col="7"/>
  83. <Cell col="8"/>
  84. <Cell col="9"/>
  85. <Cell col="10"/>
  86. <Cell col="11" text="내원사유"/>
  87. <Cell col="12" text="주진료과"/>
  88. <Cell col="13" text="주증상"/>
  89. <Cell col="14" colspan="2" text="퇴실일시" taborder="undefined"/>
  90. <Cell col="16" text="추정진단"/>
  91. <Cell col="17" text="진단명"/>
  92. <Cell col="18" text="진단코드"/>
  93. <Cell col="19" text="진단코드"/>
  94. <Cell col="20" text="exceptdiagyn"/>
  95. <Cell col="21" text="진료게시일시"/>
  96. <Cell col="22" text="의사결정일시"/>
  97. <Cell col="23" text="전원결정일시"/>
  98. </Band>
  99. <Band id="body">
  100. <Cell celltype="head" text="expr:currow+1"/>
  101. <Cell col="1" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:pid" suppress="1" suppressalign="middle"/>
  102. <Cell col="2" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:hngnm" suppress="2" suppressalign="middle"/>
  103. <Cell col="3" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:sex" suppress="3" suppressalign="middle"/>
  104. <Cell col="4" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:age" suppress="4" suppressalign="middle"/>
  105. <Cell col="5" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:chosdd" mask="yyyy-MM-dd" suppress="5" suppressalign="middle" calendardisplaynulltype="nulltext"/>
  106. <Cell col="6" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:chostm" mask="HH:mm" suppress="6" suppressalign="middle" calendardisplaynulltype="nulltext"/>
  107. <Cell col="7" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:cretno" suppress="1" suppressalign="middle"/>
  108. <Cell col="8" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:ordtype" suppress="1" suppressalign="middle"/>
  109. <Cell col="9" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:dschdd" suppress="1" suppressalign="middle"/>
  110. <Cell col="10" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:indschacptstat" suppress="1" suppressalign="middle"/>
  111. <Cell col="11" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:chosresnflag" suppress="7" suppressalign="middle"/>
  112. <Cell col="12" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:inorddeptnm" suppress="8" suppressalign="middle"/>
  113. <Cell col="13" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:termengnm" suppress="9" suppressalign="middle"/>
  114. <Cell col="14" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:outrmdd" mask="yyyy-MM-dd" suppress="10" suppressalign="middle" calendardisplaynulltype="nulltext"/>
  115. <Cell col="15" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:outrmtm" mask="HH:mm" suppress="11" suppressalign="middle" calendardisplaynulltype="nulltext"/>
  116. <Cell col="16" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:&quot;&quot;);" text="bind:reccnts" suppress="12" suppressalign="middle"/>
  117. <Cell col="17" style="align:left middle;color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:diagengnm" wordwrap="char" autosizerow="limitmin"/>
  118. <Cell col="18" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:diagcd"/>
  119. <Cell col="19" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:dgotdiag"/>
  120. <Cell col="20" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:exceptdiagyn"/>
  121. <Cell col="21" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:startdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  122. <Cell col="22" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:decndt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  123. <Cell col="23" displaytype="date" style="color:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);color2:EXPR(chosresnflag == '질병외'?&quot;#0000ff&quot;:exceptdiagyn == 'Y'?&quot;#ff0000&quot;:&quot;&quot;);" text="bind:transrecdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  124. </Band>
  125. </Format>
  126. </Formats>
  127. </Grid>
  128. </Layout>
  129. </Layouts>
  130. <Objects>
  131. <Dataset id="ds_grd_plist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="pid" type="STRING"/>
  134. <Column id="hngnm" type="STRING"/>
  135. <Column id="sex" type="STRING"/>
  136. <Column id="age" type="STRING"/>
  137. <Column id="chosdd" type="STRING"/>
  138. <Column id="chostm" type="STRING"/>
  139. <Column id="cretno" type="STRING"/>
  140. <Column id="ordtype" type="STRING"/>
  141. <Column id="dschdd" type="STRING"/>
  142. <Column id="indschacptstat" type="STRING"/>
  143. <Column id="chosresnflag" type="STRING"/>
  144. <Column id="inorddeptnm" type="STRING"/>
  145. <Column id="termengnm" type="STRING"/>
  146. <Column id="outrmdd" type="STRING"/>
  147. <Column id="outrmtm" type="STRING"/>
  148. <Column id="reccnts" type="STRING"/>
  149. <Column id="diagengnm" type="STRING"/>
  150. <Column id="diagcd" type="STRING"/>
  151. <Column id="dgotdiag" type="STRING"/>
  152. <Column id="exceptdiagyn" type="STRING"/>
  153. <Column id="startdt" type="STRING"/>
  154. <Column id="decndt" type="STRING"/>
  155. <Column id="transrecdt" type="STRING"/>
  156. </ColumnInfo>
  157. </Dataset>
  158. <Dataset id="ds_monitinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  159. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="srch_kind" type="STRING" size="256"/>
  162. <Column id="srch_startdd" type="STRING" size="256"/>
  163. <Column id="srch_enddd" type="STRING" size="256"/>
  164. <Column id="srch_chosresn" type="STRING" size="256"/>
  165. </ColumnInfo>
  166. <Rows>
  167. <Row>
  168. <Col id="srch_kind">2</Col>
  169. <Col id="srch_startdd"/>
  170. <Col id="srch_enddd"/>
  171. <Col id="srch_chosresn">1 2 3 9</Col>
  172. </Row>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="srch_kind" type="STRING" size="256"/>
  178. <Column id="srch_startdd" type="STRING" size="256"/>
  179. <Column id="srch_enddd" type="STRING" size="256"/>
  180. <Column id="srch_chosresn" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="srch_kind">2</Col>
  185. <Col id="srch_startdd"/>
  186. <Col id="srch_enddd"/>
  187. <Col id="srch_chosresn">1 2 3 9</Col>
  188. </Row>
  189. </Rows>
  190. </Dataset>
  191. <Dataset id="ds_srch_chosresn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  192. <ColumnInfo>
  193. <Column id="code" type="STRING" size="256"/>
  194. <Column id="name" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. <Rows>
  197. <Row>
  198. <Col id="code">1</Col>
  199. <Col id="name">질병</Col>
  200. </Row>
  201. <Row>
  202. <Col id="code">2</Col>
  203. <Col id="name">질병외</Col>
  204. </Row>
  205. <Row>
  206. <Col id="code">3</Col>
  207. <Col id="name">진료외방문</Col>
  208. </Row>
  209. <Row>
  210. <Col id="code">9</Col>
  211. <Col id="name">미상</Col>
  212. </Row>
  213. </Rows>
  214. </Dataset>
  215. </Objects>
  216. <Bind>
  217. <BindItem id="item1" compid="group4.input1" propid="value" datasetid="ds_cond" columnid="srch_enddd"/>
  218. <BindItem id="item0" compid="group4.input3" propid="value" datasetid="ds_cond" columnid="srch_startdd"/>
  219. </Bind>
  220. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  221. * System Name :
  222. * Job Name :
  223. * Creator :
  224. * Make Date : 2015-11-13
  225. * Description :
  226. *---------------------------------------------------------------------------------------
  227. * Modify Date Modifier Modify Description
  228. *---------------------------------------------------------------------------------------
  229. * 2015-11-13 Live Converter TF->XP
  230. *
  231. *---------------------------------------------------------------------------------------
  232. ****************************************************************************************/
  233. include "com_commonxp::comm_main.xjs";
  234. include "emr_carecomxp::CareCom.xjs";
  235. function fSearch() {
  236. // var sKind = model.getValue("/root/cond/srch_kind");
  237. // var sSdate = model.getValue("/root/cond/srch_startdd");
  238. // var sEdate = model.getValue("/root/cond/srch_enddd");
  239. var sKind = ds_cond.getColumn(0, "srch_kind");
  240. var sSdate = ds_cond.getColumn(0, "srch_startdd");
  241. var sEdate = ds_cond.getColumn(0, "srch_enddd");
  242. var gbn = String(group4.checkbox1.getData()).replace(","," "); //ds_cond.getColumn(0, "srch_chosresn");
  243. var gbnlist = String(gbn).split(" ");
  244. if (gbn.length>0) {
  245. for (var i=0; i<gbnlist.length;i++) {
  246. gbn = String(gbn).replace(" ","','");
  247. }
  248. gbn = "('" + gbn + "')";
  249. }
  250. trace("gbn == " + gbn);
  251. // model.makeValue("/root/send/srch_kind", sKind);
  252. // model.makeValue("/root/send/srch_startdd", sSdate);
  253. // model.makeValue("/root/send/srch_enddd", sEdate);
  254. // model.makeValue("/root/send/srch_chosresn", gbn);
  255. dsf_copyDs(ds_send ,ds_cond,"replace");
  256. ds_send.setColumn(0, "srch_kind", sKind);
  257. ds_send.setColumn(0, "srch_startdd", sSdate);
  258. ds_send.setColumn(0, "srch_enddd", sEdate);
  259. ds_send.setColumn(0, "srch_chosresn", gbn);
  260. // dsf_makeValue(ds_send, "srch_kind" ,"string",sKind);
  261. // dsf_makeValue(ds_send, "srch_startdd" ,"string",sSdate);
  262. // dsf_makeValue(ds_send, "srch_enddd" ,"string",sEdate);
  263. // dsf_makeValue(ds_send, "srch_chosresn" ,"string",gbn);
  264. // submit("TRMNE09201");
  265. var oParam = {};
  266. oParam.id = "TRMNE09201";
  267. oParam.service = "ercareapp.ERPatMngt";
  268. oParam.method = "reqGetErPyungRecMonit";
  269. oParam.inds = "req=ds_send";
  270. oParam.outds = "ds_grd_plist=plist";
  271. oParam.async = false;
  272. tranf_submit(oParam);
  273. // for (var i = 0; i < grd_plist.rowcount; i++) {
  274. //
  275. // // grd_plist.cellStyle("background-color", i, 1, i, 23) = '#ffffff';
  276. // // grd_plist.cellStyle("color", i, 1, i, 23) = '#333333';
  277. // //
  278. // grd_plist.setCellProperty("body", i, "color", '#333333');
  279. // grd_plist.setCellProperty("body", i, "color2", '#333333');
  280. //
  281. // grd_plist.setCellProperty("body", i, "background-color", '#ffffff');
  282. // grd_plist.setCellProperty("body", i, "background-color2", '#ffffff');
  283. //
  284. // var chosresnflag = grd_plist.valueMatrix(i, grd_plist.colRef("chosresnflag"));
  285. // if (chosresnflag == "질병외") {
  286. // grd_plist.cellStyle("color", i, 1, i, 23) = '#0000ff';
  287. // }
  288. //
  289. // var exceptdiagyn = grd_plist.valueMatrix(i, grd_plist.colRef("exceptdiagyn"));
  290. // if (exceptdiagyn == "Y") {
  291. // grd_plist.cellStyle("color", i, 17, i, 19) = '#ff0000';
  292. // }
  293. // }
  294. }
  295. function fClickPatList(i) {
  296. if ( i > 0 ) {
  297. var InptRslt = ds_datagrid2.getColumn(refRow, "inptrslt");
  298. eORDTYPE = grd_plist.valuematrix(i, grd_plist.colRef("ordtype"));
  299. ePID = grd_plist.valuematrix(i, grd_plist.colRef("pid"));
  300. eINDD = grd_plist.valuematrix(i, grd_plist.colRef("chosdd"));
  301. eCRETNO = grd_plist.valuematrix(i, grd_plist.colRef("cretno"));
  302. eINSTCD = grd_plist.valuematrix(i, sysf_getUserInfo("dutplceinstcd")); //getUserInfo("dutplceinstcd")
  303. eSRCHDD = grd_plist.valuematrix(i, grd_plist.colRef("dschdd"));
  304. eStat = grd_plist.valuematrix(i, grd_plist.colRef("indschacptstat"));
  305. if (eStat == "A") {
  306. var param = eORDTYPE + "▦"
  307. + ePID + "▦"
  308. + eINDD + "▦"
  309. + eCRETNO + "▦"
  310. + eINSTCD + "▦" ;
  311. } else {
  312. var param = eORDTYPE + "▦"
  313. + ePID + "▦"
  314. + eINDD + "▦"
  315. + eCRETNO + "▦"
  316. + eINSTCD + "▦"
  317. + eSRCHDD + "▦" ;
  318. }
  319. //setParameter("condparam", param);
  320. // frmf_setParameter("condparam", param);
  321. //
  322. // //modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  323. // frmf_modal("SPMMO08900", "SPMMO08900", "", "", "", "", "", "", "", "", "", "", "M");
  324. appf_initPatientInfo(param); //상단정보 셋팅
  325. //var wndobj = getOpenWindow("SMMMR00100");
  326. var wndobj = frmf_findPopup("SMMMR00100");//
  327. if(wndobj != null)
  328. {
  329. //wndobj.javascript.fRecMainReady();
  330. }
  331. }
  332. }
  333. function SMMNE09200_onload(obj:Form, e:LoadEventInfo)
  334. {
  335. frmf_initForm(obj);
  336. grdf_initGrid(grd_plist);
  337. ds_grd_plist.clearData();
  338. //속도개선
  339. this.setTimer(0, 100);
  340. // var sCurdate = utlf_getCurrentDate();
  341. // group4.checkbox1.setBindDataset(ds_srch_chosresn,"code","name");
  342. //
  343. // var chk_value = ds_cond.getColumn(0,"srch_chosresn").split(" ");
  344. // group4.checkbox1.setData(chk_value, null,false);
  345. //
  346. // ds_cond.setColumn(0,"srch_startdd", sCurdate);
  347. // ds_cond.setColumn(0,"srch_enddd", sCurdate);
  348. }
  349. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  350. {
  351. fSearch();
  352. }
  353. function grd_plist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  354. {
  355. //var row = grd_plist.row;
  356. var row = ds_grd_plist.rowposition;
  357. if (row >= 0) { // if (row = 0) {
  358. //상단정보
  359. fClickPatList(row);
  360. //open("SMMMR00100");
  361. frmf_open("SMMMR00100", "SMMMR00100", "", "", "", "", "", "", "", "", "", "", "M");
  362. }
  363. }
  364. function SMMNE09200_ontimer(obj:Form, e:TimerEventInfo)
  365. {
  366. if (e.timerid == 0) {
  367. this.killTimer(0);
  368. var sCurdate = utlf_getCurrentDate();
  369. group4.checkbox1.setBindDataset(ds_srch_chosresn,"code","name");
  370. var chk_value = ds_cond.getColumn(0,"srch_chosresn").split(" ");
  371. group4.checkbox1.setData(chk_value, null,false);
  372. ds_cond.setColumn(0,"srch_startdd", sCurdate);
  373. ds_cond.setColumn(0,"srch_enddd", sCurdate);
  374. }
  375. }
  376. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  377. {
  378. if( grd_plist.rowcount > 0 ){
  379. grdf_exportExcel(grd_plist, "응급초진진단모니터링_" + group4.input3.value + "_" + group4.input1.value, "SheetName", false, "", "user", false);
  380. } else {
  381. sysf_messageBox("조회된 데이터가 ", "I004");
  382. return;
  383. }
  384. }
  385. ]]></Script>
  386. </Form>
  387. </FDL>