SPLPJ02400_전체검체조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPJ02400" position="absolute 0 0 1008 714" titletext="전체검체조회" onload="SPLPJ02400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_spclist5" taborder="2" useinputpanel="false" position="absolute 801 22 1006 682" autofittype="col" oncelldblclick="grd_spclist5_oncelldblclick" class="CSS::lis.css" onsetfocus="grd_spclist5_onsetfocus">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="0"/>
  12. <Column size="0"/>
  13. <Column size="0"/>
  14. <Column size="188"/>
  15. </Columns>
  16. <Rows>
  17. <Row size="22" band="head"/>
  18. <Row size="22"/>
  19. </Rows>
  20. <Band id="head">
  21. <Cell text="instcd"/>
  22. <Cell col="1" text="testcd"/>
  23. <Cell col="2" text="spccd"/>
  24. <Cell col="3" text="검체명 예문"/>
  25. </Band>
  26. <Band id="body">
  27. <Cell text="bind:instcd"/>
  28. <Cell col="1" text="bind:testcd"/>
  29. <Cell col="2" text="bind:spccd"/>
  30. <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
  31. </Band>
  32. </Format>
  33. </Formats>
  34. </Grid>
  35. <Grid id="grd_spclist4" taborder="3" useinputpanel="false" position="absolute 601 22 791 682" autofittype="col" oncelldblclick="grd_spclist4_oncelldblclick" class="CSS::lis.css" onsetfocus="grd_spclist4_onsetfocus">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="188"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="22" band="head"/>
  46. <Row size="22"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell text="instcd"/>
  50. <Cell col="1" text="testcd"/>
  51. <Cell col="2" text="spccd"/>
  52. <Cell col="3" text="검체명 예문"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell text="bind:instcd"/>
  56. <Cell col="1" text="bind:testcd"/>
  57. <Cell col="2" text="bind:spccd"/>
  58. <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Grid id="grd_spclist3" taborder="4" useinputpanel="false" position="absolute 401 22 591 682" autofittype="col" oncelldblclick="grd_spclist3_oncelldblclick" class="CSS::lis.css" onsetfocus="grd_spclist3_onsetfocus">
  64. <Formats>
  65. <Format id="default">
  66. <Columns>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="188"/>
  71. </Columns>
  72. <Rows>
  73. <Row size="22" band="head"/>
  74. <Row size="22"/>
  75. </Rows>
  76. <Band id="head">
  77. <Cell text="instcd"/>
  78. <Cell col="1" text="testcd"/>
  79. <Cell col="2" text="spccd"/>
  80. <Cell col="3" text="검체명 예문"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell text="bind:instcd"/>
  84. <Cell col="1" text="bind:testcd"/>
  85. <Cell col="2" text="bind:spccd"/>
  86. <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
  87. </Band>
  88. </Format>
  89. </Formats>
  90. </Grid>
  91. <Grid id="grd_spclist2" taborder="5" useinputpanel="false" position="absolute 201 22 391 682" autofittype="col" oncelldblclick="grd_spclist2_oncelldblclick" class="CSS::lis.css" onsetfocus="grd_spclist2_onsetfocus">
  92. <Formats>
  93. <Format id="default">
  94. <Columns>
  95. <Column size="0"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. <Column size="188"/>
  99. </Columns>
  100. <Rows>
  101. <Row size="22" band="head"/>
  102. <Row size="22"/>
  103. </Rows>
  104. <Band id="head">
  105. <Cell text="instcd"/>
  106. <Cell col="1" text="testcd"/>
  107. <Cell col="2" text="spccd"/>
  108. <Cell col="3" text="검체명 예문"/>
  109. </Band>
  110. <Band id="body">
  111. <Cell text="bind:instcd"/>
  112. <Cell col="1" text="bind:testcd"/>
  113. <Cell col="2" text="bind:spccd"/>
  114. <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. <Static id="caption1" text="검체예문" class="tit_2" position="absolute 201 2 350 22"/>
  120. <Static id="caption3" text="검체예문" class="tit_2" position="absolute 401 2 550 22"/>
  121. <Static id="caption4" text="검체예문" class="tit_2" position="absolute 601 2 750 22"/>
  122. <Static id="caption5" text="검체예문" class="tit_2" position="absolute 801 2 950 22"/>
  123. <Grid id="grd_spclist1" taborder="9" useinputpanel="false" autofittype="col" position="absolute 2 22 191 682" oncelldblclick="grd_spclist1_oncelldblclick" class="CSS::lis.css" onsetfocus="grd_spclist1_onsetfocus">
  124. <Formats>
  125. <Format id="default">
  126. <Columns>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. <Column size="188"/>
  131. </Columns>
  132. <Rows>
  133. <Row size="22" band="head"/>
  134. <Row size="22"/>
  135. </Rows>
  136. <Band id="head">
  137. <Cell text="instcd"/>
  138. <Cell col="1" text="testcd"/>
  139. <Cell col="2" text="spccd"/>
  140. <Cell col="3" text="검체명 예문"/>
  141. </Band>
  142. <Band id="body">
  143. <Cell text="bind:instcd"/>
  144. <Cell col="1" text="bind:testcd"/>
  145. <Cell col="2" text="bind:spccd"/>
  146. <Cell col="3" style="align:left middle;" text="bind:spcnm"/>
  147. </Band>
  148. </Format>
  149. </Formats>
  150. </Grid>
  151. <Static id="caption2" text="검체예문" class="tit_2" position="absolute 2 2 150 22"/>
  152. <Button id="btn_close" taborder="10" text="닫기" class="btn2" visible="true" position="absolute 962 692 1006 712" onclick="btn_close_onclick"/>
  153. </Layout>
  154. </Layouts>
  155. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  156. * System Name :
  157. * Job Name :
  158. * File Name : SPLPJ02400_전체검체조회.xfdl
  159. * Creator :
  160. * Make Date :
  161. *
  162. * Description :
  163. *---------------------------------------------------------------------------------------
  164. * Modify Date Modifier Modify Description
  165. *---------------------------------------------------------------------------------------
  166. *
  167. *---------------------------------------------------------------------------------------
  168. ****************************************************************************************/
  169. //=======================================================================================
  170. // Lib Include
  171. //---------------------------------------------------------------------------------------
  172. include "com_commonxp::comm_main.xjs";
  173. include "lis_commonxp::LPZ001.xjs";
  174. //=======================================================================================
  175. // Function
  176. //---------------------------------------------------------------------------------------
  177. /**********************************************************************************
  178. * Name : fExeInitialize
  179. * Description : 초기화 Function
  180. * Argument : null
  181. * return Type : null
  182. * Author : Autumn
  183. **********************************************************************************/
  184. function fExeInitialize()
  185. {
  186. dsf_createDs("ds_rslt_spcexmplist"); //조회검체리스트
  187. dsf_createDs("ds_rslt_spcexmplist1");
  188. dsf_createDs("ds_rslt_spcexmplist2");
  189. dsf_createDs("ds_rslt_spcexmplist3");
  190. dsf_createDs("ds_rslt_spcexmplist4");
  191. dsf_createDs("ds_rslt_spcexmplist5");
  192. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  193. , {col: "testcd", val: testcd }]);
  194. tranf_submit({
  195. id: "TRLPJ02401"
  196. , service: "plgyacptmngtapp.SpecimenAccept"
  197. , method: "reqGetAllSpcList"
  198. , inds : "refData="+sInDsName
  199. , outds: "ds_rslt_spcexmplist=reflist"
  200. , callback: "cbf_SPLPJ02400"
  201. , async: false
  202. });
  203. dsf_copyColInfo(ds_rslt_spcexmplist1, ds_rslt_spcexmplist);
  204. dsf_copyColInfo(ds_rslt_spcexmplist2, ds_rslt_spcexmplist);
  205. dsf_copyColInfo(ds_rslt_spcexmplist3, ds_rslt_spcexmplist);
  206. dsf_copyColInfo(ds_rslt_spcexmplist4, ds_rslt_spcexmplist);
  207. dsf_copyColInfo(ds_rslt_spcexmplist5, ds_rslt_spcexmplist);
  208. for(var i=0; i<ds_rslt_spcexmplist.rowcount; i++){
  209. if(i<29*1){
  210. ds_rslt_spcexmplist1.copyRow(ds_rslt_spcexmplist1.addRow(), ds_rslt_spcexmplist, i);
  211. } else if(i<29*2){
  212. ds_rslt_spcexmplist2.copyRow(ds_rslt_spcexmplist2.addRow(), ds_rslt_spcexmplist, i);
  213. } else if(i<29*3){
  214. ds_rslt_spcexmplist3.copyRow(ds_rslt_spcexmplist3.addRow(), ds_rslt_spcexmplist, i);
  215. } else if(i<29*4){
  216. ds_rslt_spcexmplist4.copyRow(ds_rslt_spcexmplist4.addRow(), ds_rslt_spcexmplist, i);
  217. } else {
  218. ds_rslt_spcexmplist5.copyRow(ds_rslt_spcexmplist5.addRow(), ds_rslt_spcexmplist, i);
  219. }
  220. }
  221. grd_spclist1.binddataset = ds_rslt_spcexmplist1;
  222. grd_spclist2.binddataset = ds_rslt_spcexmplist2;
  223. grd_spclist3.binddataset = ds_rslt_spcexmplist3;
  224. grd_spclist4.binddataset = ds_rslt_spcexmplist4;
  225. grd_spclist5.binddataset = ds_rslt_spcexmplist5;
  226. }
  227. /**********************************************************************************
  228. * Name : cbf_SPLPJ02400
  229. * Description : 전체검체조회 콜백함수.
  230. * Argument : string:strSvcID, string:nErrorCode, string:strErrorMag
  231. * return Type : Null
  232. * Author : Autumn
  233. **********************************************************************************/
  234. function cbf_SPLPJ02400(strSvcID, nErrorCode, strErrorMag)
  235. {
  236. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  237. }
  238. function fExeSpcChoi(objDs, pRowNo)
  239. {
  240. //----------------
  241. if (pRowNo < 0)
  242. {
  243. sysf_messageBox("검체를 선택하여 주십시오! 검체는 ", "I003");
  244. return false;
  245. }
  246. //---------------------------------------------------------------------------------------------
  247. sysf_trace(objDs.getColumn(pRowNo,"spccd"));
  248. trace("pRowNo="+pRowNo);
  249. opener.frmf_setParameter("SPLPJ02400_spccd", objDs.getColumn(pRowNo,"spccd"));
  250. opener.frmf_setParameter("SPLPJ02400_spcnm", objDs.getColumn(pRowNo,"spcnm"));
  251. this.close();
  252. }
  253. function fExeGridChoi(pNo) {
  254. switch (pNo) {
  255. case 1 :
  256. ds_rslt_spcexmplist2.rowposition = -1;
  257. ds_rslt_spcexmplist3.rowposition = -1;
  258. ds_rslt_spcexmplist4.rowposition = -1;
  259. ds_rslt_spcexmplist5.rowposition = -1;
  260. break;
  261. case 2 :
  262. ds_rslt_spcexmplist1.rowposition = -1;
  263. ds_rslt_spcexmplist3.rowposition = -1;
  264. ds_rslt_spcexmplist4.rowposition = -1;
  265. ds_rslt_spcexmplist5.rowposition = -1;
  266. break;
  267. case 3 :
  268. ds_rslt_spcexmplist1.rowposition = -1;
  269. ds_rslt_spcexmplist2.rowposition = -1;
  270. ds_rslt_spcexmplist4.rowposition = -1;
  271. ds_rslt_spcexmplist5.rowposition = -1;
  272. break;
  273. case 4 :
  274. ds_rslt_spcexmplist1.rowposition = -1;
  275. ds_rslt_spcexmplist2.rowposition = -1;
  276. ds_rslt_spcexmplist3.rowposition = -1;
  277. ds_rslt_spcexmplist5.rowposition = -1;
  278. break;
  279. case 5 :
  280. ds_rslt_spcexmplist1.rowposition = -1;
  281. ds_rslt_spcexmplist2.rowposition = -1;
  282. ds_rslt_spcexmplist3.rowposition = -1;
  283. ds_rslt_spcexmplist4.rowposition = -1;
  284. break;
  285. }
  286. }
  287. //=======================================================================================
  288. // Event
  289. //---------------------------------------------------------------------------------------
  290. /****************************************************************************************
  291. * Components :
  292. * Components ID : SPMPJ02400
  293. * Event : onload
  294. * Argument : 01.obj : Object Event has occurred
  295. * : 02.e : Event Object
  296. * Description : 화면로드
  297. ****************************************************************************************/
  298. function SPLPJ02400_onload(obj:Form, e:LoadEventInfo)
  299. {
  300. frmf_initForm(obj);
  301. fExeInitialize();
  302. }
  303. /****************************************************************************************
  304. * Components :
  305. * Components ID : Button00
  306. * Event : onclick
  307. * Argument : 01.obj : Object Event has occurred
  308. * : 02.e : Event Object
  309. * Description : 화면닫기
  310. ****************************************************************************************/
  311. function Button00_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. this.close();
  314. }
  315. /****************************************************************************************
  316. * Components :
  317. * Components ID : btn_close
  318. * Event : onclick
  319. * Argument : 01.obj : Object Event has occurred
  320. * : 02.e : Event Object
  321. * Description : 화면닫기
  322. ****************************************************************************************/
  323. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  324. {
  325. this.close();
  326. }
  327. /****************************************************************************************
  328. * Components :
  329. * Components ID : grd_spclist1
  330. * Event : oncelldblclick
  331. * Argument : 01.obj : Object Event has occurred
  332. * : 02.e : Event Object
  333. * Description : 검체선택
  334. ****************************************************************************************/
  335. function grd_spclist1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  336. {
  337. fExeSpcChoi(ds_rslt_spcexmplist1, e.row);
  338. }
  339. /****************************************************************************************
  340. * Components :
  341. * Components ID : grd_spclist2
  342. * Event : oncelldblclick
  343. * Argument : 01.obj : Object Event has occurred
  344. * : 02.e : Event Object
  345. * Description : 검체선택
  346. ****************************************************************************************/
  347. function grd_spclist2_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  348. {
  349. fExeSpcChoi(ds_rslt_spcexmplist2, e.row);
  350. }
  351. /****************************************************************************************
  352. * Components :
  353. * Components ID : grd_spclist3
  354. * Event : oncelldblclick
  355. * Argument : 01.obj : Object Event has occurred
  356. * : 02.e : Event Object
  357. * Description : 검체선택
  358. ****************************************************************************************/
  359. function grd_spclist3_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  360. {
  361. fExeSpcChoi(ds_rslt_spcexmplist3, e.row);
  362. }
  363. /****************************************************************************************
  364. * Components :
  365. * Components ID : grd_spclist4
  366. * Event : oncelldblclick
  367. * Argument : 01.obj : Object Event has occurred
  368. * : 02.e : Event Object
  369. * Description : 검체선택
  370. ****************************************************************************************/
  371. function grd_spclist4_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  372. {
  373. fExeSpcChoi(ds_rslt_spcexmplist4, e.row);
  374. }
  375. /****************************************************************************************
  376. * Components :
  377. * Components ID : grd_spclist5
  378. * Event : oncelldblclick
  379. * Argument : 01.obj : Object Event has occurred
  380. * : 02.e : Event Object
  381. * Description : 검체선택
  382. ****************************************************************************************/
  383. function grd_spclist5_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  384. {
  385. fExeSpcChoi(ds_rslt_spcexmplist5, e.row);
  386. }
  387. function grd_spclist1_onsetfocus(obj:Grid, e:SetFocusEventInfo)
  388. {
  389. fExeGridChoi(1);
  390. }
  391. function grd_spclist2_onsetfocus(obj:Grid, e:SetFocusEventInfo)
  392. {
  393. fExeGridChoi(2);
  394. }
  395. function grd_spclist3_onsetfocus(obj:Grid, e:SetFocusEventInfo)
  396. {
  397. fExeGridChoi(3);
  398. }
  399. function grd_spclist4_onsetfocus(obj:Grid, e:SetFocusEventInfo)
  400. {
  401. fExeGridChoi(4);
  402. }
  403. function grd_spclist5_onsetfocus(obj:Grid, e:SetFocusEventInfo)
  404. {
  405. fExeGridChoi(5);
  406. }
  407. ]]></Script>
  408. </Form>
  409. </FDL>