SPMRT01900_금지약어추천약어관리.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRT01900" position="absolute 0 0 881 530" titletext="금지약어의 추천약어" onload="SPMRT01900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="6" position="absolute 0 0 484 80" class="div_SA2"/>
  8. <Button position="absolute 415 53 471 75" id="button27" class="btn1" text="조회" visible="false"/>
  9. <Shape position="absolute 396 55 402 77" linetype="vertical" id="line30" class="line_4"/>
  10. <CheckBox position="absolute 319 53 394 73" id="checkbox1" taborder="5" text="완전일치" truevalue="Y" falsevalue="N"/>
  11. <Static text="검색구분" position="absolute 7 9 93 26" id="caption1" class="search_name"/>
  12. <Static text="유효여부" position="absolute 7 32 93 49" id="caption2" class="search_name"/>
  13. <Combo position="absolute 88 8 213 27" id="combo1" codecolumn="codecolumn" datacolumn="datacolumn">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn"/>
  17. <Column id="datacolumn"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">%</Col>
  22. <Col id="datacolumn">전체</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">01</Col>
  26. <Col id="datacolumn">단어</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">02</Col>
  30. <Col id="datacolumn">상병</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">03</Col>
  34. <Col id="datacolumn">단위</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">04</Col>
  38. <Col id="datacolumn">기호</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <Combo position="absolute 218 8 313 27" id="combo2" codecolumn="codecolumn" datacolumn="datacolumn">
  44. <Dataset id="innerdataset">
  45. <ColumnInfo>
  46. <Column id="codecolumn"/>
  47. <Column id="datacolumn"/>
  48. </ColumnInfo>
  49. <Rows>
  50. <Row>
  51. <Col id="codecolumn">%</Col>
  52. <Col id="datacolumn">전체</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">01</Col>
  56. <Col id="datacolumn">약어</Col>
  57. </Row>
  58. <Row>
  59. <Col id="codecolumn">02</Col>
  60. <Col id="datacolumn">영문명</Col>
  61. </Row>
  62. <Row>
  63. <Col id="codecolumn">03</Col>
  64. <Col id="datacolumn">한글명</Col>
  65. </Row>
  66. </Rows>
  67. </Dataset>
  68. </Combo>
  69. <Combo position="absolute 88 31 213 50" id="combo3" codecolumn="codecolumn" datacolumn="datacolumn">
  70. <Dataset id="innerdataset">
  71. <ColumnInfo>
  72. <Column id="codecolumn"/>
  73. <Column id="datacolumn"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="codecolumn">%</Col>
  78. <Col id="datacolumn">전체</Col>
  79. </Row>
  80. <Row>
  81. <Col id="codecolumn">Y</Col>
  82. <Col id="datacolumn">유효</Col>
  83. </Row>
  84. <Row>
  85. <Col id="codecolumn">N</Col>
  86. <Col id="datacolumn">무효</Col>
  87. </Row>
  88. </Rows>
  89. </Dataset>
  90. </Combo>
  91. <Edit position="absolute 88 54 313 73" id="ipt_keyword" class="input_search" onkeydown="ipt_keyword_onkeydown"/>
  92. <Static text="검색어" position="absolute 7 55 93 72" id="caption4" class="search_name"/>
  93. <Shape position="absolute 396 10 402 72" linetype="vertical" id="line1" class="line_4"/>
  94. <Button position="absolute 415 29 471 51" id="button1" class="btn1" text="조회" onclick="button1_onclick"/>
  95. <Grid position="absolute 519 85 879 501" id="grd_list" binddataset="ds_main_abbrsyreclists_abbrsyreclist">
  96. <Formats>
  97. <Format id="default">
  98. <Columns>
  99. <Column size="25" band="left"/>
  100. <Column size="113"/>
  101. <Column size="224"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. </Columns>
  107. <Rows>
  108. <Row size="24" band="head"/>
  109. <Row size="24"/>
  110. </Rows>
  111. <Band id="head">
  112. <Cell/>
  113. <Cell col="1" text="약어코드"/>
  114. <Cell col="2" text="추천약어"/>
  115. <Cell col="3"/>
  116. <Cell col="4"/>
  117. <Cell col="5"/>
  118. <Cell col="6"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell celltype="head"/>
  122. <Cell col="1" displaytype="text" text="bind:trgtcd" id="trgtcd"/>
  123. <Cell col="2" displaytype="text" text="bind:trgtcnts" id="trgtcnts"/>
  124. <Cell col="3" text="bind:instcd" id="instcd"/>
  125. <Cell col="4" text="bind:abbrcd" id="abbrcd"/>
  126. <Cell col="5" text="bind:trgtflag" id="trgtflag"/>
  127. <Cell col="6" text="bind:seqno" id="seqno"/>
  128. </Band>
  129. </Format>
  130. </Formats>
  131. </Grid>
  132. <Static text="추천약어" position="absolute 519 64 632 80" align="align:center middle;" id="caption3" class="tit_2"/>
  133. <Button position="absolute 826 58 879 80" id="btn_delete" class="btn2" text="행삭제" onclick="btn_delete_onclick"/>
  134. <Button position="absolute 758 58 822 80" id="btn_add" class="btn2" text="선택추가" onclick="btn_add_onclick"/>
  135. <Button position="absolute 823 505 879 527" id="btn_cancel" class="btn4" text="닫기" onclick="btn_cancel_onclick"/>
  136. <Button position="absolute 763 505 819 527" id="btn_ok" class="btn4" text="저장" onclick="btn_ok_onclick"/>
  137. <Button position="absolute 488 270 514 289" id="button2" class="icon_right" onclick="button2_onclick"/>
  138. <Grid position="absolute 0 85 484 501" id="grd_abbrLists" binddataset="ds_main_abbrlists_abbrlist">
  139. <Formats>
  140. <Format id="default">
  141. <Columns>
  142. <Column size="0"/>
  143. <Column size="36"/>
  144. <Column size="39"/>
  145. <Column size="110"/>
  146. <Column size="90"/>
  147. <Column size="90"/>
  148. <Column size="90"/>
  149. <Column size="90"/>
  150. <Column size="70"/>
  151. <Column size="70"/>
  152. <Column size="90"/>
  153. <Column size="90"/>
  154. <Column size="70"/>
  155. <Column size="90"/>
  156. </Columns>
  157. <Rows>
  158. <Row size="24" band="head"/>
  159. <Row size="24"/>
  160. </Rows>
  161. <Band id="head">
  162. <Cell text="타입"/>
  163. <Cell col="1" text="선택"/>
  164. <Cell col="2" text="구분"/>
  165. <Cell col="3" text="약어코드"/>
  166. <Cell col="4" text="약어"/>
  167. <Cell col="5" text="영문명"/>
  168. <Cell col="6" text="한글명"/>
  169. <Cell col="7" text="약어설명"/>
  170. <Cell col="8" text="단위유형"/>
  171. <Cell col="9" text="환산값"/>
  172. <Cell col="10" text="금지사유"/>
  173. <Cell col="11" text="추천약어"/>
  174. <Cell col="12" text="비고"/>
  175. <Cell col="13" text="동의어"/>
  176. </Band>
  177. <Band id="body">
  178. <Cell text="bind:abbrtype"/>
  179. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkval" expr="expr:(chkval==&quot;Y&quot;||chkval==1)?1:0" id="chkval"/>
  180. <Cell col="2" text="bind:abbrkindnm"/>
  181. <Cell col="3" displaytype="text" text="bind:abbrcd"/>
  182. <Cell col="4" displaytype="text" text="bind:abbrnm"/>
  183. <Cell col="5" displaytype="text" text="bind:abbrengnm"/>
  184. <Cell col="6" displaytype="text" text="bind:abbrhngnm"/>
  185. <Cell col="7" displaytype="text" text="bind:abbrdesc"/>
  186. <Cell col="8" text="bind:unitkindseq"/>
  187. <Cell col="9" text="bind:exchval"/>
  188. <Cell col="10" displaytype="text" text="bind:dclrtresn"/>
  189. <Cell col="11" displaytype="text" text="bind:recminfo"/>
  190. <Cell col="12" displaytype="text" text="bind:abbrrem"/>
  191. <Cell col="13" displaytype="text" text="bind:synominfo"/>
  192. </Band>
  193. </Format>
  194. </Formats>
  195. </Grid>
  196. <Shape id="line12" class="line_10" position="absolute 0 80 484 86"/>
  197. <Shape id="line00" class="line_10" position="absolute 519 80 879 86"/>
  198. </Layout>
  199. </Layouts>
  200. <Objects>
  201. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  202. <ColumnInfo>
  203. <Column id="condition" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. <Rows>
  206. <Row>
  207. <Col id="condition"/>
  208. </Row>
  209. </Rows>
  210. </Dataset>
  211. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  212. <ColumnInfo>
  213. <Column id="abbrtype" type="STRING" size="256"/>
  214. <Column id="abbrkind" type="STRING" size="256"/>
  215. <Column id="keyword" type="STRING" size="256"/>
  216. <Column id="perfectyn" type="STRING" size="256"/>
  217. <Column id="useyn" type="STRING" size="256"/>
  218. <Column id="keytag" type="STRING" size="256"/>
  219. <Column id="trgtflag" type="STRING" size="256"/>
  220. <Column id="abbrcd" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="abbrtype">01</Col>
  225. <Col id="abbrkind">01</Col>
  226. <Col id="keyword"/>
  227. <Col id="perfectyn">N</Col>
  228. <Col id="useyn">Y</Col>
  229. <Col id="keytag">01</Col>
  230. <Col id="trgtflag">02</Col>
  231. <Col id="abbrcd"/>
  232. </Row>
  233. </Rows>
  234. </Dataset>
  235. <Dataset id="ds_main_abbrsyreclists_abbrsyreclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  236. <Dataset id="ds_main_abbrlists_abbrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_abbrlists_abbrlist_oncolumnchanged">
  237. <ColumnInfo/>
  238. </Dataset>
  239. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  240. <ColumnInfo>
  241. <Column id="receive" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. </Dataset>
  244. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  245. <ColumnInfo>
  246. <Column id="abbrcd" type="STRING" size="256"/>
  247. <Column id="trgtflag" type="STRING" size="256"/>
  248. <Column id="abbrtype" type="STRING" size="256"/>
  249. <Column id="abbrkind" type="STRING" size="256"/>
  250. <Column id="keyword" type="STRING" size="256"/>
  251. <Column id="perfectyn" type="STRING" size="256"/>
  252. <Column id="useyn" type="STRING" size="256"/>
  253. <Column id="keytag" type="STRING" size="256"/>
  254. <Column id="listdata" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="abbrcd"/>
  259. <Col id="trgtflag">02</Col>
  260. <Col id="abbrtype"/>
  261. <Col id="abbrkind"/>
  262. <Col id="keyword"/>
  263. <Col id="perfectyn"/>
  264. <Col id="useyn"/>
  265. <Col id="keytag"/>
  266. <Col id="listdata"/>
  267. </Row>
  268. </Rows>
  269. </Dataset>
  270. </Objects>
  271. <Bind>
  272. <BindItem id="item0" compid="checkbox1" propid="value" datasetid="ds_init" columnid="perfectyn"/>
  273. <BindItem id="item1" compid="combo1" propid="value" datasetid="ds_init" columnid="abbrkind"/>
  274. <BindItem id="item2" compid="combo2" propid="value" datasetid="ds_init" columnid="keytag"/>
  275. <BindItem id="item3" compid="combo3" propid="value" datasetid="ds_init" columnid="useyn"/>
  276. <BindItem id="item4" compid="ipt_keyword" propid="value" datasetid="ds_init" columnid="keyword"/>
  277. </Bind>
  278. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  279. * System Name :
  280. * Job Name :
  281. * Creator :
  282. * Make Date : 2017-12-04
  283. * Description :
  284. *---------------------------------------------------------------------------------------
  285. * Modify Date Modifier Modify Description
  286. *---------------------------------------------------------------------------------------
  287. * 2017-06-19 Live Converter TF->XP
  288. *
  289. *---------------------------------------------------------------------------------------
  290. ****************************************************************************************/
  291. //=======================================================================================
  292. // Lib Include
  293. //---------------------------------------------------------------------------------------
  294. include "com_commonxp::comm_main.xjs";
  295. //include "emr_termmngtxp::SPMRT01900.xjs";
  296. //=======================================================================================
  297. // Global Form Variable
  298. //---------------------------------------------------------------------------------------
  299. var arErrorCode = new HashArray();
  300. //=======================================================================================
  301. // Function
  302. //---------------------------------------------------------------------------------------
  303. /*-**************************************************************************************
  304. * Argument : N/A
  305. * Description :
  306. ****************************************************************************************/
  307. ////////////////////////////////////////////////SPMRT01900.xjs////////////////////////////////////////////////
  308. /*-**************************************************************************************
  309. * Argument : N/A
  310. * Description : 화면을 초기화 한다
  311. ****************************************************************************************/
  312. function fInitalize(){
  313. ds_main_abbrsyreclists_abbrsyreclist.clearData();
  314. var vAbbrcd = opener.frmf_getParameter("SPMRJ01900_abbrcd");
  315. if(utlf_isNull(vAbbrcd)){
  316. sysf_messageBox("약어코드 정보가 없습니다.","I003");
  317. return;
  318. }else{
  319. ds_send.setColumn( 0, "abbrcd",vAbbrcd);
  320. ds_init.setColumn( 0, "abbrcd",vAbbrcd);
  321. fSelectAbbrSyRecList();
  322. }
  323. }
  324. /*-**************************************************************************************
  325. * Argument : N/A
  326. * Description : 조회
  327. ****************************************************************************************/
  328. function fSelectAbbrSyRecList(){
  329. var oParam = {};
  330. oParam.id = "TRMRT01801";
  331. oParam.service = "termmngtapp.AbbrTermMngt";
  332. oParam.method = "reqGetAbbrSyRecList";
  333. oParam.inds = "req=ds_send";
  334. oParam.outds = "ds_main_abbrsyreclists_abbrsyreclist=abbrsyreclist";
  335. oParam.async = false;
  336. //oParam.callback = "cf_TRMRT01801";
  337. tranf_submit(oParam);
  338. }
  339. /****************************************************************************************
  340. * Components : Button
  341. * Description : 조회(마스터)
  342. ****************************************************************************************/
  343. function fSelectAbbrMasterLists(){
  344. ds_send.setColumn( 0, "abbrtype" ,ds_init.getColumn(0, "abbrtype"));
  345. ds_send.setColumn( 0, "abbrkind" ,ds_init.getColumn(0, "abbrkind"));
  346. ds_send.setColumn( 0, "perfectyn",ds_init.getColumn(0, "perfectyn"));
  347. ds_send.setColumn( 0, "useyn" ,ds_init.getColumn(0, "useyn"));
  348. ds_send.setColumn( 0, "keyword" ,ds_init.getColumn(0, "keyword"));
  349. if(ipt_keyword.value.length < 2){
  350. sysf_messageBox("검색어는 2자 이상 입력해야 가능 합니다. ","I007"); //I007=확인하십시오.
  351. return;
  352. }
  353. ds_send.setColumn( 0, "keytag" ,ds_init.getColumn(0, "keytag"));
  354. var oParam = {};
  355. oParam.id = "TRMRT00801";
  356. oParam.service = "termmngtapp.AbbrTermMngt";
  357. oParam.method = "reqGetAbbrMasterList";
  358. oParam.inds = "req=ds_send";
  359. oParam.outds = "ds_main_abbrlists_abbrlist=abbrlist";
  360. oParam.async = false;
  361. //oParam.callback = "cf_TRMRT00801";
  362. tranf_submit(oParam);
  363. }
  364. /**
  365. * 그리드 행추가 버튼을 클릭하였을 경우 이벤트
  366. *
  367. */
  368. // function fClickRowAddBtn(){
  369. // grd_list.addRow(); // 입력할 행 추가.
  370. // var cur_row = grd_list.row; // 추가된 행 번호 가져오기
  371. // grd_list.valueMatrix(cur_row, 4) = ds_init.getColumn(0, "abbrcd");
  372. // grd_list.valueMatrix(cur_row, 5) = ds_init.getColumn(0, "trgtflag");
  373. //
  374. // }
  375. /*-**************************************************************************************
  376. * Argument : N/A
  377. * Description : 저장 버튼을 클릭하였을 경우 이벤트
  378. ****************************************************************************************/
  379. function fOnClickSaveBtn(){
  380. if(!checkGridUpdate(grd_list)){
  381. alert("저장할 자료가 존재하지 않습니다.");
  382. return;
  383. }
  384. if(checkGridField(grd_list,"grd_list.trgtcnts")==false){
  385. alert("데이터중에 비어있는 필수필드가 있습니다.");
  386. return;
  387. }
  388. dsf_createDs("ds_send_listdata");
  389. var dsUpdate = grdf_getGridUpdateData(grd_list, "all");
  390. grdf_setStatusColumn(dsUpdate, "status");
  391. ds_send_listdata.copyData(dsUpdate, true);
  392. var oParam = {};
  393. oParam.id = "TXMRT01802";
  394. oParam.service = "termmngtapp.AbbrTermMngt";
  395. oParam.method = "reqSetAbbrSyRecList";
  396. oParam.inds = "listdata=ds_send_listdata";
  397. oParam.outds = "ds_main_abbrsyreclists_abbrsyreclist=abbrsyreclist";
  398. oParam.async = false;
  399. oParam.callback = "cf_TXMRT01802";
  400. tranf_submit(oParam);
  401. if(arErrorCode.pop("TXMRT01802") > -1) {
  402. fClose();
  403. }
  404. }
  405. function cf_TXMRT01802(sSvcId, nErrorCode, sErrorMsg) {
  406. arErrorCode.push(sSvcId, nErrorCode);
  407. }
  408. /*-**************************************************************************************
  409. * Argument : N/A
  410. * Description : 삭제 버튼을 클릭하였을 경우 이벤트
  411. ****************************************************************************************/
  412. function fClickDeleteBtn(){
  413. var cur_row = ds_main_abbrsyreclists_abbrsyreclist.rowposition; // 행 번호 가져오기
  414. var iStatus = ds_main_abbrsyreclists_abbrsyreclist.getRowType(cur_row);
  415. if(cur_row < 0) {
  416. alert("삭제할 행을 선택하시기 바랍니다...");
  417. return;
  418. }
  419. if (iStatus == 2){ // 새로 삽입된 행이면
  420. ds_main_abbrsyreclists_abbrsyreclist.deleteRow(cur_row);
  421. }else if (iStatus == 8){ // 삭제로 표시된 행이면
  422. grdf_setStatus(grd_list, "N", [cur_row]);
  423. }else{
  424. grdf_setStatus(grd_list, "D", [cur_row]);
  425. }
  426. }
  427. /*-**************************************************************************************
  428. * Argument : N/A
  429. * Description : 선택추가
  430. ****************************************************************************************/
  431. function fSelectedAdd(){
  432. var grdRows = grd_abbrLists.rowcount;
  433. if(0 == grdRows) return;
  434. for(var i = 0; i < grdRows; i++) {
  435. var selectValue = ds_main_abbrlists_abbrlist.getColumn(i,"chkval");
  436. if(selectValue == "Y") {
  437. var vTrgtcd = ds_main_abbrlists_abbrlist.getColumn(i,"abbrcd");
  438. var vTrgtcnts = ds_main_abbrlists_abbrlist.getColumn(i,"abbrnm");
  439. if(ds_main_abbrsyreclists_abbrsyreclist.findRow("trgtcd", vTrgtcd) > -1){
  440. sysf_messageBox(vTrgtcnts+"은(는) 이미 등록되었가나 추가된 약어코드 입니다. ","I007");//I007=확인하십시오.
  441. }else{
  442. var cur_row = ds_main_abbrsyreclists_abbrsyreclist.addRow(); // 입력할 행 추가.
  443. ds_main_abbrsyreclists_abbrsyreclist.setColumn(cur_row, "trgtcd", vTrgtcd);
  444. ds_main_abbrsyreclists_abbrsyreclist.setColumn(cur_row, "trgtcnts", vTrgtcnts);
  445. ds_main_abbrsyreclists_abbrsyreclist.setColumn(cur_row, "abbrcd", ds_init.getColumn(0, "abbrcd"));
  446. ds_main_abbrsyreclists_abbrsyreclist.setColumn(cur_row, "trgtflag", ds_init.getColumn(0, "trgtflag"));
  447. }
  448. ds_main_abbrlists_abbrlist.setColumn(i,"chkval","N");
  449. }
  450. }
  451. }
  452. /*-**************************************************************************************
  453. * Argument : grid (대상그리드)
  454. * Description : 처리대상 체크
  455. ****************************************************************************************/
  456. function checkGridUpdate(grid)
  457. {
  458. var iData = grdf_getGridUpdateData(grid, "insert");
  459. var uData = grdf_getGridUpdateData(grid, "update");
  460. var dData = grdf_getGridUpdateData(grid, "delete");
  461. if ((utlf_isNull(iData) || iData.rowcount == 0) && (utlf_isNull(uData) || uData.rowcount == 0) && (utlf_isNull(dData) || dData.rowcount == 0)) return false;
  462. else return true;
  463. }
  464. /*-**************************************************************************************
  465. * Argument : grid (대상그리드)
  466. * : field (대상필드)
  467. * Description : 필드값 존재여부체크
  468. ****************************************************************************************/
  469. function checkGridField(grid, field){
  470. var nodeset = this.objects[grid.binddataset];
  471. var iStatus;
  472. for (var i = 0; i < grid.rowcount; i++){
  473. iStatus = nodeset.getRowType(i);
  474. if (iStatus == 2){
  475. var fieldArr = field.split("▦");
  476. if(fieldArr.length < 1){
  477. return false;
  478. }
  479. for(var j = 0; j < fieldArr.length; j++){
  480. if(utlf_isNull(fieldArr[j])){
  481. continue;
  482. }
  483. if(utlf_isNull(nodeset.getColumn(i, fieldArr[j]))) return false;
  484. }
  485. }
  486. }
  487. return true;
  488. }
  489. /*-**************************************************************************************
  490. * Argument : N/A
  491. * Description : 화면닫기
  492. ****************************************************************************************/
  493. function fClose(){
  494. this.close();
  495. }
  496. ////////////////////////////////////////////////SPMRT01900.xjs////////////////////////////////////////////////
  497. //=======================================================================================
  498. // Event
  499. //---------------------------------------------------------------------------------------
  500. /****************************************************************************************
  501. * Components : Form
  502. * Description : 화면 처음 초기화시 폼초기화
  503. ****************************************************************************************/
  504. function SPMRT01900_onload(obj:Form, e:LoadEventInfo) {
  505. frmf_initForm(obj);
  506. //grdf_initGrid(grd_XXX);
  507. //grdf_setGridSort(grd_XXX);
  508. grdf_setRowTypeIcon(grd_list, 0);
  509. fInitalize();
  510. }
  511. /****************************************************************************************
  512. * Components : Edit
  513. * Description : 조회조건 입력 후 조회
  514. ****************************************************************************************/
  515. function ipt_keyword_onkeydown(obj:Edit, e:KeyEventInfo) {
  516. if(e.keycode == 13) {
  517. obj.updateToDataset();
  518. fSelectAbbrMasterLists();
  519. }
  520. }
  521. /****************************************************************************************
  522. * Components : Button
  523. * Description : 조회
  524. ****************************************************************************************/
  525. function button1_onclick(obj:Button, e:ClickEventInfo) {
  526. fSelectAbbrMasterLists();
  527. }
  528. /****************************************************************************************
  529. * Components : Button
  530. * Description : 행삭제
  531. ****************************************************************************************/
  532. function btn_delete_onclick(obj:Button, e:ClickEventInfo) {
  533. fClickDeleteBtn();
  534. }
  535. /****************************************************************************************
  536. * Components : Button
  537. * Description : 선택추가
  538. ****************************************************************************************/
  539. function btn_add_onclick(obj:Button, e:ClickEventInfo) {
  540. fSelectedAdd();
  541. }
  542. /****************************************************************************************
  543. * Components : Button
  544. * Description : 닫기
  545. ****************************************************************************************/
  546. function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  547. this.close();
  548. }
  549. /****************************************************************************************
  550. * Components : Button
  551. * Description : 저장
  552. ****************************************************************************************/
  553. function btn_ok_onclick(obj:Button, e:ClickEventInfo) {
  554. fOnClickSaveBtn();
  555. }
  556. /****************************************************************************************
  557. * Components : Button
  558. * Description : 약어선택
  559. ****************************************************************************************/
  560. function button2_onclick(obj:Button, e:ClickEventInfo) {
  561. fSelectedAdd();
  562. }
  563. function ds_main_abbrlists_abbrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  564. {
  565. if(e.columnid=="chkval") {
  566. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  567. }
  568. }
  569. ]]></Script>
  570. </Form>
  571. </FDL>