SMAEB04300_검사선후관계기준관리.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB04300" position="absolute 0 0 1199 787" titletext="검사 선/후 관게 기준관리" oninit="SMAEB04300_oninit" onload="SMAEB04300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="1" class="div_SA" position="absolute 0 22 1195 62" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption2" text="검사코드 :" class="search_name" position="absolute 15 12 101 29"/>
  11. <Edit id="ipt_srchexamcurecd" taborder="1" class="input_search" position="absolute 105 11 240 30" autoselect="true" tooltiptext="검사코드12자리입력가능" tooltiptype="inplace,mouseleave" onkeyup="group2_ipt_srchexamcurecd_onkeyup"/>
  12. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1126 9 1182 31" anchor="top right" onclick="group2_btn_sea_onclick"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Shape position="absolute 0 88 245 94" linetype="horizontal" id="line2" class="line_10"/>
  17. <Button position="absolute 876 66 929 88" id="btn_grddel" class="btn2" visible="false" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
  18. <Grid position="absolute 0 93 245 758" id="grd_grupcdlist" binddataset="ds_main_grupcdlist_item" autoenter="select" cellsizingtype="col" oncellclick="grd_grupcdlist_oncellclick">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="36" band="left"/>
  23. <Column size="0"/>
  24. <Column size="175"/>
  25. <Column size="0"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="검사코드"/>
  34. <Cell col="2" text="검사그룹명"/>
  35. <Cell col="3" text="비고"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell celltype="head" expr="currow+1"/>
  39. <Cell col="1" displaytype="none" edittype="none" text="bind:grupcd"/>
  40. <Cell col="2" style="align:left middle;padding:0 0 0 2;" text="bind:grupcdnm"/>
  41. <Cell col="3" text="bind:grupcdrem"/>
  42. </Band>
  43. </Format>
  44. </Formats>
  45. </Grid>
  46. <Grid position="absolute 250 93 1195 758" id="grd_detlcdlist" binddataset="ds_main_detlcdlist_item" anchor="all" cellsizingtype="col" selecttype="multirow">
  47. <Formats>
  48. <Format id="default">
  49. <Columns>
  50. <Column size="26"/>
  51. <Column size="28"/>
  52. <Column size="63"/>
  53. <Column size="0"/>
  54. <Column size="107"/>
  55. <Column size="0"/>
  56. <Column size="320"/>
  57. <Column size="53"/>
  58. <Column size="329"/>
  59. <Column size="0"/>
  60. </Columns>
  61. <Rows>
  62. <Row size="24" band="head"/>
  63. <Row size="24"/>
  64. </Rows>
  65. <Band id="head">
  66. <Cell/>
  67. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  68. <Cell col="2" text="우선순위"/>
  69. <Cell col="3" text="검사그룹코드"/>
  70. <Cell col="4" text="검사코드"/>
  71. <Cell col="5" text="검사상세코드"/>
  72. <Cell col="6" text="검사명"/>
  73. <Cell col="7" text="간격"/>
  74. <Cell col="8" text="메시지"/>
  75. <Cell col="9" text="지원부서"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell celltype="head" expr="currow+1"/>
  79. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'Y' || check == '1' ? 1 : 0"/>
  80. <Cell col="2" displaytype="text" edittype="text" style="align:right middle;" text="bind:sortno"/>
  81. <Cell col="3" text="bind:partgrupcd"/>
  82. <Cell col="4" displaytype="text" edittype="text" text="bind:partcd"/>
  83. <Cell col="5" text="bind:partdetlcd"/>
  84. <Cell col="6" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
  85. <Cell col="7" displaytype="text" edittype="text" style="align:right middle;" text="bind:excutm"/>
  86. <Cell col="8" displaytype="text" edittype="text" text="bind:basecdcnts"/>
  87. <Cell col="9" text="bind:suppdeptcd"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Static text="검사 선/후 관계 그룹" position="absolute 0 72 146 94" id="caption1" class="tit_2"/>
  93. <Shape position="absolute 250 88 1195 94" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  94. <Static text="검사 선/후 관계 코드" position="absolute 250 72 396 94" id="caption3" class="tit_2"/>
  95. <Button position="absolute 986 66 1113 88" id="btn_selcalcscorcd" class="btn2" text="검사코드조회및추가" anchor="top right" onclick="btn_selcalcscorcd_onclick"/>
  96. <Button position="absolute 931 66 984 88" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
  97. <Button position="absolute 1115 66 1195 88" id="button12" class="btn7" text="엑셀저장" anchor="top right" onclick="button12_onclick"/>
  98. <Div position="absolute 370 288 968 451" id="group1" visible="false" style="border:1 solid #808080ff ;">
  99. <Layouts>
  100. <Layout>
  101. <Grid position="absolute 3 3 593 128" id="grd_codelist" binddataset="ds_tmp_examcurecdlist_item" anchor="default" autoenter="select" cellsizingtype="col">
  102. <Formats>
  103. <Format id="default">
  104. <Columns>
  105. <Column size="108"/>
  106. <Column size="320"/>
  107. <Column size="158"/>
  108. <Column size="0"/>
  109. </Columns>
  110. <Rows>
  111. <Row size="24" band="head"/>
  112. <Row size="24"/>
  113. </Rows>
  114. <Band id="head">
  115. <Cell text="검사코드"/>
  116. <Cell col="1" text="검사명"/>
  117. <Cell col="2" text="수행부서"/>
  118. <Cell col="3" text="메시지"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell text="bind:excucd"/>
  122. <Cell col="1" text="bind:excucdnm"/>
  123. <Cell col="2" displaytype="combo" edittype="combo" text="bind:prcpexecdeptcd" combodataset="ds_init_dept_info_initprcpexecdeptcd" combocodecol="prcpexecdeptcdid" combodatacol="prcpexecdeptcdnm" enable="false"/>
  124. <Cell col="3" text="bind:excurem"/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. <Button position="absolute 537 133 593 155" id="button26" class="btn4" text="닫기" anchor="default"/>
  130. </Layout>
  131. </Layouts>
  132. </Div>
  133. <Static id="caption19" text="검사 선/후 관게 기준관리" class="tit_1" position="absolute 0 0 218 24"/>
  134. <Shape id="line32" class="line_6" position="absolute 0 758 1195 764" anchor="left right bottom"/>
  135. <Button id="button1" taborder="2" text="저장" class="btn4" position="absolute 1019 762 1075 784" anchor="right bottom" onclick="button1_onclick"/>
  136. <Button id="button2" taborder="3" text="삭제" class="btn4" position="absolute 1079 762 1135 784" anchor="right bottom" onclick="button2_onclick"/>
  137. <Button id="btn_close" taborder="4" text="닫기" class="btn4" position="absolute 1139 762 1195 784" anchor="right bottom" onclick="btn_close_onclick"/>
  138. </Layout>
  139. </Layouts>
  140. <Objects>
  141. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="partcd" type="STRING" size="256"/>
  144. <Column id="partgrupcd" type="STRING" size="256"/>
  145. <Column id="partdetlcd" type="STRING" size="256"/>
  146. <Column id="basecdflag" type="STRING" size="256"/>
  147. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  148. <Column id="suppdeptcd" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="partdetlcd">-</Col>
  153. </Row>
  154. </Rows>
  155. </Dataset>
  156. <Dataset id="ds_main_grupcdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  157. <ColumnInfo>
  158. <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
  159. <Column id="grupcdnm" type="STRING" size="256" sumtext="그룹코드명"/>
  160. <Column id="grupcdrem" type="STRING" size="256" sumtext="그룹코드비고"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_main_detlcdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlcdlist_item_oncolumnchanged">
  164. <ColumnInfo>
  165. <Column id="check" type="STRING" size="256" sumtext="지원부서코드"/>
  166. <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  167. <Column id="partgrupcd" type="STRING" size="256" sumtext="대분류코드"/>
  168. <Column id="partcd" type="STRING" size="256" sumtext="중분류코드"/>
  169. <Column id="partdetlcd" type="STRING" size="256" sumtext="소분류코드"/>
  170. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="코드설명"/>
  171. <Column id="basecdcnts" type="STRING" size="256" sumtext="상세내용"/>
  172. <Column id="excutm" type="STRING" size="256" sumtext="소요시간"/>
  173. <Column id="sortno" type="STRING" size="256" sumtext="정렬번호"/>
  174. <Column id="choi1" type="STRING" size="256" sumtext="선택코드1"/>
  175. <Column id="choi2" type="STRING" size="256" sumtext="선택코드2"/>
  176. <Column id="choi3" type="STRING" size="256" sumtext="선택코드3"/>
  177. </ColumnInfo>
  178. </Dataset>
  179. <Dataset id="ds_tmp_examcurecdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  180. <Dataset id="ds_init_dept_info_initprcpexecdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  181. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  182. </Objects>
  183. <Bind>
  184. <BindItem id="item0" compid="group2.ipt_srchexamcurecd" propid="value" datasetid="ds_send" columnid="partcd"/>
  185. </Bind>
  186. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  187. * System Name :
  188. * Job Name :
  189. * Creator :
  190. * Make Date : 2015-11-13
  191. * Description :
  192. *---------------------------------------------------------------------------------------
  193. * Modify Date Modifier Modify Description
  194. *---------------------------------------------------------------------------------------
  195. * 2015-11-13 Live Converter TF->XP
  196. *
  197. *---------------------------------------------------------------------------------------
  198. ****************************************************************************************/
  199. include "com_commonxp::comm_main.xjs";
  200. include "ast_examcurexp::AEZ0001.xjs";
  201. include "ast_commonxp::AST.xjs";
  202. var gSuppdeptcd = "";
  203. var arErrorCode = new HashArray();
  204. function SMAEB04300_oninit(obj:Form, e:InitEventInfo)
  205. {
  206. frmf_initForm(obj);
  207. }
  208. function SMAEB04300_onload(obj:Form, e:LoadEventInfo)
  209. {
  210. grdf_initGrid(grd_grupcdlist);
  211. grdf_initGrid(grd_detlcdlist);
  212. lf_aezfSetSuppDeptcd();
  213. gSuppdeptcd = suppdeptcd;
  214. ds_send.setColumn(0, "basesuppdeptcd", gSuppdeptcd);
  215. ds_main_grupcdlist_item.clearData();
  216. ds_main_detlcdlist_item.clearData();
  217. var oParam = {};
  218. oParam.id = "TRAEB00205";
  219. oParam.service = "examcurebaseapp.ComCode";
  220. oParam.method = "reqGetPrcpExecDeptCdList";
  221. oParam.inds = "req=";
  222. oParam.outds = "ds_init_dept_info_initprcpexecdeptcd=item";
  223. oParam.async = false;
  224. //oParam.callback = "cf_TRAEB00205";
  225. tranf_submit(oParam); // 수행부서 코드 가져오기
  226. dsf_setFixVal(ds_send, "basecdflag:G");
  227. var oParam = {};
  228. oParam.id = "TRAEB04101";
  229. oParam.service = "examcurebaseapp.ExamCureCode";
  230. oParam.method = "reqGetExamPrityGrupList";
  231. oParam.inds = "req=ds_send";
  232. oParam.outds = "ds_main_grupcdlist_item=item";
  233. oParam.async = false;
  234. //oParam.callback = "cf_TRAEB04101";
  235. tranf_submit(oParam);
  236. }
  237. function group2_ipt_srchexamcurecd_onkeyup(obj:Edit, e:KeyEventInfo)
  238. {
  239. if(e.keycode == 13)
  240. {
  241. obj.updateToDataset();
  242. group2.btn_sea.click();
  243. }
  244. }
  245. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  246. {
  247. fnGetMainList();
  248. }
  249. function fnGetMainList()
  250. {
  251. dsf_setFixVal(ds_send, "basecdflag:G");
  252. var oParam = {};
  253. oParam.id = "TRAEB04101";
  254. oParam.service = "examcurebaseapp.ExamCureCode";
  255. oParam.method = "reqGetExamPrityGrupList";
  256. oParam.inds = "req=ds_send";
  257. oParam.outds = "ds_main_grupcdlist_item=item";
  258. oParam.async = false;
  259. //oParam.callback = "cf_TRAEB04101";
  260. tranf_submit(oParam);
  261. if(arErrorCode.pop("TRAEB04101") > -1)
  262. {
  263. ds_main_detlcdlist_item.clearData();
  264. }
  265. }
  266. function cf_TRAEB04101(sSvcId, nErrorCode, sErrorMsg)
  267. {
  268. if(nErrorCode < 0) return;
  269. arErrorCode.push(sSvcId, nErrorCode);
  270. }
  271. function grd_grupcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  272. {
  273. if (e.row < 0)
  274. {
  275. return false;
  276. }
  277. var rownum = e.row;
  278. ds_send.setColumn(0, "partgrupcd", ds_main_grupcdlist_item.getColumn(rownum, "grupcd"));
  279. ds_send.setColumn(0, "suppdeptcd", ds_send.getColumn(0, "basesuppdeptcd"));
  280. var oParam = {};
  281. oParam.id = "TRAEB04303";
  282. oParam.service = "examcurebaseapp.ExamCureCode";
  283. oParam.method = "reqGetPartDetlClsCodeList";
  284. oParam.inds = "req=ds_send";
  285. oParam.outds = "ds_main_detlcdlist_item=item";
  286. oParam.async = false;
  287. //oParam.callback = "cf_TRAEB04303";
  288. tranf_submit(oParam);
  289. ds_main_detlcdlist_item.updatecontrol = false;
  290. dsf_setFixVal(ds_main_detlcdlist_item, "check:N");
  291. ds_main_detlcdlist_item.updatecontrol = true;
  292. }
  293. function ds_main_detlcdlist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  294. {
  295. if(e.columnid == "check")
  296. {
  297. obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  298. }
  299. }
  300. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  301. {
  302. dsf_deleteSelectedRows(grd_detlcdlist, true);
  303. }
  304. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  305. {
  306. var grupcd = ds_main_grupcdlist_item.getColumn(ds_main_grupcdlist_item.rowposition, "grupcd");
  307. if (!utlf_isNull(grupcd))
  308. {
  309. var addRow = ds_main_detlcdlist_item.addRow();
  310. dsf_makeValue(ds_main_detlcdlist_item, "m", "string", "i", addRow);
  311. dsf_makeValue(ds_main_detlcdlist_item, "sortno", "string", "0", addRow);
  312. dsf_makeValue(ds_main_detlcdlist_item, "partgrupcd", "string", grupcd, addRow);
  313. dsf_makeValue(ds_main_detlcdlist_item, "partcd", "string", "", addRow);
  314. dsf_makeValue(ds_main_detlcdlist_item, "partdetlcd", "string", "-", addRow);
  315. dsf_makeValue(ds_main_detlcdlist_item, "basecdflagdesc", "string", "", addRow);
  316. dsf_makeValue(ds_main_detlcdlist_item, "excutm", "int", 0, addRow);
  317. dsf_makeValue(ds_main_detlcdlist_item, "basecdcnts", "int", "", addRow);
  318. dsf_makeValue(ds_main_detlcdlist_item, "suppdeptcd", "int", "", addRow);
  319. }
  320. else
  321. {
  322. alert("검사 그룹을 선택해 주십시요!");
  323. }
  324. }
  325. function btn_selcalcscorcd_onclick(obj:Button, e:ClickEventInfo)
  326. {
  327. var grupcd = ds_main_grupcdlist_item.getColumn(ds_main_grupcdlist_item.rowposition, "grupcd");
  328. if (!utlf_isNull(grupcd))
  329. {
  330. frmf_modal("SPAEB00500", "SPAEB00500", "", "", "", "", "", "", "", "", "", "", "M");
  331. }
  332. else
  333. {
  334. sysf_messageBox("검사 선/후 관계 그룹을", "C002");
  335. }
  336. }
  337. function button12_onclick(obj:Button, e:ClickEventInfo)
  338. {
  339. grdf_exportExcel(grd_detlcdlist, "excel", "Sheet1", "true", "", "");
  340. }
  341. function fNullValidation(pDataset, pCol, pMsg)
  342. {
  343. var cntnull = pDataset.getCaseCount(pCol+"== null || "+pCol+"== undefined");
  344. if(cntnull > 0)
  345. {
  346. sysf_messageBox(pMsg , "C001");
  347. return false;
  348. }
  349. return true;
  350. }
  351. function button1_onclick(obj:Button, e:ClickEventInfo)
  352. {
  353. // if(!astfNullValidation(ds_main_detlcdlist_item, "sortno", "우선순위를")) return false;
  354. // if(!astfNullValidation(ds_main_detlcdlist_item, "partcd", "검사코드를")) return false;
  355. // if(!astfNullValidation(ds_main_detlcdlist_item, "excutm", "검사 간격을")) return false;
  356. // astfNullValidation 함수 sortno, excutm 컬럼은 null 값 체크가 안되는 관계로 새로 함수 만듬
  357. if(!fNullValidation(ds_main_detlcdlist_item, "sortno", "우선순위를")) return false;
  358. if(!fNullValidation(ds_main_detlcdlist_item, "partcd", "검사코드를")) return false;
  359. if(!fNullValidation(ds_main_detlcdlist_item, "excutm", "검사 간격을")) return false;
  360. var suppdeptcd = "";
  361. for (var i = 0; i < ds_main_detlcdlist_item.rowcount; i++)
  362. {
  363. suppdeptcd = ds_main_detlcdlist_item.getColumn(i, "suppdeptcd");
  364. if (utlf_isNull(suppdeptcd))
  365. {
  366. ds_main_detlcdlist_item.setColumn(i, "suppdeptcd", ds_send.getColumn(0, "suppdeptcd"));
  367. ds_main_detlcdlist_item.updatecontrol = false;
  368. ds_main_detlcdlist_item.setRowType(i, "i");
  369. ds_main_detlcdlist_item.updatecontrol = true;
  370. }
  371. }
  372. if ( sysf_messageBox("","Q002")==6 )
  373. {
  374. var update = grdf_getGridUpdateData(grd_detlcdlist).rowcount;
  375. if(update == 0)
  376. {
  377. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  378. return 0;
  379. }
  380. else
  381. {
  382. var oParam = {};
  383. oParam.id = "TXAEB04301";
  384. oParam.service = "examcurebaseapp.ExamCureCode";
  385. oParam.method = "reqExePartDetlClsCode";
  386. oParam.inds = "req=ds_main_detlcdlist_item";
  387. oParam.outds = "ds_=item";
  388. oParam.async = false;
  389. oParam.callback = "cf_TXAEB04301";
  390. tranf_submit(oParam);
  391. }
  392. }
  393. }
  394. function cf_TXAEB04301(sSvcId, nErrorCode, sErrorMsg)
  395. {
  396. if(nErrorCode < 0) return;
  397. var oParam = {};
  398. oParam.id = "TRAEB04303";
  399. oParam.service = "examcurebaseapp.ExamCureCode";
  400. oParam.method = "reqGetPartDetlClsCodeList";
  401. oParam.inds = "req=ds_send";
  402. oParam.outds = "ds_main_detlcdlist_item=item";
  403. oParam.async = false;
  404. //oParam.callback = "cf_TRAEB04303";
  405. tranf_submit(oParam);
  406. ds_main_detlcdlist_item.updatecontrol = false;
  407. dsf_setFixVal(ds_main_detlcdlist_item, "check:N");
  408. ds_main_detlcdlist_item.updatecontrol = true;
  409. }
  410. function button2_onclick(obj:Button, e:ClickEventInfo)
  411. {
  412. if ( sysf_messageBox("","Q001")==6 )
  413. {
  414. var nodeList = ds_main_detlcdlist_item.getCaseCount("check == Y");
  415. if ( nodeList > 0)
  416. {
  417. sysf_messageBox("삭제할 검사코드을 선택해 주십시오.","I999");
  418. return "0";
  419. }
  420. var loop = ds_main_detlcdlist_item.rowcount;
  421. var loopcnt = 0;
  422. var check = "";
  423. var suppdeptcd = "";
  424. for (var i = 0; i < loop; i++)
  425. {
  426. check = ds_main_detlcdlist_item.getColumn(i, "check");
  427. suppdeptcd = ds_main_detlcdlist_item.getColumn(i, "suppdeptcd");
  428. if ( check == "Y" && !utlf_isNull(suppdeptcd))
  429. {
  430. ds_main_detlcdlist_item.updatecontrol = false;
  431. ds_main_detlcdlist_item.setRowType(i, "d");
  432. ds_main_detlcdlist_item.updatecontrol = true;
  433. loopcnt++;
  434. }
  435. }
  436. var updategrid = grdf_getGridUpdateData(grd_detlcdlist);
  437. grdf_setStatusColumn(updategrid, "m");
  438. ds_send_req.copyData(updategrid, true);
  439. var oParam = {};
  440. oParam.id = "TXAEB04301";
  441. oParam.service = "examcurebaseapp.ExamCureCode";
  442. oParam.method = "reqExePartDetlClsCode";
  443. oParam.inds = "req=ds_send_req";
  444. oParam.outds = "ds_=item";
  445. oParam.async = false;
  446. oParam.callback = "cf_TXAEB04301";
  447. tranf_submit(oParam);
  448. }
  449. }
  450. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  451. {
  452. this.close();
  453. }
  454. ]]></Script>
  455. </Form>
  456. </FDL>