SMRPD31200_전문의평가(세부)항목관리.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPD31200" position="absolute 0 0 1200 770" titletext="전문의 평가 - 세부항목 관리" oninit="SMRPD31200_oninit" onload="SMRPD31200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="roundrect1" type="roundrectangle" position="absolute 0 48 1195 85"/>
  8. <Shape position="absolute 0 116 1195 122" linetype="horizontal" id="line7" class="line_10"/>
  9. <Grid position="absolute 0 121 1195 720" id="datagrid1" binddataset="ds_main_codeinfo_codelist">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="20" band="left"/>
  14. <Column size="60"/>
  15. <Column size="307"/>
  16. <Column size="92"/>
  17. <Column size="92"/>
  18. <Column size="316"/>
  19. <Column size="67"/>
  20. <Column size="67"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell/>
  31. <Cell col="1" text="코드"/>
  32. <Cell col="2" text="세부항목 명칭"/>
  33. <Cell col="3" text="시작일자"/>
  34. <Cell col="4" text="종료일자"/>
  35. <Cell col="5" text="비고"/>
  36. <Cell col="6" text="정렬순서"/>
  37. <Cell col="7" text="사용여부"/>
  38. <Cell col="8" text="cntlcd4"/>
  39. <Cell col="9" text="instcd"/>
  40. <Cell col="10" text="orgcdid"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head"/>
  44. <Cell col="1" text="bind:cdid" enable="false"/>
  45. <Cell col="2" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cdnm" wordwrap="word" editautoselect="true"/>
  46. <Cell col="3" displaytype="date" edittype="date" text="bind:cntlcd1" expr="expr:utlf_isNull(cntlcd1) || cntlcd1 == '-' ? '' : cntlcd1" editautoselect="true" calendardisplaynulltype="none"/>
  47. <Cell col="4" displaytype="date" edittype="date" text="bind:cntlcd2" expr="expr:utlf_isNull(cntlcd2) || cntlcd2 == '-' ? '' : cntlcd2" editautoselect="true" calendardisplaynulltype="none"/>
  48. <Cell col="5" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:detldesc" wordwrap="word"/>
  49. <Cell col="6" displaytype="text" edittype="text" style="align:center;" text="bind:dispseq"/>
  50. <Cell col="7" displaytype="combo" edittype="combo" style="align:center;padding:1 2 1 2;" text="bind:useyn" combodataset="ds_useyn" combocodecol="value" combodatacol="label"/>
  51. <Cell col="8" text="bind:cntlcd4"/>
  52. <Cell col="9" text="bind:instcd"/>
  53. <Cell col="10" text="bind:orgcdid"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Static text="세부항목 상세정보" position="absolute 0 100 188 116" id="caption4" class="tit_2"/>
  59. <Button position="absolute 1085 95 1138 114" id="btn_grdadd" class="btn2" text="행추가" onclick="btn_grdadd_onclick"/>
  60. <Button position="absolute 1141 95 1194 114" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
  61. <Static text="전문의 평가 - 세부항목 관리" position="absolute 0 0 205 24" id="caption1" class="tit_1"/>
  62. <Div position="absolute 0 13 1195 44" id="group4" scrollbars="autoboth">
  63. <Layouts>
  64. <Layout>
  65. <Shape position="absolute 0 25 1195 31" linetype="horizontal" id="line2" class="line_6" anchor="default"/>
  66. <Button position="absolute 1139 4 1195 26" id="btn_save" class="btn4" text="저장" anchor="default" onclick="group4_btn_save_onclick"/>
  67. </Layout>
  68. </Layouts>
  69. </Div>
  70. <Button position="absolute 690 55 746 77" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
  71. <Shape position="absolute 672 55 678 77" linetype="vertical" id="line3"/>
  72. <Static text="※ 1.사용된 코드는 삭제하지 말고, 사용여부를 &quot;No&quot; 로 변경 후 저장하시기 바랍니다." position="absolute 0 725 503 745" id="caption3" style="color:#ff0000ff;"/>
  73. <Combo position="absolute 120 57 262 76" id="cmb_instcd" class="combo_s_default" enable="false" onitemchanged="cmb_instcd_onitemchanged"/>
  74. <Static text="기관코드" position="absolute 49 58 125 75" id="caption2" class="search_name"/>
  75. <Static text="사용여부" position="absolute 510 58 589 75" id="caption5" class="search_name"/>
  76. <Static text="2.신규코드는 저장 시 자동으로 코드가 생성됩니다." position="absolute 16 741 519 761" id="caption6" style="color:#ff0000ff;"/>
  77. <Combo position="absolute 330 57 485 76" id="cmb_flagcd" innerdataset="@ds_init_codeinfo_codelist" datacolumn="cdnm" codecolumn="cdid" onitemchanged="cmb_flagcd_onitemchanged"/>
  78. <Static text="부문" position="absolute 285 57 340 74" id="caption9" class="search_name"/>
  79. <Combo position="absolute 581 57 640 76" id="cmb_useyn" class="combo_s_default" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="cmb_useyn_onitemchanged">
  80. <Dataset id="innerdataset">
  81. <ColumnInfo>
  82. <Column id="codecolumn"/>
  83. <Column id="datacolumn"/>
  84. </ColumnInfo>
  85. <Rows>
  86. <Row>
  87. <Col id="codecolumn">
  88. </Col>
  89. <Col id="datacolumn">전체</Col>
  90. </Row>
  91. <Row>
  92. <Col id="codecolumn">Y</Col>
  93. <Col id="datacolumn">Yes</Col>
  94. </Row>
  95. <Row>
  96. <Col id="codecolumn">N</Col>
  97. <Col id="datacolumn">No</Col>
  98. </Row>
  99. </Rows>
  100. </Dataset>
  101. </Combo>
  102. </Layout>
  103. </Layouts>
  104. <Objects>
  105. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  106. <ColumnInfo>
  107. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  108. <Column id="flagcd" type="STRING" size="256"/>
  109. <Column id="useyn" type="STRING" size="256"/>
  110. </ColumnInfo>
  111. <Rows>
  112. <Row/>
  113. </Rows>
  114. </Dataset>
  115. <Dataset id="ds_init_prvg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="cnt" type="STRING" size="256" sumtext="권한유무(있으면 1, 없으면 0)"/>
  118. </ColumnInfo>
  119. </Dataset>
  120. <Dataset id="ds_main_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_codeinfo_codelist_oncolumnchanged">
  121. <ColumnInfo>
  122. <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
  123. <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
  124. <Column id="cntlcd1" type="STRING" size="256" sumtext="시작일자"/>
  125. <Column id="cntlcd2" type="STRING" size="256" sumtext="종료일자"/>
  126. <Column id="detldesc" type="STRING" size="256" sumtext="상세설명"/>
  127. <Column id="useyn" type="STRING" size="256" sumtext="구분1"/>
  128. <Column id="dispseq" type="STRING" size="256" sumtext="display순서"/>
  129. <Column id="cntlcd4" type="STRING" size="256" sumtext="부문코드"/>
  130. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  131. <Column id="orgcdid" type="STRING" size="256" sumtext="원코드"/>
  132. <Column id="colIUD" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. </Dataset>
  135. <Dataset id="ds_init_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
  138. <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_senddata_execdata_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  144. <Column id="cdid" type="STRING" size="256" sumtext="코드"/>
  145. <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
  146. <Column id="cntlcd1" type="STRING" size="256" sumtext="시작일자"/>
  147. <Column id="cntlcd2" type="STRING" size="256" sumtext="종료일자"/>
  148. <Column id="detldesc" type="STRING" size="256" sumtext="상세설명"/>
  149. <Column id="useyn" type="STRING" size="256" sumtext="구분1"/>
  150. <Column id="dispseq" type="STRING" size="256" sumtext="display순서"/>
  151. <Column id="cntlcd4" type="STRING" size="256" sumtext="부문코드"/>
  152. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  153. <Column id="orgcdid" type="STRING" size="256" sumtext="원코드"/>
  154. </ColumnInfo>
  155. </Dataset>
  156. <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  157. <ColumnInfo>
  158. <Column id="count" type="STRING" size="256" sumtext="실행건수"/>
  159. </ColumnInfo>
  160. </Dataset>
  161. <Dataset id="ds_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="label" type="STRING" size="256"/>
  164. <Column id="value" type="STRING" size="256"/>
  165. </ColumnInfo>
  166. <Rows>
  167. <Row>
  168. <Col id="label">Yes</Col>
  169. <Col id="value">Y</Col>
  170. </Row>
  171. <Row>
  172. <Col id="label">No</Col>
  173. <Col id="value">N</Col>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. </Objects>
  178. <Bind>
  179. <BindItem id="item0" compid="cmb_instcd" propid="value" datasetid="ds_send_reqdata" columnid="instcd"/>
  180. <BindItem id="item1" compid="cmb_flagcd" propid="value" datasetid="ds_send_reqdata" columnid="flagcd"/>
  181. <BindItem id="item2" compid="cmb_useyn" propid="value" datasetid="ds_send_reqdata" columnid="useyn"/>
  182. </Bind>
  183. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  184. * System Name : 경대 의료정보시스템
  185. * Job Name : mis_dligclaznsmngtxp -> SMRPD31200
  186. * Creator : yjh
  187. * Make Date : 2018-01-04
  188. * Description :
  189. *---------------------------------------------------------------------------------------
  190. * Modify Date Modifier Modify Description
  191. *---------------------------------------------------------------------------------------
  192. * 2018-01-04 yjh TF->XP
  193. *
  194. *---------------------------------------------------------------------------------------
  195. ****************************************************************************************/
  196. //=======================================================================================
  197. // Lib Include
  198. //---------------------------------------------------------------------------------------
  199. include "com_commonxp::comm_main.xjs";
  200. include "mis_miscommonxp::MIS.xjs";
  201. //=======================================================================================
  202. // Global Form Variable
  203. //---------------------------------------------------------------------------------------
  204. var arErrorCode = new HashArray();
  205. //=======================================================================================
  206. // Function
  207. //---------------------------------------------------------------------------------------
  208. function readfunc(){ // 해당 조건에 대한 사용자 권한내역을 조회한다.
  209. //if (model.getValue("/root/send/reqdata/grupcdid") == ""){
  210. // messageBox("구분코드를 선택한 후 조회하시기 바랍니다.", "E999", "");
  211. // return;
  212. //}
  213. misfGridInit(datagrid1);
  214. var oParam = {};
  215. oParam.id = "TRRPD31201";
  216. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  217. oParam.method = "reqGetSpcEvalDtlItemList";
  218. oParam.inds = "req=ds_send_reqdata";
  219. oParam.outds = "ds_main_codeinfo_codelist=codelist";
  220. oParam.async = false;
  221. //oParam.callback = "cf_TRRPD31201";
  222. tranf_submit(oParam);
  223. ds_main_codeinfo_codelist.addColumn("colIUD", "string");
  224. }
  225. function datacheck(){
  226. var scdid1 = "";
  227. var scdid2 = "";
  228. for (var i = 0; i < ds_main_codeinfo_codelist.rowcount; i ++){
  229. /*
  230. if (model.getValue("/root/main/codeinfo/codelist[" + i + "]/cdid") == ""){
  231. messageBox("코드는 필수 입력 항목입니다.", "E999", "");
  232. return false;
  233. }
  234. */
  235. if (utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cdnm"))){
  236. sysf_messageBox("명칭은 필수 입력 항목입니다.", "E999", "");
  237. return false;
  238. }
  239. /*
  240. scdid1 = model.getValue("/root/main/codeinfo/codelist[" + i + "]/cdid");
  241. var k = i + 1;
  242. for (var j = k; j < datagrid1.rows; j++){
  243. scdid2 = model.getValue("/root/main/codeinfo/codelist[" + j + "]/cdid");
  244. if (i != j){
  245. if (scdid1 == scdid2){
  246. messageBox(j + "번째 행에서 중복된 코드가 존재합니다", "E999", "");
  247. return false;
  248. }
  249. }
  250. }
  251. */
  252. }
  253. return true;
  254. }
  255. function ExecData(){
  256. ds_main_codeinfo_codelist.enableevent = false;
  257. ds_main_codeinfo_codelist.updatecontrol = false;
  258. grdf_setStatusColumn(ds_main_codeinfo_codelist, "status");
  259. ds_main_codeinfo_codelist.updatecontrol = true;
  260. ds_main_codeinfo_codelist.enableevent = true;
  261. var update = grdf_getGridUpdateData(datagrid1);
  262. ds_senddata_execdata_codelist.assign(update);
  263. var oParam = {};
  264. oParam.id = "TXRPD31201";
  265. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  266. oParam.method = "reqExeSaveSpcEvalDtlItemList";
  267. oParam.inds = "codelist=ds_senddata_execdata_codelist:A";
  268. oParam.outds = "ds_hidden_item=item";
  269. oParam.async = false;
  270. oParam.callback = "cf_TXRPD31201";
  271. tranf_submit(oParam);
  272. if (arErrorCode.pop("TXRPD31201") > -1){ //TXRPD30101
  273. readfunc();
  274. }
  275. }
  276. function cf_TXRPD31201(sSvcId, nErrorCode, sErrorMsg) {
  277. arErrorCode.push(sSvcId, nErrorCode);
  278. }
  279. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  280. if (str == "") return true; // 빈건 체크안함
  281. if (trim(str) == "") return true; // 빈건 체크안함
  282. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  283. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  284. var yy = new Number(str.substring(0, 4));
  285. var mm = new Number(str.substring(4, 6)) - 1;
  286. var dd = new Number(str.substring(6, 8));
  287. var date = new Date(yy, mm, dd);
  288. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  289. if (yy != date.getFullYear() ||
  290. mm != date.getMonth() ||
  291. dd != date.getDate()) {
  292. return false; // 존재하지 않는 날짜
  293. }
  294. return true; // 존재하는 날짜
  295. }
  296. function trim(data){ // 문자에 대한 TRIM 작업
  297. return data.replace(/(^\s*)|(\s*$)/g, "");
  298. }
  299. //=======================================================================================
  300. // Event
  301. //---------------------------------------------------------------------------------------
  302. /****************************************************************************************
  303. * Components : Form
  304. * Components ID : SMRPD31200
  305. * Event : oninit
  306. * Argument : 01.obj : Object Event has occurred
  307. * : 02.e : Event Object
  308. * Description : 화면 처음 초기화시
  309. ****************************************************************************************/
  310. function SMRPD31200_oninit(obj:Form, e:InitEventInfo)
  311. {
  312. frmf_initForm(obj); //폼 초기화
  313. }
  314. /****************************************************************************************
  315. * Components : Form
  316. * Components ID : SMRPD31200
  317. * Event : onload
  318. * Argument : 01.obj : Object Event has occurred
  319. * : 02.e : Event Object
  320. * Description : 화면 로딩 완료시
  321. ****************************************************************************************/
  322. function SMRPD31200_onload(obj:Form, e:LoadEventInfo)
  323. {
  324. grdf_setRowTypeIcon(datagrid1, 0);
  325. grdf_setGridSort(datagrid1);
  326. //전문의평가 관리권한 확인용 : 관리권한이 있는 자만 사용 가능
  327. var oParam = {};
  328. oParam.id = "TRRPD31102";
  329. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  330. oParam.method = "reqGetSpcEvalMngtPrvg";
  331. oParam.inds = "req=ds_send_reqdata";
  332. oParam.outds = "ds_init_prvg=codelist";
  333. oParam.async = false;
  334. oParam.callback = "cf_TRRPD31102";
  335. tranf_submit(oParam);
  336. if (arErrorCode.pop("TRRPD31102") > -1) {
  337. //alert(model.getValue("/root/init/prvg/cnt"));
  338. if(ds_init_prvg.getColumn(0, "cnt") != "1") {
  339. sysf_messageBox("프로그램 사용권한이 없습니다. 관리자에게 문의바랍니다.", "E999", "");
  340. return;
  341. }
  342. }
  343. misfComboInstCdListMulti("cmb_instcd", utlf_getCurrentDate(),"","N");
  344. //model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  345. //model.refresh();
  346. cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  347. var oParam = {};
  348. oParam.id = "TRRPD31202";
  349. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  350. oParam.method = "reqGetSpcEvalItemComboList";
  351. oParam.inds = "req=ds_send_reqdata";
  352. oParam.outds = "ds_init_codeinfo_codelist=codelist";
  353. oParam.async = false;
  354. //oParam.callback = "cf_TRRPD31202";
  355. tranf_submit(oParam); //부문 코드 조회
  356. cmb_useyn.value = "Y";
  357. btn_search.click();
  358. }
  359. function cf_TRRPD31102(sSvcId, nErrorCode, sErrorMsg) {
  360. arErrorCode.push(sSvcId, nErrorCode);
  361. }
  362. /****************************************************************************************
  363. * Components : Button
  364. * Components ID : btn_grdadd
  365. * Event : onclick
  366. * Argument : 01.obj : Object Event has occurred
  367. * : 02.e : Event Object
  368. * Description : 행추가버튼 클릭시
  369. ****************************************************************************************/
  370. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  371. {
  372. if(utlf_isNull(cmb_flagcd.value)) {
  373. sysf_messageBox("부문이 선택되지 않았습니다. 먼저 부문을 선택 후 작업하십시요. ", "E999", "");
  374. cmb_flagcd.setFocus();
  375. return;
  376. }
  377. ds_main_codeinfo_codelist.addRow();
  378. var irow = ds_main_codeinfo_codelist.rowposition;
  379. ds_main_codeinfo_codelist.setColumn(irow, "instcd", cmb_instcd.value);
  380. ds_main_codeinfo_codelist.setColumn(irow, "cntlcd4", ds_send_reqdata.getColumn(0, "flagcd"));
  381. ds_main_codeinfo_codelist.setColumn(irow, "useyn", "Y");
  382. ds_main_codeinfo_codelist.rowposition = irow;
  383. datagrid1.setCellPos(datagrid1.getBindCellIndex("body", "cdnm"));
  384. datagrid1.setFocus();
  385. datagrid1.showEditor(true);
  386. }
  387. /****************************************************************************************
  388. * Components : Button
  389. * Components ID : btn_grddel
  390. * Event : onclick
  391. * Argument : 01.obj : Object Event has occurred
  392. * : 02.e : Event Object
  393. * Description : 행삭제버튼 클릭시
  394. ****************************************************************************************/
  395. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  396. {
  397. var status = ds_main_codeinfo_codelist.getRowType(ds_main_codeinfo_codelist.rowposition);
  398. ds_main_codeinfo_codelist.enableevent = false;
  399. ds_main_codeinfo_codelist.updatecontrol = false;
  400. if(status == 1) {
  401. ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 8);
  402. }else if(status == 2) {
  403. ds_main_codeinfo_codelist.deleteRow(ds_main_codeinfo_codelist.rowposition);
  404. }else if(status == 4) {
  405. ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "colIUD", "u");
  406. ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 8);
  407. }else if(status == 8) {
  408. if(ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "colIUD") == "u") {
  409. ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 4);
  410. }else {
  411. ds_main_codeinfo_codelist.setRowType(ds_main_codeinfo_codelist.rowposition, 1);
  412. }
  413. }
  414. ds_main_codeinfo_codelist.updatecontrol = true;
  415. ds_main_codeinfo_codelist.enableevent = true;
  416. }
  417. /****************************************************************************************
  418. * Components : Button
  419. * Components ID : btn_save
  420. * Event : onclick
  421. * Argument : 01.obj : Object Event has occurred
  422. * : 02.e : Event Object
  423. * Description : 저장버튼 클릭시
  424. ****************************************************************************************/
  425. function group4_btn_save_onclick(obj:Button, e:ClickEventInfo)
  426. {
  427. if (datacheck() == false){
  428. return;
  429. }
  430. ExecData();
  431. }
  432. /****************************************************************************************
  433. * Components : Button
  434. * Components ID : btn_search
  435. * Event : onclick
  436. * Argument : 01.obj : Object Event has occurred
  437. * : 02.e : Event Object
  438. * Description : 조회버튼 클릭시
  439. ****************************************************************************************/
  440. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  441. {
  442. readfunc();
  443. }
  444. /****************************************************************************************
  445. * Components : Combo
  446. * Components ID : cmb_instcd
  447. * Event : onitemchanged
  448. * Argument : 01.obj : Object Event has occurred
  449. * : 02.e : Event Object
  450. * Description : 콤보 값 변경시
  451. ****************************************************************************************/
  452. function cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  453. {
  454. misfGridInit(datagrid1);
  455. }
  456. /****************************************************************************************
  457. * Components : Combo
  458. * Components ID : cmb_flagcd
  459. * Event : onitemchanged
  460. * Argument : 01.obj : Object Event has occurred
  461. * : 02.e : Event Object
  462. * Description : 콤보 값 변경시
  463. ****************************************************************************************/
  464. function cmb_flagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  465. {
  466. btn_search.click();
  467. }
  468. /****************************************************************************************
  469. * Components : Combo
  470. * Components ID : cmb_useyn
  471. * Event : onitemchanged
  472. * Argument : 01.obj : Object Event has occurred
  473. * : 02.e : Event Object
  474. * Description : 콤보 값 변경시
  475. ****************************************************************************************/
  476. function cmb_useyn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  477. {
  478. readfunc();
  479. }
  480. function ds_main_codeinfo_codelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  481. {
  482. ds_main_codeinfo_codelist.setColumn(e.row, "colIUD", "u");
  483. }
  484. ]]></Script>
  485. </Form>
  486. </FDL>