SMRSC20800_외부출처전산장비관리자모드.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC20800" position="absolute 0 0 1202 740" titletext="외부출처전산장비관리자모드" oninit="SMRSC20800_oninit" onload="SMRSC20800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="외부출처 전산장비 원내 사용/해제 신청 내역" class="tit_1" position="absolute 0 0 355 24"/>
  8. <Shape id="line17" class="line_6" position="absolute 0 44 1195 50" anchor="left top right"/>
  9. <Button id="button1" taborder="1" text="초기화" class="btn4" visible="false" position="absolute 1068 23 1136 45" anchor="top right" onclick="button1_onclick"/>
  10. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1137 23 1193 45" anchor="top right" onclick="btn_save_onclick"/>
  11. <Div id="group2" taborder="3" position="absolute 0 48 1195 88" class="div_SA2" anchor="left top right">
  12. <Layouts>
  13. <Layout>
  14. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 1119 8 1175 30" anchor="top right" onclick="group2_btn_search_onclick"/>
  15. <Static id="caption4" text="기관코드 :" class="search_name" position="absolute 10 9 127 26"/>
  16. <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1101 4 1107 34" anchor="top right"/>
  17. <Static id="caption14" text="신청일자 :" class="search_name" position="absolute 300 10 417 27"/>
  18. <Calendar id="ipt_reqdd" taborder="1" class="input_s_essential" position="absolute 385 10 488 29" autoselect="true" autoskip="true"/>
  19. <Combo id="cmb_instcd" taborder="2" class="combo_default" enable="false" position="absolute 95 10 255 29"/>
  20. <Calendar id="input3" taborder="3" class="input_s_essential" position="absolute 510 10 613 29" autoselect="true"/>
  21. <Static id="caption13" text="~" position="absolute 494 10 506 29"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Static id="caption9" text="신청정보 목록" class="tit_2" position="absolute 0 97 132 120"/>
  26. <Grid id="grd_reqeqmtlist" class="datagrid2" taborder="4" binddataset="ds_main_reqeqmt_reqeqmtlist" useinputpanel="false" position="absolute 0 118 1195 734" anchor="all" autoenter="select" cellsizingtype="col">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="18" band="left"/>
  31. <Column size="0"/>
  32. <Column size="70"/>
  33. <Column size="84"/>
  34. <Column size="50"/>
  35. <Column size="65"/>
  36. <Column size="65"/>
  37. <Column size="120"/>
  38. <Column size="50"/>
  39. <Column size="200"/>
  40. <Column size="120"/>
  41. <Column size="80"/>
  42. <Column size="200"/>
  43. <Column size="150"/>
  44. <Column size="60"/>
  45. <Column size="50"/>
  46. <Column size="50"/>
  47. <Column size="150"/>
  48. <Column size="150"/>
  49. <Column size="120"/>
  50. <Column size="120"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell/>
  58. <Cell col="1" text="기관"/>
  59. <Cell col="2" text="신청일자"/>
  60. <Cell col="3" text="신청일련번호"/>
  61. <Cell col="4" text="신청자"/>
  62. <Cell col="5" text="신청구분"/>
  63. <Cell col="6" text="승인여부"/>
  64. <Cell col="7" text="부서명"/>
  65. <Cell col="8" text="사용자"/>
  66. <Cell col="9" text="목적"/>
  67. <Cell col="10" text="휴대전화"/>
  68. <Cell col="11" text="원내전화"/>
  69. <Cell col="12" text="이메일"/>
  70. <Cell col="13" text="장비종류"/>
  71. <Cell col="14" text="사용순번"/>
  72. <Cell col="15" text="동"/>
  73. <Cell col="16" text="층"/>
  74. <Cell col="17" text="사용위치"/>
  75. <Cell col="18" text="IP"/>
  76. <Cell col="19" text="From기간"/>
  77. <Cell col="20" text="To기간"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell celltype="head"/>
  81. <Cell col="1" text="bind:instcd"/>
  82. <Cell col="2" displaytype="date" text="bind:reqdd" calendardisplaynulltype="nulltext"/>
  83. <Cell col="3" text="bind:reqseqno"/>
  84. <Cell col="4" text="bind:reqnm"/>
  85. <Cell col="5" text="bind:reqflag"/>
  86. <Cell col="6" style="color:#ff0000ff;color2:#ff0000ff;font:arial,9,bold;" text="bind:aprvpsnyn"/>
  87. <Cell col="7" text="bind:mngtdeptnm"/>
  88. <Cell col="8" text="bind:usernm"/>
  89. <Cell col="9" text="bind:usepose"/>
  90. <Cell col="10" text="bind:hp"/>
  91. <Cell col="11" text="bind:tel"/>
  92. <Cell col="12" text="bind:email"/>
  93. <Cell col="13" text="bind:eqtype"/>
  94. <Cell col="14" text="bind:outeseqno"/>
  95. <Cell col="15" text="bind:dong"/>
  96. <Cell col="16" text="bind:floor"/>
  97. <Cell col="17" text="bind:usesite"/>
  98. <Cell col="18" displaytype="text" edittype="text" style="align:center middle;" text="bind:ipaddr"/>
  99. <Cell col="19" displaytype="date" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  100. <Cell col="20" displaytype="date" text="bind:todd" calendardisplaynulltype="nulltext"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. <Shape id="line1" class="line_10" position="absolute 0 113 1195 119" anchor="left top right"/>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_send_search" 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="reqddfrom" type="STRING" size="256"/>
  113. <Column id="reqddto" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row>
  117. <Col id="instcd"/>
  118. <Col id="reqddfrom"/>
  119. <Col id="reqddto"/>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_main_reqeqmt_reqeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  124. <ColumnInfo>
  125. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  126. <Column id="reqdd" type="STRING" size="256" sumtext="신청일자"/>
  127. <Column id="reqseqno" type="STRING" size="256" sumtext="신청일련번호"/>
  128. <Column id="reqnm" type="STRING" size="256" sumtext="신청자ID"/>
  129. <Column id="reqflag" type="STRING" size="256" sumtext="신청여부"/>
  130. <Column id="aprvpsnyn" type="STRING" size="256" sumtext="승인여부"/>
  131. <Column id="mngtdeptnm" type="STRING" size="256" sumtext="신청부서명"/>
  132. <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
  133. <Column id="usepose" type="STRING" size="256" sumtext="사용목적"/>
  134. <Column id="hp" type="STRING" size="256" sumtext="휴대전화"/>
  135. <Column id="tel" type="STRING" size="256" sumtext="원내전화"/>
  136. <Column id="email" type="STRING" size="256" sumtext="이메일"/>
  137. <Column id="eqtype" type="STRING" size="256" sumtext="장비종류"/>
  138. <Column id="outeseqno" type="STRING" size="256" sumtext="장비사용일련번호"/>
  139. <Column id="dong" type="STRING" size="256" sumtext="동"/>
  140. <Column id="floor" type="STRING" size="256" sumtext="층"/>
  141. <Column id="usesite" type="STRING" size="256" sumtext="사용위치"/>
  142. <Column id="ipaddr" type="STRING" size="256" sumtext="IP주소"/>
  143. <Column id="fromdd" type="STRING" size="256" sumtext="사용시작일"/>
  144. <Column id="todd" type="STRING" size="256" sumtext="사용종료일"/>
  145. <Column id="status" type="STRING" size="256" sumtext="구분"/>
  146. </ColumnInfo>
  147. </Dataset>
  148. <Dataset id="ds_send_save_reqeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  149. </Objects>
  150. <Bind>
  151. <BindItem id="item0" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  152. <BindItem id="item1" compid="group2.ipt_reqdd" propid="value" datasetid="ds_send_search" columnid="reqddfrom"/>
  153. <BindItem id="item2" compid="group2.input3" propid="value" datasetid="ds_send_search" columnid="reqddto"/>
  154. </Bind>
  155. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  156. * System Name :
  157. * Job Name :
  158. * Creator :
  159. * Make Date : 2017-06-19
  160. * Description :
  161. *---------------------------------------------------------------------------------------
  162. * Modify Date Modifier Modify Description
  163. *---------------------------------------------------------------------------------------
  164. * 2017-06-19 Live Converter TF->XP
  165. *
  166. *---------------------------------------------------------------------------------------
  167. ****************************************************************************************/
  168. include "com_commonxp::comm_main.xjs";
  169. include "mis_miscommonxp::MIS.xjs";
  170. function SMRSC20800_oninit(obj:Form, e:InitEventInfo)
  171. {
  172. frmf_initForm(obj);
  173. }
  174. function SMRSC20800_onload(obj:Form, e:LoadEventInfo)
  175. {
  176. grdf_initGrid(grd_reqeqmtlist);
  177. grdf_setRowTypeIcon(grd_reqeqmtlist, 0);
  178. fInitialize();
  179. }
  180. function fInitialize()
  181. {
  182. misfGridInit(grd_reqeqmtlist);
  183. ds_send_search.clearData();
  184. ds_send_search.addRow();
  185. ds_main_reqeqmt_reqeqmtlist.clearData();
  186. misfComboComCdList("Z0007",group2.cmb_instcd);
  187. group2.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  188. ds_send_search.setColumn(0, "reqddfrom", utlf_getCurrentDate());
  189. ds_send_search.setColumn(0, "reqddto", utlf_getCurrentDate());
  190. }
  191. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  192. {
  193. var oParam = {};
  194. oParam.id = "TRRSC20801";
  195. oParam.service = "reqapp.ReqMngt";
  196. oParam.method = "reqGetEqmtAdmin";
  197. oParam.inds = "req=ds_send_search";
  198. oParam.outds = "ds_main_reqeqmt_reqeqmtlist=reqeqmtlist";
  199. oParam.async = false;
  200. oParam.callback = "cf_TRRSC20801";
  201. tranf_submit(oParam);
  202. }
  203. function cf_TRRSC20801(sSvcId, nErrorCode, sErrorMsg)
  204. {
  205. if(nErrorCode < 0) return;
  206. else
  207. {
  208. var reqseqno = ds_main_reqeqmt_reqeqmtlist.getColumn(0, "reqseqno") ;
  209. if(utlf_isNull(reqseqno))
  210. {
  211. sysf_messageBox("조회내역이 없습니다.", "E999", "");
  212. fInitialize();
  213. }
  214. }
  215. }
  216. function button1_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. ds_send_search.clearData();
  219. ds_send_search.addRow();
  220. ds_main_reqeqmt_reqeqmtlist.clearData();
  221. fInitialize();
  222. btn_save.enable = true;
  223. }
  224. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. if(ds_main_reqeqmt_reqeqmtlist.rowcount != 0)
  227. {
  228. var updategrid = grdf_getGridUpdateData(grd_reqeqmtlist);
  229. grdf_setStatusColumn(updategrid, "status");
  230. ds_send_save_reqeqmtlist.copyData(updategrid, true);
  231. }
  232. var oParam = {};
  233. oParam.id = "TXRSC20801";
  234. oParam.service = "reqapp.ReqMngt";
  235. oParam.method = "reqExeSaveEqmtAdmin";
  236. oParam.inds = "reqeqmtlist=ds_send_save_reqeqmtlist";
  237. oParam.outds = "";
  238. oParam.async = false;
  239. oParam.callback = "cf_TXRSC20801";
  240. tranf_submit(oParam);
  241. }
  242. function cf_TXRSC20801(sSvcId, nErrorCode, sErrorMsg)
  243. {
  244. if(nErrorCode < 0)
  245. {
  246. return;
  247. }
  248. else
  249. {
  250. group2.btn_search.click();
  251. sysf_messageBox(" ", "I001", "");
  252. }
  253. }
  254. ]]></Script>
  255. </Form>
  256. </FDL>