SMRIF02200_과제별보고서확인.xfdl 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRIF02200" position="absolute 0 0 1185 780" titletext="일자별보고서확인" onload="SMRIF02200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 518 27 1185 774" style="" anchor="top right">
  8. <Layouts>
  9. <Layout>
  10. <MaskEdit id="input9" mask="#,###" position="absolute 251 27 343 46" style="background:#ecebecff;" anchor="default"/>
  11. <Div id="iviewer1" url="SMRIF02110_보고서초기화면.xfdl" position="absolute 0 74 667 743" style="" asyncmode="false" anchor="default"/>
  12. <Edit id="ipt_prcpcd" position="absolute 72 3 167 22" style="background:#ecebecff;" anchor="default"/>
  13. <Static id="caption10" class="cell_1" position="absolute 169 25 249 48" style="align:left;" text="연구비총액" anchor="default"/>
  14. <Edit id="input2" position="absolute 426 27 502 46" style="background:#ecebecff;" anchor="default"/>
  15. <Static id="caption26" class="cell_1" position="absolute 0 26 70 49" style="align:left;" text="의뢰기관" anchor="default"/>
  16. <Static id="caption7" class="cell_1" position="absolute 0 0 70 23" style="align:left;" text="과제번호" anchor="default"/>
  17. <Static id="caption8" class="cell_1" position="absolute 344 26 424 49" style="align:left;" text="책임연구원" anchor="default"/>
  18. <Static id="cap_goodflagengnm" class="cell_1" position="absolute 505 26 575 49" style="align:left;" text="작성일자" anchor="default"/>
  19. <Edit id="input5" position="absolute 169 3 666 22" style="background:#ecebecff;" anchor="default"/>
  20. <Calendar id="input6" position="absolute 577 27 666 46" style="background:#ecebecff;" anchor="default"/>
  21. <Shape id="line4" class="line_2" linetype="horizontal" position="absolute 0 24 659 27" style="font:돋움체,,돋움체;" anchor="default"/>
  22. <Shape id="line5" class="line_2" linetype="horizontal" position="absolute 0 48 659 51" style="font:돋움체,,돋움체;" anchor="default"/>
  23. <Shape id="line2" class="line_2" linetype="horizontal" position="absolute 0 72 659 75" style="font:돋움체,,돋움체;" anchor="default"/>
  24. <Shape id="line6" class="line_3" linetype="horizontal" position="absolute 0 72 664 75" style="font:돋움체,,돋움체;" anchor="default"/>
  25. <MaskEdit id="opt_bstotjamt" class="output_fix" position="absolute 426 51 502 70" style="align:right;" anchor="default" readonly="true" mask="#,###"/>
  26. <MaskEdit id="opt_bstotiamt" class="output_fix" position="absolute 72 51 167 70" style="align:right;" anchor="default" readonly="true" inputtype="normal" mask="#,###"/>
  27. <Static id="caption3" class="cell_2" position="absolute 344 50 424 72" style="align:left;" text="잔 액" anchor="default"/>
  28. <Static id="caption4" class="cell_2" position="absolute 0 50 70 72" style="align:left;" text="입금액" anchor="default"/>
  29. <Static id="caption5" class="cell_2" position="absolute 169 50 249 72" style="align:left;" text="지출액" anchor="default"/>
  30. <MaskEdit id="opt_bstotoamt" class="output_fix" position="absolute 251 51 343 70" style="align:right;" anchor="default" readonly="true" mask="#,###"/>
  31. <Edit id="out_reqfirm" position="absolute 72 27 167 46" anchor="default" readonly="true" type="string" enable="true" style="background:#ecebecff; :disabled {background:#ecebecff;}"/>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Shape id="line8" class="line_10" linetype="horizontal" position="absolute 515 24 1185 27" style="font:돋움체,,돋움체;" anchor="top right"/>
  36. <Static id="caption1" class="tit_2" position="absolute 516 6 646 22" text="보고서 상세 내용" anchor="top right"/>
  37. <Combo innerdataset="ds_hidden_statuslist_status" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="combo2" visible="false" position="absolute 751 2 851 21" style="" onitemchanged="combo2_onitemchanged" anchor="top right"/>
  38. <Static id="cpt_status" position="absolute 930 2 1090 22" style="font:,,bold;align:right ;color:#ff0000;"/>
  39. <Button id="button1" class="btn1" taborder="100" position="absolute 1093 1 1185 23" style="" text="보고서관리" onclick="button1_onclick" anchor="top right"/>
  40. <Button id="btn_print" class="btn6" taborder="97" position="absolute 1123 76 1179 98" style="" text="출력" onclick="btn_print_onclick" anchor="top right"/>
  41. <Tab id="switch1" position="absolute 0 0 510 771" style="" anchor="all">
  42. <Tabpages>
  43. <Tabpage id="case2" selected="true" position="absolute 0 0 509 749" style="" anchor="default" text="일자별 보고서 확인">
  44. <Layouts>
  45. <Layout>
  46. <Shape id="roundrect2" type="roundrectangle" position="absolute 0 5 508 41" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;" anchor="left top right"/>
  47. <Calendar id="input13" taborder="27" position="absolute 220 12 320 31" style="" anchor="left top"/>
  48. <Static id="caption24" position="absolute 205 12 220 32" style="" text="~" anchor="left top"/>
  49. <Calendar id="input1" taborder="26" position="absolute 100 12 200 31" style="" anchor="left top"/>
  50. <Button id="btn_search" class="btn1" taborder="5" position="absolute 437 11 493 33" style="" text="조회" onclick="switch1_case2_btn_search_onclick" anchor="top right"/>
  51. <Grid id="grd_bsrephist" binddataset="ds_main_rephistinfo_rephistlist" class="datagrid2" taborder="21" position="absolute 0 69 508 744" style="font:돋움체,,돋움체;" onaftersort="switch1_case2_grd_bsrephist_onaftersort" oncelldblclick="switch1_case2_grd_bsrephist_oncelldblclick" anchor="all">
  52. <Formats>
  53. <Format id="default">
  54. <Columns>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="25"/>
  61. <Column size="68"/>
  62. <Column size="52"/>
  63. <Column size="37"/>
  64. <Column size="105"/>
  65. <Column size="131"/>
  66. <Column size="82"/>
  67. <Column size="70"/>
  68. <Column size="194"/>
  69. <Column size="70"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="25" band="head"/>
  73. <Row size="25"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell text="기관코드"/>
  77. <Cell col="1" text="과제코드"/>
  78. <Cell col="2" text="reptid"/>
  79. <Cell col="3" text="보고서코드"/>
  80. <Cell col="4" text="seqno"/>
  81. <Cell col="5" displaytype="checkbox" edittype="checkbox"/>
  82. <Cell col="6" text="작성일자"/>
  83. <Cell col="7" text="상태"/>
  84. <Cell col="8" text="자동"/>
  85. <Cell col="9" text="과제번호"/>
  86. <Cell col="10" text="보고서명"/>
  87. <Cell col="11" text="작성자"/>
  88. <Cell col="12" text="확인일"/>
  89. <Cell col="13" text="반려사유"/>
  90. <Cell col="14" text="."/>
  91. </Band>
  92. <Band id="body">
  93. <Cell text="bind:instcd"/>
  94. <Cell col="1" text="bind:projcd"/>
  95. <Cell col="2" text="bind:bsid"/>
  96. <Cell col="3" text="bind:reptcd"/>
  97. <Cell col="4" text="bind:seqno"/>
  98. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  99. <Cell col="6" displaytype="date" text="bind:bsdd"/>
  100. <Cell col="7" displaytype="combo" edittype="none" style="align:center;" text="bind:status" combodataset="ds_hidden_statuslist_status" combocodecol="cdid" combodatacol="cdnm"/>
  101. <Cell col="8" text="bind:autoyn"/>
  102. <Cell col="9" style="align:left;" text="bind:studycd"/>
  103. <Cell col="10" style="align:left;" text="bind:reptnm"/>
  104. <Cell col="11" style="align:left;" text="bind:bsnm"/>
  105. <Cell col="12" displaytype="date" text="bind:sbmtdd"/>
  106. <Cell col="13" displaytype="text" edittype="text" style="align:left;" text="bind:rjtremark"/>
  107. <Cell col="14" displaytype="text" edittype="text" style="align:left;"/>
  108. </Band>
  109. </Format>
  110. </Formats>
  111. </Grid>
  112. <Static id="caption11" class="tit_2" position="absolute 0 47 130 63" text="보고서작성이력" anchor="left top"/>
  113. <Shape id="line10" class="line_10" linetype="horizontal" position="absolute 0 66 508 69" style="font:돋움체,,돋움체;" anchor="left top right"/>
  114. <Button id="button2" class="btn5" position="absolute 400 45 442 64" style="" text="확인" onclick="switch1_case2_button2_onclick" anchor="top right"/>
  115. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 136 45 291 65" style="" onitemchanged="switch1_case2_radio1_onitemchanged" anchor="left top">
  116. <Dataset id="innerdataset">
  117. <ColumnInfo>
  118. <Column id="codecolumn"/>
  119. <Column id="datacolumn"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="codecolumn">R</Col>
  124. <Col id="datacolumn">반려</Col>
  125. </Row>
  126. <Row>
  127. <Col id="codecolumn">E</Col>
  128. <Col id="datacolumn">제출</Col>
  129. </Row>
  130. <Row>
  131. <Col id="codecolumn">A</Col>
  132. <Col id="datacolumn">확인</Col>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. </Radio>
  137. <Button id="btn_cancel" class="btn5" position="absolute 443 45 507 64" style="" text="확인취소" onclick="switch1_case2_btn_cancel_onclick" anchor="top right"/>
  138. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_daykind" enable="False" position="absolute 10 12 90 31" style="" anchor="left top">
  139. <Dataset id="innerdataset">
  140. <ColumnInfo>
  141. <Column id="codecolumn"/>
  142. <Column id="datacolumn"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row>
  146. <Col id="codecolumn">A</Col>
  147. <Col id="datacolumn">작성일</Col>
  148. </Row>
  149. <Row>
  150. <Col id="codecolumn">B</Col>
  151. <Col id="datacolumn">확인일</Col>
  152. </Row>
  153. </Rows>
  154. </Dataset>
  155. </Combo>
  156. <Button id="btn_reject" class="btn5" position="absolute 357 45 399 64" style="" text="반려" onclick="switch1_case2_btn_reject_onclick" anchor="top right"/>
  157. <Edit id="input3" position="absolute 325 12 425 31" style="" anchor="left top"/>
  158. </Layout>
  159. </Layouts>
  160. </Tabpage>
  161. <Tabpage id="case1" position="absolute 0 0 509 749" style="" anchor="default" text="과제별 보고서 확인">
  162. <Layouts>
  163. <Layout>
  164. <Div id="group2" position="absolute 0 1 493 61" style="align: top;" class="div_SA">
  165. <Layouts>
  166. <Layout>
  167. <Button id="button5" class="btn1" taborder="5" position="absolute 341 29 397 51" style="" text="조회" onclick="switch1_case1_group2_button5_onclick" anchor="default"/>
  168. <Static id="caption20" class="search_name" position="absolute 10 31 133 48" style="" text="과 제 번 호 :" anchor="default"/>
  169. <Combo innerdataset="ds_hidden_instlist_inst" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_s_instcd" enable="False" taborder="3" visible="false" position="absolute 460 5 485 24" style="background:#ecebec ;" onitemchanged="switch1_case1_group2_cmb_s_instcd_onitemchanged" anchor="default"/>
  170. <Edit id="ipt_s_projnm" visible="false" position="absolute 425 5 450 24" style="" anchor="default" onkillfocus="switch1_case1_group2_ipt_s_projnm_onkillfocus"/>
  171. <Edit id="ipt_s_projcd" position="absolute 123 31 338 50" style="" anchor="default" onkillfocus="switch1_case1_group2_ipt_s_projcd_onkillfocus" onkeypress="switch1_case1_group2_ipt_s_projcd_onkeypress"/>
  172. <Static id="caption2" class="search_name" position="absolute 10 8 140 25" style="" text="책임 연구원 :" anchor="default"/>
  173. <CheckBox text="종결포함" truevalue="Y" falsevalue="" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="chk_s_yn" position="absolute 339 10 409 30" style="" anchor="default">
  174. <Dataset id="innerdataset">
  175. <ColumnInfo>
  176. <Column id="codecolumn"/>
  177. <Column id="datacolumn"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row>
  181. <Col id="codecolumn">Y</Col>
  182. <Col id="datacolumn">종결포함</Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. </CheckBox>
  187. <Button id="btn_useid" class="icon_search" taborder="5" position="absolute 319 10 335 26" style="" text="" onclick="switch1_case1_group2_btn_useid_onclick" anchor="default"/>
  188. <Edit id="output1" class="output_fix" position="absolute 210 9 315 28" style="" anchor="default" readonly="true"/>
  189. <Edit id="output2" class="output_fix" position="absolute 123 9 208 28" style="" anchor="default" readonly="true"/>
  190. </Layout>
  191. </Layouts>
  192. </Div>
  193. <Grid id="grd_proj" binddataset="ds_main_studyprojinfo_studyprojlist" class="datagrid2" taborder="21" position="absolute 0 65 508 429" style="font:돋움체,,돋움체;" onaftersort="switch1_case1_grd_proj_onaftersort" oncelldblclick="switch1_case1_grd_proj_oncelldblclick">
  194. <Formats>
  195. <Format id="default">
  196. <Columns>
  197. <Column size="17"/>
  198. <Column size="16"/>
  199. <Column size="14"/>
  200. <Column size="13"/>
  201. <Column size="100"/>
  202. <Column size="278"/>
  203. <Column size="49"/>
  204. <Column size="100"/>
  205. <Column size="100"/>
  206. </Columns>
  207. <Rows>
  208. <Row size="25" band="head"/>
  209. <Row size="25"/>
  210. </Rows>
  211. <Band id="head">
  212. <Cell text="기관코드"/>
  213. <Cell col="1" text="코드"/>
  214. <Cell col="2" text="책임연구원"/>
  215. <Cell col="3" text="책임연구원명"/>
  216. <Cell col="4" text="과제번호"/>
  217. <Cell col="5" text="과제명"/>
  218. <Cell col="6" text="상태"/>
  219. </Band>
  220. <Band id="body">
  221. <Cell text="bind:instcd"/>
  222. <Cell col="1" text="bind:projcd"/>
  223. <Cell col="2" text="bind:rshid"/>
  224. <Cell col="3" text="bind:rshnm"/>
  225. <Cell col="4" text="bind:studycd"/>
  226. <Cell col="5" text="bind:projnm"/>
  227. <Cell col="6" text="bind:status"/>
  228. <Cell col="7" text="bind:projamt"/>
  229. <Cell col="8" text="bind:reqfirm"/>
  230. </Band>
  231. </Format>
  232. </Formats>
  233. </Grid>
  234. <Grid id="grd_rephist" binddataset="ds_main_rephistinfo_rephistlist" class="datagrid2" taborder="21" position="absolute 0 458 508 745" style="font:돋움체,,돋움체;" onaftersort="switch1_case1_grd_rephist_onaftersort" oncelldblclick="switch1_case1_grd_rephist_oncelldblclick">
  235. <Formats>
  236. <Format id="default">
  237. <Columns>
  238. <Column size="4"/>
  239. <Column size="4"/>
  240. <Column size="7"/>
  241. <Column size="6"/>
  242. <Column size="7"/>
  243. <Column size="25"/>
  244. <Column size="68"/>
  245. <Column size="175"/>
  246. <Column size="78"/>
  247. <Column size="78"/>
  248. <Column size="51"/>
  249. </Columns>
  250. <Rows>
  251. <Row size="25" band="head"/>
  252. <Row size="25"/>
  253. </Rows>
  254. <Band id="head">
  255. <Cell text="기관코드"/>
  256. <Cell col="1" text="과제코드"/>
  257. <Cell col="2" text="reptid"/>
  258. <Cell col="3" text="보고서코드"/>
  259. <Cell col="4" text="seqno"/>
  260. <Cell col="5" text=""/>
  261. <Cell col="6" text="작성일자"/>
  262. <Cell col="7" text="보고서명"/>
  263. <Cell col="8" text="확인일"/>
  264. <Cell col="9" text="작성자"/>
  265. <Cell col="10" text="상태"/>
  266. </Band>
  267. <Band id="body">
  268. <Cell text="bind:instcd"/>
  269. <Cell col="1" text="bind:projcd"/>
  270. <Cell col="2" text="bind:bsid"/>
  271. <Cell col="3" text="bind:reptcd"/>
  272. <Cell col="4" text="bind:seqno"/>
  273. <Cell col="5" text="bind:chk"/>
  274. <Cell col="6" text="bind:bsdd"/>
  275. <Cell col="7" text="bind:reptnm"/>
  276. <Cell col="8" text="bind:sbmtdd"/>
  277. <Cell col="9" text="bind:bsnm"/>
  278. <Cell col="10" text="bind:status"/>
  279. </Band>
  280. </Format>
  281. </Formats>
  282. </Grid>
  283. <Static id="caption34" class="tit_2" position="absolute 0 439 130 452" style="font:돋움체,,돋움체;" text="보고서작성이력"/>
  284. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 61 508 64" style="font:돋움체,,돋움체;" anchor="default"/>
  285. <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 455 508 458" style="font:돋움체,,돋움체;" anchor="default"/>
  286. <Button id="btn_confirm" class="btn5_letter2" position="absolute 390 433 432 452" style="" text="확인" onclick="switch1_case1_btn_confirm_onclick"/>
  287. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_statushis" position="absolute 220 435 375 455" style="">
  288. <Dataset id="innerdataset">
  289. <ColumnInfo>
  290. <Column id="codecolumn"/>
  291. <Column id="datacolumn"/>
  292. </ColumnInfo>
  293. <Rows>
  294. <Row>
  295. <Col id="codecolumn">P</Col>
  296. <Col id="datacolumn">진행</Col>
  297. </Row>
  298. <Row>
  299. <Col id="codecolumn">E</Col>
  300. <Col id="datacolumn">제출</Col>
  301. </Row>
  302. <Row>
  303. <Col id="codecolumn">A</Col>
  304. <Col id="datacolumn">확인</Col>
  305. </Row>
  306. </Rows>
  307. </Dataset>
  308. </Radio>
  309. <Button id="btn_confirm_cancel" class="btn5_letter4" position="absolute 435 433 499 452" style="" text="확인취소" onclick="switch1_case1_btn_confirm_cancel_onclick"/>
  310. </Layout>
  311. </Layouts>
  312. </Tabpage>
  313. </Tabpages>
  314. </Tab>
  315. <Button id="button4" class="btn_sw" visible="false" position="absolute 384 0 504 22" style="" text="과제별 보고서 확인" onclick="button4_onclick"/>
  316. <Button id="btn_spconn" class="btn3" position="absolute 859 1 963 23" style="" text="과제연계관리" onclick="btn_spconn_onclick" anchor="top right"/>
  317. <Button id="btn_reptpt" class="btn3" position="absolute 964 1 1092 23" style="" text="보고서별환자내역" onclick="btn_reptpt_onclick" anchor="top right"/>
  318. <Shape id="line7" linetype="vertical" class="line_10" position="absolute 514 24 516 773" anchor="top right bottom"/>
  319. <Button id="button6" taborder="101" text="일자별 보고서 확인" onclick="button6_onclick" class="btn_sw" visible="false" position="absolute 264 0 384 22"/>
  320. </Layout>
  321. </Layouts>
  322. <Objects>
  323. <Dataset id="ds_send_searchrep" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  324. <ColumnInfo>
  325. <Column id="instcd" type="STRING" size="256"/>
  326. <Column id="projcd" type="STRING" size="256"/>
  327. <Column id="reptcd" type="STRING" size="256"/>
  328. <Column id="seqno" type="STRING" size="256"/>
  329. </ColumnInfo>
  330. <Rows>
  331. <Row>
  332. <Col id="instcd"/>
  333. <Col id="projcd"/>
  334. <Col id="reptcd"/>
  335. <Col id="seqno"/>
  336. </Row>
  337. </Rows>
  338. </Dataset>
  339. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  340. <ColumnInfo/>
  341. </Dataset>
  342. <Dataset id="ds_hidden_statuslist_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  343. <ColumnInfo>
  344. <Column id="cdnm" type="STRING" size="256"/>
  345. <Column id="cdid" type="STRING" size="256"/>
  346. </ColumnInfo>
  347. <Rows>
  348. <Row>
  349. <Col id="cdnm">진행</Col>
  350. <Col id="cdid">P</Col>
  351. </Row>
  352. <Row>
  353. <Col id="cdnm">반려</Col>
  354. <Col id="cdid">R</Col>
  355. </Row>
  356. <Row>
  357. <Col id="cdnm">제출</Col>
  358. <Col id="cdid">E</Col>
  359. </Row>
  360. <Row>
  361. <Col id="cdnm">확인</Col>
  362. <Col id="cdid">A</Col>
  363. </Row>
  364. </Rows>
  365. </Dataset>
  366. <Dataset id="ds_send_searchproj" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  367. <ColumnInfo>
  368. <Column id="instcd" type="STRING" size="256"/>
  369. <Column id="studycd" type="STRING" size="256"/>
  370. <Column id="rshid" type="STRING" size="256"/>
  371. <Column id="projnm" type="STRING" size="256"/>
  372. <Column id="chk" type="STRING" size="256"/>
  373. <Column id="bstotiamt" type="STRING" size="256"/>
  374. <Column id="bstotoamt" type="STRING" size="256"/>
  375. <Column id="bstotjamt" type="STRING" size="256"/>
  376. <Column id="projamt" type="STRING" size="256"/>
  377. <Column id="reqfirm" type="STRING" size="256"/>
  378. <Column id="rshnm" type="STRING" size="256"/>
  379. <Column id="bsdd" type="STRING" size="256"/>
  380. <Column id="fromdd" type="STRING" size="256"/>
  381. <Column id="todd" type="STRING" size="256"/>
  382. <Column id="daykind" type="STRING" size="256"/>
  383. </ColumnInfo>
  384. <Rows>
  385. <Row>
  386. <Col id="instcd"/>
  387. <Col id="studycd"/>
  388. <Col id="rshid"/>
  389. <Col id="projnm"/>
  390. <Col id="chk"/>
  391. <Col id="bstotiamt"/>
  392. <Col id="bstotoamt"/>
  393. <Col id="bstotjamt"/>
  394. <Col id="projamt"/>
  395. <Col id="reqfirm"/>
  396. <Col id="rshnm"/>
  397. <Col id="bsdd"/>
  398. <Col id="fromdd"/>
  399. <Col id="todd"/>
  400. <Col id="daykind"/>
  401. </Row>
  402. </Rows>
  403. </Dataset>
  404. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  405. <ColumnInfo>
  406. <Column id="rshinfo" type="STRING" size="256"/>
  407. <Column id="status" type="STRING" size="256"/>
  408. </ColumnInfo>
  409. <Rows>
  410. <Row>
  411. <Col id="rshinfo"/>
  412. <Col id="status"/>
  413. </Row>
  414. </Rows>
  415. </Dataset>
  416. <Dataset id="ds_send_searchrephist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  417. <ColumnInfo>
  418. <Column id="instcd" type="STRING" size="256"/>
  419. <Column id="projcd" type="STRING" size="256"/>
  420. <Column id="statushis" type="STRING" size="256"/>
  421. <Column id="fromdd" type="STRING" size="256"/>
  422. <Column id="todd" type="STRING" size="256"/>
  423. <Column id="daykind" type="STRING" size="256"/>
  424. </ColumnInfo>
  425. <Rows>
  426. <Row>
  427. <Col id="instcd"/>
  428. <Col id="projcd"/>
  429. <Col id="statushis"/>
  430. <Col id="fromdd"/>
  431. <Col id="todd"/>
  432. <Col id="daykind"/>
  433. </Row>
  434. </Rows>
  435. </Dataset>
  436. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  437. <ColumnInfo>
  438. <Column id="studyprojinfo" type="STRING" size="256"/>
  439. <Column id="rephistinfo" type="STRING" size="256"/>
  440. <Column id="repinfo" type="STRING" size="256"/>
  441. </ColumnInfo>
  442. <Rows>
  443. <Row>
  444. <Col id="studyprojinfo"/>
  445. <Col id="rephistinfo"/>
  446. <Col id="repinfo"/>
  447. </Row>
  448. </Rows>
  449. </Dataset>
  450. <Dataset id="ds_hidden_instlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  451. <ColumnInfo/>
  452. </Dataset>
  453. <Dataset id="ds_hidden_statuslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  454. <ColumnInfo/>
  455. </Dataset>
  456. <Dataset id="ds_hidden_docinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  457. <ColumnInfo>
  458. <Column id="signimge" type="STRING" size="256"/>
  459. </ColumnInfo>
  460. <Rows>
  461. <Row>
  462. <Col id="signimge"/>
  463. </Row>
  464. </Rows>
  465. </Dataset>
  466. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  467. <ColumnInfo>
  468. <Column id="savedata" type="STRING" size="256"/>
  469. </ColumnInfo>
  470. <Rows>
  471. <Row>
  472. <Col id="savedata"/>
  473. </Row>
  474. </Rows>
  475. </Dataset>
  476. <Dataset id="ds_hidden_instlist_inst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  477. <ColumnInfo>
  478. <Column id="cdnm" type="STRING" size="256"/>
  479. <Column id="cdid" type="STRING" size="256"/>
  480. <Column id="cdnm" type="STRING" size="256"/>
  481. <Column id="cdid" type="STRING" size="256"/>
  482. </ColumnInfo>
  483. <Rows>
  484. <Row>
  485. <Col id="cdnm">본원</Col>
  486. <Col id="cdid">031</Col>
  487. </Row>
  488. <Row>
  489. <Col id="cdnm">칠곡</Col>
  490. <Col id="cdid">032</Col>
  491. </Row>
  492. </Rows>
  493. </Dataset>
  494. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  495. <ColumnInfo>
  496. <Column id="userinfo" type="STRING" size="256"/>
  497. </ColumnInfo>
  498. </Dataset>
  499. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  500. <ColumnInfo>
  501. <Column id="temp" type="STRING" size="256"/>
  502. </ColumnInfo>
  503. </Dataset>
  504. <Dataset id="ds_init_rshlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  505. <Dataset id="ds_main_studyprojinfo_studyprojlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  506. <Dataset id="ds_main_repinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  507. <Dataset id="ds_main_rephistinfo_rephistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  508. <Dataset id="ds_main_projamt_projamtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  509. <Dataset id="ds_main_repinfo_repmain" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  510. <Dataset id="ds_main_repinfo_repdetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  511. <Dataset id="ds_main_repinfo_repform" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  512. <Dataset id="ds_main_repdetltemplete" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  513. <Dataset id="ds_send_docinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  514. </Objects>
  515. <Bind>
  516. <BindItem id="item0" compid="group1.input9" propid="value" datasetid="ds_main_repinfo_repmain" columnid="projamt"/>
  517. <BindItem id="item1" compid="group1.ipt_prcpcd" propid="value" datasetid="ds_main_repinfo_repmain" columnid="studycd"/>
  518. <BindItem id="item2" compid="group1.input2" propid="value" datasetid="ds_main_repinfo_repmain" columnid="rshnm"/>
  519. <BindItem id="item3" compid="group1.input5" propid="value" datasetid="ds_main_repinfo_repmain" columnid="projnm"/>
  520. <BindItem id="item4" compid="group1.input6" propid="value" datasetid="ds_main_repinfo_repmain" columnid="bsdd"/>
  521. <BindItem id="item5" compid="group1.opt_bstotjamt" propid="value" datasetid="ds_send_searchproj" columnid="bstotjamt"/>
  522. <BindItem id="item6" compid="group1.opt_bstotiamt" propid="value" datasetid="ds_send_searchproj" columnid="bstotiamt"/>
  523. <BindItem id="item7" compid="group1.opt_bstotoamt" propid="value" datasetid="ds_send_searchproj" columnid="bstotoamt"/>
  524. <BindItem id="item8" compid="group1.out_reqfirm" propid="value" datasetid="ds_main_repinfo_repmain" columnid="reqfirm"/>
  525. <BindItem id="item9" compid="combo2" propid="value" datasetid="ds_main_repinfo_repmain" columnid="status"/>
  526. <BindItem id="item10" compid="switch1.case1.group2.cmb_s_instcd" propid="value" datasetid="ds_send_searchproj" columnid="instcd"/>
  527. <BindItem id="item11" compid="switch1.case1.group2.ipt_s_projnm" propid="value" datasetid="ds_send_searchproj" columnid="projnm"/>
  528. <BindItem id="item12" compid="switch1.case1.group2.ipt_s_projcd" propid="value" datasetid="ds_send_searchproj" columnid="studycd"/>
  529. <BindItem id="item13" compid="switch1.case1.group2.chk_s_yn" propid="value" datasetid="ds_send_searchproj" columnid="chk"/>
  530. <BindItem id="item14" compid="switch1.case1.rdo_statushis" propid="value" datasetid="ds_send_searchrephist" columnid="statushis"/>
  531. <BindItem id="item15" compid="switch1.case2.input13" propid="value" datasetid="ds_send_searchproj" columnid="todd"/>
  532. <BindItem id="item16" compid="switch1.case2.input1" propid="value" datasetid="ds_send_searchproj" columnid="fromdd"/>
  533. <BindItem id="item17" compid="switch1.case2.radio1" propid="value" datasetid="ds_send_searchproj" columnid="statushis"/>
  534. <BindItem id="item18" compid="switch1.case2.cmb_daykind" propid="value" datasetid="ds_send_searchproj" columnid="daykind"/>
  535. <BindItem id="item19" compid="switch1.case2.input3" propid="value" datasetid="ds_send_searchproj" columnid="rshnm"/>
  536. </Bind>
  537. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  538. * System Name :
  539. * Job Name :
  540. * Creator :
  541. * Make Date : 2017-06-19
  542. * Description :
  543. *---------------------------------------------------------------------------------------
  544. * Modify Date Modifier Modify Description
  545. *---------------------------------------------------------------------------------------
  546. * 2017-06-19 Live Converter TF->XP
  547. *
  548. *---------------------------------------------------------------------------------------
  549. ****************************************************************************************/
  550. include "com_commonxp::comm_main.xjs";
  551. function SMRIF02200_onload(obj:Form, e:LoadEventInfo) {
  552. frmf_initForm(obj);
  553. grdf_initGrid(switch1.case2.grd_bsrephist);
  554. //grdf_setGridSort(grd_XXX);
  555. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  556. fInitialize();
  557. }
  558. function fInitialize(){
  559. switch1.tabindex = 0;
  560. dsf_makeValue( ds_send_searchproj, "daykind", "string", "A");
  561. dsf_makeValue( ds_send_searchproj, "fromdd", "string", ((utlf_getCurrentDate().toDate()).getAddDate(-3,"M")).getDateFormat());
  562. dsf_makeValue( ds_send_searchproj, "todd", "string", utlf_getCurrentDate());
  563. dsf_makeValue( ds_send_searchproj, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  564. var arrParam = [ {dsNm: "ds_init_status", cdGrpId: "I0010" } ];
  565. appf_getCodeList(arrParam, false);
  566. if (frmf_isPopup()) {
  567. var menuparam = opener.frmf_getParameter("SMRIF02200_menuparam");
  568. var rshid = opener.frmf_getParameter("SMRIF02200_rshid");
  569. var rshnm = opener.frmf_getParameter("SMRIF02200_rshnm");
  570. var studycd = opener.frmf_getParameter("SMRIF02200_studycd");
  571. dsf_makeValue( ds_send_searchproj, "rshid", "string", rshid );
  572. dsf_makeValue( ds_send_searchproj, "rshnm", "string", rshnm );
  573. dsf_makeValue( ds_send_searchproj, "studycd", "string", studycd );
  574. dsf_makeValue( ds_send_searchproj, "chk", "string", "Y" );
  575. dsf_makeValue( ds_send_searchproj, "statushis", "string", "E" );
  576. fSearch();
  577. }
  578. var oParam = {};
  579. oParam.id = "TRRIF02204";
  580. oParam.service = "ctmsapp.ReportMngt";
  581. oParam.method = "reqGetCodeInfo";
  582. oParam.inds = "req=ds_send_searchproj";
  583. oParam.outds = "ds_init_rshlist=rshlist";
  584. oParam.async = false;
  585. //oParam.callback = "cf_TRRIF02204";
  586. tranf_submit(oParam);
  587. fSetStatus();
  588. }
  589. /* 과제 조회 */
  590. function fSearch(){
  591. var oParam = {};
  592. oParam.id = "TRRIF02201";
  593. oParam.service = "ctmsapp.ReportMngt";
  594. oParam.method = "reqGetStudyProjList2";
  595. oParam.inds = "req=ds_send_searchproj";
  596. oParam.outds = "ds_main_studyprojinfo_studyprojlist=studyprojlist";
  597. oParam.async = false;
  598. //oParam.callback = "cf_TRRIF02201";
  599. tranf_submit(oParam);
  600. }
  601. function fSetStatus(){
  602. switch1.case2.btn_reject.enable = true;
  603. switch1.case1.btn_confirm.enable = true;
  604. switch1.case2.btn_cancel.enable = true;
  605. var status = switch1.case2.radio1.value;
  606. if ( status == "P") {
  607. switch1.case2.btn_reject.enable = false;
  608. switch1.case1.btn_confirm.enable = false;
  609. switch1.case2.btn_cancel.enable = false;
  610. }
  611. if ( status == "R") {
  612. switch1.case2.btn_reject.enable = false;
  613. switch1.case1.btn_confirm.enable = true;
  614. switch1.case2.btn_cancel.enable = false;
  615. }
  616. if ( status == "E") {
  617. switch1.case2.btn_reject.enable = true;
  618. switch1.case1.btn_confirm.enable = true;
  619. switch1.case2.btn_cancel.enable = false;
  620. }
  621. if ( status == "A") {
  622. switch1.case2.btn_reject.enable = false;
  623. switch1.case1.btn_confirm.enable = false;
  624. switch1.case2.btn_cancel.enable = true;
  625. }
  626. }
  627. //
  628. // function inputEnterKeySearch() {
  629. // if(event.keyCode == "13") {
  630. // obj.updateToDataset();
  631. // fSearch();
  632. // }
  633. // }
  634. //
  635. //
  636. // /* 보고서내역 조회 */
  637. function fSearchReportHist(){
  638. var idx = switch1.case1.grd_proj.currentrow;
  639. var oParam = {};
  640. oParam.id = "TRRIF02202";
  641. oParam.service = "ctmsapp.ReportMngt";
  642. oParam.method = "reqGetReportHistList2";
  643. oParam.inds = "req=ds_send_searchproj";
  644. oParam.outds = "ds_main_rephistinfo_rephistlist=rephistlist";
  645. oParam.async = false;
  646. //oParam.callback = "cf_TRRIF02202";
  647. tranf_submit(oParam);
  648. fInitRepDetail();
  649. }
  650. /* 보고서 조회 */
  651. function fSearchRep(selectedrow){
  652. var sREPINFO_PATH = "ds_main_repinfo";
  653. var sREPDETL_PATH = sREPINFO_PATH + "_repdetl";
  654. var sREPMAIN_PATH = sREPINFO_PATH + "_repmain";
  655. var sREPFORM_PATH = sREPINFO_PATH + "_repform";
  656. var sREPDETL_TEMPLETE_PATH = sREPINFO_PATH + "_repdetltemplete";
  657. var idx = selectedrow;
  658. var bstotiamt = "";
  659. var bstotoamt = "";
  660. var bstotjamt = "";
  661. dsf_makeValue( ds_send_searchrep, "instcd", "string", ds_main_rephistinfo_rephistlist.getColumn(idx, "instcd"));
  662. dsf_makeValue( ds_send_searchrep, "projcd", "string", ds_main_rephistinfo_rephistlist.getColumn(idx, "projcd"));
  663. dsf_makeValue( ds_send_searchrep, "reptcd", "string", ds_main_rephistinfo_rephistlist.getColumn(idx, "reptcd"));
  664. dsf_makeValue( ds_send_searchrep, "seqno", "string", ds_main_rephistinfo_rephistlist.getColumn(idx, "seqno"));
  665. var oParam = {};
  666. oParam.id = "TRRIS00306";
  667. oParam.service = "ctmsapp.StudyProjMngt";
  668. oParam.method = "reqGetProjAmtList";
  669. oParam.inds = "req=ds_send_searchrep";
  670. oParam.outds = "ds_main_projamt_projamtlist=projamtlist ds_=projrepmainlist";
  671. oParam.async = false;
  672. //oParam.callback = "cf_TRRIS00306";
  673. tranf_submit(oParam);
  674. bstotiamt = ds_main_projamt_projamtlist.getColumn(0, "iamt");
  675. bstotoamt = ds_main_projamt_projamtlist.getColumn(0, "oamt");
  676. bstotjamt = ds_main_projamt_projamtlist.getColumn(0, "jamt");
  677. var oParam = {};
  678. oParam.id = "TRRIF02203";
  679. oParam.service = "ctmsapp.ReportMngt";
  680. oParam.method = "reqGetRep";
  681. oParam.inds = "req=ds_send_searchrep";
  682. oParam.outds = sREPMAIN_PATH + "=repmain "+sREPFORM_PATH+"=repform "+sREPDETL_PATH+"=repdetl "+sREPDETL_TEMPLETE_PATH+"=repdetltemplete";
  683. oParam.async = false;
  684. //oParam.callback = "cf_TRRIF02203";
  685. tranf_submit(oParam);
  686. if(eval(sREPFORM_PATH).rowcount == 0){
  687. sysf_messageBox("해당 보고서는 개발 중","E008");
  688. fInitRepDetail();
  689. return;
  690. }
  691. var repdetl = eval(sREPDETL_PATH);
  692. if( repdetl == null || sREPDETL_PATH.rowcount == 0){
  693. sysf_messageBox("관련 데이타가","I004");
  694. fInitRepDetail();
  695. return;
  696. }
  697. dsf_makeValue( ds_send_searchproj, "bstotiamt", "string", bstotiamt );
  698. dsf_makeValue( ds_send_searchproj, "bstotoamt", "string", bstotoamt );
  699. dsf_makeValue( ds_send_searchproj, "bstotjamt", "string", bstotjamt );
  700. var scrnurl = eval(sREPFORM_PATH).getColumn(0,"scrnurl");
  701. var xfdlname = "";
  702. var scrnurlxp = "";
  703. if(scrnurl.lastIndexOf(".xrw") > -1) {
  704. var arScrnurl = scrnurl.split("/xrw/");
  705. var servicename = arScrnurl[0];
  706. var filename = arScrnurl[1];
  707. var service = servicename.split("/");
  708. var biz = service[0] + "_";
  709. var project = service[1];
  710. if(utlf_isNull(filename)) {
  711. filename = servicename;
  712. }
  713. if(utlf_isNull(project)) {
  714. biz = "";
  715. project = "";
  716. } else {
  717. project = project.substring(0, project.length - 3) + "xp" + "::";
  718. }
  719. xfdlname = filename.substring(0, filename.length - 3) + "xfdl";
  720. scrnurlxp = biz + project + xfdlname;
  721. }
  722. group1.iviewer1.url = "";
  723. group1.iviewer1.url = scrnurlxp;
  724. group1.iviewer1.fSetReport(sREPMAIN_PATH, sREPDETL_PATH);
  725. fCheckStatus();
  726. }
  727. /* 보고서 상세 초기화 */
  728. function fInitRepDetail(){
  729. ds_main_repinfo.clearData();
  730. group1.iviewer1.src = "SMRIF02110_보고서초기화면.xrw";
  731. fCheckStatus();
  732. }
  733. /* 상태체크(상태에 따라 item 설정 변경) */
  734. function fCheckStatus(){
  735. var status = ds_main_repinfo_repmain.getColumn(0, "status");
  736. if(status == "A"){
  737. cpt_status.text = "연구소확인" ;
  738. }else{
  739. cpt_status.text = "" ;
  740. }
  741. }
  742. //
  743. // /* 저장 */
  744. // function fSave(vbtnnm){
  745. //
  746. // var grdObj = grd_bsrephist;
  747. // var rowsize = grdObj.rows - grdObj.fixedRows;
  748. // var grdnodeset = grdObj.attribute("nodeset");
  749. // var status;
  750. //
  751. // if(vbtnnm == "switch1.case1.btn_confirm"){
  752. // status = "A";
  753. // }else if(vbtnnm == "switch1.case1.btn_confirm_cancel"){
  754. // status = "E";
  755. // }
  756. // else if(vbtnnm == "switch1.case2.btn_reject"){
  757. // status = "R";
  758. // }
  759. //
  760. // for(var i=1;i<=rowsize; i++){
  761. // var chk = eval(grdnodeset).getColumn(i, "chk");
  762. // var rjtremark = eval(grdnodeset).getColumn(i, "rjtremark");
  763. // var curstatus = eval(grdnodeset).getColumn(i, "status");
  764. //
  765. // if(chk == "Y"){
  766. //
  767. // //model.makeValue(grdnodeset+"["+i+"]_status",status);
  768. // eval(grdnodeset).setColumn(i, "status", status);
  769. // //model.makeValue(grdnodeset+"["+i+"]_rjtremark",rjtremark);
  770. // eval(grdnodeset).setColumn(i, "rjtremark", rjtremark);
  771. // model.makeValue(grdnodeset+"["+i+"]_chk","N");
  772. // }
  773. // }
  774. //
  775. // dsf_makeValue( ds_send_save, "savedata", "string", grdObj.getUpdateData());
  776. //
  777. // // submit("TXRIF02201",false);
  778. // var oParam = {};
  779. // oParam.id = "TXRIF02201";
  780. // oParam.service = "ctmsapp.ReportMngt";
  781. // oParam.method = "reqChngStatus";
  782. // oParam.inds = "req=ds_";
  783. // oParam.outds = "";
  784. // oParam.async = false;
  785. // oParam.callback = "cf_TXRIF02201";
  786. //
  787. // tranf_submit(oParam);
  788. // /*
  789. // function cf_TXRIF02201(sSvcId, nErrorCode, sErrorMsg) {
  790. // if(nErrorCode < 0) return;
  791. // }
  792. // function cf_TXRIF02201(sSvcId, nErrorCode, sErrorMsg) {
  793. // arErrorCode.push(sSvcId, nErrorCode);
  794. // }
  795. // arErrorCode.pop("TXRIF02201") > -1
  796. // arErrorCode.pop("TXRIF02201") < 0
  797. // */
  798. //
  799. //
  800. //
  801. // //model.refresh();
  802. //
  803. // }
  804. //
  805. // function fSetUserinfo(){
  806. // frmf_setParameter("search_condition","usernm");
  807. // frmf_setParameter("resultref","ds_send_userinfo");
  808. // frmf_modal("SPZSU10100", "", ""-"", "", "", "", "", "", "", "", "", "", "M");
  809. //
  810. // var userinfo = ds_send.getColumn(0, "userinfo");
  811. // userinfo = userinfo.split("|");
  812. // var rshid = userinfo[2];
  813. // var rshnm = userinfo[3];
  814. //
  815. // dsf_makeValue( ds_send_searchproj, "rshid", "string", rshid);
  816. // dsf_makeValue( ds_send_searchproj, "rshnm", "string", rshnm);
  817. // ds_send_userinfo.clearData(); ds_send_userinfo.addRow();
  818. //
  819. // //model.refresh();
  820. //
  821. // }
  822. //
  823. //
  824. //
  825. // //스크립트 끝
  826. // function combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  827. //
  828. // fCheckStatus();
  829. //
  830. // }
  831. //
  832. function button1_onclick(obj:Button, e:ClickEventInfo) {
  833. frmf_modal("SPRIS00202", "SPRIS00202", "", "", "", "", "", "", "", "", "", "", "M");
  834. }
  835. function btn_print_onclick(obj:Button, e:ClickEventInfo) {
  836. var sREPDETLINFO_PATH="ds_main_repinfo";
  837. var rsltDs = eval(sREPDETLINFO_PATH+"_repform");
  838. var prntform = rsltDs.getColumn(0,"prntform");
  839. if(utlf_isNull(prntform)){
  840. sysf_messageBox("선택된 보고서가","I004");
  841. return;
  842. }
  843. var status = group1.iviewer1.ds_main_repmain.getColumn(0, "status");
  844. if ( status != "A" ) {
  845. sysf_messageBox("연구소 확인상태의 보고서만 출력가능합니다","I");
  846. return;
  847. }
  848. dsf_makeValue( ds_send_docinfo, "userid", "string", ds_main_repinfo_repmain.getColumn(0, "rshid"));
  849. var oParam = {};
  850. oParam.id = "TRRIF01205";
  851. oParam.service = "ctmsapp.StudyProjMngt";
  852. oParam.method = "reqGetUsrSignImge";
  853. oParam.inds = "req=ds_send_docinfo";
  854. oParam.outds = "ds_hidden_docinfo=docinfo";
  855. oParam.async = false;
  856. //oParam.callback = "cf_TRRIF01205";
  857. tranf_submit(oParam);
  858. group1.iviewer1.fSetDrSignData(ds_hidden_docinfo.getColumn(0, "signimge"));
  859. group1.iviewer1.fPrintReport(prntform);
  860. }
  861. function switch1_case1_group2_button5_onclick(obj:Button, e:ClickEventInfo) {
  862. fSearch();
  863. }
  864. //
  865. // function switch1_case1_group2_cmb_s_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  866. //
  867. // inputEnterKeySearch();
  868. //
  869. // }
  870. //
  871. // function switch1_case1_group2_ipt_s_projnm_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
  872. //
  873. // inputEnterKeySearch();
  874. //
  875. // }
  876. //
  877. // function switch1_case1_group2_ipt_s_projcd_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
  878. //
  879. // inputEnterKeySearch();
  880. //
  881. // }
  882. //
  883. // function switch1_case1_group2_ipt_s_projcd_onkeydown(obj:Edit, e:KeyEventInfo) {
  884. //
  885. // if(event.keyCode == "13") {
  886. // inputEnterKey("switch1.case1.group2.button5","DOMActivate");
  887. // }
  888. //
  889. // }
  890. //
  891. // function switch1_case1_group2_btn_useid_onclick(obj:Button, e:ClickEventInfo) {
  892. //
  893. // fSetUserinfo();
  894. //
  895. // }
  896. //
  897. // function switch1_case1_grd_proj_onaftersort {
  898. //
  899. // switch1.case1.grd_proj.gridToInstance();
  900. //
  901. // }
  902. //
  903. // function switch1_case1_grd_proj_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  904. //
  905. // dsf_makeValue( ds_send_searchrephist, "instcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(switch1.case1.grd_proj.row, "instcd"));
  906. // dsf_makeValue( ds_send_searchrephist, "projcd", "string", ds_main_studyprojinfo_studyprojlist.getColumn(switch1.case1.grd_proj.row, "projcd"));
  907. // dsf_makeValue( ds_send_searchrephist, "daykind", "string", "");
  908. // dsf_makeValue( ds_send_searchrephist, "fromdd", "string", "");
  909. // dsf_makeValue( ds_send_searchrephist, "todd", "string", "");
  910. // fSearchReportHist();
  911. //
  912. // }
  913. //
  914. // function switch1_case1_grd_rephist_onaftersort {
  915. //
  916. // switch1.case1.grd_rephist.gridToInstance();
  917. //
  918. // }
  919. //
  920. // function switch1_case1_grd_rephist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  921. //
  922. // if(switch1.case1.grd_rephist.col == switch1.case1.grd_rephist.colRef("chk")) return;
  923. // var selectedrow = switch1.case1.grd_rephist.row;
  924. // fSearchRep(selectedrow);
  925. //
  926. // }
  927. //
  928. // function switch1_case1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  929. //
  930. // setAlertOn();
  931. // fSave("switch1.case1.btn_confirm");
  932. //
  933. // }
  934. //
  935. // function switch1_case1_btn_confirm_cancel_onclick(obj:Button, e:ClickEventInfo) {
  936. //
  937. // setAlertOn();
  938. // fSave("switch1.case1.btn_confirm_cancel");
  939. //
  940. // }
  941. //
  942. function switch1_case2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  943. dsf_makeValue( ds_send_searchrephist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  944. dsf_makeValue( ds_send_searchrephist, "projcd", "string", "");
  945. dsf_makeValue( ds_send_searchrephist, "fromdd", "string", ds_send_searchproj.getColumn(0, "fromdd"));
  946. dsf_makeValue( ds_send_searchrephist, "todd", "string", ds_send_searchproj.getColumn(0, "todd"));
  947. dsf_makeValue( ds_send_searchrephist, "daykind", "string", ds_send_searchproj.getColumn(0, "daykind"));
  948. dsf_makeValue( ds_send_searchrephist, "rshnm", "string", ds_send_searchproj.getColumn(0, "rshnm"));
  949. fSearchReportHist();
  950. }
  951. //
  952. // function switch1_case2_grd_bsrephist_onaftersort {
  953. //
  954. // switch1.case2.grd_bsrephist.gridToInstance();
  955. //
  956. // }
  957. //
  958. function switch1_case2_grd_bsrephist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  959. if(e.col == obj.getBindCellIndex("body", "chk")) { return; }
  960. var selectedrow = e.row;
  961. fSearchRep(selectedrow);
  962. }
  963. // function switch1_case2_button2_onclick(obj:Button, e:ClickEventInfo) {
  964. //
  965. // setAlertOn();
  966. // fSave("switch1.case1.btn_confirm");
  967. // switch1.case2.btn_search.dispatch("DOMActivate");
  968. //
  969. // }
  970. //
  971. // function switch1_case2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  972. //
  973. // fSetStatus();
  974. // switch1.case2.btn_search.dispatch("DOMActivate");
  975. //
  976. // }
  977. //
  978. // function switch1_case2_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  979. //
  980. // setAlertOn();
  981. // fSave("switch1.case1.btn_confirm_cancel");
  982. // switch1.case2.btn_search.dispatch("DOMActivate");
  983. //
  984. // }
  985. //
  986. // function switch1_case2_btn_reject_onclick(obj:Button, e:ClickEventInfo) {
  987. //
  988. // setAlertOn();
  989. // fSave("switch1.case2.btn_reject");
  990. // switch1.case2.btn_search.dispatch("DOMActivate");
  991. //
  992. // }
  993. //
  994. // function button4_onclick(obj:Button, e:ClickEventInfo) {
  995. //
  996. // model.toggle("switch1.case1");
  997. // ds_main_rephistinfo.clearData();
  998. //
  999. // //model.refresh();
  1000. //
  1001. // }
  1002. //
  1003. // function button6_onclick(obj:Button, e:ClickEventInfo) {
  1004. //
  1005. // model.toggle("switch1.case2");
  1006. // ds_main_rephistinfo.clearData();
  1007. //
  1008. // //model.refresh();
  1009. //
  1010. // }
  1011. //
  1012. function btn_spconn_onclick(obj:Button, e:ClickEventInfo) {
  1013. frmf_open("SMPAM00402", "SMPAM00402", "", "", "", "", "", "", "", "", "", "", "M");
  1014. }
  1015. function btn_reptpt_onclick(obj:Button, e:ClickEventInfo) {
  1016. if (ds_main_rephistinfo_rephistlist.rowposition < 0) {
  1017. sysf_messageBox("선택된 과제가 없습니다.", "E999");
  1018. return;
  1019. }
  1020. var projcd = ds_main_rephistinfo_rephistlist.getColumn(ds_main_rephistinfo_rephistlist.rowposition, "projcd");
  1021. frmf_setParameter("SMPAM00403_projcd", projcd);
  1022. frmf_open("SMPAM00403", "SMPAM00403", "", "", "", "", "", "", "", "", "", "", "M");
  1023. }
  1024. ]]></Script>
  1025. </Form>
  1026. </FDL>