SMAHB00700_결과예문관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHB00700" position="absolute 0 0 1204 781" titletext="결과 예문 관리" oninit="SMAHB00700_oninit" onload="SMAHB00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="결과예문관리 &amp; 추후관리예문" class="tit_1" position="absolute 0 0 255 25"/>
  8. <Static id="caption1" text="예문작성란" class="tit_2" position="absolute 715 75 801 97" anchor="top right"/>
  9. <Shape id="line10" linetype="horizontal" class="line_3" position="absolute 715 743 1194 749" anchor="top right"/>
  10. <Shape id="line1" class="line_10" position="absolute 715 91 1194 97" anchor="top right"/>
  11. <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 715 118 1194 124" anchor="top right"/>
  12. <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 715 144 1194 150" anchor="top right"/>
  13. <Static id="caption7" text="예문코드" class="cell_1" position="absolute 715 122 794 145" anchor="top right"/>
  14. <Static id="caption3" text="예문내역" class="tit_2" position="absolute 0 75 106 97"/>
  15. <Shape id="line4" class="line_10" position="absolute 0 91 710 97" anchor="left top right"/>
  16. <Shape id="line5" linetype="vertical" class="line_2" position="absolute 715 163 1194 169" anchor="top right"/>
  17. <Shape id="line8" linetype="vertical" class="line_2" position="absolute 715 291 1194 297" anchor="top right"/>
  18. <Edit id="ipt_exmpcd" taborder="1" class="input_essential" position="absolute 797 125 1195 144" autoselect="true" autoskip="true" anchor="top right" onkeyup="ipt_exmpcd_onkeyup"/>
  19. <TextArea id="tar_hangcnts" taborder="2" position="absolute 796 149 1195 739" autoselect="true" autoskip="true" wordwrap="word" anchor="top right"/>
  20. <Div id="grp_search" anchor="left top right" taborder="3" class="div_SA" position="absolute 0 25 1195 65">
  21. <Layouts>
  22. <Layout>
  23. <Static id="caption21" text="예문코드 :" class="search_name" position="absolute 291 12 369 29"/>
  24. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1122 9 1178 31" anchor="top right" onclick="grp_search_btn_search_onclick"/>
  25. <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1101 9 1107 31" anchor="top right"/>
  26. <Edit id="ipt_examcnts" taborder="2" autoselect="true" autoskip="true" class="input_search" position="absolute 750 11 1040 30" onkeydown="grp_search_ipt_examcnts_onkeydown"/>
  27. <Edit id="ipt_examcd" taborder="3" autoselect="true" autoskip="true" class="input_search" position="absolute 380 11 545 30" onkeydown="grp_search_ipt_examcd_onkeydown"/>
  28. <Static id="caption22" text="예문내용 :" class="search_name" position="absolute 660 11 738 28"/>
  29. <Combo id="cmb_srchhealexamflag" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 75 12 190 31">
  30. <Dataset id="innerdataset">
  31. <ColumnInfo>
  32. <Column id="codecolumn"/>
  33. <Column id="datacolumn"/>
  34. </ColumnInfo>
  35. <Rows>
  36. <Row>
  37. <Col id="codecolumn">A</Col>
  38. <Col id="datacolumn">결과예문</Col>
  39. </Row>
  40. <Row>
  41. <Col id="codecolumn">B</Col>
  42. <Col id="datacolumn">추후관리예문</Col>
  43. </Row>
  44. </Rows>
  45. </Dataset>
  46. </Combo>
  47. <Static id="caption12" text="구분 :" class="search_name" position="absolute 11 13 73 30"/>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Static id="caption2" text="예문내용" class="cell_1" position="absolute 715 148 794 738" anchor="top right"/>
  52. <Grid id="grd_rexm" taborder="4" binddataset="ds_main_rsltexmpcdlst_item" useinputpanel="false" position="absolute 0 96 710 746" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_rexm_oncelldblclick">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="20"/>
  57. <Column size="30"/>
  58. <Column size="78"/>
  59. <Column size="448"/>
  60. <Column size="64"/>
  61. <Column size="100"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="24" band="head"/>
  65. <Row size="24"/>
  66. </Rows>
  67. <Band id="head">
  68. <Cell/>
  69. <Cell col="1" text="순서"/>
  70. <Cell col="2" text="예문코드"/>
  71. <Cell col="3" text="예문내용"/>
  72. <Cell col="4" text="최종수정자"/>
  73. <Cell col="5" text="최종수정일시"/>
  74. </Band>
  75. <Band id="body">
  76. <Cell celltype="head"/>
  77. <Cell col="1" text="bind:afseq"/>
  78. <Cell col="2" style="align:left middle;padding:3 0 0 3;" text="bind:rsltexmpcd"/>
  79. <Cell col="3" style="align:left top;padding:3 0 0 3;" text="bind:rsltexmpcnts" wordwrap="word"/>
  80. <Cell col="4" style="align:left middle;padding:3 0 0 3;" text="bind:lastupdtrid"/>
  81. <Cell col="5" style="align:left middle;padding:3 0 0 3;" text="bind:lastupdtdt"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Static id="caption4" text="정렬순서" class="cell_1" position="absolute 715 96 794 119" anchor="top right"/>
  87. <Edit id="ipt_afseq" taborder="5" class="input_essential" position="absolute 798 98 1195 117" autoselect="true" autoskip="true" anchor="top right" onkeyup="ipt_afseq_onkeyup"/>
  88. <Button id="btn_print" taborder="6" text="출력" class="btn6" position="absolute 0 752 56 774" anchor="left bottom" onclick="btn_print_onclick" visible="false"/>
  89. <Button id="btn_save" taborder="7" text="저장" class="btn4" position="absolute 1007 752 1063 774" anchor="right bottom" onclick="btn_save_onclick"/>
  90. <Button id="btn_del" taborder="8" text="삭제" class="btn4" position="absolute 1067 752 1123 774" anchor="right bottom" onclick="btn_del_onclick"/>
  91. <Button id="btn_clear" taborder="9" text="초기화" class="btn4" position="absolute 1126 752 1194 774" anchor="right bottom" onclick="btn_clear_onclick"/>
  92. </Layout>
  93. </Layouts>
  94. <Objects>
  95. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="srchrsltexmpcd" type="STRING" size="256"/>
  98. <Column id="srchrsltexmpcnts" type="STRING" size="256"/>
  99. <Column id="srchratype" type="STRING" size="256"/>
  100. <Column id="save" type="STRING" size="256"/>
  101. <Column id="srchinstcd" type="STRING" size="256"/>
  102. </ColumnInfo>
  103. <Rows>
  104. <Row>
  105. <Col id="srchrsltexmpcd"/>
  106. <Col id="srchrsltexmpcnts"/>
  107. <Col id="srchratype"/>
  108. <Col id="save"/>
  109. <Col id="srchinstcd"/>
  110. </Row>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_main_rsltexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rsltexmpcdlst_item_oncolumnchanged">
  114. <ColumnInfo>
  115. <!-- 소견선택화면에서 사용하기 위해 SEL추가 BY 손주연 2007-08-11 -->
  116. <Column id="sel" type="STRING" size="256" sumtext="선택구분"/>
  117. <Column id="afseq" type="STRING" size="256" sumtext="순서"/>
  118. <Column id="rsltexmpcd" type="STRING" size="256" sumtext="결과예문코드"/>
  119. <Column id="rsltexmpcnts" type="STRING" size="256" sumtext="결과예문내용"/>
  120. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  121. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  122. </ColumnInfo>
  123. </Dataset>
  124. <Dataset id="ds_main_rsltexmpcntslst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="afseq" type="STRING" size="256" sumtext="결과예문코드"/>
  127. <Column id="rsltexmpcd" type="STRING" size="256" sumtext="결과예문코드"/>
  128. <Column id="rsltexmpcnts" type="STRING" size="256" sumtext="결과예문내용"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row/>
  132. </Rows>
  133. </Dataset>
  134. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="rsltexmpcnts" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row/>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  143. </Objects>
  144. <Bind>
  145. <BindItem id="item0" compid="grp_search.cmb_srchhealexamflag" propid="value" datasetid="ds_send" columnid="srchratype"/>
  146. <BindItem id="item1" compid="grp_search.ipt_examcd" propid="value" datasetid="ds_send" columnid="srchrsltexmpcd"/>
  147. <BindItem id="item2" compid="grp_search.ipt_examcnts" propid="value" datasetid="ds_send" columnid="srchrsltexmpcnts"/>
  148. <BindItem id="item3" compid="ipt_afseq" propid="value" datasetid="ds_main_rsltexmpcntslst_item" columnid="afseq"/>
  149. <BindItem id="item4" compid="ipt_exmpcd" propid="value" datasetid="ds_main_rsltexmpcntslst_item" columnid="rsltexmpcd"/>
  150. <BindItem id="item5" compid="tar_hangcnts" propid="value" datasetid="ds_main_rsltexmpcntslst_item" columnid="rsltexmpcnts"/>
  151. </Bind>
  152. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  153. * System Name :
  154. * Job Name :
  155. * Creator :
  156. * Make Date : 2015-11-13
  157. * Description :
  158. *---------------------------------------------------------------------------------------
  159. * Modify Date Modifier Modify Description
  160. *---------------------------------------------------------------------------------------
  161. * 2015-11-13 Live Converter TF->XP
  162. *
  163. *---------------------------------------------------------------------------------------
  164. ****************************************************************************************/
  165. include "com_commonxp::comm_main.xjs";
  166. include "ast_healexamxp::AHA001.xjs";
  167. include "ast_healthexambasexp::healcombolist.xjs";
  168. function SMAHB00700_oninit(obj:Form, e:InitEventInfo)
  169. {
  170. frmf_initForm(obj);
  171. }
  172. function SMAHB00700_onload(obj:Form, e:LoadEventInfo)
  173. {
  174. grdf_initGrid(grd_rexm);
  175. grdf_setRowTypeIcon(grd_rexm, 0);
  176. grp_search.btn_search.enable = frmf_checkAuth("R");
  177. btn_save.enable = frmf_checkAuth("X");
  178. btn_clear.enable = frmf_checkAuth("X");
  179. btn_print.enable = frmf_checkAuth("P");
  180. }
  181. function grp_search_ipt_examcd_onkeydown(obj:Edit, e:KeyEventInfo)
  182. {
  183. if(e.keycode == 13)
  184. {
  185. obj.updateToDataset();
  186. grp_search.btn_search.click();
  187. }
  188. }
  189. function grp_search_ipt_examcnts_onkeydown(obj:Edit, e:KeyEventInfo)
  190. {
  191. if(e.keycode == 13)
  192. {
  193. obj.updateToDataset();
  194. grp_search.btn_search.click();
  195. }
  196. }
  197. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  198. {
  199. fGetRexmCdList();
  200. }
  201. function fGetRexmCdList()
  202. {
  203. fInit(false);
  204. if(utlf_isNull(ds_send.getColumn(0, "srchratype")))
  205. {
  206. sysf_messageBox("구분을","C002");
  207. ipt_afseq.setFocus();
  208. }
  209. ds_send.setColumn(0, "srchinstcd",sysf_getUserInfo("dutplceinstcd"));
  210. var oParam = {};
  211. oParam.id = "TRAHB00701";
  212. oParam.service = "healexambaseapp.RexmCode";
  213. oParam.method = "reqGetRexmCdList";
  214. oParam.inds = "req=ds_send";
  215. oParam.outds = "ds_main_rsltexmpcdlst_item=item";
  216. oParam.async = false;
  217. //oParam.callback = "cf_TRAHB00701";
  218. tranf_submit(oParam);
  219. }
  220. function fInit(vInput)
  221. {
  222. ipt_exmpcd.enable = true;
  223. if( vInput == false )
  224. {
  225. ds_main_rsltexmpcntslst_item.clearData();
  226. ds_main_rsltexmpcntslst_item.addRow();
  227. }
  228. ds_main.setColumn(0, "rsltexmpcnts","");
  229. ipt_afseq.setFocus();
  230. }
  231. function grd_rexm_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  232. {
  233. fGetRexmCnts(false);
  234. }
  235. function fGetRexmCnts(bCopy)
  236. {
  237. var idx = ds_main_rsltexmpcdlst_item.rowposition;
  238. if( idx < 0) return ;
  239. ipt_exmpcd.enable = bCopy ;
  240. ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
  241. ds_send.setColumn(0, "srchrsltexmpcd", ds_main_rsltexmpcdlst_item.getColumn(idx, "rsltexmpcd"));
  242. var oParam = {};
  243. oParam.id = "TRAHB00702";
  244. oParam.service = "healexambaseapp.RexmCode";
  245. oParam.method = "reqGetRexmCnts";
  246. oParam.inds = "req=ds_send";
  247. oParam.outds = "ds_main_rsltexmpcntslst_item=item";
  248. oParam.async = false;
  249. //oParam.callback = "cf_TRAHB00702";
  250. tranf_submit(oParam);
  251. ds_send.setColumn(0, "srchrsltexmpcd", "");
  252. if(bCopy == true )
  253. {
  254. ds_main.setColumn(0, "rsltexmpcnts","");
  255. ipt_exmpcd.setFocus();
  256. }
  257. }
  258. function ipt_afseq_onkeyup(obj:Edit, e:KeyEventInfo)
  259. {
  260. if(e.keycode == 13)
  261. {
  262. obj.updateToDataset();
  263. ipt_exmpcd.setFocus();
  264. }
  265. }
  266. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. fInit(false);
  269. }
  270. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  271. {
  272. fSaveRexmCd(true);
  273. }
  274. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  275. {
  276. fSaveRexmCd(false);
  277. }
  278. function fSaveRexmCd(vDel)
  279. {
  280. if(vDel == true )
  281. {
  282. if (sysf_messageBox("정보를","Q001") !=6 ) return ;
  283. }
  284. else
  285. {
  286. if (sysf_messageBox("정보를","Q002") !=6 ) return ;
  287. }
  288. ds_send_save.copyData(ds_main_rsltexmpcntslst_item);
  289. if( ipt_exmpcd.enable == false)
  290. {
  291. if(vDel == false )
  292. {
  293. dsf_makeValue(ds_send_save, "mode", "string", "u");
  294. }
  295. else
  296. {
  297. dsf_makeValue(ds_send_save, "mode", "string", "d");
  298. }
  299. }
  300. else
  301. {
  302. dsf_makeValue(ds_send_save, "mode", "string", "i");
  303. }
  304. dsf_makeValue(ds_send_save, "srchinstcd", "string", sysf_getUserInfo("dutplceinstcd"));
  305. dsf_makeValue(ds_send_save, "srchratype", "string", ds_send.getColumn(0, "srchratype"));
  306. var oParam = {};
  307. oParam.id = "TXAHB00701";
  308. oParam.service = "healexambaseapp.RexmCode";
  309. oParam.method = "reqExeRexmCode";
  310. oParam.inds = "req=ds_send_save";
  311. oParam.outds = "ds_=item";
  312. oParam.async = false;
  313. oParam.callback = "cf_TXAHB00701";
  314. tranf_submit(oParam);
  315. }
  316. function cf_TXAHB00701(sSvcId, nErrorCode, sErrorMsg)
  317. {
  318. if(nErrorCode < 0) return;
  319. else
  320. {
  321. fGetRexmCdList();
  322. }
  323. }
  324. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  325. {
  326. }
  327. ]]></Script>
  328. </Form>
  329. </FDL>