123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB03800" position="absolute 0 0 1197 794" titletext="조영제/재료 코드관리" oninit="SMAEB03800_oninit" onload="SMAEB03800_onload">
- <Layouts>
- <Layout>
- <Static text="검사실별 조영제/재료 코드 관리" position="absolute 0 0 240 25" id="caption19" class="tit_1"/>
- <Shape position="absolute 0 24 1195 30" linetype="horizontal" id="line2" class="line_1" anchor="left top right"/>
- <Button position="absolute 1085 60 1138 79" id="btn_grdadd" class="btn2" text="행추가"/>
- <Button position="absolute 1142 60 1195 79" id="btn_grddel" class="btn2" text="행삭제"/>
- <Grid position="absolute 0 30 245 760" id="grd_sectlist" binddataset="ds_cmb_info_initexcuroomgrp2" onlbuttondown="grd_sectlist_onlbuttondown" cellsizingtype="both" anchor="left top bottom" oncellclick="grd_sectlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="194"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="검사실"/>
- <Cell col="2" text="검사실"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="none" edittype="none" text="bind:excuroomgrpcdid"/>
- <Cell col="2" style="align:left middle;padding:0 2 0 2;" text="bind:excuroomgrpcdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 759 1195 786" id="grp_btn" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 1195 6" linetype="horizontal" id="line32" class="line_6" anchor="left top right"/>
- <Button position="absolute 1078 5 1134 27" id="button1" class="btn4" text="저장" anchor="top right" onclick="grp_btn_button1_onclick"/>
- <Button position="absolute 1138 5 1194 27" id="btn_close" class="btn4" text="닫기" anchor="top right" onclick="grp_btn_btn_close_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 250 30 1195 760" id="grd_goodlist" binddataset="ds_main_goodlist_item" autoenter="select" onexpandup="grd_goodlist_onexpandup" cellsizingtype="both" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="137"/>
- <Column size="434"/>
- <Column size="109"/>
- <Column size="118"/>
- <Column size="79"/>
- <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"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'expand' : 'none'" style="align:left middle;" text="bind:goodcd" expandshow="expr:getRowType(currow) == 2 ? 'show' : 'hide'" enable="false"/>
- <Cell col="2" edittype="none" style="align:left middle;" text="bind:goodnm"/>
- <Cell col="3" style="align:right middle;" text="bind:safestocqty" editautoselect="false"/>
- <Cell col="4" edittype="none" style="align:right middle;" text="bind:speccd"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:dispseq" editautoselect="true"/>
- <Cell col="6" text="bind:sectcd"/>
- <Cell col="7" text="bind:instcd"/>
- <Cell col="8" text="bind:suppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1142 6 1195 25" id="button2" class="btn2" text="행삭제" onclick="button2_onclick" anchor="top right"/>
- <Button position="absolute 1085 6 1138 25" id="button3" class="btn2" text="행추가" onclick="button3_onclick" anchor="top right"/>
- <Shape id="line00" class="line_1" position="absolute 0 25 1195 31" anchor="left top right"/>
- <Shape id="line01" class="line_1" position="absolute 0 26 1195 32" anchor="left top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_goodlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="speccd" type="STRING" size="256"/>
- <Column id="safestocqty" type="STRING" size="256"/>
- <Column id="sectcd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="dispseq" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="speccd"/>
- <Col id="safestocqty"/>
- <Col id="sectcd"/>
- <Col id="instcd"/>
- <Col id="suppdeptcd"/>
- <Col id="dispseq"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sectcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_info_initexcuroomgrp2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="excuroomgrpcdid" type="STRING" size="256"/>
- <Column id="excuroomgrpcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="safestocqty" type="STRING" size="256"/>
- <Column id="speccd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="goodcd"/>
- <Col id="goodnm"/>
- <Col id="safestocqty"/>
- <Col id="speccd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-06-17
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-06-17 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- include "ast_commonxp::AST.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB03800
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB03800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB03800
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB03800_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
- grdf_setRowTypeIcon(grd_goodlist, 0); // 그리드 상태 표시
- grdf_setRowTypeIcon(grd_sectlist, 0); // 그리드 상태 표시
-
- ds_main_goodlist_item.clearData();
- //model.setFocus("ipt_speccd");
-
- dsf_createDsRow("ds_reqparam", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
- , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
- , {col:"instcd", type:"STRING", size:256, val:""}
- , {col:"initflag", type:"STRING", size:256, val:"1"}
- , {col:"alladdyn", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA01301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetInitExamCureRoomGrpCodeList";
- oParam.inds = "reqparam=ds_reqparam";
- oParam.outds = "ds_cmb_info_initexcuroomgrp2=initexcuroomgrp2";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01301";
- tranf_submit(oParam);
-
- // grd_sectlist.deleteRow(1, true);
- // grd_sectlist.dispatch("onclick");
- ds_cmb_info_initexcuroomgrp2.deleteRow(0);
- ds_cmb_info_initexcuroomgrp2.rowposition = 0;
- frmf_inputEnterKey("grd_sectlist", "onlbuttondown", new GridMouseEventInfo);
- }
- function cf_TRAEA01301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_cmb_info_initexcuroomgrp2.updateColID("basecdcnts","excuroomgrpcdid");
- ds_cmb_info_initexcuroomgrp2.updateColID("basecdcnts2","excuroomgrpcdnm");
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_sectlist
- * Event : onlbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 검사실 선택
- ****************************************************************************************/
- function grd_sectlist_onlbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- // if(ds_cmb_info_initexcuroomgrp2.rowposition < 0) {
- // return false;
- // }
- //
- // ds_send.setColumn(0,"sectcd", ds_cmb_info_initexcuroomgrp2.getColumn(ds_cmb_info_initexcuroomgrp2.rowposition,"excuroomgrpcdid"));
- //
- // dsf_createDsRow("ds_req", [
- // {col:"sectcd", type:"STRING", size:256, val:ds_send.getColumn(0,"sectcd")}
- // , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- // ]);
- // var oParam = {};
- // oParam.id = "TRAEB03801";
- // oParam.service = "examcurebaseapp.DyeCode";
- // oParam.method = "reqGetDyeSectList";
- // oParam.inds = "req=ds_req";
- // oParam.outds = "ds_main_goodlist_item=item";
- // oParam.async = false;
- // //oParam.callback = "cf_TRAEB03801";
- //
- // tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_goodlist_item.addRow();
- // grd_goodlist.row = grd_goodlist.bottomRow; //행추가시 자동으로 맨아래줄 선택
- var cnt = parseInt(ds_main_goodlist_item.rowposition);
- var mainrowcnt = parseInt(ds_main_goodlist_item.rowposition); //??
- ds_main_goodlist_item.setColumn(cnt,"suppdeptcd",gSuppdeptcd);
- ds_main_goodlist_item.setColumn(cnt,"sectcd" ,ds_cmb_info_initexcuroomgrp2.getColumn(ds_cmb_info_initexcuroomgrp2.rowposition,"excuroomgrpcdid"));
- // grd_goodlist.isReadOnly(cnt, 1) = false;
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_goodlist_item.getRowType(ds_main_goodlist_item.rowposition)==2) {
- ds_main_goodlist_item.deleteRow(ds_main_goodlist_item.rowposition);
- } else {
- grdf_setStatus(grd_goodlist, "D", [ds_main_goodlist_item.rowposition]);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_goodlist
- * Event : onexpandup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조영제/재료코드 조회 팝업 오픈
- ****************************************************************************************/
- function grd_goodlist_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- // modal("SPAEB00401", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- ds_temp.clearData();
- if ( ds_temp.rowcount < 1 ) {
- ds_temp.addRow();
- }
-
- frmf_modal("SPAEB00401", "SPAEB00401", null, null, 0, 200, 200, null, null, null, null, null, "M");
-
- if(!utlf_isNull(ds_temp.getColumn(0,"goodcd"))) {
- ds_main_goodlist_item.setColumn(e.row,"goodcd" , ds_temp.getColumn(0,"goodcd"));
- ds_main_goodlist_item.setColumn(e.row,"goodnm" , ds_temp.getColumn(0,"goodnm"));
- ds_main_goodlist_item.setColumn(e.row,"safestocqty" , ds_temp.getColumn(0,"safestocqty"));
- ds_main_goodlist_item.setColumn(e.row,"speccd" , ds_temp.getColumn(0,"speccd"));
- }
- // ds_temp.setColumn(0,"goodcd", "");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장
- ****************************************************************************************/
- function grp_btn_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(!astfNullValidation(ds_main_goodlist_item, "goodcd", "약품코드를")) return false;
- if ( sysf_messageBox("","Q002")==6 ) {
- var update = grdf_getGridUpdateData(grd_goodlist, "all");
- if(update.rowcount < 1) {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- } else {
- grdf_setStatusColumn(update, "m");
- ds_send_req_data.copyData(update,true);
-
- var oParam = {};
- oParam.id = "TXAEB03801";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqExeDyeSectList";
- oParam.inds = "req=ds_send_req_data";
- oParam.outds = "ds_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB03801";
- tranf_submit(oParam);
- // if (submit("TXAEB03801")) {
- // // 저장 후 팝업인 경우 변경 여부 returng하고 창을 닫는다
- // submit("TRAEB03801");
- // }
- }
- }
- }
- function cf_TXAEB03801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- frmf_inputEnterKey("grd_sectlist", "oncellclick", new GridClickEventInfo);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_btn.btn_close
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기
- ****************************************************************************************/
- function grp_btn_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function grd_sectlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_cmb_info_initexcuroomgrp2.rowposition < 0) {
- return false;
- }
- ds_send.setColumn(0,"sectcd", ds_cmb_info_initexcuroomgrp2.getColumn(ds_cmb_info_initexcuroomgrp2.rowposition,"excuroomgrpcdid"));
- dsf_createDsRow("ds_req", [
- {col:"sectcd", type:"STRING", size:256, val:ds_send.getColumn(0,"sectcd")}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- ]);
- var oParam = {};
- oParam.id = "TRAEB03801";
- oParam.service = "examcurebaseapp.DyeCode";
- oParam.method = "reqGetDyeSectList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_goodlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB03801";
- tranf_submit(oParam);
- }
- ]]></Script>
- </Form>
- </FDL>
|