SPMNE13000_응급실 인계장 검사처방 기준자료등록.xfdl 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNE13000" position="absolute 0 0 566 780" titletext="응급실 인계장 미수행 검사처방 기준자료 등록" oninit="SPMNE13000_oninit" onload="SPMNE13000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 560 770" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="응급실 인계장 미수행 검사처방 기준자료 등록" position="absolute 0 0 320 25" id="caption6" class="tit_1"/>
  11. <Shape position="absolute 0 40 560 46" linetype="horizontal" id="line2" class="line_10"/>
  12. <Grid position="absolute 0 45 560 770" id="grd_stndtestlist" binddataset="ds_stndtestinfo_stndtestlist" onexpanddown="group5_grd_stndtestlist_onexpanddown" autoenter="select" autosizingtype="row" cellsizingtype="both" extendsizetype="row">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="26"/>
  17. <Column size="95"/>
  18. <Column size="345"/>
  19. <Column size="70"/>
  20. <Column size="0"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell/>
  28. <Cell col="1" text="처방코드"/>
  29. <Cell col="2" text="처방명"/>
  30. <Cell col="3" text="정렬순서"/>
  31. <Cell col="4" text="대분류코드"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell celltype="head"/>
  35. <Cell col="1" displaytype="text" edittype="expr:saveflag =='Y' ? 'none' : 'text' " text="bind:prcpcd" expandshow="show" enable="false"/>
  36. <Cell col="2" style="align:left;padding:2 2 2 2;" text="bind:prcpnm" wordwrap="char" autosizerow="limitmin"/>
  37. <Cell col="3" displaytype="text" edittype="text" text="bind:sortseq"/>
  38. <Cell col="4" text="bind:saveflag"/>
  39. </Band>
  40. </Format>
  41. </Formats>
  42. </Grid>
  43. <Button position="absolute 430 21 472 40" id="button1" class="btn2" text="추가" onclick="group5_button1_onclick"/>
  44. <Button position="absolute 474 21 516 40" id="button2" class="btn2" text="삭제" onclick="group5_button2_onclick"/>
  45. <Button position="absolute 518 21 560 40" id="button6" class="btn5" text="저장" onclick="group5_button6_onclick"/>
  46. <Button position="absolute 386 21 428 40" id="btn_searDetl" class="btn2" text="조회" onclick="group5_btn_searDetl_onclick"/>
  47. </Layout>
  48. </Layouts>
  49. </Div>
  50. </Layout>
  51. </Layouts>
  52. <Objects>
  53. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  54. <ColumnInfo>
  55. <Column id="workdd" type="STRING" size="256"/>
  56. </ColumnInfo>
  57. <Rows>
  58. <Row/>
  59. </Rows>
  60. </Dataset>
  61. <Dataset id="ds_stndtestinfo_stndtestlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  64. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  65. <Column id="sortseq" type="STRING" size="256" sumtext="정렬순서"/>
  66. <Column id="saveflag" type="STRING" size="256" sumtext="저장구분"/>
  67. </ColumnInfo>
  68. </Dataset>
  69. <Dataset id="ds_rtnmsg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="rtnmsg" type="STRING" size="256" sumtext="Return Message"/>
  72. </ColumnInfo>
  73. </Dataset>
  74. </Objects>
  75. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  76. * System Name :
  77. * Job Name :
  78. * Creator :
  79. * Make Date : 2016-10-10
  80. * Description :
  81. *---------------------------------------------------------------------------------------
  82. * Modify Date Modifier Modify Description
  83. *---------------------------------------------------------------------------------------
  84. * 2016-10-10 Live Converter TF->XP
  85. *
  86. *---------------------------------------------------------------------------------------
  87. ****************************************************************************************/
  88. include "com_commonxp::comm_main.xjs";
  89. var arErrorCode = new HashArray();
  90. function SPMNE13000_oninit(obj:Form, e:InitEventInfo)
  91. {
  92. frmf_initForm(obj);
  93. }
  94. function SPMNE13000_onload(obj:Form, e:LoadEventInfo)
  95. {
  96. grdf_setRowTypeIcon(group5.grd_stndtestlist, 0);
  97. fSearch();
  98. }
  99. function fSearch(){
  100. ds_send.clearData();
  101. dsf_makeValue(ds_send, "workdd", "string", utlf_getCurrentDate());
  102. //submit("TRMNE11002");
  103. var oParam = {};
  104. oParam.id = "TRMNE11002";
  105. oParam.service = "ercareapp.ERRgst";
  106. oParam.method = "reqGetStndTestList";
  107. oParam.inds = "reqdata=ds_send";
  108. oParam.outds = "ds_stndtestinfo_stndtestlist=stndtestlist";
  109. oParam.async = false;
  110. tranf_submit(oParam);
  111. }
  112. function group5_btn_searDetl_onclick(obj:Button, e:ClickEventInfo)
  113. {
  114. fSearch();
  115. }
  116. function group5_button1_onclick(obj:Button, e:ClickEventInfo)
  117. {
  118. //var addrow = parseInt(grd_stndtestlist.rows);
  119. ds_stndtestinfo_stndtestlist.addRow();
  120. }
  121. function group5_button2_onclick(obj:Button, e:ClickEventInfo)
  122. {
  123. var xPathStndTestList = ds_stndtestinfo_stndtestlist;
  124. if (!utlf_isNull(xPathStndTestList.getColumn(ds_stndtestinfo_stndtestlist.rowposition, "saveflag"))) {
  125. ds_stndtestinfo_stndtestlist.enableevent = false;
  126. ds_stndtestinfo_stndtestlist.updatecontrol = false;
  127. ds_stndtestinfo_stndtestlist.setRowType(i, 8);
  128. ds_stndtestinfo_stndtestlist.updatecontrol = true;
  129. ds_stndtestinfo_stndtestlist.enableevent = true;
  130. } else {
  131. ds_stndtestinfo_stndtestlist.deleteRow(ds_stndtestinfo_stndtestlist.rowposition);
  132. }
  133. }
  134. function group5_button6_onclick(obj:Button, e:ClickEventInfo)
  135. {
  136. //var savedata = getGridUpdateData(grd_stndtestlist);
  137. var updateData = grdf_getGridUpdateData(group5.grd_stndtestlist);
  138. grdf_setStatusColumn(updateData, "stat");
  139. dsf_createDs("ds_reqsmm");
  140. ds_reqsmm.copyData(updateData, true);
  141. if (ds_reqsmm.rowcount == 0 ) {
  142. sysf_messageBox("저장할 데이터가 없습니다.", "E999");
  143. } else {
  144. var oParam = {};
  145. oParam.id = "TXMNE11005";
  146. oParam.service = "ercareapp.ERRgst";
  147. oParam.method = "reqExeStndTestInfo";
  148. oParam.inds = "savedata=ds_reqsmm";
  149. oParam.outds = "ds_rtnmsg=rtnmsg";
  150. oParam.async = false;
  151. oParam.callback = "cf_TXMNE11005";
  152. tranf_submit(oParam);
  153. if (arErrorCode.pop("TXMNE11005") > -1) {
  154. fSearch();
  155. }
  156. }
  157. }
  158. function cf_TXMNE11005(sSvcId, nErrorCode, sErrorMsg) {
  159. arErrorCode.push(sSvcId, nErrorCode);
  160. }
  161. function group5_grd_stndtestlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  162. {
  163. var row = ds_stndtestinfo_stndtestlist.rowposition;
  164. var col = group5.grd_stndtestlist.currentcol;
  165. if (row >= 0 && col == group5.grd_stndtestlist.getCellPos("prcpcd")) {
  166. frmf_setParameter("scrnflag", "help");
  167. frmf_setParameter("rtnpath", "ds_stndtestinfo_stndtestlist");
  168. var objArg = new Object();
  169. frmf_open("SPMNW11100", "SPMNW11100", objArg, null, 1, 100, 500, null, null, null, null, null, "M"); //yjh : 커밋
  170. //open("SPMNW11100","1","100","500");
  171. }
  172. }
  173. ]]></Script>
  174. </Form>
  175. </FDL>