SMAEB02700_핵종사용량관리.xfdl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB02700" position="absolute 0 0 1256 805" titletext="핵종사용량관리" oninit="model1_oninit" onload="SMAEB02700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="핵종 사용량 관리" class="tit_1" position="absolute 0 0 189 25" positiontype="position"/>
  8. <Static id="caption1" text="주간 핵종 사용 예정량" class="tit_2" position="absolute 0 33 187 53" positiontype="position"/>
  9. <Button id="button4" taborder="1" text="핵종기준량관리" class="btn2" position="absolute 325 30 429 50" anchor="top right" positiontype="position" onclick="button4_onclick"/>
  10. <Grid id="grd_nuclcdlist" taborder="2" useinputpanel="false" position="absolute 0 53 1256 476" onclick="grd_nuclcdlist_onclick" autofittype="col" anchor="all" binddataset="ds_grid_nuclcdlist" positiontype="position" treeinitstatus="expand,all" treeusecheckbox="false" treeuseexpandkey="true" selecttype="currow" oncellclick="grd_nuclcdlist_oncellclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="40"/>
  15. <Column size="0"/>
  16. <Column size="245"/>
  17. <Column size="50"/>
  18. <Column size="50"/>
  19. <Column size="50"/>
  20. <Column size="50"/>
  21. <Column size="50"/>
  22. <Column size="50"/>
  23. <Column size="50"/>
  24. <Column size="50"/>
  25. <Column size="50"/>
  26. <Column size="50"/>
  27. <Column size="50"/>
  28. <Column size="50"/>
  29. <Column size="70"/>
  30. <Column size="70"/>
  31. <Column size="70"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="22" band="head"/>
  35. <Row size="22" band="head"/>
  36. <Row size="20"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell rowspan="2" text="±"/>
  40. <Cell col="1" text="핵종코드"/>
  41. <Cell col="2" rowspan="2" text="구분"/>
  42. <Cell col="3" colspan="2" text="12/09(월)"/>
  43. <Cell col="5" colspan="2" text="12/10(화)"/>
  44. <Cell col="7" colspan="2" text="12/11(수)"/>
  45. <Cell col="9" colspan="2" text="12/12(목)"/>
  46. <Cell col="11" colspan="2" text="12/13(금)"/>
  47. <Cell col="13" colspan="2" text="12/14(토)"/>
  48. <Cell col="15" rowspan="2" text="총용량"/>
  49. <Cell col="16" rowspan="2" text="신청량"/>
  50. <Cell col="17" rowspan="2" text="확인량"/>
  51. <Cell row="1" col="1" text="핵종코드"/>
  52. <Cell row="1" col="3" text="검사수"/>
  53. <Cell row="1" col="4" text="핵종량"/>
  54. <Cell row="1" col="5" text="검사수"/>
  55. <Cell row="1" col="6" text="핵종량"/>
  56. <Cell row="1" col="7" text="검사수"/>
  57. <Cell row="1" col="8" text="핵종량"/>
  58. <Cell row="1" col="9" text="검사수"/>
  59. <Cell row="1" col="10" text="핵종량"/>
  60. <Cell row="1" col="11" text="검사수"/>
  61. <Cell row="1" col="12" text="핵종량"/>
  62. <Cell row="1" col="13" text="검사수"/>
  63. <Cell row="1" col="14" text="핵종량"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell displaytype="tree" edittype="tree" style="align:left middle;" text="bind:seq" treelevel="bind:seq"/>
  67. <Cell col="1" text="bind:nuclcd"/>
  68. <Cell col="2" style="align:left;" text="bind:nuclcdnm"/>
  69. <Cell col="3" displaytype="number" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:moncnt"/>
  70. <Cell col="4" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:monqty" mask="#,##0.00"/>
  71. <Cell col="5" displaytype="number" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:tuecnt"/>
  72. <Cell col="6" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:tueqty" mask="#,##0.00"/>
  73. <Cell col="7" displaytype="number" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:wedcnt"/>
  74. <Cell col="8" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:wedqty" mask="#,##0.00"/>
  75. <Cell col="9" displaytype="number" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:thucnt"/>
  76. <Cell col="10" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:thuqty" mask="#,##0.00"/>
  77. <Cell col="11" displaytype="number" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:fricnt"/>
  78. <Cell col="12" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:friqty" mask="#,##0.00"/>
  79. <Cell col="13" displaytype="number" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:satcnt"/>
  80. <Cell col="14" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:satqty" mask="#,##0.00"/>
  81. <Cell col="15" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:totqty" mask="#,##0.00"/>
  82. <Cell col="16" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:appqty" mask="#,##0.00"/>
  83. <Cell col="17" displaytype="normal" edittype="none" style="align:right middle;color:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);font:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);selectcolor:EXPR(seq==&quot;1&quot;?&quot;blue&quot;:&quot;&quot;);selectfont:EXPR(seq==&quot;1&quot;?&quot;arial,9,bold&quot;:&quot;&quot;);" text="bind:cnfmqty" mask="#,##0.00"/>
  84. <Cell col="18"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Button id="btn_Previous" taborder="3" onlbuttonup="btn_Previous_onlbuttonup" class="icon_pre" position="absolute 1088 30 1101 50" anchor="top right" text="" positiontype="position" onclick="btn_Previous_onclick"/>
  90. <Edit id="opt_date" taborder="4" readonly="true" position="absolute 1104 30 1239 50" style="align:center middle;" anchor="top right" align="align:center middle;" positiontype="position"/>
  91. <Button id="btn_Next" taborder="5" onlbuttonup="btn_Next_onlbuttonup" class="icon_next" position="absolute 1242 30 1255 50" anchor="top right" text="" positiontype="position" onclick="btn_Next_onclick"/>
  92. <Edit id="ipt_suplcmpynm" taborder="6" visible="false" position="absolute 602 785 692 805" imemode="hangul" positiontype="position"/>
  93. <Edit id="ipt_suplcmpy" taborder="7" visible="false" position="absolute 382 785 467 805" imemode="hangul" positiontype="position"/>
  94. <Button id="btn_save" taborder="8" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1069 785 1125 805" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
  95. <Button id="btn_print" taborder="9" text="출력" onlbuttonup="btn_print_onlbuttonup" class="btn4" position="absolute 1128 785 1184 805" anchor="right bottom" positiontype="position" onclick="btn_print_onclick"/>
  96. <Static id="caption00" text="핵종별 신청내역" class="tit_2" position="absolute 0 489 187 509" anchor="left bottom"/>
  97. <Grid id="grd_nuclcdapplist" taborder="10" useinputpanel="false" position="absolute 0 509 1256 783" binddataset="ds_grid_grd_nuclcdapplist" oncellclick="grd_nuclcdapplist_oncellclick" enableevent="true" anchor="left right bottom" autosizingtype="col" cellsizingtype="col" onexpanddown="grd_nuclcdapplist_onexpanddown" autofittype="col">
  98. <Formats>
  99. <Format id="default">
  100. <Columns>
  101. <Column size="18"/>
  102. <Column size="85"/>
  103. <Column size="177"/>
  104. <Column size="127"/>
  105. <Column size="158"/>
  106. <Column size="127"/>
  107. <Column size="68"/>
  108. <Column size="472"/>
  109. </Columns>
  110. <Rows>
  111. <Row size="24" band="head"/>
  112. <Row size="24"/>
  113. </Rows>
  114. <Band id="head">
  115. <Cell/>
  116. <Cell col="1" text="신청일"/>
  117. <Cell col="2" text="핵종"/>
  118. <Cell col="3" text="판매회사"/>
  119. <Cell col="4" text="판매회사명"/>
  120. <Cell col="5" text="신청량"/>
  121. <Cell col="6" text="확인"/>
  122. <Cell col="7" text="비고"/>
  123. </Band>
  124. <Band id="body">
  125. <Cell celltype="head" expr="currow+1"/>
  126. <Cell col="1" displaytype="date" edittype="date" text="bind:appdd" editlimit="8" editlengthunit="utf8" autosizecol="limitmin"/>
  127. <Cell col="2" displaytype="combo" edittype="expr:getRowType(currow)==2?'combo':'none'" text="bind:nuclcd" combodataset="ds_init_item" combocodecol="itemcd" combodatacol="itemnm" autosizecol="limitmin"/>
  128. <Cell col="3" displaytype="text" edittype="text" text="bind:suplcmpy" expandshow="show" expandsize="20" autosizecol="limitmin"/>
  129. <Cell col="4" displaytype="text" edittype="none" text="bind:suplcmpynm" autosizecol="limitmin"/>
  130. <Cell col="5" displaytype="text" edittype="text" editfilter="number" text="bind:appqty" editlimit="4" editlengthunit="utf8" autosizecol="limitmin"/>
  131. <Cell col="6" displaytype="checkbox" edittype="checkbox" expr="expr:cnfmyn=='Y'?&quot;1&quot;:&quot;0&quot;" autosizecol="limitmin"/>
  132. <Cell col="7" displaytype="text" edittype="text" text="bind:rem" editlimit="100" editlengthunit="utf8" autosizecol="limitmin"/>
  133. </Band>
  134. </Format>
  135. </Formats>
  136. </Grid>
  137. <Button id="button1" taborder="11" text="행추가" class="btn2" position="absolute 1147 487 1201 507" anchor="right bottom" onclick="button1_onclick"/>
  138. <Button id="btn_grddel" taborder="12" text="행삭제" class="btn2" position="absolute 1202 487 1256 507" anchor="right bottom" onclick="btn_grddel_onclick"/>
  139. <Button id="btn_close" taborder="13" text="닫기" class="btn4" position="absolute 1188 785 1244 805" anchor="right bottom" onclick="btn_close_onclick"/>
  140. </Layout>
  141. </Layouts>
  142. <Objects>
  143. <Dataset id="ds_grid_grd_nuclcdapplist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  144. <ColumnInfo>
  145. <Column id="basedd" type="STRING"/>
  146. <Column id="suppdeptcd" type="STRING"/>
  147. <Column id="seqno" type="STRING"/>
  148. <Column id="appdd" type="STRING"/>
  149. <Column id="nuclcd" type="STRING"/>
  150. <Column id="suplcmpy" type="STRING"/>
  151. <Column id="suplcmpynm" type="STRING"/>
  152. <Column id="appqty" type="STRING"/>
  153. <Column id="cnfmyn" type="STRING"/>
  154. <Column id="rem" type="STRING"/>
  155. <Column id="cnfmyn" type="STRING"/>
  156. <Column id="nuclcdnm" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. </Dataset>
  159. <Dataset id="ds_grid_nuclcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="nuclcd"/>
  162. <Column type="String" id="seq"/>
  163. <Column id="nuclcdnm"/>
  164. <Column type="String" id="moncnt"/>
  165. <Column type="String" id="monqty"/>
  166. <Column type="String" id="tuecnt"/>
  167. <Column type="String" id="tueqty"/>
  168. <Column type="String" id="wedcnt"/>
  169. <Column type="String" id="wedqty"/>
  170. <Column type="String" id="thucnt"/>
  171. <Column type="String" id="thuqty"/>
  172. <Column type="String" id="fricnt"/>
  173. <Column type="String" id="friqty"/>
  174. <Column type="String" id="satcnt"/>
  175. <Column type="String" id="satqty"/>
  176. <Column type="String" id="totqty"/>
  177. <Column type="String" id="appqty"/>
  178. <Column type="String" id="cnfmqty"/>
  179. </ColumnInfo>
  180. </Dataset>
  181. <Dataset id="ds_init_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="bdioflag"/>
  184. <Column id="itemflag"/>
  185. <Column id="itemcd"/>
  186. <Column id="instcd"/>
  187. <Column id="suppdeptcd"/>
  188. <Column id="itemnm"/>
  189. <Column id="speccd"/>
  190. <Column id="rem"/>
  191. <Column id="nuclcd"/>
  192. <Column id="minkeepdayno"/>
  193. <Column id="alimitqty"/>
  194. <Column id="itemgrpcd"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_tmp_prt" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="nuclcd" type="STRING" size="256"/>
  200. <Column id="seq" type="STRING" size="256"/>
  201. <Column id="nuclcdnm" type="STRING" size="256"/>
  202. <Column id="moncnt" type="STRING" size="256"/>
  203. <Column id="monqty" type="STRING" size="256"/>
  204. <Column id="tuecnt" type="STRING" size="256"/>
  205. <Column id="tueqty" type="STRING" size="256"/>
  206. <Column id="wedcnt" type="STRING" size="256"/>
  207. <Column id="wedqty" type="STRING" size="256"/>
  208. <Column id="thucnt" type="STRING" size="256"/>
  209. <Column id="thuqty" type="STRING" size="256"/>
  210. <Column id="fricnt" type="STRING" size="256"/>
  211. <Column id="friqty" type="STRING" size="256"/>
  212. <Column id="satcnt" type="STRING" size="256"/>
  213. <Column id="satqty" type="STRING" size="256"/>
  214. <Column id="totqty" type="STRING" size="256"/>
  215. <Column id="appqty" type="STRING" size="256"/>
  216. <Column id="cnfmqty" type="STRING" size="256"/>
  217. <Column id="monnm" type="STRING" size="256"/>
  218. <Column id="tuenm" type="STRING" size="256"/>
  219. <Column id="wednm" type="STRING" size="256"/>
  220. <Column id="thunm" type="STRING" size="256"/>
  221. <Column id="frinm" type="STRING" size="256"/>
  222. <Column id="satnm" type="STRING" size="256"/>
  223. <Column id="todate" type="STRING" size="256"/>
  224. </ColumnInfo>
  225. </Dataset>
  226. <Dataset id="ds_temp_nulcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  227. </Objects>
  228. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  229. * System Name : KU2.0
  230. * Job Name :
  231. * File Name : SMAEB02700_핵종사용량관리.xfdl
  232. * Creator :
  233. * Make Date : 2016.06.15
  234. *
  235. * Description :
  236. *---------------------------------------------------------------------------------------
  237. * Modify Date Modifier Modify Description
  238. *---------------------------------------------------------------------------------------
  239. *
  240. *---------------------------------------------------------------------------------------
  241. ****************************************************************************************/
  242. //=======================================================================================
  243. // xjs Include
  244. //---------------------------------------------------------------------------------------
  245. include "com_commonxp::comm_main.xjs";
  246. //include "com_basiccodexp::ZBC001.xjs";
  247. //include "mis_miscommonxp::MIS.xjs";
  248. include "ast_commonxp::AST.xjs";
  249. include "ast_examcurexp::AEZ0001.xjs";
  250. //=======================================================================================
  251. // Function
  252. //---------------------------------------------------------------------------------------
  253. /*** 초기화 ***/
  254. var lv_suppdeptcd = "";
  255. var lv_CurrentDate = "";
  256. var lv_mon = "";
  257. var lv_tue = "";
  258. var lv_wed = "";
  259. var lv_thu = "";
  260. var lv_fri = "";
  261. var lv_sat = "";
  262. var lv_basedd = "";
  263. function fInitialize() {
  264. lf_aezfSetSuppDeptcd();
  265. var dutplcecd = sysf_getUserInfo("dutplcecd");
  266. var selectplcecd = frmf_getPrestDeptCd();
  267. if ( utlf_isNull(selectplcecd) ) {
  268. selectplcecd = dutplcecd;
  269. }
  270. lv_suppdeptcd= selectplcecd;
  271. var nowDate = utlf_getCurrentDate();
  272. // 주가일정 생성
  273. setCalendar(nowDate);
  274. opt_date.value = "["+"현재일 : "+nowDate.substr(0,4)+"."+nowDate.substr(4,2)+"."+nowDate.substr(6,2)+"]";
  275. //submit("TRAEB01802");
  276. dsf_createDsRow("ds_cond_req",
  277. [{col:"bdioflag", val:"I"}
  278. //,{col:"itemcd", val:""}
  279. ,{col:"itemflag", val:"N"}
  280. ,{col:"suppdeptcd", val:lv_suppdeptcd}]);
  281. var objParam = new Object();
  282. objParam.id = "TRAEB01802";
  283. objParam.service = "examcurebaseapp.GoodCode";
  284. objParam.method = "reqGetNuclCodeListNew";
  285. objParam.inds = "req=ds_cond_req";
  286. objParam.outds ="ds_init_item=item";
  287. tranf_submit(objParam);
  288. }
  289. /*** 주간 일정 타이틀 생성 및 조회 ***/
  290. function setCalendar(setDate) {
  291. var date = new String(setDate);
  292. var day = new Date(date.substr(0, 4), String(Number(date.substr(4, 2)) -1 ), date.substr(6, 2));
  293. setGridHead(day.getAddDate(eval(-day.getDay())));
  294. searchNuclcdlist();
  295. }
  296. function setGridHead(startDate){
  297. var date = new Date(startDate);
  298. var baseDate = date.getAddDate(1);
  299. var baseY = baseDate.getYear();
  300. var baseM = ( baseDate.getMonth() + 1 > 9 ) ? baseDate.getMonth() + 1 : "0" + (baseDate.getMonth() + 1);
  301. var baseD = ( baseDate.getDate() > 9 ) ? baseDate.getDate() : "0" + baseDate.getDate();
  302. lv_basedd = baseY+""+baseM+""+baseD;
  303. date.getAddDate(-1);
  304. for(var i=3; i<9;i++){
  305. var date2 = date.getAddDate(1);
  306. var date2M = ( date2.getMonth() + 1 > 9 ) ? date2.getMonth() + 1 : "0" + (date2.getMonth() + 1);
  307. var date2D = ( date2.getDate() > 9 ) ? date2.getDate() : "0" + date2.getDate();
  308. var sWeek = new Array("일", "월", "화", "수", "목", "금", "토");
  309. var head = new String(date2.getYear()).substr(2,4)+"."+date2M+"."+date2D+"("+sWeek[date2.getDay()]+")";
  310. grd_nuclcdlist.setCellProperty("head",i,"text",head);
  311. if(sWeek[date2.getDay()]=="월"){
  312. lv_mon = new String(date2.getYear()).substr(0,4)+""+date2M+""+date2D;
  313. }
  314. if(sWeek[date2.getDay()]=="화"){
  315. lv_tue = new String(date2.getYear()).substr(0,4)+""+date2M+""+date2D;
  316. }
  317. if(sWeek[date2.getDay()]=="수"){
  318. lv_wed = new String(date2.getYear()).substr(0,4)+""+date2M+""+date2D;
  319. }
  320. if(sWeek[date2.getDay()]=="목"){
  321. lv_thu = new String(date2.getYear()).substr(0,4)+""+date2M+""+date2D;
  322. }
  323. if(sWeek[date2.getDay()]=="금"){
  324. lv_fri = new String(date2.getYear()).substr(0,4)+""+date2M+""+date2D;
  325. }
  326. if(sWeek[date2.getDay()]=="토"){
  327. lv_sat = new String(date2.getYear()).substr(0,4)+""+date2M+""+date2D;
  328. }
  329. }
  330. }
  331. function searchNuclcdlist(){
  332. dsf_createDsRow("ds_cond_req",
  333. [{col:"suppdeptcd", val:lv_suppdeptcd}
  334. ,{col:"mon", val: lv_mon}
  335. ,{col:"tue", val: lv_tue}
  336. ,{col:"wed", val: lv_wed}
  337. ,{col:"thu", val: lv_thu}
  338. ,{col:"fri", val: lv_fri}
  339. ,{col:"sat", val: lv_sat}]);
  340. var objParam = new Object();
  341. objParam.id = "TRAEB02701";
  342. objParam.service = "examcurebaseapp.NuclBase";
  343. objParam.method = "reqGetNuclUseQtyList";
  344. objParam.inds = "req=ds_cond_req";
  345. objParam.outds ="ds_grid_nuclcdlist=nuclcdlist ds_grid_grd_nuclcdapplist=nuclcdexpectlist";
  346. //objParam.callback = "cbf_TRAEB02701";
  347. tranf_submit(objParam);
  348. }
  349. /*** 주간 단위 핵종 신청량 조회 ***/
  350. function fNuclAppSrch() {
  351. var row = grd_nuclcdlist.currentrow;
  352. var nuclcd = ds_grid_nuclcdlist.getColumn(row,"nuclcd");;
  353. ds_grid_grd_nuclcdapplist.clearData();
  354. dsf_createDsRow("ds_cond_req",
  355. [{col:"suppdeptcd", val:lv_suppdeptcd}
  356. ,{col:"basedd", val: lv_basedd}
  357. ,{col:"nuclcd", val: nuclcd}]);
  358. var objParam = new Object();
  359. objParam.id = "TRAEB02702";
  360. objParam.service = "examcurebaseapp.NuclBase";
  361. objParam.method = "reqGetNuclAppQtyList";
  362. objParam.inds = "req=ds_cond_req";
  363. objParam.outds ="ds_grid_grd_nuclcdapplist=nuclcdapplist";
  364. tranf_submit(objParam);
  365. }
  366. /*** 주간 단위 핵종 신청량저장 ***/
  367. function chkUpdatedData() {
  368. if ( sysf_messageBox("", "Q002") == 6 ) {
  369. var row = grd_nuclcdlist.currentrow;
  370. for (var i=0; i<ds_grid_grd_nuclcdapplist.rowcount; i++) {
  371. if (ds_grid_grd_nuclcdapplist.getColumn(i,"appdd") == "") {
  372. sysf_messageBox("신청일자는 필수 입력입니다.", "I");
  373. return;
  374. }
  375. }
  376. var objParam = new Object();
  377. objParam.id = "TXAEB02701";
  378. objParam.service = "examcurebaseapp.NuclBase";
  379. objParam.method = "reqExeNuclAppQtyRgst";
  380. objParam.inds = "req=ds_grid_grd_nuclcdapplist:U";
  381. objParam.outds ="ds_grid_grd_nuclcdapplist=nuclcdapplist";
  382. objParam.callback = "cbf_TXAEB02701";
  383. objParam.typeStr = "status";
  384. tranf_submit(objParam);
  385. }
  386. }
  387. function cbf_TXAEB02701(strSvcID, nErrorCode, strErrorMsg){
  388. //에러 처리
  389. if(nErrorCode == 0){
  390. searchNuclcdlist();
  391. }else{
  392. }
  393. }
  394. //=======================================================================================
  395. // Event
  396. //---------------------------------------------------------------------------------------
  397. /****************************************************************************************
  398. * Components :
  399. * Components ID : SMAEB02700
  400. * Event : onload
  401. * Argument : 01.obj : Object Event has occurred
  402. * : 02.e : Event Object
  403. * Description :
  404. ****************************************************************************************/
  405. function SMAEB02700_onload(obj:Form, e:LoadEventInfo)
  406. {
  407. frmf_initForm(obj); // 화면공통
  408. fInitialize();
  409. }
  410. /****************************************************************************************
  411. * Components :
  412. * Components ID : grd_nuclcdlist
  413. * Event : onclick
  414. * Argument : 01.obj : Object Event has occurred
  415. * : 02.e : Event Object
  416. * Description :
  417. ****************************************************************************************/
  418. function grd_nuclcdlist_onclick(obj:Grid, e:ClickEventInfo)
  419. {
  420. if(e.row > -1) {
  421. var col = grd_nuclcdlist.col;
  422. if (col != grd_nuclcdlist.colRef("seq")) {
  423. fNuclAppSrch();
  424. }
  425. }
  426. }
  427. /****************************************************************************************
  428. * Components :
  429. * Components ID : btn_Next
  430. * Event : onclick
  431. * Argument : 01.obj : Object Event has occurred
  432. * : 02.e : Event Object
  433. * Description :
  434. ****************************************************************************************/
  435. function btn_Next_onclick(obj:Button, e:ClickEventInfo)
  436. {
  437. var copy_lv_basedd = new Date(lv_basedd.substr(0,4),lv_basedd.substr(4,2)-1,lv_basedd.substr(6,8));
  438. var pDate = copy_lv_basedd.addDate(7);
  439. var date = new Date(pDate);
  440. var dateY = date.getYear();
  441. var dateM = ( date.getMonth() + 1 > 9 ) ? date.getMonth() + 1 : "0" + (date.getMonth() + 1);
  442. var dateD = ( date.getDate() > 9 ) ? date.getDate() : "0" + date.getDate();
  443. var setDate = dateY+""+dateM+""+dateD;
  444. setCalendar(setDate);
  445. lv_basedd=setDate;
  446. }
  447. /****************************************************************************************
  448. * Components :
  449. * Components ID : btn_Previous
  450. * Event : onclick
  451. * Argument : 01.obj : Object Event has occurred
  452. * : 02.e : Event Object
  453. * Description :
  454. ****************************************************************************************/
  455. function btn_Previous_onclick(obj:Button, e:ClickEventInfo)
  456. {
  457. var copy_lv_basedd = new Date(lv_basedd.substr(0,4),lv_basedd.substr(4,2)-1,lv_basedd.substr(6,8));
  458. var pDate = copy_lv_basedd.addDate(-7);
  459. var date = new Date(pDate);
  460. var dateY = date.getYear();
  461. var dateM = ( date.getMonth() + 1 > 9 ) ? date.getMonth() + 1 : "0" + (date.getMonth() + 1);
  462. var dateD = ( date.getDate() > 9 ) ? date.getDate() : "0" + date.getDate();
  463. var setDate = dateY+""+dateM+""+dateD;
  464. setCalendar(setDate);
  465. lv_basedd=setDate;
  466. }
  467. /****************************************************************************************
  468. * Components :
  469. * Components ID : button4
  470. * Event : onclick
  471. * Argument : 01.obj : Object Event has occurred
  472. * : 02.e : Event Object
  473. * Description :
  474. ****************************************************************************************/
  475. function button4_onclick(obj:Button, e:ClickEventInfo)
  476. {
  477. // 개인별예약조회
  478. frmf_modal("SMAEB02600", "SMAEB02600", null, null, null, null, null, null, null, null, null, null, "M");
  479. }
  480. /****************************************************************************************
  481. * Components :
  482. * Components ID : btn_save
  483. * Event : onclick
  484. * Argument : 01.obj : Object Event has occurred
  485. * : 02.e : Event Object
  486. * Description :
  487. ****************************************************************************************/
  488. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  489. {
  490. chkUpdatedData();
  491. }
  492. /****************************************************************************************
  493. * Components :
  494. * Components ID : btn_close
  495. * Event : onclick
  496. * Argument : 01.obj : Object Event has occurred
  497. * : 02.e : Event Object
  498. * Description :
  499. ****************************************************************************************/
  500. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  501. {
  502. this.close();
  503. }
  504. /****************************************************************************************
  505. * Components :
  506. * Components ID : btn_print
  507. * Event : onclick
  508. * Argument : 01.obj : Object Event has occurred
  509. * : 02.e : Event Object
  510. * Description :
  511. ****************************************************************************************/
  512. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  513. {
  514. ds_tmp_prt.copyData(ds_grid_nuclcdlist);
  515. ds_tmp_prt.addColumn("monnm","String");
  516. ds_tmp_prt.addColumn("tuenm","String");
  517. ds_tmp_prt.addColumn("wednm","String");
  518. ds_tmp_prt.addColumn("thunm","String");
  519. ds_tmp_prt.addColumn("frinm","String");
  520. ds_tmp_prt.addColumn("satnm","String");
  521. ds_tmp_prt.addColumn("todate","String");
  522. var seq = "";
  523. var monnm = grd_nuclcdlist.getCellProperty("head",3,"text");
  524. var tuenm = grd_nuclcdlist.getCellProperty("head",4,"text");
  525. var wednm = grd_nuclcdlist.getCellProperty("head",5,"text");
  526. var thunm = grd_nuclcdlist.getCellProperty("head",6,"text");
  527. var frinm = grd_nuclcdlist.getCellProperty("head",7,"text");
  528. var satnm = grd_nuclcdlist.getCellProperty("head",8,"text");
  529. for (var i=0; i<ds_tmp_prt.rowcount; i++) {
  530. seq = ds_grid_nuclcdlist.getColumn(i,"seq");
  531. if (seq == "1") {
  532. ds_tmp_prt.setColumn(i,"seq","▣");
  533. } else if (seq == "2") {
  534. ds_tmp_prt.setColumn(i,"seq","-");
  535. }
  536. if (i == 0) {
  537. ds_tmp_prt.setColumn(0,"monnm",monnm);
  538. ds_tmp_prt.setColumn(0,"tuenm",tuenm);
  539. ds_tmp_prt.setColumn(0,"wednm",wednm);
  540. ds_tmp_prt.setColumn(0,"thunm",thunm);
  541. ds_tmp_prt.setColumn(0,"frinm",frinm);
  542. ds_tmp_prt.setColumn(0,"satnm",satnm);
  543. ds_tmp_prt.setColumn(0,"todate",opt_date.text);
  544. }
  545. }
  546. var objDOM = rptf_createDOM(); // DOM 객체 설정
  547. rptf_setNodeListToDOM(objDOM, "/root/tmp/list1/nuclcdlist", ds_tmp_prt);
  548. var objParam = new Object();
  549. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  550. var option = "open=1;save=1;directprint=0;print=1;zoom=0;callno=0321234567;faxno=0323298384";
  551. rptf_exeReportPreview30(["RPAEB02700"],[objParam], option);
  552. }
  553. function button1_onclick(obj:Button, e:ClickEventInfo)
  554. {
  555. dsf_createDsRow("ds_cond_req",
  556. [{col:"suppdeptcd", val:lv_suppdeptcd}
  557. ,{col:"mon", val: lv_mon}
  558. ,{col:"tue", val: lv_tue}
  559. ,{col:"wed", val: lv_wed}
  560. ,{col:"thu", val: lv_thu}
  561. ,{col:"fri", val: lv_fri}
  562. ,{col:"sat", val: lv_sat}
  563. ,{col:"sat", val: lv_sat}
  564. ,{col:"nuclcd", val: ds_grid_nuclcdlist.getColumn(ds_grid_nuclcdlist.rowposition,"nuclcd")}
  565. ]);
  566. var objParam = new Object();
  567. objParam.id = "TRAEB02701";
  568. objParam.service = "examcurebaseapp.NuclBase";
  569. objParam.method = "reqGetNuclUseQtyList";
  570. objParam.inds = "req=ds_cond_req";
  571. objParam.outds =" ds_temp_nulcdlist=nuclcdexpectlist";
  572. objParam.callback = "cbf_TRAEB02701";
  573. tranf_submit(objParam);
  574. }
  575. function cbf_TRAEB02701(strSvcID, nErrorCode, strErrorMsg){
  576. //에러 처리
  577. if(nErrorCode == 0){
  578. ds_grid_grd_nuclcdapplist.addRow();
  579. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"basedd",lv_mon);
  580. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"suppdeptcd",lv_suppdeptcd);
  581. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"appdd",utlf_getCurrentDate());
  582. //핵종코드일경우에
  583. //if(ds_grid_nuclcdlist.getColumn(grd_nuclcdlist.currentrow,"seq")=="1"){
  584. var idx = ds_grid_nuclcdlist.findRow("nuclcd",ds_grid_nuclcdlist.getColumn(ds_grid_nuclcdlist.rowposition,"nuclcd"));
  585. var nuclcd = ds_grid_nuclcdlist.getColumn(idx,"nuclcd");
  586. var nuclcdnm = ds_grid_nuclcdlist.getColumn(idx,"nuclcdnm");
  587. var totqty = ds_grid_nuclcdlist.getColumn(idx,"totqty");
  588. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"suplcmpy",ds_temp_nulcdlist.getColumn(0,"suplcmpy"));
  589. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"suplcmpynm",ds_temp_nulcdlist.getColumn(0,"suplcmpynm"));
  590. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"nuclcd",nuclcd);
  591. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"nuclcdnm",nuclcdnm);
  592. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"appqty",totqty);
  593. ds_grid_grd_nuclcdapplist.setColumn(grd_nuclcdapplist.currentrow,"cnfmyn","N");
  594. //}
  595. }else{
  596. }
  597. }
  598. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  599. {
  600. dsf_deleteSelectedRows(grd_nuclcdapplist, true);
  601. ds_grid_grd_nuclcdapplist.deleteRow(ds_grid_grd_nuclcdapplist.rowposition);
  602. }
  603. function grd_nuclcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  604. {
  605. if(checkColClick(grd_nuclcdlist)!="seq"){
  606. //fNuclAppSrch();
  607. }
  608. }
  609. function grd_nuclcdapplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  610. {
  611. if(e.cell==6){
  612. if(ds_grid_grd_nuclcdapplist.getColumn(e.row,"cnfmyn")=="true" || ds_grid_grd_nuclcdapplist.getColumn(e.row,"cnfmyn")=="Y"){
  613. ds_grid_grd_nuclcdapplist.setColumn(e.row,"cnfmyn","N");
  614. }else{
  615. ds_grid_grd_nuclcdapplist.setColumn(e.row,"cnfmyn","Y");
  616. }
  617. }
  618. // if(e.cell==3){
  619. // var arrArg = new Object();
  620. // var sRtnValue;
  621. // arrArg.sVal01 = "";
  622. // arrArg.sVal02 = "";
  623. // arrArg.sVal03 = sysf_getUserInfo("dutplceinstcd");
  624. // arrArg.sVal04 = "";
  625. // //sRtnValue = frmf_modal("SPRKA11000", "SPRKA11000", arrArg, "", "", "", "", "", "", "", "", "", "M");
  626. // ds_grid_grd_nuclcdapplist.setColumn(ds_grid_grd_nuclcdapplist.rowposition,"suplcmpy",sRtnValue.custcode);
  627. // ds_grid_grd_nuclcdapplist.setColumn(ds_grid_grd_nuclcdapplist.rowposition,"suplcmpynm",sRtnValue.custnm);
  628. // }
  629. }
  630. function grd_nuclcdapplist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  631. {
  632. var arrArg = new Object();
  633. var sRtnValue;
  634. arrArg.sVal01 = "";
  635. arrArg.sVal02 = "";
  636. arrArg.sVal03 = sysf_getUserInfo("dutplceinstcd");
  637. arrArg.sVal04 = "";
  638. sRtnValue = frmf_modal("PPRAC00600", "PPRAC00600", arrArg, "", "", "", "", "", "", "", "", "", "M");
  639. }
  640. ]]></Script>
  641. </Form>
  642. </FDL>