SMATP00200_피험자조회.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMATP00200" position="absolute 0 0 776 457" titletext="피험자조회" oninit="SMATP00200_oninit" onload="SMATP00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 775 420" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="피험자조회" position="absolute 0 7 95 23" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 23 775 29" linetype="horizontal" id="line1" class="line_1" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  12. <Grid position="absolute 0 28 775 186" id="grd_subjlist" binddataset="ds_main_subjlist_item" anchor="default" onlbuttonup="grp_biz_grd_subjlist_onlbuttonup" cellsizingtype="both" selecttype="multirow" extendsizetype="row">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25" band="left"/>
  17. <Column size="106"/>
  18. <Column size="69"/>
  19. <Column size="159"/>
  20. <Column size="156"/>
  21. <Column size="126"/>
  22. <Column size="60"/>
  23. <Column size="0"/>
  24. <Column size="73"/>
  25. <Column size="72"/>
  26. <Column size="48"/>
  27. <Column size="50"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell/>
  38. <Cell col="1" text="과제번호"/>
  39. <Cell col="2" text="연구코드"/>
  40. <Cell col="3" text="연구명"/>
  41. <Cell col="4" text="학술명"/>
  42. <Cell col="5" text="회사명"/>
  43. <Cell col="6" text="시험자"/>
  44. <Cell col="7" text="caption3"/>
  45. <Cell col="8" text="시작일"/>
  46. <Cell col="9" text="종료일"/>
  47. <Cell col="10" text="단계"/>
  48. <Cell col="11" text="회차"/>
  49. <Cell col="12" text="caption1"/>
  50. <Cell col="13" text="caption2"/>
  51. <Cell col="14" text="과제ID"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell celltype="head"/>
  55. <Cell col="1" style="align:left;padding:0 2 0 2;" text="bind:subjno" wordwrap="none"/>
  56. <Cell col="2" style="align:left;padding:0 2 0 2;" text="bind:stdyno" wordwrap="none"/>
  57. <Cell col="3" style="align:left top;padding:5 2 0 2;" text="bind:itemnm" wordwrap="char"/>
  58. <Cell col="4" style="align:left top;padding:5 2 0 2;" text="bind:stdysubjnm" wordwrap="char"/>
  59. <Cell col="5" style="align:left;padding:0 2 0 2;" text="bind:reqnm" wordwrap="none"/>
  60. <Cell col="6" text="bind:empnm" wordwrap="none"/>
  61. <Cell col="7" text="bind:empid"/>
  62. <Cell col="8" displaytype="date" text="bind:stdytermfrom"/>
  63. <Cell col="9" displaytype="date" text="bind:stdytermto"/>
  64. <Cell col="10" text="bind:clincflag"/>
  65. <Cell col="11" text="bind:judgdg"/>
  66. <Cell col="12" text="bind:ioflag"/>
  67. <Cell col="13" text="bind:pid"/>
  68. <Cell col="14" text="bind:subjid"/>
  69. </Band>
  70. </Format>
  71. </Formats>
  72. </Grid>
  73. <Grid position="absolute 0 195 775 420" id="grd_testeelist" binddataset="ds_main_testeelist_item" anchor="default" onrbuttondown="grp_biz_grd_testeelist_onrbuttondown" oncelldblclick="grp_biz_grd_testeelist_oncelldblclick" cellsizingtype="both" extendsizetype="row">
  74. <Formats>
  75. <Format id="default">
  76. <Columns>
  77. <Column size="0" band="left"/>
  78. <Column size="25" band="left"/>
  79. <Column size="106"/>
  80. <Column size="106"/>
  81. <Column size="106"/>
  82. <Column size="115"/>
  83. <Column size="107"/>
  84. <Column size="106"/>
  85. <Column size="106"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. </Columns>
  89. <Rows>
  90. <Row size="24" band="head"/>
  91. <Row size="24"/>
  92. </Rows>
  93. <Band id="head">
  94. <Cell/>
  95. <Cell col="1"/>
  96. <Cell col="2" text="등록번호"/>
  97. <Cell col="3" text="환자명"/>
  98. <Cell col="4" text="입원/등록일"/>
  99. <Cell col="5" text="Screening No"/>
  100. <Cell col="6" text="Random No"/>
  101. <Cell col="7" text="피험자약어"/>
  102. <Cell col="8" text="종료일"/>
  103. <Cell col="9" text="caption1"/>
  104. <Cell col="10"/>
  105. </Band>
  106. <Band id="body">
  107. <Cell displaytype="checkbox" edittype="checkbox" text="bind:sel"/>
  108. <Cell col="1" celltype="head" text="expr:currow+1"/>
  109. <Cell col="2" text="bind:pid"/>
  110. <Cell col="3" text="bind:patnm"/>
  111. <Cell col="4" displaytype="date" text="bind:orddd"/>
  112. <Cell col="5" text="bind:screenno"/>
  113. <Cell col="6" text="bind:subtesteephosid"/>
  114. <Cell col="7" text="bind:subtesteephosnm"/>
  115. <Cell col="8" displaytype="date" text="bind:enddd"/>
  116. <Cell col="9" text="bind:ioflag"/>
  117. <Cell col="10" text="bind:pamorddd"/>
  118. </Band>
  119. </Format>
  120. </Formats>
  121. </Grid>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. <Div position="absolute 0 423 775 450" id="grp_btn" scrollbars="autoboth">
  126. <Layouts>
  127. <Layout>
  128. <Button position="absolute 719 5 775 27" id="btn_cls" class="btn4" text="닫기" anchor="default" onclick="grp_btn_btn_cls_onclick"/>
  129. <Button position="absolute 187 4 243 26" id="button1" class="btn3" visible="false" text="전송" anchor="default" onclick="grp_btn_button1_onclick"/>
  130. <Static text="전송일자 :" position="absolute 5 6 80 23" id="caption3" class="search_name" visible="false" anchor="default"/>
  131. <Calendar position="absolute 87 5 177 24" id="input1" class="input_s_essential" visible="false" anchor="default"/>
  132. <Button id="button51" taborder="1" text="엑셀" class="btn7" position="absolute 662 5 717 27" onclick="grp_btn_button51_onclick"/>
  133. </Layout>
  134. </Layouts>
  135. </Div>
  136. </Layout>
  137. </Layouts>
  138. <Objects>
  139. <Dataset id="ds_main_subjlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="subjno" type="STRING" size="256"/>
  142. <Column id="stdyno" type="STRING" size="256"/>
  143. <Column id="itemnm" type="STRING" size="256"/>
  144. <Column id="stdysubjnm" type="STRING" size="256"/>
  145. <Column id="reqnm" type="STRING" size="256"/>
  146. <Column id="stdytermfrom" type="STRING" size="256"/>
  147. <Column id="stdytermto" type="STRING" size="256"/>
  148. <Column id="clincflag" type="STRING" size="256"/>
  149. <Column id="judgdg" type="STRING" size="256"/>
  150. <Column id="ioflag" type="STRING" size="256"/>
  151. <Column id="pid" type="STRING" size="256"/>
  152. <Column id="subjid" type="STRING" size="256"/>
  153. </ColumnInfo>
  154. </Dataset>
  155. <Dataset id="ds_main_testeelist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  156. <ColumnInfo>
  157. <Column id="sel" type="STRING" size="256"/>
  158. <Column id="pid" type="STRING" size="256"/>
  159. <Column id="patnm" type="STRING" size="256"/>
  160. <Column id="orddd" type="STRING" size="256"/>
  161. <Column id="screenno" type="STRING" size="256"/>
  162. <Column id="subtesteephosid" type="STRING" size="256"/>
  163. <Column id="subtesteephosnm" type="STRING" size="256"/>
  164. <Column id="enddd" type="STRING" size="256"/>
  165. <Column id="ioflag" type="STRING" size="256"/>
  166. <Column id="pamorddd" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. </Dataset>
  169. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  170. <Dataset id="ds_main_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  171. <Dataset id="ds_main_miginfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  172. <ColumnInfo>
  173. <Column id="pidold011" type="STRING" size="256"/>
  174. <Column id="hngnm" type="STRING" size="256"/>
  175. <Column id="rrgstno1" type="STRING" size="256"/>
  176. <Column id="rrgstno2" type="STRING" size="256"/>
  177. <Column id="pidnew012" type="STRING" size="256"/>
  178. <Column id="pidold012" type="STRING" size="256"/>
  179. <Column id="bmtflag" type="STRING" size="256"/>
  180. <Column id="motionflag" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row>
  184. <Col id="pidold011"/>
  185. <Col id="hngnm"/>
  186. <Col id="rrgstno1"/>
  187. <Col id="rrgstno2"/>
  188. <Col id="pidnew012"/>
  189. <Col id="pidold012"/>
  190. <Col id="bmtflag"/>
  191. <Col id="motionflag"/>
  192. </Row>
  193. </Rows>
  194. </Dataset>
  195. <Dataset id="ds_main_miginfo_transpatinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="pidold011" type="STRING" size="256"/>
  198. <Column id="hngnm" type="STRING" size="256"/>
  199. <Column id="rrgstno1" type="STRING" size="256"/>
  200. <Column id="rrgstno2" type="STRING" size="256"/>
  201. <Column id="pidnew012" type="STRING" size="256"/>
  202. <Column id="pidold012" type="STRING" size="256"/>
  203. <Column id="orddrid" type="STRING" size="256"/>
  204. <Column id="orddrnm" type="STRING" size="256"/>
  205. <Column id="drddeptcd" type="STRING" size="256"/>
  206. <Column id="orddeptas" type="STRING" size="256"/>
  207. <Column id="maxdate" type="STRING" size="256"/>
  208. <Column id="motionflag" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row>
  212. <Col id="pidold011"/>
  213. <Col id="hngnm"/>
  214. <Col id="rrgstno1"/>
  215. <Col id="rrgstno2"/>
  216. <Col id="pidnew012"/>
  217. <Col id="pidold012"/>
  218. <Col id="orddrid"/>
  219. <Col id="orddrnm"/>
  220. <Col id="drddeptcd"/>
  221. <Col id="orddeptas"/>
  222. <Col id="maxdate"/>
  223. <Col id="motionflag"/>
  224. </Row>
  225. </Rows>
  226. </Dataset>
  227. <Dataset id="ds_send_data_testeedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  228. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  229. <ColumnInfo>
  230. <Column id="srchflag" type="STRING" size="256"/>
  231. <Column id="reqphos" type="STRING" size="256"/>
  232. <Column id="subjno" type="STRING" size="256"/>
  233. <Column id="srchsubjno" type="STRING" size="256"/>
  234. <Column id="srchsubjendyn" type="STRING" size="256"/>
  235. <Column id="pid" type="STRING" size="256"/>
  236. <Column id="srchmode" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="srchflag">1</Col>
  241. <Col id="reqphos"/>
  242. <Col id="subjno"/>
  243. <Col id="srchsubjno"/>
  244. <Col id="srchsubjendyn"/>
  245. <Col id="pid"/>
  246. <Col id="srchmode"/>
  247. </Row>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  251. <ColumnInfo>
  252. <Column id="pid" type="STRING" size="256"/>
  253. <Column id="orddept" type="STRING" size="256"/>
  254. </ColumnInfo>
  255. <Rows>
  256. <Row/>
  257. </Rows>
  258. </Dataset>
  259. <Dataset id="ds_send_smartdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  260. <ColumnInfo>
  261. <Column id="pid" type="STRING" size="256"/>
  262. <Column id="screenno" type="STRING" size="256"/>
  263. <Column id="smartdate" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="pid"/>
  268. <Col id="screenno"/>
  269. <Col id="smartdate"/>
  270. </Row>
  271. </Rows>
  272. </Dataset>
  273. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  274. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  275. <Dataset id="ds_temp_ret" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  276. <Dataset id="ds_temp_stdydata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  277. <ColumnInfo>
  278. <Column id="empno" type="STRING" size="256"/>
  279. <Column id="pid" type="STRING" size="256"/>
  280. </ColumnInfo>
  281. <Rows>
  282. <Row>
  283. <Col id="empno"/>
  284. <Col id="pid"/>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  289. </Objects>
  290. <Bind>
  291. <BindItem id="item0" compid="grp_btn.input1" propid="value" datasetid="ds_send_smartdata" columnid="smartdate"/>
  292. </Bind>
  293. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  294. * System Name :
  295. * Job Name :
  296. * Creator :
  297. * Make Date : 2015-11-13
  298. * Description :
  299. *---------------------------------------------------------------------------------------
  300. * Modify Date Modifier Modify Description
  301. *---------------------------------------------------------------------------------------
  302. * 2015-11-13 Live Converter TF->XP
  303. *
  304. *---------------------------------------------------------------------------------------
  305. ****************************************************************************************/
  306. //=======================================================================================
  307. // Lib Include
  308. //---------------------------------------------------------------------------------------
  309. include "com_commonxp::comm_main.xjs"
  310. //var sTESTEELIST_PATH="ds_main_testeelist_item"
  311. //=======================================================================================
  312. // Global Form Variable
  313. //---------------------------------------------------------------------------------------
  314. var arErrorCode = new HashArray();
  315. //=======================================================================================
  316. // Function
  317. //---------------------------------------------------------------------------------------
  318. /****************************************************************************************
  319. * Argument : N/A
  320. * Description : 통합기록조회 화면 open
  321. ****************************************************************************************/
  322. function fOpenMedirecList(){
  323. var currow = ds_main_testeelist_item.rowposition;
  324. if(currow < 1){
  325. return;
  326. }
  327. var pid = ds_main_testeelist_item.getColumn(currow,"pid");
  328. var authflag = "N";
  329. frmf_clearParameter("SMMRI00400_param_pid");
  330. frmf_setParameter("SMMRI00400_param_pid" , pid);
  331. frmf_setParameter("SMMRI00400_param_authflag", authflag);
  332. frmf_open("SMMRI00400", "SMMRI00400", null, null, null, null, null, null, null, null, null, null, "M");
  333. }
  334. /****************************************************************************************
  335. * Argument : N/A
  336. * Description : 통합결과조회 화면 open
  337. ****************************************************************************************/
  338. function fOpenMediresList(){
  339. var currow = ds_main_testeelist_item.rowposition;
  340. if(currow < 1){
  341. return;
  342. }
  343. var pid = ds_main_testeelist_item.getColumn(currow,"pid");
  344. var authflag = "N";
  345. frmf_clearParameter("opener_parameter_id");
  346. frmf_setParameter("opener_parameter_id" , pid);
  347. frmf_setParameter("opener_parameter_authflag", authflag);
  348. frmf_modal("SMAER00800", "SMAER00800", "", "", "", "", "", "", "", "", "", "", "M");
  349. }
  350. // /**
  351. // * @desc : 성모 영상차트 화면 open
  352. // * @
  353. // * @param :
  354. // * @return :
  355. // * @author : 김소정
  356. // * @---------------------------------------------------
  357. // */
  358. // function fOpenSMMediRecList(){
  359. // var currow = grd_testeelist.row;
  360. // if(currow < 1){
  361. // return;
  362. // }
  363. // var pid = model.getValue(sTESTEELIST_PATH + "[" + currow + "]/pid");
  364. // if ( ! fOpenSMPatInfo(pid, "1") )
  365. // return;
  366. // }
  367. //
  368. //
  369. // /**
  370. // * @desc : 성모 처방리스트 조회 화면 open
  371. // * @
  372. // * @param :
  373. // * @return :
  374. // * @author : 김소정
  375. // * @---------------------------------------------------
  376. // */
  377. // function fOpenPrcpList(){
  378. // var currow = grd_testeelist.row;
  379. // if(currow < 1){
  380. // return;
  381. // }
  382. // var pid = model.getValue(sTESTEELIST_PATH + "[" + currow + "]/pid");
  383. // if ( ! fOpenSMPatInfo(pid, "2") )
  384. // return;
  385. // }
  386. //
  387. // /**
  388. // * @desc : 성모 결과조회 화면 open
  389. // * @
  390. // * @param :
  391. // * @return :
  392. // * @author : 김소정
  393. // * @---------------------------------------------------
  394. // */
  395. // function fOpenSMMediResList(){
  396. // var currow = grd_testeelist.row;
  397. // if(currow < 1){
  398. // return;
  399. // }
  400. // var pid = model.getValue(sTESTEELIST_PATH + "[" + currow + "]/pid");
  401. // if ( ! fOpenSMPatInfo(pid, "3") )
  402. // return;
  403. // }
  404. //
  405. // /**
  406. // * @desc : 성모 data조회 체크
  407. // * @
  408. // * @param :
  409. // * @return :
  410. // * @author : 김소정
  411. // * @---------------------------------------------------
  412. // */
  413. // function fOpenSMPatInfo(spid, kindcd){
  414. // var motionflag;
  415. // var pidold011;
  416. //
  417. // model.setValue ("/root/send/req/pid" , spid);
  418. //
  419. // // BMT환자여부 확인
  420. // submit("TRMRC03191");
  421. //
  422. // // 동의서 여부 확인
  423. // //submit("TRMRC03192")
  424. //
  425. // pidold011 = model.getValue("/root/main/miginfo/patinfolist/pidold011");
  426. // //motionflag = model.getValue ("/root/main/miginfo/transpatinfolist/motionflag");
  427. //
  428. // // 성모환자가 확인되면 as-is 프로그램을 조회가능하게 한다.
  429. // if (pidold011 != "" ) {
  430. // // if (motionflag != "") {
  431. // // if (motionflag =='N' || motionflag =='-'){
  432. // // alert('성모병원 의료정보 조회를 위한 환자의 동의가 필요합니다.');
  433. // // }
  434. // // } else {
  435. // // alert('성모병원 의료정보 조회를 위한 환자의 동의가 필요합니다.');
  436. // // }
  437. // if (kindcd == "1") {
  438. // var param = spid+'/'+getUserInfo("userid")+'/_/0/0/004/0';
  439. // window.exec("c:\\Program Files\\himed\\components\\CMC\\bitnixviewer\\ViewerUpdate.exe ", param);
  440. // } else if ( kindcd == "2") {
  441. // window.exec("C:\\Program Files\\himed\\components\\CMC\\ASIS\\DrChart_BMT.exe", spid);
  442. // } else if ( kindcd == "3") {
  443. // window.exec("C:\\Program Files\\himed\\components\\CMC\\ASIS\\Result_BMT.exe", spid);
  444. // }
  445. // } else {
  446. // alert('성모병원 전환환자가 아닙니다.');
  447. // }
  448. // }
  449. //=======================================================================================
  450. // Event
  451. //---------------------------------------------------------------------------------------
  452. /****************************************************************************************
  453. * Components : Form
  454. * Components ID : SMATP00200
  455. * Event : oninit
  456. * Argument : 01.obj : Object Event has occurred
  457. * : 02.e : Event Object
  458. * Description : 화면 처음 초기화시 폼초기화
  459. ****************************************************************************************/
  460. function SMATP00200_oninit(obj:Form, e:InitEventInfo)
  461. {
  462. frmf_initForm(obj); // 폼 초기화
  463. }
  464. /****************************************************************************************
  465. * Components : Form
  466. * Components ID : SMATP00200
  467. * Event : oninit
  468. * Argument : 01.obj : Object Event has occurred
  469. * : 02.e : Event Object
  470. * Description : 화면 처음 초기화시 폼초기화
  471. ****************************************************************************************/
  472. function SMATP00200_onload(obj:Form, e:LoadEventInfo)
  473. {
  474. grdf_initGrid(grp_biz.grd_subjlist); // 그리드 소트만
  475. grdf_initGrid(grp_biz.grd_testeelist); // 그리드 소트만
  476. grdf_setRowTypeIcon(grp_biz.grd_subjlist, 0); // 그리드 상태 표시
  477. //opener 화면에서 파라메터값을 넘겨주면, 해당 조건으로 검색하도록 추가 (2009.09.28 JJE)
  478. if( !utlf_isNull(frmf_getOpenerUID()) ){ //Opener의 UID가 존재하면,
  479. var param_subjno = opener.frmf_getParameter("param_subjno");
  480. if( !utlf_isNull(param_subjno) ){
  481. ds_send_srchdata.setColumn(0,"srchsubjno", param_subjno);
  482. ds_send_srchdata.setColumn(0,"srchflag" , "2"); // 검색 조건이 '일치' (equal 비교)
  483. ds_send_srchdata.setColumn(0,"srchmode" , "A"); // 진료조회모드:E(로그인 의사의 피험자만 조회)/약국조회모드:A(모든 피험자 조회)
  484. }
  485. } else {
  486. var menuparam = frmf_getMenuParam();
  487. if (menuparam == "CRC") {
  488. }else if (menuparam == "CRA") {
  489. ds_send_srchdata.setColumn(0,"reqphos" , sysf_getUserId() );
  490. ds_send_srchdata.setColumn(0,"srchmode", "CRA" );
  491. }
  492. }
  493. // 20120130_laboru_전송일자 오늘로 셋팅
  494. ds_send_smartdata.setColumn(0,"smartdate", utlf_getCurrentDate());
  495. frmf_createPopupMenu("grd_testeelist_popupmenu"
  496. ,"fPopupMenu"
  497. ,[{id: "popupA" , level: "0", title: "통합기록조회"}
  498. ,{id: "popupB" , level: "0", title: "통합결과조회"}
  499. // ,{id: "fOpenSMMediRecList" , level: "0", title: "여의도성모-영상차트조회"}
  500. // ,{id: "fOpenPrcpList" , level: "0", title: "여의도성모-처방조회"}
  501. // ,{id: "fOpenSMMediResList" , level: "0", title: "여의도성모-결과조회"}
  502. ] //항목추가
  503. );
  504. var oParam = {};
  505. oParam.id = "TRATB00104";
  506. oParam.service = "crccbaseapp.CrccBase";
  507. oParam.method = "reqGetUserSubjectList";
  508. oParam.inds = "req=ds_send_srchdata";
  509. oParam.outds = "ds_main_subjlist_item=subjinfo";
  510. oParam.async = false;
  511. //oParam.callback = "cf_TRATB00104";
  512. tranf_submit(oParam);
  513. }
  514. /****************************************************************************************
  515. * Function : fPopupMenu
  516. * Description : 팝업메뉴 선택시 실행함수
  517. * Argument :
  518. * return type :
  519. * Creator :
  520. ****************************************************************************************/
  521. function fPopupMenu(obj:PopupMenu, e:MenuClickEventInfo) {
  522. if(e.id == "popupA") {
  523. fOpenMedirecList();
  524. }
  525. if(e.id == "popupB") {
  526. fOpenMediresList();
  527. }
  528. }
  529. /****************************************************************************************
  530. * Components : Grid
  531. * Components ID : grp_biz.grd_subjlist
  532. * Event : onlbuttonup
  533. * Argument : 01.obj : Object Event has occurred
  534. * : 02.e : Event Object
  535. * Description : 과제리스트 선택시 환자조회
  536. ****************************************************************************************/
  537. function grp_biz_grd_subjlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  538. {
  539. if( e.row > -1 ) {
  540. ds_send_data.setColumn(0,"subjno", ds_main_subjlist_item.getColumn(e.row,"subjid"));
  541. ds_send_srchdata.setColumn(0,"subjno", ds_main_subjlist_item.getColumn(e.row,"subjid"));
  542. var oParam = {};
  543. oParam.id = "TRATP00101";
  544. oParam.service = "subtesteeapp.SubTestee";
  545. oParam.method = "reqGetSubTesteeList";
  546. oParam.inds = "req=ds_send_srchdata";
  547. oParam.outds = "ds_main_testeelist_item=item";
  548. oParam.async = false;
  549. //oParam.callback = "cf_TRATP00101";
  550. tranf_submit(oParam);
  551. }
  552. }
  553. /****************************************************************************************
  554. * Components : Grid
  555. * Components ID : grp_biz.grd_testeelist
  556. * Event : onrbuttondown
  557. * Argument : 01.obj : Object Event has occurred
  558. * : 02.e : Event Object
  559. * Description : 환자 우클릭 팝업메뉴
  560. ****************************************************************************************/
  561. function grp_biz_grd_testeelist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  562. {
  563. if(e.row > -1) {
  564. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  565. grd_testeelist_popupmenu.trackPopup(e.screenX,e.screenY);
  566. }
  567. return true;
  568. }
  569. /****************************************************************************************
  570. * Components : Grid
  571. * Components ID : grp_biz.grd_testeelist
  572. * Event : oncelldblclick
  573. * Argument : 01.obj : Object Event has occurred
  574. * : 02.e : Event Object
  575. * Description : 환자 더블클릭
  576. ****************************************************************************************/
  577. function grp_biz_grd_testeelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  578. {
  579. var pamorddd = utlf_transNullToEmpty(ds_main_testeelist_item.getColumn(e.row,"pamorddd"));
  580. var pamkey = pamorddd.split("^");
  581. var schk = "N";
  582. if ( pamkey[2] == "O" || pamkey[2] == "S"){
  583. var pat_info = "O▦"+ ds_main_testeelist_item.getColumn(e.row,"pid") +"▦"+pamkey[0]+"▦"+pamkey[1]+"▦"+sysf_getUserInfo("dutplcecd")+"▦1▦"+pamkey[0];
  584. schk = "Y";
  585. }
  586. else if ( pamkey[2]=="I" ){
  587. var pat_info = "I▦"+ ds_main_testeelist_item.getColumn(e.row,"pid") +"▦"+pamkey[0]+"▦"+pamkey[1]+"▦"+sysf_getUserInfo("dutplcecd")+"▦"+pamkey[0];
  588. schk = "Y";
  589. }
  590. else if ( pamkey[2]=="E" ){
  591. var pat_info = "E▦"+ ds_main_testeelist_item.getColumn(e.row,"pid") +"▦"+pamkey[0]+"▦"+pamkey[1]+"▦"+sysf_getUserInfo("dutplcecd");
  592. schk = "Y";
  593. }
  594. if (schk == "Y"){
  595. // frmf_setParameter("condparam", pat_info);
  596. // modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  597. appf_initPatientInfo(pat_info);
  598. }
  599. }
  600. /****************************************************************************************
  601. * Components : Button
  602. * Components ID : grp_btn.button1
  603. * Event : onclick
  604. * Argument : 01.obj : Object Event has occurred
  605. * : 02.e : Event Object
  606. * Description : 전송
  607. ****************************************************************************************/
  608. function grp_btn_button1_onclick(obj:Button, e:ClickEventInfo)
  609. {
  610. var check = "";
  611. for ( var i = 0 ; i < ds_main_testeelist_item.rowcount ; i++){
  612. if(ds_main_testeelist_item.getColumn(i,"sel")=="Y"){
  613. if(!utlf_isNull(ds_main_testeelist_item.getColumn(i,"screenno")) && ds_main_testeelist_item.getColumn(i,"screenno") != "-") {
  614. ds_send_smartdata.setColumn(0,"pid" , ds_main_testeelist_item.getColumn(i,"pid"));
  615. ds_send_smartdata.setColumn(0,"screenno", ds_main_testeelist_item.getColumn(i,"screenno"));
  616. var oParam = {};
  617. oParam.id = "TRATP00201";
  618. oParam.service = "subtesteeapp.SubTestee";
  619. oParam.method = "reqSetSmartData";
  620. oParam.inds = "req=ds_send_smartdata";
  621. oParam.outds = "";
  622. oParam.async = false;
  623. //oParam.callback = "cf_TRATP00201";
  624. tranf_submit(oParam);
  625. } else {
  626. check = "Y";
  627. }
  628. } else {
  629. }
  630. }
  631. if(check == "Y") {
  632. sysf_messageBox("Screening No 가 없는 환자가 존재합니다.","I999");
  633. } else {
  634. }
  635. }
  636. /****************************************************************************************
  637. * Components : Button
  638. * Components ID : grp_btn.button51
  639. * Event : onclick
  640. * Argument : 01.obj : Object Event has occurred
  641. * : 02.e : Event Object
  642. * Description : 엑셀저장
  643. ****************************************************************************************/
  644. function grp_btn_button51_onclick(obj:Button, e:ClickEventInfo)
  645. {
  646. if( ds_main_testeelist_item.rowcount > 0 ){
  647. grdf_exportExcel(grp_biz.grd_testeelist, "피험자리스트", "피험자리스트", false, "", "user", false);
  648. } else {
  649. sysf_messageBox("조회된 데이터가 ", "I004");
  650. }
  651. }
  652. /****************************************************************************************
  653. * Components : Button
  654. * Components ID : grp_btn.btn_cls
  655. * Event : onclick
  656. * Argument : 01.obj : Object Event has occurred
  657. * : 02.e : Event Object
  658. * Description : 닫기
  659. ****************************************************************************************/
  660. function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  661. {
  662. this.close();
  663. }
  664. ]]></Script>
  665. </Form>
  666. </FDL>