SMRIS00600_연구원등록및관리.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRIS00600" position="absolute 0 0 1204 769" titletext="연구원 등록 및 관리" onload="SMRIS00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption11" class="cell_1" position="absolute 0 53 78 75" style="" text="과제번호"/>
  8. <Static id="caption10" class="tit_1" position="absolute 0 0 160 26" style="" text="참여연구원 관리"/>
  9. <Static id="caption_cdgrup_list" class="tit_2" position="absolute 0 32 118 50" style="" text="연구과제"/>
  10. <Grid id="grd_stdylist" binddataset="ds_main_cond_stdyinfo_stdylist" position="absolute 0 77 485 767" style="" oncelldblclick="grd_stdylist_oncelldblclick" autofittype="col" anchor="left top bottom">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="108"/>
  15. <Column size="213"/>
  16. <Column size="90"/>
  17. <Column size="54"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="과제번호"/>
  25. <Cell col="1" text="과제명"/>
  26. <Cell col="2" text="연구책임자"/>
  27. <Cell col="3" text="상태"/>
  28. </Band>
  29. <Band id="body">
  30. <Cell style="align:left middle;" text="bind:studycd"/>
  31. <Cell col="1" style="align:left middle;" text="bind:projnm"/>
  32. <Cell col="2" text="bind:rshnm"/>
  33. <Cell col="3" displaytype="combo" style="align:center;" text="bind:status" combodataset="ds_init_status" combocodecol="cdid" combodatacol="cdnm"/>
  34. </Band>
  35. </Format>
  36. </Formats>
  37. </Grid>
  38. <Static id="caption1" class="cell_1" position="absolute 184 53 264 75" style="" text="책임연구원"/>
  39. <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 0 49 485 52" style="" anchor="default" type="rectangle"/>
  40. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 490 49 1200 52" style="border:0 none #808080ff ;" anchor="left top right" type="rectangle"/>
  41. <Static id="caption2" class="tit_2" position="absolute 490 32 613 50" style="" text="참여연구원"/>
  42. <Shape id="line3" class="line_3" linetype="horizontal" position="absolute 0 76 486 79" style="" anchor="default"/>
  43. <Button id="btn_search" class="btn2" position="absolute 441 54 483 73" style="" text="조회" onclick="btn_search_onclick"/>
  44. <Button id="btn_insert" class="btn2" position="absolute 1157 28 1199 47" style="" text="신규" onclick="btn_insert_onclick" anchor="top right"/>
  45. <Edit id="input1" position="absolute 80 54 182 73" style="" anchor="default" onkeypress="input1_onkeypress"/>
  46. <Button id="btn_useid" class="icon_search" taborder="5" position="absolute 420 55 436 71" style="" text="" onclick="btn_useid_onclick"/>
  47. <Edit id="output1" class="output_fix" position="absolute 338 54 416 73" style="" anchor="default" readonly="true" enable="false"/>
  48. <Edit id="output2" class="output_fix" position="absolute 266 54 336 73" style="" anchor="default" readonly="true" enable="false"/>
  49. <Grid id="grd_member" binddataset="ds_main_researcherinfo" position="absolute 490 53 1200 768" style="align:center ;" oncelldblclick="grd_member_oncelldblclick" onaftersort="grd_member_onaftersort" anchor="all">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="55"/>
  54. <Column size="70"/>
  55. <Column size="96"/>
  56. <Column size="86"/>
  57. <Column size="78"/>
  58. <Column size="100"/>
  59. <Column size="44"/>
  60. <Column size="130"/>
  61. <Column size="135"/>
  62. <Column size="270"/>
  63. <Column size="115"/>
  64. <Column size="100"/>
  65. <Column size="80"/>
  66. <Column size="80"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell text="과제코드"/>
  74. <Cell col="1" text="이름"/>
  75. <Cell col="2" text="주민번호(앞)"/>
  76. <Cell col="3" text="타입"/>
  77. <Cell col="4" text="상태"/>
  78. <Cell col="5" text="핸드폰"/>
  79. <Cell col="6" text="성별"/>
  80. <Cell col="7" text="학교"/>
  81. <Cell col="8" text="이메일"/>
  82. <Cell col="9" text="주소"/>
  83. <Cell col="10" text="은행명"/>
  84. <Cell col="11" text="계좌번호"/>
  85. <Cell col="12" text="시작일"/>
  86. <Cell col="13" text="종료일"/>
  87. </Band>
  88. <Band id="body">
  89. <Cell text="bind:projcd"/>
  90. <Cell col="1" text="bind:hngnm"/>
  91. <Cell col="2" text="bind:rrgstno1"/>
  92. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:kind" combodataset="ds_grd_kind" combocodecol="cdid" combodatacol="cdnm"/>
  93. <Cell col="4" displaytype="combo" style="align:center;" text="bind:status" combodataset="ds_init_status" combocodecol="cdid" combodatacol="cdnm"/>
  94. <Cell col="5" text="bind:hp"/>
  95. <Cell col="6" text="bind:sex"/>
  96. <Cell col="7" text="bind:school"/>
  97. <Cell col="8" text="bind:email"/>
  98. <Cell col="9" text="bind:address"/>
  99. <Cell col="10" text="bind:banknm"/>
  100. <Cell col="11" text="bind:account"/>
  101. <Cell col="12" text="bind:fromdd"/>
  102. <Cell col="13" text="bind:todd"/>
  103. </Band>
  104. </Format>
  105. </Formats>
  106. </Grid>
  107. <Button id="button1" class="btn2" position="absolute 1112 28 1154 47" style="" text="삭제" onclick="button1_onclick" anchor="top right"/>
  108. <CheckBox text="종결포함" truevalue="Y" falsevalue="" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cbx_e" position="absolute 413 29 483 49" style="">
  109. <Dataset id="innerdataset">
  110. <ColumnInfo>
  111. <Column id="codecolumn"/>
  112. <Column id="datacolumn"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="codecolumn">Y</Col>
  117. <Col id="datacolumn">종결포함</Col>
  118. </Row>
  119. </Rows>
  120. </Dataset>
  121. </CheckBox>
  122. </Layout>
  123. </Layouts>
  124. <Objects>
  125. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  126. <ColumnInfo>
  127. <Column id="hidden" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. <Rows>
  130. <Row>
  131. <Col id="hidden"/>
  132. </Row>
  133. </Rows>
  134. </Dataset>
  135. <Dataset id="ds_main_cond_stdycnfmdd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  136. <ColumnInfo>
  137. <Column id="frmdd" type="STRING" size="256"/>
  138. <Column id="todd" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. <Rows>
  141. <Row>
  142. <Col id="frmdd"/>
  143. <Col id="todd"/>
  144. </Row>
  145. </Rows>
  146. </Dataset>
  147. <Dataset id="ds_main_cond_stdyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  148. <ColumnInfo/>
  149. </Dataset>
  150. <Dataset id="ds_init_stdyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  151. <ColumnInfo/>
  152. </Dataset>
  153. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  154. <ColumnInfo/>
  155. </Dataset>
  156. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  157. <ColumnInfo/>
  158. </Dataset>
  159. <Dataset id="ds_main_cond_bnkcrdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  160. <ColumnInfo/>
  161. </Dataset>
  162. <Dataset id="ds_main_cond_bnkcrdinfo_bclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  163. <ColumnInfo>
  164. <Column id="projcd" type="STRING" size="256"/>
  165. <Column id="acntcd" type="STRING" size="256"/>
  166. <Column id="bizflag" type="STRING" size="256"/>
  167. <Column id="acntnm" type="STRING" size="256"/>
  168. <Column id="acntspec" type="STRING" size="256"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="projcd"/>
  173. <Col id="acntcd"/>
  174. <Col id="bizflag"/>
  175. <Col id="acntnm"/>
  176. <Col id="acntspec"/>
  177. </Row>
  178. </Rows>
  179. </Dataset>
  180. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  181. <ColumnInfo>
  182. <Column id="userid" type="STRING" size="256"/>
  183. <Column id="rshid" type="STRING" size="256"/>
  184. <Column id="rshnm" type="STRING" size="256"/>
  185. <Column id="studycd" type="STRING" size="256"/>
  186. <Column id="estatus" type="STRING" size="256"/>
  187. </ColumnInfo>
  188. <Rows>
  189. <Row>
  190. <Col id="userid"/>
  191. <Col id="rshid"/>
  192. <Col id="rshnm"/>
  193. <Col id="studycd"/>
  194. </Row>
  195. </Rows>
  196. </Dataset>
  197. <Dataset id="ds_temp_bcsetrslt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  198. <ColumnInfo>
  199. <Column id="rtnvalue" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. </Dataset>
  202. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  203. <ColumnInfo>
  204. <Column id="sdtysrch" type="STRING" size="256"/>
  205. <Column id="rshinfo" type="STRING" size="256"/>
  206. <Column id="bnkcrdinfo" type="STRING" size="256"/>
  207. <Column id="bclist" type="STRING" size="256"/>
  208. <Column id="reqdata" type="STRING" size="256"/>
  209. <Column id="userinfo" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="sdtysrch"/>
  214. <Col id="rshinfo"/>
  215. <Col id="bnkcrdinfo"/>
  216. <Col id="bclist"/>
  217. <Col id="reqdata"/>
  218. <Col id="userinfo"/>
  219. </Row>
  220. </Rows>
  221. </Dataset>
  222. <Dataset id="ds_main_cond_stdyinfo_stdylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  223. <ColumnInfo>
  224. <Column id="projcd" type="STRING" size="256"/>
  225. <Column id="projnm" type="STRING" size="256"/>
  226. <Column id="rshnm" type="STRING" size="256"/>
  227. <Column id="studycd" type="STRING" size="256"/>
  228. </ColumnInfo>
  229. <Rows>
  230. <Row>
  231. <Col id="projcd"/>
  232. <Col id="projnm"/>
  233. <Col id="rshnm"/>
  234. <Col id="studycd"/>
  235. </Row>
  236. </Rows>
  237. </Dataset>
  238. <Dataset id="ds_init_stdyinfo_rshinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  239. <ColumnInfo>
  240. <Column id="userid" type="STRING" size="256"/>
  241. <Column id="usernm" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. <Rows>
  244. <Row>
  245. <Col id="userid"/>
  246. <Col id="usernm"/>
  247. </Row>
  248. </Rows>
  249. </Dataset>
  250. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  251. <Dataset id="ds_send_sdtysrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  252. <Dataset id="ds_init_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  253. <Dataset id="ds_send_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  254. <Dataset id="ds_main_researcherinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  255. <Dataset id="ds_grd_kind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  256. <ColumnInfo>
  257. <Column id="cdid" type="STRING" size="256"/>
  258. <Column id="cdnm" type="STRING" size="256"/>
  259. </ColumnInfo>
  260. <Rows>
  261. <Row>
  262. <Col id="cdid">A</Col>
  263. <Col id="cdnm">참여</Col>
  264. </Row>
  265. <Row>
  266. <Col id="cdid">C</Col>
  267. <Col id="cdnm">참여(ID없음)</Col>
  268. </Row>
  269. <Row>
  270. <Col id="cdid">B</Col>
  271. <Col id="cdnm">공동</Col>
  272. </Row>
  273. </Rows>
  274. </Dataset>
  275. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  276. </Objects>
  277. <Bind>
  278. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main_cond" columnid="studycd"/>
  279. <BindItem id="item1" compid="output1" propid="value" datasetid="ds_main_cond" columnid="rshnm"/>
  280. <BindItem id="item2" compid="output2" propid="value" datasetid="ds_main_cond" columnid="rshid"/>
  281. <BindItem id="item3" compid="cbx_e" propid="value" datasetid="ds_main_cond" columnid="estatus"/>
  282. </Bind>
  283. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  284. * System Name :
  285. * Job Name :
  286. * Creator :
  287. * Make Date : 2017-01-15
  288. * Description :
  289. *---------------------------------------------------------------------------------------
  290. * Modify Date Modifier Modify Description
  291. *---------------------------------------------------------------------------------------
  292. * 2018-01-10 Live Converter TF->XP
  293. *
  294. *---------------------------------------------------------------------------------------
  295. ****************************************************************************************/
  296. include "com_commonxp::comm_main.xjs";
  297. function SMRIS00600_onload(obj:Form, e:LoadEventInfo) {
  298. frmf_initForm(obj);
  299. grdf_initGrid(grd_stdylist);
  300. grdf_initGrid(grd_member);
  301. //grdf_setGridSort(grd_XXX);
  302. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  303. fInitialize();
  304. }
  305. var PARAM = "";
  306. function fInitialize(){
  307. var arrParam = [ {dsNm: "ds_init_status", cdGrpId: "I0010" }];
  308. appf_getCodeList(arrParam, true );
  309. PARAM = String(frmf_getMenuParam());
  310. if (frmf_isPopup()) {
  311. var menuparam = opener.frmf_getParameter("SMRIS00600_menuparam");
  312. var rshid = opener.frmf_getParameter("SMRIS00600_rshid");
  313. var rshnm = opener.frmf_getParameter("SMRIS00600_rshnm");
  314. var studycd = opener.frmf_getParameter("SMRIS00600_studycd");
  315. ds_main_cond.setColumn( 0, "rshid", rshid );
  316. ds_main_cond.setColumn( 0, "rshnm", rshnm );
  317. ds_main_cond.setColumn( 0, "studycd", studycd );
  318. ds_main_cond.setColumn( 0, "estatus", "Y" );
  319. btn_search.click();
  320. }else{
  321. // 연구소
  322. if( PARAM == "A" ){
  323. ds_main_cond.setColumn( 0, "rshnm" , "" );
  324. ds_main_cond.setColumn( 0, "rshid" , "" );
  325. ds_main_cond.setColumn( 0, "estatus", "Y" );
  326. }else{
  327. ds_main_cond.setColumn( 0, "rshid", sysf_getUserId() );
  328. ds_main_cond.setColumn( 0, "rshnm", sysf_getUserName() );
  329. ds_main_cond.setColumn( 0, "estatus", "Y" );
  330. btn_search.click();
  331. }
  332. }
  333. // 연구과제를 쿼리
  334. dsf_makeValue( ds_send_reqdata, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  335. }
  336. //
  337. // /**
  338. // * _desc : 연구원 등록
  339. // *
  340. // * _param :
  341. // * _return :
  342. // * _author :
  343. // * _---------------------------------------------------
  344. // */
  345. // function fResearcherSave(){
  346. // if(fSaveChk()!=false){ // 저장전 필수입력 체크
  347. // ds_send_savedata.copyData(ds_send_detail);
  348. // dsf_makeValue( ds_send_savedata, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  349. // // if(submit("TXRIS00600")){// 연구원을 저장
  350. // var oParam = {};
  351. // oParam.id = "TRRIS00600";
  352. // oParam.service = "ctmsapp.ResearcherMngt";
  353. // oParam.method = "reqSetResearcher";
  354. // oParam.inds = "req=ds_";
  355. // oParam.outds = "ds_=item";
  356. // oParam.async = false;
  357. // oParam.callback = "cf_TRRIS00600";
  358. //
  359. // tranf_submit(oParam);
  360. // /*
  361. // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
  362. // if(nErrorCode < 0) return;
  363. // }
  364. // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
  365. // arErrorCode.push(sSvcId, nErrorCode);
  366. // }
  367. // arErrorCode.pop("TRRIS00600") > -1
  368. // arErrorCode.pop("TRRIS00600") < 0
  369. // */
  370. //
  371. //
  372. // //ds_send_detail.clearData(); ds_send_detail.addRow(); //연구원 등록 입력폼 초기화
  373. //
  374. // //연구과제, 이름, 주민번호 사용가능
  375. // combo3.enable = true;
  376. // input20.enable = true;
  377. // input21.enable = true;
  378. //
  379. // ds_main_search_cond.setColumn( 0, "projcd", ds_send_savedata.getColumn(0, "projcd"));
  380. // dsf_makeValue( ds_send_reqdata, "projcd", "string", ds_send_savedata.getColumn(0, "projcd"));
  381. // dsf_makeValue( ds_send_reqdata, "chk", "string", ds_main_search_cond.getColumn(0, "chk"));
  382. // // submit("TRRIS00610");
  383. // var oParam = {};
  384. // oParam.id = "TRRIS00600";
  385. // oParam.service = "ctmsapp.ResearcherMngt";
  386. // oParam.method = "reqGetResearcher";
  387. // oParam.inds = "req=ds_";
  388. // oParam.outds = "ds_=item";
  389. // oParam.async = false;
  390. // oParam.callback = "cf_TRRIS00600";
  391. //
  392. // tranf_submit(oParam);
  393. // /*
  394. // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
  395. // if(nErrorCode < 0) return;
  396. // }
  397. // function cf_TRRIS00600(sSvcId, nErrorCode, sErrorMsg) {
  398. // arErrorCode.push(sSvcId, nErrorCode);
  399. // }
  400. // arErrorCode.pop("TRRIS00600") > -1
  401. // arErrorCode.pop("TRRIS00600") < 0
  402. // */
  403. //
  404. //
  405. //
  406. // dsf_makeValue( ds_send_detail, "projcd", "string", "" );
  407. // dsf_makeValue( ds_send_detail, "hngnm", "string", "" );
  408. // dsf_makeValue( ds_send_detail, "rrgstno", "string", "" );
  409. // dsf_makeValue( ds_send_detail, "kind", "string", "" );
  410. // dsf_makeValue( ds_send_detail, "status", "string", "" );
  411. // dsf_makeValue( ds_send_detail, "fromdd", "string", "" );
  412. // dsf_makeValue( ds_send_detail, "todd", "string", "" );
  413. // dsf_makeValue( ds_send_detail, "hp", "string", "" );
  414. // dsf_makeValue( ds_send_detail, "sex", "string", "" );
  415. // dsf_makeValue( ds_send_detail, "school", "string", "" );
  416. // dsf_makeValue( ds_send_detail, "email", "string", "" );
  417. // dsf_makeValue( ds_send_detail, "address", "string", "" );
  418. // dsf_makeValue( ds_send_detail, "banknm", "string", "" );
  419. // dsf_makeValue( ds_send_detail, "account", "string", "" );
  420. //
  421. // // 타입과 상태값을 초기화
  422. // ds_send_detail.setColumn( 0, "kind", "A");
  423. // ds_send_detail.setColumn( 0, "status", "P" );
  424. // }
  425. //
  426. // //model.refresh();
  427. //
  428. // }
  429. // }
  430. //
  431. // /**
  432. // * _desc : 연구원 등록 전 필수입력항목 체크
  433. // *
  434. // * _param :
  435. // * _return :
  436. // * _author :
  437. // * _---------------------------------------------------
  438. // */
  439. // function fSaveChk(){
  440. // var projcd = ds_send_detail.getColumn(0, "projcd");
  441. // var hngnm = ds_send_detail.getColumn(0, "hngnm");
  442. // var rrgstno = ds_send_detail.getColumn(0, "rrgstno");
  443. //
  444. // if(projcd==""){
  445. // sysf_messageBox("연구과제 선택은", "I003");
  446. // return false;
  447. // }
  448. //
  449. // if(hngnm==""){
  450. // sysf_messageBox("연구원 이름은", "I003");
  451. // return false;
  452. // }
  453. //
  454. // if(rrgstno==""){
  455. // sysf_messageBox("연구원 주민번호는", "I003");
  456. // return false;
  457. // }
  458. // }
  459. //
  460. /**
  461. * _desc : 연구원 검색
  462. *
  463. * _param :
  464. * _return :
  465. * _author :
  466. * _---------------------------------------------------
  467. */
  468. function fResearcherSearch(){
  469. var sRow = grd_stdylist.currentrow ;
  470. var sProjcd = ds_main_cond_stdyinfo_stdylist.getColumn(sRow, "projcd");
  471. dsf_makeValue( ds_send_reqdata, "projcd", "string", sProjcd);
  472. var oParam = {};
  473. oParam.id = "TRRIS00600";
  474. oParam.service = "ctmsapp.ResearcherMngt";
  475. oParam.method = "reqGetResearcher";
  476. oParam.inds = "req=ds_send_reqdata";
  477. oParam.outds = "ds_main_researcherinfo=item";
  478. oParam.async = false;
  479. //oParam.callback = "cf_TRRIS00600";
  480. tranf_submit(oParam);
  481. }
  482. //
  483. //
  484. function fNew(){
  485. var select_row = grd_stdylist.currentrow;
  486. if(select_row < 0){
  487. return;
  488. }
  489. ds_send_detail.clearData();
  490. ds_send_detail.addRow();
  491. dsf_makeValue( ds_send_detail, "projcd", "string", ds_main_cond_stdyinfo_stdylist.getColumn(select_row, "projcd"));
  492. dsf_makeValue( ds_send_detail, "studycd", "string", ds_main_cond_stdyinfo_stdylist.getColumn(select_row, "studycd"));
  493. dsf_makeValue( ds_send_detail, "kind", "string", "A");
  494. dsf_makeValue( ds_send_detail, "status", "string", "P");
  495. dsf_makeValue( ds_send_detail, "newyn", "string", "Y");
  496. dsf_makeValue( ds_send_detail, "usernm", "string", "" );
  497. dsf_makeValue( ds_send_detail, "userid", "string", "" );
  498. dsf_makeValue( ds_send_detail, "fromdd", "string", "" );
  499. dsf_makeValue( ds_send_detail, "todd", "string", "" );
  500. dsf_makeValue( ds_send_detail, "hp", "string", "" );
  501. dsf_makeValue( ds_send_detail, "sex", "string", "" );
  502. dsf_makeValue( ds_send_detail, "school", "string", "" );
  503. dsf_makeValue( ds_send_detail, "email", "string", "" );
  504. dsf_makeValue( ds_send_detail, "address", "string", "" );
  505. dsf_makeValue( ds_send_detail, "banknm", "string", "" );
  506. dsf_makeValue( ds_send_detail, "account", "string", "" );
  507. dsf_makeValue( ds_send_detail, "wname", "string", "" );
  508. dsf_makeValue( ds_send_detail, "rrgstno1", "string", "" );
  509. var objArg = new Object();
  510. objArg.arg_ds_target = ds_send_detail;
  511. frmf_modal("SMRIS00601", "SMRIS00601", objArg, "", "", "", "", "", "", "", "", "", "M");
  512. }
  513. function fResearcherDetail(){
  514. var select_row = grd_member.currentrow;
  515. if(select_row < 0){
  516. return;
  517. }
  518. ds_send_detail.clearData();
  519. ds_send_detail.addRow();
  520. dsf_makeValue( ds_send_detail, "projcd", "string", ds_main_researcherinfo.getColumn(select_row, "projcd"));
  521. dsf_makeValue( ds_send_detail, "studycd", "string", ds_main_researcherinfo.getColumn(select_row, "studycd"));
  522. dsf_makeValue( ds_send_detail, "usernm", "string", ds_main_researcherinfo.getColumn(select_row, "hngnm"));
  523. dsf_makeValue( ds_send_detail, "userid", "string", ds_main_researcherinfo.getColumn(select_row, "userid"));
  524. dsf_makeValue( ds_send_detail, "kind", "string", ds_main_researcherinfo.getColumn(select_row, "kind"));
  525. dsf_makeValue( ds_send_detail, "status", "string", ds_main_researcherinfo.getColumn(select_row, "status"));
  526. dsf_makeValue( ds_send_detail, "fromdd", "string", ds_main_researcherinfo.getColumn(select_row, "fromdd"));
  527. dsf_makeValue( ds_send_detail, "todd", "string", ds_main_researcherinfo.getColumn(select_row, "todd"));
  528. dsf_makeValue( ds_send_detail, "hp", "string", ds_main_researcherinfo.getColumn(select_row, "hp"));
  529. dsf_makeValue( ds_send_detail, "sex", "string", ds_main_researcherinfo.getColumn(select_row, "sex"));
  530. dsf_makeValue( ds_send_detail, "school", "string", ds_main_researcherinfo.getColumn(select_row, "school"));
  531. dsf_makeValue( ds_send_detail, "email", "string", ds_main_researcherinfo.getColumn(select_row, "email"));
  532. dsf_makeValue( ds_send_detail, "address", "string", ds_main_researcherinfo.getColumn(select_row, "address"));
  533. dsf_makeValue( ds_send_detail, "banknm", "string", ds_main_researcherinfo.getColumn(select_row, "banknm"));
  534. dsf_makeValue( ds_send_detail, "account", "string", ds_main_researcherinfo.getColumn(select_row, "account"));
  535. dsf_makeValue( ds_send_detail, "rrgstno1", "string", ds_main_researcherinfo.getColumn(select_row, "rrgstno1"));
  536. dsf_makeValue( ds_send_detail, "wname", "string", ds_main_researcherinfo.getColumn(select_row, "hngnm"));
  537. dsf_makeValue( ds_send_detail, "newyn", "string", "N");
  538. var objArg = new Object();
  539. objArg.arg_ds_target = ds_send_detail;
  540. frmf_modal("SMRIS00601", "SMRIS00601", objArg, "", "", "", "", "", "", "", "", "", "M");
  541. }
  542. function fDel(){
  543. var select_row = grd_member.currentrow;
  544. if(select_row < 0){
  545. sysf_messageBox("삭제할 연구원을 선택하세요!","I999");
  546. return;
  547. }
  548. else {
  549. if ( 6 != sysf_messageBox("선택한 연구원을 삭제할까요?","Q999"))
  550. {
  551. return;
  552. }
  553. }
  554. dsf_makeValue( ds_send_savedata, "projcd", "string", ds_main_researcherinfo.getColumn(select_row, "projcd"));
  555. dsf_makeValue( ds_send_savedata, "userid", "string", ds_main_researcherinfo.getColumn(select_row, "userid"));
  556. var oParam = {};
  557. oParam.id = "TXRIS00520";
  558. oParam.service = "ctmsapp.StudyProjMngt";
  559. oParam.method = "reqDelResearcher";
  560. oParam.inds = "req=ds_send_savedata";
  561. //oParam.outds = "ds_=rslt";
  562. oParam.async = false;
  563. //oParam.callback = "cf_TXRIS00520";
  564. tranf_submit(oParam);
  565. fResearcherSearch();
  566. }
  567. function fSdtySearch(){
  568. var rshid = ds_main_cond.getColumn(0, "rshid");
  569. if ( utlf_isNull(rshid) && PARAM != "A" )
  570. {
  571. sysf_messageBox("책임연구원이 선택되지 않았습니다!","Q999");
  572. return;
  573. }
  574. ds_send_sdtysrch.clearData();
  575. dsf_makeValue( ds_send_sdtysrch, "suserid", "string", ds_main_cond.getColumn(0, "rshid"));
  576. dsf_makeValue( ds_send_sdtysrch, "studycd", "string", ds_main_cond.getColumn(0, "studycd"));
  577. dsf_makeValue( ds_send_sdtysrch, "estatus", "string", ds_main_cond.getColumn(0, "estatus"));
  578. var oParam = {};
  579. oParam.id = "TRRIS00520";
  580. oParam.service = "ctmsapp.StudyProjMngt";
  581. oParam.method = "reqGetStdyInfo";
  582. oParam.inds = "req=ds_send_sdtysrch";
  583. oParam.outds = "ds_main_cond_stdyinfo_stdylist=stdylist";
  584. oParam.async = false;
  585. //oParam.callback = "cf_TRRIS00520";
  586. tranf_submit(oParam);
  587. }
  588. function fSetUserinfo(){
  589. var rtn = appf_openUserInfoList("usernm");
  590. var userinfo = rtn.userInfo;
  591. if (!utlf_isNull(userinfo)) {
  592. userinfo = userinfo.split("|");
  593. var rshid = userinfo[2];
  594. var rshnm = userinfo[3];
  595. ds_main_cond.setColumn( 0, "rshid", rshid);
  596. ds_main_cond.setColumn( 0, "rshnm", rshnm);
  597. }
  598. }
  599. function grd_stdylist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  600. fResearcherSearch();
  601. }
  602. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  603. obj.setFocus();
  604. fSdtySearch();
  605. }
  606. function btn_insert_onclick(obj:Button, e:ClickEventInfo) {
  607. fNew();
  608. }
  609. function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
  610. if(e.keycodeyCode == "13") {
  611. btn_search.click();
  612. }
  613. }
  614. function btn_useid_onclick(obj:Button, e:ClickEventInfo) {
  615. fSetUserinfo();
  616. }
  617. function grd_member_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  618. fResearcherDetail();
  619. }
  620. function button1_onclick(obj:Button, e:ClickEventInfo) {
  621. fDel();
  622. }
  623. ]]></Script>
  624. </Form>
  625. </FDL>