SMRFE02000_예방점검등록.xfdl 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFE02000" position="absolute 0 0 1200 770" titletext="예방점검등록" oninit="SMRFE02000_oninit" onload="SMRFE02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="예방점검 대상장비 목록" class="tit_1" position="absolute 0 0 207 25"/>
  8. <Shape id="line15" class="line_6" position="absolute 0 47 1195 53" anchor="left top right"/>
  9. <Button id="button1" taborder="1" text="바코드" class="btn4" position="absolute 1000 26 1068 48" anchor="top right" onclick="button1_onclick"/>
  10. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1069 26 1125 48" anchor="top right" onclick="btn_save_onclick"/>
  11. <Button id="btn_init" taborder="3" text="초기화" class="btn4" position="absolute 1126 26 1194 48" anchor="top right" onclick="btn_init_onclick"/>
  12. <Button id="btn_print" taborder="4" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48"/>
  13. <Div id="grp_sea" anchor="left top right" taborder="5" class="div_SA2" position="absolute 0 51 1195 111">
  14. <Layouts>
  15. <Layout>
  16. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 4 7 90 24"/>
  17. <Button id="btn_search" taborder="10" text="조회" class="btn1" position="absolute 1130 20 1186 42" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  18. <Combo id="cmb_instcd" taborder="11" class="combo_essential" position="absolute 89 7 220 26" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
  19. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1119 8 1125 53" anchor="top right"/>
  20. <Combo id="cmb_fixtrseqmtflag" taborder="12" innerdataset="ds_init_cmb_fixtrseqmtflag" codecolumn="value" datacolumn="label" class="combo_essential" visible="false" position="absolute 1160 0 1186 19"/>
  21. <Edit id="ipt_tempmngtdeptcd" taborder="13" class="input_default" visible="false" position="absolute 530 41 614 60"/>
  22. <Button id="btn_tempmngtdeptcd" taborder="14" class="icon_search" visible="false" position="absolute 620 41 636 57" onclick="grp_sea_btn_tempmngtdeptcd_onclick"/>
  23. <Static id="cap_tempmngtdeptcd" text="관리부서 :" class="search_name" visible="false" position="absolute 440 46 526 63"/>
  24. <Edit id="ipt_tempmngtdeptnm" taborder="15" visible="false" position="absolute 640 39 780 58"/>
  25. <Edit id="opt_last_prvnchkdd_yn" taborder="16" readonly="true" visible="false" position="absolute 1130 0 1160 19"/>
  26. <Combo id="cmb_lrgcd_search" taborder="17" visible="false" position="absolute 1075 39 1105 58" onitemchanged="grp_sea_cmb_lrgcd_search_onitemchanged"/>
  27. <Static id="caption91" text="대 분 류 :" class="search_name" visible="false" position="absolute 985 45 1088 62"/>
  28. <Static id="caption94" text="중 분 류 :" class="search_name" visible="false" position="absolute 985 42 1088 59"/>
  29. <Calendar id="ipt_frlastchkdd" taborder="18" class="input_default" position="absolute 895 9 995 28" autoselect="true" autoskip="true"/>
  30. <Static id="cap_prvnchkdd" text="최종 점검일 :" class="search_name" position="absolute 785 9 902 26"/>
  31. <Static id="caption3" text="~" position="absolute 997 9 1012 26"/>
  32. <Calendar id="ipt_tolastchkdd" taborder="19" class="input_default" position="absolute 1010 9 1110 28" autoselect="true" autoskip="true"/>
  33. <CheckBox id="chk_noprcssrch" taborder="20" visible="false" position="absolute 1060 1 1085 16" truevalue="Y" falsevalue="N"/>
  34. <Static id="caption4" text="미처리 :" class="search_name" visible="false" position="absolute 990 0 1060 17"/>
  35. <Calendar id="ipt_frnextchkdd" taborder="21" class="input_default" position="absolute 895 36 995 55" autoselect="true" autoskip="true"/>
  36. <Static id="caption1" text="다음 점검일 :" class="search_name" position="absolute 785 37 902 54"/>
  37. <Static id="caption5" text="~" position="absolute 997 41 1012 58"/>
  38. <Calendar id="ipt_tonextchkdd" taborder="22" class="input_default" position="absolute 1010 36 1110 55" autoselect="true" autoskip="true"/>
  39. <Static id="caption7" text="자산코드 :" class="search_name" position="absolute 565 7 682 24"/>
  40. <Static id="caption8" text="자 산 명 :" class="search_name" position="absolute 565 36 682 53"/>
  41. <Edit id="ipt_goodcd" taborder="23" class="input_default" position="absolute 655 7 765 26" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_goodcd_onkeyup"/>
  42. <Edit id="input1" taborder="24" class="input_default" position="absolute 655 35 765 54" onkeyup="grp_sea_input1_onkeyup"/>
  43. <Button id="btn_mngtdeptcd" taborder="25" class="icon_search" position="absolute 410 7 426 23" onclick="grp_sea_btn_mngtdeptcd_onclick"/>
  44. <Edit id="ipt_mngtdeptcd" taborder="26" class="input_default" position="absolute 320 7 404 26" autoselect="true" autoskip="true"/>
  45. <Edit id="ipt_mngtdeptnm" taborder="27" readonly="true" position="absolute 430 7 550 26" autoselect="true" autoskip="true" class="output"/>
  46. <Static id="cap_mngtdeptcd" text="사용부서 :" class="search_name" position="absolute 230 7 316 24"/>
  47. <Button id="btn_installplcecd" taborder="28" class="icon_search" position="absolute 410 35 426 51" onclick="grp_sea_btn_installplcecd_onclick"/>
  48. <Static id="cap_installplcecd" text="설치장소 :" class="search_name" position="absolute 230 35 316 52"/>
  49. <Edit id="ipt_installplcenm" taborder="29" readonly="true" position="absolute 430 35 550 54" autoselect="true" autoskip="true" class="output"/>
  50. <Edit id="ipt_installplcecd" taborder="30" class="input_default" position="absolute 320 35 404 54" autoselect="true" autoskip="true"/>
  51. <Combo id="cmb_mdlcd_search" taborder="31" visible="false" position="absolute 1075 36 1105 55"/>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Static id="caption21" text="예방점검 대상장비 목록" class="tit_2" position="absolute 0 134 165 155"/>
  56. <Shape id="line16" class="line_10" position="absolute 0 149 1195 158" anchor="left top right"/>
  57. <Grid id="grd_fixasetlist" taborder="6" binddataset="ds_main_fixasetlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 155 1195 420" anchor="all" onexpanddown="grd_fixasetlist_onexpanddown">
  58. <Formats>
  59. <Format id="default">
  60. <Columns>
  61. <Column size="18"/>
  62. <Column size="35"/>
  63. <Column size="0"/>
  64. <Column size="55"/>
  65. <Column size="93"/>
  66. <Column size="83"/>
  67. <Column size="70"/>
  68. <Column size="104"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="132"/>
  72. <Column size="131"/>
  73. <Column size="75"/>
  74. <Column size="95"/>
  75. <Column size="0"/>
  76. <Column size="98"/>
  77. <Column size="0"/>
  78. <Column size="77"/>
  79. <Column size="85"/>
  80. <Column size="85"/>
  81. <Column size="100"/>
  82. <Column size="0"/>
  83. <Column size="100"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. </Columns>
  93. <Rows>
  94. <Row size="24" band="head"/>
  95. <Row size="24"/>
  96. </Rows>
  97. <Band id="head">
  98. <Cell/>
  99. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  100. <Cell col="2" text="예방"/>
  101. <Cell col="3" text="주기"/>
  102. <Cell col="4" text="최종점검일"/>
  103. <Cell col="5" text="다음점검일"/>
  104. <Cell col="6" text="관리등급"/>
  105. <Cell col="7" text="자산코드"/>
  106. <Cell col="8" text="INVENTORY여부"/>
  107. <Cell col="9" text="자산한글명"/>
  108. <Cell col="10" text="자산영문명"/>
  109. <Cell col="11" text="제조원"/>
  110. <Cell col="12" text="구입일자"/>
  111. <Cell col="13" text="규격"/>
  112. <Cell col="14" text="구코드"/>
  113. <Cell col="15" text="S/N"/>
  114. <Cell col="16" text="모델명"/>
  115. <Cell col="17" text="거래처"/>
  116. <Cell col="18" text="사용부서"/>
  117. <Cell col="19" text="관리부서"/>
  118. <Cell col="20" text="부서담당자"/>
  119. <Cell col="21" text="구입금액"/>
  120. <Cell col="22" text="설치장소"/>
  121. <Cell col="23" text="사용장소코드"/>
  122. <Cell col="24"/>
  123. <Cell col="25"/>
  124. <Cell col="26"/>
  125. <Cell col="27"/>
  126. <Cell col="28"/>
  127. <Cell col="29"/>
  128. <Cell col="30"/>
  129. </Band>
  130. <Band id="body">
  131. <Cell celltype="head"/>
  132. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:select" expr="expr:select == 'Y' ? 1 : 0"/>
  133. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:prvnchkyn"/>
  134. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:chkprid"/>
  135. <Cell col="4" displaytype="date" edittype="date" text="bind:lastchkdd" calendardisplaynulltype="nulltext"/>
  136. <Cell col="5" displaytype="date" edittype="none" text="bind:nextchkdd" calendardisplaynulltype="nulltext"/>
  137. <Cell col="6" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:mngtgrade" enable="false"/>
  138. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:fixasetcd"/>
  139. <Cell col="8" text="bind:inventoryflag"/>
  140. <Cell col="9" text="bind:goodflaghngnm"/>
  141. <Cell col="10" style="align:left middle;padding:0 0 0 3;" text="bind:goodflagengnm"/>
  142. <Cell col="11" style="align:left middle;padding:0 0 0 3;" text="bind:prodcmpynm"/>
  143. <Cell col="12" displaytype="date" text="bind:possndd" calendardisplaynulltype="nulltext"/>
  144. <Cell col="13" style="align:left middle;padding:0 0 0 3;" text="bind:goodspec"/>
  145. <Cell col="14" text="bind:oldcd"/>
  146. <Cell col="15" style="align:left middle;padding:0 0 0 3;" text="bind:mngtno"/>
  147. <Cell col="16" text="bind:goodmodel"/>
  148. <Cell col="17" style="align:left middle;padding:0 0 0 3;" text="bind:suplplcenm"/>
  149. <Cell col="18" style="align:left middle;padding:0 0 0 3;" text="bind:mngtdeptnm"/>
  150. <Cell col="19" style="align:left middle;padding:0 0 0 3;" text="bind:tempmngtdeptnm"/>
  151. <Cell col="20" displaytype="text" edittype="text" text="bind:deptchrgnm" expandshow="show"/>
  152. <Cell col="21" text="bind:possnamt" mask="#,###"/>
  153. <Cell col="22" style="align:left middle;padding:0 0 0 3;" text="bind:installplcenm"/>
  154. <Cell col="23" text="bind:installplcecd"/>
  155. <Cell col="24" text="bind:prodplce"/>
  156. <Cell col="25" text="bind:instcd"/>
  157. <Cell col="26" text="bind:maineqmt"/>
  158. <Cell col="27" text="bind:prodcmpy"/>
  159. <Cell col="28" text="bind:mngtdeptcd"/>
  160. <Cell col="29" text="bind:suplplcecd"/>
  161. <Cell col="30" text="bind:deptchrg"/>
  162. </Band>
  163. </Format>
  164. </Formats>
  165. </Grid>
  166. <Grid id="grd_rfchprvnlist" taborder="7" binddataset="ds_main_rfchprvnlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 472 1195 762" anchor="left right bottom" oncelldblclick="grd_rfchprvnlist_oncelldblclick">
  167. <Formats>
  168. <Format id="default">
  169. <Columns>
  170. <Column size="21"/>
  171. <Column size="88"/>
  172. <Column size="75"/>
  173. <Column size="75"/>
  174. <Column size="45"/>
  175. <Column size="100"/>
  176. <Column size="120"/>
  177. <Column size="140"/>
  178. <Column size="110"/>
  179. <Column size="100"/>
  180. <Column size="0"/>
  181. <Column size="100"/>
  182. <Column size="100"/>
  183. <Column size="100"/>
  184. <Column size="100"/>
  185. <Column size="0"/>
  186. <Column size="0"/>
  187. <Column size="0"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. <Column size="0"/>
  191. <Column size="0"/>
  192. <Column size="0"/>
  193. <Column size="0"/>
  194. <Column size="0"/>
  195. <Column size="0"/>
  196. <Column size="0"/>
  197. <Column size="0"/>
  198. <Column size="0"/>
  199. <Column size="0"/>
  200. <Column size="0"/>
  201. <Column size="0"/>
  202. <Column size="0"/>
  203. <Column size="0"/>
  204. <Column size="0"/>
  205. <Column size="0"/>
  206. <Column size="0"/>
  207. <Column size="0"/>
  208. <Column size="0"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. </Columns>
  212. <Rows>
  213. <Row size="24" band="head"/>
  214. <Row size="24"/>
  215. </Rows>
  216. <Band id="head">
  217. <Cell/>
  218. <Cell col="1" text="점검여부"/>
  219. <Cell col="2" text="계획일자"/>
  220. <Cell col="3" text="점검 완료일"/>
  221. <Cell col="4" text=" 번호"/>
  222. <Cell col="5" text="자산코드"/>
  223. <Cell col="6" text="자산한글명"/>
  224. <Cell col="7" text="자산영문명"/>
  225. <Cell col="8" text="규격"/>
  226. <Cell col="9" text="S/N"/>
  227. <Cell col="10" text="모델"/>
  228. <Cell col="11" text="사용부서"/>
  229. <Cell col="12" text="관리부서"/>
  230. <Cell col="13" text="설치장소"/>
  231. <Cell col="14" text="담당자"/>
  232. <Cell col="15"/>
  233. <Cell col="16"/>
  234. <Cell col="17"/>
  235. <Cell col="18"/>
  236. <Cell col="19"/>
  237. <Cell col="20"/>
  238. <Cell col="21"/>
  239. <Cell col="22"/>
  240. <Cell col="23"/>
  241. <Cell col="24"/>
  242. <Cell col="25"/>
  243. <Cell col="26"/>
  244. <Cell col="27"/>
  245. <Cell col="28"/>
  246. <Cell col="29"/>
  247. <Cell col="30"/>
  248. <Cell col="31"/>
  249. <Cell col="32"/>
  250. <Cell col="33"/>
  251. <Cell col="34"/>
  252. <Cell col="35"/>
  253. <Cell col="36"/>
  254. <Cell col="37"/>
  255. <Cell col="38"/>
  256. <Cell col="39"/>
  257. <Cell col="40"/>
  258. </Band>
  259. <Band id="body">
  260. <Cell celltype="head"/>
  261. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:prvnchkprcsstat" combodataset="ds_init_prvnchkprcsstat" combocodecol="value" combodatacol="label" enable="false"/>
  262. <Cell col="2" displaytype="date" text="bind:prvnchkdd" calendardisplaynulltype="nulltext"/>
  263. <Cell col="3" displaytype="date" text="bind:todd" calendardisplaynulltype="nulltext"/>
  264. <Cell col="4" text="bind:acptno"/>
  265. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:fixasetcd"/>
  266. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:goodflaghngnm"/>
  267. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:goodflagengnm"/>
  268. <Cell col="8" style="align:left middle;padding:0 0 0 3;" text="bind:goodspec"/>
  269. <Cell col="9" style="align:left middle;padding:0 0 0 3;" text="bind:mngtno"/>
  270. <Cell col="10" text="bind:goodmodel"/>
  271. <Cell col="11" style="align:left middle;padding:0 0 0 3;" text="bind:mngtdeptnm"/>
  272. <Cell col="12" style="align:left middle;padding:0 0 0 3;" text="bind:tempmngtdeptnm"/>
  273. <Cell col="13" style="align:left middle;padding:0 0 0 3;" text="bind:installplcenm"/>
  274. <Cell col="14" text="bind:acptpsnnm"/>
  275. <Cell col="15" text="bind:medelectacptyn"/>
  276. <Cell col="16" text="bind:medelectacptpsnid"/>
  277. <Cell col="17" text="bind:usedeprtmangrcnfm"/>
  278. <Cell col="18" text="bind:rpircvrtyn"/>
  279. <Cell col="19" text="bind:reqdd"/>
  280. <Cell col="20" text="bind:reqno"/>
  281. <Cell col="21" text="bind:prvnchkprcsstat"/>
  282. <Cell col="22" text="bind:sanctyn"/>
  283. <Cell col="23" text="bind:sanctdd"/>
  284. <Cell col="24" text="bind:instcd"/>
  285. <Cell col="25" text="bind:vischk"/>
  286. <Cell col="26" text="bind:viscmt"/>
  287. <Cell col="27" text="bind:pwrchk"/>
  288. <Cell col="28" text="bind:pwrcmt"/>
  289. <Cell col="29" text="bind:syschk"/>
  290. <Cell col="30" text="bind:syscmt"/>
  291. <Cell col="31" text="bind:itslfchkyn"/>
  292. <Cell col="32" text="bind:acsrsuseyn"/>
  293. <Cell col="33" text="bind:todd"/>
  294. <Cell col="34" text="bind:chkpsnid"/>
  295. <Cell col="35" text="bind:acptpsnid"/>
  296. <Cell col="36" text="bind:chkpsnnm"/>
  297. <Cell col="37" text="bind:bugtyy"/>
  298. <Cell col="38" text="bind:bugtcd"/>
  299. <Cell col="39" text="bind:stdysubjno"/>
  300. <Cell col="40" text="bind:tempmngtdeptcd"/>
  301. </Band>
  302. </Format>
  303. </Formats>
  304. </Grid>
  305. <Static id="caption2" text="예방점검목록" class="tit_2" position="absolute 0 451 103 472" anchor="left bottom"/>
  306. <Shape id="line1" class="line_10" position="absolute 0 466 1195 475" anchor="left right bottom"/>
  307. <Button id="btn_delete" taborder="8" text="행삭제" class="btn2" position="absolute 1141 448 1194 467" anchor="right bottom" onclick="btn_delete_onclick"/>
  308. <Calendar id="ipt_prvnchktodd" taborder="9" class="input_essential" position="absolute 303 448 403 467" autoselect="true" autoskip="true" anchor="left bottom" onchanged="ipt_prvnchktodd_onchanged"/>
  309. <Calendar id="ipt_prvnchkfrdd" taborder="10" class="input_essential" position="absolute 190 448 290 467" autoselect="true" autoskip="true" anchor="left bottom" onchanged="ipt_prvnchkfrdd_onchanged"/>
  310. <Static id="cap_prvnchkfrdd" text="계획일자:" position="absolute 127 446 187 469" style="font:Dotum,9,bold;" anchor="left bottom"/>
  311. <Static id="caption23" text="~" position="absolute 290 450 305 470" anchor="left bottom"/>
  312. <Button id="btn_goodsave" taborder="11" text="품목저장" class="btn2" position="absolute 1130 131 1194 150" anchor="top right" onclick="btn_goodsave_onclick"/>
  313. <Button id="btn_reglpridchk" taborder="12" text="정기예방" class="btn2" visible="false" position="absolute 979 131 1043 150" anchor="top right" onclick="btn_reglpridchk_onclick"/>
  314. <Button id="btn_search2" taborder="13" text="조회" class="btn2" position="absolute 1091 448 1133 467" anchor="right bottom" onclick="btn_search2_onclick"/>
  315. <Button id="btn_excel_RFCH" taborder="14" text="Excel 저장" class="btn5" position="absolute 1051 131 1126 150" anchor="top right" onclick="btn_excel_RFCH_onclick"/>
  316. <Button id="button2" taborder="15" text="Excel 저장" class="btn5" position="absolute 1009 448 1084 467" anchor="right bottom" onclick="button2_onclick"/>
  317. <Div id="grp_barcode" taborder="16" style="background:#ffffccff;border:1 solid black ;" visible="false" position="absolute 89 48 669 103">
  318. <Layouts>
  319. <Layout>
  320. <Edit id="ipt_barcode" taborder="1" autoselect="true" autoskip="true" class="input_input" position="absolute 180 10 550 45" style="font:Dotum,20;" anchor="default"/>
  321. <Static id="caption9" text="바코드 :" position="absolute 35 10 170 45" style="font:Dotum,26,bold;" anchor="default"/>
  322. </Layout>
  323. </Layouts>
  324. </Div>
  325. </Layout>
  326. </Layouts>
  327. <Objects>
  328. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  329. <ColumnInfo>
  330. <Column id="instcd" type="STRING" size="256"/>
  331. <Column id="fixtrseqmtflag" type="STRING" size="256"/>
  332. <Column id="goodflag" type="STRING" size="256"/>
  333. <Column id="prvnchkdd" type="STRING" size="256"/>
  334. <Column id="tempmngtdeptcd" type="STRING" size="256"/>
  335. <Column id="tempmngtdeptnm" type="STRING" size="256"/>
  336. <Column id="prvnchkyn" type="STRING" size="256"/>
  337. <Column id="prvnchkfrdd" type="STRING" size="256"/>
  338. <Column id="prvnchktodd" type="STRING" size="256"/>
  339. <Column id="last_prvnchkdd_yn" type="STRING" size="256"/>
  340. <Column id="inventoryflag" type="STRING" size="256"/>
  341. <Column id="lrgcd" type="STRING" size="256"/>
  342. <Column id="mdlcd" type="STRING" size="256"/>
  343. <Column id="frlastchkdd" type="STRING" size="256"/>
  344. <Column id="tolastchkdd" type="STRING" size="256"/>
  345. <Column id="noprcssrch" type="STRING" size="256"/>
  346. <Column id="scrnid" type="STRING" size="256"/>
  347. <Column id="frnextchkdd" type="STRING" size="256"/>
  348. <Column id="tonextchkdd" type="STRING" size="256"/>
  349. <Column id="fixasetcd" type="STRING" size="256"/>
  350. <Column id="goodflagnm" type="STRING" size="256"/>
  351. <Column id="mngtdeptcd" type="STRING" size="256"/>
  352. <Column id="mngtdeptnm" type="STRING" size="256"/>
  353. <Column id="installplcecd" type="STRING" size="256"/>
  354. <Column id="installplcenm" type="STRING" size="256"/>
  355. </ColumnInfo>
  356. <Rows>
  357. <Row>
  358. <Col id="instcd"/>
  359. <Col id="fixtrseqmtflag"/>
  360. <Col id="goodflag"/>
  361. <Col id="prvnchkdd"/>
  362. <Col id="tempmngtdeptcd"/>
  363. <Col id="tempmngtdeptnm"/>
  364. <Col id="prvnchkyn"/>
  365. <Col id="prvnchkfrdd"/>
  366. <Col id="prvnchktodd"/>
  367. <Col id="last_prvnchkdd_yn"/>
  368. <Col id="inventoryflag"/>
  369. <Col id="lrgcd"/>
  370. <Col id="mdlcd"/>
  371. <Col id="frlastchkdd"/>
  372. <Col id="tolastchkdd"/>
  373. <Col id="noprcssrch"/>
  374. <Col id="scrnid"/>
  375. <Col id="frnextchkdd"/>
  376. <Col id="tonextchkdd"/>
  377. <Col id="fixasetcd"/>
  378. <Col id="goodflagnm"/>
  379. <Col id="mngtdeptcd"/>
  380. <Col id="mngtdeptnm"/>
  381. <Col id="installplcecd"/>
  382. <Col id="installplcenm"/>
  383. </Row>
  384. </Rows>
  385. </Dataset>
  386. <Dataset id="ds_main_fixasetlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_fixasetlist_oncolumnchanged">
  387. <ColumnInfo>
  388. <Column id="select" type="STRING" size="256" sumtext=" 예방등록에서필요 "/>
  389. <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
  390. <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
  391. <Column id="fixasetcd_search" type="STRING" size="256" sumtext=" 자산명 "/>
  392. <Column id="goodflaghngnm" type="STRING" size="256" sumtext=" 자산명 "/>
  393. <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 자산명 "/>
  394. <Column id="maineqmt" type="STRING" size="256" sumtext=" 메인장비 "/>
  395. <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
  396. <Column id="goodspec" type="STRING" size="256" sumtext=" 규격 "/>
  397. <Column id="installplcecd" type="STRING" size="256" sumtext=" 설치장소코드 "/>
  398. <Column id="installplcenm" type="STRING" size="256" sumtext=" 설치장소명 "/>
  399. <Column id="suplplcecd" type="STRING" size="256" sumtext=" 공급처코드 "/>
  400. <Column id="suplplcenm" type="STRING" size="256" sumtext=" 공급처명 "/>
  401. <Column id="prodplce" type="STRING" size="256" sumtext=" 제조국 "/>
  402. <Column id="prodcmpy" type="STRING" size="256" sumtext=" 제조회사코드 "/>
  403. <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조회사명 "/>
  404. <Column id="possndd" type="STRING" size="256" sumtext=" 취득일자 "/>
  405. <Column id="possnamt" type="STRING" size="256" sumtext=" 취득금액 "/>
  406. <Column id="mngtdeptcd" type="STRING" size="256" sumtext=" 관리부서코드 "/>
  407. <Column id="mngtdeptnm" type="STRING" size="256" sumtext=" 관리부서명 "/>
  408. <Column id="prvnchkyn" type="STRING" size="256" sumtext=" 관리부서명 "/>
  409. <Column id="rfehemht_cnt" type="STRING" size="256" sumtext=" 수리내역여부 "/>
  410. <Column id="last_prvnchkdd" type="STRING" size="256" sumtext=" 최종예방일자 "/>
  411. <Column id="chrgpsnid" type="STRING" size="256" sumtext=" 담당자 "/>
  412. <Column id="chrgpsnnm" type="STRING" size="256" sumtext=" 담당자명 "/>
  413. <Column id="oldcd" type="STRING" size="256" sumtext=" 구코드 "/>
  414. <Column id="mngtno" type="STRING" size="256" sumtext=" S/N "/>
  415. <Column id="tempmngtdeptcd" type="STRING" size="256" sumtext=" 관리부서코드(의공) "/>
  416. <Column id="tempmngtdeptnm" type="STRING" size="256" sumtext=" 관리부서명(의공) "/>
  417. <Column id="inventoryflag" type="STRING" size="256" sumtext=" inventory여부 "/>
  418. <Column id="chkprid" type="STRING" size="256" sumtext=" 주기 "/>
  419. <Column id="lastchkdd" type="STRING" size="256" sumtext=" 최종점검일 "/>
  420. <Column id="nextchkdd" type="STRING" size="256" sumtext=" 다음점검일 "/>
  421. <Column id="deptchrg" type="STRING" size="256" sumtext=" 부서담당자 "/>
  422. <Column id="deptchrgnm" type="STRING" size="256" sumtext=" 부서담당자 "/>
  423. <Column id="mngtgrade" type="STRING" size="256" sumtext=" 관리등급 "/>
  424. </ColumnInfo>
  425. </Dataset>
  426. <Dataset id="ds_main_rfchprvnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  427. <ColumnInfo>
  428. <Column id="select" type="STRING" size="256" sumtext="선택"/>
  429. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  430. <Column id="fixasetcd" type="STRING" size="256" sumtext="고정자산코드 물품코드+구입년도+일련번호"/>
  431. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산명칭(한글)"/>
  432. <Column id="goodflagengnm" type="STRING" size="256" sumtext="자산명칭(영어)"/>
  433. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  434. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  435. <Column id="prvnchkdd" type="STRING" size="256" sumtext="예방점검일자"/>
  436. <Column id="acptno" type="STRING" size="256" sumtext="접수번호"/>
  437. <Column id="vischk" type="STRING" size="256" sumtext="visualcheck"/>
  438. <Column id="viscmt" type="STRING" size="256" sumtext="viscmt"/>
  439. <Column id="pwrchk" type="STRING" size="256" sumtext="powercheck"/>
  440. <Column id="pwrcmt" type="STRING" size="256" sumtext="pwrcmt"/>
  441. <Column id="syschk" type="STRING" size="256" sumtext="systemcheck"/>
  442. <Column id="syscmt" type="STRING" size="256" sumtext="syscmt"/>
  443. <Column id="clnchk" type="STRING" size="256" sumtext="clncheck"/>
  444. <Column id="clncmt" type="STRING" size="256" sumtext="clncmt"/>
  445. <Column id="itslfchkyn" type="STRING" size="256" sumtext="자체점검여부"/>
  446. <Column id="acsrsuseyn" type="STRING" size="256" sumtext="부품활용여부"/>
  447. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  448. <Column id="chkpsnid" type="STRING" size="256" sumtext="점검자id"/>
  449. <Column id="chkpsnnm" type="STRING" size="256" sumtext="점검자명"/>
  450. <Column id="acptpsnid" type="STRING" size="256" sumtext="담당자id"/>
  451. <Column id="acptpsnnm" type="STRING" size="256" sumtext="담당자명"/>
  452. <Column id="usedeprtmangrcnfm" type="STRING" size="256" sumtext="사용부서장확인"/>
  453. <Column id="rpircvrtyn" type="STRING" size="256" sumtext="수리전환여부"/>
  454. <Column id="prerpircvrtyn" type="STRING" size="256" sumtext="old수리전환여부"/>
  455. <Column id="reqdd" type="STRING" size="256" sumtext="수리접수일자"/>
  456. <Column id="reqno" type="STRING" size="256" sumtext="수리접수번호"/>
  457. <Column id="prvnchkprcsstat" type="STRING" size="256" sumtext="(이전)예방점검진행상태"/>
  458. <Column id="prvnchkprcsstat" type="STRING" size="256" sumtext="예방점검진행상태"/>
  459. <Column id="sanctyn" type="STRING" size="256" sumtext="결재여부"/>
  460. <Column id="sanctdd" type="STRING" size="256" sumtext="결재일자"/>
  461. <Column id="installplcenm" type="STRING" size="256" sumtext="설치장소"/>
  462. <Column id="suplplcenm" type="STRING" size="256" sumtext="공급처명"/>
  463. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사"/>
  464. <Column id="mngtno" type="STRING" size="256" sumtext="SERIALNO"/>
  465. <Column id="mngtdeptcd" type="STRING" size="256" sumtext="사용부서"/>
  466. <Column id="mngtdeptnm" type="STRING" size="256" sumtext="사용부서명"/>
  467. <Column id="goodflag" type="STRING" size="256" sumtext="자산구분"/>
  468. <Column id="bugtyy" type="STRING" size="256" sumtext="예산년도"/>
  469. <Column id="bugtcd" type="STRING" size="256" sumtext="예산계정"/>
  470. <Column id="stdysubjno" type="STRING" size="256" sumtext="연구과제"/>
  471. <Column id="stdysubjnm" type="STRING" size="256" sumtext="연구과제명"/>
  472. <Column id="tempmngtdeptcd" type="STRING" size="256" sumtext="관리부서(의공)"/>
  473. <Column id="tempmngtdeptnm" type="STRING" size="256" sumtext="관리부서명(의공)"/>
  474. <Column id="bizscrnid" type="STRING" size="256" sumtext="화면id"/>
  475. <Column id="attfilenm" type="STRING" size="256" sumtext="파일명"/>
  476. <Column id="attfilepathnm" type="STRING" size="256" sumtext="첨부파일경로명"/>
  477. <Column id="deptsanctyn" type="STRING" size="256" sumtext="부서결재여부"/>
  478. <Column id="deptsanctdd" type="STRING" size="256" sumtext="부서결재일자"/>
  479. <Column id="flag" type="STRING" size="256" sumtext="구분"/>
  480. <Column id="mngtgrade" type="STRING" size="256" sumtext="관리등급"/>
  481. <Column id="r1" type="STRING" size="256" sumtext="1차점검일자"/>
  482. <Column id="r2" type="STRING" size="256" sumtext="2차점검일자"/>
  483. <Column id="r3" type="STRING" size="256" sumtext="3차점검일자 "/>
  484. <Column id="chkprid" type="STRING" size="256" sumtext="예방점검주기 "/>
  485. </ColumnInfo>
  486. </Dataset>
  487. <Dataset id="ds_init_prvnchkprcsstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  488. <ColumnInfo>
  489. <Column id="label" type="STRING" size="256"/>
  490. <Column id="value" type="STRING" size="256"/>
  491. </ColumnInfo>
  492. <Rows>
  493. <Row>
  494. <Col id="label">점검중</Col>
  495. <Col id="value">1</Col>
  496. </Row>
  497. <Row>
  498. <Col id="label">점검완료</Col>
  499. <Col id="value">2</Col>
  500. </Row>
  501. <Row>
  502. <Col id="label">내부결제</Col>
  503. <Col id="value">3</Col>
  504. </Row>
  505. </Rows>
  506. </Dataset>
  507. <Dataset id="ds_barcode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  508. <ColumnInfo>
  509. <Column id="code" type="STRING" size="256"/>
  510. </ColumnInfo>
  511. <Rows>
  512. <Row/>
  513. </Rows>
  514. </Dataset>
  515. </Objects>
  516. <Bind>
  517. <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  518. <BindItem id="item1" compid="grp_sea.ipt_mngtdeptcd" propid="value" datasetid="ds_send" columnid="mngtdeptcd"/>
  519. <BindItem id="item2" compid="grp_sea.ipt_mngtdeptnm" propid="value" datasetid="ds_send" columnid="mngtdeptnm"/>
  520. <BindItem id="item3" compid="grp_sea.ipt_installplcecd" propid="value" datasetid="ds_send" columnid="installplcecd"/>
  521. <BindItem id="item4" compid="grp_sea.ipt_installplcenm" propid="value" datasetid="ds_send" columnid="installplcenm"/>
  522. <BindItem id="item5" compid="grp_sea.input1" propid="value" datasetid="ds_send" columnid="goodflagnm"/>
  523. <BindItem id="item6" compid="grp_sea.ipt_tempmngtdeptnm" propid="value" datasetid="ds_send" columnid="tempmngtdeptnm"/>
  524. <BindItem id="item7" compid="grp_sea.ipt_tempmngtdeptcd" propid="value" datasetid="ds_send" columnid="tempmngtdeptcd"/>
  525. <BindItem id="item8" compid="grp_sea.ipt_frlastchkdd" propid="value" datasetid="ds_send" columnid="frlastchkdd"/>
  526. <BindItem id="item9" compid="grp_sea.ipt_tolastchkdd" propid="value" datasetid="ds_send" columnid="tolastchkdd"/>
  527. <BindItem id="item10" compid="grp_sea.chk_noprcssrch" propid="value" datasetid="ds_send" columnid="noprcssrch"/>
  528. <BindItem id="item11" compid="grp_sea.cmb_mdlcd_search" propid="value" datasetid="ds_send" columnid="mdlcd"/>
  529. <BindItem id="item12" compid="grp_sea.cmb_fixtrseqmtflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
  530. <BindItem id="item13" compid="grp_sea.opt_last_prvnchkdd_yn" propid="value" datasetid="ds_send" columnid="last_prvnchkdd_yn"/>
  531. <BindItem id="item14" compid="grp_sea.cmb_lrgcd_search" propid="value" datasetid="ds_send" columnid="lrgcd"/>
  532. <BindItem id="item15" compid="ipt_prvnchkfrdd" propid="value" datasetid="ds_send" columnid="prvnchkfrdd"/>
  533. <BindItem id="item16" compid="ipt_prvnchktodd" propid="value" datasetid="ds_send" columnid="prvnchktodd"/>
  534. <BindItem id="item17" compid="grp_barcode.ipt_barcode" propid="value" datasetid="ds_barcode" columnid="code"/>
  535. <BindItem id="item18" compid="grp_sea.ipt_goodcd" propid="value" datasetid="ds_send" columnid="fixasetcd"/>
  536. <BindItem id="item19" compid="grp_sea.ipt_tonextchkdd" propid="value" datasetid="ds_send" columnid="tonextchkdd"/>
  537. <BindItem id="item20" compid="grp_sea.ipt_frnextchkdd" propid="value" datasetid="ds_send" columnid="frnextchkdd"/>
  538. </Bind>
  539. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  540. * System Name :
  541. * Job Name :
  542. * Creator :
  543. * Make Date : 2017-06-19
  544. * Description :
  545. *---------------------------------------------------------------------------------------
  546. * Modify Date Modifier Modify Description
  547. *---------------------------------------------------------------------------------------
  548. * 2017-06-19 Live Converter TF->XP
  549. *
  550. *---------------------------------------------------------------------------------------
  551. ****************************************************************************************/
  552. include "com_commonxp::comm_main.xjs";
  553. include "mis_miscommonxp::MIS.xjs";
  554. include "mis_miscommonxp::RSZ001.xjs";
  555. function SMRFE02000_oninit(obj:Form, e:InitEventInfo)
  556. {
  557. frmf_initForm(obj);
  558. }
  559. function SMRFE02000_onload(obj:Form, e:LoadEventInfo)
  560. {
  561. grdf_initGrid(grd_fixasetlist);
  562. grdf_setRowTypeIcon(grd_fixasetlist, 0);
  563. grdf_initGrid(grd_rfchprvnlist);
  564. grdf_setRowTypeIcon(grd_rfchprvnlist, 0);
  565. fInitialize();
  566. }
  567. function fInitialize()
  568. {
  569. ds_send.clearData()
  570. ds_send.addRow();
  571. misfComboComCdListMulti("C0048,030R0033","grp_sea.cmb_instcd,grd_fixasetlist.mngtgrade");
  572. grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  573. grd_fixasetlist.setCellProperty("Head", 1, "text", 0);
  574. var acptdate = utlf_getCurrentDate().toDate("YYYYMMDD");
  575. ipt_prvnchkfrdd.value = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-15, "D").getDateFormat("YYYYMMDD");
  576. ipt_prvnchktodd.value = utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(15, "D").getDateFormat("YYYYMMDD");
  577. grp_sea.opt_last_prvnchkdd_yn.value = "Y";
  578. var vfixtrseqmtflag = grp_sea.cmb_fixtrseqmtflag.value
  579. ds_send.setColumn(0, "fixtrseqmtflag", vfixtrseqmtflag);
  580. grp_sea.chk_noprcssrch.value = "N";
  581. grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  582. frmf_inputEnterKey("grp_sea.cmb_instcd", "onitemchanged", new ItemChangeEventInfo );
  583. }
  584. function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  585. {
  586. misfGridInit(grd_fixasetlist);
  587. misfGridInit(grd_rfchprvnlist);
  588. grp_sea.cmb_mdlcd_search.value = "";
  589. }
  590. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  591. {
  592. if(e.columnid == "mngtdeptcd")
  593. {
  594. grp_sea.ipt_mngtdeptcd.value = e.newvalue;
  595. grp_sea.ipt_mngtdeptcd.setFocus();
  596. misfSearchDept(grp_sea.ipt_mngtdeptnm);
  597. }
  598. if(e.columnid == "installplcecd")
  599. {
  600. grp_sea.ipt_installplcecd.value = e.newvalue;
  601. grp_sea.ipt_installplcecd.setFocus();
  602. misfSearchDept(grp_sea.ipt_installplcenm);
  603. }
  604. if(e.columnid == "tempmngtdeptcd")
  605. {
  606. grp_sea.ipt_tempmngtdeptcd.value = e.newvalue;
  607. grp_sea.ipt_tempmngtdeptcd.setFocus();
  608. if(String(e.newvalue).length == 0)
  609. {
  610. grp_sea.ipt_tempmngtdeptnm.value = "";
  611. }
  612. else
  613. {
  614. misfValidationCheck("02", "", "tempmngtdeptcd,tempmngtdeptnm" );
  615. }
  616. }
  617. }
  618. function grp_sea_btn_mngtdeptcd_onclick(obj:Button, e:ClickEventInfo)
  619. {
  620. misfOpenPopUpList("02", grp_sea.ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  621. }
  622. function grp_sea_btn_installplcecd_onclick(obj:Button, e:ClickEventInfo)
  623. {
  624. misfOpenPopUpList("02", grp_sea.ipt_installplcecd,"","installplcecd,installplcenm");
  625. }
  626. function grp_sea_ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
  627. {
  628. if(e.keycode == 13)
  629. {
  630. obj.updateToDataset();
  631. grp_sea.btn_search.click();
  632. }
  633. }
  634. function grp_sea_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  635. {
  636. if(e.keycode == 13)
  637. {
  638. obj.updateToDataset();
  639. grp_sea.btn_search.click();
  640. }
  641. }
  642. function grp_sea_cmb_lrgcd_search_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  643. {
  644. rszfLMSComboList("E", obj.value, "", "grp_sea.cmb_mdlcd_search", "", "M", "Y", "Y");
  645. grp_sea.cmb_mdlcd_search.value="";
  646. }
  647. function grp_sea_btn_tempmngtdeptcd_onclick(obj:Button, e:ClickEventInfo)
  648. {
  649. misfOpenPopUpList("02", grp_sea.ipt_tempmngtdeptcd,"","tempmngtdeptcd,tempmngtdeptnm");
  650. }
  651. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  652. {
  653. arrCompId = new Array("grp_sea.cmb_instcd","ipt_prvnchkfrdd","ipt_prvnchktodd");
  654. if(!frmf_isRequiredControls(arrCompId)) return;
  655. misfGridInit(grd_fixasetlist);
  656. misfGridInit(grd_rfchprvnlist);
  657. ds_send.setColumn(0, "scrnid", "SMRFE02000");
  658. var oParam = {};
  659. oParam.id = "TRRFC01401";
  660. oParam.service = "purcbaseapp.PurcBaseMngt";
  661. oParam.method = "reqGetFixAsetListByRepair";
  662. oParam.inds = "req=ds_send";
  663. oParam.outds = "ds_main_fixasetlist=fixasetlist";
  664. oParam.async = false;
  665. //oParam.callback = "cf_TRRFC01401";
  666. tranf_submit(oParam);
  667. ds_main_fixasetlist.enableevent = false;
  668. ds_main_fixasetlist.updatecontrol = false;
  669. dsf_setDefaultVal(ds_main_fixasetlist, "select:N");
  670. ds_main_fixasetlist.updatecontrol = true;
  671. ds_main_fixasetlist.enableevent = true;
  672. var oParam = {};
  673. oParam.id = "TRRFE02001";
  674. oParam.service = "reqapp.ReqMngt";
  675. oParam.method = "reqGetRfchprvnList";
  676. oParam.inds = "req=ds_send";
  677. oParam.outds = "ds_main_rfchprvnlist=rfchprvnlist";
  678. oParam.async = false;
  679. //oParam.callback = "cf_TRRFE02001";
  680. tranf_submit(oParam);
  681. }
  682. function ds_main_fixasetlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  683. {
  684. if(e.columnid == "select")
  685. {
  686. obj.setColumn(e.row, "select", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  687. }
  688. }
  689. function grd_fixasetlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  690. {
  691. misfOpenPopUpList("01", grd_fixasetlist, "", "deptchrg,deptchrgnm");
  692. }
  693. function btn_reglpridchk_onclick(obj:Button, e:ClickEventInfo)
  694. {
  695. var oParam = {};
  696. oParam.id = "TXRFE02003";
  697. oParam.service = "reqapp.ReqMngt";
  698. oParam.method = "reqExeSaveReglPridChk";
  699. oParam.inds = "req=ds_send";
  700. oParam.outds = "";
  701. oParam.async = false;
  702. oParam.callback = "cf_TXRFE02003";
  703. tranf_submit(oParam);
  704. }
  705. function cf_TXRFE02003(sSvcId, nErrorCode, sErrorMsg)
  706. {
  707. if(nErrorCode < 0) return;
  708. else
  709. {
  710. var oParam = {};
  711. oParam.id = "TRRFE02001";
  712. oParam.service = "reqapp.ReqMngt";
  713. oParam.method = "reqGetRfchprvnList";
  714. oParam.inds = "req=ds_send";
  715. oParam.outds = "ds_main_rfchprvnlist=rfchprvnlist";
  716. oParam.async = false;
  717. //oParam.callback = "cf_TRRFE02001";
  718. tranf_submit(oParam);
  719. }
  720. }
  721. function btn_excel_RFCH_onclick(obj:Button, e:ClickEventInfo)
  722. {
  723. grdf_exportExcel(grd_fixasetlist, "예방점검 대상장비 목록", "예방점검 대상장비 목록", "true", "", "");
  724. }
  725. function btn_goodsave_onclick(obj:Button, e:ClickEventInfo)
  726. {
  727. if(grdf_getGridUpdateData(grd_fixasetlist).rowcount == 0)
  728. {
  729. sysf_messageBox("변경된 데이터가", "I004");
  730. return;
  731. }
  732. var oParam = {};
  733. oParam.id = "TXRFE02002";
  734. oParam.service = "reqapp.ReqMngt";
  735. oParam.method = "reqExePrvnChkynToRfcmfacd";
  736. oParam.inds = "req=ds_main_fixasetlist:u";
  737. oParam.outds = "";
  738. oParam.async = false;
  739. oParam.callback = "cf_TXRFE02002";
  740. tranf_submit(oParam);
  741. }
  742. function cf_TXRFE02002(sSvcId, nErrorCode, sErrorMsg)
  743. {
  744. if(nErrorCode < 0) return;
  745. else
  746. {
  747. grp_sea.btn_search.click();
  748. }
  749. }
  750. function button2_onclick(obj:Button, e:ClickEventInfo)
  751. {
  752. grdf_exportExcel(grd_rfchprvnlist, "예방점검목록", "예방점검목록", "true", "", "");
  753. }
  754. function btn_search2_onclick(obj:Button, e:ClickEventInfo)
  755. {
  756. misfGridInit(grd_rfchprvnlist);
  757. var oParam = {};
  758. oParam.id = "TRRFE02001";
  759. oParam.service = "reqapp.ReqMngt";
  760. oParam.method = "reqGetRfchprvnList";
  761. oParam.inds = "req=ds_send";
  762. oParam.outds = "ds_main_rfchprvnlist=rfchprvnlist";
  763. oParam.async = false;
  764. //oParam.callback = "cf_TRRFE02001";
  765. tranf_submit(oParam);
  766. }
  767. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  768. {
  769. misfGridIUD(grd_rfchprvnlist, "D");
  770. }
  771. function grd_rfchprvnlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  772. {
  773. frmf_setParameter("paraminstcd" , ds_main_rfchprvnlist.getColumn(ds_main_rfchprvnlist.rowposition, "instcd"));
  774. frmf_setParameter("paramtempmngtdeptcd" , ds_main_rfchprvnlist.getColumn(ds_main_rfchprvnlist.rowposition, "tempmngtdeptcd"));
  775. frmf_setParameter("paramtempmngtdeptnm" , ds_main_rfchprvnlist.getColumn(ds_main_rfchprvnlist.rowposition, "tempmngtdeptnm"));
  776. frmf_setParameter("paramprvnchkdd" , ds_main_rfchprvnlist.getColumn(ds_main_rfchprvnlist.rowposition, "prvnchkdd"));
  777. frmf_setParameter("paramprvnchkprcsstat" , ds_main_rfchprvnlist.getColumn(ds_main_rfchprvnlist.rowposition, "prvnchkprcsstat"));
  778. frmf_modal("SMRFE02100", "SMRFE02100", "", "", "", "", "", "", "", "", "", "", "M");
  779. }
  780. function button1_onclick(obj:Button, e:ClickEventInfo)
  781. {
  782. if(grp_barcode.visible == false)
  783. {
  784. ds_send.clearData();
  785. ds_send.addRow();
  786. misfGridInit(grd_fixasetlist);
  787. misfGridInit(grd_rfchprvnlist);
  788. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  789. ds_send.setColumn(0, "prvnchkfrdd", utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-15, "D").getDateFormat("YYYYMMDD"))
  790. ds_send.setColumn(0, "prvnchktodd", utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(15, "D").getDateFormat("YYYYMMDD"))
  791. ds_send.setColumn(0, "last_prvnchkdd_yn", "Y");
  792. grp_barcode.visible = true;
  793. grp_sea.enable = false;
  794. btn_save.enable = false;
  795. btn_init.enable = false;
  796. grp_barcode.ipt_barcode.setFocus();
  797. }
  798. else
  799. {
  800. grp_barcode.visible = false;
  801. ds_send.setColumn(0, "fixasetcd", "");
  802. ds_barcode.setColumn(0, "code", "");
  803. grp_sea.enable = true;
  804. btn_save.enable = true;
  805. btn_init.enable = true;
  806. }
  807. }
  808. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  809. {
  810. fInsertPrvn();
  811. if(grdf_getGridUpdateData(grd_rfchprvnlist).rowcount == 0)
  812. {
  813. sysf_messageBox("변경된 데이터가", "I004");
  814. return;
  815. }
  816. var oParam = {};
  817. oParam.id = "TXRFE02001";
  818. oParam.service = "reqapp.ReqMngt";
  819. oParam.method = "setRfchprvnList";
  820. oParam.inds = "req=ds_main_rfchprvnlist:u";
  821. oParam.outds = "";
  822. oParam.async = false;
  823. oParam.callback = "cf_TXRFE02001";
  824. tranf_submit(oParam);
  825. }
  826. function cf_TXRFE02001(sSvcId, nErrorCode, sErrorMsg)
  827. {
  828. if(nErrorCode < 0) return;
  829. else
  830. {
  831. for (var i = 0; i < ds_main_fixasetlist.rowcount; i++)
  832. {
  833. ds_main_fixasetlist.updatecontrol = false;
  834. ds_main_fixasetlist.setRowType(i, "")
  835. ds_main_fixasetlist.setColumn(i, "select", "N");
  836. ds_main_fixasetlist.updatecontrol = true;
  837. }
  838. var oParam = {};
  839. oParam.id = "TRRFE02001";
  840. oParam.service = "reqapp.ReqMngt";
  841. oParam.method = "reqGetRfchprvnList";
  842. oParam.inds = "req=ds_send";
  843. oParam.outds = "ds_main_rfchprvnlist=rfchprvnlist";
  844. oParam.async = false;
  845. //oParam.callback = "cf_TRRFE02001";
  846. tranf_submit(oParam);
  847. }
  848. }
  849. function fInsertPrvn()
  850. {
  851. for(var currow = 0; currow < ds_main_fixasetlist.rowcount; currow++)
  852. {
  853. if(ds_main_fixasetlist.getColumn(currow , "select") == "Y")
  854. {
  855. misfGridIUD(grd_rfchprvnlist, "A");
  856. var row = ds_main_rfchprvnlist.rowposition;
  857. ds_main_rfchprvnlist.setColumn(row, "instcd", grp_sea.cmb_instcd.value);
  858. ds_main_rfchprvnlist.setColumn(row, "fixasetcd", ds_main_fixasetlist.getColumn(currow, "fixasetcd"));
  859. ds_main_rfchprvnlist.setColumn(row, "prvnchkdd", utlf_getCurrentDate());
  860. ds_main_rfchprvnlist.setColumn(row, "vischk", "");
  861. ds_main_rfchprvnlist.setColumn(row, "pwrchk", "");
  862. ds_main_rfchprvnlist.setColumn(row, "syschk", "");
  863. ds_main_rfchprvnlist.setColumn(row, "itslfchkyn", "N");
  864. ds_main_rfchprvnlist.setColumn(row, "acsrsuseyn", "N");
  865. ds_main_rfchprvnlist.setColumn(row, "medelectacptyn", "Y");
  866. ds_main_rfchprvnlist.setColumn(row, "usedeprtmangrcnfm", "N");
  867. ds_main_rfchprvnlist.setColumn(row, "rpircvrtyn", "N");
  868. ds_main_rfchprvnlist.setColumn(row, "prvnchkprcsstat", "1");
  869. ds_main_rfchprvnlist.setColumn(row, "sanctyn", "N");
  870. ds_main_rfchprvnlist.setColumn(row, "sanctdd", "");
  871. }
  872. }
  873. }
  874. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  875. {
  876. if(grdf_getGridUpdateData(grd_rfchprvnlist).rowcount != 0)
  877. {
  878. if(sysf_messageBox("변경된 데이터가 있습니다. \n초기화 작업을", "Q003") == 7)
  879. return;
  880. }
  881. fInitialize();
  882. }
  883. function ipt_prvnchkfrdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  884. {
  885. btn_search2.click();
  886. }
  887. function ipt_prvnchktodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  888. {
  889. btn_search2.click();
  890. }
  891. ]]></Script>
  892. </Form>
  893. </FDL>