SPRIS00201_과제입력.xfdl 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRIS00201" position="absolute 0 0 1044 570" titletext="과제입력 및 수정" onload="SPRIS00201_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 482 50 1039 560" style="align: top;border:1 solid ;" anchor="top right">
  8. <Layouts>
  9. <Layout>
  10. <Edit id="out_projcd" class="output_fix" position="absolute 83 39 185 58" style="" anchor="default" readonly="true"/>
  11. <Edit id="ipt_studycd" class="input_essential" enable="true" taborder="1" position="absolute 271 39 551 58" style="" anchor="default"/>
  12. <Edit id="ipt_reqfirm" taborder="11" position="absolute 271 209 368 228" style="" anchor="default"/>
  13. <Static id="caption1" class="cell_1" position="absolute 0 39 80 58" style="" text="과제코드"/>
  14. <Static id="caption2" class="cell_1" position="absolute 188 39 268 58" style="" text="과제번호"/>
  15. <Static id="caption3" class="cell_1" position="absolute 0 61 80 159" style="" text="과제제목"/>
  16. <Static id="caption5" class="cell_1" position="absolute 371 231 451 250" style="" text="승인유효"/>
  17. <Static id="caption6" class="cell_1" position="absolute 0 163 80 182" style="" text="종류"/>
  18. <Combo innerdataset="@ds_init_kind" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_kind" enable="false" taborder="4" position="absolute 83 163 185 182" style=""/>
  19. <Static id="caption7" class="cell_1" position="absolute 0 209 80 228" style="" text="단계"/>
  20. <Static id="caption8" class="cell_1" position="absolute 0 365 80 482" style="" text="상세설명"/>
  21. <Static id="caption9" class="cell_1" position="absolute 271 16 356 35" style="" text="책임연구원"/>
  22. <Calendar id="ipt_cnfmdd" class="input_essential" taborder="13" position="absolute 83 231 185 250" style="" anchor="default" onkillfocus="group3_ipt_cnfmdd_onkillfocus" ontextchanged="group3_ipt_cnfmdd_ontextchanged" onchanged="group3_ipt_cnfmdd_onchanged"/>
  23. <Button id="btn_useid" class="icon_search" taborder="2" position="absolute 533 18 549 34" style="" text="" onclick="group3_btn_useid_onclick"/>
  24. <Static id="caption11" class="cell_1" position="absolute 371 163 451 182" style="" text="총연구비"/>
  25. <Static id="caption12" class="cell_1" position="absolute 188 163 268 182" style="" text="의약품명칭"/>
  26. <Static id="caption13" class="cell_1" position="absolute 371 186 451 205" style="" text="연구종료일"/>
  27. <MaskEdit id="input2" class="input_essential" taborder="6" mask="#,###" position="absolute 454 163 551 182" style="" anchor="default"/>
  28. <Calendar id="input3" taborder="7" position="absolute 83 186 185 205" style="" anchor="default"/>
  29. <Calendar id="input4" class="input_essential" taborder="9" position="absolute 454 186 551 205" style="" anchor="default"/>
  30. <Edit id="ipt_rshid" class="input_essential" enable="false" position="absolute 358 16 433 35" style="" anchor="default"/>
  31. <Edit id="ipt_rshnm" class="input_essential" enable="false" position="absolute 435 16 530 35" style="" anchor="default"/>
  32. <Static id="caption16" class="cell_1" position="absolute 371 209 451 228" style="" text="대행기관"/>
  33. <Static id="caption17" class="cell_1" position="absolute 188 253 268 272" style="" text="국가구분"/>
  34. <Static id="caption18" class="cell_1" position="absolute 371 253 451 272" style="" text="기관구분"/>
  35. <Edit id="input1" taborder="12" position="absolute 454 209 551 228" style="" anchor="default"/>
  36. <Static id="caption19" class="cell_1" position="absolute 188 209 268 228" style="" text="의뢰기관"/>
  37. <Edit id="input5" taborder="17" position="absolute 271 253 368 272" style="" anchor="default"/>
  38. <Edit id="input6" taborder="18" position="absolute 454 253 551 272" style="" anchor="default"/>
  39. <Calendar id="input7" taborder="14" position="absolute 271 231 368 250" style="" anchor="default"/>
  40. <Calendar id="input8" taborder="15" position="absolute 454 231 551 250" style="" anchor="default"/>
  41. <Static id="caption21" class="cell_1" position="absolute 0 231 80 250" style="" text="승인일"/>
  42. <Static id="caption22" class="cell_1" position="absolute 188 231 268 250" style="font:Dotum,8;" text="식약청승인일"/>
  43. <Static id="caption4" class="cell_1" position="absolute 0 253 80 272" style="" text="접수번호"/>
  44. <Edit id="input9" taborder="16" position="absolute 83 253 185 272" style="" anchor="default"/>
  45. <Static id="caption10" class="cell_1" position="absolute 0 186 80 205" style="" text="계약일"/>
  46. <Calendar id="input10" class="input_essential" taborder="8" position="absolute 271 186 368 205" style="" anchor="default"/>
  47. <Static id="caption20" class="cell_1" position="absolute 188 186 268 205" style="" text="연구시작일"/>
  48. <Edit id="input11" taborder="5" position="absolute 271 163 368 182" style="" anchor="default"/>
  49. <Edit id="input12" taborder="19" position="absolute 83 275 185 294" style="" anchor="default"/>
  50. <Static id="caption23" class="cell_1" position="absolute 0 275 80 294" style="" text="심사"/>
  51. <Static id="caption24" class="cell_1" position="absolute 188 275 268 294" style="" text="심의종류"/>
  52. <Static id="caption25" class="cell_1" position="absolute 371 275 451 294" style="" text="심의결과"/>
  53. <Edit id="input13" taborder="20" position="absolute 271 275 368 294" style="" anchor="default"/>
  54. <Edit id="input14" taborder="21" position="absolute 454 275 551 294" style="" anchor="default"/>
  55. <Static id="caption26" class="cell_1" position="absolute 0 343 80 362" style="" text="참여연구원"/>
  56. <Edit id="output1" class="output_fix" position="absolute 83 320 551 339" style="" anchor="default" readonly="true" enable="false"/>
  57. <Static id="caption27" class="cell_1" position="absolute 0 320 80 339" style="" text="공동연구자"/>
  58. <Edit id="output2" class="output_fix" position="absolute 83 343 551 362" style="" anchor="default" readonly="true" enable="false"/>
  59. <Static id="caption28" class="cell_1" position="absolute 188 297 240 316" style="" text="증례수"/>
  60. <Edit id="input15" taborder="23" position="absolute 243 297 302 316" style="" anchor="default"/>
  61. <Static id="caption29" class="cell_1" position="absolute 0 297 80 316" style="" text="최초승인일"/>
  62. <Calendar id="input16" taborder="22" position="absolute 83 297 185 316" style="" anchor="default"/>
  63. <Edit id="input17" taborder="10" position="absolute 83 209 185 228" style="" anchor="default"/>
  64. <Shape id="line5" class="line_2" linetype="horizontal" position="absolute 0 36 548 39" style="font:돋움체,,돋움체;" anchor="default"/>
  65. <Shape id="line2" class="line_2" linetype="horizontal" position="absolute 2 160 550 163" style="font:돋움체,,돋움체;" anchor="default"/>
  66. <Shape id="line3" class="line_2" linetype="horizontal" position="absolute 2 183 550 186" style="font:돋움체,,돋움체;" anchor="default"/>
  67. <Shape id="line6" class="line_2" linetype="horizontal" position="absolute 0 207 553 210" style="font:돋움체,,돋움체;" anchor="default"/>
  68. <Shape id="line7" class="line_2" linetype="horizontal" position="absolute 0 229 553 232" style="font:돋움체,,돋움체;" anchor="default"/>
  69. <Shape id="line8" class="line_2" linetype="horizontal" position="absolute 2 251 555 254" style="font:돋움체,,돋움체;" anchor="default"/>
  70. <Shape id="line9" class="line_2" linetype="horizontal" position="absolute 2 273 555 276" style="font:돋움체,,돋움체;" anchor="default"/>
  71. <Shape id="line10" class="line_2" linetype="horizontal" position="absolute 2 295 555 298" style="font:돋움체,,돋움체;" anchor="default"/>
  72. <Shape id="line11" class="line_2" linetype="horizontal" position="absolute 0 317 553 320" style="font:돋움체,,돋움체;" anchor="default"/>
  73. <Shape id="line12" class="line_2" linetype="horizontal" position="absolute 2 341 555 344" style="font:돋움체,,돋움체;" anchor="default"/>
  74. <Shape id="line13" class="line_2" linetype="horizontal" position="absolute 2 364 555 367" style="font:돋움체,,돋움체;" anchor="default"/>
  75. <Static id="caption30" class="cell_1" position="absolute 0 486 80 505" style="" text="첨부파일"/>
  76. <Edit id="ipt_attfilenm" class="input_default" enable="false" taborder="28" position="absolute 83 486 420 505" style="font:굴림체,8,8pt;align:left middle;color:#0000ff;" anchor="default"/>
  77. <Button id="btn_insert" class="btn2" taborder="18" position="absolute 421 486 485 505" text="첨부파일" onclick="group3_btn_insert_onclick"/>
  78. <Shape id="line15" class="line_2" linetype="horizontal" position="absolute 0 483 553 486" style="font:돋움체,,돋움체;" anchor="default"/>
  79. <Static id="caption31" class="cell_1" position="absolute 0 16 80 35" style="" text="기관코드"/>
  80. <Combo innerdataset="@ds_init_C0048list" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_instcd" class="combo_defalut" enable="false" position="absolute 83 16 268 35" style=""/>
  81. <Shape id="line17" class="line_2" linetype="horizontal" position="absolute 0 59 548 62" style="font:돋움체,,돋움체;" anchor="default"/>
  82. <Shape id="line00" type="rectangle" class="line_1" position="absolute -2 0 555 3" style="strokepen:1 solid #33bbbbff;"/>
  83. <Static id="caption32" text="CRIS승인번호" class="cell_1" position="absolute 305 297 403 316"/>
  84. <Edit id="input18" taborder="29" position="absolute 406 297 551 316" enable="false"/>
  85. </Layout>
  86. </Layouts>
  87. </Div>
  88. <Static id="cap_title" class="tit_1" position="absolute 0 0 207 26" style="" text="과제입력 및 수정"/>
  89. <Static id="caption14" class="tit_2" position="absolute 482 31 605 47" style="" text="입력_조회"/>
  90. <Button id="btn_save" class="btn5" taborder="26" position="absolute 934 30 976 49" style="" text="저장" onclick="btn_save_onclick"/>
  91. <Button id="btn_new" class="btn2" position="absolute 890 30 932 49" style="" text="신규" onclick="btn_new_onclick"/>
  92. <Static id="cpt_studycd" position="absolute 82 28 330 47" style="font:,,bold;align:right ;color:#0000ff;"/>
  93. <Button id="btn_cancel" class="btn4" position="absolute 979 27 1035 49" style="" text="닫기" onclick="btn_cancel_onclick"/>
  94. <Button id="btn_down" class="btn2" taborder="29" position="absolute 968 536 1032 555" text="다운로드" onclick="btn_down_onclick"/>
  95. <TextArea id="ta_projnm" taborder="3" position="absolute 565 111 1033 209" style=""/>
  96. <TextArea id="ta_projspec" taborder="24" position="absolute 565 416 1033 530" style=""/>
  97. <Grid id="grd_projhist" class="datagrid2" taborder="30" binddataset="ds_result_projhistinfo_projhistlist" useinputpanel="false" oncelldblclick="grp_projhist_grd_projhist_oncelldblclick" position="absolute 0 53 467 568" onaftersort="grp_projhist_grd_projhist_onaftersort">
  98. <Formats>
  99. <Format id="default">
  100. <Columns>
  101. <Column size="34"/>
  102. <Column size="0"/>
  103. <Column size="36"/>
  104. <Column size="75"/>
  105. <Column size="60"/>
  106. <Column size="60"/>
  107. <Column size="80"/>
  108. <Column size="180"/>
  109. <Column size="0"/>
  110. </Columns>
  111. <Rows>
  112. <Row size="35" band="head"/>
  113. <Row size="24"/>
  114. </Rows>
  115. <Band id="head">
  116. <Cell text="순번"/>
  117. <Cell col="1" text="과제번호"/>
  118. <Cell col="2" text="첨부&#10;파일"/>
  119. <Cell col="3" text="심사"/>
  120. <Cell col="4" text="심의종류"/>
  121. <Cell col="5" text="심의결과"/>
  122. <Cell col="6" text="승인일"/>
  123. <Cell col="7" text="첨부파일명"/>
  124. <Cell col="8" text="과제코드"/>
  125. </Band>
  126. <Band id="body">
  127. <Cell text="bind:seqno"/>
  128. <Cell col="1" text="bind:studycd"/>
  129. <Cell col="2" text="bind:fileyn"/>
  130. <Cell col="3" text="bind:simsa"/>
  131. <Cell col="4" text="bind:simsakind"/>
  132. <Cell col="5" text="bind:simsarslt"/>
  133. <Cell col="6" displaytype="date" text="bind:cnfmdd"/>
  134. <Cell col="7" text="bind:attfilenm"/>
  135. <Cell col="8" text="bind:attfilepath"/>
  136. <Cell col="9" text="bind:instcd"/>
  137. </Band>
  138. </Format>
  139. </Formats>
  140. </Grid>
  141. <Static id="caption15" text="과제이력" class="tit_2" position="absolute 0 31 123 47"/>
  142. <Button id="btn_hisnew" taborder="31" text="이력신규" onclick="grp_projhist_btn_hisnew_onclick" class="btn2" position="absolute 403 28 467 47"/>
  143. <Button id="btn_hisdel" taborder="32" text="이력삭제" onclick="grp_projhist_btn_hisdel_onclick" class="btn2" position="absolute 338 28 402 47"/>
  144. <Shape id="line10" type="rectangle" class="line_1" position="absolute 0 49 466 52" style="strokepen:1 solid #33bbbbff;"/>
  145. <Shape id="line00" type="rectangle" class="line_1" position="absolute 475 48 476 568" style="strokepen:1 solid #33bbbbff;" linetype="vertical"/>
  146. </Layout>
  147. </Layouts>
  148. <Objects>
  149. <Dataset id="ds_result_projhistdetlinfo_projhistdetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  150. <ColumnInfo>
  151. <Column id="projcd" type="STRING" size="256"/>
  152. <Column id="seqno" type="STRING" size="256"/>
  153. <Column id="projnm" type="STRING" size="256"/>
  154. <Column id="rshid" type="STRING" size="256"/>
  155. <Column id="cnfmdd" type="STRING" size="256"/>
  156. <Column id="stage" type="STRING" size="256"/>
  157. <Column id="projtype" type="STRING" size="256"/>
  158. <Column id="fcnfmdd" type="STRING" size="256"/>
  159. <Column id="nflag" type="STRING" size="256"/>
  160. <Column id="oflag" type="STRING" size="256"/>
  161. <Column id="cnfmvalidd" type="STRING" size="256"/>
  162. <Column id="drugnm" type="STRING" size="256"/>
  163. <Column id="reqfirm" type="STRING" size="256"/>
  164. <Column id="agent" type="STRING" size="256"/>
  165. <Column id="projamt" type="STRING" size="256"/>
  166. <Column id="cntrdd" type="STRING" size="256"/>
  167. <Column id="fromdd" type="STRING" size="256"/>
  168. <Column id="todd" type="STRING" size="256"/>
  169. <Column id="projspec" type="STRING" size="256"/>
  170. <Column id="studycd" type="STRING" size="256"/>
  171. <Column id="kind" type="STRING" size="256"/>
  172. <Column id="status" type="STRING" size="256"/>
  173. <Column id="rshnm" type="STRING" size="256"/>
  174. <Column id="simsa" type="STRING" size="256"/>
  175. <Column id="simsakind" type="STRING" size="256"/>
  176. <Column id="simsarslt" type="STRING" size="256"/>
  177. <Column id="fstcnfmdd" type="STRING" size="256"/>
  178. <Column id="samplecnt" type="STRING" size="256"/>
  179. <Column id="bresearcher" type="STRING" size="256"/>
  180. <Column id="aresearcher" type="STRING" size="256"/>
  181. <Column id="attfilenm" type="STRING" size="256"/>
  182. <Column id="attfilepath" type="STRING" size="256"/>
  183. <Column id="instcd" type="STRING" size="256"/>
  184. <Column id="hiracnfmno" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. <Rows>
  187. <Row>
  188. <Col id="projcd"/>
  189. <Col id="seqno"/>
  190. <Col id="projnm"/>
  191. <Col id="rshid"/>
  192. <Col id="cnfmdd"/>
  193. <Col id="stage"/>
  194. <Col id="projtype"/>
  195. <Col id="fcnfmdd"/>
  196. <Col id="nflag"/>
  197. <Col id="oflag"/>
  198. <Col id="cnfmvalidd"/>
  199. <Col id="drugnm"/>
  200. <Col id="reqfirm"/>
  201. <Col id="agent"/>
  202. <Col id="projamt"/>
  203. <Col id="cntrdd"/>
  204. <Col id="fromdd"/>
  205. <Col id="todd"/>
  206. <Col id="projspec"/>
  207. <Col id="studycd"/>
  208. <Col id="kind"/>
  209. <Col id="status"/>
  210. <Col id="rshnm"/>
  211. <Col id="simsa"/>
  212. <Col id="simsakind"/>
  213. <Col id="simsarslt"/>
  214. <Col id="fstcnfmdd"/>
  215. <Col id="samplecnt"/>
  216. <Col id="bresearcher"/>
  217. <Col id="aresearcher"/>
  218. <Col id="attfilenm"/>
  219. <Col id="attfilepath"/>
  220. <Col id="instcd"/>
  221. <Col id="hiracnfmno"/>
  222. </Row>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  226. <ColumnInfo>
  227. <Column id="projhistinfo" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. </Dataset>
  230. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  231. <Dataset id="ds_init_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  232. <ColumnInfo/>
  233. </Dataset>
  234. <Dataset id="ds_init_baseinfo_instinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  235. <ColumnInfo>
  236. <Column id="instcd" type="STRING" size="256"/>
  237. <Column id="hospnm" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. <Rows>
  240. <Row>
  241. <Col id="instcd"/>
  242. <Col id="hospnm"/>
  243. </Row>
  244. </Rows>
  245. </Dataset>
  246. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  247. <ColumnInfo>
  248. <Column id="file" type="STRING" size="256"/>
  249. </ColumnInfo>
  250. <Rows>
  251. <Row>
  252. <Col id="file"/>
  253. </Row>
  254. </Rows>
  255. </Dataset>
  256. <Dataset id="ds_result_studyprojlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  257. <ColumnInfo>
  258. <Column id="projcd" type="STRING" size="256"/>
  259. <Column id="studycd" type="STRING" size="256"/>
  260. <Column id="projnm" type="STRING" size="256"/>
  261. <Column id="status" type="STRING" size="256"/>
  262. <Column id="reqfirm" type="STRING" size="256"/>
  263. <Column id="kind" type="STRING" size="256"/>
  264. <Column id="rshid" type="STRING" size="256"/>
  265. <Column id="rshnm" type="STRING" size="256"/>
  266. <Column id="cnfmdd" type="STRING" size="256"/>
  267. <Column id="cntrdd" type="STRING" size="256"/>
  268. <Column id="fromdd" type="STRING" size="256"/>
  269. <Column id="todd" type="STRING" size="256"/>
  270. <Column id="cntramt" type="STRING" size="256"/>
  271. <Column id="stage" type="STRING" size="256"/>
  272. <Column id="projspec" type="STRING" size="256"/>
  273. <Column id="fstrgstrnm" type="STRING" size="256"/>
  274. <Column id="fstrgstdt" type="STRING" size="256"/>
  275. <Column id="lastupdnm" type="STRING" size="256"/>
  276. <Column id="lastupdtdt" type="STRING" size="256"/>
  277. <Column id="instcd" type="STRING" size="256"/>
  278. <Column id="projamt" type="STRING" size="256"/>
  279. <Column id="custnm" type="STRING" size="256"/>
  280. </ColumnInfo>
  281. <Rows>
  282. <Row>
  283. <Col id="projcd"/>
  284. <Col id="studycd"/>
  285. <Col id="projnm"/>
  286. <Col id="status"/>
  287. <Col id="reqfirm"/>
  288. <Col id="kind"/>
  289. <Col id="rshid"/>
  290. <Col id="rshnm"/>
  291. <Col id="cnfmdd"/>
  292. <Col id="cntrdd"/>
  293. <Col id="fromdd"/>
  294. <Col id="todd"/>
  295. <Col id="cntramt"/>
  296. <Col id="stage"/>
  297. <Col id="projspec"/>
  298. <Col id="fstrgstrnm"/>
  299. <Col id="fstrgstdt"/>
  300. <Col id="lastupdnm"/>
  301. <Col id="lastupdtdt"/>
  302. <Col id="instcd"/>
  303. <Col id="projamt"/>
  304. <Col id="custnm"/>
  305. </Row>
  306. </Rows>
  307. </Dataset>
  308. <Dataset id="ds_newprojcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  309. <ColumnInfo>
  310. <Column id="newprojcd" type="STRING" size="256"/>
  311. </ColumnInfo>
  312. </Dataset>
  313. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  314. <ColumnInfo/>
  315. </Dataset>
  316. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  317. <ColumnInfo>
  318. <Column id="projcd" type="STRING" size="256"/>
  319. <Column id="instcd" type="STRING" size="256"/>
  320. <Column id="seqno" type="STRING" size="256"/>
  321. </ColumnInfo>
  322. <Rows>
  323. <Row/>
  324. </Rows>
  325. </Dataset>
  326. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  327. <ColumnInfo>
  328. <Column id="ddflag" type="STRING" size="256"/>
  329. <Column id="status" type="STRING" size="256"/>
  330. <Column id="kind" type="STRING" size="256"/>
  331. <Column id="ddfrom" type="STRING" size="256"/>
  332. <Column id="ddto" type="STRING" size="256"/>
  333. </ColumnInfo>
  334. <Rows>
  335. <Row>
  336. <Col id="ddflag"/>
  337. <Col id="status"/>
  338. <Col id="kind"/>
  339. <Col id="ddfrom"/>
  340. <Col id="ddto"/>
  341. </Row>
  342. </Rows>
  343. </Dataset>
  344. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  345. <ColumnInfo>
  346. <Column id="selrow" type="STRING" size="256"/>
  347. <Column id="attfilenm" type="STRING" size="256"/>
  348. <Column id="attfilepath" type="STRING" size="256"/>
  349. <Column id="filepathcolnm" type="STRING" size="256"/>
  350. </ColumnInfo>
  351. <Rows>
  352. <Row/>
  353. </Rows>
  354. </Dataset>
  355. <Dataset id="ds_init_stage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  356. <Dataset id="ds_init_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  357. <Dataset id="ds_init_kind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  358. <Dataset id="ds_init_C0048list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  359. <Dataset id="ds_result_projhistinfo_projhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  360. <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  361. <ColumnInfo>
  362. <Column id="filenm" type="STRING" size="256"/>
  363. <Column id="filedata" type="BLOB" size="256"/>
  364. <Column id="filesize" type="STRING" size="256"/>
  365. <Column id="filetype" type="STRING" size="256"/>
  366. <Column id="file" type="STRING" size="256"/>
  367. </ColumnInfo>
  368. <Rows>
  369. <Row/>
  370. </Rows>
  371. </Dataset>
  372. <Dataset id="ds_attach_down" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  373. <ColumnInfo>
  374. <Column id="Column0" type="STRING" size="256"/>
  375. <Column id="Column1" type="STRING" size="256"/>
  376. </ColumnInfo>
  377. <Rows>
  378. <Row/>
  379. </Rows>
  380. </Dataset>
  381. </Objects>
  382. <Bind>
  383. <BindItem id="item0" compid="group3.out_projcd" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="projcd"/>
  384. <BindItem id="item1" compid="group3.ipt_studycd" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="studycd"/>
  385. <BindItem id="item2" compid="group3.ipt_reqfirm" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="reqfirm"/>
  386. <BindItem id="item3" compid="group3.cmb_kind" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="kind"/>
  387. <BindItem id="item4" compid="group3.ipt_cnfmdd" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="cnfmdd"/>
  388. <BindItem id="item5" compid="group3.input2" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="projamt"/>
  389. <BindItem id="item6" compid="group3.input3" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="cntrdd"/>
  390. <BindItem id="item7" compid="group3.input4" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="todd"/>
  391. <BindItem id="item8" compid="group3.ipt_rshid" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="rshid"/>
  392. <BindItem id="item9" compid="group3.ipt_rshnm" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="rshnm"/>
  393. <BindItem id="item10" compid="group3.input1" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="agent"/>
  394. <BindItem id="item11" compid="group3.input5" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="nflag"/>
  395. <BindItem id="item12" compid="group3.input6" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="oflag"/>
  396. <BindItem id="item13" compid="group3.input7" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="fcnfmdd"/>
  397. <BindItem id="item14" compid="group3.input8" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="cnfmvalidd"/>
  398. <BindItem id="item15" compid="group3.input9" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="projtype"/>
  399. <BindItem id="item16" compid="group3.input10" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="fromdd"/>
  400. <BindItem id="item17" compid="group3.input11" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="drugnm"/>
  401. <BindItem id="item18" compid="group3.input12" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="simsa"/>
  402. <BindItem id="item19" compid="group3.input13" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="simsakind"/>
  403. <BindItem id="item20" compid="group3.input14" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="simsarslt"/>
  404. <BindItem id="item21" compid="group3.output1" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="bresearcher"/>
  405. <BindItem id="item22" compid="group3.output2" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="aresearcher"/>
  406. <BindItem id="item23" compid="group3.input15" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="samplecnt"/>
  407. <BindItem id="item24" compid="group3.input16" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="fstcnfmdd"/>
  408. <BindItem id="item25" compid="group3.input17" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="stage"/>
  409. <BindItem id="item26" compid="group3.ipt_attfilenm" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="attfilenm"/>
  410. <BindItem id="item27" compid="group3.cmb_instcd" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="instcd"/>
  411. <BindItem id="item28" compid="ta_projnm" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="projnm"/>
  412. <BindItem id="item29" compid="ta_projspec" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="projspec"/>
  413. <BindItem id="item30" compid="group3.input18" propid="value" datasetid="ds_result_projhistdetlinfo_projhistdetllist" columnid="hiracnfmno"/>
  414. </Bind>
  415. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  416. * System Name :
  417. * Job Name :
  418. * Creator :
  419. * Make Date : 2017-01-10
  420. * Description :
  421. *---------------------------------------------------------------------------------------
  422. * Modify Date Modifier Modify Description
  423. *---------------------------------------------------------------------------------------
  424. * 2018-01-10 Live Converter TF->XP
  425. *
  426. *---------------------------------------------------------------------------------------
  427. ****************************************************************************************/
  428. include "com_commonxp::comm_main.xjs";
  429. var xreqdesc = ds_result_projhistdetlinfo_projhistdetllist;
  430. var xreq = ds_result_projhistinfo_projhistlist;
  431. var xsendfile = ds_send_attach;
  432. var gMaxSize = 10485760;
  433. //스크립트 끝
  434. function SPRIS00201_onload(obj:Form, e:LoadEventInfo) {
  435. frmf_initForm(obj);
  436. grdf_initGrid(grd_projhist);
  437. //grdf_setGridSort(grd_XXX);
  438. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  439. fIni();
  440. }
  441. function fIni(){
  442. var arrParam = [ {dsNm: "ds_init_stage", cdGrpId: "I0009" },
  443. {dsNm: "ds_init_status", cdGrpId: "I0010" },
  444. {dsNm: "ds_init_kind", cdGrpId: "I0011" },
  445. {dsNm: "ds_init_C0048list", cdGrpId: "C0048" }];
  446. appf_getCodeList(arrParam, true );
  447. group3.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  448. var projcd = opener.frmf_getParameter("SMRIS00201_procd");
  449. var studycd = opener.frmf_getParameter("SMRIS00201_studycd");
  450. var instcd = opener.frmf_getParameter("SMRIS00201_instcd");
  451. ds_send_reqdata.clearData();
  452. ds_send_reqdata.addRow();
  453. ds_send_reqdata.setColumn(0,"projcd", projcd);
  454. ds_send_reqdata.setColumn(0,"instcd", instcd);
  455. ds_send.setColumn(0,"selrow", "");
  456. if(!utlf_isNull(studycd)){
  457. cpt_studycd.text = "【 과제번호 : " + studycd + " 】";
  458. }
  459. var screenparam = opener.ds_send.getColumn(0,"param");
  460. var param = opener.frmf_getMenuParam();
  461. if ( param == "P" || param == "N" ) {
  462. btn_new.visible = false;
  463. btn_hisnew.visible = false;
  464. btn_hisdel.visible = false;
  465. btn_save.visible = false;
  466. group3.enable = false;
  467. }
  468. fGetProjHist();
  469. var cnt = xreq.rowcount;
  470. if(cnt > 0){
  471. xreq.rowposition = 0;
  472. fGetProjHistDetail();
  473. }
  474. }
  475. function fGetProjHist(){
  476. var oParam = {};
  477. oParam.id = "TRIIS00201";
  478. oParam.service = "ctmsapp.StudyProjMngt";
  479. oParam.method = "reqGetProjHist";
  480. oParam.inds = "req=ds_send_reqdata";
  481. oParam.outds = xreq.name + "=projhistlist";
  482. oParam.async = false;
  483. //oParam.callback = "cf_TRIIS00201";
  484. tranf_submit(oParam);
  485. }
  486. function fGetProjHistDetail() {
  487. xsendfile.clearData();
  488. xsendfile.addRow();
  489. var selectedRow = xreq.rowposition;
  490. if(selectedRow < 0){
  491. return;
  492. }
  493. group3.ipt_studycd.enable = false;
  494. group3.cmb_kind.enable = false;
  495. ds_send_reqdata.setColumn(0,"projcd", xreq.getColumn(selectedRow,"projcd"));
  496. ds_send_reqdata.setColumn(0,"seqno", xreq.getColumn(selectedRow,"seqno"));
  497. ds_send_reqdata.setColumn(0,"instcd",xreq.getColumn(selectedRow,"instcd"));
  498. var oParam = {};
  499. oParam.id = "TRIIS00202";
  500. oParam.service = "ctmsapp.StudyProjMngt";
  501. oParam.method = "reqGetProjDetlHist";
  502. oParam.inds = "req=ds_send_reqdata";
  503. oParam.outds = "ds_result_projhistdetlinfo_projhistdetllist=projhistdetllist";
  504. oParam.async = false;
  505. //oParam.callback = "cf_TRIIS00202";
  506. tranf_submit(oParam);
  507. //심평원승인번호
  508. group3.input18.enable = false;
  509. }
  510. function fSetUserinfo(){
  511. var rtn = appf_openUserInfoList("usernm");
  512. var userinfo = rtn.userInfo;
  513. if (!utlf_isNull(userinfo)) {
  514. userinfo = userinfo.split("|");
  515. var rshid = userinfo[2];
  516. var rshnm = userinfo[3];
  517. ds_result_projhistdetlinfo_projhistdetllist.setColumn( 0, "rshid", rshid);
  518. ds_result_projhistdetlinfo_projhistdetllist.setColumn( 0, "rshnm", rshnm);
  519. }
  520. }
  521. function fNewProjHist() {
  522. var selectedRow = xreq.rowposition;
  523. if(selectedRow < 0){
  524. sysf_messageBox("과제이력을 선택하세요!","I999");
  525. return;
  526. }
  527. else {
  528. if ( 6 != sysf_messageBox("선택이력을 기반으로 과제이력을 생성할까요?","Q999"))
  529. {
  530. return;
  531. }
  532. }
  533. ds_send_reqdata.setColumn(0,"projcd", xreq.getColumn(selectedRow,"projcd"));
  534. ds_send_reqdata.setColumn(0,"seqno", xreq.getColumn(selectedRow,"seqno"));
  535. ds_send_reqdata.setColumn(0,"instcd",xreq.getColumn(selectedRow,"instcd"));
  536. var oParam = {};
  537. oParam.id = "TXRIS00203";
  538. oParam.service = "ctmsapp.StudyProjMngt";
  539. oParam.method = "reqInsProjHist";
  540. oParam.inds = "req=ds_send_reqdata";
  541. oParam.outds = "ds_hidden=spcnt";
  542. oParam.async = false;
  543. //oParam.callback = "cf_TXRIS00203";
  544. tranf_submit(oParam);
  545. fGetProjHist();
  546. }
  547. function fDelProjHist() {
  548. var rows = grdf_getSelectedRows(grd_projhist);
  549. if (rows.length > 1) {
  550. sysf_messageBox("이력을 모두 삭제할수는 없습니다","I999");
  551. return;
  552. }
  553. var selectedRow = xreq.rowposition;
  554. if(selectedRow < 0){
  555. sysf_messageBox("과제이력을 선택하세요!","I999");
  556. return;
  557. }
  558. else {
  559. if ( 6 != sysf_messageBox("선택이력을 삭제할까요?","Q999"))
  560. {
  561. return;
  562. }
  563. }
  564. ds_send_reqdata.setColumn(0,"projcd", xreq.getColumn(selectedRow,"projcd"));
  565. ds_send_reqdata.setColumn(0,"seqno", xreq.getColumn(selectedRow,"seqno"));
  566. ds_send_reqdata.setColumn(0,"instcd",xreq.getColumn(selectedRow,"instcd"));
  567. var oParam = {};
  568. oParam.id = "TXRIS00204";
  569. oParam.service = "ctmsapp.StudyProjMngt";
  570. oParam.method = "reqDelProjHist";
  571. oParam.inds = "req=ds_send_reqdata";
  572. oParam.outds = "ds_hidden=spcnt";
  573. oParam.async = false;
  574. //oParam.callback = "cf_TXRIS00204";
  575. tranf_submit(oParam);
  576. fGetProjHist();
  577. }
  578. function fNewProj() {
  579. xreq.clearData();
  580. xreq.addRow();
  581. xreqdesc.clearData();
  582. xreqdesc.addRow();
  583. xsendfile.clearData();
  584. xsendfile.addRow();
  585. xreqdesc.setColumn(0,"status","P"); //진행
  586. xreqdesc.setColumn(0,"kind","O01"); //외부위탁
  587. xreqdesc.setColumn(0,"instcd",sysf_getUserInfo("dutplceinstcd"));
  588. group3.ipt_studycd.enable = true;
  589. group3.cmb_kind.enable = true;
  590. //심평원승인번호
  591. group3.input18.enable = true;
  592. }
  593. function fSave() {
  594. var projcd = xreqdesc.getColumn(0,"projcd");
  595. var studycd = xreqdesc.getColumn(0,"studycd");
  596. var rshid = xreqdesc.getColumn(0,"rshid");
  597. var projamt = xreqdesc.getColumn(0,"projamt");
  598. var fromdd = xreqdesc.getColumn(0,"fromdd");
  599. var todd = xreqdesc.getColumn(0,"todd");
  600. var cnfmdd = xreqdesc.getColumn(0,"cnfmdd");
  601. if (utlf_isNull(studycd)){
  602. sysf_messageBox("과제번호가 등록되지 않았습니다","I999");
  603. return;
  604. }
  605. if (utlf_isNull(rshid)){
  606. sysf_messageBox("책임연구원 등록되지 않았습니다","I999");
  607. return;
  608. }
  609. if (utlf_isNull(projamt)){
  610. sysf_messageBox("총연구비가 등록되지 않았습니다","I999");
  611. return;
  612. }
  613. if (utlf_isNull(fromdd)){
  614. sysf_messageBox("연구시작일이 등록되지 않았습니다","I999");
  615. return;
  616. }
  617. if (utlf_isNull(todd)){
  618. sysf_messageBox("연구종료일이 등록되지 않았습니다","I999");
  619. return;
  620. }
  621. var oParam = {};
  622. oParam.id = "TXRIS00202";
  623. oParam.service = "ctmsapp.StudyProjMngt";
  624. oParam.method = "reqExeProjHist";
  625. oParam.inds = "req="+xreqdesc.name+" attach=ds_send_attach";
  626. oParam.outds = "ds_hidden=spcnt";
  627. oParam.async = false;
  628. oParam.callback = "cf_TXRIS00202";
  629. tranf_submit(oParam);
  630. ds_send_reqdata.setColumn(0,"projcd",ds_hidden.getColumn(0,"cnt"));
  631. fGetProjHist();
  632. if( !utlf_isNull(ds_send.getColumn(0,"selrow"))){
  633. xreq.rowposition = ds_send.getColumn(0,"selrow");
  634. }else{
  635. xreq.rowposition = xreq.rowcount-1;
  636. }
  637. fGetProjHistDetail();
  638. }
  639. function cf_TXRIS00202(sSvcId, nErrorCode, sErrorMsg) {
  640. if(nErrorCode < 0) {return;};
  641. sysf_messageBox("저장되었습니다.","I999");
  642. }
  643. function group3_btn_useid_onclick(obj:Button, e:ClickEventInfo) {
  644. fSetUserinfo();
  645. }
  646. function group3_btn_insert_onclick(obj:Button, e:ClickEventInfo) {
  647. //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
  648. //파일의 크기를 측정한다.
  649. //var maxsize = upload1.attribute("filesize");
  650. var name = xreqdesc.getColumn(0,"attfilenm");
  651. if(!utlf_isNull(name) || name == '-'){
  652. var fileupdata = sysf_messageBox(name + " 파일 수정을" , "S001");
  653. if(fileupdata == '6'){
  654. //파일 삭제
  655. //input박스에 나타난 명을 제거
  656. group3.ipt_attfilenm.value = "";
  657. //파일 저장
  658. //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
  659. var fd = new FileDialog;
  660. var fileopen = fd.open("첨부 할 파일을 선택하여 주십시오.", FileDialog.LOAD);
  661. //open 파일명를 input박스에 넣는다.
  662. group3.ipt_attfilenm.value = fileopen.filename;
  663. var objFileinfo = dsf_writeFileToDs(fileopen, xsendfile, 0, "filedata");
  664. xsendfile.setColumn(0, "filenm", objFileinfo.filename);
  665. xsendfile.setColumn(0, "filesize", objFileinfo.filesize);
  666. xsendfile.setColumn(0, "filetype", objFileinfo.filetype);
  667. //파일 크기가 너무 큰경우 메세지를 띄운다.
  668. if (!checkFileSize(objFileinfo.filesize)){
  669. xsendfile.setColumn(0, "file", "");
  670. sysf_messageBox("파일 크기가 최대치(" + gMaxSize + "Byte)를", "E003");
  671. xsendfile.clearData();
  672. }
  673. dsf_makeValue( xreqdesc, "fileyn", "string", "Y");
  674. }else if(fileupdata == '7'){
  675. sysf_messageBox(name + " 파일 수정을 하지", "E007");
  676. dsf_makeValue( xreqdesc, "fileyn", "string", "N");
  677. }
  678. }else{
  679. //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
  680. var fd = new FileDialog;
  681. var fileopen = fd.open("첨부 할 파일을 선택하여 주십시오.", FileDialog.LOAD);
  682. //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
  683. //open 파일명를 input박스에 넣는다.
  684. group3.ipt_attfilenm.value = fileopen.filename;
  685. //선택한 파일이 저장버튼을 눌렀을때 저장이 되게 하기 위해 파일 저장 인스턴스에 파일주소를 저장해 둔다.
  686. var objFileinfo = dsf_writeFileToDs(fileopen, xsendfile, 0, "filedata");
  687. xsendfile.setColumn(0, "filenm", objFileinfo.filename);
  688. xsendfile.setColumn(0, "filesize", objFileinfo.filesize);
  689. xsendfile.setColumn(0, "filetype", objFileinfo.filetype);
  690. //파일 크기가 너무 큰경우 메세지를 띄운다.
  691. if (!checkFileSize(objFileinfo.filesize)){
  692. xsendfile.setColumn(0, "file", "");
  693. sysf_messageBox("파일 크기가 최대치(" + gMaxSize + "Byte)를", "E003");
  694. xsendfile.clearData();
  695. }
  696. dsf_makeValue( xreqdesc, "fileyn", "string", "Y");
  697. }
  698. }
  699. function checkFileSize(fileSize)
  700. {
  701. if (fileSize <= gMaxSize)
  702. return true;
  703. else
  704. return false;
  705. }
  706. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  707. fSave();
  708. }
  709. function grp_projhist_grd_projhist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  710. fGetProjHistDetail();
  711. ds_send.setColumn( 0, "selrow", e.row );
  712. }
  713. function grp_projhist_btn_hisnew_onclick(obj:Button, e:ClickEventInfo) {
  714. var instcd = opener.frmf_getParameter("SMRIS00201_instcd");
  715. if( instcd != sysf_getUserInfo("dutplceinstcd") ){
  716. sysf_messageBox("접속하신 기관에 대한 과제만 입력하실 수 있습니다.","I999");
  717. return;
  718. }else{
  719. fNewProjHist();
  720. }
  721. }
  722. function grp_projhist_btn_hisdel_onclick(obj:Button, e:ClickEventInfo) {
  723. var instcd = opener.frmf_getParameter("SMRIS00201_instcd");
  724. if( instcd != sysf_getUserInfo("dutplceinstcd") ){
  725. sysf_messageBox("접속하신 기관에 대한 과제만 입력하실 수 있습니다.","I999");
  726. return;
  727. }else{
  728. fDelProjHist();
  729. }
  730. }
  731. function btn_new_onclick(obj:Button, e:ClickEventInfo) {
  732. fNewProj();
  733. }
  734. function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  735. close();
  736. }
  737. function btn_down_onclick(obj:Button, e:ClickEventInfo) {
  738. if(utlf_isNull(ds_result_projhistdetlinfo_projhistdetllist.getColumn(0, "attfilenm"))) {
  739. sysf_messageBox("다운로드 할 파일을 ", "C002");
  740. return;
  741. } else if( utlf_isNull(ds_result_projhistdetlinfo_projhistdetllist.getColumn(0, "attfilenm"))) {
  742. sysf_messageBox("저장된 파일이 존재하지 않습니다.", "E999");
  743. return;
  744. } else {
  745. //파일명를 받아옴
  746. var getfilenm = xreqdesc.getColumn(0, "attfilenm");
  747. var getfilepath = xreqdesc.getColumn(0, "attfilepath");
  748. //파일명이 있는 경우 다운로드
  749. if(!utlf_isNull(getfilenm)){
  750. //파일명을 받아옴
  751. var filenm = xreqdesc.getColumn(0, "attfilenm");
  752. //파일명의 확장자만 받아옴
  753. var fileext = filenm.lastIndexOf(".");
  754. var ext = filenm.substring(fileext +1);
  755. //파일을 다운로드 하기 위해 저장할 창을 띄움
  756. var fd = new FileDialog;
  757. var filesave = fd.open("다운 받을 위치를 선택하여 주십시오.", FileDialog.SAVE, "", filenm);
  758. ds_send.setColumn( 0, "attfilenm", getfilenm );
  759. ds_send.setColumn( 0, "attfilepath", getfilepath );
  760. ds_send.setColumn( 0, "filepathcolnm", "attfilepath" );
  761. //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
  762. if (!utlf_isNull(filesave)) {
  763. var oParam = {};
  764. oParam.id = "TRRIS00206";
  765. oParam.service = "ctmsapp.StudyProjMngt";
  766. oParam.method = "reqExeFileDownLoad";
  767. oParam.inds = "req=ds_send";
  768. oParam.outds = "ds_attach_down=filelist";
  769. oParam.async = false;
  770. //oParam.callback = "cf_TRRIS00206";
  771. tranf_submit(oParam);
  772. if (filesave != null) {
  773. dsf_readFileFromDs(filesave.fullpath, ds_attach_down, 0, "attfilecnts"); // 파일저장
  774. }
  775. }
  776. }
  777. }
  778. }
  779. function group3_ipt_cnfmdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  780. {
  781. if(!utlf_isNull(e.posttext)){
  782. var rdd = (xreqdesc.getColumn(0, "cnfmdd").toDate()).getAddDate(1, "Y").getDateFormat();
  783. xreqdesc.setColumn( 0, "cnfmvalidd", rdd );
  784. }
  785. }
  786. ]]></Script>
  787. </Form>
  788. </FDL>