SMLVP00100_검증보고서출력.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLVP00100" position="absolute 0 0 1195 766" titletext="검증보고서출력" oninit="SMLVP00100_oninit" onload="SMLVP00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="종합검증보고서 일괄출력" class="tit_1" position="absolute 0 0 191 25"/>
  8. <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 50 1194 56" style="strokepen:3 solid #9ebed4ff;"/>
  9. <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1127 27 1195 49" onclick="btn_reset_onclick"/>
  10. <Button id="btn_print" taborder="2" text="출력" class="btn6" position="absolute 0 27 56 49"/>
  11. <Button id="btn_cnfm" taborder="3" text="확인" class="btn4" position="absolute 1068 27 1124 49" onclick="btn_cnfm_onclick"/>
  12. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 114 1194 120" style="strokepen:3 solid #33bbbbff;"/>
  13. <Div id="group1" taborder="4" class="div_SA2" position="absolute 0 54 1195 89">
  14. <Layouts>
  15. <Layout>
  16. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
  17. <Static id="caption2" text="보고일시 :" class="search_name" position="absolute 15 9 105 26" anchor="default"/>
  18. <Button id="btn_Ref" taborder="1" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="group1_btn_Ref_onclick"/>
  19. <Static id="caption11" text="~" class="search_n_b" position="absolute 220 9 232 26" anchor="default"/>
  20. <Calendar id="ipt_usdt" taborder="2" class="input_s_essential" position="absolute 107 8 214 27" anchor="default"/>
  21. <Calendar id="ipt_uedt" taborder="3" class="input_s_essential" position="absolute 236 8 343 27" anchor="default" onkeyup="group1_ipt_uedt_onkeyup"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Static id="caption3" text="보고서 조회" class="tit_2" position="absolute 0 95 93 112"/>
  26. <Grid id="grd_reptlist" taborder="5" binddataset="ds_reptlist" useinputpanel="false" position="absolute 0 118 1194 764" autofittype="col">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="24"/>
  31. <Column size="25"/>
  32. <Column size="150"/>
  33. <Column size="115"/>
  34. <Column size="115"/>
  35. <Column size="115"/>
  36. <Column size="120"/>
  37. <Column size="130"/>
  38. <Column size="130"/>
  39. <Column size="130"/>
  40. <Column size="120"/>
  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"/>
  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="Sex/Age"/>
  54. <Cell col="7" text="입원일"/>
  55. <Cell col="8" text="보고일"/>
  56. <Cell col="9" text="출력일"/>
  57. <Cell col="10" text="출력자"/>
  58. </Band>
  59. <Band id="body">
  60. <Cell text="expr:currow + 1"/>
  61. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  62. <Cell col="2" style="align:left middle;" text="bind:orddeptroom"/>
  63. <Cell col="3" text="bind:atdrnm"/>
  64. <Cell col="4" text="bind:pid"/>
  65. <Cell col="5" text="bind:patnm"/>
  66. <Cell col="6" text="bind:sexage"/>
  67. <Cell col="7" text="bind:orddd"/>
  68. <Cell col="8" text="bind:readdt"/>
  69. <Cell col="9" text="bind:printdt"/>
  70. <Cell col="10" text="bind:printid"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. </Layout>
  76. </Layouts>
  77. <Objects>
  78. <Dataset id="ds_reptlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  79. <ColumnInfo>
  80. <Column id="chk" type="STRING"/>
  81. <Column id="orddeptroom" type="STRING"/>
  82. <Column id="atdrnm" type="STRING"/>
  83. <Column id="pid" type="STRING"/>
  84. <Column id="patnm" type="STRING"/>
  85. <Column id="sexage" type="STRING"/>
  86. <Column id="orddd" type="STRING"/>
  87. <Column id="readdt" type="STRING"/>
  88. <Column id="printdt" type="STRING"/>
  89. <Column id="printid" type="STRING"/>
  90. <Column id="verimthd" type="STRING" size="256"/>
  91. <Column id="chk1" type="STRING" size="256"/>
  92. <Column id="chk2" type="STRING" size="256"/>
  93. <Column id="chk3" type="STRING" size="256"/>
  94. <Column id="chk4" type="STRING" size="256"/>
  95. <Column id="chk5" type="STRING" size="256"/>
  96. <Column id="chk6" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. </Dataset>
  99. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="usdd" type="STRING" size="256"/>
  102. <Column id="uedd" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row/>
  106. </Rows>
  107. </Dataset>
  108. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="refrgstsdd" type="STRING" size="256"/>
  111. <Column id="refrgstedd" type="STRING" size="256"/>
  112. <Column id="ne" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row/>
  116. </Rows>
  117. </Dataset>
  118. </Objects>
  119. <Bind>
  120. <BindItem id="item0" compid="group1.ipt_usdt" propid="value" datasetid="ds_hidden_ref" columnid="refrgstsdd"/>
  121. <BindItem id="item1" compid="group1.ipt_uedt" propid="value" datasetid="ds_hidden_ref" columnid="refrgstedd"/>
  122. </Bind>
  123. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  124. * System Name :
  125. * Job Name :
  126. * Creator :
  127. * Make Date : 2015-11-09
  128. * Description :
  129. *---------------------------------------------------------------------------------------
  130. * Modify Date Modifier Modify Description
  131. *---------------------------------------------------------------------------------------
  132. * 2015-11-09 Live Converter TF->XP
  133. *
  134. *---------------------------------------------------------------------------------------
  135. ****************************************************************************************/
  136. include "com_commonxp::comm_main.xjs";
  137. function SMLVP00100_oninit(obj:Form, e:InitEventInfo)
  138. {
  139. frmf_initForm(obj);
  140. }
  141. function SMLVP00100_onload(obj:Form, e:LoadEventInfo)
  142. {
  143. grdf_initGrid(grd_reptlist);
  144. fsetstart();
  145. }
  146. //초기화
  147. function fsetstart()
  148. {
  149. ds_reptlist.clearData();
  150. var toDay = utlf_getCurrentDate();
  151. ds_hidden_ref.setColumn(0, "refrgstsdd", toDay);
  152. ds_hidden_ref.setColumn(0, "refrgstedd", toDay);
  153. }
  154. //조회버튼
  155. function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  156. {
  157. fGetReptlist();
  158. }
  159. //보고서 조회
  160. function fGetReptlist()
  161. {
  162. //model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/refrgstsdd"));
  163. //model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/refrgstedd"));
  164. ds_send.setColumn(0, "usdd", ds_hidden_ref.getColumn(0, "refrgstsdd"));
  165. ds_send.setColumn(0, "uedd", ds_hidden_ref.getColumn(0, "refrgstedd"));
  166. //submit("TRLVP00101");
  167. var oParam = {};
  168. oParam.id = "TRLVJ90101";
  169. oParam.service = "verificationbasemngtapp.CmtCdMngt";
  170. oParam.method = "reqGetReptList";
  171. oParam.inds = "cond=ds_send";
  172. oParam.outds = "ds_reptlist=getReptList";
  173. oParam.async = false;
  174. //oParam.callback = "cf_TRLVJ90101";
  175. tranf_submit(oParam);
  176. fchkvalue();
  177. fhidenrow();
  178. }
  179. function fchkvalue()
  180. {
  181. for(i = 0; i < ds_reptlist.rowcount; i++)
  182. {
  183. var code = ds_reptlist.getColumn(i, "verimthd");
  184. if(utlf_transNullToEmpty(code).charAt(0)=='Y')
  185. {
  186. ds_reptlist.setColumn(i, "chk1", "●");
  187. }
  188. else
  189. {
  190. ds_reptlist.setColumn(i, "chk1", "○");
  191. }
  192. if(utlf_transNullToEmpty(code).charAt(1)=='Y')
  193. {
  194. ds_reptlist.setColumn(i, "chk2", "●");
  195. }
  196. else
  197. {
  198. ds_reptlist.setColumn(i, "chk2", "○");
  199. }
  200. if(utlf_transNullToEmpty(code).charAt(2)=='Y')
  201. {
  202. ds_reptlist.setColumn(i, "chk3", "●");
  203. }
  204. else
  205. {
  206. ds_reptlist.setColumn(i, "chk3", "○");
  207. }
  208. if(utlf_transNullToEmpty(code).charAt(3)=='Y')
  209. {
  210. ds_reptlist.setColumn(i, "chk4", "●");
  211. }
  212. else
  213. {
  214. ds_reptlist.setColumn(i, "chk4", "○");
  215. }
  216. if(utlf_transNullToEmpty(code).charAt(4)=='Y')
  217. {
  218. ds_reptlist.setColumn(i, "chk5", "●");
  219. }
  220. else
  221. {
  222. ds_reptlist.setColumn(i, "chk5", "○");
  223. }
  224. if(utlf_transNullToEmpty(code).charAt(5)=='Y')
  225. {
  226. ds_reptlist.setColumn(i, "chk6", "●");
  227. }
  228. else
  229. {
  230. ds_reptlist.setColumn(i, "chk6", "○");
  231. }
  232. }
  233. }
  234. function fhidenrow()
  235. {
  236. for( i = 1; i < ds_reptlist.rowcount; i++)
  237. {
  238. if(ds_reptlist.getColumn(i-1, "pid") == ds_reptlist.getColumn(i, "pid"))
  239. {
  240. //reptlist.rowHidden(i) = true;
  241. }
  242. }
  243. }
  244. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  245. {
  246. fselectnode();
  247. }
  248. function fselectnode()
  249. {
  250. var pid = "";
  251. for(i = 0; i < ds_reptlist.rowcount; i++)
  252. {
  253. if(ds_reptlist.getColumn(i, "chk") == "1")
  254. {
  255. pid = ds_reptlist.getColumn(i, "pid");
  256. for(j = i; j < ds_reptlist.rowcount; j++)
  257. {
  258. if(ds_reptlist.getColumn(j, "pid") == pid)
  259. {
  260. ds_reptlist.deleteRow(j);
  261. j--;
  262. }
  263. }
  264. }
  265. }
  266. }
  267. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. fsetstart();
  270. }
  271. function group1_ipt_uedt_onkeyup(obj:Calendar, e:KeyEventInfo)
  272. {
  273. if(e.keycode == 13)
  274. {
  275. fGetReptlist();
  276. }
  277. }
  278. ]]></Script>
  279. </Form>
  280. </FDL>