123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00302" position="absolute 0 0 997 615" titletext="진단예문관리" oninit="SMAEB00302_oninit" onload="SMAEB00302_onload">
- <Layouts>
- <Layout>
- <Static text="예문관리(진단)" position="absolute 0 0 160 25" align="align:center middle;" id="caption2" class="tit_1"/>
- <Div position="absolute 1 25 992 60" id="grp_sea" class="div_SA">
- <Layouts>
- <Layout>
- <Button position="absolute 923 7 979 29" id="button1" class="btn1" text="조회" anchor="default" onclick="grp_sea_button1_onclick"/>
- <Shape position="absolute 904 7 910 29" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Radio id="rdo_comprod" taborder="1" columncount="0" rowcount="0" innerdataset="ds_init_rdo_comprod" codecolumn="cdid" datacolumn="cdnm" class="radio_search" position="absolute 714 5 908 30" anchor="default" visible="false"/>
- <cp_radioList id="rdo_m_comprod" taborder="2" scrollbars="none" position="absolute 8 8 108 28" style="background:transparent; " col="1" row="1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 60 995 575" id="group1">
- <Layouts>
- <Layout>
- <Button position="absolute 328 17 381 36" id="button4" class="btn2" text="행삭제" anchor="default" onclick="group1_button4_onclick"/>
- <Button position="absolute 273 17 326 36" id="button5" class="btn2" text="행추가" anchor="default" onclick="group1_button5_onclick"/>
- <Static text="예문 현황" position="absolute 5 20 151 36" id="caption3" class="tit_2" anchor="default"/>
- <Grid position="absolute 4 41 381 510" id="grd_exmptmpl" binddataset="ds_main_exmptmpllist" anchor="default" onlbuttondown="group1_grd_exmptmpl_onlbuttondown" onlbuttonup="group1_grd_exmptmpl_onlbuttonup" cellsizingtype="both" autoenter="key">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="98"/>
- <Column size="251"/>
- <Column size="50"/>
- <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="basecdflagdesc"/>
- <Cell col="5" text="basesuppdeptcd"/>
- <Cell col="6" text="basecdflag"/>
- <Cell col="7" text="seq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" displaytype="image"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:left top;padding:5 2 0 2;" text="bind:basecd" wordwrap="char"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:left top;padding:5 2 0 2;" text="bind:basecdcnts" wordwrap="char" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:sortno"/>
- <Cell col="4" text="bind:basecdflagdesc"/>
- <Cell col="5" text="bind:basesuppdeptcd"/>
- <Cell col="6" text="bind:basecdflag"/>
- <Cell col="7" text="bind:seq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 4 36 381 42" linetype="horizontal" id="line2" class="line_1" anchor="default"/>
- <Button position="absolute 165 10 265 30" id="button6" visible="false" text="button6" anchor="default"/>
- <Grid position="absolute 388 270 993 510" id="grd_selectdiag" binddataset="ds_main_selectdiaglist" anchor="default" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="151"/>
- <Column size="434"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="진단코드"/>
- <Cell col="1" text="진단명"/>
- </Band>
- <Band id="body">
- <Cell style="padding:0 2 0 2;" text="bind:termcd" wordwrap="char"/>
- <Cell col="1" style="padding:0 2 0 2;" text="bind:termengnm" wordwrap="char"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="선택진단코드" position="absolute 390 249 524 265" id="caption4" class="tit_2" anchor="default"/>
- <Shape position="absolute 388 265 993 271" linetype="horizontal" id="line3" class="line_1" anchor="default"/>
- <Button position="absolute 940 246 993 265" id="button14" class="btn2" text="행삭제" anchor="default" onclick="group1_button14_onclick"/>
- <Edit position="absolute 470 17 993 36" id="input2" anchor="default" readonly="true"/>
- <Button position="absolute 7 45 23 61" id="button101" class="icon_search" text="" anchor="default" onclick="group1_button101_onclick"/>
- <Button position="absolute 207 17 271 36" id="button12" class="btn2" text="진단선택" anchor="default" onclick="group1_button12_onclick"/>
- <Button position="absolute 151 17 205 36" id="button17" class="btn7" visible="true" text="엑셀" anchor="default" onclick="group1_button17_onclick"/>
- <Shape id="line00" class="line_1" position="absolute 388 264 993 270"/>
- <Shape id="line01" class="line_1" position="absolute 388 266 993 272"/>
- <Shape id="line04" class="line_1" position="absolute 4 35 381 41"/>
- <Shape id="line05" class="line_1" position="absolute 4 37 381 43"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="예문내용" position="absolute 389 80 535 96" id="caption1" class="tit_2"/>
- <Shape position="absolute 388 96 993 102" linetype="horizontal" id="line1" class="line_1"/>
- <TextArea position="absolute 388 101 993 290" id="textarea1" wordwrap="char"/>
- <Button position="absolute 875 580 931 602" id="button2" class="btn4" text="저장" onclick="button2_onclick"/>
- <Button position="absolute 815 580 871 602" id="button3" class="btn4" text="선택" onclick="button3_onclick"/>
- <Button position="absolute 933 580 989 602" id="btn_cls" class="btn4" text="닫기" onclick="btn_cls_onclick"/>
- <Shape id="line00" class="line_1" position="absolute 388 95 993 101"/>
- <Shape id="line02" class="line_1" position="absolute 388 97 993 103"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="comprod" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="comprod">1000008513</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="copyrslt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="copyrslt">* 진단예문 내용 보기 : 마우스 클릭 , * 진단예문 내용 선택 : 마우스 DOUBLE 클릭</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_A0434" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_exmptmpllist" 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="basecdcnts" type="STRING" size="256"/>
- <Column id="sortno" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecd"/>
- <Col id="basecdcnts"/>
- <Col id="sortno"/>
- <Col id="basecdflagdesc"/>
- <Col id="basesuppdeptcd"/>
- <Col id="basecdflag">D</Col>
- <Col id="seq"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sendcontens" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <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="basecdflagdesc" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basecdflagdesc"/>
- <Col id="basecdflag">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_selectdiaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="termcd" type="STRING" size="256"/>
- <Column id="termengnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="termcd"/>
- <Col id="termengnm"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.input2" propid="value" datasetid="ds_init" columnid="copyrslt"/>
- <BindItem id="item1" compid="textarea1" propid="value" datasetid="ds_main" columnid="sendcontens"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- include "ast_examcurexp::AEZ0001.xjs"
- include "ast_examcurexp::combolist.xjs"
- include "emr_commonxp::EMRCommon.xjs"
- include "emr_medirecxp::MMRCommon.xjs"
- include "emr_prcpmngtxp::MMO001.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 결과예문관리 초기화 Function
- ****************************************************************************************/
- function fSetInit() {
- fGetComProd();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 결과예문관리 초기화-내시경코드 Function
- ****************************************************************************************/
- function fGetComProd() {
- // zbcfGetCodeList( new Array("A0434"), new Array("/root/hidden/comprod") );
- var arrParam = [{dsNm: "ds_init_A0434", cdGrpId: "A0434"} ////root/hidden/comprod
- ]
- appf_getCodeList(arrParam);
-
- // submit("TRZBC00101", false);
- ds_init_A0434.deleteRow(0);
- var sProp_12_1 = "col=12,row=1,cellspacing=20,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
-
- grp_sea.rdo_m_comprod.setInitComp(sProp_12_1,ds_init_A0434,"cdid","cdnm","fRdoComprodEvnt");
- grp_sea.rdo_m_comprod.setData(ds_hidden.getColumn(0,"comprod"));
- // rdo_comprod.attribute("cols")= 12;
- }
- function fRdoComprodEvnt() {
- ds_hidden.setColumn(0,"comprod",String(grp_sea.rdo_m_comprod.getData()).replace(","," "));
- fGetTmplList();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 진단선택한 예문 Setting Function
- ****************************************************************************************/
- //function fAddDiag(iRow, iCol) {
- function fAddDiag(iRow) {
- var sTermcd = ds_main_exmptmpllist.getColumn(iRow,"basecd");
- var sTermengnm = ds_main_exmptmpllist.getColumn(iRow,"basecdcnts");
- var iFndRow = ds_main_selectdiaglist.findRow("termengnm",sTermengnm);
-
- if(iFndRow < 0 && !utlf_isNull(sTermengnm)){
- var iCurRow = ds_main_selectdiaglist.addRow();
- ds_main_selectdiaglist.setColumn(iCurRow,"termcd",sTermcd);
- ds_main_selectdiaglist.setColumn(iCurRow,"termengnm",sTermengnm);
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 진단코드 선택 여부 체크
- ****************************************************************************************/
- function fVailCheck(){
- var rtn = true;
- for (var i = 0 ; i < ds_main_selectdiaglist.rowcount ; i++) {
- if (utlf_isNull(ds_main_selectdiaglist.getColumn(i,"termengnm")))
- {
- rtn = false;
- }
- }
-
- return rtn;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 결과예문 선택 시 Parent Instance Setting Function
- ****************************************************************************************/
- function fSendContents() {
- if(!fVailCheck())
- {
- sysf_messageBox("진단은", "I003");
- return;
- }
- if(frmf_checkOpener()) //opener 검사
- {
- if(utlf_isNull(this.opener.objects["ds_temp_selectdiaglist"])) {
- opener.dsf_createDs("ds_temp_selectdiaglist");
- }
-
- opener.ds_temp_selectdiaglist.copyData(ds_main_selectdiaglist);
- }else {
- sysf_messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
- return;
- }
- this.close();
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 예문 조회를 위한 Function
- ****************************************************************************************/
- function fGetInitList() {
- ds_main_exmptmpllist.clearData();
- ds_main_selectdiaglist.clearData();
-
- ds_send_data.setColumn(0,"basecdflagdesc",ds_hidden.getColumn(0,"comprod"));
-
- call_TRAEB00302();
-
- if(arErrorCode.pop("TRAEB00302") > -1) {
- for(i = 1 ; i < group1.grd_exmptmpl.getCellCount("Head") ; i++){
- var sExpr ="color:"#000000""
- +";color2:"#000000""
- +";background:EXPR(sortno<19?"#FFE4C4":"#FFFFFF")"
- +";background2:EXPR(sortno<19?"#FFE4C4":"#FFFFFF")"
- ;
- group1.grd_exmptmpl.setCellProperty("body", i, "style", sExpr);
- }
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회함수
- ****************************************************************************************/
- function call_TRAEB00302() {
- dsf_createDsRow("ds_send_reqdata",[{col:"basecdflagdesc", val:ds_send_data.getColumn(0,"basecdflagdesc")}
- ,{col:"basesuppdeptcd", val:ds_send_globalinstance.getColumn(0,"instance1")}
- ,{col:"udbasecdflag" , val:ds_send_data.getColumn(0,"basecdflag")}
- ,{col:"checkflag" , val:"1"}
- ]);
-
- var oParam = {};
- oParam.id = "TRAEB00302";
- oParam.service = "examcurebaseapp.ExmpTmpl";
- oParam.method = "reqGetExmpTmplList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_exmptmpllist=exmptmpl";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00302";
- tranf_submit(oParam);
- }
- function cf_TRAEB00302(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_main_exmptmpllist.updatecontrol = false;
- for(var i = 0 ; i < ds_main_exmptmpllist.rowcount ; i++) {
- ds_main_exmptmpllist.setColumn(i,"basecdcnts",utlf_transNullToEmpty(ds_main_exmptmpllist.getColumn(i,"basecdcnts")).getTrim());
- }
- ds_main_exmptmpllist.updatecontrol = true;
- ds_main_exmptmpllist.rowposition = -1;
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 조회실행
- ****************************************************************************************/
- function fGetTmplList() {
- ds_main_exmptmpllist.clearData();
-
- ds_send_data.setColumn(0,"basecdflagdesc",ds_hidden.getColumn(0,"comprod"));
- call_TRAEB00302();
-
- if(arErrorCode.pop("TRAEB00302") > -1) {
- for(i = 1 ; i < group1.grd_exmptmpl.getCellCount("Head") ; i++){
- var sExpr ="color:"#000000""
- +";color2:"#000000""
- +";background:EXPR(sortno<19?"#FFE4C4":"#FFFFFF")"
- +";background2:EXPR(sortno<19?"#FFE4C4":"#FFFFFF")"
- ;
- group1.grd_exmptmpl.setCellProperty("body", i, "style", sExpr);
- }
- }
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 예문 저장/수정/삭제를 위한 Function
- ****************************************************************************************/
- function fExeTmpl() {
- var row = ds_main_exmptmpllist.rowposition;
- if ( sysf_messageBox("","Q002")==6 ) {
- var dsUpdate = grdf_getGridUpdateData(group1.grd_exmptmpl, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- if(dsUpdate.rowcount == 0){
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return;
- } else {
- ds_send_savedata.clear();
- ds_send_savedata.copyData(dsUpdate, true);
- ds_send_savedata.updateColID("basecdflag","ubasecdflag");
- // submit("TXAEB00302");
- var oParam = {};
- oParam.id = "TXAEB00302";
- oParam.service = "examcurebaseapp.ExmpTmpl";
- oParam.method = "reqExeExmpTmplList";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_temp=item";
- oParam.async = true;
- //oParam.callback = "cf_TXAEB00302";
- tranf_submit(oParam);
- }
- }
-
- fGetTmplList();
- }
-
- /****************************************************************************************
- * Argument : diagInfo
- * Description :
- ****************************************************************************************/
- function fAddDiagSetValue(diagInfo) {
- var diagRow = diagInfo.split ( "▩" ).length;
- // var rowidx = ds_main_exmptmpllist.rowcount;
- for ( var i = 0; i < diagRow-1 ; i++ ) {
- var diagcd = lf_getArrayData( diagInfo, i, 9, "▩", "▦" );
- var diagengnm = lf_getArrayData( diagInfo, i, 2, "▩", "▦" );
-
- var nRow = ds_main_exmptmpllist.addRow();
- ds_main_exmptmpllist.setColumn(nRow,"basecd", diagcd);
- ds_main_exmptmpllist.setColumn(nRow,"basecdcnts", diagengnm);
- ds_main_exmptmpllist.setColumn(nRow,"basecdflag", ds_send_data.getColumn(0,"basecdflag"));
- ds_main_exmptmpllist.setColumn(nRow,"basesuppdeptcd", ds_send_globalinstance.getColumn(0,"instance1"));
- // var index = rdo_comprod.focusIndex+1;
- dsf_makeValue(ds_main_exmptmpllist,"basecdflagdesc","string",ds_hidden.getColumn(0,"comprod"),nRow);
- // rowidx++;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB00301
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB00302_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAEB00301
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB00302_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
- fSetInit();
- fGetInitList();
-
- grdf_setRowTypeIcon(group1.grd_exmptmpl, 0);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_sea.button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼
- ****************************************************************************************/
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTmplList();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.button17
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장
- ****************************************************************************************/
- function group1_button17_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(group1.grd_exmptmpl,"excel","sheet1");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.button12
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진단선택 팝업 오픈
- ****************************************************************************************/
- function group1_button12_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SPMMO03100_openflag", "ocs");
- var pid = "18668500";
- var orddd = "20071231";
- var param = pid+"▦"+orddd;
- frmf_setParameter("SPMMO03100_patinfo", param);
-
- frmf_modal("SPMMO03100", "SPMMO03100", null, null, null, 200, 40, null, null, null, null, null, "M");
-
- if ( frmf_getParameter( "SPMMO03100_rtn_useyn" ) == "Y" ) {
- fAddDiagSetValue(frmf_getParameter( "SPMMO03100_rtn" ));
- frmf_setParameter( "SPMMO03100_rtn_useyn", "" );
- }
- // model.recalculate();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.button5
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행추가
- ****************************************************************************************/
- function group1_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_exmptmpllist.addRow();
- // 행추가 시 bottomRow 사용하지 마세요!! 꼭
- // grd_exmptmpl.topRow = grd_exmptmpl.row;
- group1.grd_exmptmpl.setCellPos(nRow);
-
- ds_main_exmptmpllist.setColumn(nRow,"basesuppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
- // var index = rdo_comprod.focusIndex+1;
- ds_main_exmptmpllist.setColumn(nRow,"basecdflagdesc",ds_hidden.getColumn(0,"comprod"));
- ds_main_exmptmpllist.setColumn(nRow,"basecdflag" ,ds_send_data.getColumn(0,"basecdflag"));
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제
- ****************************************************************************************/
- function group1_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- var arrRow = new Array();
- arrRow[0] = ds_main_exmptmpllist.rowposition;
- grdf_setStatus(group1.grd_exmptmpl, "D", arrRow);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : group1.grd_exmptmpl
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 예문선택시
- ****************************************************************************************/
- function group1_grd_exmptmpl_onlbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(ds_main_exmptmpllist.rowposition != e.row) {
- textarea1.updateToDataset();
- ds_main_exmptmpllist.setColumn(ds_main_exmptmpllist.rowposition,"basecdcnts",utlf_transNullToEmpty(ds_main.getColumn(0,"sendcontens")));
- }
- }
- function group1_grd_exmptmpl_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- var row = ds_main_exmptmpllist.rowposition;
- ds_main.setColumn(0,"sendcontens", ds_main_exmptmpllist.getColumn(row,"basecdcnts"));
-
- // var iRow = group1.grd_exmptmpl.row;
- // var iCol = group1.grd_exmptmpl.col;
- if(row > -1){
- // fAddDiag(iRow, iCol);
- fAddDiag(row);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group1.button14
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 행삭제
- ****************************************************************************************/
- function group1_button14_onclick(obj:Button, e:ClickEventInfo)
- {
- var iRow = ds_main_selectdiaglist.rowposition;
- if(iRow > -1){
- ds_main_selectdiaglist.deleteRow(iRow);
- }
- // grd_selectdiag.refresh();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 선택
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_main_exmptmpllist.rowposition < 0 ) return;
-
- fSendContents();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeTmpl();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : group2.btn_cls
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기
- ****************************************************************************************/
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function group1_button101_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SPMMO03100_openflag", "ocs");
- var pid = "18668500";
- var orddd = "20071231";
- var param = pid+"▦"+orddd;
- frmf_setParameter("SPMMO03100_patinfo", param);
- frmf_modal("SPMMO03100", "SPMMO03100", null, null, null, 200, 40, null, null, null, null, null, "M");
-
- if ( frmf_getParameter( "SPMMO03100_rtn_useyn" ) == "Y" ) {
- fAddDiagSetValue(frmf_getParameter( "SPMMO03100_rtn" ));
- frmf_setParameter( "SPMMO03100_rtn_useyn", "" );
- }
- // model.recalculate();
- }
- ]]></Script>
- </Form>
- </FDL>
|