123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRSC20300" position="absolute 0 0 1195 779" titletext="장비신청부서장승인" onload="SMRSC20300_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 43 1195 778" id="group3" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="14" position="absolute 0 9 1194 69" class="div_SA2" anchor="left top right"/>
- <Shape position="absolute 0 528 1195 534" linetype="vertical" id="line12" class="line_2" anchor="default"/>
- <Static text="장비신청 목록" position="absolute 0 78 124 95" id="caption9" class="tit_2" anchor="default"/>
- <Static text="포장단위" position="absolute -126 310 -18 333" align="align:center middle;" id="caption52" class="cell_1" anchor="default"/>
- <Static text="근속기준일/년" position="absolute -126 334 -18 357" align="align:center middle;" id="caption54" class="cell_1" anchor="default"/>
- <Grid position="absolute 0 99 1194 735" id="grd_reqeqmtlist" taborder="13" binddataset="ds_main_reqeqmt_reqeqmtlist" anchor="all" selecttype="multirow" cellclickbound="cell" oncelldblclick="group3_grd_reqeqmtlist_oncelldblclick" ontextchanged="group3_grd_reqeqmtlist_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="80"/>
- <Column size="140"/>
- <Column size="75"/>
- <Column size="95"/>
- <Column size="60"/>
- <Column size="150"/>
- <Column size="130"/>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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" text="신청번호"/>
- <Cell col="5" text="신청자"/>
- <Cell col="6" text="장비명"/>
- <Cell col="7" text="설치장소"/>
- <Cell col="8" text="신청수량"/>
- <Cell col="9" text="단위"/>
- <Cell col="10" text="원화총금액"/>
- <Cell col="11" text="외화총금액"/>
- <Cell col="12" text="심의결과"/>
- <Cell col="13" text="심의비고"/>
- <Cell col="14" text="구매기준일자"/>
- <Cell col="15" text="구매진행상태"/>
- <Cell col="16" text="구매비고"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- <Cell col="34"/>
- <Cell col="35"/>
- <Cell col="36"/>
- <Cell col="37"/>
- <Cell col="38"/>
- <Cell col="39"/>
- <Cell col="40"/>
- <Cell col="41"/>
- <Cell col="42"/>
- <Cell col="43"/>
- <Cell col="44"/>
- <Cell col="45"/>
- <Cell col="46"/>
- <Cell col="47"/>
- <Cell col="48"/>
- <Cell col="49"/>
- <Cell col="50"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:deptaprvyn" expr="expr:deptaprvyn == 'Y' || deptaprvyn == '1' ? '1' : '0'"/>
- <Cell col="2" displaytype="combo" text="bind:prcsstat" enable="false"/>
- <Cell col="3" text="bind:eqflagnm"/>
- <Cell col="4" text="bind:reqno"/>
- <Cell col="5" text="bind:reqpsnnm"/>
- <Cell col="6" displaytype="text" text="bind:goodflagengnm"/>
- <Cell col="7" displaytype="text" text="bind:installplcenm"/>
- <Cell col="8" text="bind:appqty"/>
- <Cell col="9" text="bind:bugtforgnamtunitnm"/>
- <Cell col="10" displaytype="number" text="bind:bugtwncurncy"/>
- <Cell col="11" displaytype="number" text="bind:bugtforgnamt"/>
- <Cell col="12" displaytype="combo" text="bind:dcusrslt" enable="false"/>
- <Cell col="13" text="bind:dcuscmt"/>
- <Cell col="14" displaytype="expr:utlf_isNull(badd) ? 'normal' : 'date'" text="bind:badd"/>
- <Cell col="15" text="bind:purcprcsstat"/>
- <Cell col="16" text="bind:purcprcscmt"/>
- <Cell col="17" text="bind:instcd"/>
- <Cell col="18" text="bind:reqdd"/>
- <Cell col="19" text="bind:reqseqno"/>
- <Cell col="20" text="bind:acptflag"/>
- <Cell col="21" text="bind:goodflaghngnm"/>
- <Cell col="22" text="bind:workflag"/>
- <Cell col="23" text="bind:workflagnm"/>
- <Cell col="24" text="bind:welfcd"/>
- <Cell col="25" text="bind:reqdeptcd"/>
- <Cell col="26" text="bind:reqdeptnm"/>
- <Cell col="27" text="bind:mngtdeptcd"/>
- <Cell col="28" text="bind:mngtdeptnm"/>
- <Cell col="29" text="bind:installplcecd"/>
- <Cell col="30" text="bind:usemthd"/>
- <Cell col="31" text="bind:usemthdnm"/>
- <Cell col="32" text="bind:fcstuseyearno"/>
- <Cell col="33" text="bind:goodunitcost"/>
- <Cell col="34" text="bind:bugtyy"/>
- <Cell col="35" text="bind:bugtforgnamtunit"/>
- <Cell col="36" text="bind:chgrate"/>
- <Cell col="37" text="bind:addmnpwrdr"/>
- <Cell col="38" text="bind:addmnpwrnurs"/>
- <Cell col="39" text="bind:addmnpwrengr"/>
- <Cell col="40" text="bind:addmnpwretc"/>
- <Cell col="41" text="bind:installspcepossnyn"/>
- <Cell col="42" text="bind:calcscorgenryn"/>
- <Cell col="43" text="bind:usgepurcneed"/>
- <Cell col="44" text="bind:reqpsnid"/>
- <Cell col="45" text="bind:possesdocucd"/>
- <Cell col="46" text="bind:comusedept"/>
- <Cell col="47" text="bind:smkindeqyn"/>
- <Cell col="48" text="bind:goodflag"/>
- <Cell col="49" text="bind:rowstatus"/>
- <Cell col="50" text="bind:adyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 94 1194 100" id="line3" class="line_10" anchor="left top right"/>
- <Button position="absolute 1124 27 1180 49" id="btn_search" class="btn1" taborder="8" text="조회" anchor="top right" onclick="group3_btn_search_onclick"/>
- <Button position="absolute 538 18 554 34" id="button5" class="icon_search" enable="true" taborder="5" text="" anchor="default" onclick="group3_button5_onclick"/>
- <Static text="기관코드 :" position="absolute 15 18 132 35" id="caption4" class="search_name" anchor="default"/>
- <Shape position="absolute 1106 18 1112 60" linetype="vertical" id="line18" class="line_4" anchor="top right"/>
- <Edit position="absolute 425 17 535 36" id="ipt_reqdeptcd_search" class="input_essential" enable="true" taborder="4" anchor="default" onkeydown="group3_ipt_reqdeptcd_search_onkeydown"/>
- <Static text="신청부서 :" position="absolute 340 18 457 35" id="caption8" class="search_name" anchor="default"/>
- <Edit readonly="true" position="absolute 557 17 705 36" id="opt_reqdeptnm_search" anchor="default" class="output"/>
- <Static text="신청일자 :" position="absolute 15 43 132 60" id="caption14" class="search_name" anchor="default"/>
- <Calendar position="absolute 100 42 195 61" id="ipt_reqfrmdd_search" class="input_essential" taborder="2" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static text="~" position="absolute 199 42 214 62" id="caption42" anchor="default"/>
- <Calendar position="absolute 215 42 310 61" id="ipt_reqtodd_search" class="input_essential" taborder="3" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
- <Combo position="absolute 425 42 615 61" id="cmb_prcsstat_search" class="combo_default" taborder="7" anchor="default"/>
- <Static text="진행상태 :" position="absolute 340 43 457 60" id="caption45" class="search_name" anchor="default"/>
- <Button position="absolute 1065 74 1129 94" id="btnselect" class="btn2" taborder="11" text="전체선택" anchor="top right" onclick="group3_btnselect_onclick"/>
- <Combo position="absolute 100 17 310 36" id="cmb_instcd" class="combo_default" enable="false" taborder="1" anchor="default" onitemchanged="group3_cmb_instcd_onitemchanged"/>
- <Combo position="absolute 1033 48 1063 67" id="ipt_dcusrslt" visible="false" anchor="default"/>
- <Combo position="absolute 1063 48 1093 67" id="ipt_purcprcsstat" visible="false" anchor="default"/>
- <Button position="absolute 1130 74 1194 94" id="btn_cancel" class="btn2" taborder="11" text="전체취소" anchor="top right" onclick="group3_btn_cancel_onclick"/>
- <Combo position="absolute 425 17 705 36" id="cmb_deptcd" visible="false" innerdataset="@ds_combo_reqdeptcd_reqdeptcdlist" datacolumn="label" codecolumn="value" anchor="default" onitemchanged="group3_cmb_deptcd_onitemchanged"/>
- <Static id="caption00" text="장비구분 :" class="search_name" position="absolute 656 42 738 59"/>
- <Combo id="cmb_eqflag_search" taborder="15" class="combo_default" position="absolute 733 42 867 61" codecolumn="codecolumn" datacolumn="datacolumn" enable="true">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">일반장비</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">임상실습동장비</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 26 1194 55" id="grp_btn" scrollbars="autoboth" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 22 1194 28" id="line17" class="line_6" anchor="left top right"/>
- <Button position="absolute 1138 1 1194 23" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="grp_btn_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="장비신청 부서장승인" class="tit_1" position="absolute 0 0 160 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_combo_reqdeptcd_reqdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value"/>
- <Col id="label"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_search_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="reqdeptcd" type="STRING" size="256"/>
- <Column id="reqdeptnm" type="STRING" size="256"/>
- <Column id="reqfrmdd" type="STRING" size="256"/>
- <Column id="reqtodd" type="STRING" size="256"/>
- <Column id="prcsstat" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="eqflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="reqdeptcd"/>
- <Col id="reqdeptnm"/>
- <Col id="reqfrmdd"/>
- <Col id="reqtodd"/>
- <Col id="prcsstat"/>
- <Col id="emplno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_reqeqmt_reqeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_reqeqmt_reqeqmtlist_oncolumnchanged"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="temp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="reqeqmtlist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqeqmtlist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_emplno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="emplno" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_combo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="dcusrslt" type="STRING" size="256"/>
- <Column id="purcprcsstat" type="STRING" size="256"/>
- <Column id="reqdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dcusrslt"/>
- <Col id="purcprcsstat"/>
- <Col id="reqdeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_deprtmangr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.ipt_reqdeptcd_search" propid="value" datasetid="ds_send_search" columnid="reqdeptcd"/>
- <BindItem id="item1" compid="group3.opt_reqdeptnm_search" propid="value" datasetid="ds_send_search" columnid="reqdeptnm"/>
- <BindItem id="item2" compid="group3.ipt_reqfrmdd_search" propid="value" datasetid="ds_send_search" columnid="reqfrmdd"/>
- <BindItem id="item3" compid="group3.ipt_reqtodd_search" propid="value" datasetid="ds_send_search" columnid="reqtodd"/>
- <BindItem id="item4" compid="group3.cmb_prcsstat_search" propid="value" datasetid="ds_send_search" columnid="prcsstat"/>
- <BindItem id="item5" compid="group3.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
- <BindItem id="item6" compid="group3.ipt_dcusrslt" propid="value" datasetid="ds_combo" columnid="dcusrslt"/>
- <BindItem id="item7" compid="group3.ipt_purcprcsstat" propid="value" datasetid="ds_combo" columnid="purcprcsstat"/>
- <BindItem id="item8" compid="group3.cmb_deptcd" propid="value" datasetid="ds_combo" columnid="reqdeptcd"/>
- <BindItem id="item9" compid="group3.cmb_eqflag_search" propid="value" datasetid="ds_send_search" columnid="eqflag"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 초기화
- ****************************************************************************************/
- function fInitialize()
- {
- misfGridInit(group3.grd_reqeqmtlist);
- ds_send_search.clearData(); ds_send_search.addRow();
- // ds_main.clearData(); ds_main.addRow();
- misfComboComCdList("Z0007",group3.cmb_instcd);
- misfComboComCdList("030R0025",group3.cmb_prcsstat_search);
- misfGridComboComCdList("030R0026",group3.grd_reqeqmtlist,"dcusrslt");
- misfComboCopyItemSet("group3.cmb_prcsstat_search", "", "group3.grd_reqeqmtlist", "prcsstat");
-
- frmf_addComboItem( "group3.cmb_prcsstat_search", "전체", "", "above");
- ds_send_search.enableevent = false;
- ds_send_search.setColumn(0, "prcsstat", "");
- ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- misfMsterDetailSet(group3.grd_reqeqmtlist, null, "TRRSC20101", "Y");
- ds_emplno.setColumn( 0, "emplno", sysf_getUserInfo("userid"));
- var oParam = {};
- oParam.id = "TRRSC20102";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReqDeprtMangr";
- oParam.inds = "req=ds_emplno";
- oParam.outds = "ds_deprtmangr=deprtmangr";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC20102";
- tranf_submit(oParam);
- var deprtmangr = ds_deprtmangr.getColumn(0, "deprtmangr");
-
- if( sysf_getUserInfo("userid") == "99207" || sysf_getUserInfo("userid") == "15016"|| sysf_getUserInfo("userid") == "15352"|| sysf_getUserInfo("userid") == "11094" || sysf_getUserInfo("userid") == "10179" ) {
- }else{
- group3.ipt_reqdeptcd_search.enable = false;
- group3.button5.enable = false;
- group3.opt_reqdeptnm_search.enable = false;
- //group3.cmb_eqflag_search.enable = false;
- var oParam = {};
- oParam.id = "TRRSC20103";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqGetReqEqmtDeptConfList";
- oParam.inds = "req=ds_emplno";
- oParam.outds = "ds_combo_reqdeptcd_reqdeptcdlist=reqdeptcdlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRSC20103";
- tranf_submit(oParam);
- group3.cmb_deptcd.visible = true;
- // if(utlf_isNull(deprtmangr)){
- // sysf_messageBox("접속하신 아이디는 화면권한이 없습니다.", "E999", "");
- // group3.btn_search.enable = false;
- // grp_btn.btn_save.enable = false;
- // group3.btnselect.enable = false;
- // group3.btn_cancel.enable = false;
- // group3.cmb_deptcd.enable = false;
- // return;
- // }
- }
-
- if(sysf_getUserInfo("dutplcecd") == "4171601000" || sysf_getUserInfo("dutplcecd") == "4171601100" || sysf_getUserInfo("userid") == "99207" ){ // 4171601000:임상실습동건립과, 4171601100:건립행정팀
- ds_send_search.setColumn( 0, "eqflag", "C"); //임상장비
- ds_send_search.setColumn( 0, "reqdeptcd", "");
- ds_send_search.setColumn( 0, "reqdeptnm", "");
- }else{
- ds_send_search.setColumn( 0, "eqflag", ""); //일반장비
- ds_send_search.setColumn( 0, "reqdeptcd", sysf_getUserInfo("dutplcecd"));
- ds_send_search.setColumn( 0, "reqdeptnm", sysf_getUserInfo("dutplcenm"));
- }
-
- ds_send_search.setColumn( 0, "reqfrmdd", utlf_getCurrentDate().substr(0,4)+"0101");
- ds_send_search.setColumn( 0, "reqtodd", utlf_getCurrentDate().substr(0,8));
- // ds_send_search.setColumn( 0, "reqdeptcd", sysf_getUserInfo("dutplcecd"));
- // ds_send_search.setColumn( 0, "reqdeptnm", sysf_getUserInfo("dutplcenm"));
- group3.cmb_prcsstat_search.value = "1";
- ds_send_search.enableevent = true;
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMRSC20300_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_reqeqmtlist);
- grdf_setRowTypeIcon(group3.grd_reqeqmtlist, 0);
- fInitialize();
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 장비신청 목록 선택
- ****************************************************************************************/
- function group3_grd_reqeqmtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(e.row < 0) {
- return;
- }
-
- ds_main_reqeqmt_reqeqmtlist.setColumn(e.row, "rowstatus","disabled");
- dsf_createDs("ds_temp_reqeqmtlist");
- dsf_copyColInfo(ds_temp_reqeqmtlist, ds_main_reqeqmt_reqeqmtlist);
- ds_temp_reqeqmtlist.copyRow(ds_temp_reqeqmtlist.addRow(), ds_main_reqeqmt_reqeqmtlist, e.row);
- var objArg = new Object();
- objArg.arg_ds_main_reqeqmtlist = ds_temp_reqeqmtlist;
- frmf_modal("SMRSC20200","SMRSC20200",objArg,"","",300,300,"","","","","","M");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 데이터변경시
- ****************************************************************************************/
- function group3_grd_reqeqmtlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
- var row = e.row;
- if(ds_main_reqeqmt_reqeqmtlist.getColumn(row, "deptaprvyn") == "N"){
- if(ds_main_reqeqmt_reqeqmtlist.getColumn(row, "acptflag") == "Y") {
- sysf_messageBox("이미 접수 완료된 자료 입니다.", "E999", "");
- ds_main_reqeqmt_reqeqmtlist.setColumn(row, "deptaprvyn", "Y");
- grdf_setStatus(group3.grd_reqeqmtlist, "", [row]);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- misfMsterDetailRetrieve();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 부서조회
- ****************************************************************************************/
- function group3_button5_onclick(obj:Button, e:ClickEventInfo) {
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", group3.ipt_reqdeptcd_search, "", recv_list, group3.cmb_instcd.value, "instcd");
- }
- /****************************************************************************************
- * Components : Button
- * Description : 전체선택
- ****************************************************************************************/
- function group3_btnselect_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_reqeqmt_reqeqmtlist.rowcount ; i++)
- {
- if(ds_main_reqeqmt_reqeqmtlist.getColumn(i, "acptflag") == "N") {
- ds_main_reqeqmt_reqeqmtlist.setColumn(i, "deptaprvyn", "Y");
- // grdf_setStatus(group3.grd_reqeqmtlist, "U", [i]);
- }
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 사용안함
- ****************************************************************************************/
- function group3_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- // opt_instcd.value = group3.cmb_instcd.value;
- }
- /****************************************************************************************
- * Components : Button
- * Description : 전체취소
- ****************************************************************************************/
- function group3_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_reqeqmt_reqeqmtlist.rowcount ; i++)
- {
- if(ds_main_reqeqmt_reqeqmtlist.getColumn(i, "acptflag") == "N") {
- ds_main_reqeqmt_reqeqmtlist.setColumn(i, "deptaprvyn", "N");
- // grdf_setStatus(group3.grd_reqeqmtlist, "U", [i]);
- }
- }
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 신청부서 변경
- ****************************************************************************************/
- function group3_cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- ds_send_search.setColumn(0, "reqdeptcd", e.postvalue);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- for(var i = 0 ; i < ds_main_reqeqmt_reqeqmtlist.rowcount ; i++){
- if(ds_main_reqeqmt_reqeqmtlist.getRowType(i) == 4){
- ds_main_reqeqmt_reqeqmtlist.setColumn(i, "adyn", "dept");
- }
- }
- var req = sysf_messageBox("부서장승인된 자료를 승인하거나 취소합니다.", "Q003");
- if(req == 6){
- misfSave("TXRSC20101");
- group3.btn_search.click();
- }else{
- return;
- }
- }
- function group3_ipt_reqdeptcd_search_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) obj.updateToDataset();
- }
- function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "reqdeptcd") {
- if(utlf_isNull(e.newvalue))
- group3.opt_reqdeptnm_search.value = "";
- else
- //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd" ); //opt_instcd.value 가 존재하지 않음
- }
- }
- function ds_main_reqeqmt_reqeqmtlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "deptaprvyn" ){
- if( e.newvalue == "Y" || e.newvalue == "1" ){
- obj.setColumn(e.row, e.columnid, "Y");
- }else{
- obj.setColumn(e.row, e.columnid, "N");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|