SMRSM00300_부서별화학물질사용현황.xfdl 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSM00300" position="absolute 0 0 1194 791" titletext="부서별 목록조회(MSDS 조회)" oninit="SMRSM00300_oninit" onload="SMRSM00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="부서별 목록조회(MSDS 조회)" class="tit_1" position="absolute 0 0 213 25"/>
  8. <Button id="btn_gen" taborder="1" text="취급일지" class="btn4" position="absolute 971 23 1051 45" anchor="top right" onclick="btn_gen_onclick"/>
  9. <Button id="btn_prt" taborder="2" text="화학물질 목록 출력" class="btn4" position="absolute 1054 23 1194 45" anchor="top right" onclick="btn_prt_onclick"/>
  10. <Shape id="line2" class="line_6" position="absolute 0 45 1194 51" anchor="left top right"/>
  11. <Div id="grp_sea" taborder="3" class="div_SA2" position="absolute 0 49 1194 89" anchor="left top right">
  12. <Layouts>
  13. <Layout>
  14. <Static id="caption7" text="물질코드" class="search_name" position="absolute 432 12 508 29" anchor="default"/>
  15. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1036 9 1042 31" anchor="top right"/>
  16. <Button id="btn_search" taborder="29" text="조회" class="btn1" position="absolute 1055 10 1111 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  17. <Static id="caption1" text="부서코드" class="search_name" position="absolute 50 12 126 29" anchor="default"/>
  18. <Edit id="opt_deptnm" taborder="30" readonly="true" position="absolute 228 11 415 30" class="output" anchor="default"/>
  19. <Button id="btn_deptcd" taborder="31" class="icon_search" position="absolute 209 12 225 28" onclick="grp_sea_btn_deptcd_onclick" anchor="default"/>
  20. <Edit id="ipt_deptcd" taborder="32" class="input_default" position="absolute 131 11 206 30" autoselect="true" autoskip="true" onkeydown="grp_sea_ipt_deptcd_onkeydown" anchor="default"/>
  21. <Edit id="ipt_matrcd" taborder="33" class="input_default" position="absolute 510 11 555 30" autoselect="true" autoskip="true" anchor="default"/>
  22. <Button id="btn_matrcd" taborder="34" class="icon_search" position="absolute 559 12 575 28" onclick="grp_sea_btn_matrcd_onclick" anchor="default"/>
  23. <Edit id="opt_matrnm" taborder="35" readonly="true" position="absolute 578 11 820 30" class="output" anchor="default"/>
  24. <Static id="caption3" text="기준일자" class="search_name" position="absolute 839 12 915 29" anchor="default"/>
  25. <Calendar id="ipt_basedd" taborder="36" class="input_default" position="absolute 918 11 1016 30" autoselect="true" autoskip="true" anchor="default"/>
  26. </Layout>
  27. </Layouts>
  28. </Div>
  29. <Static id="caption21" text="부서별 화학물질 목록" class="tit_2" position="absolute 0 99 152 121"/>
  30. <Shape id="line3" class="line_10" position="absolute 0 115 1193 121" anchor="left top right"/>
  31. <Edit id="ipt_updpath" taborder="4" visible="false" position="absolute 970 93 1070 112" autoskip="true" autoselect="true"/>
  32. <Button id="btn_excel" taborder="5" text="엑셀출력" class="btn7" position="absolute 1112 95 1192 114" anchor="top right" onclick="btn_excel_onclick"/>
  33. <Static id="caption5" text="※ 1. 화학물질 목록 출력은 선택된 물품만을 대상으로 합니다." position="absolute 0 740 556 760" anchor="left bottom"/>
  34. <Static id="caption2" text="2. 유해등급이 1등급인 화학물질을 더블클릭하면 특별관리물질 취급일지를 작성할 수 있습니다." position="absolute 15 757 585 777" anchor="left bottom"/>
  35. <Grid id="grd_matrlist" taborder="6" binddataset="ds_main_matrlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 120 1193 730" anchor="all" oncellclick="grd_matrlist_oncellclick" oncelldblclick="grd_matrlist_oncelldblclick" autosizingtype="row" extendsizetype="row">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="24" band="left"/>
  40. <Column size="24"/>
  41. <Column size="128"/>
  42. <Column size="170"/>
  43. <Column size="103"/>
  44. <Column size="30"/>
  45. <Column size="102"/>
  46. <Column size="60"/>
  47. <Column size="46"/>
  48. <Column size="46"/>
  49. <Column size="46"/>
  50. <Column size="46"/>
  51. <Column size="46"/>
  52. <Column size="46"/>
  53. <Column size="46"/>
  54. <Column size="55"/>
  55. <Column size="46"/>
  56. <Column size="58"/>
  57. <Column size="58"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head"/>
  76. <Row size="24" band="head"/>
  77. <Row size="24" band="head"/>
  78. <Row size="44"/>
  79. </Rows>
  80. <Band id="head">
  81. <Cell rowspan="3" taborder="undefined"/>
  82. <Cell col="1" rowspan="3" displaytype="checkbox" edittype="checkbox" taborder="undefined"/>
  83. <Cell col="2" rowspan="3" text="부서명" taborder="undefined"/>
  84. <Cell col="3" rowspan="3" text="물질명" taborder="undefined"/>
  85. <Cell col="4" rowspan="3" text="유해&#10;구성성분" taborder="undefined"/>
  86. <Cell col="5" rowspan="3" text="유해&#10;등급" taborder="undefined"/>
  87. <Cell col="6" rowspan="3" text="용도" taborder="undefined"/>
  88. <Cell col="7" rowspan="3" text="신호어" taborder="undefined"/>
  89. <Cell col="8" colspan="9" text="경 고 표 시" taborder="undefined"/>
  90. <Cell col="17" rowspan="3" text="물질안전&#10;보건자료&#10;(MSDS)" taborder="undefined"/>
  91. <Cell col="18" rowspan="3" text="작업&#10;공정별 &#10;관리요령" taborder="undefined"/>
  92. <Cell col="19" text="부서코드"/>
  93. <Cell col="20" text="물질코드"/>
  94. <Cell col="21" text="gubun"/>
  95. <Cell col="22" text="useqtym"/>
  96. <Cell col="23" text="prodcmpynm"/>
  97. <Cell col="24" text="pos1"/>
  98. <Cell col="25" text="pos2"/>
  99. <Cell col="26" text="pos3"/>
  100. <Cell col="27" text="pos4"/>
  101. <Cell col="28" text="pos5"/>
  102. <Cell col="29" text="pos6"/>
  103. <Cell col="30" text="pos7"/>
  104. <Cell col="31" text="pos8"/>
  105. <Cell col="32" text="pos9"/>
  106. <Cell col="33" text="harm"/>
  107. <Cell row="1" col="8" rowspan="2" text="인화성" taborder="undefined"/>
  108. <Cell row="1" col="9" rowspan="2" text="흡인&#10;유해성" taborder="undefined"/>
  109. <Cell row="1" col="10" rowspan="2" text="급성&#10;독성" taborder="undefined"/>
  110. <Cell row="1" col="11" rowspan="2" text="부식성" taborder="undefined"/>
  111. <Cell row="1" col="12" rowspan="2" text="산화성" taborder="undefined"/>
  112. <Cell row="1" col="13" rowspan="2" text="고압&#10;가스" taborder="undefined"/>
  113. <Cell row="1" col="14" rowspan="2" text="폭발성" taborder="undefined"/>
  114. <Cell row="1" col="15" rowspan="2" text="수생환경&#10;유해성" taborder="undefined"/>
  115. <Cell row="1" col="16" rowspan="2" text="경고" taborder="undefined"/>
  116. <Cell row="1" col="19" text="caption1"/>
  117. <Cell row="1" col="20" text="caption2"/>
  118. <Cell row="1" col="21" text="caption3"/>
  119. <Cell row="1" col="22" text="caption4"/>
  120. <Cell row="1" col="23" text="caption5"/>
  121. <Cell row="1" col="24" text="caption6"/>
  122. <Cell row="1" col="25" text="caption7"/>
  123. <Cell row="1" col="26" text="caption8"/>
  124. <Cell row="1" col="27" text="caption9"/>
  125. <Cell row="1" col="28" text="caption10"/>
  126. <Cell row="1" col="29" text="caption11"/>
  127. <Cell row="1" col="30" text="caption12"/>
  128. <Cell row="1" col="31" text="caption13"/>
  129. <Cell row="1" col="32" text="caption14"/>
  130. <Cell row="1" col="33" text="caption15"/>
  131. <Cell row="2" col="19" text="caption1"/>
  132. <Cell row="2" col="20" text="caption2"/>
  133. <Cell row="2" col="21" text="caption3"/>
  134. <Cell row="2" col="22" text="caption4"/>
  135. <Cell row="2" col="23" text="caption5"/>
  136. <Cell row="2" col="24" text="caption6"/>
  137. <Cell row="2" col="25" text="caption7"/>
  138. <Cell row="2" col="26" text="caption8"/>
  139. <Cell row="2" col="27" text="caption9"/>
  140. <Cell row="2" col="28" text="caption10"/>
  141. <Cell row="2" col="29" text="caption11"/>
  142. <Cell row="2" col="30" text="caption12"/>
  143. <Cell row="2" col="31" text="caption13"/>
  144. <Cell row="2" col="32" text="caption14"/>
  145. <Cell row="2" col="33" text="caption15"/>
  146. </Band>
  147. <Band id="body">
  148. <Cell celltype="head" expr="expr:currow + 1"/>
  149. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0" autosizerow="limitmin"/>
  150. <Cell col="2" style="align:left middle;" class="text_left" text="bind:deptnm" wordwrap="word" autosizerow="limitmin"/>
  151. <Cell col="3" style="align:left middle;" class="text_left" text="bind:matrnm" wordwrap="word" autosizerow="limitmin"/>
  152. <Cell col="4" style="align:left middle;" class="text_left" text="bind:harmcomp" wordwrap="word" autosizerow="limitmin"/>
  153. <Cell col="5" class="text_center" text="bind:harmgrde" autosizerow="limitmin"/>
  154. <Cell col="6" style="align:left middle;" class="text_left" text="bind:usge" wordwrap="word" autosizerow="limitmin"/>
  155. <Cell col="7" class="text_center" text="bind:sgnl" autosizerow="limitmin"/>
  156. <Cell col="8" class="text_center" text="bind:warnyn1" autosizerow="limitmin"/>
  157. <Cell col="9" class="text_center" text="bind:warnyn2" autosizerow="limitmin"/>
  158. <Cell col="10" class="text_center" text="bind:warnyn3" autosizerow="limitmin"/>
  159. <Cell col="11" class="text_center" text="bind:warnyn4" autosizerow="limitmin"/>
  160. <Cell col="12" class="text_center" text="bind:warnyn5" autosizerow="limitmin"/>
  161. <Cell col="13" class="text_center" text="bind:warnyn6" autosizerow="limitmin"/>
  162. <Cell col="14" class="text_center" text="bind:warnyn7" autosizerow="limitmin"/>
  163. <Cell col="15" class="text_center" text="bind:warnyn8" autosizerow="limitmin"/>
  164. <Cell col="16" class="text_center" text="bind:warnyn9" autosizerow="limitmin"/>
  165. <Cell col="17" style="color:#0000ffff;color2:#0000ffff;font:arial,9,underline;selectcolor:#0000ffff;" class="text_center" text="bind:msdsfileyn" autosizerow="limitmin"/>
  166. <Cell col="18" style="color:#0000ffff;color2:#0000ffff;font:arial,9,underline;selectcolor:#0000ffff;" class="text_center" text="bind:workfileyn" autosizerow="limitmin"/>
  167. <Cell col="19" text="bind:deptcd"/>
  168. <Cell col="20" text="bind:matrcd"/>
  169. <Cell col="21" text="bind:gubun"/>
  170. <Cell col="22" text="bind:useqtym"/>
  171. <Cell col="23" text="bind:prodcmpynm"/>
  172. <Cell col="24" text="bind:pos1"/>
  173. <Cell col="25" text="bind:pos2"/>
  174. <Cell col="26" text="bind:pos3"/>
  175. <Cell col="27" text="bind:pos4"/>
  176. <Cell col="28" text="bind:pos5"/>
  177. <Cell col="29" text="bind:pos6"/>
  178. <Cell col="30" text="bind:pos7"/>
  179. <Cell col="31" text="bind:pos8"/>
  180. <Cell col="32" text="bind:pos9"/>
  181. <Cell col="33" text="bind:harm"/>
  182. </Band>
  183. </Format>
  184. </Formats>
  185. </Grid>
  186. <Grid id="grd_harmlist" taborder="7" binddataset="ds_main_harmlist" useinputpanel="false" visible="false" position="absolute 180 495 760 570">
  187. <Formats>
  188. <Format id="default">
  189. <Columns>
  190. <Column size="100"/>
  191. <Column size="100"/>
  192. <Column size="100"/>
  193. <Column size="100"/>
  194. <Column size="100"/>
  195. <Column size="100"/>
  196. <Column size="100"/>
  197. <Column size="100"/>
  198. <Column size="100"/>
  199. <Column size="100"/>
  200. <Column size="100"/>
  201. <Column size="100"/>
  202. <Column size="100"/>
  203. <Column size="100"/>
  204. <Column size="100"/>
  205. <Column size="100"/>
  206. <Column size="100"/>
  207. <Column size="100"/>
  208. </Columns>
  209. <Rows>
  210. <Row size="24" band="head"/>
  211. <Row size="24"/>
  212. </Rows>
  213. <Band id="head">
  214. <Cell text="caption1"/>
  215. <Cell col="1" text="caption2"/>
  216. <Cell col="2" text="caption3"/>
  217. <Cell col="3" text="caption4"/>
  218. <Cell col="4" text="caption5"/>
  219. <Cell col="5" text="caption6"/>
  220. <Cell col="6" text="caption7"/>
  221. <Cell col="7" text="caption8"/>
  222. <Cell col="8" text="caption9"/>
  223. <Cell col="9" text="caption10"/>
  224. <Cell col="10" text="caption11"/>
  225. <Cell col="11" text="caption12"/>
  226. <Cell col="12" text="caption13"/>
  227. <Cell col="13" text="caption14"/>
  228. <Cell col="14" text="caption15"/>
  229. <Cell col="15" text="caption16"/>
  230. <Cell col="16" text="caption17"/>
  231. <Cell col="17" text="caption18"/>
  232. </Band>
  233. <Band id="body">
  234. <Cell text="bind:matrnm"/>
  235. <Cell col="1" text="bind:deptcd"/>
  236. <Cell col="2" text="bind:deptnm"/>
  237. <Cell col="3" text="bind:useqtym"/>
  238. <Cell col="4" text="bind:usge"/>
  239. <Cell col="5" text="bind:prodcmpynm"/>
  240. <Cell col="6" text="bind:pos1"/>
  241. <Cell col="7" text="bind:pos2"/>
  242. <Cell col="8" text="bind:pos3"/>
  243. <Cell col="9" text="bind:pos4"/>
  244. <Cell col="10" text="bind:pos5"/>
  245. <Cell col="11" text="bind:pos6"/>
  246. <Cell col="12" text="bind:pos7"/>
  247. <Cell col="13" text="bind:pos8"/>
  248. <Cell col="14" text="bind:pos9"/>
  249. <Cell col="15" text="bind:sgnl"/>
  250. <Cell col="16" text="bind:harm"/>
  251. <Cell col="17" text="bind:gubun"/>
  252. </Band>
  253. </Format>
  254. </Formats>
  255. </Grid>
  256. </Layout>
  257. </Layouts>
  258. <Objects>
  259. <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_condition_oncolumnchanged">
  260. <ColumnInfo>
  261. <Column id="deptcd" type="STRING" size="256"/>
  262. <Column id="deptnm" type="STRING" size="256"/>
  263. <Column id="matrcd" type="STRING" size="256"/>
  264. <Column id="matrnm" type="STRING" size="256"/>
  265. <Column id="basedd" type="STRING" size="256"/>
  266. <Column id="chkmatrcd" type="STRING" size="256"/>
  267. <Column id="instcd" type="STRING" size="256"/>
  268. </ColumnInfo>
  269. <Rows>
  270. <Row>
  271. <Col id="deptcd"/>
  272. <Col id="deptnm"/>
  273. <Col id="matrcd"/>
  274. <Col id="matrnm"/>
  275. <Col id="basedd"/>
  276. <Col id="chkmatrcd"/>
  277. <Col id="instcd"/>
  278. </Row>
  279. </Rows>
  280. </Dataset>
  281. <Dataset id="ds_main_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_matrlist_oncolumnchanged">
  282. <ColumnInfo>
  283. <Column id="matrcd" type="STRING" size="256" sumtext="물질코드"/>
  284. <Column id="matrnm" type="STRING" size="256" sumtext="물질명"/>
  285. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  286. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  287. <Column id="harmcomp" type="STRING" size="256" sumtext="유해구성성분"/>
  288. <Column id="harmgrde" type="STRING" size="256" sumtext="유해등급"/>
  289. <Column id="usge" type="STRING" size="256" sumtext="용도"/>
  290. <Column id="sgnl" type="STRING" size="256" sumtext="신호어"/>
  291. <Column id="warnyn1" type="STRING" size="256" sumtext="경고표시1"/>
  292. <Column id="warnyn2" type="STRING" size="256" sumtext="경고표시2"/>
  293. <Column id="warnyn3" type="STRING" size="256" sumtext="경고표시3"/>
  294. <Column id="warnyn4" type="STRING" size="256" sumtext="경고표시4"/>
  295. <Column id="warnyn5" type="STRING" size="256" sumtext="경고표시5"/>
  296. <Column id="warnyn6" type="STRING" size="256" sumtext="경고표시6"/>
  297. <Column id="warnyn7" type="STRING" size="256" sumtext="경고표시7"/>
  298. <Column id="warnyn8" type="STRING" size="256" sumtext="경고표시8"/>
  299. <Column id="warnyn9" type="STRING" size="256" sumtext="경고표시9"/>
  300. <Column id="msdsfileyn" type="STRING" size="256" sumtext="msds파일여부"/>
  301. <Column id="msdsfilepath" type="STRING" size="256" sumtext="msds파일path"/>
  302. <Column id="msdsfilenm" type="STRING" size="256" sumtext="msds파일이름"/>
  303. <Column id="workfileyn" type="STRING" size="256" sumtext="작업공정별 작업요령 파일여부"/>
  304. <Column id="workfilepath" type="STRING" size="256" sumtext="작업공정별 작업요령 파일path"/>
  305. <Column id="workfilenm" type="STRING" size="256" sumtext="작업공정별 작업요령 파일이름"/>
  306. <!-- 20150102 목록 및 유해성 출력을 위해 아래 항목들 추가 -->
  307. <Column id="chk" type="STRING" size="256" sumtext="선택여부"/>
  308. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  309. <Column id="useqtym" type="STRING" size="256" sumtext="사용량"/>
  310. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사"/>
  311. <Column id="pos1" type="STRING" size="256" sumtext="위치1"/>
  312. <Column id="pos2" type="STRING" size="256" sumtext="위치2"/>
  313. <Column id="pos3" type="STRING" size="256" sumtext="위치3"/>
  314. <Column id="pos4" type="STRING" size="256" sumtext="위치4"/>
  315. <Column id="pos5" type="STRING" size="256" sumtext="위치5"/>
  316. <Column id="pos6" type="STRING" size="256" sumtext="위치6"/>
  317. <Column id="pos7" type="STRING" size="256" sumtext="위치7"/>
  318. <Column id="pos8" type="STRING" size="256" sumtext="위치8"/>
  319. <Column id="pos9" type="STRING" size="256" sumtext="위치9"/>
  320. <Column id="harm" type="STRING" size="256" sumtext="유해위험성list"/>
  321. </ColumnInfo>
  322. </Dataset>
  323. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  324. <ColumnInfo>
  325. <Column id="file" type="STRING" size="256"/>
  326. </ColumnInfo>
  327. <Rows>
  328. <Row/>
  329. </Rows>
  330. </Dataset>
  331. <Dataset id="ds_popmatr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  332. <ColumnInfo>
  333. <Column id="matrcd" type="STRING" size="256"/>
  334. <Column id="matrnm" type="STRING" size="256"/>
  335. <Column id="deptcd" type="STRING" size="256"/>
  336. <Column id="returntype" type="STRING" size="256"/>
  337. <Column id="selectyn" type="STRING" size="256"/>
  338. </ColumnInfo>
  339. <Rows>
  340. <Row>
  341. <Col id="matrcd"/>
  342. <Col id="matrnm"/>
  343. <Col id="deptcd"/>
  344. <Col id="returntype"/>
  345. <Col id="selectyn"/>
  346. </Row>
  347. </Rows>
  348. </Dataset>
  349. <Dataset id="ds_filepath" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  350. <ColumnInfo>
  351. <Column id="filepath" type="STRING" size="256"/>
  352. </ColumnInfo>
  353. <Rows>
  354. <Row/>
  355. </Rows>
  356. </Dataset>
  357. <Dataset id="ds_filelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  358. <ColumnInfo>
  359. <Column id="filedata" type="STRING" size="256"/>
  360. </ColumnInfo>
  361. </Dataset>
  362. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  363. <ColumnInfo>
  364. <Column id="matrcd" type="STRING" size="256"/>
  365. <Column id="matrnm" type="STRING" size="256"/>
  366. <Column id="deptcd" type="STRING" size="256"/>
  367. <Column id="deptnm" type="STRING" size="256"/>
  368. <Column id="ym" type="STRING" size="256"/>
  369. <Column id="popflag" type="STRING" size="256"/>
  370. <Column id="confirmflag" type="STRING" size="256"/>
  371. <Column id="gubun" type="STRING" size="256"/>
  372. <Column id="chk" type="STRING" size="256"/>
  373. <Column id="ymchk" type="STRING" size="256"/>
  374. <Column id="lastindex" type="STRING" size="256"/>
  375. </ColumnInfo>
  376. <Rows>
  377. <Row>
  378. <Col id="matrcd"/>
  379. <Col id="matrnm"/>
  380. <Col id="deptcd"/>
  381. <Col id="deptnm"/>
  382. <Col id="ym"/>
  383. <Col id="popflag"/>
  384. <Col id="confirmflag"/>
  385. </Row>
  386. </Rows>
  387. </Dataset>
  388. <Dataset id="ds_main_harmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  389. <ColumnInfo>
  390. <Column id="matrnm" type="STRING" size="256"/>
  391. <Column id="deptcd" type="STRING" size="256"/>
  392. <Column id="deptnm" type="STRING" size="256"/>
  393. <Column id="useqtym" type="STRING" size="256"/>
  394. <Column id="usge" type="STRING" size="256"/>
  395. <Column id="prodcmpynm" type="STRING" size="256"/>
  396. <Column id="pos1" type="STRING" size="256"/>
  397. <Column id="pos2" type="STRING" size="256"/>
  398. <Column id="pos3" type="STRING" size="256"/>
  399. <Column id="pos4" type="STRING" size="256"/>
  400. <Column id="pos5" type="STRING" size="256"/>
  401. <Column id="pos6" type="STRING" size="256"/>
  402. <Column id="pos7" type="STRING" size="256"/>
  403. <Column id="pos8" type="STRING" size="256"/>
  404. <Column id="pos9" type="STRING" size="256"/>
  405. <Column id="sgnl" type="STRING" size="256"/>
  406. <Column id="harm" type="STRING" size="256"/>
  407. <Column id="gubun" type="STRING" size="256"/>
  408. </ColumnInfo>
  409. </Dataset>
  410. </Objects>
  411. <Bind>
  412. <BindItem id="item0" compid="grp_sea.ipt_deptcd" propid="value" datasetid="ds_main_condition" columnid="deptcd"/>
  413. <BindItem id="item1" compid="grp_sea.opt_deptnm" propid="value" datasetid="ds_main_condition" columnid="deptnm"/>
  414. <BindItem id="item2" compid="grp_sea.ipt_matrcd" propid="value" datasetid="ds_main_condition" columnid="matrcd"/>
  415. <BindItem id="item3" compid="grp_sea.opt_matrnm" propid="value" datasetid="ds_main_condition" columnid="matrnm"/>
  416. <BindItem id="item4" compid="grp_sea.ipt_basedd" propid="value" datasetid="ds_main_condition" columnid="basedd"/>
  417. <BindItem id="item5" compid="ipt_updpath" propid="value" datasetid="ds_hidden" columnid="file"/>
  418. </Bind>
  419. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  420. * System Name :
  421. * Job Name :
  422. * Creator :
  423. * Make Date : 2017-06-19
  424. * Description :
  425. *---------------------------------------------------------------------------------------
  426. * Modify Date Modifier Modify Description
  427. *---------------------------------------------------------------------------------------
  428. * 2017-06-19 Live Converter TF->XP
  429. *
  430. *---------------------------------------------------------------------------------------
  431. ****************************************************************************************/
  432. include "com_commonxp::comm_main.xjs";
  433. include "mis_miscommonxp::MIS.xjs";
  434. function SMRSM00300_oninit(obj:Form, e:InitEventInfo)
  435. {
  436. frmf_initForm(obj);
  437. }
  438. function SMRSM00300_onload(obj:Form, e:LoadEventInfo)
  439. {
  440. grdf_initGrid(grd_matrlist);
  441. //grdf_setRowTypeIcon(grd_matrlist, 0);
  442. fOpenForm();
  443. }
  444. function fOpenForm()
  445. {
  446. misfGridInit(grd_matrlist);
  447. grp_sea.ipt_basedd.value = utlf_getCurrentDate();
  448. grp_sea.ipt_deptcd.value = sysf_getUserInfo("dutplcecd");
  449. grp_sea.opt_deptnm.value = sysf_getUserInfo("dutplcenm");
  450. if( sysf_getUserInfo("dutplceinstcd") == "032" )
  451. {
  452. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  453. {
  454. ds_main_matrlist.setColumn(i, "harmgrde", "분류");
  455. }
  456. }
  457. }
  458. function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  459. {
  460. if(e.columnid == "deptcd")
  461. {
  462. var objFocus = this.getFocus();
  463. grp_sea.ipt_deptcd.value = e.newvalue;
  464. grp_sea.ipt_deptcd.setFocus();
  465. grp_sea.opt_deptnm.value = "";
  466. misfValidationCheck("02", "", "deptcd,deptnm" );
  467. objFocus.setFocus();
  468. }
  469. if(e.columnid == "matrcd")
  470. {
  471. if(utlf_isNull(e.newvalue))
  472. {
  473. ds_main_condition.setColumn(0, "matrnm", "");
  474. }
  475. }
  476. }
  477. function grp_sea_ipt_deptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  478. {
  479. if(e.keycode == 13)
  480. {
  481. obj.updateToDataset();
  482. }
  483. }
  484. function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
  485. {
  486. var vOrigDeptcd = grp_sea.ipt_deptcd.value;
  487. var recv_list = "deptcd,deptnm";
  488. misfOpenPopUpList("02", grp_sea.ipt_deptcd,"", recv_list);
  489. }
  490. function grp_sea_btn_matrcd_onclick(obj:Button, e:ClickEventInfo)
  491. {
  492. ds_popmatr.setColumn(0, "deptcd", grp_sea.ipt_deptcd.value);
  493. ds_popmatr.setColumn(0, "selectyn", "");
  494. var objArg = new Object();
  495. objArg.arg_ds_popdata = ds_popmatr;
  496. frmf_modal("SPRSM00100", "SPRSM00100", objArg, "", "", "", "", "", "", "", "", "", "M");
  497. if(ds_popmatr.getColumn(0, "selectyn") == "Y")
  498. {
  499. ds_main_condition.setColumn(0, "matrcd", ds_popmatr.getColumn(0, "matrcd"));
  500. ds_main_condition.setColumn(0, "matrnm", ds_popmatr.getColumn(0, "matrnm"));
  501. }
  502. }
  503. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  504. {
  505. fGetMatrList();
  506. }
  507. function fGetMatrList()
  508. {
  509. var oParam = {};
  510. oParam.id = "TRRSM00301";
  511. oParam.service = "purcbaseapp.PurcBaseMngt";
  512. oParam.method = "reqGetMatrDeptList";
  513. oParam.inds = "req=ds_main_condition";
  514. oParam.outds = "ds_main_matrlist=matrlist";
  515. oParam.async = false;
  516. //oParam.callback = "cf_TRRSM00301";
  517. tranf_submit(oParam);
  518. if( utlf_isNull(ds_main_matrlist.getColumnInfo("chk")) ){
  519. ds_main_matrlist.addColumn("chk", "string");
  520. }
  521. if( sysf_getUserInfo("dutplceinstcd") == "032" )
  522. {
  523. ds_main_matrlist.enableevent = false;
  524. ds_main_matrlist.updatecontrol = false;
  525. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  526. {
  527. ds_main_matrlist.setColumn(i, "harmgrde", "분류");
  528. }
  529. ds_main_matrlist.updatecontrol = true;
  530. ds_main_matrlist.enableevent = true;
  531. }
  532. }
  533. function ds_main_matrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  534. {
  535. if( e.columnid == "chk" )
  536. {
  537. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  538. }
  539. }
  540. function grd_matrlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  541. {
  542. // if (e.row > -1)
  543. // {
  544. // if (e.cell == grd_matrlist.getBindCellIndex("Body", "chk"))
  545. // {
  546. // if (ds_main_matrlist.rowcount > 0)
  547. // {
  548. // var sVal = "Y";
  549. // if (ds_main_matrlist.getColumn(0, "chk", "Y"))
  550. // {
  551. // sVal = "N";
  552. // }
  553. //
  554. // for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  555. // {
  556. // ds_main_matrlist.setColumn(i+1, "chk", sVal);
  557. // }
  558. // grd_matrlist.setCellPos(grd_matrlist.getBindCellIndex("body", "matrnm"));
  559. // grd_matrlist.showEditor(true);
  560. // }
  561. // }
  562. // }
  563. // else
  564. // {
  565. if (e.cell == grd_matrlist.getBindCellIndex("Body", "msdsfileyn") && ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "msdsfileyn") == "다운")
  566. {
  567. fdown("1", ds_main_matrlist.rowposition);
  568. grd_matrlist.setCellPos(0);
  569. grd_matrlist.showEditor(true);
  570. }
  571. else if (e.cell == grd_matrlist.getBindCellIndex("Body", "workfileyn") && ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "workfileyn") == "다운")
  572. {
  573. fdown("2", ds_main_matrlist.rowposition);
  574. grd_matrlist.setCellPos(0);
  575. grd_matrlist.showEditor(true);
  576. }
  577. //}
  578. }
  579. function grd_matrlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  580. {
  581. if (ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "harmgrde") == "1")
  582. {
  583. btn_gen.click();
  584. }
  585. }
  586. function fdown(flag, iRow)
  587. {
  588. var filepath = "";
  589. var filenm = "";
  590. if(flag == "1")
  591. {
  592. filepath = ds_main_matrlist.getColumn(iRow, "msdsfilepath");
  593. filenm = ds_main_matrlist.getColumn(iRow, "msdsfilenm");
  594. }
  595. else if (flag == "2")
  596. {
  597. filepath = ds_main_matrlist.getColumn(iRow, "workfilepath");
  598. filenm = ds_main_matrlist.getColumn(iRow, "workfilenm");
  599. }
  600. var fd = new FileDialog;
  601. var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm);
  602. ds_filepath.setColumn(0, "filepath", filepath);
  603. sysf_setErrorMsg(false); //자바단에서 에러발생시 1.0은 오류리턴을 안해서...
  604. var oParam = {};
  605. oParam.id = "TRRWC03003";
  606. oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
  607. oParam.method = "reqGetManualAtt";
  608. oParam.inds = "req=ds_filepath";
  609. oParam.outds = "ds_filelist=attachfile";
  610. oParam.async = false;
  611. //oParam.callback = "cf_TRRWC03003";
  612. tranf_submit(oParam);
  613. sysf_setErrorMsg(true);
  614. var sFileExt = utlf_transNullToEmpty(ds_main_matrlist.getColumn(iRow, "msdsfilenm")+"");
  615. dsf_readFileFromDs(objVFile.fullpath, ds_filelist, 0, "filedata"); // 파일저장
  616. if (sysf_messageBox("파일을", "Q004") == "6")
  617. {
  618. system.execShell("\"" + objVFile.fullpath + "\"");
  619. }
  620. }
  621. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  622. {
  623. grdf_exportExcel(grd_matrlist, "excel", "savetype1", "false");
  624. }
  625. function btn_gen_onclick(obj:Button, e:ClickEventInfo)
  626. {
  627. if (ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "harmgrde") != "1")
  628. {
  629. if (sysf_getUserInfo("dutplceinstcd") == "031"){
  630. frmf_modal("SMRSM00401", "SMRSM00401", "", "", "", "", "", "", "", "", "", "", "M");
  631. }else{
  632. frmf_modal("SMRSM00400", "SMRSM00400", "", "", "", "", "", "", "", "", "", "", "M");
  633. }
  634. }
  635. else if (ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "harmgrde") == "1")
  636. {
  637. if (sysf_getUserInfo("dutplceinstcd") == "031"){
  638. ds_popdata.setColumn(0, "matrcd", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "matrcd"));
  639. ds_popdata.setColumn(0, "matrnm", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "matrnm"));
  640. ds_popdata.setColumn(0, "deptcd", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "deptcd"));
  641. ds_popdata.setColumn(0, "deptnm", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "deptnm"));
  642. ds_popdata.setColumn(0, "ym", String(grp_sea.ipt_basedd.value).substr(0,6));
  643. ds_popdata.setColumn(0, "popflag", "Y");
  644. ds_popdata.setColumn(0, "confirmflag", "");
  645. ds_popdata.setColumn(0, "gubun", "N");
  646. var objArg = new Object();
  647. objArg.arg_ds_main_condition = ds_popdata;
  648. frmf_modal("SMRSM00401", "SMRSM00401", objArg, "", "", "", "", "", "", "", "", "", "M");
  649. }else{
  650. ds_popdata.setColumn(0, "matrcd", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "matrcd"));
  651. ds_popdata.setColumn(0, "matrnm", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "matrnm"));
  652. ds_popdata.setColumn(0, "deptcd", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "deptcd"));
  653. ds_popdata.setColumn(0, "deptnm", ds_main_matrlist.getColumn(ds_main_matrlist.rowposition, "deptnm"));
  654. var objArg = new Object();
  655. objArg.arg_ds_main_condition = ds_popdata;
  656. frmf_modal("SMRSM00400", "SMRSM00400", objArg, "", "", "", "", "", "", "", "", "", "M");
  657. }
  658. }
  659. }
  660. function btn_prt_onclick(obj:Button, e:ClickEventInfo)
  661. {
  662. if(ds_main_matrlist.rowcount < 0)
  663. {
  664. sysf_messageBox("조회된 결과가 존재하지 않습니다. \n먼저 조회 후 출력하십시요.", "E999", "");
  665. return;
  666. }
  667. misfGridInit(grd_harmlist);
  668. var chkcnt = 0;
  669. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  670. {
  671. if(ds_main_matrlist.getColumn(i, "chk") == "Y")
  672. {
  673. var row = ds_main_harmlist.addRow();
  674. ds_main_harmlist.setColumn(row, "matrnm", ds_main_matrlist.getColumn(i, "matrnm"));
  675. ds_main_harmlist.setColumn(row, "deptcd", ds_main_matrlist.getColumn(i, "deptcd"));
  676. ds_main_harmlist.setColumn(row, "deptnm", ds_main_matrlist.getColumn(i, "deptnm"));
  677. ds_main_harmlist.setColumn(row, "useqtym", ds_main_matrlist.getColumn(i, "useqtym"));
  678. ds_main_harmlist.setColumn(row, "usge", ds_main_matrlist.getColumn(i, "usge"));
  679. ds_main_harmlist.setColumn(row, "prodcmpynm", ds_main_matrlist.getColumn(i, "prodcmpynm"));
  680. ds_main_harmlist.setColumn(row, "pos1", ds_main_matrlist.getColumn(i, "pos1"));
  681. ds_main_harmlist.setColumn(row, "pos2", ds_main_matrlist.getColumn(i, "pos2"));
  682. ds_main_harmlist.setColumn(row, "pos3", ds_main_matrlist.getColumn(i, "pos3"));
  683. ds_main_harmlist.setColumn(row, "pos4", ds_main_matrlist.getColumn(i, "pos4"));
  684. ds_main_harmlist.setColumn(row, "pos5", ds_main_matrlist.getColumn(i, "pos5"));
  685. ds_main_harmlist.setColumn(row, "pos6", ds_main_matrlist.getColumn(i, "pos6"));
  686. ds_main_harmlist.setColumn(row, "pos7", ds_main_matrlist.getColumn(i, "pos7"));
  687. ds_main_harmlist.setColumn(row, "pos8", ds_main_matrlist.getColumn(i, "pos8"));
  688. ds_main_harmlist.setColumn(row, "pos9", ds_main_matrlist.getColumn(i, "pos9"));
  689. ds_main_harmlist.setColumn(row, "sgnl", ds_main_matrlist.getColumn(i, "sgnl"));
  690. ds_main_harmlist.setColumn(row, "harm", ds_main_matrlist.getColumn(i, "harm"));
  691. ds_main_harmlist.setColumn(row, "gubun", ds_main_matrlist.getColumn(i, "gubun"));
  692. chkcnt += 1;
  693. }
  694. }
  695. if(chkcnt == 0)
  696. {
  697. sysf_messageBox("선택된 자료가 없습니다. \n먼저 출력할 대상을 선택한 후 출력하십시요.", "E999", "");
  698. return;
  699. }
  700. if(sysf_getUserInfo("dutplceinstcd") == "032")
  701. {
  702. var objDOM = rptf_createDOM();
  703. rptf_setNodeListToDOM(objDOM, "/root/main/harmlist", ds_main_harmlist);
  704. var objParam = new Object();
  705. objParam.xml_data_XML1 = objDOM.documentElement.source;
  706. var option = "";
  707. rptf_exeReportPreview30(["RPRSM00302"],[objParam], option);
  708. }
  709. else
  710. {
  711. var objDOM = rptf_createDOM();
  712. rptf_setNodeListToDOM(objDOM, "/root/main/harmlist", ds_main_harmlist);
  713. var objParam = new Object();
  714. objParam.xml_data_XML1 = objDOM.documentElement.source;
  715. var option = "";
  716. rptf_exeReportPreview30(["RPRSM00301"],[objParam], option);
  717. }
  718. }
  719. ]]></Script>
  720. </Form>
  721. </FDL>