SPRSD00260_연구과제HELP.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRSD00260" position="absolute 0 0 731 570" titletext="연구과제 검색화면" oninit="SPRSD00260_oninit" onload="SPRSD00260_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 8 0 708 560" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 5 700 40" id="group2">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 700 35" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  14. <Edit position="absolute 297 8 432 27" id="ipt_refcond" class="input_essential" onkeydown="group3_group2_ipt_refcond_onkeydown"/>
  15. <Button position="absolute 629 7 685 29" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
  16. <Shape position="absolute 611 6 617 30" linetype="vertical" id="line13" class="line_4"/>
  17. <Static text="조회조건 :" position="absolute 211 9 297 26" id="caption2" class="search_name"/>
  18. <Radio position="absolute 15 9 200 29" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" style="border:1 solid #808080ff ;" onitemclick="group3_group2_rdo_refcond_onitemclick"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static text="연구과제리스트" position="absolute 0 49 145 65" id="caption1" class="tit_2"/>
  23. <Shape position="absolute 0 65 700 71" linetype="horizontal" id="line1" class="line_10"/>
  24. <Grid position="absolute 0 69 700 529" id="grd_studylist" class="grd_prodcmpylist" binddataset="ds_main_studylist" onmousemove="group3_grd_studylist_onmousemove" oncelldblclick="group3_grd_studylist_oncelldblclick">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="100"/>
  29. <Column size="218"/>
  30. <Column size="93"/>
  31. <Column size="95"/>
  32. <Column size="80"/>
  33. <Column size="80"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell text="연구과제번호"/>
  43. <Cell col="1" text="연구과제명"/>
  44. <Cell col="2" text="청구일자FROM"/>
  45. <Cell col="3" text="청구일자 TODD"/>
  46. <Cell col="4" text="사원번호"/>
  47. <Cell col="5" text="책임자"/>
  48. <Cell col="6" text="프로젝트여부"/>
  49. <Cell col="7" text="기관코드"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell text="bind:stdysubjno"/>
  53. <Cell col="1" text="bind:stdysubjnm"/>
  54. <Cell col="2" style="align:center middle;" text="bind:fromdd" mask="####-##-##"/>
  55. <Cell col="3" style="align:center middle;" text="bind:todd" mask="####-##-##"/>
  56. <Cell col="4" text="bind:stdypsn"/>
  57. <Cell col="5" text="bind:stdypnm"/>
  58. <Cell col="6" style="align:center middle;" text="bind:projectyn"/>
  59. <Cell col="7" text="bind:instcd"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. <Div position="absolute 0 533 700 560" id="group1" scrollbars="autoboth">
  65. <Layouts>
  66. <Layout>
  67. <Button position="absolute 587 5 643 27" id="btn_confirm" class="btn4" text="확인" onclick="group3_group1_btn_confirm_onclick"/>
  68. <Button position="absolute 644 5 700 27" id="btn_cancel" class="btn4" text="취소" onclick="group3_group1_btn_cancel_onclick"/>
  69. <Shape position="absolute 0 0 700 6" linetype="horizontal" id="line32" class="line_6"/>
  70. </Layout>
  71. </Layouts>
  72. </Div>
  73. </Layout>
  74. </Layouts>
  75. </Div>
  76. </Layout>
  77. </Layouts>
  78. <Objects>
  79. <Dataset id="ds_main_studylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="stdysubjno" type="STRING" size="256"/>
  82. <Column id="projectyn" type="STRING" size="256"/>
  83. <Column id="stdysubjnm" type="STRING" size="256"/>
  84. <Column id="fromdd" type="STRING" size="256"/>
  85. <Column id="todd" type="STRING" size="256"/>
  86. <Column id="stdypsn" type="STRING" size="256"/>
  87. <Column id="stdypnm" type="STRING" size="256"/>
  88. <Column id="instcd" type="STRING" size="256"/>
  89. </ColumnInfo>
  90. <Rows>
  91. <Row>
  92. <Col id="stdysubjno"/>
  93. <Col id="projectyn"/>
  94. <Col id="stdysubjnm"/>
  95. <Col id="fromdd"/>
  96. <Col id="todd"/>
  97. <Col id="stdypsn"/>
  98. <Col id="stdypnm"/>
  99. <Col id="instcd"/>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  104. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="label" type="STRING" size="256"/>
  107. <Column id="value" type="STRING" size="256"/>
  108. </ColumnInfo>
  109. <Rows>
  110. <Row>
  111. <Col id="label">연구과제번호</Col>
  112. <Col id="value">stdysubjno</Col>
  113. </Row>
  114. <Row>
  115. <Col id="label">연구과제명</Col>
  116. <Col id="value">stdysubjnm</Col>
  117. </Row>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="refcond" type="STRING" size="256"/>
  123. <Column id="reqdd" type="STRING" size="256"/>
  124. <Column id="stdysubjnm" type="STRING" size="256"/>
  125. <Column id="stdysubjno" type="STRING" size="256"/>
  126. <Column id="instcd" type="STRING" size="256"/>
  127. <Column id="projectyn" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. <Rows>
  130. <Row>
  131. <Col id="refcond"/>
  132. <Col id="reqdd"/>
  133. <Col id="stdysubjnm"/>
  134. <Col id="stdysubjno"/>
  135. <Col id="instcd"/>
  136. <Col id="projectyn"/>
  137. </Row>
  138. </Rows>
  139. </Dataset>
  140. </Objects>
  141. <Bind>
  142. <BindItem id="item0" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send" columnid="stdysubjnm"/>
  143. <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send" columnid="refcond"/>
  144. </Bind>
  145. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  146. * System Name :
  147. * Job Name :
  148. * Creator :
  149. * Make Date : 2017-06-19
  150. * Description :
  151. *---------------------------------------------------------------------------------------
  152. * Modify Date Modifier Modify Description
  153. *---------------------------------------------------------------------------------------
  154. * 2017-06-19 Live Converter TF->XP
  155. *
  156. *---------------------------------------------------------------------------------------
  157. ****************************************************************************************/
  158. include "com_commonxp::comm_main.xjs";
  159. include "mis_miscommonxp::MIS.xjs";
  160. function SPRSD00260_oninit(obj:Form, e:InitEventInfo)
  161. {
  162. frmf_initForm(obj);
  163. }
  164. function SPRSD00260_onload(obj:Form, e:LoadEventInfo)
  165. {
  166. ds_send.setColumn(0, "instcd" , ds_target_defaultvalue.getColumn(0, "instcd") );
  167. ds_send.setColumn(0, "reqdd" , ds_target_defaultvalue.getColumn(0, "reqdd") );
  168. ds_send.setColumn(0, "projectyn", ds_target_defaultvalue.getColumn(0, "projectyn") );
  169. if( utlf_isNull(ds_target_defaultvalue.getColumn(0, "projectyn")) )
  170. {
  171. ds_send.setColumn(0, "projectyn", "N");
  172. }
  173. ds_send.setColumn(0, "refcond", "stdysubjno");
  174. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo );
  175. group3.group2.ipt_refcond.setFocus();
  176. }
  177. function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  178. {
  179. if( e.keycode == 13 ){
  180. var ev = new ClickEventInfo;
  181. frmf_inputEnterKey("group3.group2.btn_search", "onclick", ev );
  182. }
  183. }
  184. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  185. {
  186. if(rdo_refcond.value == "stdysubjnm") {
  187. ds_send.setColumn(0, "stdysubjnm",group3.group2.ipt_refcond.text);
  188. }
  189. else {
  190. ds_send.setColumn(0, "stdysubjno",group3.group2.ipt_refcond.text);
  191. }
  192. dsf_setDefaultVal(ds_send, "projectyn:N");
  193. var oParam = {};
  194. oParam.id = "TRRSD00261";
  195. oParam.service = "purccommonapp.PurcCommon";
  196. oParam.method = "reqGetStudyList";
  197. oParam.inds = "req=ds_send";
  198. oParam.outds = "ds_main_studylist=studylist";
  199. oParam.async = false;
  200. tranf_submit(oParam);
  201. }
  202. function group3_group2_rdo_refcond_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  203. {
  204. if(rdo_refcond.value == "stdysubjnm") {
  205. //group3.group2.ipt_refcond.imemode = "stdysubjnm";
  206. }
  207. else if (rdo_refcond.value == "stdysubjno") {
  208. group3.group2.ipt_refcond.imemode = "none";
  209. }
  210. else {
  211. group3.group2.ipt_refcond.imemode = "none";
  212. }
  213. group3.group2.ipt_refcond.setFocus();
  214. }
  215. function group3_grd_studylist_onmousemove(obj:Grid, e:GridMouseEventInfo)
  216. {
  217. if(e.row >-1 && e.col > -1){
  218. if(!utlf_isNull(group3.grd_studylist.getCellValue(e.row,e.col))){
  219. group3.grd_studylist.tooltiptext = group3.grd_studylist.getCellValue(e.row,e.col);
  220. }else{
  221. group3.grd_studylist.tooltiptext ="";
  222. }
  223. }
  224. }
  225. function group3_grd_studylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  226. {
  227. if( e.row > -1 && e.col > -1 ) {
  228. frmf_inputEnterKey("group3.group1.btn_confirm", "onclick", new ClickEventInfo );
  229. }
  230. }
  231. function group3_group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  232. {
  233. misfPopUpListReturn(group3.grd_studylist);
  234. }
  235. function group3_group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. this.close();
  238. }
  239. ]]></Script>
  240. </Form>
  241. </FDL>