123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPADC02800" position="absolute 0 0 874 198" titletext="다학제간 환자 교육정보 입력" oninit="SPADC02800_oninit" onload="SPADC02800_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 18 123 93" id="grd_datagrid10" binddataset="ds_grd_datagrid10" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="80"/>
- </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 text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:cdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 93 123 193" id="grd_datagrid11" binddataset="ds_grd_datagrid11" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="80"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="교육대상자"/>
- <Cell col="2"/>
- </Band>
- <Band id="body">
- <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" enable="false" text="bind:cdnm" edittype="text" displaytype="text"/>
- <Cell col="2" text="bind:cdno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 129 17 364 193" id="grd_datagrid12" binddataset="ds_grd_datagrid12" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="192"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="교육방법"/>
- <Cell col="2"/>
- </Band>
- <Band id="body">
- <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" enable="false" text="bind:cdnm" edittype="text" displaytype="text"/>
- <Cell col="2" text="bind:cdno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 369 17 692 193" id="grd_datagrid13" binddataset="ds_grd_datagrid13" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="280"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="교육결과"/>
- <Cell col="2"/>
- </Band>
- <Band id="body">
- <Cell text="bind:selected" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" enable="false" text="bind:cdnm" edittype="text" displaytype="text"/>
- <Cell col="2" text="bind:cdno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Calendar position="absolute 782 15 872 34" id="ipt_edudd" mask="yyyy-mm-dd"/>
- <Static text="* 교육일자 :" position="absolute 697 15 782 35" id="caption2"/>
- <MaskEdit position="absolute 782 39 847 58" id="ipt_edutm" mask="hh:nn"/>
- <Static text="* 교육시간 :" position="absolute 697 39 782 59" id="caption3"/>
- <Button position="absolute 814 170 870 192" id="btn_save" class="btn3" text="확인"/>
- <Button position="absolute 756 169 812 191" id="button5" class="btn4" visible="false" text="닫기"/>
- <Static text="다학제간 환자 교육정보 입력" position="absolute 0 0 617 27" id="caption17" class="tit_2"/>
- <Shape position="absolute 10 17 702 23" linetype="vertical" id="line12" class="line_1"/>
- <Shape position="absolute 0 193 692 199" linetype="horizontal" id="line1" class="line_3"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_datagrid10" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="selected" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_datagrid11" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="selected" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_datagrid12" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="selected" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_datagrid13" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="selected" type="STRING"/>
- <Column id="cdnm" type="STRING"/>
- <Column id="cdno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_opnerdatanstinfo" 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="eduprepyn" type="STRING" size="256"/>
- <Column id="eduwho" type="STRING" size="256"/>
- <Column id="eduway" type="STRING" size="256"/>
- <Column id="edurslt" type="STRING" size="256"/>
- <Column id="edudd" type="STRING" size="256"/>
- <Column id="edutm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="eduprepyn"/>
- <Col id="eduwho"/>
- <Col id="eduway"/>
- <Col id="edurslt"/>
- <Col id="edudd"/>
- <Col id="edutm"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <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 "emr_jcimngtxp::SMMRJ099.xjs";
- /******************************************************************
- * Argument :
- * Description : 초기화
- ******************************************************************/
- function SPADC02800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPADC02800_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- }
- function fInit(){
- fSelectCodeList();
- fSetEducTrgtMans();
-
- try{
- ds_init_opnerdatanstinfo.copyData(arg_ds_init_opnerdatanstinfo);
- }catch(e){
- }
-
- var vGridRows10 = ds_grd_datagrid10.getRowCount();
- var vGridRows11 = ds_grd_datagrid11.getRowCount();
- var vGridRows12 = ds_grd_datagrid12.getRowCount();
- var vGridRows13 = ds_grd_datagrid13.getRowCount();
- var vGridCheckValue10 = "";
- var vGridCheckValue11 = "";
- var vGridCheckValue12 = "";
- var vGridCheckValue13 = "";
- var etcCheckNum12 = 0;
- var etcCheckNum13 = 0;
- var nstflag = ds_init_opnerdatanstinfo.getColumn(0, "nstflag"); // 의뢰구분
- var NstNodepathMain = ds_init_opnerdatanstinfo.getColumn(0, "nodepath"); //opner Node Path - root/main/ennstinfo/
-
- // 수행시간을 현재 시간으로 세팅
- var curDt = utlf_getCurrentDateTime().split(" ");
- var NstNodepathMainDS = opener.objects[NstNodepathMain + "_enreduinfo"];
-
- // 교육일자, 교육시간 세팅
- if( utlf_isNull(NstNodepathMainDS.getColumn(0, "edudd")) ||
- utlf_isNull(NstNodepathMainDS.getColumn(0, "edutm")) ||
- NstNodepathMainDS.getColumn(0, "edudd") == "99991231" ||
- NstNodepathMainDS.getColumn(0, "edutm") == "235959") {
- ds_hidden.setColumn(0, "edudd", curDt[0]);
- ds_hidden.setColumn(0, "edutm", curDt[1]);
- } else {
- ds_hidden.setColumn(0, "edudd", NstNodepathMainDS.getColumn(0, "edudd"));
- ds_hidden.setColumn(0, "edutm", NstNodepathMainDS.getColumn(0, "edutm"));
- }
-
- var eduprepyn = NstNodepathMainDS.getColumn(0, "eduprepyn"); // 학습준비도
- var eduwho = NstNodepathMainDS.getColumn(0, "eduwho"); // 교육대상자
- var eduway = NstNodepathMainDS.getColumn(0, "eduway"); // 교육방법
- var edurslt = NstNodepathMainDS.getColumn(0, "edurslt"); // 교육결과
-
- // 학습준비도 그리드 데이터 세팅
- var initCheck10 = "Y";
- for( var i10 = 0; i10 < vGridRows10; i10++ ){
- if( datagrid10 == eduprepyn ){
- ds_grd_datagrid10.setColumn(i10, 0, "true");
- initCheck10 = "N";
- }
- }
-
- // 학습준비도 초기 값 세팅
- if( initCheck10 == "Y" ) {
- ds_grd_datagrid10.setColumn(1, 0, "true");
- }
-
- // 교육대상자 그리드 데이터 세팅
- var initCheck11 = "Y";
- eduwho = eduwho.split(", ");
- for( var i11 = 0; i11 < vGridRows11; i11++ ){
- for( var i = 0; i < eduwho.length; ++i ){
- if( ds_grd_datagrid11.getColumn(i11, 0) == eduwho[i] ){
- ds_grd_datagrid11.setColumn(i11, 0, "true");
- initCheck11 = "N";
- }
- }
- }
-
- // 교육대상자 초기 값 세팅
- if( initCheck11 == "Y" ) {
- ds_grd_datagrid11.setColumn(1, 0, "true");
- }
-
- // 교육방법 그리드 데이터 세팅
- var initCheck12 = "Y";
- eduway = eduway.split(", ");
- for( var i12 = 0; i12 < vGridRows12; i12++ ){
- for( var i = 0; i < eduway.length; ++i ) {
- if( ds_grd_datagrid12.getColumn(i12, 1) == eduway[i] ){
- ds_grd_datagrid12.setColumn(i12, 0, "true");
- ++etcCheckNum12;
- initCheck12 = "N";
- }
- }
-
- // 기타 항목 체크1( 값이 '기타' 일 경우 )
- if( i12 == (vGridRows12-1) && ds_grd_datagrid12.getColumn(i12, 0) == eduway[eduway.length-1] ){
- datagrid12.cellAttribute("disabled", i12, 1 ) = "false";
- datagrid12.cellstyle("background-color", i12, 1) = "#DDDDDD";
- initCheck12 = "N";
- }
-
- // 기타 항목 체크2( 값이 '기타' 가 아닐 경우 )
- if(i12 == (vGridRows12-1) && etcCheckNum12 != eduway.length) {
- if(eduway[eduway.length-1] != "") {
- datagrid12.valueMatrix(i12,0) = "true";
- datagrid12.valueMatrix(i12,1) = eduway[eduway.length-1];
- datagrid12.cellAttribute("disabled", (vGridRows12-1), 1 ) = "false";
- datagrid12.cellstyle("background-color", (vGridRows12-1), 1) = "#DDDDDD";
- initCheck12 = "N";
- }
- }
- }
- }]]></Script>
- </Form>
- </FDL>
|