123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRAH04100" position="absolute 0 0 619 300" titletext="프로젝트 진행사항" oninit="SMRAH04100_oninit" onload="SMRAH04100_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="프로젝트 진행사항" class="tit_1" position="absolute 0 0 157 25"/>
- <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 38 615 44"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" enable="false" position="absolute 501 18 557 40" onclick="btn_save_onclick"/>
- <Button id="btn_close" taborder="2" text="닫기" class="btn4" position="absolute 559 18 615 40" onclick="btn_close_onclick"/>
- <Button id="btn_delete" taborder="3" text="삭제" class="btn4" enable="false" position="absolute 443 18 499 40" onclick="btn_delete_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 0 58 615 64"/>
- <Shape id="line13" linetype="horizontal" class="line_2" position="absolute 1 84 613 90"/>
- <Static id="caption20" text="보고서" class="tit_2" position="absolute 1 42 122 58"/>
- <Static id="cap_matrcd" text="프로젝트 번호" class="cell_1" position="absolute 0 63 90 86"/>
- <Static id="cap_matrnm" text="프로젝트 명" class="cell_1" position="absolute 0 88 90 111"/>
- <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 1 109 613 115"/>
- <Static id="caption25" text="보고내용" class="cell_1" position="absolute 0 138 90 202"/>
- <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 1 200 613 206"/>
- <Shape id="line20" linetype="horizontal" class="line_2" position="absolute 1 134 613 140"/>
- <Static id="caption11" text="보고일자" class="cell_1" position="absolute 0 113 90 136"/>
- <Static id="caption1" text="보고자" class="cell_1" position="absolute 295 113 385 136"/>
- <TextArea id="txt_reptcontext" taborder="4" enable="false" position="absolute 93 140 615 198"/>
- <Edit id="ipt_prjtuser" taborder="5" class="input_default" enable="false" position="absolute 389 115 430 134" onkeyup="ipt_prjtuser_onkeyup"/>
- <Button id="btn_prjtuser" taborder="6" class="icon_search" visible="false" position="absolute 530 118 546 134" onclick="btn_prjtuser_onclick"/>
- <Edit id="ipt_prjtusernm" taborder="7" class="input_default" enable="false" position="absolute 431 115 526 134" onkeyup="ipt_prjtusernm_onkeyup"/>
- <Calendar id="ipt_reptdd" taborder="8" class="input_default" enable="false" position="absolute 94 115 201 134"/>
- <Edit id="opt_prjtsqno" taborder="9" readonly="true" position="absolute 94 65 145 84"/>
- <Edit id="opt_prjttitle" taborder="10" readonly="true" position="absolute 94 90 615 109"/>
- <TextArea id="txt_comtcontext" taborder="11" enable="false" position="absolute 93 206 615 264"/>
- <Static id="caption2" text="관리자 comment" class="cell_1" position="absolute 0 204 90 268"/>
- <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 1 266 613 272"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="prjtsqno" type="STRING" size="256"/>
- <Column id="reptdd" type="STRING" size="256"/>
- <Column id="reptuser" type="STRING" size="256"/>
- <Column id="prjttitle" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_reptinfo_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="prjtsqno" type="STRING" size="256"/>
- <Column id="prjttitle" type="STRING" size="256"/>
- <Column id="reptdd" type="STRING" size="256"/>
- <Column id="reptuser" type="STRING" size="256"/>
- <Column id="reptusernm" type="STRING" size="256"/>
- <Column id="reptcontext" type="STRING" size="256"/>
- <Column id="comtcontext" type="STRING" size="256"/>
- <Column id="prjtuser" type="STRING" size="256"/>
- <Column id="prjtmanager" type="STRING" size="256"/>
- <Column id="old_reptdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="instcd"/>
- <Col id="prjtsqno"/>
- <Col id="prjttitle"/>
- <Col id="reptdd"/>
- <Col id="reptuser"/>
- <Col id="reptusernm"/>
- <Col id="reptcontext"/>
- <Col id="comtcontext"/>
- <Col id="prjtuser"/>
- <Col id="prjtmanager"/>
- <Col id="old_reptdd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_prjtsqno" propid="value" datasetid="ds_main_reptinfo_detail" columnid="prjtsqno"/>
- <BindItem id="item1" compid="opt_prjttitle" propid="value" datasetid="ds_main_reptinfo_detail" columnid="prjttitle"/>
- <BindItem id="item2" compid="ipt_reptdd" propid="value" datasetid="ds_main_reptinfo_detail" columnid="reptdd"/>
- <BindItem id="item3" compid="ipt_prjtuser" propid="value" datasetid="ds_main_reptinfo_detail" columnid="reptuser"/>
- <BindItem id="item4" compid="ipt_prjtusernm" propid="value" datasetid="ds_main_reptinfo_detail" columnid="reptusernm"/>
- <BindItem id="item5" compid="txt_reptcontext" propid="value" datasetid="ds_main_reptinfo_detail" columnid="reptcontext"/>
- <BindItem id="item6" compid="txt_comtcontext" propid="value" datasetid="ds_main_reptinfo_detail" columnid="comtcontext"/>
- </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::RAC001.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- var A;
- function SMRAH04100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRAH04100_onload(obj:Form, e:LoadEventInfo)
- {
- try
- {
- ds_main_condition.copyData(arg_ds_popdata);
- }catch(e){}
-
- fOpenForm();
- }
- //화면 로드시 초기화 함수
- function fOpenForm()
- {
- if(ds_main_condition.getColumn(0, "status") == "u") //u: 수정mode
- {
- fGetReptInfo(); //프로젝트 정보 조회
-
- //본인이 보고자이면 보고일자, 보고내용을 수정, 삭제가 가능하다.
- if(ds_main_reptinfo_detail.getColumn(0, "reptuser") == sysf_getUserInfo("userid"))
- {
- btn_delete.enable = true;
- btn_save.enable = true;
- ipt_reptdd.enable = true;
- txt_reptcontext.enable = true;
- }
- //본인이 담당자이면
- if(ds_main_reptinfo_detail.getColumn(0, "prjtuser") == sysf_getUserInfo("userid"))
- {
- }
- //본인이 관리자이면 comment를 작성 가능하다.
- if(ds_main_reptinfo_detail.getColumn(0, "prhtmanager") == sysf_getUserInfo("userid"))
- {
- btn_save.enable = true;
- txt_comtcontext.enable = true;
- }
- }
- else //i: 입력 mode
- {
- ds_main_reptinfo_detail.setColumn(0, "status", "i"); //i: 입력 mode
- ds_main_reptinfo_detail.setColumn(0, "instcd", ds_main_condition.getColumn(0, "instcd"));
- ds_main_reptinfo_detail.setColumn(0, "prjtsqno", ds_main_condition.getColumn(0, "prjtsqno"));
- ds_main_reptinfo_detail.setColumn(0, "prjttitle", ds_main_condition.getColumn(0, "prjttitle"));
- ds_main_reptinfo_detail.setColumn(0, "reptdd", utlf_getCurrentDate());
- ds_main_reptinfo_detail.setColumn(0, "reptuser", sysf_getUserInfo("userid"));
- ds_main_reptinfo_detail.setColumn(0, "reptusernm", sysf_getUserInfo("usernm"));
-
- //입력mode에는 누구나 입력 가능
- btn_save.enable = true;
- ipt_reptdd.enable = true;
- txt_reptcontext.enable = true;
- //본인이 관리자이면 comment도 입력 가능토록
- if(ds_main_reptinfo_detail.getColumn(0, "prjtmanager") == sysf_getUserInfo("userid"))
- {
- txt_comtcontext.enable = true;
- }
- }
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- if(sysf_messageBox("보고서를 삭제하시겠습니까? ", "Q999", "") != 6) return;
- ds_main_reptinfo_detail.setColumn(0, "status", "d"); //d: 삭제 mode
-
- if(fClickSaveBtn())
- {
- this.close();
- }
- }
- // 저장버튼 클릭시 저장 수행 함수
- function fClickSaveBtn()
- {
- var oParam = {};
- oParam.id = "TXRAH04101";
- oParam.service = "acntknuhapp.Acntknuh";
- oParam.method = "reqExeSaveReptInfo";
- oParam.inds = "req=ds_main_reptinfo_detail";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRAH04101";
- tranf_submit(oParam);
- return A;
- }
- function cf_TXRAH04101(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- A = false;
- }
- else
- {
- this.opener.ds_popdata.setColumn(0, "workflag", "Y");
- A = true;
- }
-
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fClickSaveBtn())
- {
- this.close();
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function btn_prjtuser_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "prjtuser,prjtusernm";
- rpbfOpenPopUpList("SPRPB00101", ipt_prjtuser, recv_list,"","","","emplno,emplnm");
- }
- function ipt_prjtuser_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(!utlf_isNull(ipt_prjtuser.text))
- {
- inputEnterKey("ipt_prjtuser", "xforms-value-changed");
- }
- }
- }
- function ipt_prjtusernm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(!utlf_isNull(ipt_prjtusernm.text))
- {
- inputEnterKey("ipt_prjtusernm", "xforms-value-changed");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|