SMRSC01200_연구과제 등록.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC01200" position="absolute 0 0 1201 781" titletext="연구 과제 등록" oninit="SMRSC01200_oninit" onload="SMRSC01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="연구 과제 등록" class="tit_1" position="absolute 0 0 186 25"/>
  8. <Shape id="line16" class="line_2" position="absolute 0 47 1195 53" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1069 26 1125 48" anchor="default" onclick="btn_save_onclick"/>
  10. <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1127 26 1195 48" anchor="default" onclick="btn_clear_onclick"/>
  11. <Button id="btn_scrnmove" taborder="3" text="화면이동" class="btn3" visible="false" position="absolute 58 26 138 48"/>
  12. <Button id="btn_prt" taborder="4" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48"/>
  13. <Button id="btn_grdadd" taborder="5" text="행추가" class="btn2" position="absolute 1085 111 1138 130" onclick="btn_grdadd_onclick"/>
  14. <Button id="btn_grddel" taborder="6" text="행삭제" class="btn2" position="absolute 1141 111 1194 130" onclick="btn_grddel_onclick"/>
  15. <Shape id="line2" class="line_10" position="absolute 0 130 1195 136" anchor="left top right"/>
  16. <Grid id="grd_studylist" taborder="7" binddataset="ds_main_studylist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 135 1195 775" onexpanddown="grd_studylist_onexpanddown">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="19"/>
  21. <Column size="0"/>
  22. <Column size="95"/>
  23. <Column size="220"/>
  24. <Column size="91"/>
  25. <Column size="95"/>
  26. <Column size="88"/>
  27. <Column size="85"/>
  28. <Column size="485"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="24" band="head"/>
  32. <Row size="24"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell/>
  36. <Cell col="1" text="기관코드"/>
  37. <Cell col="2" text="연구과제번호"/>
  38. <Cell col="3" text="연구과제명"/>
  39. <Cell col="4" colspan="2" text="책임자" taborder="undefined"/>
  40. <Cell col="6" text="연구시작일자"/>
  41. <Cell col="7" text="연구종료일자"/>
  42. <Cell col="8" text="비고"/>
  43. </Band>
  44. <Band id="body">
  45. <Cell celltype="head"/>
  46. <Cell col="1" displaytype="text" edittype="text" text="bind:instcd"/>
  47. <Cell col="2" displaytype="text" edittype="text" text="bind:stdysubjno"/>
  48. <Cell col="3" displaytype="text" edittype="text" text="bind:stdysubjnm"/>
  49. <Cell col="4" displaytype="text" edittype="text" text="bind:stdypsn" expandshow="show"/>
  50. <Cell col="5" text="bind:stdypnm"/>
  51. <Cell col="6" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  52. <Cell col="7" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" calendardisplaynulltype="nulltext"/>
  53. <Cell col="8" displaytype="text" edittype="text" text="bind:cmt"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Static id="caption8" text="연구과제" class="tit_2" position="absolute 0 114 95 136"/>
  59. <Div id="grp_sea" anchor="left top right" taborder="8" class="div_SA2" position="absolute 0 51 1195 91">
  60. <Layouts>
  61. <Layout>
  62. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 11 101 28" anchor="default"/>
  63. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 3 1113 37" anchor="default"/>
  64. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="default" onclick="grp_sea_btn_search_onclick"/>
  65. <Combo id="cmb_instcd" taborder="4" class="combo_essential" position="absolute 102 10 260 29" anchor="default" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
  66. </Layout>
  67. </Layouts>
  68. </Div>
  69. </Layout>
  70. </Layouts>
  71. <Objects>
  72. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  73. <ColumnInfo>
  74. <Column id="instcd" type="STRING" size="256"/>
  75. <Column id="studylist" type="STRING" size="256"/>
  76. </ColumnInfo>
  77. <Rows>
  78. <Row>
  79. <Col id="instcd"/>
  80. <Col id="studylist"/>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. <Dataset id="ds_main_studylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_studylist_oncolumnchanged">
  85. <ColumnInfo>
  86. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  87. <Column id="stdysubjno" type="STRING" size="256" sumtext="부서코드"/>
  88. <Column id="stdysubjnm" type="STRING" size="256" sumtext="부서명"/>
  89. <Column id="stdypsn" type="STRING" size="256" sumtext=""/>
  90. <Column id="stdypnm" type="STRING" size="256" sumtext=""/>
  91. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  92. <Column id="fromdd" type="STRING" size="256" sumtext="적용시작일자"/>
  93. <Column id="todd" type="STRING" size="256" sumtext=".적용종료일자"/>
  94. </ColumnInfo>
  95. </Dataset>
  96. </Objects>
  97. <Bind>
  98. <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  99. </Bind>
  100. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  101. * System Name :
  102. * Job Name :
  103. * Creator :
  104. * Make Date : 2017-06-19
  105. * Description :
  106. *---------------------------------------------------------------------------------------
  107. * Modify Date Modifier Modify Description
  108. *---------------------------------------------------------------------------------------
  109. * 2017-06-19 Live Converter TF->XP
  110. *
  111. *---------------------------------------------------------------------------------------
  112. ****************************************************************************************/
  113. include "com_commonxp::comm_main.xjs";
  114. include "mis_miscommonxp::MIS.xjs";
  115. include "mis_miscommonxp::RSZ001.xjs";
  116. function SMRSC01200_oninit(obj:Form, e:InitEventInfo)
  117. {
  118. frmf_initForm(obj);
  119. }
  120. function SMRSC01200_onload(obj:Form, e:LoadEventInfo)
  121. {
  122. grdf_initGrid(grd_studylist);
  123. grdf_setRowTypeIcon(grd_studylist, 0);
  124. fInitialize();
  125. misfMsterDetailRetrieve();
  126. }
  127. function fInitialize()
  128. {
  129. misfComboComCdList("Z0007", grp_sea.cmb_instcd);
  130. misfMsterDetailSet(grd_studylist,null,"TRRSC01201","Y"); //마스터 설정
  131. misfGridInit(grd_studylist);
  132. ds_main_studylist.clearData();
  133. ds_send.clearData();
  134. ds_send.addRow();
  135. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  136. btn_save.enable = frmf_checkAuth("X");
  137. btn_prt.enable = frmf_checkAuth("P");
  138. misfSetReadOnlyCol(grd_studylist, "instcd,stdysubjno",true);
  139. }
  140. function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  141. {
  142. misfMsterDetailRetrieve();
  143. }
  144. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  145. {
  146. var updtdata = grdf_getGridUpdateData(grd_studylist).rowcount;
  147. if ( updtdata != 0)
  148. {
  149. var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  150. if (ret != 6)
  151. {
  152. return;
  153. }
  154. }
  155. var null_check = grp_sea.cmb_instcd.value;
  156. if(utlf_isNull(null_check))
  157. {
  158. sysf_messageBox("기관코드를","C002");
  159. return;
  160. }
  161. misfMsterDetailRetrieve();
  162. if(ds_main_studylist.rowcount > 0)
  163. {
  164. ds_main_studylist.rowposition = 0;
  165. }
  166. }
  167. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  168. {
  169. misfGridIUD(grd_studylist, "A");
  170. var cur_row = ds_main_studylist.rowposition;
  171. ds_main_studylist.setColumn(cur_row, "instcd", grp_sea.cmb_instcd.value);
  172. ds_main_studylist.setColumn(cur_row, "fromdd", utlf_getCurrentDate());
  173. ds_main_studylist.setColumn(cur_row, "todd", "99991231");
  174. }
  175. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  176. {
  177. misfGridIUD(grd_studylist, "D");
  178. }
  179. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  180. {
  181. var updtdata = grdf_getGridUpdateData(grd_studylist).rowcount;
  182. if (updtdata == 0)
  183. {
  184. sysf_messageBox("변경된 데이터가","I004");
  185. return;
  186. }
  187. if(!frmf_chkMdtGrid(grd_studylist, [1,2,3,4,5], ["연구과제번호", "연구과제명", "책임자", "연구시작일자", "연구종료일자"])) return;
  188. rtn = sysf_messageBox("", "Q002");
  189. if(rtn != "6" ) return false;
  190. var oParam = {};
  191. oParam.id = "TXRSS01201";
  192. oParam.service = "purcbaseapp.PurcBaseMngt";
  193. oParam.method = "reqSaveStudyList";
  194. oParam.inds = "req=ds_main_studylist:u";
  195. oParam.outds = "";
  196. oParam.async = false;
  197. //oParam.callback = "cf_TXRSS01201";
  198. tranf_submit(oParam);
  199. fsearch();
  200. }
  201. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  202. {
  203. fInitialize();
  204. }
  205. function fsearch()
  206. {
  207. var updtdata = grdf_getGridUpdateData(grd_studylist).rowcount;
  208. if ( updtdata != 0)
  209. {
  210. var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  211. if (ret != 6)
  212. {
  213. return;
  214. }
  215. }
  216. misfMsterDetailRetrieve();
  217. misfSetReadOnlyCol(grd_studylist, "instcd,stdysubjno",true);
  218. }
  219. function grd_studylist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  220. {
  221. if(e.cell == obj.getBindCellIndex("Body", "stdypsn"))
  222. {
  223. misfOpenPopUpList("12", grd_studylist, "", "stdypsn,stdypnm", "%", "instcd");
  224. }
  225. }
  226. function ds_main_studylist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  227. {
  228. if (e.columnid == "stdypsn")
  229. {
  230. misfValidationCheck("12", "", "stdypsn,stdypnm" );
  231. }
  232. }
  233. ]]></Script>
  234. </Form>
  235. </FDL>