SMLMF01300_미생물검사그룹.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLMF01300" position="absolute 0 0 1202 787" titletext="New Form" oninit="SMLMF01300_oninit" onload="SMLMF01300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1127 22 1195 44" onclick="btn_reset_onclick" anchor="top right"/>
  8. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1068 22 1124 44" onclick="btn_save_onclick" anchor="top right"/>
  9. <Static id="caption6" text="미생물검사그룹관리" class="tit_1" position="absolute 0 0 144 25"/>
  10. <Static id="caption1" text="검사그룹 리스트" class="tit_2" position="absolute 1 95 118 111"/>
  11. <Div id="group1" taborder="3" position="absolute 0 50 1195 85" anchor="left top right" class="div_SA2">
  12. <Layouts>
  13. <Layout>
  14. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  15. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 270 7 276 29"/>
  16. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 15 9 105 26"/>
  17. <Static id="caption4" text="검색구분 :" class="search_name" position="absolute 737 9 827 26" anchor="top right"/>
  18. <Combo id="cmb_RefFlag" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 99 8 249 27" value="1" text="사용가능자료" index="0">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn"/>
  22. <Column id="datacolumn"/>
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">1</Col>
  27. <Col id="datacolumn">사용가능자료</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">2</Col>
  31. <Col id="datacolumn">전체자료</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Combo>
  36. <Button id="btn_Ref" taborder="2" text="조회" class="btn1" position="absolute 288 7 344 29" onclick="group1_btn_Ref_onclick"/>
  37. <Button id="btn_search" taborder="3" text="검색" class="btn1" position="absolute 1123 7 1179 29" onclick="group1_btn_search_onclick" anchor="top right"/>
  38. <Combo id="cmb_search" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 830 8 980 27" value="1" text="코드" index="0" anchor="top right">
  39. <Dataset id="innerdataset">
  40. <ColumnInfo>
  41. <Column id="codecolumn"/>
  42. <Column id="datacolumn"/>
  43. </ColumnInfo>
  44. <Rows>
  45. <Row>
  46. <Col id="codecolumn">1</Col>
  47. <Col id="datacolumn">코드</Col>
  48. </Row>
  49. <Row>
  50. <Col id="codecolumn">2</Col>
  51. <Col id="datacolumn">코드명</Col>
  52. </Row>
  53. </Rows>
  54. </Dataset>
  55. </Combo>
  56. <Edit id="ipt_searchtext" taborder="5" class="input_search" position="absolute 983 8 1093 27" anchor="top right"/>
  57. </Layout>
  58. </Layouts>
  59. </Div>
  60. <Static id="caption3" text="검사그룹에 포함할 검체설정" class="tit_2" position="absolute 581 95 773 112" anchor="top right"/>
  61. <Static id="caption5" text="검체정보" class="tit_2" position="absolute 895 95 972 112" anchor="top right"/>
  62. <Grid id="grd_spclist" taborder="4" binddataset="ds_grd_spclist" useinputpanel="false" position="absolute 891 115 1196 784" anchor="top right bottom">
  63. <Formats>
  64. <Format id="default">
  65. <Columns>
  66. <Column size="24"/>
  67. <Column size="29"/>
  68. <Column size="56"/>
  69. <Column size="195"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="24" band="head"/>
  73. <Row size="24"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell/>
  77. <Cell col="1" displaytype="normal" text="선택"/>
  78. <Cell col="2" displaytype="normal" text="코드"/>
  79. <Cell col="3" displaytype="normal" text="검체명"/>
  80. </Band>
  81. <Band id="body">
  82. <Cell text="expr:expr:currow + 1"/>
  83. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  84. <Cell col="2" displaytype="normal" style="align:left middle;" text="bind:spccd"/>
  85. <Cell col="3" displaytype="normal" style="align:left middle;" text="bind:spcscrnnm"/>
  86. </Band>
  87. </Format>
  88. </Formats>
  89. </Grid>
  90. <Grid id="grd_worktestgruplist" taborder="5" binddataset="ds_grd_worktestgruplist" useinputpanel="false" position="absolute 1 115 575 784" oncellclick="grd_worktestgruplist_oncellclick" anchor="all">
  91. <Formats>
  92. <Format id="default">
  93. <Columns>
  94. <Column size="24"/>
  95. <Column size="98"/>
  96. <Column size="98"/>
  97. <Column size="57"/>
  98. <Column size="100"/>
  99. <Column size="100"/>
  100. <Column size="100"/>
  101. <Column size="100"/>
  102. </Columns>
  103. <Rows>
  104. <Row size="24" band="head"/>
  105. <Row size="24"/>
  106. </Rows>
  107. <Band id="head">
  108. <Cell/>
  109. <Cell col="1" text="사용시작일자"/>
  110. <Cell col="2" text="사용종료일자"/>
  111. <Cell col="3" text="코드"/>
  112. <Cell col="4" text="그룹명"/>
  113. <Cell col="5" text="그룹약어명"/>
  114. <Cell col="6" text="그룹화면명"/>
  115. <Cell col="7" text="그룹출력명"/>
  116. </Band>
  117. <Band id="body">
  118. <Cell text="expr:currow + 1"/>
  119. <Cell col="1" displaytype="date" edittype="date" text="bind:worktestgrupfromdd" mask="yyyy-MM-dd" enable="true"/>
  120. <Cell col="2" displaytype="date" edittype="date" text="bind:worktestgruptodd" mask="yyyy-MM-dd" enable="true"/>
  121. <Cell col="3" displaytype="text" edittype="text" text="bind:worktestgrupcd"/>
  122. <Cell col="4" displaytype="text" edittype="text" text="bind:worktestgrupnm"/>
  123. <Cell col="5" displaytype="text" edittype="text" text="bind:worktestgrupabbrnm"/>
  124. <Cell col="6" displaytype="text" edittype="text" text="bind:worktestgrupscrnm"/>
  125. <Cell col="7" displaytype="text" edittype="text" text="bind:worktestgrupprntnm"/>
  126. </Band>
  127. </Format>
  128. </Formats>
  129. </Grid>
  130. <Grid id="grd_worktestgrupspclist" taborder="6" binddataset="ds_grd_worktestgrupspclist" useinputpanel="false" position="absolute 582 115 851 784" anchor="top right bottom" autofittype="col">
  131. <Formats>
  132. <Format id="default">
  133. <Columns>
  134. <Column size="31"/>
  135. <Column size="91"/>
  136. <Column size="146"/>
  137. </Columns>
  138. <Rows>
  139. <Row size="24" band="head"/>
  140. <Row size="24"/>
  141. </Rows>
  142. <Band id="head">
  143. <Cell/>
  144. <Cell col="1" displaytype="normal" text="코드"/>
  145. <Cell col="2" displaytype="normal" text="검체명"/>
  146. </Band>
  147. <Band id="body">
  148. <Cell text="expr:currow + 1"/>
  149. <Cell col="1" displaytype="normal" style="align:left middle;" text="bind:spccd"/>
  150. <Cell col="2" displaytype="normal" style="align:left middle;" text="bind:spcscrnnm"/>
  151. </Band>
  152. </Format>
  153. </Formats>
  154. </Grid>
  155. <Button id="btn_rowadd" taborder="7" text="행추가" class="btn2" position="absolute 519 90 572 109" onclick="btn_rowadd_onclick" anchor="top right"/>
  156. <Button id="btn_rowdel" taborder="8" text="행삭제" class="btn2" position="absolute 795 90 848 109" onclick="btn_rowdel_onclick" anchor="top right"/>
  157. <Button id="btn_spc" taborder="9" class="icon_left" position="absolute 858 410 884 429" onclick="btn_spc_onclick" anchor="top right"/>
  158. </Layout>
  159. </Layouts>
  160. <Objects>
  161. <Dataset id="ds_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="chk" type="STRING"/>
  164. <Column id="spccd" type="STRING"/>
  165. <Column id="spcscrnnm" type="STRING"/>
  166. </ColumnInfo>
  167. </Dataset>
  168. <Dataset id="ds_grd_worktestgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="worktestgrupfromdd" type="STRING"/>
  171. <Column id="worktestgruptodd" type="STRING"/>
  172. <Column id="worktestgrupcd" type="STRING"/>
  173. <Column id="worktestgrupnm" type="STRING"/>
  174. <Column id="worktestgrupabbrnm" type="STRING"/>
  175. <Column id="worktestgrupscrnm" type="STRING"/>
  176. <Column id="worktestgrupprntnm" type="STRING"/>
  177. </ColumnInfo>
  178. </Dataset>
  179. <Dataset id="ds_grd_worktestgrupspclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  180. <ColumnInfo>
  181. <Column id="spccd" type="STRING"/>
  182. <Column id="spcscrnnm" type="STRING"/>
  183. </ColumnInfo>
  184. </Dataset>
  185. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  186. <ColumnInfo>
  187. <Column id="refgbn" type="STRING" size="256"/>
  188. <Column id="searchgbn" type="STRING" size="256"/>
  189. <Column id="searchnm" type="STRING" size="256"/>
  190. <Column id="btnflag" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row>
  194. <Col id="refgbn">1</Col>
  195. <Col id="searchgbn">1</Col>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="data1" type="STRING" size="256"/>
  202. <Column id="data2" type="STRING" size="256"/>
  203. <Column id="worktestgrupcd" type="STRING" size="256"/>
  204. <Column id="spccd" type="STRING" size="256"/>
  205. </ColumnInfo>
  206. <Rows>
  207. <Row/>
  208. </Rows>
  209. </Dataset>
  210. <Dataset id="ds_listinfo_worktestgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  211. <ColumnInfo>
  212. <Column id="worktestgrupfromdd" type="STRING" size="256"/>
  213. <Column id="worktestgruptodd" type="STRING" size="256"/>
  214. <Column id="worktestgrupcd" type="STRING" size="256"/>
  215. <Column id="worktestgrupnm" type="STRING" size="256"/>
  216. <Column id="worktestgrupabbrnm" type="STRING" size="256"/>
  217. <Column id="worktestgrupscrnm" type="STRING" size="256"/>
  218. <Column id="worktestgrupprntnm" type="STRING" size="256"/>
  219. </ColumnInfo>
  220. <Rows>
  221. <Row/>
  222. </Rows>
  223. </Dataset>
  224. <Dataset id="ds_listinfo_spclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="chk" type="STRING" size="256"/>
  227. <Column id="spccd" type="STRING" size="256"/>
  228. <Column id="spcscrnnm" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row/>
  232. </Rows>
  233. </Dataset>
  234. <Dataset id="ds_spcinfo_spclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="spccd" type="STRING" size="256"/>
  237. <Column id="spcscrnnm" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. <Rows>
  240. <Row/>
  241. </Rows>
  242. </Dataset>
  243. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="worktestgrupfromdd" type="STRING"/>
  246. <Column id="worktestgruptodd" type="STRING"/>
  247. <Column id="worktestgrupcd" type="STRING"/>
  248. <Column id="worktestgrupnm" type="STRING"/>
  249. <Column id="worktestgrupabbrnm" type="STRING"/>
  250. <Column id="worktestgrupscrnm" type="STRING"/>
  251. <Column id="worktestgrupprntnm" type="STRING"/>
  252. </ColumnInfo>
  253. <Rows>
  254. <Row/>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_send_spccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  258. </Objects>
  259. <Bind/>
  260. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  261. * System Name :
  262. * Job Name :
  263. * Creator :
  264. * Make Date : 2015-11-09
  265. * Description :
  266. *---------------------------------------------------------------------------------------
  267. * Modify Date Modifier Modify Description
  268. *---------------------------------------------------------------------------------------
  269. * 2015-11-09 Live Converter TF->XP
  270. *
  271. *---------------------------------------------------------------------------------------
  272. ****************************************************************************************/
  273. include "com_commonxp::comm_main.xjs";
  274. include "lis_commonxp::LLZ001.xjs";
  275. function SMLMF01300_oninit(obj:Form, e:InitEventInfo)
  276. {
  277. //폼 초기화 함수
  278. frmf_initForm(obj);
  279. }
  280. function SMLMF01300_onload(obj:Form, e:LoadEventInfo)
  281. {
  282. grdf_initGrid(grd_worktestgruplist);
  283. grdf_initGrid(grd_worktestgrupspclist);
  284. grdf_initGrid(grd_spclist);
  285. }
  286. //조회
  287. function fGetSpcGrup(gbn)
  288. {
  289. ds_hidden_ref.setColumn(0, "btnflag", gbn);
  290. var oParam = {};
  291. oParam.id = "TRLMF01301";
  292. oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
  293. oParam.method = "reqGetWorkTestGrupList";
  294. oParam.inds = "cond=ds_hidden_ref";
  295. oParam.outds = "ds_grd_worktestgruplist=worktestgruplist ds_grd_spclist=spclist";
  296. oParam.async = false;
  297. //oParam.callback = "cf_TRLMF01301";
  298. tranf_submit(oParam);
  299. }
  300. //상세조회
  301. function fOnclick_grd_worktestgruplist()
  302. {
  303. var row = ds_grd_worktestgruplist.rowposition;
  304. if(row >= 0)
  305. {
  306. ds_send.setColumn(0, "worktestgrupcd", ds_grd_worktestgruplist.getColumn(row, "worktestgrupcd"));
  307. var oParam = {};
  308. oParam.id = "TRLMF01302";
  309. oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
  310. oParam.method = "reqGetWorkTestGrupKindSpcList";
  311. oParam.inds = "cond=ds_send";
  312. oParam.outds = "ds_grd_worktestgrupspclist=spclist";
  313. oParam.async = false;
  314. tranf_submit(oParam);
  315. }
  316. }
  317. //저장
  318. function fExeSave()
  319. {
  320. var arrPostion = new Array();
  321. for(i = 0; i < ds_grd_worktestgrupspclist.rowcount; i++)
  322. {
  323. arrPostion[0] = i;
  324. grdf_setStatus(grd_worktestgrupspclist, "I", arrPostion);
  325. }
  326. grdf_setStatusColumn(ds_grd_worktestgrupspclist, "status");
  327. var row = ds_grd_worktestgruplist.rowposition;
  328. ds_send_spccd.copyData(grdf_getGridUpdateData(grd_worktestgrupspclist));
  329. ds_send_data2.copyRow(0, ds_grd_worktestgruplist, ds_grd_worktestgruplist.rowposition);
  330. var oParam = {};
  331. oParam.id = "TXLMF01301";
  332. oParam.service = "diagtestbaseinfomngtapp.MicroTestBaseInfoMngt";
  333. oParam.method = "reqExeWorkTestGrupKindSpcList";
  334. oParam.inds = "cond1=ds_send_spccd cond2=ds_send_data2";
  335. oParam.async = false;
  336. tranf_submit(oParam);
  337. }
  338. //목록추가
  339. function fOnclick_btn()
  340. {
  341. var row = ds_grd_worktestgruplist.rowposition;
  342. var worktestgrupcd = ds_listinfo_worktestgruplist.getColumn(row, "worktestgrupcd");
  343. var equaldata = true;
  344. for(i = 0; i < ds_grd_spclist.rowcount; i++)
  345. {
  346. var equaldata = true;
  347. if(ds_grd_spclist.getColumn(i, "chk") == 1)
  348. {
  349. var spccd = ds_grd_spclist.getColumn(i, "spccd");
  350. var spcscrnnm = ds_grd_spclist.getColumn(i, "spcscrnnm");
  351. var str = spccd + spcscrnnm ;
  352. for(j = 0; j < ds_grd_worktestgrupspclist.rowcount; j++)
  353. {
  354. var spccd2 = ds_grd_worktestgrupspclist.getColumn(j, "spccd");
  355. var spcscrnnm2 = ds_grd_worktestgrupspclist.getColumn(j, "spcscrnnm");
  356. var str2 = spccd2 + spcscrnnm
  357. if(str == str2)
  358. {
  359. equaldata = false;
  360. }
  361. }
  362. if(equaldata)
  363. {
  364. var a = ds_grd_worktestgrupspclist.addRow();
  365. ds_grd_worktestgrupspclist.copyRow(a, ds_grd_spclist, i);
  366. equaldata = true;
  367. }
  368. else
  369. {
  370. var spcscrnnm = ds_grd_spclist.getColumn(i, "spcscrnnm");
  371. alert(spcscrnnm + "은 이미 가지고 있습니다.");
  372. }
  373. }
  374. }
  375. }
  376. //행추가
  377. function finsRowAdd()
  378. {
  379. var addRw = ds_grd_worktestgruplist.addRow();
  380. var arrPostion = new Array();
  381. arrPostion[0] = addRw;
  382. grdf_setStatus(grd_worktestgruplist, "I", arrPostion);
  383. }
  384. //행삭제
  385. function fInsRowdel()
  386. {
  387. ds_grd_worktestgrupspclist.deleteRow(ds_grd_worktestgrupspclist.rowposition);
  388. }
  389. //조회
  390. function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  391. {
  392. fGetSpcGrup(1);
  393. }
  394. //검색
  395. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  396. {
  397. fGetSpcGrup(2);
  398. }
  399. //행추가
  400. function btn_rowadd_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. finsRowAdd();
  403. }
  404. //목록추가
  405. function btn_spc_onclick(obj:Button, e:ClickEventInfo)
  406. {
  407. fOnclick_btn();
  408. }
  409. //초기화
  410. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  411. {
  412. this.reload();
  413. }
  414. //상세조회
  415. function grd_worktestgruplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  416. {
  417. fOnclick_grd_worktestgruplist();
  418. }
  419. //저장
  420. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  421. {
  422. fExeSave();
  423. }
  424. //행삭제
  425. function btn_rowdel_onclick(obj:Button, e:ClickEventInfo)
  426. {
  427. fInsRowdel();
  428. }
  429. ]]></Script>
  430. </Form>
  431. </FDL>