SMLQF00700_QC물질별검사관리.xfdl 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLQF00700" position="absolute 0 0 1197 772" titletext="QC물질별검사관리" oninit="SMLQF00700_oninit" onload="SMLQF00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="QC물질별검사관리" class="tit_1" position="absolute 0 0 150 25"/>
  8. <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1122 23 1190 45" onclick="btn_init_onclick"/>
  9. <Button id="btn_exec" taborder="2" text="저장" class="btn4" position="absolute 1063 23 1119 45" onclick="btn_exec_onclick"/>
  10. <Shape id="line3" linetype="horizontal" class="line_6" position="absolute 0 45 1190 51" style="strokepen:3 solid #9ebed4ff;"/>
  11. <Shape id="line7" class="line_1" position="absolute 0 417 1194 423"/>
  12. <Static id="cap_regno" text="사용시작일자" class="cell_1" position="absolute 0 420 190 443"/>
  13. <Div id="group4" taborder="3" class="div_SA2" position="absolute 0 49 550 84">
  14. <Layouts>
  15. <Layout>
  16. <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 473 7 529 29" onclick="group4_btn_sea_onclick"/>
  17. <Static id="caption15" text="조회구분 :" class="search_name" position="absolute 15 9 101 27"/>
  18. <Edit id="ipt_search" taborder="2" class="input_s_button" position="absolute 313 8 413 27" onkeyup="group4_ipt_search_onkeyup"/>
  19. <Combo id="cbo_searchFlag" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 103 8 203 27" onitemchanged="group4_cbo_searchFlag_onitemchanged">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn">1</Col>
  28. <Col id="datacolumn">사용가능자료</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">2</Col>
  32. <Col id="datacolumn">전체자료</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Combo>
  37. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 455 6 461 28"/>
  38. <Combo id="combo1" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 208 8 308 27">
  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. </Layout>
  57. </Layouts>
  58. </Div>
  59. <Grid id="grd_matrList" taborder="4" binddataset="ds_grd_matrList" useinputpanel="false" position="absolute 0 114 890 390" autofittype="none" oncelldblclick="grd_matrList_oncelldblclick" cellsizingtype="col">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="30"/>
  64. <Column size="100"/>
  65. <Column size="150"/>
  66. <Column size="0"/>
  67. <Column size="80"/>
  68. <Column size="80"/>
  69. <Column size="90"/>
  70. <Column size="0"/>
  71. <Column size="107"/>
  72. <Column size="70"/>
  73. <Column size="0"/>
  74. <Column size="95"/>
  75. <Column size="88"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. </Columns>
  79. <Rows>
  80. <Row size="24" band="head"/>
  81. <Row size="24"/>
  82. </Rows>
  83. <Band id="head">
  84. <Cell/>
  85. <Cell col="1" text="QC물질코드"/>
  86. <Cell col="2" text="QC물질명"/>
  87. <Cell col="3" text="levlcd"/>
  88. <Cell col="4" text="레벨명"/>
  89. <Cell col="5" text="LOT번호"/>
  90. <Cell col="6" text="사용시작일시"/>
  91. <Cell col="7" text="사용종료일시"/>
  92. <Cell col="8" text="Expire Date"/>
  93. <Cell col="9" text="제조회사"/>
  94. <Cell col="10" text="제조일시"/>
  95. <Cell col="11" text="입고일시"/>
  96. <Cell col="12" text="IF코드"/>
  97. <Cell col="13" text="등록자"/>
  98. <Cell col="14" text="등록일시"/>
  99. </Band>
  100. <Band id="body">
  101. <Cell celltype="head" text="expr:currow + 1"/>
  102. <Cell col="1" style="align:left middle;" text="bind:matrcd"/>
  103. <Cell col="2" style="align:left middle;" text="bind:matrnm"/>
  104. <Cell col="3" text="bind:levlcd"/>
  105. <Cell col="4" style="align:left middle;" text="bind:levlnm"/>
  106. <Cell col="5" style="align:left middle;" text="bind:lotno"/>
  107. <Cell col="6" displaytype="date" edittype="date" style="align:left middle;" text="bind:matrfromdd" calendardisplaynulltype="nulltext"/>
  108. <Cell col="7" text="bind:matrtodd" mask="yyyy-mm-dd"/>
  109. <Cell col="8" displaytype="date" edittype="date" style="align:left middle;" text="bind:validd" calendardisplaynulltype="nulltext"/>
  110. <Cell col="9" style="align:left middle;" text="bind:prodcmpy"/>
  111. <Cell col="10" text="bind:proddt" mask="yyyy-mm-dd"/>
  112. <Cell col="11" displaytype="date" edittype="date" style="align:left middle;" text="bind:windt" calendardisplaynulltype="nulltext"/>
  113. <Cell col="12" style="align:left middle;" text="bind:matrifcd"/>
  114. <Cell col="13" text="bind:fstrgstrid"/>
  115. <Cell col="14" text="bind:fstrgstdt" mask="yyyy-mm-dd"/>
  116. </Band>
  117. </Format>
  118. </Formats>
  119. </Grid>
  120. <Shape id="line1" class="line_1" position="absolute 0 110 890 116" style="strokepen:3 solid #33bbbbff;"/>
  121. <Static id="caption1" text="QC 물질 정보" class="tit_2" position="absolute 0 399 106 415"/>
  122. <Static id="cap_sexage" text="QC물질코드" class="cell_1" position="absolute 396 420 586 443"/>
  123. <Static id="cap_psnno" text="레벨코드" class="cell_1" position="absolute 792 420 982 443"/>
  124. <MaskEdit id="opt_matrfromdd" taborder="5" readonly="true" mask="####-##-##" position="absolute 193 421 393 440" type="string" maskchar=" " trimtype="both"/>
  125. <Edit id="out_matrcd" taborder="6" readonly="true" position="absolute 589 421 789 440"/>
  126. <Edit id="out_levlcd" taborder="7" readonly="true" position="absolute 985 421 1194 440"/>
  127. <Shape id="line9" class="line_3" position="absolute 0 440 1194 446"/>
  128. <Static id="caption7" text="QC 물질 리스트" class="tit_2" position="absolute 0 94 115 110"/>
  129. <Div id="group3" taborder="8" class="div_SA2" position="absolute 555 49 1190 84">
  130. <Layouts>
  131. <Layout>
  132. <Static id="caption4" text="검사코드 :" class="search_name" position="absolute 35 9 115 26"/>
  133. <Edit id="ipt_searchTestCd" taborder="1" class="input_s_button" position="absolute 118 8 218 27" onkeyup="group3_ipt_searchTestCd_onkeyup"/>
  134. <Combo id="cmb_testLrgCd" taborder="2" innerdataset="ds_init_cmb_testLrgCd" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 389 8 499 27" onitemchanged="group3_cmb_testLrgCd_onitemchanged"/>
  135. <Combo id="cmb_testMdlCd" taborder="3" innerdataset="ds_init_cmb_testMdlCd" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 510 8 625 27" onitemchanged="group3_cmb_testMdlCd_onitemchanged"/>
  136. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 246 6 252 28"/>
  137. <Combo id="cmb_selectgbn" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 285 8 375 27" onitemchanged="group3_cmb_selectgbn_onitemchanged">
  138. <Dataset id="innerdataset">
  139. <ColumnInfo>
  140. <Column id="codecolumn"/>
  141. <Column id="datacolumn"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="codecolumn">1</Col>
  146. <Col id="datacolumn">검사분류</Col>
  147. </Row>
  148. <Row>
  149. <Col id="codecolumn">2</Col>
  150. <Col id="datacolumn">시행부서</Col>
  151. </Row>
  152. </Rows>
  153. </Dataset>
  154. </Combo>
  155. </Layout>
  156. </Layouts>
  157. </Div>
  158. <Grid id="grd_testList" taborder="9" binddataset="ds_grd_testList" useinputpanel="false" position="absolute 895 114 1194 390" autofittype="none" cellsizingtype="col">
  159. <Formats>
  160. <Format id="default">
  161. <Columns>
  162. <Column size="30"/>
  163. <Column size="30"/>
  164. <Column size="100"/>
  165. <Column size="139"/>
  166. </Columns>
  167. <Rows>
  168. <Row size="24" band="head"/>
  169. <Row size="24"/>
  170. </Rows>
  171. <Band id="head">
  172. <Cell/>
  173. <Cell col="1"/>
  174. <Cell col="2" text="검사코드"/>
  175. <Cell col="3" text="검사명"/>
  176. </Band>
  177. <Band id="body">
  178. <Cell celltype="head" text="expr:currow + 1"/>
  179. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  180. <Cell col="2" style="align:left middle;" text="bind:testcd"/>
  181. <Cell col="3" style="align:left middle;" text="bind:testnm"/>
  182. </Band>
  183. </Format>
  184. </Formats>
  185. </Grid>
  186. <Shape id="line14" class="line_1" position="absolute 895 110 1194 116" style="strokepen:3 solid #33bbbbff;"/>
  187. <Static id="caption3" text="검사항목 리스트" class="tit_2" position="absolute 896 94 1013 110"/>
  188. <Grid id="grd_matrTclsList" taborder="10" binddataset="ds_grd_matrTclsList" useinputpanel="false" position="absolute 0 472 1194 771" selecttype="multirow" cellsizingtype="col">
  189. <Formats>
  190. <Format id="default">
  191. <Columns>
  192. <Column size="23"/>
  193. <Column size="80"/>
  194. <Column size="120"/>
  195. <Column size="85"/>
  196. <Column size="85"/>
  197. <Column size="80"/>
  198. <Column size="80"/>
  199. <Column size="80"/>
  200. <Column size="80"/>
  201. <Column size="50"/>
  202. <Column size="50"/>
  203. <Column size="80"/>
  204. <Column size="80"/>
  205. <Column size="60"/>
  206. <Column size="50"/>
  207. <Column size="50"/>
  208. <Column size="60"/>
  209. <Column size="80"/>
  210. <Column size="80"/>
  211. <Column size="80"/>
  212. <Column size="39"/>
  213. <Column size="80"/>
  214. <Column size="135"/>
  215. </Columns>
  216. <Rows>
  217. <Row size="24" band="head"/>
  218. <Row size="24"/>
  219. </Rows>
  220. <Band id="head">
  221. <Cell/>
  222. <Cell col="1" text="검사코드"/>
  223. <Cell col="2" text="검사명"/>
  224. <Cell col="3" text="시작일자"/>
  225. <Cell col="4" text="종료일자"/>
  226. <Cell col="5" text="결과유형"/>
  227. <Cell col="6" text="참고치유형"/>
  228. <Cell col="7" text="참고치구분"/>
  229. <Cell col="8" text="참고치하한"/>
  230. <Cell col="9" text="하한"/>
  231. <Cell col="10" text="상한"/>
  232. <Cell col="11" text="참고치상한"/>
  233. <Cell col="12" text="참고치문자"/>
  234. <Cell col="13" text="소수길이"/>
  235. <Cell col="14" text="단위"/>
  236. <Cell col="15" text="평균"/>
  237. <Cell col="16" text="표준편차"/>
  238. <Cell col="17" text="WGMR범위"/>
  239. <Cell col="18" text="판정유형"/>
  240. <Cell col="19" text="반올림옵션"/>
  241. <Cell col="20" text="그래프"/>
  242. <Cell col="21" text="등록자"/>
  243. <Cell col="22" text="등록일시"/>
  244. </Band>
  245. <Band id="body">
  246. <Cell celltype="head"/>
  247. <Cell col="1" text="bind:testcd"/>
  248. <Cell col="2" text="bind:testnm"/>
  249. <Cell col="3" displaytype="date" edittype="date" text="bind:testfromdd" mask="yyyy-MM-dd"/>
  250. <Cell col="4" displaytype="date" edittype="date" text="bind:testtodd" mask="yyyy-MM-dd"/>
  251. <Cell col="5" displaytype="combo" edittype="combo" text="bind:rsltkind" combodataset="ds_rsltkind" combocodecol="value" combodatacol="label"/>
  252. <Cell col="6" displaytype="combo" edittype="combo" text="bind:refkind" combodataset="ds_refkind" combocodecol="value" combodatacol="label"/>
  253. <Cell col="7" displaytype="combo" edittype="combo" text="bind:refflag" combodataset="ds_refflag" combocodecol="value" combodatacol="label"/>
  254. <Cell col="8" displaytype="text" edittype="text" text="bind:refl"/>
  255. <Cell col="9" displaytype="combo" edittype="combo" text="bind:refls" combodataset="ds_refls" combocodecol="value" combodatacol="label"/>
  256. <Cell col="10" displaytype="combo" edittype="combo" text="bind:refhs" combodataset="ds_refhs" combocodecol="value" combodatacol="label"/>
  257. <Cell col="11" displaytype="text" edittype="text" text="bind:refh"/>
  258. <Cell col="12" displaytype="text" edittype="text" text="bind:refcval"/>
  259. <Cell col="13" displaytype="combo" edittype="combo" text="bind:intrsltfrmt" combodataset="ds_intrsltfrmt" combocodecol="value" combodatacol="label"/>
  260. <Cell col="14" displaytype="text" edittype="text" text="bind:rsltunit"/>
  261. <Cell col="15" displaytype="text" edittype="text" text="bind:avg"/>
  262. <Cell col="16" displaytype="text" edittype="text" text="bind:sdval"/>
  263. <Cell col="17" displaytype="text" edittype="text" text="bind:wgmrscop"/>
  264. <Cell col="18" displaytype="combo" edittype="combo" text="bind:judgkind" combodataset="ds_judgkind" combocodecol="value" combodatacol="value"/>
  265. <Cell col="19" displaytype="combo" edittype="combo" text="bind:rundkind" combodataset="ds_rundkind" combocodecol="value" combodatacol="label"/>
  266. <Cell col="20" displaytype="checkbox" edittype="checkbox" text="bind:graphdispyn" expr="graphdispyn == 'N' ? '0' : (graphdispyn == 'Y' ? '1' : (graphdispyn == '0' ? '0' : '1'))"/>
  267. <Cell col="21" text="bind:fstrgstrid"/>
  268. <Cell col="22" displaytype="date" edittype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss"/>
  269. </Band>
  270. </Format>
  271. </Formats>
  272. </Grid>
  273. <Button id="button52" taborder="11" text="행추가" class="btn2" enable="false" position="absolute 1085 446 1138 465" onclick="button52_onclick"/>
  274. <Button id="button53" taborder="12" text="행삭제" class="btn2" position="absolute 1141 446 1194 465" onclick="button53_onclick"/>
  275. <Button id="btn_up" taborder="13" class="icon_bottom" position="absolute 1035 393 1061 412" onclick="btn_up_onclick"/>
  276. <Static id="caption2" text="QC 물질별 검사항목 설정" class="tit_2" position="absolute 0 451 178 467"/>
  277. <Shape id="line4" class="line_1" position="absolute 0 468 1194 474" linetype="horizontal" style="strokepen:3 solid #33bbbbff;"/>
  278. <Button id="button1" taborder="14" text="복사" class="btn2" position="absolute 180 447 233 466" onclick="button1_onclick"/>
  279. <Button id="button2" taborder="15" text="붙이기" class="btn2" position="absolute 235 447 288 466" onclick="button2_onclick"/>
  280. <Button id="button4" taborder="16" text="삭제" class="btn2" position="absolute 290 447 343 466" onclick="button4_onclick"/>
  281. </Layout>
  282. </Layouts>
  283. <Objects>
  284. <Dataset id="ds_grd_matrList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  285. <ColumnInfo>
  286. <Column id="matrcd" type="STRING"/>
  287. <Column id="matrnm" type="STRING"/>
  288. <Column id="levlcd" type="STRING"/>
  289. <Column id="levlnm" type="STRING"/>
  290. <Column id="lotno" type="STRING"/>
  291. <Column id="matrfromdd" type="STRING"/>
  292. <Column id="matrtodd" type="STRING"/>
  293. <Column id="validd" type="STRING"/>
  294. <Column id="prodcmpy" type="STRING"/>
  295. <Column id="proddt" type="STRING"/>
  296. <Column id="windt" type="STRING"/>
  297. <Column id="matrifcd" type="STRING"/>
  298. <Column id="fstrgstrid" type="STRING"/>
  299. <Column id="fstrgstdt" type="STRING"/>
  300. </ColumnInfo>
  301. </Dataset>
  302. <Dataset id="ds_init_cmb_testLrgCd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  303. <ColumnInfo>
  304. <Column id="nm" type="STRING"/>
  305. <Column id="cd" type="STRING"/>
  306. </ColumnInfo>
  307. </Dataset>
  308. <Dataset id="ds_init_cmb_testMdlCd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="nm" type="STRING"/>
  311. <Column id="cd" type="STRING"/>
  312. </ColumnInfo>
  313. </Dataset>
  314. <Dataset id="ds_grd_testList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  315. <ColumnInfo>
  316. <Column id="chk" type="STRING"/>
  317. <Column id="testcd" type="STRING"/>
  318. <Column id="testnm" type="STRING"/>
  319. </ColumnInfo>
  320. </Dataset>
  321. <Dataset id="ds_grd_matrTclsList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  322. <ColumnInfo>
  323. <Column id="testcd" type="STRING"/>
  324. <Column id="testnm" type="STRING"/>
  325. <Column id="testfromdd" type="STRING"/>
  326. <Column id="testtodd" type="STRING"/>
  327. <Column id="rsltkind" type="STRING"/>
  328. <Column id="refkind" type="STRING"/>
  329. <Column id="refflag" type="STRING"/>
  330. <Column id="refl" type="STRING"/>
  331. <Column id="refls" type="STRING"/>
  332. <Column id="refhs" type="STRING"/>
  333. <Column id="refh" type="STRING"/>
  334. <Column id="refcval" type="STRING"/>
  335. <Column id="intrsltfrmt" type="STRING"/>
  336. <Column id="rsltunit" type="STRING"/>
  337. <Column id="avg" type="STRING"/>
  338. <Column id="sdval" type="STRING"/>
  339. <Column id="wgmrscop" type="STRING"/>
  340. <Column id="judgkind" type="STRING"/>
  341. <Column id="rundkind" type="STRING"/>
  342. <Column id="graphdispyn" type="STRING"/>
  343. <Column id="fstrgstrid" type="STRING"/>
  344. <Column id="fstrgstdt" type="STRING"/>
  345. </ColumnInfo>
  346. </Dataset>
  347. <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  348. <ColumnInfo>
  349. <Column id="cd" type="STRING" size="256"/>
  350. <Column id="nm" type="STRING" size="256"/>
  351. </ColumnInfo>
  352. </Dataset>
  353. <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  354. <ColumnInfo>
  355. <Column id="cd" type="STRING" size="256"/>
  356. <Column id="nm" type="STRING" size="256"/>
  357. </ColumnInfo>
  358. </Dataset>
  359. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  360. <ColumnInfo>
  361. <Column id="cd" type="STRING" size="256"/>
  362. <Column id="nm" type="STRING" size="256"/>
  363. </ColumnInfo>
  364. </Dataset>
  365. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  366. <ColumnInfo>
  367. <Column id="cd" type="STRING" size="256"/>
  368. <Column id="nm" type="STRING" size="256"/>
  369. </ColumnInfo>
  370. </Dataset>
  371. <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  372. <ColumnInfo>
  373. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  374. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  375. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  376. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  377. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  378. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  379. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  380. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  381. </ColumnInfo>
  382. </Dataset>
  383. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  384. <ColumnInfo>
  385. <Column id="refgbn" type="STRING" size="256"/>
  386. <Column id="refcont" type="STRING" size="256"/>
  387. <Column id="searchflag" type="STRING" size="256"/>
  388. <Column id="searchtestcd" type="STRING" size="256"/>
  389. <Column id="testlrg" type="STRING" size="256"/>
  390. <Column id="selectgbn" type="STRING" size="256"/>
  391. </ColumnInfo>
  392. <Rows>
  393. <Row>
  394. <Col id="refgbn">1</Col>
  395. <Col id="searchflag">1</Col>
  396. <Col id="testlrg">00</Col>
  397. </Row>
  398. </Rows>
  399. </Dataset>
  400. <Dataset id="ds_hidden_testmdl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  401. <ColumnInfo>
  402. <Column id="cd" type="STRING" size="256"/>
  403. </ColumnInfo>
  404. <Rows>
  405. <Row>
  406. <Col id="cd">00</Col>
  407. </Row>
  408. </Rows>
  409. </Dataset>
  410. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  411. <ColumnInfo>
  412. <Column id="codeflag" type="STRING" size="256"/>
  413. <Column id="refcont" type="STRING" size="256"/>
  414. <Column id="refgbn" type="STRING" size="256"/>
  415. <Column id="deptflag" type="STRING" size="256"/>
  416. <Column id="searchflag" type="STRING" size="256"/>
  417. <Column id="matrtclslist" type="STRING" size="256"/>
  418. <Column id="matrfromdd" type="STRING" size="256"/>
  419. <Column id="matrcd" type="STRING" size="256"/>
  420. <Column id="levlcd" type="STRING" size="256"/>
  421. <Column id="matrinfo" type="STRING" size="256"/>
  422. <Column id="testlrgcd" type="STRING" size="256"/>
  423. <Column id="testmdlcd" type="STRING" size="256"/>
  424. <Column id="sectcd" type="STRING" size="256"/>
  425. <Column id="tsectcd" type="STRING" size="256"/>
  426. <Column id="selectgbn" type="STRING" size="256"/>
  427. </ColumnInfo>
  428. <Rows>
  429. <Row>
  430. <Col id="codeflag"/>
  431. <Col id="refcont"/>
  432. <Col id="refgbn"/>
  433. <Col id="deptflag"/>
  434. <Col id="searchflag"/>
  435. <Col id="matrtclslist"/>
  436. <Col id="matrfromdd"/>
  437. <Col id="matrcd"/>
  438. <Col id="levlcd"/>
  439. <Col id="matrinfo"/>
  440. <Col id="testlrgcd"/>
  441. <Col id="testmdlcd"/>
  442. <Col id="sectcd"/>
  443. <Col id="tsectcd"/>
  444. </Row>
  445. </Rows>
  446. </Dataset>
  447. <Dataset id="ds_matrtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  448. <ColumnInfo>
  449. <Column id="matrfromdd" type="STRING" size="256" sumtext="사용시작일자"/>
  450. <Column id="matrcd" type="STRING" size="256" sumtext=""/>
  451. <Column id="levlcd" type="STRING" size="256" sumtext="레벨코드"/>
  452. </ColumnInfo>
  453. <Rows>
  454. <Row/>
  455. </Rows>
  456. </Dataset>
  457. <Dataset id="ds_rsltkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  458. <ColumnInfo>
  459. <Column id="label" type="STRING" size="256"/>
  460. <Column id="value" type="STRING" size="256"/>
  461. </ColumnInfo>
  462. <Rows>
  463. <Row>
  464. <Col id="label">문자+숫자</Col>
  465. <Col id="value">0</Col>
  466. </Row>
  467. <Row>
  468. <Col id="label">숫자</Col>
  469. <Col id="value">1</Col>
  470. </Row>
  471. </Rows>
  472. </Dataset>
  473. <Dataset id="ds_refkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  474. <ColumnInfo>
  475. <Column id="label" type="STRING" size="256"/>
  476. <Column id="value" type="STRING" size="256"/>
  477. </ColumnInfo>
  478. <Rows>
  479. <Row>
  480. <Col id="label">없음</Col>
  481. <Col id="value">0</Col>
  482. </Row>
  483. <Row>
  484. <Col id="label">문자</Col>
  485. <Col id="value">1</Col>
  486. </Row>
  487. <Row>
  488. <Col id="label">숫자</Col>
  489. <Col id="value">2</Col>
  490. </Row>
  491. </Rows>
  492. </Dataset>
  493. <Dataset id="ds_refflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  494. <ColumnInfo>
  495. <Column id="label" type="STRING" size="256"/>
  496. <Column id="value" type="STRING" size="256"/>
  497. </ColumnInfo>
  498. <Rows>
  499. <Row>
  500. <Col id="label">사용안함</Col>
  501. <Col id="value">0</Col>
  502. </Row>
  503. <Row>
  504. <Col id="label">하한만사용</Col>
  505. <Col id="value">1</Col>
  506. </Row>
  507. <Row>
  508. <Col id="label">상한만사용</Col>
  509. <Col id="value">2</Col>
  510. </Row>
  511. <Row>
  512. <Col id="label">모두사용</Col>
  513. <Col id="value">3</Col>
  514. </Row>
  515. </Rows>
  516. </Dataset>
  517. <Dataset id="ds_refls" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  518. <ColumnInfo>
  519. <Column id="label" type="STRING" size="256"/>
  520. <Column id="value" type="STRING" size="256"/>
  521. </ColumnInfo>
  522. <Rows>
  523. <Row>
  524. <Col id="label">&lt;</Col>
  525. <Col id="value">0</Col>
  526. </Row>
  527. <Row>
  528. <Col id="label">&lt;=</Col>
  529. <Col id="value">1</Col>
  530. </Row>
  531. </Rows>
  532. </Dataset>
  533. <Dataset id="ds_refhs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  534. <ColumnInfo>
  535. <Column id="label" type="STRING" size="256"/>
  536. <Column id="value" type="STRING" size="256"/>
  537. </ColumnInfo>
  538. <Rows>
  539. <Row>
  540. <Col id="label">&lt;</Col>
  541. <Col id="value">0</Col>
  542. </Row>
  543. <Row>
  544. <Col id="label">&lt;=</Col>
  545. <Col id="value">1</Col>
  546. </Row>
  547. </Rows>
  548. </Dataset>
  549. <Dataset id="ds_intrsltfrmt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  550. <ColumnInfo>
  551. <Column id="label" type="STRING" size="256"/>
  552. <Column id="value" type="STRING" size="256"/>
  553. </ColumnInfo>
  554. <Rows>
  555. <Row>
  556. <Col id="label">-</Col>
  557. <Col id="value">-</Col>
  558. </Row>
  559. <Row>
  560. <Col id="label">0</Col>
  561. <Col id="value">0</Col>
  562. </Row>
  563. <Row>
  564. <Col id="label">1</Col>
  565. <Col id="value">1</Col>
  566. </Row>
  567. <Row>
  568. <Col id="label">2</Col>
  569. <Col id="value">2</Col>
  570. </Row>
  571. <Row>
  572. <Col id="label">3</Col>
  573. <Col id="value">3</Col>
  574. </Row>
  575. <Row>
  576. <Col id="label">4</Col>
  577. <Col id="value">4</Col>
  578. </Row>
  579. <Row>
  580. <Col id="label">5</Col>
  581. <Col id="value">5</Col>
  582. </Row>
  583. <Row>
  584. <Col id="label">6</Col>
  585. <Col id="value">6</Col>
  586. </Row>
  587. <Row>
  588. <Col id="label">7</Col>
  589. <Col id="value">7</Col>
  590. </Row>
  591. <Row>
  592. <Col id="label">8</Col>
  593. <Col id="value">8</Col>
  594. </Row>
  595. <Row>
  596. <Col id="label">9</Col>
  597. <Col id="value">9</Col>
  598. </Row>
  599. <Row>
  600. <Col id="label">10</Col>
  601. <Col id="value">10</Col>
  602. </Row>
  603. </Rows>
  604. </Dataset>
  605. <Dataset id="ds_judgkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  606. <choices>
  607. <item>
  608. <label>미사용</label>
  609. <value>0</value>
  610. </item>
  611. <item>
  612. <label><![CDATA[L/H]]></label>
  613. <value>1</value>
  614. </item>
  615. </choices>
  616. <ColumnInfo>
  617. <Column id="label" type="STRING" size="256"/>
  618. <Column id="value" type="STRING" size="256"/>
  619. </ColumnInfo>
  620. <Rows>
  621. <Row>
  622. <Col id="label">미사용</Col>
  623. <Col id="value">0</Col>
  624. </Row>
  625. <Row>
  626. <Col id="label">L/H</Col>
  627. <Col id="value">1</Col>
  628. </Row>
  629. </Rows>
  630. </Dataset>
  631. <Dataset id="ds_rundkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  632. <ColumnInfo>
  633. <Column id="label" type="STRING" size="256"/>
  634. <Column id="value" type="STRING" size="256"/>
  635. </ColumnInfo>
  636. <Rows>
  637. <Row>
  638. <Col id="label">사용안함</Col>
  639. <Col id="value">0</Col>
  640. </Row>
  641. <Row>
  642. <Col id="label">반올림</Col>
  643. <Col id="value">1</Col>
  644. </Row>
  645. <Row>
  646. <Col id="label">올림</Col>
  647. <Col id="value">2</Col>
  648. </Row>
  649. <Row>
  650. <Col id="label">내림</Col>
  651. <Col id="value">3</Col>
  652. </Row>
  653. </Rows>
  654. </Dataset>
  655. <Dataset id="ds_grid_copy_matrTclsList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  656. <ColumnInfo>
  657. <Column id="testcd" type="STRING"/>
  658. <Column id="testnm" type="STRING"/>
  659. <Column id="testfromdd" type="STRING"/>
  660. <Column id="testtodd" type="STRING"/>
  661. <Column id="rsltkind" type="STRING"/>
  662. <Column id="refkind" type="STRING"/>
  663. <Column id="refflag" type="STRING"/>
  664. <Column id="refl" type="STRING"/>
  665. <Column id="refls" type="STRING"/>
  666. <Column id="refhs" type="STRING"/>
  667. <Column id="refh" type="STRING"/>
  668. <Column id="refcval" type="STRING"/>
  669. <Column id="intrsltfrmt" type="STRING"/>
  670. <Column id="rsltunit" type="STRING"/>
  671. <Column id="avg" type="STRING"/>
  672. <Column id="sdval" type="STRING"/>
  673. <Column id="wgmrscop" type="STRING"/>
  674. <Column id="judgkind" type="STRING"/>
  675. <Column id="rundkind" type="STRING"/>
  676. <Column id="graphdispyn" type="STRING"/>
  677. <Column id="fstrgstrid" type="STRING"/>
  678. <Column id="fstrgstdt" type="STRING"/>
  679. </ColumnInfo>
  680. </Dataset>
  681. </Objects>
  682. <Bind>
  683. <BindItem id="item0" compid="group4.cbo_searchFlag" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
  684. <BindItem id="item1" compid="group4.combo1" propid="value" datasetid="ds_hidden" columnid="searchflag"/>
  685. <BindItem id="item2" compid="group4.ipt_search" propid="value" datasetid="ds_hidden" columnid="refcont"/>
  686. <BindItem id="item3" compid="group3.ipt_searchTestCd" propid="value" datasetid="ds_hidden" columnid="searchtestcd"/>
  687. <BindItem id="item4" compid="group3.cmb_selectgbn" propid="value" datasetid="ds_hidden" columnid="selectgbn"/>
  688. <BindItem id="item5" compid="group3.cmb_testLrgCd" propid="value" datasetid="ds_hidden" columnid="testlrg"/>
  689. <BindItem id="item6" compid="group3.cmb_testMdlCd" propid="value" datasetid="ds_hidden_testmdl" columnid="cd"/>
  690. <BindItem id="item7" compid="opt_matrfromdd" propid="value" datasetid="ds_matrtinfo" columnid="matrfromdd"/>
  691. <BindItem id="item8" compid="out_matrcd" propid="value" datasetid="ds_matrtinfo" columnid="matrcd"/>
  692. <BindItem id="item9" compid="out_levlcd" propid="value" datasetid="ds_matrtinfo" columnid="levlcd"/>
  693. </Bind>
  694. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  695. * System Name :
  696. * Job Name :
  697. * Creator :
  698. * Make Date : 2015-11-13
  699. * Description :
  700. *---------------------------------------------------------------------------------------
  701. * Modify Date Modifier Modify Description
  702. *---------------------------------------------------------------------------------------
  703. * 2015-11-13 Live Converter TF->XP
  704. *
  705. *---------------------------------------------------------------------------------------
  706. ****************************************************************************************/
  707. include "com_commonxp::comm_main.xjs";
  708. function SMLQF00700_oninit(obj:Form, e:InitEventInfo)
  709. {
  710. frmf_initForm(obj);
  711. }
  712. function SMLQF00700_onload(obj:Form, e:LoadEventInfo)
  713. {
  714. grdf_initGrid(grd_matrList);
  715. grdf_initGrid(grd_matrTclsList);
  716. grdf_initGrid(grd_testList);
  717. grdf_setRowTypeIcon(grd_matrTclsList, 0);
  718. fSetInit();
  719. }
  720. function fSetInit()
  721. {
  722. ds_grd_matrList.clearData();
  723. ds_grd_matrTclsList.clearData();
  724. ds_grd_testList.clearData();
  725. //model.setValue("/root/send/codeflag", "0102|0104|0000|0111|0106|"); // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
  726. dsf_createDsRow("ds_temp_search", [{col : "codeflag", val : "0102|0104|0000|0111|0106|"}]);
  727. //submit("TRLZZ00101");
  728. var oParam = {};
  729. oParam.id = "TRLZZ00101";
  730. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  731. oParam.method = "reqGetInitCodeInfo";
  732. oParam.inds = "cond=ds_temp_search";
  733. oParam.outds = "ds_init_lb0102=0102 ds_init_lb0104=0104 ds_init_lb0000=0000 ds_init_lb0111=0111 ds_init_lb0106=0106";
  734. oParam.async = false;
  735. //oParam.callback = "cf_TRLZZ00101";
  736. tranf_submit(oParam);
  737. //model.setValue("/root/hidden/selectgbn","1");
  738. ds_hidden.setColumn(0, "selectgbn", "1");
  739. fSelectGbn();
  740. fGetMatrList(); //물질리스트조회
  741. fGetTestList(2); //검사항목리스트조회
  742. }
  743. function fSelectGbn()
  744. {
  745. //검사분류 선택
  746. if(group3.cmb_selectgbn.value == "1")
  747. {
  748. //첫번째 콤보에 대분류 셋팅
  749. ds_init_cmb_testLrgCd.copyData(ds_init_lb0104);
  750. //두번째 콤보에 중분류 셋팅
  751. ds_init_cmb_testMdlCd.copyData(ds_init_lb0102);
  752. }
  753. //시행부서 선택
  754. else if(group3.cmb_selectgbn.value == "2")
  755. {
  756. //첫번째 콤보에 계코드 셋팅
  757. ds_init_cmb_testLrgCd.copyData(ds_init_lb0111);
  758. //두번째 콤보에 검사계코드 셋팅
  759. ds_init_cmb_testMdlCd.copyData(ds_init_lb0106);
  760. }
  761. ds_hidden.setColumn(0, "testlrg", "00");
  762. ds_hidden_testmdl.setColumn(0, "cd", "00");
  763. }
  764. //물질 리스트 조회
  765. function fGetMatrList()
  766. {
  767. ds_send.setColumn(0, "refgbn", ds_hidden.getColumn(0, "refgbn")); //전체, 사용가능자료 구분
  768. ds_send.setColumn(0, "searchflag", ds_hidden.getColumn(0, "searchflag")); //물질코드, 물질명 구분
  769. ds_send.setColumn(0, "refcont", ds_hidden.getColumn(0, "refcont")); //입력Text
  770. ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm")); //사용자 부서코드
  771. //submit("TRLQF00701");
  772. var oParam = {};
  773. oParam.id = "TRLQF00701";
  774. oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
  775. oParam.method = "reqGetMatrList";
  776. oParam.inds = "cond=ds_send";
  777. oParam.outds = "ds_grd_matrList=matrlist";
  778. oParam.async = false;
  779. //oParam.callback = "cf_TRLQF00701";
  780. tranf_submit(oParam);
  781. }
  782. //검사항목 리스트 조회
  783. function fGetTestList(i)
  784. {
  785. if( i == "2")
  786. {
  787. ds_send.setColumn(0, "refcont", ds_hidden.getColumn(0, "searchtestcd")); //입력Text
  788. }
  789. ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm")); //사용자 부서코드
  790. //submit("TRLQF00702");
  791. var oParam = {};
  792. oParam.id = "TRLQF00702";
  793. oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
  794. oParam.method = "reqGetTestList";
  795. oParam.inds = "cond=ds_send";
  796. oParam.outds = "ds_grd_testList=testlist";
  797. oParam.async = false;
  798. //oParam.callback = "cf_TRLQF00702";
  799. tranf_submit(oParam);
  800. }
  801. function grd_matrList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  802. {
  803. fGetMatrTclsList();
  804. }
  805. //물질별 검사항목 조회
  806. function fGetMatrTclsList()
  807. {
  808. var row = ds_grd_matrList.rowposition;
  809. // model.setValue("/root/send/matrfromdd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/matrfromdd"));
  810. // model.setValue("/root/send/matrcd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/matrcd"));
  811. // model.setValue("/root/send/levlcd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/levlcd"));
  812. // model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
  813. ds_send.setColumn(0, "matrfromdd", ds_grd_matrList.getColumn(row, "matrfromdd"));
  814. ds_send.setColumn(0, "matrcd", ds_grd_matrList.getColumn(row, "matrcd"));
  815. ds_send.setColumn(0, "levlcd", ds_grd_matrList.getColumn(row, "levlcd"));
  816. ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm"));
  817. var oParam = {};
  818. oParam.id = "TRLQF00703";
  819. oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
  820. oParam.method = "reqGetMatrTclsList";
  821. oParam.inds = "matrinfo=ds_send";
  822. oParam.outds = "ds_grd_matrTclsList=matrtclslist ds_matrtinfo=matrfromdd";
  823. oParam.async = false;
  824. //oParam.callback = "cf_TRLQF00703";
  825. tranf_submit(oParam);
  826. fSetMatrCopy(); //조회 데이터가 없으면 물질목록 복사
  827. }
  828. //물질목록 복사
  829. function fSetMatrCopy()
  830. {
  831. //model.setValue("/root/main/matrinfo/matrfromdd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/matrfromdd"));
  832. //model.setValue("/root/main/matrinfo/matrcd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/matrcd"));
  833. //model.setValue("/root/main/matrinfo/levlcd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/levlcd"));
  834. ds_matrtinfo.setColumn(0 ,"matrfromdd", ds_grd_matrList.getColumn(ds_grd_matrList.rowposition, "matrfromdd"));
  835. ds_matrtinfo.setColumn(0 ,"matrcd", ds_grd_matrList.getColumn(ds_grd_matrList.rowposition, "matrcd"));
  836. ds_matrtinfo.setColumn(0 ,"levlcd", ds_grd_matrList.getColumn(ds_grd_matrList.rowposition, "levlcd"));
  837. }
  838. function group4_ipt_search_onkeyup(obj:Edit, e:KeyEventInfo)
  839. {
  840. if(e.keycode == 13)
  841. {
  842. //model.setValue("/root/hidden/refcont", ipt_search.currentText);
  843. ds_hidden.setColumn(0, "refcont", group4.ipt_search.text);
  844. fGetMatrList();
  845. }
  846. }
  847. function group3_ipt_searchTestCd_onkeyup(obj:Edit, e:KeyEventInfo)
  848. {
  849. if(e.keycode == 13)
  850. {
  851. ds_hidden.setColumn(0, "refcont", group3.ipt_searchTestCd.text);
  852. fGetTestList(1);
  853. }
  854. }
  855. function btn_exec_onclick(obj:Button, e:ClickEventInfo)
  856. {
  857. var j=0;
  858. for(var i = 0; i<ds_grd_matrTclsList.rowcount; i++)
  859. {
  860. if(ds_grd_matrTclsList.getRowType(i) == "1")
  861. {
  862. j++;
  863. }
  864. }
  865. if(sysf_messageBox("", "Q002")==6)
  866. {
  867. if(j == ds_grd_matrTclsList.rowcount)
  868. {
  869. sysf_messageBox("저장할 자료가 존재하지 않아 실행", "E001");
  870. return;
  871. }
  872. }
  873. for(var i = 0; i < ds_grd_matrTclsList.rowcount; i++)
  874. {
  875. if(ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "Y" || ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "1")
  876. {
  877. ds_grd_matrTclsList.setColumn(i, "graphdispyn", "Y");
  878. }
  879. else if(ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "N" || ds_grd_matrTclsList.getColumn(i, "graphdispyn") == "0")
  880. {
  881. ds_grd_matrTclsList.setColumn(i, "graphdispyn", "N");
  882. }
  883. }
  884. //저장버튼
  885. fExeMatrTclsList();
  886. }
  887. //물질별 검사 정보 저장
  888. function fExeMatrTclsList()
  889. {
  890. if(utlf_isNull(opt_matrfromdd.value) || utlf_isNull(out_levlcd.value) || utlf_isNull(out_matrcd.value))
  891. {
  892. sysf_messageBox("필수 항목이 입력되지 않았습니다.","I007");
  893. return false;
  894. }
  895. dsf_createDsRow("ds_temp_search1", [{col: "matrfromdd", val:ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"matrfromdd")}
  896. , {col: "matrcd", val: out_matrcd.value}
  897. , {col: "levlcd", val: out_levlcd.value}]);
  898. dsf_createDsRow("ds_temp_search2", [{col: "deptflag", val: ds_init_lb0000.getColumn(0,"nm")}]);
  899. var oParam = {};
  900. oParam.id = "TXLQF00701";
  901. oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
  902. oParam.method = "reqExeMatrTclsList";
  903. oParam.inds = "matrtclslist=ds_grd_matrTclsList:A matrinfo=ds_temp_search1 cond=ds_temp_search2";
  904. oParam.async = false;
  905. //oParam.callback = "cf_TXLQF00701";
  906. tranf_submit(oParam);
  907. }
  908. //조회버튼
  909. function group4_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  910. {
  911. fGetMatrList();
  912. }
  913. //초기화버튼
  914. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  915. {
  916. this.reload();
  917. }
  918. function btn_up_onclick(obj:Button, e:ClickEventInfo)
  919. {
  920. fCopyTestList();
  921. }
  922. //선택 항목 복사함
  923. function fCopyTestList()
  924. {
  925. var vChk = ""
  926. var vTestCd = ""
  927. var vTestNm = ""
  928. if( !utlf_isNull(ds_matrtinfo.getColumn(0, "matrfromdd"))) //물질이 선택되어있지 않은 상태에서 검사코드 추가하고자 할때 알림..
  929. {
  930. //for ( i = 1; i < grd_testList.rows; i++)
  931. for( i = 0; i < ds_grd_testList.rowcount; i++)
  932. {
  933. //vChk = model.getValue("/root/main/testlist[" + i + "]/chk");
  934. //vTestCd = model.getValue("/root/main/testlist[" + i + "]/testcd");
  935. //vTestNm = model.getValue("/root/main/testlist[" + i + "]/testnm");
  936. vChk = ds_grd_testList.getColumn(i, "chk");
  937. vTestCd = ds_grd_testList.getColumn(i, "testcd");
  938. vTestNm = ds_grd_testList.getColumn(i, "testnm");
  939. if( vChk == "1") //검사항목 선택된놈들
  940. {
  941. if(ds_grd_matrTclsList.findRow("testcd", vTestCd) == "-1") //물질별 검사항목에 등록되어있지 않은 항목만
  942. {
  943. var nRow = ds_grd_matrTclsList.addRow();
  944. ds_grd_matrTclsList.setColumn(nRow, "testcd", vTestCd);
  945. ds_grd_matrTclsList.setColumn(nRow, "testnm", vTestNm);
  946. ds_grd_matrTclsList.setColumn(nRow, "testfromdd", ds_matrtinfo.getColumn(0, "matrfromdd"));
  947. ds_grd_matrTclsList.setColumn(nRow, "testtodd", '99991231');
  948. //model.setValue("/root/main/testlist[" + i + "]/chk", "false");
  949. ds_grd_testList.setColumn(i, "chk", "0");
  950. }
  951. else
  952. {
  953. alert(vTestCd + " 항목이 중복되었습니다");
  954. //model.setValue("/root/main/testlist[" + i + "]/chk", "false");
  955. ds_grd_testList.setColumn(i, "chk", "0");
  956. }
  957. }
  958. }//end for
  959. }
  960. else
  961. {
  962. alert("물질을 먼저 선택하세요");
  963. }
  964. }
  965. //복사
  966. function button1_onclick(obj:Button, e:ClickEventInfo)
  967. {
  968. // 물질검사항목 복사
  969. fMatTestCopy();
  970. }
  971. // 물질검사항목 복사
  972. function fMatTestCopy()
  973. {
  974. ds_grid_copy_matrTclsList.clearData();
  975. var rows = grdf_getSelectedRows(grd_matrTclsList);
  976. //
  977. // var selectStart = grd_matrTclsList.selectstartrow;
  978. // var selectEnd = grd_matrTclsList.selectendrow;
  979. if(rows.length > 0)
  980. {
  981. for(var i = 0; i < rows.length; i++)
  982. {
  983. var j = rows[i];
  984. var nRow = ds_grid_copy_matrTclsList.addRow();
  985. ds_grid_copy_matrTclsList.setColumn(nRow, "testcd", ds_grd_matrTclsList.getColumn(j,"testcd"));
  986. ds_grid_copy_matrTclsList.setColumn(nRow, "testnm", ds_grd_matrTclsList.getColumn(j,"testnm"));
  987. ds_grid_copy_matrTclsList.setColumn(nRow, "testfromdd", ds_grd_matrTclsList.getColumn(j,"testfromdd"));
  988. ds_grid_copy_matrTclsList.setColumn(nRow, "testtodd", ds_grd_matrTclsList.getColumn(j,"testtodd"));
  989. ds_grid_copy_matrTclsList.setColumn(nRow, "rsltkind", ds_grd_matrTclsList.getColumn(j,"rsltkind"));
  990. ds_grid_copy_matrTclsList.setColumn(nRow, "refkind", ds_grd_matrTclsList.getColumn(j,"refkind"));
  991. ds_grid_copy_matrTclsList.setColumn(nRow, "refflag", ds_grd_matrTclsList.getColumn(j,"refflag"));
  992. ds_grid_copy_matrTclsList.setColumn(nRow, "refl", ds_grd_matrTclsList.getColumn(j,"refl"));
  993. ds_grid_copy_matrTclsList.setColumn(nRow, "refls", ds_grd_matrTclsList.getColumn(j,"refls"));
  994. ds_grid_copy_matrTclsList.setColumn(nRow, "refhs", ds_grd_matrTclsList.getColumn(j,"refhs"));
  995. ds_grid_copy_matrTclsList.setColumn(nRow, "refh", ds_grd_matrTclsList.getColumn(j,"refh"));
  996. ds_grid_copy_matrTclsList.setColumn(nRow, "refcval", ds_grd_matrTclsList.getColumn(j,"refcval"));
  997. ds_grid_copy_matrTclsList.setColumn(nRow, "intrsltfrmt", ds_grd_matrTclsList.getColumn(j,"intrsltfrmt"));
  998. ds_grid_copy_matrTclsList.setColumn(nRow, "rsltunit", ds_grd_matrTclsList.getColumn(j,"rsltunit"));
  999. ds_grid_copy_matrTclsList.setColumn(nRow, "avg", ds_grd_matrTclsList.getColumn(j,"avg"));
  1000. ds_grid_copy_matrTclsList.setColumn(nRow, "sdval", ds_grd_matrTclsList.getColumn(j,"sdval"));
  1001. ds_grid_copy_matrTclsList.setColumn(nRow, "wgmrscop", ds_grd_matrTclsList.getColumn(j,"wgmrscop"));
  1002. ds_grid_copy_matrTclsList.setColumn(nRow, "judgkind", ds_grd_matrTclsList.getColumn(j,"judgkind"));
  1003. ds_grid_copy_matrTclsList.setColumn(nRow, "rundkind", ds_grd_matrTclsList.getColumn(j,"rundkind"));
  1004. ds_grid_copy_matrTclsList.setColumn(nRow, "graphdispyn", ds_grd_matrTclsList.getColumn(j,"graphdispyn"));
  1005. ds_grid_copy_matrTclsList.setColumn(nRow, "fstrgstrid", ds_grd_matrTclsList.getColumn(j,"fstrgstrid"));
  1006. ds_grid_copy_matrTclsList.setColumn(nRow, "fstrgstdt", ds_grd_matrTclsList.getColumn(j,"fstrgstdt"));
  1007. }
  1008. }
  1009. }
  1010. function button2_onclick(obj:Button, e:ClickEventInfo)
  1011. {
  1012. // 물질검사항목 붙여넣기
  1013. fMatTestPaste();
  1014. }
  1015. function fMatTestPaste()
  1016. {
  1017. if(ds_grid_copy_matrTclsList.rowcount > 0)
  1018. {
  1019. for(var i=0; i<ds_grid_copy_matrTclsList.rowcount; i++)
  1020. {
  1021. var nRow = ds_grd_matrTclsList.addRow();
  1022. // var sRow = ds_grd_matrTclsList.findRow("testcd",ds_grid_copy_matrTclsList.getColumn(i,"testcd"));
  1023. // ds_grd_matrTclsList.setColumn(sRow,"testtodd",utlf_getCurrentDate());
  1024. ds_grd_matrTclsList.setColumn(nRow,"testcd",ds_grid_copy_matrTclsList.getColumn(i,"testcd"));
  1025. ds_grd_matrTclsList.setColumn(nRow,"testnm",ds_grid_copy_matrTclsList.getColumn(i,"testnm"));
  1026. //ds_grd_matrTclsList.setColumn(nRow,"testfromdd",utlf_addDate(utlf_getCurrentDate(),1));
  1027. ds_grd_matrTclsList.setColumn(nRow,"testfromdd",ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"matrfromdd"));
  1028. ds_grd_matrTclsList.setColumn(nRow,"testtodd","99991231");
  1029. ds_grd_matrTclsList.setColumn(nRow,"rsltkind",ds_grid_copy_matrTclsList.getColumn(i,"rsltkind"));
  1030. ds_grd_matrTclsList.setColumn(nRow,"refkind",ds_grid_copy_matrTclsList.getColumn(i,"refkind"));
  1031. ds_grd_matrTclsList.setColumn(nRow,"refflag",ds_grid_copy_matrTclsList.getColumn(i,"refflag"));
  1032. ds_grd_matrTclsList.setColumn(nRow,"refl",ds_grid_copy_matrTclsList.getColumn(i,"refl"));
  1033. ds_grd_matrTclsList.setColumn(nRow,"refls",ds_grid_copy_matrTclsList.getColumn(i,"refls"));
  1034. ds_grd_matrTclsList.setColumn(nRow,"refhs",ds_grid_copy_matrTclsList.getColumn(i,"refhs"));
  1035. ds_grd_matrTclsList.setColumn(nRow,"refh",ds_grid_copy_matrTclsList.getColumn(i,"refh"));
  1036. ds_grd_matrTclsList.setColumn(nRow,"refcval",ds_grid_copy_matrTclsList.getColumn(i,"refcval"));
  1037. ds_grd_matrTclsList.setColumn(nRow,"intrsltfrmt",ds_grid_copy_matrTclsList.getColumn(i,"intrsltfrmt"));
  1038. ds_grd_matrTclsList.setColumn(nRow,"rsltunit",ds_grid_copy_matrTclsList.getColumn(i,"rsltunit"));
  1039. ds_grd_matrTclsList.setColumn(nRow,"avg",ds_grid_copy_matrTclsList.getColumn(i,"avg"));
  1040. ds_grd_matrTclsList.setColumn(nRow,"sdval",ds_grid_copy_matrTclsList.getColumn(i,"sdval"));
  1041. ds_grd_matrTclsList.setColumn(nRow,"wgmrscop",ds_grid_copy_matrTclsList.getColumn(i,"wgmrscop"));
  1042. ds_grd_matrTclsList.setColumn(nRow,"judgkind",ds_grid_copy_matrTclsList.getColumn(i,"judgkind"));
  1043. ds_grd_matrTclsList.setColumn(nRow,"rundkind",ds_grid_copy_matrTclsList.getColumn(i,"rundkind"));
  1044. ds_grd_matrTclsList.setColumn(nRow,"graphdispyn",ds_grid_copy_matrTclsList.getColumn(i,"graphdispyn"));
  1045. // ds_grd_matrTclsList.setColumn(nRow,"matrcd",ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"matrcd"));
  1046. // ds_grd_matrTclsList.setColumn(nRow,"levlcd",ds_grd_matrList.getColumn(ds_grd_matrList.rowposition,"levlcd"));
  1047. }
  1048. }
  1049. }
  1050. //삭제
  1051. function button4_onclick(obj:Button, e:ClickEventInfo)
  1052. {
  1053. fMatTestDel();
  1054. }
  1055. // 물질검사항목 삭제(붙어넣기 한것만)
  1056. function fMatTestDel()
  1057. {
  1058. //var r = grd_matrTclsList.row;
  1059. var r = ds_grd_matrTclsList.rowposition;
  1060. if ( r > -1 )
  1061. {
  1062. //if ( model.getValue("/root/main/matrtclslist["+ (r) +"]/fstrgstrid") == "" )
  1063. if( utlf_isNull(ds_grd_matrTclsList.getColumn(r, "fstrgstrid")))
  1064. {
  1065. //grd_matrTclsList.deleteRow(r);
  1066. ds_grd_matrTclsList.deleteRow(r);
  1067. }
  1068. else
  1069. {
  1070. }
  1071. }
  1072. }
  1073. function button52_onclick(obj:Button, e:ClickEventInfo)
  1074. {
  1075. ds_grd_matrTclsList.addRow();
  1076. }
  1077. function button53_onclick(obj:Button, e:ClickEventInfo)
  1078. {
  1079. if(ds_grd_matrTclsList.getRowType(ds_grd_matrTclsList.rowposition)== "2")
  1080. {
  1081. ds_grd_matrTclsList.deleteRow(ds_grd_matrTclsList.rowposition);
  1082. }
  1083. else
  1084. {
  1085. var arrPostion = new Array();
  1086. arrPostion[0] = ds_grd_matrTclsList.rowposition;
  1087. grdf_setStatus(grd_matrTclsList, "D", arrPostion);
  1088. }
  1089. }
  1090. function group3_cmb_testLrgCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1091. {
  1092. fSetSelect02();
  1093. }
  1094. function fSetSelect02()
  1095. {
  1096. var select01 = ds_hidden.getColumn(0, "testlrg");
  1097. //검사분류선택
  1098. if(group3.cmb_selectgbn.value == "1")
  1099. {
  1100. if(select01 == "00")
  1101. {
  1102. group3.cmb_testMdlCd.innerdataset = ds_init_lb0102;
  1103. ds_init_lb0102.filterstr = "";
  1104. }
  1105. else
  1106. {
  1107. ds_init_lb0102.filterstr = "cd=='00' || etc01=='" + select01 +"'";
  1108. group3.cmb_testMdlCd.innerdataset = ds_init_lb0102;
  1109. //ds_init_lb0102.filterstr = "";
  1110. }
  1111. }
  1112. //시행부서 선택
  1113. else if(group3.cmb_selectgbn.value == "2")
  1114. {
  1115. if(select01 == "00")
  1116. {
  1117. group3.cmb_testMdlCd.innerdataset = ds_init_lb0106;
  1118. ds_init_lb0106.filterstr = "";
  1119. }
  1120. else
  1121. {
  1122. ds_init_lb0106.filter("cd == '00' || etc01 =='" + select01 +"'");
  1123. group3.cmb_testMdlCd.innerdataset = ds_init_lb0106;
  1124. }
  1125. }
  1126. fGetTclscdList();
  1127. }
  1128. // 검사코드 리스트 조회
  1129. function fGetTclscdList()
  1130. {
  1131. ds_grd_testList.clearData();
  1132. ds_send.setColumn(0, "selectgbn", ds_hidden.getColumn(0, "selectgbn"));
  1133. if(group3.cmb_selectgbn.value == "1")
  1134. {
  1135. ds_send.setColumn(0, "testlrgcd", ds_hidden.getColumn(0, "testlrg"));
  1136. ds_send.setColumn(0, "testmdlcd", ds_hidden_testmdl.getColumn(0, "cd"));
  1137. }
  1138. //조회구분 시행부서 선택시
  1139. else if(group3.cmb_selectgbn.value == "2")
  1140. {
  1141. ds_send.setColumn(0, "sectcd", ds_hidden.getColumn(0, "testlrg"));
  1142. ds_send.setColumn(0, "tsectcd", ds_hidden_testmdl.getColumn(0, "cd"));
  1143. }
  1144. ds_send.setColumn(0, "deptflag", ds_init_lb0000.getColumn(0, "nm"));
  1145. var oParam = {};
  1146. oParam.id = "TRLQF00704";
  1147. oParam.service = "grademngtbasemngtapp.QCMaterialTestItemMngt";
  1148. oParam.method = "reqGetTestKindList";
  1149. oParam.inds = "cond=ds_send";
  1150. oParam.outds = "ds_grd_testList=gettestcd";
  1151. oParam.async = false;
  1152. //oParam.callback = "cf_TRLQF00704";
  1153. tranf_submit(oParam);
  1154. }
  1155. function group4_cbo_searchFlag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1156. {
  1157. fGetMatrList();
  1158. }
  1159. function fSelectGbn()
  1160. {
  1161. //검사분류 선택
  1162. if(group3.cmb_selectgbn.value == "1")
  1163. {
  1164. //첫번째 콤보에 대분류 셋팅
  1165. group3.cmb_testLrgCd.innerdataset = ds_init_lb0104;
  1166. //두번째 콤보에 중분류 셋팅
  1167. group3.cmb_testMdlCd.innerdataset = ds_init_lb0102;
  1168. }
  1169. //시행부서 선택
  1170. else if(group3.cmb_selectgbn.value == "2")
  1171. {
  1172. //첫번째 콤보에 계코드 셋팅
  1173. group3.cmb_testLrgCd.innerdataset = ds_init_lb0111;
  1174. //두번째 콤보에 검사계코드 셋팅
  1175. group3.cmb_testMdlCd.innerdataset = ds_init_lb0106;
  1176. }
  1177. ds_hidden.setColumn(0, "testlrg", "00");
  1178. ds_hidden_testmdl.setColumn(0, "cd", "00");
  1179. }
  1180. function group3_cmb_selectgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1181. {
  1182. fSelectGbn();
  1183. }
  1184. function group3_cmb_testMdlCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1185. {
  1186. fGetTclscdList();
  1187. }
  1188. ]]></Script>
  1189. </Form>
  1190. </FDL>