SMRSM01000_화학물질취급관리조사.xfdl 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSM01000" position="absolute 0 0 1205 783" titletext="화학물질 취급 변경사항 보고" oninit="SMRSM01000_oninit" onload="SMRSM01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="화학물질 취급 변경사항 보고" class="tit_1" position="absolute 0 0 293 0"/>
  8. <Shape id="line2" class="line_6" position="absolute 0 45 1194 51" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="임시저장" class="btn4" position="absolute 912 24 992 46" anchor="top right" onclick="btn_save_onclick"/>
  10. <Button id="btn_saveDelete" taborder="2" text="임시저장 자료 삭제" class="btn4" enable="false" position="absolute 995 24 1135 46" anchor="top right" onclick="btn_saveDelete_onclick"/>
  11. <Button id="btn_send" taborder="3" text="전송" class="btn4" position="absolute 1138 24 1194 46" anchor="top right" onclick="btn_send_onclick" enable="false"/>
  12. <Static id="caption3" text="※ 1. 작성자 본인의 자료는 수정이 가능하나, 타인이 작성한 자료는 조회만 가능합니다." position="absolute 0 739 472 759" anchor="left bottom"/>
  13. <Static id="caption2" text="2. 임시저장한 자료는 수정 및 삭제가 가능하나, 전송 이후에는 수정이 불가합니다." position="absolute 16 759 536 779" anchor="left bottom"/>
  14. <Grid id="grd_matrlist" taborder="4" binddataset="ds_main_matrlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 119 1193 729" anchor="all" onexpanddown="grd_matrlist_onexpanddown">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="27" band="left"/>
  19. <Column size="46"/>
  20. <Column size="92"/>
  21. <Column size="52"/>
  22. <Column size="140"/>
  23. <Column size="111"/>
  24. <Column size="111"/>
  25. <Column size="111"/>
  26. <Column size="55"/>
  27. <Column size="55"/>
  28. <Column size="55"/>
  29. <Column size="55"/>
  30. <Column size="55"/>
  31. <Column size="55"/>
  32. <Column size="55"/>
  33. <Column size="55"/>
  34. <Column size="53"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell rowspan="2" taborder="undefined"/>
  56. <Cell col="1" rowspan="2" text="구분" taborder="undefined"/>
  57. <Cell col="2" rowspan="2" text="적용시작일자" taborder="undefined"/>
  58. <Cell col="3" rowspan="2" text="물질&#10;코드" taborder="undefined"/>
  59. <Cell col="4" rowspan="2" text="물질명" taborder="undefined"/>
  60. <Cell col="5" rowspan="2" text="제조사" taborder="undefined"/>
  61. <Cell col="6" rowspan="2" text="공급처" taborder="undefined"/>
  62. <Cell col="7" rowspan="2" text="용도" taborder="undefined"/>
  63. <Cell col="8" rowspan="2" text="월&#10;사용량" taborder="undefined"/>
  64. <Cell col="9" rowspan="2" text="연간&#10;사용량" taborder="undefined"/>
  65. <Cell col="10" rowspan="2" text="1일&#10;취급시간" taborder="undefined"/>
  66. <Cell col="11" rowspan="2" text="월&#10;작업일수" taborder="undefined"/>
  67. <Cell col="12" rowspan="2" text="취급자&#10;수" taborder="undefined"/>
  68. <Cell col="13" rowspan="2" text="소분용기&#10;유무" taborder="undefined"/>
  69. <Cell col="14" rowspan="2" text="원용기&#10;경고표지" taborder="undefined"/>
  70. <Cell col="15" rowspan="2" text="MSDS&#10;유무" taborder="undefined"/>
  71. <Cell col="16" rowspan="2" text="작성자" taborder="undefined"/>
  72. <Cell col="17" text="보고일자"/>
  73. <Cell col="18" text="순번"/>
  74. <Cell col="19" text="부서코드"/>
  75. <Cell col="20" text="작성자ID"/>
  76. <Cell col="21" text="orguseqtym"/>
  77. <Cell col="22" text="orguseqtyy"/>
  78. <Cell col="23" text="orgusge"/>
  79. <Cell col="24" text="orgtrethrd"/>
  80. <Cell col="25" text="orgworkdcntm"/>
  81. <Cell col="26" text="orgtretmcnt"/>
  82. <Cell col="27" text="orgctnryn"/>
  83. <Cell col="28" text="orgctnrsignyn"/>
  84. <Cell col="29" text="orgmsdsyn"/>
  85. <Cell row="1" col="17" text="보고일자"/>
  86. <Cell row="1" col="18" text="순번"/>
  87. <Cell row="1" col="19" text="부서코드"/>
  88. <Cell row="1" col="20" text="작성자ID"/>
  89. <Cell row="1" col="21" text="orguseqtym"/>
  90. <Cell row="1" col="22" text="orguseqtyy"/>
  91. <Cell row="1" col="23" text="orgusge"/>
  92. <Cell row="1" col="24" text="orgtrethrd"/>
  93. <Cell row="1" col="25" text="orgworkdcntm"/>
  94. <Cell row="1" col="26" text="orgtretmcnt"/>
  95. <Cell row="1" col="27" text="orgctnryn"/>
  96. <Cell row="1" col="28" text="orgctnrsignyn"/>
  97. <Cell row="1" col="29" text="orgmsdsyn"/>
  98. </Band>
  99. <Band id="body">
  100. <Cell celltype="head"/>
  101. <Cell col="1" displaytype="combo" style="align:center middle;color:EXPR(col1);color2:EXPR(col1);font:arial,9,bold;" text="bind:workflag" combodataset="ds_cmb_workflag" combocodecol="value" combodatacol="label" enable="false"/>
  102. <Cell col="2" displaytype="date" edittype="date" style="color:#ff0000ff;color2:#ff0000ff;" text="bind:appdd" editautoselect="true" calendardisplaynulltype="nulltext"/>
  103. <Cell col="3" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center middle;" text="bind:matrcd" editautoselect="true" expandshow="show"/>
  104. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:matrnm" wordwrap="word"/>
  105. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word" editautoselect="true"/>
  106. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:maincustlastsuplplcenm" wordwrap="word" editautoselect="true"/>
  107. <Cell col="7" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;color:EXPR(col7);color2:EXPR(col7);" text="bind:usge" wordwrap="word" editautoselect="true"/>
  108. <Cell col="8" displaytype="text" edittype="text" style="align:center top;padding:5 0 2 0;color:EXPR(col8);color2:EXPR(col8);" text="bind:useqtym" wordwrap="word" editautoselect="true"/>
  109. <Cell col="9" displaytype="text" edittype="text" style="align:center top;padding:5 0 2 0;color:EXPR(col9);color2:EXPR(col9);" text="bind:useqtyy" wordwrap="word" editautoselect="true"/>
  110. <Cell col="10" displaytype="text" edittype="text" style="align:center top;padding:5 0 2 0;color:EXPR(col10);color2:EXPR(col10);" text="bind:trethrd" wordwrap="word" editautoselect="true"/>
  111. <Cell col="11" displaytype="text" edittype="text" style="align:center top;padding:5 0 2 0;color:EXPR(col11);color2:EXPR(col11);" text="bind:workdcntm" wordwrap="word" editautoselect="true"/>
  112. <Cell col="12" displaytype="text" edittype="text" style="align:center top;padding:5 0 2 0;color:EXPR(col12);color2:EXPR(col12);" text="bind:tretmcnt" wordwrap="word" editautoselect="true"/>
  113. <Cell col="13" displaytype="combo" edittype="combo" style="align:center top;padding:5 0 2 0;color:EXPR(col13);color2:EXPR(col13);" text="bind:ctnryn" wordwrap="word" editautoselect="true" combodataset="ds_cmb_ctnryn" combocodecol="value" combodatacol="label"/>
  114. <Cell col="14" displaytype="combo" edittype="combo" style="align:center top;padding:5 0 2 0;color:EXPR(col14);color2:EXPR(col14);" text="bind:ctnrsignyn" wordwrap="word" editautoselect="true" combodataset="ds_cmb_ctnrsignyn" combocodecol="value" combodatacol="label"/>
  115. <Cell col="15" displaytype="combo" edittype="combo" style="align:center top;padding:5 0 2 0;color:EXPR(col15);color2:EXPR(col15);" text="bind:msdsyn" wordwrap="word" editautoselect="true" combodataset="ds_cmb_msdsyn" combocodecol="value" combodatacol="label"/>
  116. <Cell col="16" style="align:center middle;" text="bind:fstname" editautoselect="true"/>
  117. <Cell col="17" text="bind:reptdd"/>
  118. <Cell col="18" text="bind:reptseq"/>
  119. <Cell col="19" text="bind:deptcd"/>
  120. <Cell col="20" text="bind:fstid"/>
  121. <Cell col="21" text="bind:orguseqtym"/>
  122. <Cell col="22" text="bind:orguseqtyy"/>
  123. <Cell col="23" text="bind:orgusge"/>
  124. <Cell col="24" text="bind:orgtrethrd"/>
  125. <Cell col="25" text="bind:orgworkdcntm"/>
  126. <Cell col="26" text="bind:orgtretmcnt"/>
  127. <Cell col="27" text="bind:orgctnryn"/>
  128. <Cell col="28" text="bind:orgctnrsignyn"/>
  129. <Cell col="29" text="bind:orgmsdsyn"/>
  130. </Band>
  131. </Format>
  132. </Formats>
  133. </Grid>
  134. <Static id="caption21" text="조사표" class="tit_2" position="absolute 0 98 88 120"/>
  135. <Shape id="line3" class="line_10" position="absolute 0 114 1193 120" anchor="left top right"/>
  136. <Button id="btn_insert" taborder="5" text="신규물질 추가" class="btn2" position="absolute 825 95 922 114" anchor="top right" onclick="btn_insert_onclick"/>
  137. <Button id="btn_insertstop" taborder="6" text="사용중단 처리" class="btn2" position="absolute 925 95 1022 114" anchor="top right" onclick="btn_insertstop_onclick"/>
  138. <Button id="btn_delete" taborder="7" text="취소 및 삭제" class="btn2" position="absolute 1025 95 1111 114" anchor="top right" onclick="btn_delete_onclick"/>
  139. <Button id="btn_excel" taborder="8" text="엑셀출력" class="btn7" position="absolute 1114 95 1194 114" anchor="top right" onclick="btn_excel_onclick"/>
  140. <Div id="grp_sea" taborder="9" class="div_SA2" position="absolute 0 49 1194 89" anchor="left top right">
  141. <Layouts>
  142. <Layout>
  143. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 472 9 478 30" anchor="default"/>
  144. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 490 9 546 31" anchor="default" onclick="grp_sea_btn_search_onclick"/>
  145. <Edit id="opt_deptnm" taborder="7" readonly="true" class="output" position="absolute 265 10 455 29" anchor="default"/>
  146. <Static id="caption1" text="부서코드" class="search_name" position="absolute 85 11 161 28" anchor="default"/>
  147. <Edit id="ipt_deptcd" taborder="8" autoselect="true" autoskip="true" class="input_default" position="absolute 166 10 241 29" anchor="default" onkeydown="grp_sea_ipt_deptcd_onkeydown"/>
  148. <Button id="btn_deptcd" taborder="9" class="icon_search" position="absolute 245 11 261 27" anchor="default" onclick="grp_sea_btn_deptcd_onclick"/>
  149. <Static id="caption9" text="보고일자 :" position="absolute 823 11 890 28" anchor="default" style="color:#993300ff;font:Dotum,9,bold;"/>
  150. <Calendar id="ipt_reptdd" taborder="10" autoselect="true" autoskip="true" class="input_default" position="absolute 890 10 980 29" mask="yyyy-mm-dd" anchor="default"/>
  151. <CheckBox id="cbx_temp" taborder="11" text="임시저장 자료" truevalue="Y" position="absolute 557 10 663 30" anchor="default" onclick="grp_sea_cbx_temp_onclick"/>
  152. </Layout>
  153. </Layouts>
  154. </Div>
  155. <Static id="caption00" text="화학물질 취급 변경사항 보고" class="tit_1" position="absolute 0 0 208 25"/>
  156. </Layout>
  157. </Layouts>
  158. <Objects>
  159. <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">
  160. <ColumnInfo>
  161. <Column id="reptdd" type="STRING" size="256"/>
  162. <Column id="deptcd" type="STRING" size="256"/>
  163. <Column id="deptnm" type="STRING" size="256"/>
  164. <Column id="tempyn" type="STRING" size="256"/>
  165. <Column id="popflag" type="STRING" size="256"/>
  166. <Column id="confirmflag" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="reptdd"/>
  171. <Col id="deptcd"/>
  172. <Col id="deptnm"/>
  173. <Col id="tempyn"/>
  174. <Col id="popflag"/>
  175. <Col id="confirmflag"/>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_cmb_workflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  180. <ColumnInfo>
  181. <Column id="label" type="STRING" size="256"/>
  182. <Column id="value" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="label">-</Col>
  187. <Col id="value"/>
  188. </Row>
  189. <Row>
  190. <Col id="label">신규</Col>
  191. <Col id="value">N</Col>
  192. </Row>
  193. <Row>
  194. <Col id="label">변경</Col>
  195. <Col id="value">C</Col>
  196. </Row>
  197. <Row>
  198. <Col id="label">중단</Col>
  199. <Col id="value">S</Col>
  200. </Row>
  201. </Rows>
  202. </Dataset>
  203. <Dataset id="ds_cmb_ctnryn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="label" type="STRING" size="256"/>
  206. <Column id="value" type="STRING" size="256"/>
  207. </ColumnInfo>
  208. <Rows>
  209. <Row>
  210. <Col id="label">-</Col>
  211. <Col id="value"/>
  212. </Row>
  213. <Row>
  214. <Col id="label">Y</Col>
  215. <Col id="value">Y</Col>
  216. </Row>
  217. <Row>
  218. <Col id="label">N</Col>
  219. <Col id="value">N</Col>
  220. </Row>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="ds_cmb_ctnrsignyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="label" type="STRING" size="256"/>
  226. <Column id="value" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. <Rows>
  229. <Row>
  230. <Col id="label">-</Col>
  231. <Col id="value"/>
  232. </Row>
  233. <Row>
  234. <Col id="label">Y</Col>
  235. <Col id="value">Y</Col>
  236. </Row>
  237. <Row>
  238. <Col id="label">N</Col>
  239. <Col id="value">N</Col>
  240. </Row>
  241. </Rows>
  242. </Dataset>
  243. <Dataset id="ds_cmb_msdsyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="label" type="STRING" size="256"/>
  246. <Column id="value" type="STRING" size="256"/>
  247. </ColumnInfo>
  248. <Rows>
  249. <Row>
  250. <Col id="label">-</Col>
  251. <Col id="value"/>
  252. </Row>
  253. <Row>
  254. <Col id="label">Y</Col>
  255. <Col id="value">Y</Col>
  256. </Row>
  257. <Row>
  258. <Col id="label">N</Col>
  259. <Col id="value">N</Col>
  260. </Row>
  261. </Rows>
  262. </Dataset>
  263. <Dataset id="ds_main_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_matrlist_oncolumnchanged">
  264. <ColumnInfo>
  265. <Column id="reptdd" type="STRING" size="256"/>
  266. <Column id="reptseq" type="STRING" size="256"/>
  267. <Column id="matrcd" type="STRING" size="256"/>
  268. <Column id="deptcd" type="STRING" size="256"/>
  269. <Column id="workflag" type="STRING" size="256"/>
  270. <Column id="appdd" type="STRING" size="256"/>
  271. <Column id="usge" type="STRING" size="256"/>
  272. <Column id="useqtym" type="STRING" size="256"/>
  273. <Column id="useqtyy" type="STRING" size="256"/>
  274. <Column id="trethrd" type="STRING" size="256"/>
  275. <Column id="workdcntm" type="STRING" size="256"/>
  276. <Column id="tretmcnt" type="STRING" size="256"/>
  277. <Column id="ctnryn" type="STRING" size="256"/>
  278. <Column id="ctnrsignyn" type="STRING" size="256"/>
  279. <Column id="msdsyn" type="STRING" size="256"/>
  280. <Column id="matrnm" type="STRING" size="256"/>
  281. <Column id="prodcmpynm" type="STRING" size="256"/>
  282. <Column id="maincustlastsuplplcenm" type="STRING" size="256"/>
  283. <Column id="fstname" type="STRING" size="256"/>
  284. <Column id="fstid" type="STRING" size="256"/>
  285. <Column id="orguseqtym" type="STRING" size="256"/>
  286. <Column id="orguseqtyy" type="STRING" size="256"/>
  287. <Column id="orgusge" type="STRING" size="256"/>
  288. <Column id="orgtrethrd" type="STRING" size="256"/>
  289. <Column id="orgworkdcntm" type="STRING" size="256"/>
  290. <Column id="orgtretmcnt" type="STRING" size="256"/>
  291. <Column id="orgctnryn" type="STRING" size="256"/>
  292. <Column id="orgctnrsignyn" type="STRING" size="256"/>
  293. <Column id="orgmsdsyn" type="STRING" size="256"/>
  294. <Column id="color" type="STRING" size="256"/>
  295. </ColumnInfo>
  296. </Dataset>
  297. <Dataset id="ds_popmatr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  298. <ColumnInfo>
  299. <Column id="matrcd" type="STRING" size="256"/>
  300. <Column id="matrnm" type="STRING" size="256"/>
  301. <Column id="deptcd" type="STRING" size="256"/>
  302. <Column id="prodcmpynm" type="STRING" size="256"/>
  303. <Column id="maincustlastsuplplcenm" type="STRING" size="256"/>
  304. <Column id="returntype" type="STRING" size="256"/>
  305. <Column id="selectyn" type="STRING" size="256"/>
  306. </ColumnInfo>
  307. <Rows>
  308. <Row>
  309. <Col id="matrcd"/>
  310. <Col id="matrnm"/>
  311. <Col id="deptcd"/>
  312. <Col id="prodcmpynm"/>
  313. <Col id="maincustlastsuplplcenm"/>
  314. <Col id="returntype"/>
  315. <Col id="selectyn"/>
  316. </Row>
  317. </Rows>
  318. </Dataset>
  319. <Dataset id="ds_send_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  320. </Objects>
  321. <Bind>
  322. <BindItem id="item0" compid="grp_sea.ipt_deptcd" propid="value" datasetid="ds_main_condition" columnid="deptcd"/>
  323. <BindItem id="item1" compid="grp_sea.opt_deptnm" propid="value" datasetid="ds_main_condition" columnid="deptnm"/>
  324. <BindItem id="item2" compid="grp_sea.ipt_reptdd" propid="value" datasetid="ds_main_condition" columnid="reptdd"/>
  325. <BindItem id="item3" compid="grp_sea.cbx_temp" propid="value" datasetid="ds_main_condition" columnid="tempyn"/>
  326. </Bind>
  327. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  328. * System Name :
  329. * Job Name :
  330. * Creator :
  331. * Make Date : 2017-06-19
  332. * Description :
  333. *---------------------------------------------------------------------------------------
  334. * Modify Date Modifier Modify Description
  335. *---------------------------------------------------------------------------------------
  336. * 2017-06-19 Live Converter TF->XP
  337. *
  338. *---------------------------------------------------------------------------------------
  339. ****************************************************************************************/
  340. include "com_commonxp::comm_main.xjs";
  341. include "mis_miscommonxp::MIS.xjs";
  342. var arErrorCode = new HashArray();
  343. function SMRSM01000_oninit(obj:Form, e:InitEventInfo)
  344. {
  345. frmf_initForm(obj);
  346. }
  347. function SMRSM01000_onload(obj:Form, e:LoadEventInfo)
  348. {
  349. grdf_initGrid(grd_matrlist);
  350. grdf_setRowTypeIcon(grd_matrlist, 0);
  351. fOpenForm();
  352. }
  353. function fOpenForm()
  354. {
  355. misfGridInit(grd_matrlist);
  356. }
  357. function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  358. {
  359. if(e.columnid == "deptcd")
  360. {
  361. var objFocus = this.getFocus();
  362. misfGridInit(grd_matrlist);
  363. grp_sea.ipt_deptcd.value = e.newvalue;
  364. grp_sea.ipt_deptcd.setFocus();
  365. grp_sea.opt_deptnm.value = "";
  366. misfValidationCheck("02", "", "deptcd,deptnm" );
  367. objFocus.setFocus();
  368. }
  369. }
  370. function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
  371. {
  372. var vOrigDeptcd = grp_sea.ipt_deptcd.value;
  373. var recv_list = "deptcd,deptnm";
  374. misfOpenPopUpList("02", ds_main_condition,"", recv_list) ;
  375. if(vOrigDeptcd != grp_sea.ipt_deptcd.value)
  376. {
  377. misfGridInit(grd_matrlist);
  378. }
  379. }
  380. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  381. {
  382. fGetMatrList();
  383. }
  384. function grp_sea_cbx_temp_onclick(obj:CheckBox, e:ClickEventInfo)
  385. {
  386. misfGridInit(grd_matrlist); //그리드 지움
  387. if(obj.value != "Y") {
  388. grp_sea.ipt_reptdd.value = "";
  389. btn_send.enable = false;
  390. } else {
  391. btn_send.enable = true;
  392. }
  393. }
  394. function grd_matrlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  395. {
  396. var irow = e.row;
  397. ds_popmatr.setColumn(0, "returntype", "3");
  398. var workFlag = ds_main_matrlist.getColumn(irow, "workflag");
  399. if(workFlag == "N")
  400. {
  401. ds_popmatr.setColumn(0, "deptcd", "");
  402. }
  403. else
  404. {
  405. ds_popmatr.setColumn(0, "deptcd", grp_sea.ipt_deptcd.value);
  406. }
  407. ds_popmatr.setColumn(0, "selectyn", "");
  408. var objArg = new Object();
  409. objArg.arg_ds_popdata = ds_popmatr;
  410. frmf_modal("SPRSM00100", "SPRSM00100", objArg, "", "", "", "", "", "", "", "", "", "M");
  411. if(ds_popmatr.getColumn(0, "selectyn") == "Y")
  412. {
  413. ds_main_matrlist.setColumn(irow, "matrcd", ds_popmatr.getColumn(0, "matrcd"));
  414. ds_main_matrlist.setColumn(irow, "matrnm", ds_popmatr.getColumn(0, "matrnm"));
  415. ds_main_matrlist.setColumn(irow, "prodcmpynm", ds_popmatr.getColumn(0, "prodcmpynm"));
  416. ds_main_matrlist.setColumn(irow, "maincustlastsuplplcenm", ds_popmatr.getColumn(0, "maincustlastsuplplcenm"));
  417. }
  418. }
  419. function ds_main_matrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  420. {
  421. var iRow = e.row;
  422. var flag = obj.getColumn(iRow, "workflag");
  423. var iFlagCol = "workflag";
  424. if(utlf_isNull(flag)|| flag == "C")
  425. {
  426. obj.setColumn(iRow, "workflag", "");
  427. fSetStyleAndFlag("usge", iRow, iFlagCol);
  428. fSetStyleAndFlag("useqtym", iRow, iFlagCol);
  429. fSetStyleAndFlag("useqtyy", iRow, iFlagCol);
  430. fSetStyleAndFlag("trethrd", iRow, iFlagCol);
  431. fSetStyleAndFlag("workdcntm", iRow, iFlagCol);
  432. fSetStyleAndFlag("tretmcnt", iRow, iFlagCol);
  433. fSetStyleAndFlag("ctnryn", iRow, iFlagCol);
  434. fSetStyleAndFlag("ctnrsignyn", iRow, iFlagCol);
  435. fSetStyleAndFlag("msdsyn", iRow, iFlagCol);
  436. }
  437. }
  438. function fSetStyleAndFlag(pColname, pRow, pFlagCol)
  439. {
  440. var pCol = pColname;
  441. ds_main_matrlist.enableevent = false;
  442. ds_main_matrlist.updatecontrol = false;
  443. if(ds_main_matrlist.getColumn(pRow, pCol) == ds_main_matrlist.getColumn(pRow, "org"+pColname))
  444. {
  445. ds_main_matrlist.setColumn(pRow, "col" + grd_matrlist.getBindCellIndex("body", pCol), "");
  446. }
  447. else
  448. {
  449. ds_main_matrlist.setColumn(pRow, "col" + grd_matrlist.getBindCellIndex("body", pCol), "#ff0000");
  450. ds_main_matrlist.setColumn(pRow, "col" + grd_matrlist.getBindCellIndex("body", pFlagCol), "#ff0000");
  451. ds_main_matrlist.setColumn(pRow, pFlagCol, "C");
  452. }
  453. ds_main_matrlist.updatecontrol = true;
  454. ds_main_matrlist.enableevent = true;
  455. }
  456. // function misfSetReadOnlyCol(pGrid, pRefs, bYn)
  457. // {
  458. // var arrRefs = pRefs.split(",");
  459. // var bindDS = pGrid.binddataset;
  460. //
  461. // if(arrRefs.length == 0)
  462. // {
  463. // return;
  464. // }
  465. //
  466. // for(var j = 0; j < arrRefs.length; j++)
  467. // {
  468. // if(bYn == "true")
  469. // {
  470. // pGrid.setCellProperty("Body", pGrid.getBindCellIndex("Body", arrRefs[j]), "edittype", "none");
  471. // }
  472. // else
  473. // {
  474. // pGrid.setCellProperty("Body", pGrid.getBindCellIndex("Body", arrRefs[j]), "edittype", "normal");
  475. // }
  476. // }
  477. // }
  478. function btn_insert_onclick(obj:Button, e:ClickEventInfo)
  479. {
  480. grp_sea.ipt_deptcd.value = grp_sea.ipt_deptcd.value.getTrim();
  481. if(utlf_isNull(grp_sea.ipt_deptcd.value))
  482. {
  483. sysf_messageBox("부서코드가 선택되지 않았습니다. \n먼저 부서코드를 선택하십시요.", "E999", "");
  484. grp_sea.ipt_deptcd.setFocus();
  485. return;
  486. }
  487. ds_main_matrlist.addColumn("col1", "string");
  488. ds_main_matrlist.addColumn("col7", "string");
  489. ds_main_matrlist.addColumn("col8", "string");
  490. ds_main_matrlist.addColumn("col9", "string");
  491. ds_main_matrlist.addColumn("col10", "string");
  492. ds_main_matrlist.addColumn("col11", "string");
  493. ds_main_matrlist.addColumn("col12", "string");
  494. ds_main_matrlist.addColumn("col13", "string");
  495. ds_main_matrlist.addColumn("col14", "string");
  496. ds_main_matrlist.addColumn("col15", "string");
  497. var irow = ds_main_matrlist.addRow();
  498. ds_main_matrlist.setColumn(irow, "deptcd", grp_sea.ipt_deptcd.value);
  499. ds_main_matrlist.setColumn(irow, "workflag", "N");
  500. ds_main_matrlist.setColumn(irow, "col1", "#ff0000");
  501. grd_matrlist.setCellProperty("Body", grd_matrlist.getBindCellIndex("Body", "workflag"), "edittype", "none");
  502. ds_main_matrlist.setColumn(irow, "ctnryn", "N");
  503. ds_main_matrlist.setColumn(irow, "ctnrsignyn", "N");
  504. ds_main_matrlist.setColumn(irow, "msdsyn", "N");
  505. }
  506. function btn_insertstop_onclick(obj:Button, e:ClickEventInfo)
  507. {
  508. if(ds_main_matrlist.rowcount < 1)
  509. {
  510. return;
  511. }
  512. var irow = ds_main_matrlist.rowposition;
  513. var flag = ds_main_matrlist.getColumn(irow, "workflag");
  514. if(utlf_isNull(flag))
  515. {
  516. ds_main_matrlist.setColumn(irow, "workflag", "S");
  517. ds_main_matrlist.setColumn(irow, "col1", "#ff0000");
  518. misfSetReadOnlyCol(grd_matrlist, "usge,useqtym,useqtyy,trethrd,workdcntm,tretmcnt,ctnryn,ctnrsignyn,msdsyn", true, irow);
  519. }
  520. else if(flag == "C")
  521. {
  522. ds_main_matrlist.setColumn(irow, "workflag", "S");
  523. ds_main_matrlist.setColumn(irow, "col1", "#ff0000");
  524. misfSetReadOnlyCol(grd_matrlist, "usge,useqtym,useqtyy,trethrd,workdcntm,tretmcnt,ctnryn,ctnrsignyn,msdsyn", true, irow);
  525. ds_main_matrlist.setColumn(irow, "usge", ds_main_matrlist.getColumn(irow, "orgusge"));
  526. ds_main_matrlist.setColumn(irow, "useqtym", ds_main_matrlist.getColumn(irow, "orguseqtym"));
  527. ds_main_matrlist.setColumn(irow, "useqtyy", ds_main_matrlist.getColumn(irow, "orguseqtyy"));
  528. ds_main_matrlist.setColumn(irow, "trethrd", ds_main_matrlist.getColumn(irow, "orgtrethrd"));
  529. ds_main_matrlist.setColumn(irow, "workdcntm", ds_main_matrlist.getColumn(irow, "orgworkdcntm"));
  530. ds_main_matrlist.setColumn(irow, "tretmcnt", ds_main_matrlist.getColumn(irow, "orgtretmcnt"));
  531. ds_main_matrlist.setColumn(irow, "ctnryn", ds_main_matrlist.getColumn(irow, "orgctnryn"));
  532. ds_main_matrlist.setColumn(irow, "ctnrsignyn", ds_main_matrlist.getColumn(irow, "orgctnrsignyn"));
  533. ds_main_matrlist.setColumn(irow, "msdsyn", ds_main_matrlist.getColumn(irow, "orgmsdsyn"));
  534. }
  535. else if(flag == "N")
  536. {
  537. sysf_messageBox("신규추가 물질을 바로 사용중단 처리할 수 없습니다. ", "E999", "");
  538. return;
  539. }
  540. else if(flag == "S")
  541. {
  542. sysf_messageBox("이미 사용중단 처리되었습니다. ", "E999", "");
  543. return;
  544. }
  545. }
  546. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  547. {
  548. if(ds_main_matrlist.rowcount < 1)
  549. {
  550. return;
  551. }
  552. var irow = ds_main_matrlist.rowposition;
  553. var flag = ds_main_matrlist.getColumn(irow, "workflag");
  554. if(utlf_isNull(flag))
  555. {
  556. sysf_messageBox("취소처리할 작업 내용이 없습니다. 물질을 확인하십시요. ", "E999", "");
  557. return;
  558. }
  559. else if(flag == "C")
  560. {
  561. ds_main_matrlist.setColumn(irow, "workflag", "");
  562. ds_main_matrlist.setColumn(irow, "col1", "");
  563. ds_main_matrlist.setColumn(irow, "appdd", "");
  564. ds_main_matrlist.setColumn(irow, "usge", ds_main_matrlist.getColumn(irow, "orgusge"));
  565. ds_main_matrlist.setColumn(irow, "useqtym", ds_main_matrlist.getColumn(irow, "orguseqtym"));
  566. ds_main_matrlist.setColumn(irow, "useqtyy", ds_main_matrlist.getColumn(irow, "orguseqtyy"));
  567. ds_main_matrlist.setColumn(irow, "trethrd", ds_main_matrlist.getColumn(irow, "orgtrethrd"));
  568. ds_main_matrlist.setColumn(irow, "workdcntm", ds_main_matrlist.getColumn(irow, "orgworkdcntm"));
  569. ds_main_matrlist.setColumn(irow, "tretmcnt", ds_main_matrlist.getColumn(irow, "orgtretmcnt"));
  570. ds_main_matrlist.setColumn(irow, "ctnryn", ds_main_matrlist.getColumn(irow, "orgctnryn"));
  571. ds_main_matrlist.setColumn(irow, "ctnrsignyn", ds_main_matrlist.getColumn(irow, "orgctnrsignyn"));
  572. ds_main_matrlist.setColumn(irow, "msdsyn", ds_main_matrlist.getColumn(irow, "orgmsdsyn"));
  573. }
  574. else if(flag == "N")
  575. {
  576. ds_main_matrlist.deleteRow(irow);
  577. }
  578. else if(flag == "S")
  579. {
  580. ds_main_matrlist.setColumn(irow, "workflag", "");
  581. ds_main_matrlist.setColumn(irow, "col1", "");
  582. ds_main_matrlist.setColumn(irow, "appdd", "");
  583. misfSetReadOnlyCol(grd_matrlist, "usge,useqtym,useqtyy,trethrd,workdcntm,tretmcnt,ctnryn,ctnrsignyn,msdsyn", false, irow);
  584. }
  585. }
  586. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  587. {
  588. grdf_exportExcel(grd_matrlist, "조사표", "SheetName1", "false");
  589. }
  590. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  591. {
  592. if(ds_main_matrlist.rowcount < 1)
  593. {
  594. return;
  595. }
  596. if(fClickSaveBtn() == true)
  597. {
  598. grp_sea.cbx_temp.value = "Y";
  599. fGetMatrList();
  600. }
  601. }
  602. function fClickSaveBtn()
  603. {
  604. if(String(ds_main_condition.getColumn(0, "reptdd")).length < 8)
  605. {
  606. sysf_messageBox("보고일자가 정확하게 입력되지 않았습니다. ", "E999", "");
  607. grp_sea.ipt_reptdd.setFocus();
  608. return;
  609. }
  610. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  611. {
  612. var flag = utlf_transNullToEmpty(ds_main_matrlist.getColumn(i, "workflag"));
  613. if (!utlf_isNull(flag))
  614. {
  615. if (String(utlf_transNullToEmpty(ds_main_matrlist.getColumn(i, "appdd"))).length < 8 )
  616. {
  617. sysf_messageBox("적용시작일자가 정확하게 입력되지 않았습니다. \n" + eval(i + 1) + "번째 행을 확인하십시요. ", "E999", "");
  618. return;
  619. }
  620. if ( utlf_isNull(ds_main_matrlist.getColumn(i, "matrcd")))
  621. {
  622. sysf_messageBox("물질코드가 선택되지 않았습니다. \n" + eval(i + 1) + "번째 행을 확인하십시요. ", "E999", "");
  623. return;
  624. }
  625. }
  626. ds_main_matrlist.enableevent = false;
  627. ds_main_matrlist.updatecontrol = false;
  628. ds_main_matrlist.setColumn(i, "reptdd", grp_sea.ipt_reptdd.value);
  629. ds_main_matrlist.updatecontrol = true;
  630. ds_main_matrlist.enableevent = true;
  631. }
  632. grdf_setStatus(grd_matrlist, "I");
  633. var oParam = {};
  634. oParam.id = "TXRSM01001";
  635. oParam.service = "purcbaseapp.PurcBaseMngt";
  636. oParam.method = "reqExeSaveMatrInvestigate";
  637. oParam.inds = "req=ds_main_condition matrlist=ds_main_matrlist:U";
  638. oParam.async = false;
  639. oParam.typeStr = "status";
  640. oParam.callback = "cf_TXRSM01001";
  641. tranf_submit(oParam);
  642. if(arErrorCode.pop("TXRSM01001") > -1){
  643. return true;
  644. }else{
  645. return false;
  646. }
  647. }
  648. function cf_TXRSM01001(sSvcId, nErrorCode, sErrorMsg) {
  649. arErrorCode.push(sSvcId, nErrorCode);
  650. }
  651. function fGetMatrList()
  652. {
  653. grp_sea.ipt_deptcd.value = grp_sea.ipt_deptcd.value.getTrim();
  654. if(utlf_isNull(grp_sea.ipt_deptcd.value))
  655. {
  656. sysf_messageBox("부서코드가 선택되지 않았습니다. \n먼저 부서코드를 선택하십시요.", "E999", "");
  657. grp_sea.ipt_deptcd.setFocus();
  658. return;
  659. }
  660. var oParam = {};
  661. oParam.id = "TRRSM01001";
  662. oParam.service = "purcbaseapp.PurcBaseMngt";
  663. oParam.method = "reqGetMatrInvestigateList";
  664. oParam.inds = "req=ds_main_condition";
  665. oParam.outds = "ds_main_matrlist=matrlist";
  666. oParam.async = false;
  667. oParam.callback = "cf_TRRSM01001";
  668. tranf_submit(oParam);
  669. }
  670. function cf_TRRSM01001(sSvcId, nErrorCode, sErrorMsg)
  671. {
  672. if(nErrorCode < 0)
  673. {
  674. return;
  675. }
  676. else
  677. {
  678. ds_main_matrlist.addColumn("col1", "string");
  679. ds_main_matrlist.addColumn("col7", "string");
  680. ds_main_matrlist.addColumn("col8", "string");
  681. ds_main_matrlist.addColumn("col9", "string");
  682. ds_main_matrlist.addColumn("col10", "string");
  683. ds_main_matrlist.addColumn("col11", "string");
  684. ds_main_matrlist.addColumn("col12", "string");
  685. ds_main_matrlist.addColumn("col13", "string");
  686. ds_main_matrlist.addColumn("col14", "string");
  687. ds_main_matrlist.addColumn("col15", "string");
  688. if(grp_sea.cbx_temp.value == "Y")
  689. {
  690. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  691. {
  692. if(!utlf_isNull(ds_main_matrlist.getColumn(i, "reptdd")))
  693. {
  694. grp_sea.ipt_reptdd.value = ds_main_matrlist.getColumn(i, "reptdd");
  695. break;
  696. }
  697. }
  698. }
  699. var sFstid = "";
  700. if(ds_main_matrlist.rowcount > 0)
  701. {
  702. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  703. {
  704. if(!utlf_isNull(ds_main_matrlist.getColumn(i, "fstid")))
  705. {
  706. sFstid = ds_main_matrlist.getColumn(i, "fstid");
  707. break;
  708. }
  709. }
  710. }
  711. if (utlf_isNull(sFstid) || sFstid == sysf_getUserInfo("userid"))
  712. {
  713. //2017.07.07 본인이 아니어도 전송 가능토록 comment처리
  714. //btn_save.enable = true;
  715. }
  716. else
  717. {
  718. //2017.07.07 본인이 아니어도 전송 가능토록 comment처리
  719. //btn_save.enable = false;
  720. sysf_messageBox("본인이 등록한 자료가 아닌 경우, 조회만 가능합니다.", "E999", "");
  721. }
  722. if(grp_sea.cbx_temp.value == "Y" && sFstid == sysf_getUserInfo("userid"))
  723. {
  724. btn_saveDelete.enable = true;
  725. }
  726. else
  727. {
  728. btn_saveDelete.enable = false;
  729. }
  730. //2017.07.07 임시저장 자료 조회시에 전송 enable
  731. if(grp_sea.cbx_temp.value == "Y" ) {
  732. btn_send.enable = true;
  733. } else {
  734. btn_send.enable = false;
  735. }
  736. ds_main_matrlist.enableevent = false;
  737. ds_main_matrlist.updatecontrol = false;
  738. for(var irow = 0; irow < ds_main_matrlist.rowcount; irow++)
  739. {
  740. var flag = ds_main_matrlist.getColumn(irow, "workflag");
  741. if(utlf_isNull(flag))
  742. {
  743. ds_main_matrlist.setColumn(irow, "col1", "");
  744. misfSetReadOnlyCol(grd_matrlist, "matrcd", true, irow);
  745. ds_main_matrlist.updatecontrol = false;
  746. }
  747. else if(flag == "N")
  748. {
  749. ds_main_matrlist.setColumn(irow, "col1", "#ff0000");
  750. }
  751. else if(flag == "C")
  752. {
  753. ds_main_matrlist.setColumn(irow, "col1", "#ff0000");
  754. misfSetReadOnlyCol(grd_matrlist, "matrcd", true, irow);
  755. ds_main_matrlist.updatecontrol = false;
  756. var iFlagCol = "workflag";
  757. fSetStyleAndFlag("usge", irow, iFlagCol);
  758. fSetStyleAndFlag("useqtym", irow, iFlagCol);
  759. fSetStyleAndFlag("useqtyy", irow, iFlagCol);
  760. fSetStyleAndFlag("trethrd", irow, iFlagCol);
  761. fSetStyleAndFlag("workdcntm", irow, iFlagCol);
  762. fSetStyleAndFlag("tretmcnt", irow, iFlagCol);
  763. fSetStyleAndFlag("ctnryn", irow, iFlagCol);
  764. fSetStyleAndFlag("ctnrsignyn", irow, iFlagCol);
  765. fSetStyleAndFlag("msdsyn", irow, iFlagCol);
  766. }
  767. else if(flag == "S")
  768. {
  769. ds_main_matrlist.setColumn(irow, "col1", "#ff0000");
  770. misfSetReadOnlyCol(grd_matrlist, "matrcd", true, irow);
  771. misfSetReadOnlyCol(grd_matrlist, "usge,useqtym,useqtyy,trethrd,workdcntm,tretmcnt,ctnryn,ctnrsignyn,msdsyn", true, irow);
  772. ds_main_matrlist.updatecontrol = false;
  773. }
  774. }
  775. ds_main_matrlist.updatecontrol = true;
  776. ds_main_matrlist.enableevent = true;
  777. }
  778. }
  779. function btn_saveDelete_onclick(obj:Button, e:ClickEventInfo)
  780. {
  781. if(grp_sea.cbx_temp.value != "Y" || ds_main_matrlist.rowcount == 0)
  782. {
  783. sysf_messageBox("먼저 임시저장 자료를 조회한 후, 삭제 작업을 하십시요.", "I999", "");
  784. return;
  785. }
  786. var sFstid = "";
  787. if(ds_main_matrlist.rowcount > 0)
  788. {
  789. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  790. {
  791. if(!utlf_isNull(ds_main_matrlist.getColumn(i, "fstid")))
  792. {
  793. sFstid = ds_main_matrlist.getColumn(i, "fstid");
  794. break;
  795. }
  796. }
  797. }
  798. if(sFstid != sysf_getUserInfo("userid"))
  799. {
  800. sysf_messageBox("본인이 등록한 자료만 삭제가 가능합니다.", "E999", "");
  801. return;
  802. }
  803. if (sysf_messageBox("임시저장된 부서 조사표 자료를 삭제하시겠습니까?", "Q999") != 6) return;
  804. if(fClickSaveDeleteBtn())
  805. {
  806. fGetMatrList();
  807. }
  808. }
  809. function fClickSaveDeleteBtn()
  810. {
  811. var oParam = {};
  812. oParam.id = "TXRSM01003";
  813. oParam.service = "purcbaseapp.PurcBaseMngt";
  814. oParam.method = "reqExeSaveMatrDelete";
  815. oParam.inds = "req=ds_main_condition";
  816. oParam.async = false;
  817. oParam.callback = "cf_TXRSM01003";
  818. tranf_submit(oParam);
  819. if( arErrorCode.pop("TXRSM01003") > -1 ){
  820. return true;
  821. }else{
  822. return false;
  823. }
  824. }
  825. function cf_TXRSM01003(sSvcId, nErrorCode, sErrorMsg) {
  826. arErrorCode.push(sSvcId, nErrorCode);
  827. }
  828. function btn_send_onclick(obj:Button, e:ClickEventInfo)
  829. {
  830. if(ds_main_matrlist.rowcount == 0)
  831. {
  832. return;
  833. }
  834. if (sysf_messageBox("전송처리 이후에는 수정이 불가합니다. 전송하시겠습니까?", "Q999") != 6) return;
  835. /* 2017.07.07 부서장이 전송처리를 하게 되면서 저장 기능을 제외하고, 아래에 구현
  836. if(fClickSaveBtn())
  837. {
  838. var oParam = {};
  839. oParam.id = "TXRSM01002";
  840. oParam.service = "purcbaseapp.PurcBaseMngt";
  841. oParam.method = "reqExeSaveMatrInvestSend";
  842. oParam.inds = "req=ds_main_condition";
  843. oParam.async = false;
  844. oParam.callback = "cf_TXRSM01002";
  845. tranf_submit(oParam);
  846. grp_sea.cbx_temp.value = "Y";
  847. grp_sea.ipt_reptdd.value = "";
  848. fGetMatrList();
  849. }
  850. */
  851. var oParam = {};
  852. oParam.id = "TXRSM01002";
  853. oParam.service = "purcbaseapp.PurcBaseMngt";
  854. oParam.method = "reqExeSaveMatrInvestSend";
  855. oParam.inds = "req=ds_main_condition";
  856. oParam.async = false;
  857. oParam.callback = "cf_TXRSM01002";
  858. tranf_submit(oParam);
  859. if(arErrorCode.pop("TXRSM01002") > -1){
  860. //임시저장 자료를 조회하여 보여준다.
  861. grp_sea.cbx_temp.value = "Y";
  862. grp_sea.ipt_reptdd.value = "";//보고일자 초기화
  863. fGetMatrList();//코드 목록 재조회
  864. }
  865. }
  866. function cf_TXRSM01002(sSvcId, nErrorCode, sErrorMsg) {
  867. arErrorCode.push(sSvcId, nErrorCode);
  868. }
  869. function grp_sea_ipt_deptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  870. {
  871. if( e.keycode == 13 ){
  872. obj.updateToDataset();
  873. }
  874. }
  875. ]]></Script>
  876. </Form>
  877. </FDL>