123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC01200" position="absolute 0 0 1201 781" titletext="연구 과제 등록" oninit="SMRSC01200_oninit" onload="SMRSC01200_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="연구 과제 등록" class="tit_1" position="absolute 0 0 186 25"/>
- <Shape id="line16" class="line_2" position="absolute 0 47 1195 53" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1069 26 1125 48" anchor="default" onclick="btn_save_onclick"/>
- <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1127 26 1195 48" anchor="default" onclick="btn_clear_onclick"/>
- <Button id="btn_scrnmove" taborder="3" text="화면이동" class="btn3" visible="false" position="absolute 58 26 138 48"/>
- <Button id="btn_prt" taborder="4" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48"/>
- <Button id="btn_grdadd" taborder="5" text="행추가" class="btn2" position="absolute 1085 111 1138 130" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="6" text="행삭제" class="btn2" position="absolute 1141 111 1194 130" onclick="btn_grddel_onclick"/>
- <Shape id="line2" class="line_10" position="absolute 0 130 1195 136" anchor="left top right"/>
- <Grid id="grd_studylist" taborder="7" binddataset="ds_main_studylist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 135 1195 775" onexpanddown="grd_studylist_onexpanddown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="19"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="220"/>
- <Column size="91"/>
- <Column size="95"/>
- <Column size="88"/>
- <Column size="85"/>
- <Column size="485"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="기관코드"/>
- <Cell col="2" text="연구과제번호"/>
- <Cell col="3" text="연구과제명"/>
- <Cell col="4" colspan="2" text="책임자" taborder="undefined"/>
- <Cell col="6" text="연구시작일자"/>
- <Cell col="7" text="연구종료일자"/>
- <Cell col="8" text="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:instcd"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:stdysubjno"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:stdysubjnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:stdypsn" expandshow="show"/>
- <Cell col="5" text="bind:stdypnm"/>
- <Cell col="6" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" calendardisplaynulltype="nulltext"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:cmt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption8" text="연구과제" class="tit_2" position="absolute 0 114 95 136"/>
- <Div id="grp_sea" anchor="left top right" taborder="8" class="div_SA2" position="absolute 0 51 1195 91">
- <Layouts>
- <Layout>
- <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 11 101 28" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 3 1113 37" anchor="default"/>
- <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="default" onclick="grp_sea_btn_search_onclick"/>
- <Combo id="cmb_instcd" taborder="4" class="combo_essential" position="absolute 102 10 260 29" anchor="default" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="studylist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="studylist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_studylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_studylist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="stdysubjno" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="stdysubjnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="stdypsn" type="STRING" size="256" sumtext=""/>
- <Column id="stdypnm" type="STRING" size="256" sumtext=""/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="적용시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext=".적용종료일자"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- function SMRSC01200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRSC01200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_studylist);
- grdf_setRowTypeIcon(grd_studylist, 0);
-
- fInitialize();
-
- misfMsterDetailRetrieve();
- }
- function fInitialize()
- {
- misfComboComCdList("Z0007", grp_sea.cmb_instcd);
- misfMsterDetailSet(grd_studylist,null,"TRRSC01201","Y"); //마스터 설정
-
- misfGridInit(grd_studylist);
-
- ds_main_studylist.clearData();
- ds_send.clearData();
- ds_send.addRow();
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- btn_save.enable = frmf_checkAuth("X");
- btn_prt.enable = frmf_checkAuth("P");
-
- misfSetReadOnlyCol(grd_studylist, "instcd,stdysubjno",true);
- }
- function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- misfMsterDetailRetrieve();
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_studylist).rowcount;
-
- if ( updtdata != 0)
- {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6)
- {
- return;
- }
- }
-
- var null_check = grp_sea.cmb_instcd.value;
- if(utlf_isNull(null_check))
- {
- sysf_messageBox("기관코드를","C002");
- return;
- }
-
- misfMsterDetailRetrieve();
-
- if(ds_main_studylist.rowcount > 0)
- {
- ds_main_studylist.rowposition = 0;
- }
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_studylist, "A");
- var cur_row = ds_main_studylist.rowposition;
-
- ds_main_studylist.setColumn(cur_row, "instcd", grp_sea.cmb_instcd.value);
- ds_main_studylist.setColumn(cur_row, "fromdd", utlf_getCurrentDate());
- ds_main_studylist.setColumn(cur_row, "todd", "99991231");
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridIUD(grd_studylist, "D");
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_studylist).rowcount;
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(!frmf_chkMdtGrid(grd_studylist, [1,2,3,4,5], ["연구과제번호", "연구과제명", "책임자", "연구시작일자", "연구종료일자"])) return;
- rtn = sysf_messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- var oParam = {};
- oParam.id = "TXRSS01201";
- oParam.service = "purcbaseapp.PurcBaseMngt";
- oParam.method = "reqSaveStudyList";
- oParam.inds = "req=ds_main_studylist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRSS01201";
- tranf_submit(oParam);
- fsearch();
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitialize();
- }
- function fsearch()
- {
- var updtdata = grdf_getGridUpdateData(grd_studylist).rowcount;
- if ( updtdata != 0)
- {
- var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6)
- {
- return;
- }
- }
- misfMsterDetailRetrieve();
- misfSetReadOnlyCol(grd_studylist, "instcd,stdysubjno",true);
- }
- function grd_studylist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.cell == obj.getBindCellIndex("Body", "stdypsn"))
- {
- misfOpenPopUpList("12", grd_studylist, "", "stdypsn,stdypnm", "%", "instcd");
- }
- }
- function ds_main_studylist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if (e.columnid == "stdypsn")
- {
- misfValidationCheck("12", "", "stdypsn,stdypnm" );
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|