SMASB02200_감염관리기본코드관리.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMASB02200" position="absolute 0 0 1131 719" titletext="기본코드관리" oninit="SMASB02200_oninit" onload="SMASB02200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 15 1124 713" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout width="1124" height="698">
  10. <Static text="분류코드" position="absolute 1 14 79 31" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 30 594 36" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  12. <Grid position="absolute 0 35 594 698" id="grd_etclst" binddataset="ds_main_etclst_item" anchor="default" autoenter="key" cellclickbound="cell" selecttype="multirow" oncellclick="grp_biz_grd_etclst_oncellclick" onkeydown="grp_biz_grd_etclst_onkeydown">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="0"/>
  17. <Column size="24"/>
  18. <Column size="100"/>
  19. <Column size="347"/>
  20. <Column size="100"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell text="caption1"/>
  28. <Cell col="1"/>
  29. <Cell col="2" text="코드"/>
  30. <Cell col="3" text="분류코드명"/>
  31. <Cell col="4" text="적용여부"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell text="bind:clscd"/>
  35. <Cell col="1" celltype="head"/>
  36. <Cell col="2" displaytype="text" text="bind:etccd" editlimit="2"/>
  37. <Cell col="3" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:etcdetlnm" wordwrap="word"/>
  38. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:useyn == 'Y' || useyn == '1' ? '1' : '0' "/>
  39. </Band>
  40. </Format>
  41. </Formats>
  42. </Grid>
  43. <Button position="absolute 373 10 437 29" id="btn_refresh" class="btn2" text="새로고침" anchor="default" onclick="grp_biz_btn_refresh_onclick"/>
  44. <Button position="absolute 440 10 493 29" id="btn_addcell" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_addcell_onclick"/>
  45. <Button position="absolute 496 10 549 29" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_grddel_onclick"/>
  46. <Button position="absolute 552 10 594 29" id="button3" class="btn5" text="저장" anchor="default" onclick="grp_biz_button3_onclick"/>
  47. <Grid position="absolute 601 35 1124 698" id="grd_detlcodelist" binddataset="ds_main_detlcodelst_item" anchor="default" autoenter="key" cellclickbound="cell" selecttype="multirow" onkeydown="grp_biz_grd_detlcodelist_onkeydown" oncellclick="grp_biz_grd_detlcodelist_oncellclick">
  48. <Formats>
  49. <Format id="default">
  50. <Columns>
  51. <Column size="24"/>
  52. <Column size="0"/>
  53. <Column size="100"/>
  54. <Column size="273"/>
  55. <Column size="101"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell/>
  63. <Cell col="1" text="분류코드"/>
  64. <Cell col="2" text="코드"/>
  65. <Cell col="3" text="상세코드명"/>
  66. <Cell col="4" text="적용여부"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell celltype="head"/>
  70. <Cell col="1" text="bind:clscd"/>
  71. <Cell col="2" displaytype="text" text="bind:etccd"/>
  72. <Cell col="3" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:etcdetlnm" wordwrap="word"/>
  73. <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:useyn == 'Y' || useyn == '1' ? '1' : '0' "/>
  74. </Band>
  75. </Format>
  76. </Formats>
  77. </Grid>
  78. <Static text="상세코드" position="absolute 602 14 680 31" id="caption3" class="tit_2" anchor="default"/>
  79. <Shape position="absolute 601 30 1123 36" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
  80. <Button position="absolute 948 10 1001 29" id="btn_grdadd" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_grdadd_onclick"/>
  81. <Button position="absolute 1003 10 1078 29" id="btn_seldeldetl" class="btn2" text="선택행삭제" anchor="default" onclick="grp_biz_btn_seldeldetl_onclick"/>
  82. <Button position="absolute 1080 10 1122 29" id="btn_save2" class="btn5" text="저장" anchor="default" onclick="grp_biz_btn_save2_onclick"/>
  83. </Layout>
  84. </Layouts>
  85. </Div>
  86. <Static id="caption6" text="기본코드 관리" class="tit_1" position="absolute 0 0 149 25"/>
  87. </Layout>
  88. </Layouts>
  89. <Objects>
  90. <Dataset id="ds_main_etclst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_etclst_item_oncolumnchanged"/>
  91. <Dataset id="ds_main_detlcodelst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlcodelst_item_oncolumnchanged"/>
  92. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="clscd" type="STRING" size="256"/>
  95. </ColumnInfo>
  96. <Rows>
  97. <Row>
  98. <Col id="clscd"/>
  99. </Row>
  100. </Rows>
  101. </Dataset>
  102. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="savedata" type="STRING" size="256"/>
  105. <Column id="clscd" type="STRING" size="256"/>
  106. <Column id="etccd" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="savedata"/>
  111. <Col id="clscd"/>
  112. <Col id="etccd"/>
  113. </Row>
  114. </Rows>
  115. </Dataset>
  116. <Dataset id="ds_send_req_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  117. <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="count" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="count"/>
  124. </Row>
  125. </Rows>
  126. </Dataset>
  127. <Dataset id="ds_send_req_savedata_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  128. </Objects>
  129. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  130. * System Name :
  131. * Job Name :
  132. * Creator :
  133. * Make Date : 2015-11-13
  134. * Description :
  135. *---------------------------------------------------------------------------------------
  136. * Modify Date Modifier Modify Description
  137. *---------------------------------------------------------------------------------------
  138. * 2015-11-13 Live Converter TF->XP
  139. *
  140. *---------------------------------------------------------------------------------------
  141. ****************************************************************************************/
  142. include "com_commonxp::comm_main.xjs";
  143. include "com_basiccodexp::ZBC001.xjs"
  144. var arErrorCode = new HashArray();
  145. function SMASB02200_oninit(obj:Form, e:InitEventInfo)
  146. {
  147. frmf_initForm(obj); //폼 초기화
  148. grdf_setRowTypeIcon(grp_biz.grd_etclst, 1);
  149. grdf_setRowTypeIcon(grp_biz.grd_detlcodelist, 0);
  150. }
  151. function SMASB02200_onload(obj:Form, e:LoadEventInfo)
  152. {
  153. grdf_initGrid(grp_biz.grd_etclst);
  154. grdf_setToolTipBind(grp_biz.grd_etclst);
  155. grdf_initGrid(grp_biz.grd_detlcodelist);
  156. grdf_setToolTipBind(grp_biz.grd_detlcodelist);
  157. ds_main_etclst_item.clearData();
  158. ds_main_detlcodelst_item.clearData();
  159. var oParam = {};
  160. oParam.id = "TRASB02201";
  161. oParam.service = "infcbaseapp.EtcMngt";
  162. oParam.method = "reqGetEtcCodeList";
  163. oParam.inds = "req=ds_send";
  164. oParam.outds = "ds_main_etclst_item=item";
  165. oParam.async = false;
  166. tranf_submit(oParam);
  167. }
  168. function grp_biz_btn_refresh_onclick(obj:Button, e:ClickEventInfo)
  169. {
  170. fGetEtcCodeList();
  171. grp_biz.grd_etclst.setCellProperty("body", 2, "edittype", "none");
  172. }
  173. /*====================================================================================================================
  174. @desc : 분류코드의 환자 정보를 조회한다.
  175. ====================================================================================================================*/
  176. function fGetEtcCodeList() {
  177. ds_main_etclst_item.clearData();
  178. ds_main_detlcodelst_item.clearData();
  179. var oParam = {};
  180. oParam.id = "TRASB02201";
  181. oParam.service = "infcbaseapp.EtcMngt";
  182. oParam.method = "reqGetEtcCodeList";
  183. oParam.inds = "req=ds_send";
  184. oParam.outds = "ds_main_etclst_item=item";
  185. oParam.async = false;
  186. tranf_submit(oParam);
  187. }
  188. function grp_biz_btn_addcell_onclick(obj:Button, e:ClickEventInfo)
  189. {
  190. ds_main_etclst_item.addRow();
  191. grp_biz.grd_etclst.setCellPos(2);
  192. grp_biz.grd_etclst.showEditor(true);
  193. grp_biz.grd_etclst.setCellProperty("body", 2, "edittype", "text");
  194. }
  195. function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. var getRowno = lf_deleteSelectedRows(grp_biz.grd_etclst, true);
  198. }
  199. function ds_main_etclst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  200. {
  201. if(grp_biz.grd_etclst.currentcol == grp_biz.grd_etclst.getBindCellIndex("body", "useyn")){
  202. if(ds_main_etclst_item.getColumn(ds_main_etclst_item.rowposition, "useyn") == "Y" || ds_main_etclst_item.getColumn(ds_main_etclst_item.rowposition, "useyn") == "1"){
  203. ds_main_etclst_item.setColumn(ds_main_etclst_item.rowposition, "useyn", "Y");
  204. }else{
  205. ds_main_etclst_item.setColumn(ds_main_etclst_item.rowposition, "useyn", "N");
  206. }
  207. }
  208. }
  209. function lf_deleteSelectedRows(grd, markonly) {
  210. var rowIdx;
  211. var bindDs = eval(grd.binddataset);
  212. var arrSelected = new Array();
  213. var sSelectType = grd.selecttype;
  214. if (sSelectType == "row" || sSelectType == "currow" || sSelectType == "cell") {
  215. arrSelected[0] = bindDs.rowposition;
  216. } else {
  217. for (var i = 0; i < bindDs.getRowCount(); i++) {
  218. //선택된 행인지 체크
  219. if (bindDs.getSelect(i) == true) {
  220. arrSelected.push(i);
  221. }
  222. }
  223. }
  224. if (arrSelected.length > 0) {
  225. // mark delete row 상태만 변경
  226. if (markonly == true) {
  227. for (var k = arrSelected.length - 1; k >= 0; k--) {
  228. bindDs.updatecontrol = false;
  229. bindDs.setRowType(arrSelected[k], "D");
  230. bindDs.updatecontrol = true;
  231. }
  232. }
  233. //row 삭제
  234. else {
  235. for (var k = arrSelected.length - 1; k >= 0; k--) {
  236. //bindDs.updatecontrol = false;
  237. bindDs.deleteRow(arrSelected[k]);
  238. //bindDs.updatecontrol = true;
  239. }
  240. }
  241. }
  242. }
  243. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  244. {
  245. if (fExeEtcCodeList() == true) {
  246. fGetEtcCodeList();
  247. }
  248. grp_biz.grd_etclst.setCellProperty("body", 2, "edittype", "none");
  249. }
  250. function fExeEtcCodeList() {
  251. var updateData = grdf_getGridUpdateData(grp_biz.grd_etclst);
  252. if(utlf_isNull(updateData) && updateData.rowcount > 0) {
  253. sysf_messageBox("입력","E013"); // 그리드에 데이터가 업데이트 되지 않으면 "입력된 데이터가 없습니다."는 메시지 출력
  254. return ;
  255. }
  256. var rsv_cnt = ds_main_etclst_item.rowcount;
  257. for( var i = 0; i < rsv_cnt ; i++){
  258. if( utlf_isNull(ds_main_etclst_item.getColumn(i, "etccd"))) {
  259. sysf_messageBox("분류코드는","I003"); // "분류코드는 필수 입력입니다." 라는 메시지 출력
  260. return ;
  261. }
  262. }
  263. var ret = false;
  264. if ( sysf_messageBox("기본코드정보를","Q002") == 6 ) {
  265. ds_send_req_savedata.clearData();
  266. dsf_makeValue(ds_send_req, "clscd", "string", "00"); // 분류코드의 컬럼 clscd 를 '00'으로 셋팅해준다.
  267. //분류코드의 업데이트 된 내용을 savedata에 넣는다
  268. //grdf_setStatusColumn(updateData, "status");
  269. //ds_send_req_savedata.copyData(updateData);
  270. var sData = grdf_getGridUpdateData(grp_biz.grd_etclst);
  271. grdf_setStatusColumn(sData, "status");
  272. ds_send_req_savedata.clearData();
  273. ds_send_req_savedata.copyData(sData, true);
  274. var oParam = {};
  275. oParam.id = "TXASB02201";
  276. oParam.service = "infcbaseapp.EtcMngt";
  277. oParam.method = "reqExeEtcCodeList";
  278. oParam.inds = "saveclscd=ds_send_req req=ds_send_req_savedata";
  279. oParam.outds = "ds_hidden_item=item";
  280. oParam.async = false;
  281. oParam.callback = "cf_TXASB02201";
  282. tranf_submit(oParam);
  283. if(arErrorCode.pop("TXASB02201") > -1){
  284. ret = true;
  285. }
  286. }
  287. return ret;
  288. }
  289. function cf_TXASB02201(sSvcId, nErrorCode, sErrorMsg) {
  290. arErrorCode.push(sSvcId, nErrorCode);
  291. }
  292. function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  293. {
  294. ds_main_detlcodelst_item.addRow();
  295. grp_biz.grd_detlcodelist.setCellPos(2);
  296. grp_biz.grd_detlcodelist.showEditor(true);
  297. grp_biz.grd_detlcodelist.setCellProperty("body", 2, "edittype", "text");
  298. /*
  299. for(var i = 0; i < ds_main_detlcodelst_item.rowcount; i++){
  300. if( utlf_isNull(ds_main_detlcodelst_item.getColumn(i,"useyn")) ){
  301. ds_main_detlcodelst_item.setColumn(i,"useyn","N");
  302. }
  303. }
  304. */
  305. if( utlf_isNull(ds_main_detlcodelst_item.getColumn(ds_main_detlcodelst_item.rowposition,"useyn")) ){
  306. ds_main_detlcodelst_item.setColumn(ds_main_detlcodelst_item.rowposition,"useyn","N");
  307. }
  308. }
  309. function grp_biz_btn_seldeldetl_onclick(obj:Button, e:ClickEventInfo)
  310. {
  311. var getRowno = lf_deleteSelectedRows(grp_biz.grd_detlcodelist, true);
  312. }
  313. function grp_biz_btn_save2_onclick(obj:Button, e:ClickEventInfo)
  314. {
  315. if (fExeEtcDetlCodeList() == true) {
  316. fGetEtcDetlCodeList();
  317. }
  318. grp_biz.grd_detlcodelist.setCellProperty("body", 2, "edittype", "none");
  319. }
  320. function fGetEtcDetlCodeList(){
  321. var idx = ds_main_etclst_item.rowposition;
  322. if( idx < 0) return ; // grd_etclst.row가 1보다 작으면 실행되지 않는다.
  323. ds_main_detlcodelst_item.clearData();
  324. fSetEtcCodeList(grp_biz.grd_etclst); // 상세코드를 조회하는 함수를 호출한다.
  325. ds_send_req.setColumn(0, "clscd", ds_main_etclst_item.getColumn(ds_main_etclst_item.rowposition, "etccd")); // grd_etclst.nodeset/etccd 의 값을 req/clscd값으로 저장한다.
  326. var oParam = {};
  327. oParam.id = "TRASB02202";
  328. oParam.service = "infcbaseapp.EtcMngt";
  329. oParam.method = "reqGetEtcDetlCodeList";
  330. oParam.inds = "req=ds_send_req";
  331. oParam.outds = "ds_main_detlcodelst_item=item";
  332. oParam.async = false;
  333. tranf_submit(oParam);
  334. }
  335. function fSetEtcCodeList(vGrdObj){
  336. if( utlf_isNull(vGrdObj) ) return false;
  337. var etccd = ds_main_etclst_item.getColumn(ds_main_etclst_item.rowposition, "etccd");
  338. ds_send_req.setColumn(0, "etccd", etccd );
  339. }
  340. function fExeEtcDetlCodeList() {
  341. var updateData = grdf_getGridUpdateData(grp_biz.grd_detlcodelist);
  342. if(utlf_isNull(updateData) && updateData.rowcount > 0) {
  343. sysf_messageBox("입력","E013");
  344. return ;
  345. }
  346. var rsv_cnt = ds_main_detlcodelst_item.rowcount;
  347. for( var i = 0; i < rsv_cnt ; i++){
  348. if(utlf_isNull(ds_main_detlcodelst_item.getColumn(i, "etccd"))) {
  349. sysf_messageBox("분류코드는","I003");
  350. return ;
  351. }
  352. }
  353. var ret = false;
  354. if ( sysf_messageBox("기본코드정보를","Q002") == 6) {
  355. ds_send_req_savedata.clearData();
  356. //grdf_setStatusColumn(updateData, "status");
  357. //ds_send_req_savedata.copyData(updateData);
  358. var sData = grdf_getGridUpdateData(grp_biz.grd_detlcodelist);
  359. grdf_setStatusColumn(sData, "status");
  360. ds_send_req_savedata.clearData();
  361. ds_send_req_savedata.copyData(sData, true);
  362. var oParam = {};
  363. oParam.id = "TXASB02201";
  364. oParam.service = "infcbaseapp.EtcMngt";
  365. oParam.method = "reqExeEtcCodeList";
  366. oParam.inds = "saveclscd=ds_send_req req=ds_send_req_savedata";
  367. oParam.outds = "ds_hidden_item=item";
  368. oParam.async = false;
  369. oParam.callback = "cf_TXASB02201";
  370. tranf_submit(oParam);
  371. if(arErrorCode.pop("TXASB02201") > -1){
  372. ret = true;
  373. }
  374. }
  375. return ret;
  376. }
  377. function cf_TXASB02201(sSvcId, nErrorCode, sErrorMsg) {
  378. arErrorCode.push(sSvcId, nErrorCode);
  379. }
  380. function grp_biz_grd_etclst_oncellclick(obj:Grid, e:GridClickEventInfo)
  381. {
  382. if (e.row >= 0 && e.col >= 0) {
  383. if (ds_main_etclst_item.rowcount == 0 ) {
  384. return ;
  385. }
  386. // 코드를 클릭하였을 경우에만 상세코드를 호출한다. 분류코드명을 클릭할 경우 분류코드를 수정할 수 있도록 한다.
  387. if(!utlf_isNull(ds_main_etclst_item.getColumn(ds_main_etclst_item.rowposition, "clscd"))) {
  388. if (grp_biz.grd_etclst.currentcol == 2) {
  389. fGetEtcDetlCodeList();
  390. } else {
  391. grp_biz.grd_etclst.showEditor(true);
  392. }
  393. }
  394. }
  395. grp_biz.grd_detlcodelist.setCellProperty("body", 2, "edittype", "none");
  396. }
  397. function grp_biz_grd_etclst_onkeydown(obj:Grid, e:KeyEventInfo)
  398. {
  399. if( e.keycode == 13 ) { // Cell 에서 Enter를 치게 되면 이벤트를 발생한다.
  400. if(grp_biz.grd_etclst.currentcol == 2 ) {
  401. grp_biz.grd_etclst.setCellPos(3);
  402. grp_biz.grd_etclst.showEditor(true);
  403. }
  404. else if(grp_biz.grd_etclst.currentcol == 3) {
  405. grp_biz_btn_addcell_onclick();
  406. }
  407. }
  408. }
  409. function grp_biz_grd_detlcodelist_onkeydown(obj:Grid, e:KeyEventInfo)
  410. {
  411. if( e.keycode == 13 ) { // Cell 에서 Enter를 치게 되면 이벤트를 발생한다.
  412. if(grp_biz.grd_detlcodelist.currentcol == 2 ) {
  413. grp_biz.grd_detlcodelist.setCellPos(3);
  414. grp_biz.grd_detlcodelist.showEditor(true);
  415. }
  416. else if(grp_biz.grd_detlcodelist.currentcol == 3) {
  417. grp_biz_btn_grdadd_onclick();
  418. }
  419. }
  420. }
  421. function grp_biz_grd_detlcodelist_oncellclick(obj:Grid, e:GridClickEventInfo)
  422. {
  423. if (e.row >= 0 && e.col >= 0) {
  424. if (ds_main_detlcodelst_item.rowcount == 0) {
  425. return ;
  426. }
  427. grp_biz.grd_detlcodelist.showEditor(true);
  428. }
  429. }
  430. function ds_main_detlcodelst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  431. {
  432. if(grp_biz.grd_detlcodelist.currentcol == grp_biz.grd_detlcodelist.getBindCellIndex("body", "useyn")){
  433. if(ds_main_detlcodelst_item.getColumn(ds_main_detlcodelst_item.rowposition, "useyn") == "Y" || ds_main_detlcodelst_item.getColumn(ds_main_detlcodelst_item.rowposition, "useyn") == "1"){
  434. ds_main_detlcodelst_item.setColumn(ds_main_detlcodelst_item.rowposition, "useyn", "Y");
  435. }else{
  436. ds_main_detlcodelst_item.setColumn(ds_main_detlcodelst_item.rowposition, "useyn", "N");
  437. }
  438. }
  439. }
  440. ]]></Script>
  441. </Form>
  442. </FDL>