SMLLF00300_검체코드관리.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF00300" position="absolute 0 0 1259 805" titletext="검체코드관리" onload="SMLLF00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" class="tit_1" position="absolute 0 0 122 25" anchor="default" positiontype="position" text="검체코드관리"/>
  8. <Grid id="grd_spc" taborder="1" useinputpanel="false" position="absolute 0 97 1256 805" anchor="all" binddataset="ds_grid_grd_spc" positiontype="position" autoenter="select" onheadclick="grdf_setEventGrid" cellsizingtype="col" autofittype="col">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="0"/>
  13. <Column size="25"/>
  14. <Column size="85"/>
  15. <Column size="0"/>
  16. <Column size="55"/>
  17. <Column size="180"/>
  18. <Column size="150"/>
  19. <Column size="142"/>
  20. <Column size="150"/>
  21. <Column size="150"/>
  22. <Column size="80"/>
  23. <Column size="82"/>
  24. <Column size="80"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="75"/>
  29. <Column size="0"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="22" band="head"/>
  33. <Row size="20"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell text="No."/>
  37. <Cell col="1"/>
  38. <Cell col="2" text="사용시작일자"/>
  39. <Cell col="3" text="사용종료일자"/>
  40. <Cell col="4" text="검체코드"/>
  41. <Cell col="5" text="검체명"/>
  42. <Cell col="6" text="검체명(화면)"/>
  43. <Cell col="7" text="검체명(약어)"/>
  44. <Cell col="8" text="검체명(출력)"/>
  45. <Cell col="9" text="검체명(라벨)"/>
  46. <Cell col="10" text="기본용기코드"/>
  47. <Cell col="11" text="검체유형"/>
  48. <Cell col="12" text="유린검체여부"/>
  49. <Cell col="13" text="Urine채취시간"/>
  50. <Cell col="14" text="Urine팝업여부"/>
  51. <Cell col="15" text="확인코드"/>
  52. <Cell col="16" text="검체표시순서"/>
  53. <Cell col="17" text="미생물검체여부"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell celltype="head" expr="expr:currow+1"/>
  57. <Cell col="1" celltype="head" displaytype="image"/>
  58. <Cell col="2" displaytype="date" edittype="date" text="bind:spcfromdd"/>
  59. <Cell col="3" displaytype="date" edittype="date" text="bind:spctodd"/>
  60. <Cell col="4" style="align:left middle;background:EXPR(spctodd &lt; utlf_getCurrentDate() ? 'darksalmon' : 'default');background2:EXPR(spctodd &lt; utlf_getCurrentDate() ? 'darksalmon' : 'default');" text="bind:spccd"/>
  61. <Cell col="5" displaytype="text" text="bind:spcnm"/>
  62. <Cell col="6" displaytype="text" edittype="text" text="bind:spcscrnnm" editlimit="50" editlengthunit="utf8"/>
  63. <Cell col="7" displaytype="text" edittype="text" text="bind:spcabbrnm" editlimit="20" editlengthunit="utf8"/>
  64. <Cell col="8" displaytype="text" edittype="text" text="bind:spcprntnm" editlimit="20" editlengthunit="utf8"/>
  65. <Cell col="9" displaytype="text" edittype="text" text="bind:spclblnm" editlimit="10" editlengthunit="utf8"/>
  66. <Cell col="10" displaytype="text" edittype="text" text="bind:spcbasetubecd" editlimit="3" editlengthunit="utf8"/>
  67. <Cell col="11" displaytype="combo" edittype="combo" text="bind:spckind" combodataset="ds_init_spckind" combocodecol="cd" combodatacol="nm"/>
  68. <Cell col="12" displaytype="checkbox" edittype="checkbox" style="align:center;" text="bind:urinspcyn" expr="expr:urinspcyn == 'Y' || urinspcyn =='1' ? '1' : '0'" editlimit="1" editlengthunit="utf8" combodataset="ds_init_checkyn" combocodecol="cd" combodatacol="nm"/>
  69. <Cell col="13" displaytype="combo" edittype="expr:urinspcyn==&quot;N&quot;?&quot;readonly&quot;:&quot;combo&quot;" text="bind:urinextrtm" expr="expr:urinspcyn==&quot;N&quot;?&quot;-&quot;:urinextrtm" combodataset="ds_init_lb0010" combocodecol="cd" combodatacol="nm"/>
  70. <Cell col="14" displaytype="combo" edittype="expr:urinspcyn==&quot;N&quot;?&quot;readonly&quot;:&quot;combo&quot;" text="bind:urinpopwndyn" expr="expr:urinspcyn==&quot;N&quot;?&quot;N&quot;:urinpopwndyn" editlimit="1" editlengthunit="utf8" combodataset="ds_init_checkyn" combocodecol="cd" combodatacol="nm"/>
  71. <Cell col="15" displaytype="text" edittype="text" text="bind:cnfmcd" editlimit="3" editlengthunit="utf8"/>
  72. <Cell col="16" displaytype="text" edittype="text" editfilter="number" text="bind:spcdispseq" editlimit="10" editlengthunit="utf8"/>
  73. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:microspcyn"/>
  74. </Band>
  75. </Format>
  76. </Formats>
  77. </Grid>
  78. <Static id="caption1" text="검체코드상세내역" class="tit_2" position="absolute 0 77 133 97" positiontype="position"/>
  79. <Div id="grp_sea" taborder="2" position="absolute 0 25 1256 67" anchor="left top right" positiontype="position" class="div_SA">
  80. <Layouts>
  81. <Layout>
  82. <Button id="btn_search" taborder="2" text="검색" class="btn1" position="absolute 1116 10 1172 30" anchor="top right" positiontype="position" onclick="grp_sea_btn_search_onclick"/>
  83. <Shape id="line11" linetype="vertical" class="line_4" position="absolute 1108 6 1108 28" positiontype="position"/>
  84. <Shape id="line14" linetype="vertical" class="line_4" position="absolute 273 6 273 28" positiontype="position"/>
  85. <Static id="caption2" text="조회구분" class="search_name" position="absolute 8 10 82 30" positiontype="position"/>
  86. <Combo id="cmb_srchflag" taborder="3" class="combo_search" position="absolute 829 10 979 30" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="2" text="검체명">
  87. <Dataset id="innerdataset">
  88. <ColumnInfo>
  89. <Column id="codecolumn" size="256"/>
  90. <Column id="datacolumn" size="256"/>
  91. </ColumnInfo>
  92. <Rows>
  93. <Row>
  94. <Col id="codecolumn">1</Col>
  95. <Col id="datacolumn">검체코드</Col>
  96. </Row>
  97. <Row>
  98. <Col id="codecolumn">2</Col>
  99. <Col id="datacolumn">검체명</Col>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. </Combo>
  104. <Static id="caption4" text="검색구분" class="search_name" position="absolute 755 10 829 30" positiontype="position"/>
  105. <Edit id="ipt_refflag" taborder="4" class="input_search" position="absolute 982 10 1092 30" imemode="hangul" positiontype="position" autoselect="true" autoskip="true"/>
  106. <Combo id="cmb_refgbn" taborder="5" class="combo_search" position="absolute 82 10 232 30" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="1" text="사용코드" onitemchanged="grp_sea_cmb_refgbn_onitemchanged">
  107. <Dataset id="innerdataset">
  108. <ColumnInfo>
  109. <Column id="codecolumn" size="256"/>
  110. <Column id="datacolumn" size="256"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="codecolumn">1</Col>
  115. <Col id="datacolumn">사용코드</Col>
  116. </Row>
  117. <Row>
  118. <Col id="codecolumn">2</Col>
  119. <Col id="datacolumn">전체코드</Col>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. </Combo>
  124. <Button id="btn_reset" taborder="6" text="초기화" class="btn1" position="absolute 1175 10 1244 30" anchor="top right" positiontype="position" onclick="grp_sea_btn_reset_onclick"/>
  125. <Button id="btn_inquery" taborder="7" text="조회" class="btn1" position="absolute 256 10 312 30" anchor="top right" onclick="grp_sea_btn_inquery_onclick"/>
  126. </Layout>
  127. </Layouts>
  128. </Div>
  129. <Button id="btn_excel" taborder="3" text="엑셀" class="btn7" position="absolute 1137 74 1197 94" anchor="top right" positiontype="position" onclick="btn_excel_onclick"/>
  130. <Button id="btn_rowadd" taborder="4" text="행추가" class="btn2" position="absolute 1200 74 1256 94" anchor="top right" positiontype="position" onclick="btn_rowadd_onclick"/>
  131. <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1200 0 1256 20" anchor="top right" positiontype="position" onclick="btn_save_onclick"/>
  132. </Layout>
  133. </Layouts>
  134. <Objects>
  135. <Dataset id="ds_grid_grd_spc" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="spcfromdd" type="STRING"/>
  138. <Column id="spctodd" type="STRING"/>
  139. <Column id="spccd" type="STRING"/>
  140. <Column id="spcnm" type="STRING"/>
  141. <Column id="spcscrnnm" type="STRING"/>
  142. <Column id="spcabbrnm" type="STRING"/>
  143. <Column id="spcprntnm" type="STRING"/>
  144. <Column id="spclblnm" type="STRING"/>
  145. <Column id="spcbasetubecd" type="STRING"/>
  146. <Column id="spckind" type="STRING"/>
  147. <Column id="urinspcyn" type="STRING"/>
  148. <Column id="urinextrtm" type="STRING"/>
  149. <Column id="urinpopwndyn" type="STRING"/>
  150. <Column id="cnfmcd" type="STRING"/>
  151. <Column id="spcdispseq" type="STRING"/>
  152. <Column id="microspcyn" type="STRING"/>
  153. <Column id="checkcolor" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. </Dataset>
  156. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  157. <ColumnInfo>
  158. <Column id="cd" type="STRING"/>
  159. <Column id="nm" type="STRING"/>
  160. </ColumnInfo>
  161. </Dataset>
  162. <Dataset id="ds_init_lb0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="cd" type="STRING"/>
  165. <Column id="nm" type="STRING"/>
  166. </ColumnInfo>
  167. </Dataset>
  168. <Dataset id="ds_init_spckind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="cd" type="STRING"/>
  171. <Column id="nm" type="STRING"/>
  172. </ColumnInfo>
  173. <Rows>
  174. <Row>
  175. <Col id="cd">0</Col>
  176. <Col id="nm">기타검체</Col>
  177. </Row>
  178. <Row>
  179. <Col id="cd">1</Col>
  180. <Col id="nm">일반검체</Col>
  181. </Row>
  182. <Row>
  183. <Col id="cd">2</Col>
  184. <Col id="nm">미생물검체</Col>
  185. </Row>
  186. <Row>
  187. <Col id="cd">3</Col>
  188. <Col id="nm">혈액용량</Col>
  189. </Row>
  190. <Row>
  191. <Col id="cd">4</Col>
  192. <Col id="nm">방사면역검체</Col>
  193. </Row>
  194. <Row>
  195. <Col id="cd">5</Col>
  196. <Col id="nm">판독검체(종합검증용)</Col>
  197. </Row>
  198. <Row>
  199. <Col id="cd">6</Col>
  200. <Col id="nm">조직은행검체</Col>
  201. </Row>
  202. <Row>
  203. <Col id="cd">7</Col>
  204. <Col id="nm">검사배양검체</Col>
  205. </Row>
  206. </Rows>
  207. </Dataset>
  208. <Dataset id="ds_init_checkyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="cd" type="STRING"/>
  211. <Column id="nm" type="STRING"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row>
  215. <Col id="cd">Y</Col>
  216. <Col id="nm">Y</Col>
  217. </Row>
  218. <Row>
  219. <Col id="cd">N</Col>
  220. <Col id="nm">N</Col>
  221. </Row>
  222. </Rows>
  223. </Dataset>
  224. <Dataset id="ds_grid_grd_select" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="chk" type="STRING"/>
  227. <Column id="spccd" type="STRING"/>
  228. <Column id="spcnm" type="STRING"/>
  229. <Column id="spcscrnnm" type="STRING"/>
  230. <Column id="spcabbrnm" type="STRING"/>
  231. <Column id="spcprntnm" type="STRING"/>
  232. <Column id="spclblnm" type="STRING"/>
  233. <Column id="spckind" type="STRING"/>
  234. </ColumnInfo>
  235. </Dataset>
  236. <Dataset id="ds_database_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  237. <Dataset id="ds_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  238. <ColumnInfo>
  239. <Column id="able" type="STRING" size="256"/>
  240. </ColumnInfo>
  241. </Dataset>
  242. <Dataset id="ds_execute" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="able" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. </Dataset>
  247. </Objects>
  248. <Bind>
  249. <BindItem id="item0" compid="btn_excel" propid="enable" datasetid="ds_print" columnid="able"/>
  250. <BindItem id="item1" compid="btn_rowadd" propid="enable" datasetid="ds_execute" columnid="able"/>
  251. <BindItem id="item2" compid="btn_save" propid="enable" datasetid="ds_execute" columnid="able"/>
  252. </Bind>
  253. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  254. * System Name :
  255. * Job Name :
  256. * Creator :
  257. * Make Date : 2015-11-09
  258. * Description :
  259. *---------------------------------------------------------------------------------------
  260. * Modify Date Modifier Modify Description
  261. *---------------------------------------------------------------------------------------
  262. * 2015-11-09 Live Converter TF->XP
  263. *
  264. *---------------------------------------------------------------------------------------
  265. ****************************************************************************************/
  266. include "com_commonxp::comm_main.xjs";
  267. include "lis_commonxp::LLZ001.xjs";
  268. function SMLLF00300_onload(obj:Form, e:LoadEventInfo)
  269. {
  270. frmf_initForm(obj);
  271. grdf_setRowTypeIcon(grd_spc, 1);
  272. //조회구분에따라 종료일 숨기기
  273. lf_setHddentodd()
  274. //초기화 데이타셋 로딩
  275. lf_initDataSet()//
  276. //그리드 Sort
  277. grdf_setGridSort(grd_spc);
  278. //검체리스트 조회
  279. lf_getSpcList();
  280. lf_menumaster();//메뉴권한
  281. }
  282. //종료일 숨김처리
  283. function lf_setHddentodd(){
  284. // if(grp_sea.cmb_refgbn.value == "1"){
  285. // grd_spc.setFormatColProperty(3,"size",0);
  286. // } else {
  287. // grd_spc.setFormatColProperty(3,"size",90);
  288. // }
  289. lf_getSpcList();
  290. }
  291. //초기화데이타 로드
  292. function lf_initDataSet(){
  293. lf_getDbDeptcd("0000|0010|","cbf_SMLLF00300");
  294. }
  295. //조회버튼 클릭 시 검체 조회
  296. function lf_getSpcList(){
  297. var sInDsName = dsf_createDsRow("in_ds_search"
  298. , [{col: "cond1", val: grp_sea.cmb_refgbn.value}
  299. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  300. var oParam = {};
  301. oParam.id = "TRLLF00301";
  302. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  303. oParam.method = "reqGetSpcList";
  304. oParam.inds = "cond="+sInDsName;
  305. oParam.outds = "ds_grid_grd_spc=getspc";
  306. oParam.async = false;
  307. oParam.callback = "cbf_SMLLF00300";
  308. tranf_submit(oParam);
  309. }
  310. //검색버튼 클릭 시 검체조회
  311. function lf_getSpcSearch(){
  312. var sInDsName = dsf_createDsRow("in_ds_search"
  313. , [{col: "searchgbn", val: grp_sea.cmb_srchflag.value}
  314. , {col: "searchtext", val: grp_sea.ipt_refflag.value}
  315. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  316. var oParam = {};
  317. oParam.id = "TRLLF00302";
  318. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  319. oParam.method = "reqGetSpcListRef";
  320. oParam.inds = "cond="+sInDsName;
  321. oParam.outds = "ds_grid_grd_spc=getspcref";
  322. oParam.async = false;
  323. oParam.callback = "cbf_SMLLF00300";
  324. tranf_submit(oParam);
  325. }
  326. //콜백함수
  327. function cbf_SMLLF00300(strSvcID, nErrorCode, strErrorMag){
  328. if(strSvcID == "TXLLF00301" && nErrorCode==0){
  329. lf_getSpcList();
  330. sysf_messageBox("","I001","");
  331. }
  332. //종료체크
  333. lf_changeColor();
  334. }
  335. //종료된 데이타 색깔 바꾸기
  336. function lf_changeColor(){
  337. var i =0;
  338. var j =0;
  339. if (ds_grid_grd_spc.rowcount == 0) return;
  340. var sExpr = "EXPR(checkcolor)";
  341. //Row색깔 투입
  342. ds_grid_grd_spc.updatecontrol = false ;
  343. for(j=0; j < ds_grid_grd_spc.rowcount; j++){
  344. if (ds_grid_grd_spc.getColumn(j,"spctodd") < utlf_getCurrentDate()) {
  345. ds_grid_grd_spc.setColumn(j, "checkcolor", "yellow");
  346. } else {
  347. ds_grid_grd_spc.setColumn(j, "checkcolor", "default");
  348. }
  349. ds_grid_grd_spc.setRowType(j,"1");
  350. }
  351. ds_grid_grd_spc.updatecontrol = true ;
  352. //색깔변경
  353. for (i=0; i < grd_spc.getCellCount('Head'); i++ ) {
  354. grd_spc.setCellProperty("Body",i,"background", sExpr);
  355. grd_spc.setCellProperty("Body",i,"background2", sExpr);
  356. }
  357. }
  358. // 그리드 필수값 체크
  359. function lf_ckeckNull(){
  360. var nRow =0;
  361. var sSpcCd ="";
  362. var bChkValue= frmf_chkMdtGrid(grd_spc,[2,3,4,5,6,7],["사용시작일자","사용종료일자","검체코드","검체명","검체명(화면)","검체명(약어)"]);
  363. if(bChkValue==true) {
  364. //핵의학 검체일 경우
  365. if(lgv_sUserdeptflagcd == "N"){
  366. for(nRow=0;nRow<ds_grid_grd_spc.rowcount;nRow++){
  367. if(ds_grid_grd_spc.getRowType(nRow) == Dataset.ROWTYPE_INSERT || ds_grid_grd_spc.getRowType(nRow) == Dataset.ROWTYPE_UPDATE){
  368. sSpcCd = ds_grid_grd_spc.getColumn(nRow,"spccd");
  369. if(utlf_mid(sSpcCd,0,1) != "N"){
  370. sysf_messageBox("방사면역 검체코드는 첫 문자가 N으로 시작해야지만 등록 가능합니다.", "I", "");
  371. return;
  372. }
  373. } }
  374. //진검 검체일 경우
  375. } else {
  376. for(nRow=0;nRow<ds_grid_grd_spc.rowcount;nRow++){
  377. if(ds_grid_grd_spc.getRowType(nRow) == Dataset.ROWTYPE_INSERT || ds_grid_grd_spc.getRowType(nRow) == Dataset.ROWTYPE_UPDATE){
  378. sSpcCd = ds_grid_grd_spc.getColumn(nRow,"spccd");
  379. if(utlf_mid(sSpcCd,0,1) == "N"){
  380. sysf_messageBox("첫 문자가 N인 검체코드는 방사면역에서만 등록 가능합니다.","I", "");
  381. return;
  382. }
  383. }
  384. }
  385. }
  386. lf_saveSpcInfo();
  387. }
  388. }
  389. //데이터 저장
  390. function lf_saveSpcInfo(){
  391. // 서브밋호출
  392. var sInDsName = dsf_createDsRow("ds_temp_search"
  393. , [{col: "deptflag", val: lgv_sUserdeptflagcd }]);
  394. var oParam = {};
  395. oParam.id = "TXLLF00301";
  396. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  397. oParam.method = "reqExeSaveSpcInfo";
  398. oParam.inds = "splist=ds_grid_grd_spc:U deptflag="+sInDsName;
  399. oParam.outds = "ds_grid_grd_spc=getspc";
  400. oParam.async = false;
  401. oParam.callback = "cbf_SMLLF00300";
  402. tranf_submit(oParam);
  403. }
  404. //진검 사용자별 메뉴권한
  405. function lf_menumaster(){
  406. var edit = frmf_checkAuth("X");
  407. var print = frmf_checkAuth("P");
  408. var eRow = ds_execute.addRow();
  409. var pRow = ds_print.addRow();
  410. if(edit == true){
  411. ds_execute.setColumn(eRow,"able",true);
  412. }
  413. if(print == true){
  414. ds_print.setColumn(pRow,"able",true);
  415. }
  416. }
  417. function grp_sea_cmb_refgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  418. {
  419. lf_setHddentodd();
  420. }
  421. function grp_sea_btn_inquery_onclick(obj:Button, e:ClickEventInfo)
  422. {
  423. lf_getSpcList();
  424. }
  425. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  426. {
  427. lf_getSpcSearch();
  428. }
  429. function grp_sea_btn_reset_onclick(obj:Button, e:ClickEventInfo)
  430. {
  431. grp_sea.cmb_refgbn.index=0;
  432. grp_sea.cmb_srchflag.index=1;
  433. grp_sea.ipt_refflag.value="";
  434. lf_getSpcList();
  435. }
  436. function btn_rowadd_onclick(obj:Button, e:ClickEventInfo)
  437. {
  438. if(grp_sea.cmb_refgbn.value == "2"){ //전체코드 상태에서 행추가 안됨.
  439. sysf_messageBox("사용코드 조회상태일 때 행을 추가할 수 있습니다.", "I");
  440. return;
  441. }
  442. var nRow =0;
  443. var nSeq =0;
  444. var objArg = new Object();
  445. objArg.sDeptFlag = lgv_sUserdeptflagcd;
  446. ds_grid_grd_select.clearData();
  447. frmf_modal("SPLLF10500", "SPLLF10500", objArg, "", "", "", "", "", "", "", "", "", "M");
  448. for(var i=0; i < ds_grid_grd_select.rowcount;i++){
  449. if(ds_grid_grd_select.getColumn(i,"chk")==1){
  450. nRow = ds_grid_grd_spc.addRow();
  451. ds_grid_grd_spc.setColumn(nRow,"spcfromdd",utlf_getCurrentDate());
  452. ds_grid_grd_spc.setColumn(nRow,"spctodd","99991231");
  453. ds_grid_grd_spc.setColumn(nRow,"spccd",ds_grid_grd_select.getColumn(i,"spccd"));
  454. ds_grid_grd_spc.setColumn(nRow,"spcnm",ds_grid_grd_select.getColumn(i,"spcnm"));
  455. ds_grid_grd_spc.setColumn(nRow,"spcscrnnm",ds_grid_grd_select.getColumn(i,"spcscrnnm"));
  456. ds_grid_grd_spc.setColumn(nRow,"spcabbrnm",ds_grid_grd_select.getColumn(i,"spcabbrnm"));
  457. ds_grid_grd_spc.setColumn(nRow,"spcprntnm",ds_grid_grd_select.getColumn(i,"spcprntnm"));
  458. ds_grid_grd_spc.setColumn(nRow,"spclblnm",ds_grid_grd_select.getColumn(i,"spclblnm"));
  459. ds_grid_grd_spc.setColumn(nRow,"spckind",ds_grid_grd_select.getColumn(i,"spckind"));
  460. ds_grid_grd_spc.setColumn(nRow,"spcbasetubecd","-");
  461. ds_grid_grd_spc.setColumn(nRow,"urinspcyn","N");
  462. ds_grid_grd_spc.setColumn(nRow,"urinextrtm","-");
  463. ds_grid_grd_spc.setColumn(nRow,"urinpopwndyn","N");
  464. ds_grid_grd_spc.setColumn(nRow,"microspcyn","N");
  465. if (ds_grid_grd_spc.rowcount == 0) {
  466. ds_grid_grd_spc.setColumn(nRow,"spcdispseq",1);
  467. } else {
  468. nSeq= parseInt(ds_grid_grd_spc.getColumn(nRow -1, "spcdispseq"))+ 1;
  469. ds_grid_grd_spc.setColumn(nRow,"spcdispseq",nSeq);
  470. }
  471. }
  472. }
  473. }
  474. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. grdf_exportExcel(grd_spc, lf_lisGetTitle(this) + "_" + "검체코드마스터", "마스터");
  477. }
  478. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  479. {
  480. lf_ckeckNull();
  481. }]]></Script>
  482. </Form>
  483. </FDL>