SMRAH03900_프로젝트현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAH03900" position="absolute 0 0 1197 750" titletext="프로젝트 현황" oninit="SMRAH03900_oninit" onload="SMRAH03900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="프로젝트 현황" class="tit_1" position="absolute 0 0 134 25"/>
  8. <Shape id="line5" linetype="horizontal" class="line_6" position="absolute 0 38 1194 44" anchor="left top right"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 112 1194 118" anchor="left top right"/>
  10. <Div id="group2" taborder="1" position="absolute 0 41 1195 81" class="div_SA2" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption9" text="년도" class="search_name" position="absolute 332 11 385 28" anchor="left top"/>
  14. <MaskEdit id="ipt_year" taborder="4" mask="####" position="absolute 386 10 427 29" anchor="left top" style="align:left middle;" autoselect="true" autoskip="true" ontextchanged="group2_ipt_year_ontextchanged"/>
  15. <Combo id="cmb_instcd" taborder="5" enable="false" position="absolute 139 10 300 29" anchor="left top" autoselect="true" autoskip="true"/>
  16. <Static id="caption1" text="기관코드" class="search_name" position="absolute 60 11 140 28" anchor="left top"/>
  17. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 620 8 626 30" anchor="left top"/>
  18. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 645 8 701 30" anchor="left top" onclick="group2_btn_search_onclick"/>
  19. <Combo id="cmb_prjtstat" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_default" position="absolute 515 10 590 29" anchor="left top" autoselect="true" autoskip="true" onitemchanged="group2_cmb_prjtstat_onitemchanged">
  20. <Dataset id="innerdataset">
  21. <ColumnInfo>
  22. <Column id="codecolumn"/>
  23. <Column id="datacolumn"/>
  24. </ColumnInfo>
  25. <Rows>
  26. <Row>
  27. <Col id="codecolumn"/>
  28. <Col id="datacolumn">전체</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">1</Col>
  32. <Col id="datacolumn">예정</Col>
  33. </Row>
  34. <Row>
  35. <Col id="codecolumn">2</Col>
  36. <Col id="datacolumn">진행중</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">3</Col>
  40. <Col id="datacolumn">완료</Col>
  41. </Row>
  42. </Rows>
  43. </Dataset>
  44. </Combo>
  45. <Static id="caption3" text="상태" class="search_name" position="absolute 462 11 515 28" anchor="left top"/>
  46. </Layout>
  47. </Layouts>
  48. </Div>
  49. <Static id="caption2" text="프로젝트 목록" class="tit_2" position="absolute 0 96 111 112" anchor="left top"/>
  50. <Button id="btn_add" taborder="2" text="프로젝트 등록" class="btn2" position="absolute 1097 91 1194 110" onclick="btn_add_onclick" anchor="top right"/>
  51. <Grid id="grd_prjtlist" taborder="3" binddataset="ds_main_datalist_prjtlist" useinputpanel="false" position="absolute 0 117 1194 747" oncelldblclick="grd_prjtlist_oncelldblclick" anchor="all">
  52. <Formats>
  53. <Format id="default">
  54. <Columns>
  55. <Column size="30"/>
  56. <Column size="52"/>
  57. <Column size="484"/>
  58. <Column size="148"/>
  59. <Column size="71"/>
  60. <Column size="63"/>
  61. <Column size="90"/>
  62. <Column size="90"/>
  63. <Column size="90"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell/>
  71. <Cell col="1" text="번호"/>
  72. <Cell col="2" text="프로젝트명"/>
  73. <Cell col="3" text="담당부서"/>
  74. <Cell col="4" text="담당자"/>
  75. <Cell col="5" text="상태"/>
  76. <Cell col="6" text="시작일"/>
  77. <Cell col="7" text="종료예정일"/>
  78. <Cell col="8" text="종료일"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell celltype="head"/>
  82. <Cell col="1" style="selectbackground:lightcyan;" text="bind:prjtsqno"/>
  83. <Cell col="2" style="align:left middle;selectbackground:lightcyan;" text="bind:prjttitle"/>
  84. <Cell col="3" style="align:left middle;selectbackground:lightcyan;" text="bind:prjtdeptnm"/>
  85. <Cell col="4" style="selectbackground:lightcyan;" text="bind:prjtusernm"/>
  86. <Cell col="5" displaytype="combo" edittype="combo" style="selectbackground:lightcyan;" text="bind:prjtstat" combodataset="ds_prjtstat" combocodecol="value" combodatacol="label" enable="false"/>
  87. <Cell col="6" displaytype="date" edittype="date" style="selectbackground:lightcyan;" text="bind:prjtfromdd" mask="yyyy-MM-dd"/>
  88. <Cell col="7" displaytype="date" edittype="date" style="selectbackground:lightcyan;" text="bind:prjtexptodd" mask="yyyy-MM-dd"/>
  89. <Cell col="8" style="selectbackground:lightcyan;" text="bind:prjttodd" mask="expr:expr:utlf_isNull(prjttodd) ||prjttodd == '' ? '' : '##-##-##'"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <Dataset id="ds_main_datalist_prjtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="prjtsqno" type="STRING"/>
  100. <Column id="prjttitle" type="STRING"/>
  101. <Column id="prjtdeptnm" type="STRING"/>
  102. <Column id="prjtusernm" type="STRING"/>
  103. <Column id="prjtstat" type="STRING"/>
  104. <Column id="prjtfromdd" type="STRING"/>
  105. <Column id="prjtexptodd" type="STRING"/>
  106. <Column id="prjttodd" type="STRING"/>
  107. </ColumnInfo>
  108. </Dataset>
  109. <Dataset id="ds_send_retrparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="instcd" type="STRING" size="256"/>
  112. <Column id="year" type="STRING" size="256"/>
  113. <Column id="prjtstat" type="STRING" size="256"/>
  114. <Column id="status" type="STRING" size="256"/>
  115. <Column id="prjtsqno" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row/>
  119. </Rows>
  120. </Dataset>
  121. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  122. <ColumnInfo>
  123. <Column id="status" type="STRING" size="256"/>
  124. <Column id="instcd" type="STRING" size="256"/>
  125. <Column id="prjtsqno" type="STRING" size="256"/>
  126. <Column id="workflag" type="STRING" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row/>
  130. </Rows>
  131. </Dataset>
  132. <Dataset id="ds_prjtstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="label" type="STRING" size="256"/>
  135. <Column id="value" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="label">예정</Col>
  140. <Col id="value">1</Col>
  141. </Row>
  142. <Row>
  143. <Col id="value">2</Col>
  144. <Col id="label">진행중</Col>
  145. </Row>
  146. <Row>
  147. <Col id="value">3</Col>
  148. <Col id="label">완료</Col>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. </Objects>
  153. <Bind>
  154. <BindItem id="item0" compid="group2.cmb_prjtstat" propid="value" datasetid="ds_send_retrparam" columnid="prjtstat"/>
  155. <BindItem id="item1" compid="group2.ipt_year" propid="value" datasetid="ds_send_retrparam" columnid="year"/>
  156. <BindItem id="item2" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_retrparam" columnid="instcd"/>
  157. </Bind>
  158. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  159. * System Name :
  160. * Job Name :
  161. * Creator :
  162. * Make Date : 2017-06-19
  163. * Description :
  164. *---------------------------------------------------------------------------------------
  165. * Modify Date Modifier Modify Description
  166. *---------------------------------------------------------------------------------------
  167. * 2017-06-19 Live Converter TF->XP
  168. *
  169. *---------------------------------------------------------------------------------------
  170. ****************************************************************************************/
  171. include "com_commonxp::comm_main.xjs";
  172. include "mis_miscommonxp::MIS.xjs";
  173. include "mis_miscommonxp::RAC001.xjs";
  174. include "mis_bugtcommonxp::RBC001.xjs";
  175. include "mis_acntcommonxp::RAD001.xjs";
  176. include "mis_humtrafactmngtxp::RPB001.xjs";
  177. function SMRAH03900_oninit(obj:Form, e:InitEventInfo)
  178. {
  179. frmf_initForm(obj);
  180. }
  181. function SMRAH03900_onload(obj:Form, e:LoadEventInfo)
  182. {
  183. misfGridInit(grd_prjtlist);
  184. grdf_setRowTypeIcon(grd_prjtlist, 0);
  185. misfMsterDetailSet(grd_prjtlist, null, "TRRAH03901" ,"Y");
  186. misfComboInstCdListMulti("group2.cmb_instcd", utlf_getCurrentDate(),"","N");
  187. ds_send_retrparam.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); //기관 설정
  188. ds_send_retrparam.setColumn(0, "year", utlf_getCurrentDate().substr(0, 4)); //년도 설정
  189. ds_send_retrparam.setColumn(0, "prjtstat", "2"); //상태 2:진행중
  190. group2.btn_search.click();
  191. }
  192. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  193. {
  194. if(group2.ipt_year.text.length != 4)
  195. {
  196. sysf_messageBox("년도를 확인하십시요. ", "E999", "");
  197. group2.ipt_year.setFocus();
  198. return;
  199. }
  200. misfGridInit(grd_prjtlist);
  201. //misfMsterDetailRetrieve();
  202. var oParam = {};
  203. oParam.id = "TRRAH03901";
  204. oParam.service = "acntknuhapp.Acntknuh";
  205. oParam.method = "reqGetPrjtList";
  206. oParam.inds = "req=ds_send_retrparam";
  207. oParam.outds = "ds_main_datalist_prjtlist=prjtlist";
  208. oParam.async = false;
  209. //oParam.callback = "cf_TRRAH03901";
  210. tranf_submit(oParam);
  211. }
  212. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. ds_popdata.setColumn(0, "status", "i"); //작업 종류(i, u, d)
  215. ds_popdata.setColumn(0, "instcd", ds_send_retrparam.getColumn(0, "instcd")); //기관코드
  216. ds_popdata.setColumn(0, "prjtsqno", ""); //번호
  217. ds_popdata.setColumn(0, "workflag", ""); //popup 내에서 작업이 이루어 졌는지 확인하기 위해 우선 지웁니다.
  218. // 프로젝트 정보 화면 호출
  219. var objArg = new Object();
  220. objArg.arg_ds_popdata = ds_popdata;
  221. frmf_modal("SMRAH04000", "SMRAH04000", objArg, "", "", "", "", "", "", "", "", "", "M");
  222. if(ds_popdata.getColumn(0, "workflag") == "Y") //popup 내에서 작업이 이루어 졌는지 확인 후 다시 조회
  223. {
  224. group2.btn_search.click();
  225. }
  226. }
  227. function grd_prjtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  228. {
  229. //if(grd_prjtlist.row < grd_prjtlist.fixedRows) return;
  230. if(ds_main_datalist_prjtlist.rowcount <1) return;
  231. ds_popdata.setColumn(0, "status", "u"); //작업 종류(i, u, d)
  232. ds_popdata.setColumn(0, "instcd", ds_send_retrparam.getColumn(0, "instcd")); //기관코드
  233. ds_popdata.setColumn(0, "prjtsqno", ds_main_datalist_prjtlist.getColumn(ds_main_datalist_prjtlist.rowposition, "prjtsqno"));//번호
  234. ds_popdata.setColumn(0, "workflag", ""); //popup 내에서 작업이 이루어 졌는지 확인하기 위해 우선 지웁니다.
  235. // 프로젝트 정보 화면 호출
  236. var objArg = new Object();
  237. objArg.arg_ds_popdata = ds_popdata;
  238. frmf_modal("SMRAH04000", "SMRAH04000", objArg, "", "", "", "", "", "", "", "", "", "M");
  239. if(ds_popdata.getColumn(0, "workflag") == "Y") //popup 내에서 작업이 이루어 졌는지 확인 후 다시 조회
  240. {
  241. group2.btn_search.click();
  242. }
  243. }
  244. function group2_ipt_year_ontextchanged(obj:MaskEdit, e:TextChangedEventInfo)
  245. {
  246. obj.updateToDataset();
  247. var year = ds_send_retrparam.getColumn(0, "year");
  248. if(year.length == 4)
  249. {
  250. group2.btn_search.click();
  251. }
  252. }
  253. ]]></Script>
  254. </Form>
  255. </FDL>