SMLLF01700_분주라벨그룹관리.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF01700" position="absolute 0 0 1226 784" titletext="WorkList그룹관리" onload="SMLLF01700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp3" position="absolute 0 25 1226 782" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_2" position="absolute 0 52 132 72" anchor="default" text="WorkList그룹 목록" positiontype="position"/>
  11. <Static id="caption3" class="tit_2" position="absolute 575 420 647 440" anchor="default" text="검사목록" positiontype="position"/>
  12. <Div id="group1" position="absolute 0 3 1225 45" anchor="left top right" class="div_SA" positiontype="position">
  13. <Layouts>
  14. <Layout>
  15. <Button id="btn_ref" class="btn1" position="absolute 1161 8 1217 28" anchor="top right" text="조회" onclick="grp3_group1_btn_ref_onclick" positiontype="position"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Button id="btn_rowadd" class="btn2" position="absolute 450 49 506 69" anchor="default" text="행추가" onclick="grp3_btn_rowadd_onclick" positiontype="position"/>
  20. <Button id="btn_divgrupdel" class="btn2" position="absolute 509 49 565 69" anchor="default" text="행삭제" onclick="grp3_btn_divgrupdel_onclick" positiontype="position"/>
  21. <Static id="caption2" class="tit_2" position="absolute 575 52 685 72" anchor="default" text="선택검사목록" positiontype="position"/>
  22. <Button id="btn_up" class="icon_top" position="absolute 916 390 942 410" anchor="default" text="" onclick="grp3_btn_up_onclick" positiontype="position"/>
  23. <Combo id="cmb_tsectcd" class="combo_s_essential" position="absolute 931 417 1129 437" anchor="default" codecolumn="cd" datacolumn="nm" innerdataset="@ds_init_tsectcd" index="-1" onitemchanged="grp3_cmb_tsectcd_onitemchanged" positiontype="position"/>
  24. <Static id="caption4" class="search_name" position="absolute 658 417 722 437" anchor="default" text="검사분류" positiontype="position"/>
  25. <Combo id="cmb_sectcd" class="combo_s_essential" position="absolute 730 417 928 437" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" index="-1" onitemchanged="grp3_cmb_sectcd_onitemchanged" positiontype="position"/>
  26. <Grid id="grd_choitestlist" position="absolute 575 72 1225 380" anchor="left top right" binddataset="ds_grid_grd_choitestlist" extendsizetype="none" autoenter="select" cellsizingtype="col" positiontype="position">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="30"/>
  31. <Column size="30"/>
  32. <Column size="82"/>
  33. <Column size="175"/>
  34. <Column size="0"/>
  35. <Column size="80"/>
  36. <Column size="80"/>
  37. <Column size="62"/>
  38. <Column size="57"/>
  39. <Column size="100"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell/>
  47. <Cell col="1" displaytype="normal" edittype="none" text="상태"/>
  48. <Cell col="2" text="검사코드"/>
  49. <Cell col="3" text="검사명"/>
  50. <Cell col="4" text="검체코드"/>
  51. <Cell col="5" text="검사명(출력)"/>
  52. <Cell col="6" text="검사명(라벨)"/>
  53. <Cell col="7" text="검사구분"/>
  54. <Cell col="8" text="출력순서"/>
  55. <Cell col="9" text="Worklist시작번호"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell celltype="head" expr="currow+1"/>
  59. <Cell col="1" displaytype="image" expr="expr: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'))"/>
  60. <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:tclscd"/>
  61. <Cell col="3" style="align:left;" text="bind:tclsnm"/>
  62. <Cell col="4"/>
  63. <Cell col="5" displaytype="normal" edittype="normal" text="bind:divgrupprntnm"/>
  64. <Cell col="6" edittype="normal" text="bind:divgruplblnm"/>
  65. <Cell col="7" style="align:center middle;" text="bind:tclskindn"/>
  66. <Cell col="8" edittype="normal" text="bind:divgrupdispseq"/>
  67. <Cell col="9" edittype="normal" style="align:left middle;" text="bind:divgrupstartno"/>
  68. </Band>
  69. </Format>
  70. </Formats>
  71. </Grid>
  72. <Grid id="grd_testlist" position="absolute 575 440 1224 757" anchor="all" binddataset="ds_grid_grd_testlist" cellsizingtype="col" positiontype="position" autofittype="col">
  73. <Formats>
  74. <Format id="default">
  75. <Columns>
  76. <Column size="30"/>
  77. <Column size="26"/>
  78. <Column size="82"/>
  79. <Column size="213"/>
  80. <Column size="76"/>
  81. <Column size="0"/>
  82. <Column size="65"/>
  83. </Columns>
  84. <Rows>
  85. <Row size="24" band="head"/>
  86. <Row size="24"/>
  87. </Rows>
  88. <Band id="head">
  89. <Cell celltype="head"/>
  90. <Cell col="1"/>
  91. <Cell col="2" text="검사코드"/>
  92. <Cell col="3" text="검사명"/>
  93. <Cell col="4" text="그룹명"/>
  94. <Cell col="5" text="그룹코드"/>
  95. <Cell col="6" text="검사구분"/>
  96. </Band>
  97. <Band id="body">
  98. <Cell celltype="head" expr="currow+1"/>
  99. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  100. <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:tclscd"/>
  101. <Cell col="3" style="align:left;" text="bind:tclsnm"/>
  102. <Cell col="4" text="bind:divgrupnm"/>
  103. <Cell col="5" text="bind:divgrupcd"/>
  104. <Cell col="6" style="align:center middle;" text="bind:tclskindn"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. <Grid id="grd_divgruplist" position="absolute 0 72 565 757" anchor="left top bottom" onclick="grd_divgruplist_onclick" binddataset="ds_grid_grd_divgruplist" oncellclick="grp3_grd_divgruplist_oncellclick" autoenter="select" positiontype="position">
  110. <Formats>
  111. <Format id="default">
  112. <Columns>
  113. <Column size="30"/>
  114. <Column size="30"/>
  115. <Column size="57"/>
  116. <Column size="120"/>
  117. <Column size="120"/>
  118. <Column size="0"/>
  119. <Column size="100"/>
  120. <Column size="100"/>
  121. </Columns>
  122. <Rows>
  123. <Row size="24" band="head"/>
  124. <Row size="24"/>
  125. </Rows>
  126. <Band id="head">
  127. <Cell/>
  128. <Cell col="1" text="상태"/>
  129. <Cell col="2" text="그룹코드"/>
  130. <Cell col="3" text="그룹명"/>
  131. <Cell col="4" text="그룹명(화면)"/>
  132. <Cell col="5" text="WorkList명(약어)"/>
  133. <Cell col="6" text="그룹명(출력)"/>
  134. <Cell col="7" text="그룹명(라벨)"/>
  135. </Band>
  136. <Band id="body">
  137. <Cell celltype="head" displaytype="normal" expr="currow+1"/>
  138. <Cell col="1" displaytype="image" expr="expr: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'))"/>
  139. <Cell col="2" edittype="normal" text="bind:divgrupcd"/>
  140. <Cell col="3" edittype="normal" text="bind:divgrupnm"/>
  141. <Cell col="4" edittype="normal" text="bind:divgrupscrnm"/>
  142. <Cell col="5"/>
  143. <Cell col="6" edittype="normal" text="bind:divgrupprntnm"/>
  144. <Cell col="7" edittype="normal" text="bind:divgruplblnm"/>
  145. </Band>
  146. </Format>
  147. </Formats>
  148. </Grid>
  149. <Button id="btn_choitestdel" class="btn2" position="absolute 1168 49 1224 69" anchor="top right" text="행삭제" onclick="grp3_btn_choitestdel_onclick" positiontype="position"/>
  150. </Layout>
  151. </Layouts>
  152. </Div>
  153. <Static id="caption6" text="WorkList그룹 관리" class="tit_1" position="absolute 0 3 159 28"/>
  154. <Button id="btn_save" taborder="1" text="저장" onclick="grp4_btn_save_onclick" class="btn4" position="absolute 1096 4 1152 24" anchor="top right"/>
  155. <Button id="btn_init" taborder="2" text="초기화" onclick="grp4_btn_init_onclick" class="btn4" position="absolute 1155 4 1224 24" anchor="top right"/>
  156. </Layout>
  157. </Layouts>
  158. <Objects>
  159. <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="cd" type="STRING"/>
  162. <Column id="nm" type="STRING"/>
  163. </ColumnInfo>
  164. </Dataset>
  165. <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="cd" type="STRING"/>
  168. <Column id="nm" type="STRING"/>
  169. </ColumnInfo>
  170. </Dataset>
  171. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  172. <ColumnInfo>
  173. <Column id="cd" type="STRING"/>
  174. <Column id="nm" type="STRING"/>
  175. </ColumnInfo>
  176. </Dataset>
  177. <Dataset id="ds_init_tsectcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="cd" type="STRING"/>
  180. <Column id="nm" type="STRING"/>
  181. </ColumnInfo>
  182. </Dataset>
  183. <Dataset id="ds_grid_grd_testlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  184. <ColumnInfo>
  185. <Column id="choi" type="STRING"/>
  186. <Column id="tclscd" type="STRING"/>
  187. <Column id="tclsnm" type="STRING"/>
  188. <Column id="spccd" type="STRING"/>
  189. <Column id="spcnm" type="STRING"/>
  190. <Column id="divgrupnm" type="STRING"/>
  191. <Column id="tclskind" type="STRING"/>
  192. <Column id="tclskindn" type="STRING"/>
  193. <Column id="divgrupcd" type="STRING"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_grid_grd_choitestlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="choi" type="STRING"/>
  199. <Column id="tclscd" type="STRING"/>
  200. <Column id="tclsnm" type="STRING"/>
  201. <Column id="spccd" type="STRING"/>
  202. <Column id="spcnm" type="STRING"/>
  203. <Column id="divgrupnm" type="STRING"/>
  204. <Column id="tclskind" type="STRING"/>
  205. <Column id="tclskindn" type="STRING"/>
  206. <Column id="divgrupdispseq" type="STRING"/>
  207. <Column id="divgrupstartno" type="STRING"/>
  208. </ColumnInfo>
  209. </Dataset>
  210. <Dataset id="ds_grid_grd_divgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  211. <ColumnInfo>
  212. <Column id="divgrupcd" type="STRING"/>
  213. <Column id="divgrupnm" type="STRING"/>
  214. <Column id="divgrupscrnm" type="STRING"/>
  215. <Column id="divgrupabbrnm" type="STRING"/>
  216. <Column id="divgrupprntnm" type="STRING"/>
  217. <Column id="divgruplblnm" type="STRING"/>
  218. </ColumnInfo>
  219. </Dataset>
  220. <Dataset id="ds_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  221. <ColumnInfo>
  222. <Column id="able" type="STRING" size="256"/>
  223. </ColumnInfo>
  224. </Dataset>
  225. <Dataset id="ds_execute" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  226. <ColumnInfo>
  227. <Column id="able" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. </Dataset>
  230. </Objects>
  231. <Bind>
  232. <BindItem id="item0" compid="grp3.btn_rowadd" propid="enable" datasetid="ds_execute" columnid="able"/>
  233. <BindItem id="item1" compid="grp3.btn_divgrupdel" propid="enable" datasetid="ds_execute" columnid="able"/>
  234. <BindItem id="item2" compid="grp3.btn_choitestdel" propid="enable" datasetid="ds_execute" columnid="able"/>
  235. <BindItem id="item3" compid="grp3.btn_up" propid="enable" datasetid="ds_execute" columnid="able"/>
  236. <BindItem id="item4" compid="btn_save" propid="enable" datasetid="ds_execute" columnid="able"/>
  237. </Bind>
  238. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  239. * System Name :
  240. * Job Name :
  241. * Creator :
  242. * Make Date : 2015-11-09
  243. * Description :
  244. *---------------------------------------------------------------------------------------
  245. * Modify Date Modifier Modify Description
  246. *---------------------------------------------------------------------------------------
  247. * 2015-11-09 Live Converter TF->XP
  248. *
  249. *---------------------------------------------------------------------------------------
  250. ****************************************************************************************/
  251. include "com_commonxp::comm_main.xjs";
  252. include "lis_commonxp::LLZ001.xjs";
  253. function SMLLF01700_onload(obj:Form, e:LoadEventInfo)
  254. {
  255. //폼 초기화 함수
  256. frmf_initForm(obj);
  257. //그리드 Sort
  258. grdf_setGridSort(grp3.grd_divgruplist);
  259. grdf_setGridSort(grp3.grd_choitestlist);
  260. grdf_setGridSort(grp3.grd_testlist);
  261. //초기정보 조회
  262. lf_setInitData();
  263. ds_init_tsectcd.copyData(ds_init_lb0102);
  264. //콤보박스 index = 0 초기화
  265. grp3.cmb_sectcd.index = 0;
  266. grp3.cmb_tsectcd.index = 0;
  267. //검사목록 조회
  268. lf_testList();
  269. lf_menumaster();//메뉴권한
  270. }
  271. function cbf_SMLLF01700(strSvcID, nErrorCode, strErrorMag){
  272. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  273. if(strSvcID == "TXLLF01701" && nErrorCode == 0){
  274. //저장후 자동조회
  275. lf_getDivGrupList();
  276. //첫번째행 자동조회
  277. lf_getChoiTestList();
  278. }
  279. }
  280. function lf_setInitData(){
  281. // 초기정보 조회
  282. lf_getDbDeptcd("0104|0102|0000|","cbf_SMLLF01700");
  283. }
  284. function lf_testList(){
  285. var sInDsName = dsf_createDsRow("ds_temp_search"
  286. , [{col: "lrgcd", val: grp3.cmb_sectcd.value}
  287. , {col: "mdlcd", val: grp3.cmb_tsectcd.value}
  288. , {col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
  289. var oParam = {};
  290. oParam.id = "TRLLF01701";
  291. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  292. oParam.method = "reqGetTestList";
  293. oParam.inds = "cond="+sInDsName;
  294. oParam.outds = "ds_grid_grd_testlist=getTestList";
  295. oParam.async = true;
  296. oParam.callback = "cbf_SMLLF01700";
  297. tranf_submit(oParam);
  298. }
  299. function lf_setLrgCd(){
  300. var nRow=0;
  301. var sLrgcd = grp3.cmb_sectcd.value;
  302. var sMdlcd = "";
  303. ds_init_tsectcd.clearData();
  304. if(sLrgcd == "00"){
  305. ds_init_tsectcd.copyData(ds_init_lb0102);
  306. }else{
  307. for(var i = 0; i<ds_init_lb0102.rowcount - 1; i++){
  308. sMdlcd = ds_init_lb0102.getColumn(i, "cd");
  309. sMdlcd = sMdlcd.substr(0, 1);
  310. if (sLrgcd==sMdlcd){
  311. nRow = ds_init_tsectcd.addRow();
  312. ds_init_tsectcd.copyRow(nRow,ds_init_lb0102,i);
  313. }
  314. }
  315. }
  316. grp3.cmb_tsectcd.index=0;
  317. }
  318. function lf_setChoiTestList(){
  319. var bfcheck = 0;
  320. var nRow;
  321. for(i=0; i< ds_grid_grd_testlist.rowcount; i++){
  322. var fcheck = ds_grid_grd_testlist.findRow("choi", "1", i, ds_grid_grd_testlist.rowcount+1)
  323. if(fcheck == -1 ) {
  324. break;
  325. }
  326. i = fcheck;
  327. var sTclscd = ds_grid_grd_testlist.getColumn(fcheck, "tclscd")
  328. var iTclscdRow = ds_grid_grd_choitestlist.findRow("tclscd", sTclscd, i, ds_grid_grd_testlist.rowcount+1);
  329. if(!utlf_isNull(ds_grid_grd_testlist.getColumn(fcheck, "divgrupnm"))&&
  330. ds_grid_grd_testlist.getColumn(fcheck, "divgrupnm") != ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupnm")
  331. ){
  332. //이미 W/L그룹이 존재하는 코드입니다. 중복되어 그룹을 설정 할 수 없습니다
  333. sysf_messageBox("이미 W/L그룹이 존재하는 코드입니다. 중복되어 그룹을 설정 ", "E001", "");
  334. return;
  335. } else if(iTclscdRow >= 0) {
  336. sysf_messageBox("코드 선택이", "E006", "");
  337. return;
  338. } else {
  339. dsf_createDs("ds_temp_testlist"
  340. , [{col: "tclscd", type: "String"}
  341. , {col: "tclsnm", type: "String"}
  342. , {col: "tclskind", type: "String"}]);
  343. nRow = ds_grid_grd_choitestlist.addRow();
  344. ds_grid_grd_choitestlist.setColumn(nRow,"tclscd", ds_grid_grd_testlist.getColumn(fcheck,"tclscd"));
  345. ds_grid_grd_choitestlist.setColumn(nRow,"tclsnm", ds_grid_grd_testlist.getColumn(fcheck,"tclsnm"));
  346. ds_grid_grd_choitestlist.setColumn(nRow,"tclskind", ds_grid_grd_testlist.getColumn(fcheck,"tclskind"));
  347. }
  348. }
  349. }
  350. function lf_getDivGrupList(){
  351. var sInDsName = dsf_createDsRow("ds_temp_search"
  352. , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
  353. var oParam = {};
  354. oParam.id = "TRLLF01702";
  355. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  356. oParam.method = "reqGetDivGrupList";
  357. oParam.inds = "cond="+sInDsName;
  358. oParam.outds = "ds_grid_grd_divgruplist=getDivGrupList";
  359. oParam.async = true;
  360. oParam.callback = "cbf_SMLLF01700";
  361. tranf_submit(oParam);
  362. }
  363. function lf_getChoiTestList(){
  364. var sInDsName = dsf_createDsRow("ds_temp_search"
  365. , [{col: "divgrupcd", val: ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupcd")}
  366. , {col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
  367. var oParam = {};
  368. oParam.id = "TRLLF01703";
  369. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  370. oParam.method = "reqGetChoiTestList";
  371. oParam.inds = "cond="+sInDsName;
  372. oParam.outds = "ds_grid_grd_choitestlist=getChoiTestList";
  373. oParam.async = true;
  374. oParam.callback = "cbf_SMLLF01700";
  375. tranf_submit(oParam);
  376. }
  377. function lf_addRow(){
  378. ds_grid_grd_divgruplist.addRow();
  379. }
  380. function lf_delRow(){
  381. var arrPostion = new Array();
  382. arrPostion[0] = ds_grid_grd_divgruplist.rowposition;
  383. if(ds_grid_grd_divgruplist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
  384. ds_grid_grd_divgruplist.deleteRow(arrPostion);
  385. } else {
  386. grdf_setStatus(grp3.grd_divgruplist, "D", arrPostion);
  387. }
  388. for(i = 0; i < ds_grid_grd_choitestlist.rowcount; i++){
  389. arrPostion[0] = i
  390. if(ds_grid_grd_choitestlist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
  391. ds_grid_grd_choitestlist.deleteRow(arrPostion);
  392. } else {
  393. grdf_setStatus(grp3.grd_choitestlist, "D", arrPostion);
  394. }
  395. }
  396. }
  397. function lf_delChoiTestListRow(){
  398. var arrPostion = new Array();
  399. arrPostion[0] = ds_grid_grd_choitestlist.rowposition;
  400. if(ds_grid_grd_choitestlist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
  401. ds_grid_grd_choitestlist.deleteRow(arrPostion);
  402. } else {
  403. grdf_setStatus(grp3.grd_choitestlist, "D", arrPostion);
  404. }
  405. }
  406. function lf_setInit(){
  407. //ds 초기화
  408. ds_grid_grd_divgruplist.clearData();
  409. ds_grid_grd_choitestlist.clearData();
  410. ds_init_tsectcd.copyData(ds_init_lb0102);
  411. //콤보박스 index = 0 초기화
  412. grp3.cmb_sectcd.index = 0;
  413. grp3.cmb_tsectcd.index = 0;
  414. //검사목록 조회
  415. lf_testList();
  416. }
  417. function lf_validCheck(){
  418. //선택된 분주의 검사항목 갯수 확인
  419. if(ds_grid_grd_choitestlist.rowcount < 1){
  420. sysf_messageBox("선택검사목록이 비어있을 수", "I004", "")
  421. return;
  422. }
  423. //그리드 필수 항목 널값체크
  424. var bChkValue= frmf_chkMdtGrid(grp3.grd_divgruplist,[2,3,4],["그룹코드","그룹명","그룹명(화면)"]);
  425. //그리드 선택 항목 '-'자동처리
  426. if(utlf_isNull(ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupabbrnm"))){
  427. ds_grid_grd_divgruplist.setColumn(ds_grid_grd_divgruplist.rowposition, "divgrupabbrnm", "-");
  428. }
  429. if(utlf_isNull(ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupprntnm"))){
  430. ds_grid_grd_divgruplist.setColumn(ds_grid_grd_divgruplist.rowposition, "divgrupprntnm", "-");
  431. }
  432. if(utlf_isNull(ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgruplblnm"))){
  433. ds_grid_grd_divgruplist.setColumn(ds_grid_grd_divgruplist.rowposition, "divgruplblnm", "-");
  434. }
  435. if(bChkValue==true) lf_saveDivGrupList();
  436. }
  437. function lf_saveDivGrupList(){
  438. ds_grid_grd_divgruplist.updatecontrol = false;
  439. var innnnn = ds_grid_grd_divgruplist.setRowType(ds_grid_grd_divgruplist.rowposition, Dataset.ROWTYPE_UPDATE);
  440. //분주라벨 그룹 정보 등록
  441. var sInDsName = dsf_createDsRow("ds_temp_search"
  442. , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
  443. // 서브밋호출
  444. var oParam = {};
  445. oParam.id = "TXLLF01701";
  446. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  447. oParam.method = "reqExeChoiTestList";
  448. oParam.inds = "cond=ds_grid_grd_divgruplist:U test=ds_grid_grd_choitestlist:U user="+sInDsName
  449. oParam.async = false;
  450. oParam.callback = "cbf_SMLLF01700";
  451. tranf_submit(oParam);
  452. }
  453. function lf_saveDivGrup(){
  454. //분주라벨 그룹 정보 등록
  455. var sInDsName = dsf_createDsRow("ds_temp_search"
  456. , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
  457. var oParam = {};
  458. oParam.id = "TXLLF01702";
  459. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  460. oParam.method = "reqDelDivGrupList";
  461. oParam.inds = "cond=ds_grid_grd_divgruplist:U user="+sInDsName;
  462. oParam.async = false;
  463. oParam.callback = "cbf_SMLLF01700";
  464. tranf_submit(oParam);
  465. }
  466. //진검 사용자별 메뉴권한
  467. function lf_menumaster(){
  468. var edit = frmf_checkAuth("X");
  469. var print = frmf_checkAuth("P");
  470. var eRow = ds_execute.addRow();
  471. var pRow = ds_print.addRow();
  472. if(edit == true){
  473. ds_execute.setColumn(eRow,"able",true);
  474. }
  475. if(print == true){
  476. ds_print.setColumn(pRow,"able",true);
  477. }
  478. }
  479. function grp3_cmb_sectcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
  480. //시행부서 검사계 초기정보 조회
  481. lf_setLrgCd();
  482. //검사목록 조회
  483. lf_testList();
  484. }
  485. function grp3_cmb_tsectcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
  486. //검사목록 조회
  487. lf_testList();
  488. }
  489. function grp3_btn_up_onclick(obj:Button, e:ClickEventInfo){
  490. //선택검사목록
  491. lf_setChoiTestList();
  492. }
  493. function grp3_group1_btn_ref_onclick(obj:Button, e:ClickEventInfo){
  494. //분주라벨 그룹목록 조회
  495. lf_getDivGrupList();
  496. //첫번째행 자동조회
  497. lf_getChoiTestList();
  498. }
  499. function grp3_grd_divgruplist_oncellclick(obj:Grid, e:GridClickEventInfo){
  500. //선택된 분주라벨 그룹목록 조회
  501. lf_getChoiTestList();
  502. }
  503. function grp3_btn_rowadd_onclick(obj:Button, e:ClickEventInfo){
  504. //WorklList 그룹목록 행추가
  505. lf_addRow();
  506. }
  507. function grp3_btn_divgrupdel_onclick(obj:Button, e:ClickEventInfo){
  508. //WorklList 그룹목록 행삭제
  509. lf_delRow();
  510. //저장
  511. lf_saveDivGrup();
  512. //분주라벨 그룹목록 조회
  513. lf_getDivGrupList();
  514. //첫번째행 자동조회
  515. lf_getChoiTestList();
  516. }
  517. function grp3_btn_choitestdel_onclick(obj:Button, e:ClickEventInfo){
  518. //선태검사목록 행삭제
  519. lf_delChoiTestListRow();
  520. }
  521. function grp4_btn_init_onclick(obj:Button, e:ClickEventInfo){
  522. //화면 초기화
  523. lf_setInit();
  524. }
  525. function grp4_btn_save_onclick(obj:Button, e:ClickEventInfo){
  526. //저장
  527. lf_validCheck();
  528. }
  529. ]]></Script>
  530. </Form>
  531. </FDL>