SMLLP02200_유전자검사동의서조회.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLP02200" position="absolute 0 0 1280 1024" titletext="유전자검사동의서조회" onload="SMLLP02200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 48 1195 792" style="">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 70 1194 73" style="" anchor="default"/>
  11. <Static id="caption1" class="tit_2" position="absolute 5 55 87 69" style="" text="환자명단" anchor="default"/>
  12. <Div id="group1" position="absolute 0 10 1195 45" style="" anchor="default">
  13. <Layouts>
  14. <Layout>
  15. <Shape id="roundrect2" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1194 35" style=""/>
  16. <Button id="btn_ref" class="btn1" position="absolute 1124 8 1180 30" style="" text="조회" onclick="group3_group1_btn_ref_onclick" anchor="default"/>
  17. <Shape id="line3" class="line_4" linetype="vertical" position="absolute 1109 7 1112 29" style="" anchor="default"/>
  18. <Static id="caption8" position="absolute 280 10 295 30" style="align: middle;" text="~" anchor="default"/>
  19. <Calendar id="ipt_usdd" class="input_search" position="absolute 184 8 274 27" style="" anchor="default"/>
  20. <Calendar id="ipt_uedd" class="input_search" position="absolute 296 8 386 27" style="" anchor="default"/>
  21. <Static id="caption13" class="search_name" position="absolute 887 9 906 26" style="" anchor="default"/>
  22. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_ref" class="combo_search" position="absolute 908 8 998 27" style="" anchor="default">
  23. <Dataset id="innerdataset">
  24. <ColumnInfo>
  25. <Column id="codecolumn"/>
  26. <Column id="datacolumn"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="codecolumn">1</Col>
  31. <Col id="datacolumn">등록번호</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">2</Col>
  35. <Col id="datacolumn">동의서번호</Col>
  36. </Row>
  37. </Rows>
  38. </Dataset>
  39. </Combo>
  40. <Edit id="ipt_pid" position="absolute 1000 8 1100 27" style="" anchor="default" onkeypress="group3_group1_ipt_pid_onkeypress" onkeydown="group3_group1_ipt_pid_onkeydown"/>
  41. <Static id="caption14" class="search_name" position="absolute 395 10 457 27" style="" text="구분 :" anchor="default"/>
  42. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="select" position="absolute 459 9 532 28" style="font:,,normal;" anchor="default">
  43. <Dataset id="innerdataset">
  44. <ColumnInfo>
  45. <Column id="codecolumn"/>
  46. <Column id="datacolumn"/>
  47. </ColumnInfo>
  48. <Rows>
  49. <Row>
  50. <Col id="codecolumn">00</Col>
  51. <Col id="datacolumn">- 전체 -</Col>
  52. </Row>
  53. <Row>
  54. <Col id="codecolumn">O</Col>
  55. <Col id="datacolumn">외래</Col>
  56. </Row>
  57. <Row>
  58. <Col id="codecolumn">I</Col>
  59. <Col id="datacolumn">입원</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">E</Col>
  63. <Col id="datacolumn">응급</Col>
  64. </Row>
  65. </Rows>
  66. </Dataset>
  67. </Combo>
  68. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio2" position="absolute 542 11 690 26" style="" value="A" index="2" anchor="default">
  69. <Dataset id="innerdataset">
  70. <ColumnInfo>
  71. <Column id="codecolumn"/>
  72. <Column id="datacolumn"/>
  73. </ColumnInfo>
  74. <Rows>
  75. <Row>
  76. <Col id="codecolumn">N</Col>
  77. <Col id="datacolumn">미확인</Col>
  78. </Row>
  79. <Row>
  80. <Col id="codecolumn">Y</Col>
  81. <Col id="datacolumn">확인</Col>
  82. </Row>
  83. <Row>
  84. <Col id="codecolumn">A</Col>
  85. <Col id="datacolumn">전체</Col>
  86. </Row>
  87. </Rows>
  88. </Dataset>
  89. </Radio>
  90. <Static id="cap_prntflag" class="search_name" position="absolute 691 9 800 26" style="" text="동의서상태 :" anchor="default"/>
  91. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_prnt" class="combo_search" position="absolute 795 8 875 27" style="align:center ;" anchor="default">
  92. <Dataset id="innerdataset">
  93. <ColumnInfo>
  94. <Column id="codecolumn"/>
  95. <Column id="datacolumn"/>
  96. </ColumnInfo>
  97. <Rows>
  98. <Row>
  99. <Col id="codecolumn">-</Col>
  100. <Col id="datacolumn">- 전체 -</Col>
  101. </Row>
  102. <Row>
  103. <Col id="codecolumn">1</Col>
  104. <Col id="datacolumn">출력</Col>
  105. </Row>
  106. <Row>
  107. <Col id="codecolumn">2</Col>
  108. <Col id="datacolumn">반납</Col>
  109. </Row>
  110. <Row>
  111. <Col id="codecolumn">3</Col>
  112. <Col id="datacolumn">반납확인</Col>
  113. </Row>
  114. <Row>
  115. <Col id="codecolumn">4</Col>
  116. <Col id="datacolumn">스캔</Col>
  117. </Row>
  118. <Row>
  119. <Col id="codecolumn">5</Col>
  120. <Col id="datacolumn">삭제</Col>
  121. </Row>
  122. </Rows>
  123. </Dataset>
  124. </Combo>
  125. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo1" position="absolute 100 8 180 27" style="" anchor="default">
  126. <Dataset id="innerdataset">
  127. <ColumnInfo>
  128. <Column id="codecolumn"/>
  129. <Column id="datacolumn"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row>
  133. <Col id="codecolumn">S</Col>
  134. <Col id="datacolumn">접수일자</Col>
  135. </Row>
  136. <Row>
  137. <Col id="codecolumn">P</Col>
  138. <Col id="datacolumn">처방일자</Col>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. </Combo>
  143. <Static id="caption2" class="search_name" position="absolute 9 9 95 26" style="" text="조회구분 :" anchor="default"/>
  144. </Layout>
  145. </Layouts>
  146. </Div>
  147. <Button id="btn_excel" class="btn2" visible="true" position="absolute 1149 49 1191 68" style="" text="엑셀" onclick="group3_btn_excel_onclick" anchor="default"/>
  148. <Button id="btn_left" class="btn2" visible="true" position="absolute 790 50 832 69" style="" text="▶" onclick="group3_btn_left_onclick" anchor="default"/>
  149. <Button id="button1" class="btn2" visible="true" position="absolute 747 50 789 69" style="" text="◀" onclick="group3_button1_onclick" anchor="default"/>
  150. <Grid id="grd_list" binddataset="ds_main_getSepogetlist" position="absolute 0 75 1194 735" style="font:,,bold;align:center ;" oncelldblclick="group3_grd_list_oncelldblclick" onaftersort="group3_grd_list_onaftersort" anchor="default">
  151. <Formats>
  152. <Format id="default">
  153. <Columns>
  154. <Column size="21" band="left"/>
  155. <Column size="100" band="left"/>
  156. <Column size="80" band="left"/>
  157. <Column size="80" band="left"/>
  158. <Column size="80" band="left"/>
  159. <Column size="190" band="left"/>
  160. <Column size="90" band="left"/>
  161. <Column size="90"/>
  162. <Column size="90"/>
  163. <Column size="70"/>
  164. <Column size="100"/>
  165. <Column size="90"/>
  166. <Column size="90"/>
  167. <Column size="90"/>
  168. <Column size="90"/>
  169. <Column size="25"/>
  170. <Column size="70"/>
  171. <Column size="120"/>
  172. </Columns>
  173. <Rows>
  174. <Row size="24" band="head"/>
  175. <Row size="24"/>
  176. </Rows>
  177. <Band id="head">
  178. <Cell/>
  179. <Cell col="1" text="동의서번호"/>
  180. <Cell col="2" text="등록번호"/>
  181. <Cell col="3" text="환자명"/>
  182. <Cell col="4" text="처방코드"/>
  183. <Cell col="5" text="처방명"/>
  184. <Cell col="6" text="처방일자"/>
  185. <Cell col="7" text="출력일자"/>
  186. <Cell col="8" text="접수일자"/>
  187. <Cell col="9" text="검체보존"/>
  188. <Cell col="10" text="보존기간"/>
  189. <Cell col="11" text="진료의사"/>
  190. <Cell col="12" text="진료과"/>
  191. <Cell col="13" text="병실"/>
  192. <Cell col="14" text="상태"/>
  193. <Cell col="15"/>
  194. <Cell col="16" text="확인자"/>
  195. <Cell col="17" text="확인일시"/>
  196. </Band>
  197. <Band id="body">
  198. <Cell expr="currow+1"/>
  199. <Cell col="1" text="bind:ocrtag"/>
  200. <Cell col="2" text="bind:pid"/>
  201. <Cell col="3" text="bind:hngnm"/>
  202. <Cell col="4" style="align:left;" text="bind:tclscd"/>
  203. <Cell col="5" style="align:left;" text="bind:tclsnm"/>
  204. <Cell col="6" displaytype="date" style="align:center middle;" text="bind:prcpdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  205. <Cell col="7" displaytype="date" style="align:center middle;" text="bind:fstprntdt" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  206. <Cell col="8" displaytype="date" style="align:center middle;" text="bind:spcacptdt" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  207. <Cell col="9" text="bind:spcproccd"/>
  208. <Cell col="10" text="bind:spcpossnterm"/>
  209. <Cell col="11" text="bind:usernm"/>
  210. <Cell col="12" text="bind:inorddeptnm"/>
  211. <Cell col="13" text="bind:roomcd"/>
  212. <Cell col="14" text="bind:sday"/>
  213. <Cell col="15" displaytype="checkbox" edittype="checkbox" style="controlbackground:darkgray;" text="bind:cnfmyn" expr="cnfmyn=='Y'?1:0" editdisplay="display"/>
  214. <Cell col="16" text="bind:delivecnfmid"/>
  215. <Cell col="17" text="bind:delivecnfmdt"/>
  216. </Band>
  217. </Format>
  218. </Formats>
  219. </Grid>
  220. </Layout>
  221. </Layouts>
  222. </Div>
  223. <Div id="group4" scrollbars="none" position="absolute 0 13 1195 48" style="">
  224. <Layouts>
  225. <Layout>
  226. <Button id="btn_init" class="btn4" position="absolute 1127 3 1195 25" style="" text="초기화" onclick="group4_btn_init_onclick" anchor="default"/>
  227. <Button id="btn_aprv" class="btn2" position="absolute 1 9 161 33" text="유전자동의서확인" onclick="group4_btn_aprv_onclick" anchor="default"/>
  228. <Shape id="line2" class="line_6" linetype="horizontal" position="absolute 0 34 1194 37" style="" anchor="default"/>
  229. </Layout>
  230. </Layouts>
  231. </Div>
  232. <Div id="group2" position="absolute 0 0 1195 21" style="" scrollbars="none">
  233. <Layouts>
  234. <Layout>
  235. <Static id="caption6" class="tit_1" position="absolute 0 0 248 22" style="" text="유전자검사 동의서 조회" anchor="default"/>
  236. </Layout>
  237. </Layouts>
  238. </Div>
  239. </Layout>
  240. </Layouts>
  241. <Objects>
  242. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  243. <ColumnInfo>
  244. <Column id="code" type="STRING" size="256"/>
  245. <Column id="fromdd" type="STRING" size="256"/>
  246. <Column id="todd" type="STRING" size="256"/>
  247. <Column id="select" type="STRING" size="256"/>
  248. <Column id="pid" type="STRING" size="256"/>
  249. <Column id="textflag" type="STRING" size="256"/>
  250. <Column id="prntflag" type="STRING" size="256"/>
  251. <Column id="cnfmyn" type="STRING" size="256"/>
  252. </ColumnInfo>
  253. <Rows>
  254. <Row>
  255. <Col id="code"/>
  256. <Col id="fromdd"/>
  257. <Col id="todd"/>
  258. <Col id="select"/>
  259. <Col id="pid"/>
  260. <Col id="textflag"/>
  261. <Col id="prntflag"/>
  262. <Col id="cnfmyn"/>
  263. </Row>
  264. </Rows>
  265. </Dataset>
  266. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  267. <ColumnInfo>
  268. <Column id="code" type="STRING" size="256"/>
  269. <Column id="fromdd" type="STRING" size="256"/>
  270. <Column id="todd" type="STRING" size="256"/>
  271. <Column id="select" type="STRING" size="256"/>
  272. <Column id="pid" type="STRING" size="256"/>
  273. <Column id="textflag" type="STRING" size="256"/>
  274. <Column id="prntflag" type="STRING" size="256"/>
  275. <Column id="cnfmyn" type="STRING" size="256"/>
  276. </ColumnInfo>
  277. <Rows>
  278. <Row/>
  279. </Rows>
  280. </Dataset>
  281. <Dataset id="ds_main_getSepogetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  282. <ColumnInfo>
  283. <Column id="hngnm" type="STRING" size="256"/>
  284. <Column id="tclscd" type="STRING" size="256"/>
  285. <Column id="tclsnm" type="STRING" size="256"/>
  286. <Column id="prcpdd" type="STRING" size="256"/>
  287. <Column id="fstprntdt" type="STRING" size="256"/>
  288. <Column id="spcacptdt" type="STRING" size="256"/>
  289. <Column id="spcproccd" type="STRING" size="256"/>
  290. <Column id="spcpossnterm" type="STRING" size="256"/>
  291. <Column id="usernm" type="STRING" size="256"/>
  292. <Column id="inorddeptnm" type="STRING" size="256"/>
  293. <Column id="roomcd" type="STRING" size="256"/>
  294. <Column id="sday" type="STRING" size="256"/>
  295. <Column id="pid" type="STRING" size="256"/>
  296. <Column id="ocrtag" type="STRING" size="256"/>
  297. <Column id="cnfmyn" type="STRING" size="256"/>
  298. <Column id="delivecnfmid" type="STRING" size="256"/>
  299. <Column id="delivecnfmdt" type="STRING" size="256"/>
  300. </ColumnInfo>
  301. <Rows>
  302. <Row>
  303. <Col id="hngnm"/>
  304. <Col id="tclscd"/>
  305. <Col id="tclsnm"/>
  306. <Col id="prcpdd"/>
  307. <Col id="fstprntdt"/>
  308. <Col id="spcacptdt"/>
  309. <Col id="spcproccd"/>
  310. <Col id="spcpossnterm"/>
  311. <Col id="usernm"/>
  312. <Col id="inorddeptnm"/>
  313. <Col id="roomcd"/>
  314. <Col id="sday"/>
  315. <Col id="pid"/>
  316. <Col id="ocrtag"/>
  317. <Col id="cnfmyn"/>
  318. <Col id="delivecnfmid"/>
  319. <Col id="delivecnfmdt"/>
  320. </Row>
  321. </Rows>
  322. </Dataset>
  323. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  324. <ColumnInfo/>
  325. </Dataset>
  326. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  327. <ColumnInfo/>
  328. </Dataset>
  329. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  330. <ColumnInfo>
  331. <Column id="init" type="STRING" size="256"/>
  332. </ColumnInfo>
  333. <Rows>
  334. <Row>
  335. <Col id="init"/>
  336. </Row>
  337. </Rows>
  338. </Dataset>
  339. <Dataset id="ds_send_iemr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  340. </Objects>
  341. <Bind>
  342. <BindItem id="item0" compid="group3.group1.ipt_usdd" propid="value" datasetid="ds_hidden_ref" columnid="fromdd"/>
  343. <BindItem id="item1" compid="group3.group1.ipt_uedd" propid="value" datasetid="ds_hidden_ref" columnid="todd"/>
  344. <BindItem id="item2" compid="group3.group1.cmb_ref" propid="value" datasetid="ds_hidden_ref" columnid="textflag"/>
  345. <BindItem id="item3" compid="group3.group1.ipt_pid" propid="value" datasetid="ds_hidden_ref" columnid="pid"/>
  346. <BindItem id="item4" compid="group3.group1.select" propid="value" datasetid="ds_hidden_ref" columnid="select"/>
  347. <BindItem id="item5" compid="group3.group1.radio2" propid="value" datasetid="ds_hidden_ref" columnid="cnfmyn"/>
  348. <BindItem id="item6" compid="group3.group1.cmb_prnt" propid="value" datasetid="ds_hidden_ref" columnid="prntflag"/>
  349. <BindItem id="item7" compid="group3.group1.combo1" propid="value" datasetid="ds_hidden_ref" columnid="code"/>
  350. </Bind>
  351. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  352. * System Name :
  353. * Job Name :
  354. * Creator :
  355. * Make Date : 2015-05-01
  356. * Description :
  357. *---------------------------------------------------------------------------------------
  358. * Modify Date Modifier Modify Description
  359. *---------------------------------------------------------------------------------------
  360. * 2015-05-01 Live Converter TF->XP
  361. *
  362. *---------------------------------------------------------------------------------------
  363. ****************************************************************************************/
  364. include "com_commonxp::comm_main.xjs";
  365. include "lis_commonxp::LLZ001.xjs";
  366. function SMLLP02200_onload(obj:Form, e:LoadEventInfo) {
  367. frmf_initForm(obj);
  368. //grdf_initGrid(grd_XXX);
  369. //grdf_setGridSort(grd_XXX);
  370. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  371. fSetInit();
  372. }
  373. // 초기화
  374. function fSetInit(){
  375. var toDay = utlf_getCurrentDate();
  376. ds_main_getSepogetlist.clearData();
  377. ds_hidden_ref.setColumn( 0, "fromdd",toDay);
  378. ds_hidden_ref.setColumn( 0, "todd",toDay);
  379. ds_hidden_ref.setColumn( 0, "select","00");
  380. ds_hidden_ref.setColumn( 0, "pid","");
  381. ds_hidden_ref.setColumn( 0, "code","S");
  382. ds_hidden_ref.setColumn( 0, "cnfmyn","A");
  383. ds_hidden_ref.setColumn( 0, "prntflag","-");
  384. ds_hidden_ref.setColumn( 0, "textflag","1");
  385. }
  386. // 엑셀 저장
  387. function fExeExcel() {
  388. // var fileName = window.fileDialog("save", ",", false, "유전자검사동의서_" + utlf_getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  389. // if (fileName != ""){
  390. // group3.grd_list.saveExcel(fileName);
  391. // }
  392. }
  393. // 조회일자 3개월 이전으로 못가게 막기
  394. function fSetFromdd() {
  395. var fromdd = ds_hidden_ref.getColumn(0, "fromdd");
  396. var todd = ds_hidden_ref.getColumn(0, "todd");
  397. var mDate = todd.toDate("YYYYMMDD").getAddDate(-3, "M");
  398. if(mDate.getDateFormat("YYYYMMDD") > fromdd) {
  399. sysf_messageBox("3개월 이내의 기간만 검색","I006");
  400. return false;
  401. }else if(todd < fromdd) {
  402. sysf_messageBox("기간설정이 잘못", "E005");
  403. return false;
  404. }else {
  405. return true;
  406. }
  407. }
  408. // 조회
  409. function fGetSepogetlist(){ //조회일자 check
  410. ds_main_getSepogetlist.clearData();
  411. ds_main_getSepogetlist.addRow();
  412. //model.refresh();
  413. if(!fSetFromdd()){
  414. return;
  415. }
  416. ds_main_getSepogetlist.clearData();
  417. //model.copyNode("ds_send" , "root_hidden_ref");
  418. // submit("TRLLP02102");
  419. var oParam = {};
  420. oParam.id = "TRLLP02102";
  421. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  422. oParam.method = "getSepogetlist";
  423. oParam.inds = "cond=ds_hidden_ref";
  424. oParam.outds = "ds_main_getSepogetlist=getSepogetlist";
  425. oParam.async = false;
  426. //oParam.callback = "cf_TRLLP02102";
  427. tranf_submit(oParam);
  428. for(i=0; i< ds_main_getSepogetlist.rowcount; i++){ //즉시폐기시 색변환
  429. if(ds_main_getSepogetlist.getColumn(i, "spcproccd") == "즉시폐기") {
  430. group3.grd_list.cellStyle("background-color", i, group3.grd_list.colRef("spcacptdt"), i, group3.grd_list.colRef("spcacptdt")) = "#f7a08b";
  431. }
  432. if(ds_main_getSepogetlist.getColumn(i, "spcpossnterm") != "검사종료시") {
  433. if(ds_main_getSepogetlist.getColumn(i, "spcpossnterm") != "5년") {
  434. group3.grd_list.cellStyle("background-color", i, group3.grd_list.colRef("spcproccd"), i, group3.grd_list.colRef("spcproccd")) = "#93DAFF";
  435. }
  436. }
  437. }
  438. }
  439. function fPopup(){
  440. // ds_send_iemr.clearData();
  441. // ds_send_iemr.addRow();
  442. //
  443. // var row = ds_main_getSepogetlist.rowposition;
  444. //
  445. // if(ds_main_getSepogetlist.getColumn(row, "sday") == "스캔") {
  446. //
  447. //
  448. //
  449. // dsf_createDsRow("ds_send_iemr", [{col : "pid", val : ds_main_getSepogetlist.getColumn(row,"pid") }
  450. // ,{col : "orddeptcd", val : ds_main_getSepogetlist.getColumn(row,"orddeptcd") }
  451. // ,{col : "indd", val : ds_main_getSepogetlist.getColumn(row,"orddd") }
  452. // ,{col : "docucd", val : ds_main_getSepogetlist.getColumn(row,"formcd") }
  453. // ,{col : "ioflag", val : ds_main_getSepogetlist.getColumn(row,"prcpgenrflag") }
  454. // ,{col : "cmc_cretno", val : ds_main_getSepogetlist.getColumn(row,"cretno") }
  455. // ,{col : "cmc_spcid", val : "" }
  456. // ,{col : "cmc_orddate", val : "" }
  457. // ,{col : "cmc_orderseqno", val : "" }]);
  458. //
  459. // var objArg = new Object();
  460. //
  461. // objArg.arg_ds_send_iemr = ds_send_iemr;
  462. //
  463. // frmf_open("SSMRC03110", "SSMRC03110", objArg, "", "", "", "", "", "", "", "", "", "M");
  464. //
  465. // // if(window.children.item("imgemrviewer") == null) {
  466. // // frmf_open("SSMRC03110", "imgemrviewer", "ds_send_iemr","ds_hidden_temp", "", "", "", "", "", "", "", "", "", "M");
  467. // // //window.load("SSMRC03110.xrw", "modeless", "imgemrviewer", "", "ds_send_iemr", "ds_hidden_temp");
  468. // // }else{
  469. // // // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  470. // // var iemrNode = instance1.selectSingleNode("ds_send_iemr");
  471. // // window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  472. // // // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  473. // // window.children.item("imgemrviewer").modelesstopmost = true;
  474. // // window.children.item("imgemrviewer").modelesstopmost = false;
  475. // // }
  476. // }
  477. ds_send_iemr.clear();
  478. var row = ds_main_getSepogetlist.rowposition;
  479. if(ds_main_getSepogetlist.getColumn(row,"sday") == "스캔") {
  480. //dsf_makeValue(ds_send_iemr,"ocrcode","string" , ds_aprvlist.getColumn(row,"ocrtag"));
  481. dsf_createDsRow("ds_send_iemr", [{col : "ocrcode", val : ds_main_getSepogetlist.getColumn(row,"ocrtag")}
  482. ,{col : "pid", val : ds_main_getSepogetlist.getColumn(row, "pid")}]);
  483. if(utlf_isNull(frmf_findPopup("SSMRC03130"))) {
  484. var objArg = {};
  485. //objArg["ds_send_iemr"] = ds_send_iemr; // Dataset인경우 명명규칙 plgds
  486. objArg.arg_ds_hidden_temp = ds_send_iemr;
  487. frmf_open("SSMRC03130", "SSMRC03130", objArg, "", "", "", "", "", "", "", "", "", "M");
  488. }else{
  489. // 팝업 EMR Viewer 사용중인 상태에서 리로드 기능 추가 - 20080416
  490. // var iemrNode = instance1.selectSingleNode("/root/send/iemr");
  491. // window.children.item("imgemrviewer").javascript.reloadChart(iemrNode);
  492. // // 팝업 EMR Viewer 화면 맨 앞으로 가져오기
  493. // window.children.item("imgemrviewer").modelesstopmost = true;
  494. // window.children.item("imgemrviewer").modelesstopmost = false;
  495. }
  496. }
  497. }
  498. //키이벤트 엔터키 입력시
  499. function fKeyEvent(){
  500. if(event.keyCode == "13"){
  501. if(event.target=="group3.group1.ipt_pid"){
  502. ds_hidden_ref.setColumn( 0, "pid", (group3.group1.ipt_pid.text).getTrim().substr(0,13));
  503. //동의서 바코드 리딩시 동의서번호+페이지번호가 같이 읽혀짐..
  504. fGetSepogetlist();
  505. }
  506. }
  507. }
  508. function group3_group1_btn_ref_onclick(obj:Button, e:ClickEventInfo) {
  509. fGetSepogetlist();
  510. }
  511. function group3_group1_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo) {
  512. if (e.keycode == "13") {
  513. ds_hidden_ref.setColumn( 0, "pid", (group3.group1.ipt_pid.text).getTrim().substr(0,13));
  514. //동의서 바코드 리딩시 동의서번호+페이지번호가 같이 읽혀짐..
  515. fGetSepogetlist();
  516. }
  517. }
  518. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  519. var toDay = utlf_getCurrentDate();
  520. trace("toDay :"+toDay);
  521. grdf_exportExcel(group3.grd_list, lf_lisGetTitle(this) + "_"+toDay, "sheet1", true);
  522. }
  523. function group3_btn_left_onclick(obj:Button, e:ClickEventInfo) {
  524. group3.grd_list.setCellPos(17);
  525. }
  526. function group3_button1_onclick(obj:Button, e:ClickEventInfo) {
  527. group3.grd_list.setCellPos(7);
  528. }
  529. function group3_grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  530. fPopup();
  531. }
  532. function group3_grd_list_onaftersort() {
  533. group3.grd_list.gridToInstance();
  534. }
  535. function group4_btn_init_onclick(obj:Button, e:ClickEventInfo) {
  536. fSetInit();
  537. }
  538. function group4_btn_aprv_onclick(obj:Button, e:ClickEventInfo) {
  539. frmf_open("SPLLJ90400", "SPLLJ90400", "","", "", "", "", "", "", "", "", "", "M");
  540. }
  541. ]]></Script>
  542. </Form>
  543. </FDL>