SMLPC00700_검사정보등록.xfdl 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPC00700" position="absolute 0 0 1256 805" titletext="New Form" oninit="model1_oninit" onload="SMLPC00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" class="tit_1" position="absolute 0 3 152 28" anchor="default" positiontype="position" text="검사정보등록"/>
  8. <Button id="btn_save" class="btn4" taborder="10" position="absolute 1200 32 1256 52" anchor="top right" text="저장" positiontype="position" onclick="btn_save_onclick"/>
  9. <Shape id="line17" class="line_6" position="absolute 0 25 1194 25" anchor="default" linetype="horizontal" positiontype="position"/>
  10. <Button id="button1" class="btn4" position="absolute 261 32 317 52" anchor="top right" text="다음" positiontype="position" onclick="button1_onclick"/>
  11. <Button id="button2" class="btn3" position="absolute 1 32 57 52" anchor="top right" text="처음" positiontype="position" onclick="button2_onclick"/>
  12. <Button id="button4" class="btn4" position="absolute 320 32 376 52" anchor="top right" text="최종" positiontype="position" onclick="button4_onclick"/>
  13. <Edit id="ipt_paval" class="input_search" position="absolute 119 32 184 52" style="align:right middle;" anchor="top right" positiontype="position" imemode="hangul"/>
  14. <Static id="cap_lastPage" position="absolute 195 35 255 47" anchor="top right" text="1" positiontype="position"/>
  15. <Button id="btn_prntexcel" class="btn3" position="absolute 60 32 116 52" anchor="top right" text="이전" positiontype="position" onclick="btn_prntexcel_onclick"/>
  16. <Static id="caption4" text="/" position="absolute 186 34 197 46" anchor="top right" positiontype="position"/>
  17. <Static id="caption1" class="tit_2" position="absolute 644 101 775 121" anchor="default" text="검사정보" positiontype="position"/>
  18. <Shape id="line1" class="line_1" position="absolute 615 113 1193 113" anchor="default" linetype="horizontal" positiontype="position"/>
  19. <Grid id="grd_testinfolist" taborder="31" position="absolute 639 121 1256 805" anchor="all" onclick="grd_testinfolist_onclick" positiontype="position" autofittype="none" binddataset="ds_grid_grd_testinfolist" oncellclick="grd_testinfolist_oncellclick" onbuttondown="grd_testinfolist_onbuttondown" scrollbars="fixedboth">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="30"/>
  24. <Column size="30"/>
  25. <Column size="0"/>
  26. <Column size="79"/>
  27. <Column size="200"/>
  28. <Column size="60"/>
  29. <Column size="100"/>
  30. <Column size="60"/>
  31. <Column size="90"/>
  32. <Column size="90"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="80"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="24" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell/>
  46. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  47. <Cell col="2" text="기관코드"/>
  48. <Cell col="3" text="검사코드"/>
  49. <Cell col="4" text="검사명"/>
  50. <Cell col="5" text="검체코드"/>
  51. <Cell col="6" text="검체명"/>
  52. <Cell col="7" text="사용"/>
  53. <Cell col="8" text="시작일자"/>
  54. <Cell col="9" text="종료일자"/>
  55. <Cell col="10" text="tubecd"/>
  56. <Cell col="11" text="readid"/>
  57. <Cell col="12" text="incfnm"/>
  58. <Cell col="13" text="barcdprntcnt"/>
  59. <Cell col="14" text="state"/>
  60. <Cell col="15" text="바코드출력"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell displaytype="image" expr="getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  64. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  65. <Cell col="2" displaytype="normal" edittype="none" text="bind:instcd"/>
  66. <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:testcd"/>
  67. <Cell col="4" displaytype="normal" edittype="none" style="align:left;" text="bind:testhngnm"/>
  68. <Cell col="5" displaytype="normal" edittype="none" style="align:center middle;" text="bind:spccd"/>
  69. <Cell col="6" displaytype="normal" edittype="none" style="align:left;" text="bind:spcnm"/>
  70. <Cell col="7" displaytype="combo" edittype="combo" text="bind:delflagcd" combodataset="ds_useflagcd" combocodecol="value" combodatacol="label"/>
  71. <Cell col="8" displaytype="date" edittype="date" text="bind:fromdd"/>
  72. <Cell col="9" displaytype="date" edittype="date" text="bind:todd"/>
  73. <Cell col="10" displaytype="normal" edittype="none" text="bind:tubecd"/>
  74. <Cell col="11" displaytype="normal" edittype="none" text="bind:readid"/>
  75. <Cell col="12" displaytype="normal" edittype="none" text="bind:incfnm"/>
  76. <Cell col="13" displaytype="normal" edittype="none" text="bind:barcdprtncnt"/>
  77. <Cell col="14" displaytype="normal" edittype="none" text="bind:state"/>
  78. <Cell col="15" displaytype="normal" edittype="combo" text="bind:barcdprtncnt" combodataset="ds_spcuseflagcd" combocodecol="value" combodatacol="label"/>
  79. <Cell col="16"/>
  80. <Cell col="17"/>
  81. <Cell col="18"/>
  82. <Cell col="19"/>
  83. </Band>
  84. </Format>
  85. </Formats>
  86. </Grid>
  87. <Static id="caption3" class="tit_2" position="absolute 0 101 131 121" anchor="default" text="검사목록" positiontype="position"/>
  88. <Shape id="line2" class="line_1" position="absolute 0 113 310 113" anchor="default" linetype="horizontal" positiontype="position"/>
  89. <Grid id="grd_spclist" taborder="31" position="absolute 340 120 633 805" anchor="left top bottom" positiontype="position" autofittype="col" binddataset="ds_grid_grd_spclist" onbuttondown="grd_spclist_onbuttondown" ondragmove="grd_spclist_ondragmove" ondrag="grd_spclist_ondrag" scrollpixel="all" selecttype="multirow" onrbuttondown="grd_spclist_onrbuttondown">
  90. <Formats>
  91. <Format id="default">
  92. <Columns>
  93. <Column size="30"/>
  94. <Column size="26"/>
  95. <Column size="0"/>
  96. <Column size="60"/>
  97. <Column size="150"/>
  98. <Column size="40"/>
  99. </Columns>
  100. <Rows>
  101. <Row size="22" band="head"/>
  102. <Row size="24"/>
  103. </Rows>
  104. <Band id="head">
  105. <Cell/>
  106. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  107. <Cell col="2" text="instcd"/>
  108. <Cell col="3" text="검체코드"/>
  109. <Cell col="4" text="검체명"/>
  110. <Cell col="5" text="구분"/>
  111. </Band>
  112. <Band id="body">
  113. <Cell celltype="head" expr="currow+1"/>
  114. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  115. <Cell col="2" displaytype="normal" edittype="none" text="bind:instcd"/>
  116. <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:spccd"/>
  117. <Cell col="4" displaytype="normal" edittype="none" style="align:left;" text="bind:spcnm"/>
  118. <Cell col="5" displaytype="combo" edittype="combo" text="bind:spcflagcd" combodataset="ds_spcflagcd" combocodecol="value" combodatacol="label"/>
  119. <Cell col="6"/>
  120. <Cell col="7"/>
  121. <Cell col="8"/>
  122. </Band>
  123. </Format>
  124. </Formats>
  125. </Grid>
  126. <Static id="caption5" class="tit_2" position="absolute 320 101 451 121" anchor="default" text="검체목록" positiontype="position"/>
  127. <Shape id="line3" class="line_1" position="absolute 314 113 610 113" anchor="default" linetype="horizontal" positiontype="position"/>
  128. <Grid id="grd_testlist" position="absolute 0 120 334 805" anchor="left top bottom" onlbuttonDown="grd_testlist_onlbuttonDown" positiontype="position" autofittype="col" binddataset="ds_grid_grd_testlist" onbuttondown="grd_testlist_onbuttondown" onmouseleave="grd_testlist_onmouseleave" autosizingtype="row">
  129. <Formats>
  130. <Format id="default">
  131. <Columns>
  132. <Column size="30"/>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="79"/>
  137. <Column size="170"/>
  138. <Column size="105"/>
  139. </Columns>
  140. <Rows>
  141. <Row size="22" band="head"/>
  142. <Row size="20"/>
  143. </Rows>
  144. <Band id="head">
  145. <Cell displaytype="checkbox" edittype="checkbox"/>
  146. <Cell col="1" text="instcd"/>
  147. <Cell col="2" text="testcd"/>
  148. <Cell col="3" text="검사코드"/>
  149. <Cell col="4" text="검사코드"/>
  150. <Cell col="5" text="검사명"/>
  151. <Cell col="6" text="검사약어"/>
  152. </Band>
  153. <Band id="body">
  154. <Cell displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  155. <Cell col="1" text="bind:instcd"/>
  156. <Cell col="2" text="bind:testcd"/>
  157. <Cell col="3" style="align:left;" text="bind:testcd" wordwrap="none"/>
  158. <Cell col="4" text="bind:testcd"/>
  159. <Cell col="5" style="align:left;" text="bind:testengnm" wordwrap="word"/>
  160. <Cell col="6" style="align:left;" text="bind:testengabbr" wordwrap="char" autosizerow="limitmin"/>
  161. <Cell col="7"/>
  162. <Cell col="8"/>
  163. </Band>
  164. </Format>
  165. </Formats>
  166. </Grid>
  167. <Button id="btn_addcste" class="btn2" taborder="12" position="absolute 1188 98 1256 118" anchor="top right" text="정보전달" positiontype="position" onclick="btn_addcste_onclick"/>
  168. <Combo id="cmb_useflagcd" position="absolute 1110 98 1185 118" anchor="top right" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" value="0" text="사용" index="0" onitemchanged="cmb_useflagcd_onitemchanged">
  169. <Dataset id="innerdataset">
  170. <ColumnInfo>
  171. <Column id="codecolumn" size="256"/>
  172. <Column id="datacolumn" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="codecolumn">0</Col>
  177. <Col id="datacolumn">사용</Col>
  178. </Row>
  179. <Row>
  180. <Col id="codecolumn">1</Col>
  181. <Col id="datacolumn">미사용</Col>
  182. </Row>
  183. </Rows>
  184. </Dataset>
  185. </Combo>
  186. <Div id="group1" anchor="left top right" taborder="32" style="align:center top;" class="div_SA" position="absolute 0 53 1256 95" positiontype="position">
  187. <Layouts>
  188. <Layout>
  189. <Static id="caption2" text="사용여부" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  190. <Radio id="rdo_s_delflagcd" taborder="1" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 84 12 206 28" anchor="default" value="0" index="0" positiontype="position">
  191. <Dataset id="innerdataset">
  192. <ColumnInfo>
  193. <Column id="codecolumn" size="256"/>
  194. <Column id="datacolumn" size="256"/>
  195. </ColumnInfo>
  196. <Rows>
  197. <Row>
  198. <Col id="codecolumn">0</Col>
  199. <Col id="datacolumn">사용</Col>
  200. </Row>
  201. <Row>
  202. <Col id="codecolumn">1</Col>
  203. <Col id="datacolumn">미사용</Col>
  204. </Row>
  205. </Rows>
  206. </Dataset>
  207. </Radio>
  208. <Static id="caption22" text="조회값" class="search_name" position="absolute 870 10 929 30" anchor="default" positiontype="position"/>
  209. <Combo id="combo1" taborder="2" class="combo_search" position="absolute 932 10 1052 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" value="1" text="검사코드" index="0" positiontype="position">
  210. <Dataset id="innerdataset">
  211. <ColumnInfo>
  212. <Column id="codecolumn" size="256"/>
  213. <Column id="datacolumn" size="256"/>
  214. </ColumnInfo>
  215. <Rows>
  216. <Row>
  217. <Col id="codecolumn">1</Col>
  218. <Col id="datacolumn">검사코드</Col>
  219. </Row>
  220. <Row>
  221. <Col id="codecolumn">2</Col>
  222. <Col id="datacolumn">검체코드</Col>
  223. </Row>
  224. </Rows>
  225. </Dataset>
  226. </Combo>
  227. <Edit id="ipt_refval" taborder="3" class="input_search" position="absolute 1055 10 1175 30" anchor="default" imemode="alpha" onkeydown="group1_ipt_refval_onkeydown" inputmode="upper" positiontype="position"/>
  228. <Button id="button3" taborder="4" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="button3_onclick" positiontype="position"/>
  229. </Layout>
  230. </Layouts>
  231. </Div>
  232. </Layout>
  233. </Layouts>
  234. <Objects>
  235. <Dataset id="ds_grid_grd_testinfolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  236. <ColumnInfo>
  237. <Column id="choi" type="STRING"/>
  238. <Column id="instcd" type="STRING"/>
  239. <Column id="testcd" type="STRING"/>
  240. <Column id="testengnm" type="STRING"/>
  241. <Column id="spccd" type="STRING"/>
  242. <Column id="spcnm" type="STRING"/>
  243. <Column id="delflagcd" type="STRING"/>
  244. <Column id="fromdd" type="STRING"/>
  245. <Column id="todd" type="STRING"/>
  246. <Column id="tubecd" type="STRING"/>
  247. <Column id="readid" type="STRING"/>
  248. <Column id="incfnm" type="STRING"/>
  249. <Column id="barcdprtncnt" type="STRING"/>
  250. <Column id="state" type="STRING"/>
  251. <Column id="testhngnm" type="STRING" size="256"/>
  252. <Column id="m" type="STRING" size="0"/>
  253. <Column id="readdr" type="STRING" size="0"/>
  254. </ColumnInfo>
  255. </Dataset>
  256. <Dataset id="ds_grid_grd_testlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  257. <ColumnInfo>
  258. <Column id="choi" type="STRING"/>
  259. <Column id="instcd" type="STRING"/>
  260. <Column id="testcd" type="STRING"/>
  261. <Column id="testengnm" type="STRING"/>
  262. <Column id="testengabbr" type="STRING"/>
  263. </ColumnInfo>
  264. </Dataset>
  265. <Dataset id="ds_grid_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  266. <ColumnInfo>
  267. <Column id="choi" type="STRING" size="256"/>
  268. <Column id="instcd" type="STRING" size="256"/>
  269. <Column id="dispseqno" type="STRING" size="256"/>
  270. <Column id="spccd" type="STRING" size="256"/>
  271. <Column id="spcnm" type="STRING" size="256"/>
  272. <Column id="spcabbr" type="STRING" size="256"/>
  273. <Column id="spcflagcd" type="STRING" size="256"/>
  274. <Column id="reprspccd" type="STRING" size="256"/>
  275. <Column id="reprspcnm" type="STRING" size="256"/>
  276. </ColumnInfo>
  277. </Dataset>
  278. <Dataset id="ds_lastpage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="lastpage" type="STRING" size="256"/>
  281. </ColumnInfo>
  282. </Dataset>
  283. <Dataset id="ds_useflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  284. <ColumnInfo>
  285. <Column id="value" type="STRING" size="256"/>
  286. <Column id="label" type="STRING" size="256"/>
  287. </ColumnInfo>
  288. <Rows>
  289. <Row>
  290. <Col id="value">0</Col>
  291. <Col id="label">사용</Col>
  292. </Row>
  293. <Row>
  294. <Col id="value">1</Col>
  295. <Col id="label">미사용</Col>
  296. </Row>
  297. </Rows>
  298. </Dataset>
  299. <Dataset id="ds_spcflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="value" type="STRING" size="256"/>
  302. <Column id="label" type="STRING" size="256"/>
  303. </ColumnInfo>
  304. <Rows>
  305. <Row>
  306. <Col id="value">0</Col>
  307. <Col id="label">대표</Col>
  308. </Row>
  309. <Row>
  310. <Col id="value">1</Col>
  311. <Col id="label">세부</Col>
  312. </Row>
  313. </Rows>
  314. </Dataset>
  315. <Dataset id="ds_database_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  316. <Dataset id="ds_spcuseflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  317. <ColumnInfo>
  318. <Column id="value" type="STRING" size="256"/>
  319. <Column id="label" type="STRING" size="256"/>
  320. </ColumnInfo>
  321. <Rows>
  322. <Row>
  323. <Col id="value">0</Col>
  324. <Col id="label">미사용</Col>
  325. </Row>
  326. <Row>
  327. <Col id="value">1</Col>
  328. <Col id="label">사용</Col>
  329. </Row>
  330. </Rows>
  331. </Dataset>
  332. </Objects>
  333. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  334. * System Name : KU2.0
  335. * Job Name :
  336. * File Name : SMLPC00700_검사정보등록.xfdl
  337. * Creator :
  338. *
  339. * Description :
  340. *---------------------------------------------------------------------------------------
  341. * Modify Date Modifier Modify Description
  342. *---------------------------------------------------------------------------------------
  343. *
  344. *---------------------------------------------------------------------------------------
  345. ****************************************************************************************/
  346. include "com_commonxp::comm_main.xjs";
  347. include "lis_commonxp::LPZ001.xjs";
  348. include "lis_commonxp::LLZ001.xjs";
  349. include "lis_commonxp::LZZ001.xjs";
  350. include "emr_prcpmngtxp::MMO001.xjs";
  351. var lgv_sInstCd = sysf_getUserInfo("dutplceinstcd");
  352. //=======================================================================================
  353. // Function
  354. //---------------------------------------------------------------------------------------
  355. //화면초기화
  356. function lf_exeInitialize(){
  357. cap_lastPage.text = "1";
  358. //-----------------------------------------------------------------
  359. //검사목록조회
  360. var sInDsName = dsf_createDsRow("ds_temp_search2"
  361. , [{col: "instcd" , val: lgv_sInstCd}
  362. , {col: "refval" , val: ""}
  363. , {col: "refflag" , val: ""}
  364. , {col: "delflagcd", val: "0"}
  365. ]);
  366. tranf_submit({
  367. id: "TRLPC00401"
  368. , service: "plgybaseinfomngtapp.TestCode"
  369. , method: "reqGetTestCodeList"
  370. , inds : "refData="+sInDsName
  371. , outds: "ds_grid_grd_testlist=rsltlist"
  372. , async: false
  373. });
  374. //-----------------------------------------------------------------
  375. //검체목록조회
  376. sInDsName = dsf_createDsRow("ds_temp_search2"
  377. , [{col: "instcd" , val: lgv_sInstCd}
  378. , {col: "delflagcd", val: "0"}
  379. , {col: "refflag" , val: ""}
  380. , {col: "refval" , val: ""}
  381. ]);
  382. tranf_submit({
  383. id: "TRLPC00601"
  384. , service: "plgybaseinfomngtapp.SpecimenCode"
  385. , method: "reqGetSpecimenCodeList"
  386. , inds : "refData="+sInDsName
  387. , outds: "ds_grid_grd_spclist=spccdlistdata"
  388. , async: false
  389. });
  390. // //그리드 전체체크
  391. // grdf_setAllCheck(grd_testlist);
  392. // grdf_setAllCheck(grd_spclist);
  393. // grdf_setAllCheck(grd_testinfolist);
  394. // grdf_setGridSort(grd_testlist);
  395. // grdf_setGridSort(grd_spclist);
  396. // grdf_setGridSort(grd_testinfolist);
  397. }
  398. function lf_getRefData(ref_work_flag){
  399. var iRowNo = ds_grid_grd_testinfolist.rowcount;
  400. var iColNo = ds_grid_grd_testinfolist.colcount;
  401. if(ref_work_flag =="testinfo"){
  402. if(iRowNo >0){
  403. //Continue
  404. } else {
  405. return false;
  406. }
  407. }
  408. //-------------------------------------------------------------
  409. if(ref_work_flag == "testinfo" && ds_grid_grd_testinfolist.rowcount<0){
  410. return;
  411. }
  412. //---------------------------------------------
  413. switch (ref_work_flag){
  414. case "testinfolist":
  415. //-------------------
  416. lf_getTestInfoList("");
  417. break;
  418. case "testinfo":
  419. break;
  420. default:
  421. break;
  422. }
  423. }
  424. //검사정보 보기
  425. function lf_getTestInfoList(page){
  426. // 이상 페이지 번호 처리
  427. if(page == "") page = 1;
  428. if(page < 1) page = 1;
  429. if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
  430. if (page == 0) page = 1;
  431. //--------------------------------
  432. var sInDsName = dsf_createDsRow("ds_temp_search"
  433. , [{col: "delflagcd", val: group1.rdo_s_delflagcd.value}
  434. , {col: "refflag" , val: group1.combo1.value}
  435. , {col: "refval" , val: group1.ipt_refval.value}
  436. , {col: "instcd" , val: lgv_sInstCd}
  437. , {col: "page" , val: page}
  438. , {col: "itemlimit", val: "100"}
  439. ]);
  440. tranf_submit({
  441. id: "TRLPC00701"
  442. , service: "plgybaseinfomngtapp.TestInfo"
  443. , method: "reqGetTestInfoList"
  444. , inds : "refData="+sInDsName
  445. , outds: "ds_grid_grd_testinfolist=refrslt ds_lastpage=lastpage"
  446. , async: false
  447. });
  448. cap_lastPage.text = ds_lastpage.getColumn(0,"lastpage");
  449. ipt_paval.value = page;
  450. ds_grid_grd_testinfolist.addColumn("targetdb", "string");
  451. }
  452. /**********************************************************************************
  453. * Name : lf_exeInfoSend
  454. * Description : 정보전달
  455. * Argument :
  456. * return Type : Null
  457. * Author : Autumn
  458. ***********************************************************************************/
  459. function lf_exeInfoSend(){
  460. var iLastNo = 0;
  461. var iFindRow = ds_grid_grd_testlist.findRow("choi", "1");
  462. if (iFindRow == -1) {
  463. sysf_messageBox("등록할 검사코드를 ", "C002", "");
  464. return;
  465. }
  466. iFindRow = ds_grid_grd_spclist.findRow("choi", "1");
  467. if (iFindRow == -1) {
  468. sysf_messageBox("등록할 검체코드를 ", "C002", "");
  469. return;
  470. }
  471. for (var iTestNo=0; iTestNo < ds_grid_grd_testlist.rowcount; iTestNo++) {
  472. //-----------------------------------
  473. if(ds_grid_grd_testlist.getColumn(iTestNo,"choi")=="1"){
  474. //-----------------------------------
  475. for(var iSpcNo=0; iSpcNo <ds_grid_grd_spclist.rowcount; iSpcNo++) {
  476. //-----------------------------------
  477. if(ds_grid_grd_spclist.getColumn(iSpcNo,"choi")=="1"){
  478. //-----------------------------------
  479. ds_grid_grd_testinfolist.addRow();
  480. iLastNo = Number(ds_grid_grd_testinfolist.rowcount)-1;
  481. //-------------------------------------
  482. ds_grid_grd_testinfolist.setColumn(iLastNo,"choi" , "0");
  483. ds_grid_grd_testinfolist.setColumn(iLastNo,"instcd" , ds_grid_grd_testlist.getColumn(iTestNo,"instcd"));
  484. ds_grid_grd_testinfolist.setColumn(iLastNo,"testcd" , ds_grid_grd_testlist.getColumn(iTestNo,"testcd"));
  485. ds_grid_grd_testinfolist.setColumn(iLastNo,"testengnm" , ds_grid_grd_testlist.getColumn(iTestNo,"testengnm"));
  486. ds_grid_grd_testinfolist.setColumn(iLastNo,"spccd" , ds_grid_grd_spclist.getColumn(iSpcNo,"spccd"));
  487. ds_grid_grd_testinfolist.setColumn(iLastNo,"spcnm" , ds_grid_grd_spclist.getColumn(iSpcNo,"spcnm"));
  488. ds_grid_grd_testinfolist.setColumn(iLastNo,"delflagcd" , "0");
  489. ds_grid_grd_testinfolist.setColumn(iLastNo,"fromdd" , utlf_getCurrentDate());
  490. ds_grid_grd_testinfolist.setColumn(iLastNo,"todd" , "99991231");
  491. ds_grid_grd_testinfolist.setColumn(iLastNo,"tubecd" , "-");
  492. ds_grid_grd_testinfolist.setColumn(iLastNo,"readid" , "-");
  493. ds_grid_grd_testinfolist.setColumn(iLastNo,"incfnm" , "-");
  494. ds_grid_grd_testinfolist.setColumn(iLastNo,"barcdprtncnt", "1");
  495. ds_grid_grd_testinfolist.setColumn(iLastNo,"state" , "1"); //신규(1)
  496. }
  497. }
  498. //------------------------------------
  499. //생성 후 선택 자동 취소(검사)
  500. ds_grid_grd_testlist.setColumn(iTestNo,"choi","0");
  501. }
  502. }
  503. for(var iSpcNo=0; iSpcNo<ds_grid_grd_spclist.rowcount; iSpcNo++){
  504. if(ds_grid_grd_spclist.getColumn(iSpcNo,"choi")=="1"){
  505. ds_grid_grd_spclist.setColumn(iSpcNo,"choi","0");
  506. }
  507. }
  508. //-----------------------------------
  509. if(Number(ds_grid_grd_testinfolist.rowcount)>28){
  510. ds_grid_grd_testinfolist.rowposition = Number(ds_grid_grd_testinfolist.rowcount)-28;
  511. } else {
  512. ds_grid_grd_testinfolist.rowposition = 0;
  513. }
  514. }
  515. /**********************************************************************************
  516. * Name : lf_exeTestInfoSave
  517. * Description : 저장
  518. * Argument :
  519. * return Type : Null
  520. * Author : Autumn
  521. ***********************************************************************************/
  522. function lf_exeTestInfoSave(){
  523. var nRow =0;
  524. for(nRow=0;nRow<ds_grid_grd_testinfolist.rowcount;nRow++){
  525. if(ds_grid_grd_testinfolist.getRowType(nRow) == Dataset.ROWTYPE_INSERT )
  526. {
  527. ds_grid_grd_testinfolist.setColumn(nRow,"m", "i");
  528. ds_grid_grd_testinfolist.setColumn(nRow,"readdr", ds_grid_grd_testinfolist.getColumn(nRow,"readid"));
  529. }
  530. if(ds_grid_grd_testinfolist.getRowType(nRow) == Dataset.ROWTYPE_UPDATE )
  531. {
  532. ds_grid_grd_testinfolist.setColumn(nRow,"m", "u");
  533. ds_grid_grd_testinfolist.setColumn(nRow,"readdr", ds_grid_grd_testinfolist.getColumn(nRow,"readid"));
  534. }
  535. }
  536. tranf_submit({
  537. id: "TXLPC00701"
  538. , service: "plgybaseinfomngtapp.TestInfo"
  539. , method: "reqSetTestInfoInfo"
  540. , inds : "refData=ds_grid_grd_testinfolist:U"
  541. , callback: "cbf_TXLPC00701"
  542. , async: false
  543. });
  544. }
  545. /**********************************************************************************
  546. * Name : cbf_TXLPC00701
  547. * Description : 저장관련 콜백함수
  548. * Argument :
  549. * return Type : Null
  550. * Author : Autumn
  551. ***********************************************************************************/
  552. function cbf_TXLPC00701(strSvcID, nErrorCode, strErrorMag){
  553. if (nErrorCode != 0) {
  554. return ;
  555. }
  556. switch (strSvcID) {
  557. case "TXLPC00701":
  558. sysf_messageBox("저장이","I002","");
  559. lf_getRefData("testinfolist");
  560. break;
  561. default:
  562. break;
  563. }
  564. }
  565. //=======================================================================================
  566. // Event
  567. //---------------------------------------------------------------------------------------
  568. /****************************************************************************************
  569. * Components :
  570. * Components ID : SMLPC00700
  571. * Event : onload
  572. * Argument : 01.obj : Object Event has occurred
  573. * : 02.e : Event Object
  574. * Description :
  575. ****************************************************************************************/
  576. function SMLPC00700_onload(obj:Form, e:LoadEventInfo)
  577. {
  578. frmf_initForm(obj); // 화면공통
  579. //마우스 우측 메뉴 항목 세팅
  580. grdf_initGrid(grd_testlist);
  581. grdf_initGrid(grd_spclist);
  582. grdf_initGrid(grd_testinfolist);
  583. frmf_createPopupMenu("pm_SubMenu", "pm_SubMenu_onmenuclick");
  584. lf_exeInitialize();
  585. }
  586. /****************************************************************************************
  587. * Components :
  588. * Components ID : button3
  589. * Event : onclick
  590. * Argument : 01.obj : Object Event has occurred
  591. * : 02.e : Event Object
  592. * Description :
  593. ****************************************************************************************/
  594. function button3_onclick(obj:Button, e:ClickEventInfo)
  595. {
  596. lf_getRefData("testinfolist");
  597. }
  598. /****************************************************************************************
  599. * Components :
  600. * Components ID : grd_testinfolist
  601. * Event : oncellclick
  602. * Argument : 01.obj : Object Event has occurred
  603. * : 02.e : Event Object
  604. * Description :
  605. ****************************************************************************************/
  606. function grd_testinfolist_oncellclick(obj:Grid, e:GridClickEventInfo)
  607. {
  608. //체크해재시 상태값 초기화(개별 체크)
  609. if(e.col == grd_testinfolist.getBindCellIndex("body", "choi")){
  610. if(ds_grid_grd_testinfolist.getColumn(e.row, "choi") != "1"){
  611. var arrPostion = new Array();
  612. arrPostion[0] = e.row;
  613. grdf_setStatus(grd_testinfolist,"", arrPostion);
  614. }
  615. }
  616. }
  617. /****************************************************************************************
  618. * Components :
  619. * Components ID : group1_ipt_refval
  620. * Event : onkeydown
  621. * Argument : 01.obj : Object Event has occurred
  622. * : 02.e : Event Object
  623. * Description :
  624. ****************************************************************************************/
  625. function group1_ipt_refval_onkeydown(obj:Edit, e:KeyEventInfo)
  626. {
  627. if (e.keycode == '13') {
  628. var sText = group1.ipt_refval.text;
  629. group1.ipt_refval.value = sText.toUpperCase();
  630. //조회호출
  631. lf_getRefData("testinfolist");
  632. }
  633. }
  634. /****************************************************************************************
  635. * Components :
  636. * Components ID : button1
  637. * Event : onclick
  638. * Argument : 01.obj : Object Event has occurred
  639. * : 02.e : Event Object
  640. * Description :
  641. ****************************************************************************************/
  642. function button1_onclick(obj:Button, e:ClickEventInfo)
  643. {
  644. //다음 페이지 클릭시
  645. lf_getTestInfoList(Number(ipt_paval.value)+1);
  646. }
  647. /****************************************************************************************
  648. * Components :
  649. * Components ID : btn_prntexcel
  650. * Event : onclick
  651. * Argument : 01.obj : Object Event has occurred
  652. * : 02.e : Event Object
  653. * Description :
  654. ****************************************************************************************/
  655. function btn_prntexcel_onclick(obj:Button, e:ClickEventInfo)
  656. {
  657. //이전 페이지 클릭시
  658. lf_getTestInfoList(Number(ipt_paval.value) - 1);
  659. }
  660. /****************************************************************************************
  661. * Components :
  662. * Components ID : button2
  663. * Event : onclick
  664. * Argument : 01.obj : Object Event has occurred
  665. * : 02.e : Event Object
  666. * Description :
  667. ****************************************************************************************/
  668. function button2_onclick(obj:Button, e:ClickEventInfo)
  669. {
  670. //처음 페이지 클릭시
  671. lf_getTestInfoList(1);
  672. }
  673. /****************************************************************************************
  674. * Components :
  675. * Components ID : button4
  676. * Event : onclick
  677. * Argument : 01.obj : Object Event has occurred
  678. * : 02.e : Event Object
  679. * Description :
  680. ****************************************************************************************/
  681. function button4_onclick(obj:Button, e:ClickEventInfo)
  682. {
  683. //최종 페이지 클릭시
  684. lf_getTestInfoList(cap_lastPage.text);
  685. }
  686. /****************************************************************************************
  687. * Components :
  688. * Components ID : btn_addcste
  689. * Event : onclick
  690. * Argument : 01.obj : Object Event has occurred
  691. * : 02.e : Event Object
  692. * Description :
  693. ****************************************************************************************/
  694. function btn_addcste_onclick(obj:Button, e:ClickEventInfo)
  695. {
  696. lf_exeInfoSend();
  697. }
  698. /****************************************************************************************
  699. * Components :
  700. * Components ID: btn_save
  701. * Event : onclick
  702. * Argument : 01.obj : Object Event has occurred
  703. * : 02.e : Event Object
  704. * Description :
  705. ****************************************************************************************/
  706. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  707. {
  708. lf_exeTestInfoSave();
  709. }
  710. /****************************************************************************************
  711. * Components : Combo
  712. * Components ID: cmb_useflagcd
  713. * Event : onitemchanged
  714. * Argument : 01.obj : Object Event has occurred
  715. * : 02.e : Event Object
  716. * Description : 사용여부지정
  717. ****************************************************************************************/
  718. function cmb_useflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  719. {
  720. var iFindRow = ds_grid_grd_testinfolist.findRow("choi", "1");
  721. if (iFindRow == -1) {
  722. return ;
  723. }
  724. for (var i = 0; i < ds_grid_grd_testinfolist.rowcount; i++) {
  725. if (ds_grid_grd_testinfolist.getColumn(i, "choi") == "1" && ds_grid_grd_testinfolist.getColumn(i, "state") != "1") {
  726. if (cmb_useflagcd.value != ds_grid_grd_testinfolist.getColumn(i, "delflagcd")) {
  727. ds_grid_grd_testinfolist.setColumn(i, "state" , "2") ;
  728. ds_grid_grd_testinfolist.setColumn(i, "delflagcd", cmb_useflagcd.value) ;
  729. }
  730. }
  731. }
  732. }
  733. /****************************************************************************************
  734. * Components : Grid
  735. * Components ID : grd_medireclist
  736. * Event : ondragmove
  737. * Argument : 01.obj : Object Event has occurred
  738. * : 02.e : Event Object
  739. * Description : 전체설정 그리드 드레그 이벤트
  740. ****************************************************************************************/
  741. function grd_spclist_ondragmove(obj:Grid, e:GridDragEventInfo)
  742. {
  743. fAddColDragOver(obj, e);
  744. }
  745. /****************************************************************************************
  746. * Function : fAddColDragOver
  747. * Description : 컬럼 추가 드래그 종료
  748. * Argument : 01.obj : Object Event has occurred
  749. * : 02.e : Event Object
  750. * retrun type :
  751. * Creator :
  752. ****************************************************************************************/
  753. function fAddColDragOver(obj:Grid, e:GridDragEventInfo){
  754. if(e.button == "lbutton")
  755. obj.style.cursor = "hand";
  756. else
  757. obj.style.cursor = "auto";
  758. }
  759. function grd_spclist_ondrag(obj:Grid, e:GridDragEventInfo)
  760. {
  761. if(e.row < 0 || e.col < 0) return false;
  762. fAddColDragStart(obj, e);
  763. return true;
  764. }
  765. /****************************************************************************************
  766. * Function : fAddColDragStart
  767. * Description : 컬럼 추가 드래그 시작
  768. * Argument : 01.obj : Object Event has occurred
  769. * : 02.e : Event Object
  770. * retrun type :
  771. * Creator :
  772. ****************************************************************************************/
  773. function fAddColDragStart(obj:Grid, e:GridDragEventInfo){
  774. var sDropData = ""; // Drag Drop 파라미터 데이터
  775. var sDragColNm = ""; // 컬럼명
  776. var sDragColSz = ""; // 컬럼 사이즈
  777. var nCurCol = 0; // 선택된 컬럼 번호
  778. var SelectedCells = grdf_getSelectedCols(obj);
  779. for(var i = 0; i < SelectedCells.length; i++){
  780. nCurCol = SelectedCells[i];
  781. sDragColNm = lf_getBindCellName(obj, nCurCol);
  782. sDragColSz = obj.getRealColSize(nCurCol);
  783. if(eval(sDragColSz) > 0) {
  784. if(utlf_isNull(sDropData)) {
  785. sDropData = sDragColNm + "^" + sDragColSz;
  786. } else {
  787. sDropData = sDropData + "|" + sDragColNm + "^" + sDragColSz;
  788. }
  789. }
  790. }
  791. e.userdata = sDropData;
  792. //e.dragimage = obj.saveToImageObject();
  793. }
  794. function grd_spclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  795. {
  796. if(e.cell>0){
  797. ds_grid_grd_spclist.rowposition = e.row;
  798. lf_GetRMouseDown(e.screenX, e.screenY, e.row, e.col);
  799. }
  800. }
  801. function lf_GetRMouseDown(screenX, screenY, row, col){
  802. if(row > -1){
  803. frmf_setPopupMenuDs("pm_SubMenu", [{id: "fExeSpcSelect", level: "0", title: "선택"}
  804. , {id: "fExeSpcDeSelect",level: "0", title: "해제"}]);
  805. pm_SubMenu.trackPopup(screenX+5,screenY+5,"right bottom");
  806. }
  807. }
  808. /****************************************************************************************
  809. * Components :
  810. * Components ID : pm_SubMenu
  811. * Event : onmenuclick
  812. * Argument : 01.obj : Object Event has occurred
  813. * : 02.e : Event Object
  814. * Description : 상세처방조회 마우스 우측메뉴 클릭 이벤트
  815. ****************************************************************************************/
  816. function pm_SubMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
  817. lf_Onmenu(e.id);
  818. }
  819. //우클릭팝업메뉴 선택
  820. function lf_Onmenu(id){
  821. if(id == "fExeSpcSelect"){//선택
  822. fExeSpcSelect();
  823. }else if(id == "fExeSpcDeSelect"){//취소
  824. fExeSpcDeSelect();
  825. }
  826. }
  827. /* @group : 검사정보등록 화면
  828. * @ver : 2011.02.10 (CMCDEV-0001)
  829. * @by : 유동철
  830. * @-----------------------------------
  831. * @type : function
  832. * @access : public
  833. * @desc : 검체목록 선택 함수
  834. */
  835. function fExeSpcSelect() {
  836. var iFirstRow = grd_spclist.selectstartrow;
  837. var iLasrRow = grd_spclist.selectendrow;
  838. //---------------------------------------------------
  839. for(var i = iFirstRow; i <= iLasrRow ; i++) {
  840. ds_grid_grd_spclist.setColumn(i,"choi","1");
  841. }
  842. }
  843. /* @group : 검사정보등록 화면
  844. * @ver : 2011.02.10 (CMCDEV-0001)
  845. * @by : 유동철
  846. * @-----------------------------------
  847. * @type : function
  848. * @access : public
  849. * @desc : 검체목록 선택취소 함수
  850. */
  851. function fExeSpcDeSelect() {
  852. var iFirstRow = grd_spclist.selectstartrow;
  853. var iLasrRow = grd_spclist.selectendrow;
  854. //---------------------------------------------------
  855. for(var i = iFirstRow; i <= iLasrRow ; i++) {
  856. ds_grid_grd_spclist.setColumn(i,"choi","0");
  857. }
  858. }
  859. ]]></Script>
  860. </Form>
  861. </FDL>