123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEA05000" position="absolute 0 0 1189 755" titletext="Untitle" oninit="SMAEA05000_oninit" onload="SMAEA05000_onload">
- <Layouts>
- <Layout>
- <Static text="치료 스케줄 기준정보 관리" position="absolute 0 0 237 23" id="caption6" class="tit_1"/>
- <Button position="absolute 1113 65 1185 84" id="button12" class="btn7" text="엑셀저장" onclick="button12_onclick"/>
- <Static text="치료 코드 현황" position="absolute 0 68 146 90" id="caption1" class="tit_2"/>
- <Grid position="absolute 0 85 1185 727" id="grd_list" binddataset="ds_main_list_item" autofittype="col" cellmovingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="69"/>
- <Column size="0"/>
- <Column size="120"/>
- <Column size="270"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- </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="치료 후 촬영일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:useyn"/>
- <Cell col="2" text="bind:suppdeptcd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:excucd"/>
- <Cell col="4" style="align:left middle;" text="bind:excucdnm" wordwrap="word" taborder="0"/>
- <Cell col="5" displaytype="number" edittype="normal" text="bind:drugadjtdd"/>
- <Cell col="6" displaytype="number" edittype="normal" text="bind:dietregmdd"/>
- <Cell col="7" displaytype="number" edittype="normal" text="bind:examrsrvdd"/>
- <Cell col="8" displaytype="number" edittype="normal" text="bind:drugaftphotm"/>
- <Cell col="9" displaytype="number" edittype="normal" text="bind:cureaftpohdd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1059 65 1112 84" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
- <Button position="absolute 931 65 1058 84" id="btn_selcalcscorcd" class="btn2" text="검사코드조회및추가" onclick="btn_selcalcscorcd_onclick"/>
- <Div id="grp_sea" taborder="1" position="absolute 0 24 1187 59" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption2" text="검사코드 :" class="search_name" position="absolute 15 9 101 26" anchor="default"/>
- <Edit id="ipt_srchexamcurecd" taborder="1" class="input_search" position="absolute 100 8 215 27" anchor="default"/>
- <Static id="caption3" text="검사코드명 :" class="search_name" position="absolute 235 10 335 27" anchor="default"/>
- <Edit id="ipt_srchexamcurenm" taborder="2" class="input_search" position="absolute 336 8 485 27" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1112 7 1118 29" anchor="default"/>
- <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_prt" taborder="2" text="저장" class="btn4" position="absolute 1128 728 1184 750" onclick="btn_prt_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchexcucd" type="STRING" size="256"/>
- <Column id="srchexcucdnm" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="excucd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="excucdnm" type="STRING" size="256" sumtext="검사코드명"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="drugadjtdd" type="INT" size="256" sumtext="약물조절일"/>
- <Column id="dietregmdd" type="INT" size="256" sumtext="식이요법일"/>
- <Column id="examrsrvdd" type="INT" size="256" sumtext="검사예약일"/>
- <Column id="drugaftphotm" type="INT" size="256" sumtext="약물 투여후 촬영 시간"/>
- <Column id="cureaftpohdd" type="INT" size="256" sumtext="치료 후 촬영일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_templst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_templst_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="okflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_srchexamcurenm" propid="value" datasetid="ds_send" columnid="srchexcucdnm"/>
- <BindItem id="item1" compid="grp_sea.ipt_srchexamcurecd" propid="value" datasetid="ds_send" columnid="srchexcucd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- var gSuppdeptcd = "";
- function SMAEA05000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAEA05000_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd();
-
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
- ds_send.setColumn(0, "suppdeptcd", gSuppdeptcd);
-
- var oParam = {};
- oParam.id = "TRAEA05002";
- oParam.service = "examcurebaseapp.NuclCureSche";
- oParam.method = "reqGetNuclCureScheInfoList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA05002";
- tranf_submit(oParam);
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetNuclCureScheInfoList();
- }
- function fGetNuclCureScheInfoList()
- {
- ds_main_list_item.clearData();
-
- var oParam = {};
- oParam.id = "TRAEA05002";
- oParam.service = "examcurebaseapp.NuclCureSche";
- oParam.method = "reqGetNuclCureScheInfoList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEA05002";
- tranf_submit(oParam);
- }
- function btn_selcalcscorcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sessiondept = gSuppdeptcd;
-
- fGetCalScorCd( "cd", "", "Y", "ds_temp_templst", "", "", "");
- fSetCureOcd(grd_list , "ds_temp_templst" , 2, "Y", "excucd", "excucdnm", sessiondept, "0" );
- }
- function fSetCureOcd(vGrdObj, vSrcXPath, vDupCheckCol, vDupCheck, vCodeNode, vNameNode, vSessiondept, vHeaderAddRows )
- {
- if( utlf_isNull(vGrdObj))
- {
- return ;
- }
- if(utlf_isNull(vSrcXPath))
- {
- return ;
- }
-
- if( ds_temp.getColumn(0, "okflag") != "ok" )
- {
- return ;
- }
-
- var cnt = eval(vSrcXPath).rowcount;
- if(!utlf_isNull(vHeaderAddRows))
- {
- grdcnt = ds_main_list_item.rowcount - parseInt(vHeaderAddRows);
- }
- var vDupCheckVal = "";
- var i = 0;
- if( cnt == 1 )
- {
- for( var i = 0 ; i < cnt ; i++ )
- {
- vDupCheckVal = eval(vSrcXPath).getColumn(i, "calcscorcd");
-
- if( vDupCheck == "Y" )
- {
- if( lf_checkDup(vGrdObj , vDupCheckCol, vDupCheckVal ) == false )
- {
- if( sysf_messageBox("중복되는 수가코드[" + vDupCheckVal + "] 를 추가", "S001") != 6 )
- {
- continue ;
- }
- }
- }
- }
-
- grdcnt = ds_main_list_item.addRow();
- if(!utlf_isNull(vCodeNode))
- {
- dsf_makeValue(ds_main_list_item, vCodeNode, "string", vDupCheckVal, grdcnt);
- }
- if(!utlf_isNull(vNameNode))
- {
- dsf_makeValue(ds_main_list_item, vNameNode, "string", eval(vSrcXPath).getColumn(0, "ordnm"), grdcnt);
- }
-
- dsf_makeValue(ds_main_list_item, "excucd", "string", vDupCheckVal, grdcnt);
- dsf_makeValue(ds_main_list_item, "excucdnm", "string", eval(vSrcXPath).getColumn(0, "ordnm"), grdcnt);
- dsf_makeValue(ds_main_list_item, "suppdeptcd", "string", vSessiondept, grdcnt);
- dsf_makeValue(ds_main_list_item, "useyn", "string", "Y", grdcnt);
- }
- else
- {
- for( var i = 0 ; i < cnt ; i++ )
- {
- vDupCheckVal = vSrcXPath.getColumn(i, "calcscorcd");
-
- if( vDupCheck == "Y" )
- {
- if( fCheckDup(vGrdObj , vDupCheckCol, vDupCheckVal ) == false )
- {
- if( sysf_messageBox("중복되는 수가코드[" + vDupCheckVal + "] 를 추가", "S001") != 6 )
- {
- continue ;
- }
- }
- }
-
- ds_main_list_item.setColumn(i, "useyn", "N");
- grdcnt = ds_main_list_item.addRow();
-
- if(!utlf_isNull(vCodeNode))
- {
- ds_main_list_item.setColumn(grdcnt, vCodeNode, vDupCheckVal);
- }
- if(!utlf_isNull(vNameNode))
- {
- ds_main_list_item.setColumn(grdcnt, vNameNode, vSrcXPath.getColumn(i, "ordnm"));
- }
-
- dsf_makeValue(ds_main_list_item, "excucd", "string", vDupCheckVal, grdcnt);
- dsf_makeValue(ds_main_list_item, "excucdnm", "string", vSrcXPath.getColumn(i, "ordnm"), grdcnt);
- dsf_makeValue(ds_main_list_item, "suppdeptcd", "string", vSessiondept, grdcnt);
- dsf_makeValue(ds_main_list_item, "useyn", "string", "Y", grdcnt);
- }
- }
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grd_list, true);
- }
- function button12_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_list_item.rowcount > 0 )
- {
- grdf_exportExcel(grd_list, "치료 스케줄 기준정보 관리", "", false, "", "user", false);
- }
- else
- {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- function btn_prt_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("검사코드를","Q002")==6 )
- {
-
- var check = fCheckExCuCd();
-
- if ( check == "1" )
- {
- return;
- }
-
- var oParam = {};
- oParam.id = "TXAEA05001";
- oParam.service = "examcurebaseapp.NuclCureSche";
- oParam.method = "reqExeNuclCureScheInfo";
- oParam.inds = "req=ds_main_list_item:U";
- //oParam.outds = "ds_=item";
- oParam.typeStr = "m";
- oParam.async = false;
- //oParam.callback = "cf_TXAEA05001";
- tranf_submit(oParam);
-
- ds_send.setColumn(0, "srchexcucd", "");
- ds_send.setColumn(0, "srchexcucdnm", "");
-
- fGetNuclCureScheInfoList();
- }
- }
- function fCheckExCuCd()
- {
- var srchLength1 = ds_main_list_item.rowcount
-
- for (var i = 0 ; i < srchLength1; i++ )
- {
- if(utlf_isNull(ds_main_list_item.getColumn(i, "excucd")))
- {
- sysf_messageBox("검사코드[필수입력사항]를 입력 해야 합니다.","I999");
- return "1";
- }
- }
-
- }]]></Script>
- </Form>
- </FDL>
|