SPLVF00400_기능설정.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLVF00400" position="absolute 0 0 414 301" titletext="Untitle" onload="SPLVF00400_onload" oninit="SPLVF00400_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption7" text="종합검증/판독 담당의" class="cell_1" position="absolute 5 47 185 71" positiontype="position"/>
  8. <Edit id="output1" taborder="1" readonly="true" position="absolute 188 49 406 69" style="align:left middle;" positiontype="position"/>
  9. <Static id="caption1" text="의사 면허 번호" class="cell_1" position="absolute 5 72 185 96" positiontype="position"/>
  10. <Edit id="output2" taborder="2" readonly="true" position="absolute 188 74 406 94" style="align:left middle;" positiontype="position"/>
  11. <Static id="caption2" text="진단검사의학 전문의 번호" class="cell_1" position="absolute 5 97 185 121" positiontype="position"/>
  12. <Edit id="input2" taborder="3" class="input_default" position="absolute 188 99 406 119" style="align:left middle;" imemode="hangul" positiontype="position"/>
  13. <Static id="caption4" text="보고서작성 환자수" class="cell_1" position="absolute 5 146 185 170" positiontype="position"/>
  14. <Combo id="combo1" taborder="4" position="absolute 188 148 406 168" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_main_patcnt" index="-1"/>
  15. <Static id="caption6" text="검증방법 Setting" class="cell_1" position="absolute 5 171 409 195" positiontype="position"/>
  16. <Edit id="input5" taborder="5" position="absolute 188 173 293 193" imemode="hangul" positiontype="position"/>
  17. <CheckBox id="checkbox1" taborder="6" text="Calibration Verification" truevalue="Y" position="absolute 7 198 163 218" columncount="2" positiontype="position" falsevalue="N"/>
  18. <CheckBox id="checkbox1chd1" taborder="7" text="Delta Check Verification" truevalue="Y" position="absolute 7 223 163 243" columncount="2" falsevalue="N"/>
  19. <CheckBox id="checkbox1chd3" taborder="8" text="Repeat / Recheck" truevalue="Y" position="absolute 7 248 163 268" columncount="2" falsevalue="N"/>
  20. <CheckBox id="checkbox1chd0" taborder="9" text="Internal Quality Control" truevalue="Y" position="absolute 194 198 410 218" columncount="2" falsevalue="N"/>
  21. <CheckBox id="checkbox1chd2" taborder="10" text="Panic/Alert Value Verification" truevalue="Y" position="absolute 194 223 410 243" columncount="2" falsevalue="N"/>
  22. <CheckBox id="checkbox1chd4" taborder="11" text="Others :" truevalue="Y" position="absolute 194 248 258 268" columncount="2" falsevalue="N"/>
  23. <Edit id="input4" taborder="12" class="input_default" position="absolute 263 248 406 268" imemode="hangul" positiontype="position"/>
  24. <Button id="btn_save" taborder="13" text="저장" class="btn4" position="absolute 296 277 352 297" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
  25. <Button id="btn_can" taborder="15" text="닫기" class="btn4" position="absolute 354 277 410 297" anchor="right bottom" onclick="btn_can_onclick"/>
  26. <Static id="caption5" text="전문의별 기능설정" class="tit_2" position="absolute 6 11 140 29"/>
  27. <Static id="caption3" text="입원후 경과일" class="cell_1" position="absolute 4 122 185 145"/>
  28. <Edit id="input3" taborder="16" position="absolute 188 123 406 142"/>
  29. </Layout>
  30. </Layouts>
  31. <Objects>
  32. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  33. <ColumnInfo>
  34. <Column id="userid" type="STRING" size="256" sumtext="사용자아이디"/>
  35. <Column id="usernm" type="STRING" size="256" sumtext="판독담당의"/>
  36. <Column id="licnsno" type="STRING" size="256" sumtext="전문의번호"/>
  37. <Column id="certno" type="STRING" size="256" sumtext="인증번호"/>
  38. <Column id="baseinterm" type="STRING" size="256" sumtext="기준입원기간"/>
  39. <Column id="maxreadpatcnt" type="STRING" size="256" sumtext="최대판독환자수"/>
  40. <Column id="verimthd" type="STRING" size="256" sumtext="검증방법"/>
  41. <Column id="verimthdother" type="STRING" size="256" sumtext="검증방법other"/>
  42. </ColumnInfo>
  43. </Dataset>
  44. <Dataset id="ds_main_patcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  45. <ColumnInfo>
  46. <Column id="label" type="STRING" size="256"/>
  47. <Column id="value" type="STRING" size="256"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="label">선택</Col>
  52. <Col id="value">0</Col>
  53. </Row>
  54. <Row>
  55. <Col id="value">1</Col>
  56. <Col id="label">1</Col>
  57. </Row>
  58. <Row>
  59. <Col id="value">2</Col>
  60. <Col id="label">2</Col>
  61. </Row>
  62. <Row>
  63. <Col id="value">3</Col>
  64. <Col id="label">3</Col>
  65. </Row>
  66. <Row>
  67. <Col id="value">4</Col>
  68. <Col id="label">4</Col>
  69. </Row>
  70. <Row>
  71. <Col id="value">5</Col>
  72. <Col id="label">5</Col>
  73. </Row>
  74. <Row>
  75. <Col id="value">6</Col>
  76. <Col id="label">6</Col>
  77. </Row>
  78. <Row>
  79. <Col id="value">7</Col>
  80. <Col id="label">7</Col>
  81. </Row>
  82. <Row>
  83. <Col id="value">8</Col>
  84. <Col id="label">8</Col>
  85. </Row>
  86. <Row>
  87. <Col id="value">9</Col>
  88. <Col id="label">9</Col>
  89. </Row>
  90. <Row>
  91. <Col id="value">10</Col>
  92. <Col id="label">10</Col>
  93. </Row>
  94. <Row>
  95. <Col id="value">11</Col>
  96. <Col id="label">11</Col>
  97. </Row>
  98. <Row>
  99. <Col id="value">12</Col>
  100. <Col id="label">12</Col>
  101. </Row>
  102. <Row>
  103. <Col id="value">13</Col>
  104. <Col id="label">13</Col>
  105. </Row>
  106. <Row>
  107. <Col id="value">14</Col>
  108. <Col id="label">14</Col>
  109. </Row>
  110. <Row>
  111. <Col id="value">15</Col>
  112. <Col id="label">15</Col>
  113. </Row>
  114. <Row>
  115. <Col id="value">16</Col>
  116. <Col id="label">16</Col>
  117. </Row>
  118. <Row>
  119. <Col id="value">17</Col>
  120. <Col id="label">17</Col>
  121. </Row>
  122. <Row>
  123. <Col id="value">18</Col>
  124. <Col id="label">18</Col>
  125. </Row>
  126. <Row>
  127. <Col id="value">19</Col>
  128. <Col id="label">19</Col>
  129. </Row>
  130. <Row>
  131. <Col id="value">20</Col>
  132. <Col id="label">20</Col>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="userid" type="STRING" size="256"/>
  139. <Column id="medispclno" type="STRING" size="256"/>
  140. <Column id="certno" type="STRING" size="256"/>
  141. <Column id="baseinterm" type="STRING" size="256"/>
  142. <Column id="maxreqdpatcnt" type="STRING" size="256"/>
  143. <Column id="verimthd" type="STRING" size="256"/>
  144. <Column id="verimthdother" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row/>
  148. </Rows>
  149. </Dataset>
  150. </Objects>
  151. <Bind>
  152. <BindItem id="item0" compid="output1" propid="value" datasetid="ds_main" columnid="usernm"/>
  153. <BindItem id="item1" compid="input2" propid="value" datasetid="ds_main" columnid="certno"/>
  154. <BindItem id="item2" compid="input5" propid="value" datasetid="ds_main" columnid="userid"/>
  155. <BindItem id="item3" compid="output2" propid="value" datasetid="ds_main" columnid="licnsno"/>
  156. <BindItem id="item4" compid="input4" propid="value" datasetid="ds_main" columnid="verimthdother"/>
  157. <BindItem id="item5" compid="combo1" propid="value" datasetid="ds_main" columnid="maxreadpatcnt"/>
  158. <BindItem id="item6" compid="input3" propid="value" datasetid="ds_main" columnid="baseinterm"/>
  159. </Bind>
  160. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  161. * System Name :
  162. * Job Name :
  163. * Creator :
  164. * Make Date : 2015-11-09
  165. * Description :
  166. *---------------------------------------------------------------------------------------
  167. * Modify Date Modifier Modify Description
  168. *---------------------------------------------------------------------------------------
  169. * 2015-11-09 Live Converter TF->XP
  170. *
  171. *---------------------------------------------------------------------------------------
  172. ****************************************************************************************/
  173. include "com_commonxp::comm_main.xjs";
  174. include "lis_commonxp::LLZ001.xjs";
  175. function SPLVF00400_oninit(obj:Form, e:InitEventInfo)
  176. {
  177. frmf_initForm(obj);
  178. }
  179. function SPLVF00400_onload(obj:Form, e:LoadEventInfo)
  180. {
  181. lf_setinit();
  182. }
  183. function lf_setinit()
  184. {
  185. //var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "userid", val:sysf_getUserId()}]);
  186. ds_send.setColumn(0, "userid", sysf_getUserId());
  187. var oParam = {};
  188. oParam.id = "TRLVF00401";
  189. oParam.service = "verificationbasemngtapp.CmtCdMngt";
  190. oParam.method = "reqGetUserInfo";
  191. oParam.inds = "cond=ds_send";
  192. oParam.outds = "ds_main=getUserInfo";
  193. oParam.async = false;
  194. tranf_submit(oParam);
  195. //
  196. fwritemthd();
  197. fotherview();
  198. lf_readmthd();
  199. }
  200. //체크박스 읽어와서 셋팅
  201. function fwritemthd()
  202. {
  203. if(utlf_isNull(ds_main.getColumn(0, "verimthd")))
  204. {
  205. var code = ds_main.getColumn(0, "verimthd");
  206. var newcode = "";
  207. for(i = 0; i < 6; i++)
  208. {
  209. if(code.charAt(i)=='Y')
  210. {
  211. newcode = newcode + ""+(i+1)+" ";
  212. }
  213. }
  214. ds_main.setColumn(0, "verimthd", newcode);
  215. }
  216. }
  217. function fotherview()
  218. {
  219. var code = ds_main.getColumn(0, "verimthd");
  220. code = code.substr(5,6);
  221. trace("code= " + code);
  222. if(code != -1)
  223. {
  224. input4.visible = true;
  225. }
  226. else{
  227. input4.visible = false;
  228. }
  229. }
  230. function lf_readmthd()
  231. {
  232. var chk = ds_main.getColumn(0,"verimthd");
  233. checkbox1.value = utlf_transNullToEmpty(chk).substr(0,1);
  234. checkbox1chd0.value= utlf_transNullToEmpty(chk).substr(1,1);
  235. checkbox1chd1.value= utlf_transNullToEmpty(chk).substr(2,1);
  236. checkbox1chd2.value= utlf_transNullToEmpty(chk).substr(3,1);
  237. checkbox1chd3.value= utlf_transNullToEmpty(chk).substr(4,1);
  238. checkbox1chd4.value= utlf_transNullToEmpty(chk).substr(5,1);
  239. }
  240. //저장
  241. function fExeCmtList()
  242. {
  243. var verimthd = checkbox1.value + checkbox1chd0.value + checkbox1chd1.value+ checkbox1chd2.value+ checkbox1chd3.value + checkbox1chd4.value;
  244. trace("verimthd = " +verimthd);
  245. ds_main.setColumn(0, "verimthd", verimthd);
  246. var oParam = {};
  247. oParam.id = "TRLVF00401";
  248. oParam.service = "verificationbasemngtapp.CmtCdMngt";
  249. oParam.method = "reqSetUserMediSpcl";
  250. oParam.inds = "cond=ds_main";
  251. oParam.async = false;
  252. oParam.callback = "cf_TRLVF00401";
  253. tranf_submit(oParam);
  254. }
  255. //콜백함수
  256. function cf_TRLVF00401(strSvcID, nErrorCode, strErrorMag){
  257. if(strSvcID == "TXLVF00401" && nErrorCode==0){
  258. lf_setinit();
  259. sysf_messageBox("","I001","");
  260. }
  261. }
  262. // 닫기버튼
  263. function Button00_onclick(obj:Button, e:ClickEventInfo)
  264. {
  265. close("return value");
  266. }
  267. //저장
  268. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  269. {
  270. fExeCmtList();
  271. }
  272. function btn_can_onclick(obj:Button, e:ClickEventInfo)
  273. {
  274. close("return value");
  275. }
  276. ]]></Script>
  277. </Form>
  278. </FDL>