SPLNP90100_미접수검사목록.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLNP90100" position="absolute 0 0 800 236" titletext="미접수검체목록" oninit="SPLNP90100_oninit" onload="SPLNP90100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="미접수검체목록" class="tit_2" position="absolute 0 0 116 22"/>
  8. <Grid id="grd_detllist" taborder="1" binddataset="ds_main_nacptlist" useinputpanel="false" position="absolute 0 21 799 211" cellsizingtype="col" onrbuttondown="grd_detllist_onrbuttondown">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="23"/>
  13. <Column size="60"/>
  14. <Column size="75"/>
  15. <Column size="70"/>
  16. <Column size="70"/>
  17. <Column size="160"/>
  18. <Column size="70"/>
  19. <Column size="78"/>
  20. <Column size="110"/>
  21. <Column size="110"/>
  22. <Column size="70"/>
  23. <Column size="75"/>
  24. <Column size="70"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="24" band="head"/>
  28. <Row size="24"/>
  29. </Rows>
  30. <Band id="head">
  31. <Cell/>
  32. <Cell col="1" text="상태"/>
  33. <Cell col="2" text="검체번호"/>
  34. <Cell col="3" text="환자번호"/>
  35. <Cell col="4" text="환자명"/>
  36. <Cell col="5" text="검사명"/>
  37. <Cell col="6" text="처방일자"/>
  38. <Cell col="7" text="예약일"/>
  39. <Cell col="8" text="채혈일시"/>
  40. <Cell col="9" text="접수일시"/>
  41. <Cell col="10" text="진료과"/>
  42. <Cell col="11" text="병동/병실"/>
  43. <Cell col="12" text="채혈자"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head" expr="currow+1"/>
  47. <Cell col="1" style="align:center middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:flg"/>
  48. <Cell col="2" style="align:left middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:bcno"/>
  49. <Cell col="3" style="align:center middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:pid"/>
  50. <Cell col="4" style="align:center middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:patnm"/>
  51. <Cell col="5" style="align:left middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:tclsnm"/>
  52. <Cell col="6" displaytype="date" style="background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:prcpdd"/>
  53. <Cell col="7" displaytype="date" style="background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:apptdate" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  54. <Cell col="8" displaytype="date" style="background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:bcolldt" mask="yyyy-MM-dd HH:mm" suppressalign="first"/>
  55. <Cell col="9" displaytype="date" style="background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:spcacptdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
  56. <Cell col="10" style="align:left middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:orddeptnm"/>
  57. <Cell col="11" style="align:left middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:wardroom"/>
  58. <Cell col="12" style="align:left middle;background:EXPR(fChngGrdCellColor(color));background2:EXPR(fChngGrdCellColor(color));" text="bind:bcollid"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Shape id="line1" class="line_10" position="absolute 0 16 800 22"/>
  64. <Button id="btn_cfm" taborder="2" text="닫기" class="btn4" position="absolute 744 213 800 235" onclick="btn_cfm_onclick"/>
  65. <Button id="button11" taborder="3" text="출력" class="btn6" position="absolute 0 213 56 235" onclick="button11_onclick"/>
  66. <Div id="div_info" anchor="left bottom" taborder="4" style="border:1 solid #3366ffff ;bordertype:round 6 6 ;" position="absolute 564 213 728 235">
  67. <Layouts>
  68. <Layout>
  69. <Shape id="Shape00" type="rectangle" position="absolute 12 2 42 18" style="strokepen:1 solid #000000ff;fillbrush:solid #ffff99ff true;" anchor="default"/>
  70. <Static id="Static00" text="다음예약 인접환자" position="absolute 47 2 155 18" anchor="default"/>
  71. </Layout>
  72. </Layouts>
  73. </Div>
  74. <PopupMenu id="pmn_menu" innerdataset="@ds_menu" idcolumn="hardcd" captioncolumn="hardcdnm" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 824 10 996 32"/>
  75. </Layout>
  76. </Layouts>
  77. <Objects>
  78. <Dataset id="ds_main_nacptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  79. <ColumnInfo>
  80. <Column id="flg" type="STRING" size="256" sumtext="검체번호"/>
  81. <Column id="bcno" type="STRING" size="256" sumtext="검체번호"/>
  82. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  83. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  84. <Column id="tclsnm" type="STRING" size="256" sumtext="검사명"/>
  85. <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
  86. <Column id="apptdate" type="STRING" size="256" sumtext="진료일"/>
  87. <Column id="bcolldt" type="STRING" size="256" sumtext="채취일시"/>
  88. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  89. <Column id="wardroom" type="STRING" size="256" sumtext="병동병실"/>
  90. <Column id="bcollid" type="STRING" size="256" sumtext="의뢰의사명"/>
  91. <Column id="spcacptdt" type="STRING" size="256" sumtext="접수일시"/>
  92. <Column id="color" type="STRING" size="256" sumtext="접수일시"/>
  93. </ColumnInfo>
  94. </Dataset>
  95. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="acptfromdd" type="STRING" size="256"/>
  98. <Column id="acpttodd" type="STRING" size="256"/>
  99. <Column id="tclscd" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="acptfromdd"/>
  104. <Col id="acpttodd"/>
  105. <Col id="tclscd"/>
  106. </Row>
  107. </Rows>
  108. </Dataset>
  109. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  110. <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="hardcd" type="STRING" size="256"/>
  113. <Column id="hardcdnm" type="STRING" size="256"/>
  114. <Column id="level" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="hardcd">fCallPatRsrvInfo</Col>
  119. <Col id="hardcdnm">개인별예약조회</Col>
  120. <Col id="level">0</Col>
  121. </Row>
  122. </Rows>
  123. </Dataset>
  124. </Objects>
  125. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  126. * System Name :
  127. * Job Name :
  128. * Creator :
  129. * Make Date : 2015-05-01
  130. * Description :
  131. *---------------------------------------------------------------------------------------
  132. * Modify Date Modifier Modify Description
  133. *---------------------------------------------------------------------------------------
  134. * 2015-05-01 Live Converter TF->XP
  135. *
  136. *---------------------------------------------------------------------------------------
  137. ****************************************************************************************/
  138. include "com_commonxp::comm_main.xjs";
  139. function SPLNP90100_oninit(obj:Form, e:InitEventInfo)
  140. {
  141. frmf_initForm(obj);
  142. }
  143. function SPLNP90100_onload(obj:Form, e:LoadEventInfo)
  144. {
  145. grdf_initGrid(grd_detllist);
  146. fgetnacptlist();
  147. }
  148. function fgetnacptlist()
  149. {
  150. ds_main_nacptlist.clearData();
  151. ds_hidden_ref.copyData(arg_ds_hidden_ref)
  152. ds_send.setColumn(0, "acptfromdd", ds_hidden_ref.getColumn(0, "acptfromdd"))
  153. ds_send.setColumn(0, "acpttodd", ds_hidden_ref.getColumn(0, "acpttodd"))
  154. ds_send.setColumn(0, "tclscd", ds_hidden_ref.getColumn(0, "tclscd"))
  155. var oParam = {};
  156. oParam.id = "TRLNP90101";
  157. oParam.service = "refprintmngtapp.NmedRefPrintMngt";
  158. oParam.method = "reqGetNAcptList";
  159. oParam.inds = "cond=ds_send";
  160. oParam.outds = "ds_main_nacptlist=getNAcptList";
  161. oParam.async = false;
  162. //oParam.callback = "cf_TRLNP90101";
  163. tranf_submit(oParam);
  164. }
  165. function button11_onclick(obj:Button, e:ClickEventInfo)
  166. {
  167. fReportPrint();
  168. }
  169. function fReportPrint()
  170. {
  171. var objDOM = rptf_createDOM();
  172. rptf_setNodeListToDOM(objDOM, "/root/main/nacptlist", ds_main_nacptlist);
  173. var objParam = new Object();
  174. objParam.xml_data_XML1 = objDOM.documentElement.source;
  175. //trace(objDOM.documentElement.source);
  176. var option = "";
  177. rptf_exeReportPreview30(["RPLNP90100"],[objParam], option);
  178. }
  179. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  180. {
  181. this.close();
  182. }
  183. function fChngGrdCellColor(color){
  184. if(color == undefined || color == "" || color == "ffffff")
  185. color = "default";
  186. else
  187. color = "#" + color;
  188. return color;
  189. }
  190. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  191. {
  192. eval(e.id + "()");
  193. }
  194. function grd_detllist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  195. {
  196. if(e.row < 0) return;
  197. grdf_setSelectedCell(obj, e);
  198. if(ds_menu.rowcount > 0)
  199. pmn_menu.trackPopup(e.screenX,e.screenY);
  200. }
  201. function fCallPatRsrvInfo() {
  202. var nRow = ds_main_nacptlist.rowposition;
  203. var sPid = ds_main_nacptlist.getColumn(nRow, "pid");
  204. if(!utlf_isNull(sPid)) {
  205. curPatRsrvObj = frmf_findPopup("SMAEA04100"); //활성화된 화면 object loading
  206. if(!utlf_isNull(curPatRsrvObj)){
  207. curPatRsrvObj.ds_send.setColumn(0, "srchpid", sPid );
  208. curPatRsrvObj.group3.grp_sea.btn_sea.click();
  209. } else {
  210. var mainObj = frmf_getMainViewer();
  211. dsf_createDsRow("ds_temp_source", [{col:"srchpid", type:"string", size:256, val:sPid}]);
  212. var objArg = new Object();
  213. objArg.arg_ds_send = ds_temp_source;
  214. mainObj.frmf_open("SMAEA04100", "SMAEA04100", objArg, null, null, null, null, null, null, null, null, null, "M");
  215. }
  216. }
  217. }
  218. ]]></Script>
  219. </Form>
  220. </FDL>