123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB02000" position="absolute 0 0 1256 805" titletext="재료소모코드관리" oninit="SMAEB02000_oninit" onload="SMAEB02000_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="1" style="align:center top;" position="absolute 0 25 1256 67" class="div_SA" anchor="left top right" align="align:center top;" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption3" text="코드" class="search_name" position="absolute 8 10 68 30" anchor="default" positiontype="position"/>
- <Edit id="edt_excucd" taborder="1" class="input_search" position="absolute 56 10 206 30" anchor="default" imemode="hangul" onkeydown="grp_sea_edt_excucd_onkeydown" positiontype="position"/>
- <Static id="caption1" text="코드명" class="search_name" position="absolute 230 11 305 31" anchor="default" positiontype="position"/>
- <Edit id="edt_excucdnm" taborder="2" class="input_search" position="absolute 290 11 440 31" anchor="default" imemode="hangul" onkeydown="grp_sea_edt_excucdnm_onkeydown" positiontype="position"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1172 10 1172 32" anchor="default" positiontype="position"/>
- <Button id="btn_sea" taborder="3" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1188 11 1244 31" anchor="top right" onclick="grp_sea_btn_sea_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_grdadd" taborder="2" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 1067 72 1120 92" anchor="top right" positiontype="position" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 1123 72 1176 92" anchor="top right" positiontype="position" onclick="btn_grddel_onclick"/>
- <Button id="btn_excsave" taborder="4" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn7" position="absolute 1179 72 1256 92" anchor="top right" positiontype="position" onclick="btn_excsave_onclick"/>
- <Shape id="line1" class="line_1" position="absolute 0 118 1195 118" linetype="horizontal" positiontype="position"/>
- <Static id="caption14" text="재료소모코드관리" class="tit_2" position="absolute 0 75 135 95" positiontype="position"/>
- <Static id="caption6" text="재료소모코드관리" class="tit_1" position="absolute 0 0 204 25" positiontype="position"/>
- <Button id="btn_save" taborder="7" text="저장" class="btn4" position="absolute 1123 783 1179 803" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
- <Button id="btn_clear" taborder="8" text="초기화" onlbuttonup="btn_clear_onlbuttonup" class="btn4" position="absolute 1182 783 1256 803" anchor="right bottom" positiontype="position" onclick="btn_clear_onclick"/>
- <Grid id="grd_matrcstcode" taborder="9" binddataset="ds_matrcstcode" autoenter="select" useinputpanel="false" cellsizingtype="both" autofittype="col" cellclickbound="cell" onexpanddown="grd_matrcstcode_onexpanddown" onexpandup="grd_matrcstcode_onexpandup" position="absolute 0 95 1256 780" anchor="all" onclick="grd_matrcstcode_onclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="19"/>
- <Column size="104"/>
- <Column size="292"/>
- <Column size="100"/>
- <Column size="95"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="95"/>
- <Column size="95"/>
- <Column size="95"/>
- <Column size="95"/>
- <Column size="95"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="30"/>
- </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="IV.SITE"/>
- <Cell col="10" text="공급처"/>
- <Cell col="11" text="검사자"/>
- <Cell col="12" text="지원부서"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'expand'" style="padding:0 0 0 3;" text="bind:excucd" editautoselect="true" expandshow="show" expandsize="20"/>
- <Cell col="2" edittype="none" style="align:left middle;padding:0 0 0 3;" text="bind:excucdnm" wordwrap="word" expandshow="hide"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="padding:2 2 2 3;" class="NO_CELLPADDING" text="bind:nuclcd" combodataset="ds_initnuclcd" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="20"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="padding:2 2 2 3;" text="bind:compdcd" combodataset="ds_initcompdcd" combocodecol="compdcdid" combodatacol="compdcdnm" combodisplayrowcount="30"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:drugqty" mask="#,###.999"/>
- <Cell col="6" displaytype="number" edittype="text" editfilter="number" text="bind:drugqty" mask="#,##0.000" editlimit="8" editlengthunit="utf8"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:drugmthdcd" combodataset="ds_initdrugmthdcd" combocodecol="drugmthdcdid" combodatacol="drugmthdcdnm" combodisplayrowcount="30"/>
- <Cell col="8" displaytype="number" edittype="text" editfilter="number" text="bind:cstqty" mask="#,##0.000" editlimit="8" editlengthunit="utf8"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:injpartcd" combodataset="ds_initinjpartcd" combocodecol="injpartcdid" combodatacol="injpartcdnm" combodisplayrowcount="50"/>
- <Cell col="10" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:suplcustcd" expr="expr:suplcustcd == '-' ? '' : suplcustcd" wordwrap="word" combodataset="ds_initsuplcustcd" combocodecol="suplcustcdid" combodatacol="suplcustcdnm"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:execrid" combodataset="ds_initexecrid" combocodecol="execridid" combodatacol="execridnm" combodisplayrowcount="30"/>
- <Cell col="12" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_matrcstcode" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="excucd" type="STRING"/>
- <Column id="excucdnm" type="STRING"/>
- <Column id="nuclcd1" type="STRING"/>
- <Column id="nuclcd" type="STRING"/>
- <Column id="compdcd" type="STRING"/>
- <Column id="drugqty" type="FLOAT"/>
- <Column id="drugmthdcd" type="STRING"/>
- <Column id="cstqty" type="FLOAT"/>
- <Column id="injpartcd" type="STRING"/>
- <Column id="suplcustcd" type="STRING"/>
- <Column id="execrid" type="STRING"/>
- <Column id="basesuppdeptcd" type="STRING"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="execucdold" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initnuclcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initcompdcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="compdcdid" type="STRING" size="256"/>
- <Column id="compdcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initdrugmthdcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drugmthdcdid" type="STRING" size="256"/>
- <Column id="drugmthdcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initinjpartcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="injpartcdid" type="STRING" size="256"/>
- <Column id="injpartcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initsuplcustcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="suplcustcdid" type="STRING" size="256"/>
- <Column id="suplcustcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initexecrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="execridid" type="STRING" size="256"/>
- <Column id="execridnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts" type="STRING" size="256"/>
- <Column id="basecdcnts2" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- <Column id="basecdcnts" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initphoroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- <Column id="basecdcnts" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initscrtroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- <Column id="basecdcnts" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initexecward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardroomcdid" type="STRING" size="256"/>
- <Column id="wardroomcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_initexcueq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="windowloadinstance" type="STRING" size="256"/>
- <Column id="srchexcucdnm" type="STRING" size="256"/>
- <Column id="srchexcucd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="windowloadinstance">SMAEB02000</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMAEB02000_재료소모코드관리.xfdl
- * Creator :
- * Make Date : 2016-06-15
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //include "ast_commonxp::AST.xjs";
- var lgv_basesuppdeptcd = "NM"; // model.getValue("/root/send/globalinstance/instance1")
- var lgv_prcpdd = "";
- var lgv_execprcpuniqno = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function chkMandatoryData()
- {
- var msg = "";
-
- for(var i = 0; i < ds_matrcstcode.rowcount; i++)
- {
- var _code = ds_matrcstcode.getColumn(i, "excucd");
- var _cdnm = ds_matrcstcode.getColumn(i, "excucdnm");
- var _nucl = ds_matrcstcode.getColumn(i, "nuclcd");
- // trace("[" + _code + "]/[" + _cdnm + "]/[" + _nucl + "]");
- if(utlf_isNull(_code) == true || utlf_isNull(_nucl) == true)
- {
- msg += i + "/";
- }
- }
-
- if(utlf_isNull(msg) == false)
- {
- sysf_messageBox("필수입력항목(검사코드, 코드명, 핵종)에 대한 내용이 누락되었습니다. ", "E999");
- return false;
- }
-
- return true;
- }
- function chkUpdatedData()
- {
- if(sysf_messageBox("", "Q002") == 6)
- {
- if(dsf_datasetUpdateChk(ds_matrcstcode) == false)
- {
- sysf_messageBox("업데이트 정보가 없습니다.", "I000");
- grp_sea.edt_excucd.setFocus();
- return false;
- }
- else
- {
- var _msg = "";
-
- if(chkMandatoryData() == false)
- {
- return false;
- }
-
- for(var i = 0; i < ds_matrcstcode.rowcount; i++)
- {
- var dqty = ds_matrcstcode.getColumn(i, "drugqty");
- var cqty = ds_matrcstcode.getColumn(i, "cstqty");
-
- if(utlf_isNum(dqty) == false || utlf_isNum(cqty) == false)
- {
- _msg += i + "/";
- }
- }
-
- if(utlf_isNull(_msg) == false)
- {
- sysf_messageBox("투여량/소모량 입력은 숫자만이 가능합니다.", "E");
- return false;
- }
- }
-
- return true;
- }
- return false;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMAEB02000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB02000_oninit(obj:Form, e:InitEventInfo)
- {
- lf_aezfSetSuppDeptcd();
- lgv_basesuppdeptcd = suppdeptcd;
- grdf_setRowTypeIcon(grd_matrcstcode, 0);
- }
- /****************************************************************************************
- * Components :
- * Components ID : SMAEB02000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB02000_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- // 핵의학체내 IV입력관리 기초코드
- fn_ReqGetInitExamCureRoomNuclCodeList();
- }
- // 핵의학체내 IV입력관리 기초코드
- function fn_ReqGetInitExamCureRoomNuclCodeList()
- {
- ds_initnuclcd.clearData();
- ds_initcompdcd.clearData();
- ds_initdrugmthdcd.clearData();
- ds_initinjpartcd.clearData();
- ds_initsuplcustcd.clearData();
- ds_initexecrid.clearData();
- ds_initexcuroomgrp.clearData();
- ds_initexecroom.clearData();
- ds_initphoroom.clearData();
- ds_initscrtroom.clearData();
- ds_initexecward.clearData();
- ds_initexcueq.clearData();
- var objColInfo = new Array();
- objColInfo.push({col: "basesuppdeptcd", val: lgv_basesuppdeptcd}); /* 부서코드 */
- objColInfo.push({col: "nbasecdflag" , val: "N" }); /* 핵종기본코드구분 */
- objColInfo.push({col: "obasecdflag" , val: "O" }); /* 화합물기본코드구분 */
- objColInfo.push({col: "pbasecdflag" , val: "P" }); /* 투여방법기본코드구분 */
- objColInfo.push({col: "lbasecdflag" , val: "L" }); /* 주사부위기본코드구분 */
- objColInfo.push({col: "ebasecdflag" , val: "E" }); /* 실시자기본코드구분 */
- objColInfo.push({col: "rbasecdflag" , val: "R" }); /* 검사실기본코드구분,검사실 */
- objColInfo.push({col: "basecdflag" , val: "R" }); /* 검사실기본코드구분,검사실 */
- objColInfo.push({col: "kbasecdflag" , val: "J" }); /* 검사실기본코드구분,장비코드 */
- objColInfo.push({col: "sbasecdflag" , val: "S" }); /* 안정실기본코드구분드 */
- objColInfo.push({col: "initflag" , val: "1" }); /* astlib,병동병실코드구분,1:병동조회 */
- objColInfo.push({col: "alladdyn" , val: "Y" }); /* 검사살전체선택 */
- objColInfo.push({col: "flag" , val: "nuclear" }); /* 검사살전체선택 */
- objColInfo.push({col: "baseroomflag" , val: "1" }); /* 검사실구분코드 */
- dsf_createDsRow("ds_req", objColInfo);
-
- var oParam = {};
- oParam.id = "TRAEA02301";
- oParam.service = "examcureacptexecapp.NuclInpt";
- oParam.method = "reqGetInitExamCureRoomNuclCodeList";
- oParam.inds = "reqparam=ds_req";
- oParam.outds = "ds_initnuclcd=initnuclcd ds_initcompdcd=initcompdcd ds_initdrugmthdcd=initdrugmthdcd ds_initinjpartcd=initinjpartcd ds_initsuplcustcd=initsuplcustcd ds_initexecrid=initexecrid ds_initexcuroomgrp=initexcuroomgrp ds_initexecroom=initexcuroom ds_initphoroom=initphoroom ds_initscrtroom=initscrtroom ds_initexecward=initexcuward ds_initexcueq=initexcueq";
- oParam.async = false;
- oParam.callback = "cf_TRAEA02301";
- oParam.typeStr = "s";
- tranf_submit(oParam);
-
- }
- // 코드 조회 Callback 함수
- function cf_TRAEA02301(sSvcId, objErrorCode, objErrorMsg){
- // trace("sSvcId->[" + sSvcId + "]" + "objErrorCode->[" + objErrorCode + "]");
- // trace("objErrorMsg->[" + objErrorMsg + "]");
- // trace(ds_initsuplcustcd.saveXML());
- if(objErrorCode > -1)
- {
-
- fn_Search();
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fn_Search();
- }
- function fn_Search()
- {
- ds_matrcstcode.clearData();
-
- var objColInfo = new Array();
- objColInfo.push({col: "basesuppdeptcd", val: lgv_basesuppdeptcd});
- objColInfo.push({col: "srchexcucd", val: grp_sea.edt_excucd.value});
- objColInfo.push({col: "prcpdd", val: lgv_prcpdd});
- objColInfo.push({col: "execprcpuniqno", val: lgv_execprcpuniqno});
- objColInfo.push({col: "srchexcucdnm", val: grp_sea.edt_excucdnm.value});
- dsf_createDsRow("ds_req", objColInfo);
-
- var oParam = {};
- oParam.id = "TRAEB02001";
- oParam.service = "examcurebaseapp.MatrCstCode";
- oParam.method = "reqGetMatrCstCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_matrcstcode=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB02001";
- oParam.typeStr = "s";
- tranf_submit(oParam);
-
- }
-
- function cf_TRAEB02001(sSvcId, objErrorCode, objErrorMsg){
- trace("ds_matrcstcode-->[" + "cf_TRAEB02001" + "]");
- // query를 수정 하지 않기 위해 addColumn과 setColumn 처리가 필요함
- ds_matrcstcode.addColumn("basesuppdeptcd", "string");
-
- for(var i = 0; i < ds_matrcstcode.rowcount; i++)
- {
- ds_matrcstcode.setColumn(i, "basesuppdeptcd", ds_matrcstcode.getColumn(i, "suppdeptcd"));
- }
- ds_matrcstcode.applyChange();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_matrcstcode.addRow();
- ds_matrcstcode.setColumn(nRow, "basesuppdeptcd", lgv_basesuppdeptcd);
- ds_matrcstcode.setColumn(nRow, "drugqty", 0);
- ds_matrcstcode.setColumn(nRow, "cstqty", 0);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grd_matrcstcode, true);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_excsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_matrcstcode, "재료소모코드목록", "재료소모코드목록");
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_clear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- // 확인 버튼을 클릭 해도 리턴이 null 으로 넘어옴 - 확인필요
- if(sysf_messageBox("", "Q010") == 6)
- {
- ds_matrcstcode.reset();
- }
- grp_sea.edt_excucd.setFocus();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- // 저장 로직 호출 함수
- fn_Save();
- }
- function fn_Save()
- {
- for(var i=0; i<ds_matrcstcode.rowcount; i++){
- if(utlf_isNull(ds_matrcstcode.getColumn(i,"excucd"))){
- sysf_messageBox("코드값이 입력되지 않았습니다.","E999");
- return;
- }
- }
- if(chkUpdatedData() == true)
- {
- var oParam = new Object();
- oParam.id = "TXAEB02001";
- oParam.service = "examcurebaseapp.MatrCstCode"
- oParam.method = "reqExeMatrCstCodeList";
- oParam.inds = "req=ds_matrcstcode:U"
- oParam.callback = "cf_TXAEB02001";
- oParam.typeStr = "m";
-
-
- tranf_submit(oParam);
- }
-
- return false;
- }
- function cf_TXAEB02001(sSvcId, objErrorCode, objErrorMsg){
- if(objErrorCode == 0){
- fn_Search();
- }else{
- astErrorMsg(objErrorMsg);
- }
- }
- // 코드 조회 조건 입력 함수
- function grp_sea_edt_excucd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fn_Search();
- }
- }
- // 코드명 조회 조건 입력 함수
- function grp_sea_edt_excucdnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fn_Search();
- }
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fn_Search();
- }
- function grd_matrcstcode_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- frmf_modal("SPAEA02302", "SPAEA02302","","","","","","","","","","","M");
- }
- ]]></Script>
- </Form>
- </FDL>
|