123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[function fInit() {
- ipt_reqfromstnddd.value = utlf_getNewDate().getAddDate(-2, "D").getDateFormat("YYYYMMDD").substr(0, 8);
- ipt_reqtostnddd.value = utlf_getCurrentDate().substr(0, 8);
-
- //데이터 없음
- //emrfGetCodeList(new Array("J000000001","J000000002","J000000003","J000000004","J000000005","J000000010","J000000014"), new Array("/root/init/J000000001","/root/init/J000000002","/root/init/J000000003","/root/init/J000000004","/root/init/J000000005","/root/init/J000000010","/root/init/J000000014"));
-
- //교육 장애요인여부(Y/N) Radio Button List
- var sProp1="col=2,row=1,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=27,overflow=''";
- rdo_eduhandcapyn.setInitComp(sProp1, ds_init_eduhandcapyn, "cdid", "cdnm", "fn_setEduhandcapyn");
-
- fGetOpenPatInfo();
-
- //교육 장애요인여부(Y/N) 데이터 설정
- fn_getEduhandcapyn();
- }
- /******************************************************************
- * Argument :
- * Description : 교육 장애요인여부(Y/N) bind set
- ******************************************************************/
- function fn_setEduhandcapyn(){
- var getEduhandcapyn;
- getEduhandcapyn = String(rdo_eduhandcapyn.getData());
- ds_main_educordlist.setColumn(0, "eduhandcapyn", getEduhandcapyn);
- }
- /******************************************************************
- * Argument :
- * Description : 교육 장애요인여부(Y/N) DBget
- ******************************************************************/
- function fn_getEduhandcapyn(){
- if( !utlf_isNull(ds_main_educordlist.getColumn(0, "eduhandcapyn")) ) {
- var setData = ds_main_educordlist.getColumn(0, "eduhandcapyn");
- rdo_eduhandcapyn.setData(setData);
- }
- }
- /******************************************************************
- * Argument :
- * Description : fGetOpenPatInfo()
- ******************************************************************/
- function fGetOpenPatInfo(){
- var pid = "";
- var orddd = "";
- var cretno = "";
- var hngnm = "";
- var ioflag= "";
-
- if( frmf_isPopup() ) {
- pid = opener.frmf_getParameter("SMMRJ00200_pid");
- orddd = opener.frmf_getParameter("SMMRJ00200_orddd");
- cretno = opener.frmf_getParameter("SMMRJ00200_cretno");
- hngnm = opener.frmf_getParameter("SMMRJ00200_hngnm");
- ioflag = opener.frmf_getParameter("SMMRJ00200_ioflag");
- }
-
- if ( utlf_isNull(pid) ) { pid = ""; }
- if ( utlf_isNull(orddd) ) { orddd = ""; }
- if ( utlf_isNull(cretno) ) { cretno = ""; }
- if ( utlf_isNull(hngnm) ) { hngnm = ""; }
- if ( utlf_isNull(ioflag) ) { ioflag = ""; }
- if ( !utlf_isNull(pid) && !utlf_isNull(orddd) && !utlf_isNull(cretno) && !utlf_isNull(hngnm) && !utlf_isNull(ioflag) ) {
- ds_send_reqdata.setColumn(0, "pid", pid);
- ds_send_reqdata.setColumn(0, "pnm", hngnm);
- ds_send_reqdata.setColumn(0, "ordtype", ioflag);
- ds_init_condition.setColumn(0, "pid", pid);
- ds_init_condition.setColumn(0, "orddd", orddd);
- ds_init_condition.setColumn(0, "cretno", cretno);
- fSearchOrdList();
-
- if( !utlf_isNull(pid) && utlf_isNull(hngnm) ){
- ds_send_reqdata.setColumn(0, "pid", pid);
- fSearchPatNm();
- }
- } else {
- if( !utlf_isNull(pid) && utlf_isNull(hngnm) ){
- ds_send_reqdata.setColumn(0, "pid", pid);
- fSearchPatNm();
- }
- }
-
- if( utlf_isNull(pid) ) {
- // ???? ????????
- var pamInfoCvs = sysf_getGlobalVariable("paminfo");
- ds_main_paminfo.clearData();
- dsf_setCSVToDs("ds_main_paminfo", pamInfoCvs);
-
- pid = ds_main_paminfo.getColumn(0, "pid");
- hngnm = ds_main_paminfo.getColumn(0, "hngnm");
- ioflag = ds_main_paminfo.getColumn(0, "ioflag");
-
- ds_send_reqdata.setColumn(0, "pid", pid);
- ds_send_reqdata.setColumn(0, "pnm", hngnm);
-
- if( ioflag == "I" || ioflag == "D" || ioflag == "E" ){
- ioflag = "I";
- }
- else if( ioflag == "O" ){
- ioflag = "O";
- }
- else{
- ioflag = "ALL";
- }
-
-
- if( ioflag == "I" ){
- orddd = ds_main_paminfo.getColumn(0, "indd");
- } else {
- orddd = ds_main_paminfo.getColumn(0, "orddd");
- }
- cretno = ds_main_paminfo.getColumn(0, "cretno");
-
- // orddd = "20060428";
- // cretno = "800339501";
-
- if ( utlf_isNull(pid) ) { pid = ""; }
- if ( utlf_isNull(hngnm) ) { hngnm = ""; }
- if ( utlf_isNull(orddd) ) { orddd = ""; }
- if ( utlf_isNull(cretno) ) { cretno = ""; }
- if ( !utlf_isNull(pid) && !utlf_isNull(orddd) && !utlf_isNull(cretno) && !utlf_isNull(hngnm) ) {
-
- ds_init_condition.setColumn(0, "pid", pid);
- ds_init_condition.setColumn(0, "orddd", orddd);
- ds_init_condition.setColumn(0, "cretno", cretno);
-
- ds_send_reqdata.setColumn(0, "ordtype", ioflag);
-
- fSearchOrdList();
- } else {
- input1.setFocus();
- }
- }
- }
- function fSearchOrdList(){
- ds_init_ordlist.clearData();
- fInitMainList();
-
- var ordtype = radio2.value;
- if( !utlf_isNull(ds_send_reqdata.getColumn(0, "pnm")) ){
- ds_send_reqdata.setColumn(0, "ordtype", ordtype);
-
- var oParam = {};
- oParam.id = "TRMRJ00102";
- oParam.service = "jcimngtapp.JcimngtBase";
- oParam.method = "reqGetOrdList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_ordlist=ordlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMRJ00102";
- tranf_submit(oParam);
-
- if( utlf_isNull(ds_init_condition.getColumn(0, "pid")) && utlf_isNull(ds_init_condition.getColumn(0, "orddd")) && utlf_isNull(ds_init_condition.getColumn(0, "cretno")) ){
- combo1.setFocus();
- combo1.index = 0;
- frmf_inputEnterKey("combo1", "onitemchanged", new ItemChangeEventInfo);
- } else {
- fChangeValueOrdList("open");
- }
- }
- }
- function fInitMainList() {
- ds_main_educordlist.clearData();
- ds_main_educcntslist.clear();
- ds_main_educcntslist.addRow();
- }
- function fChangeValueOrdList(value){
- var ordtype = "";
- if( value == "open" && !utlf_isNull(ds_init_condition.getColumn(0, "pid")) && !utlf_isNull(ds_init_condition.getColumn(0, "orddd")) && !utlf_isNull(ds_init_condition.getColumn(0, "cretno")) ){
- for( var i = 0; i < ds_init_ordlist.rowcount; i++ ){
- if( ds_init_ordlist.getColumn(i, "suminfo") == ds_init_condition.getColumn(0, "pid") + ds_init_condition.getColumn(0, "orddd") + ds_init_condition.getColumn(0, "cretno") ){
- ds_init_condition.clearData();
- combo1.index = (i);
- }
- frmf_inputEnterKey("combo1", "onitemchanged", new ItemChangeEventInfo);
- }
-
- }else{
- ds_search.setColumn(0, "pid", ds_init_ordlist.getColumn(0, "pid"));
- ds_search.setColumn(0, "orddd", ds_init_ordlist.getColumn(0, "orddd"));
- ds_search.setColumn(0, "cretno", ds_init_ordlist.getColumn(0, "cretno"));
- ds_search.setColumn(0, "ordtype", ds_init_ordlist.getColumn(0, "ordtype"));
- ds_search.setColumn(0, "fromdd", ds_init_ordlist.getColumn(0, "orddd"));
- ordtype = ds_init_ordlist.getColumn(0, "ordtype");
-
- if( ordtype == "I" ){
- ds_search.setColumn(0, "daycheck", "");
- }else{
- ds_search.setColumn(0, "daycheck", "0");
- }
-
- fSelectOrdCntsList();
- }
- }
- function fSelectOrdCntsList(){
- fInitMainList();
- var oParam = {};
- oParam.id = "TRMRJ00201";
- oParam.service = "jcimngtapp.JcimngtBase";
- oParam.method = "reqGetEducOrdCntsList";
- oParam.inds = "req=ds_search";
- oParam.outds = "ds_main_educordlist=educordlist ds_main_educcntslist=educcntslist ds_main_educorddaylist=educorddaylist";
- oParam.async = false;
- //oParam.callback = "cf_TRMRJ00201";
- tranf_submit(oParam);
- //row enable 처리를 위해 컬럼 추가
- ds_main_educcntslist.addColumn("type", "string", 256);
-
- fCheckOtherYn(ipt_eduwho9 ,chk_eduwho9.value);
- fCheckOtherYn(ipt_eduhandcap9 ,chk_eduhandcap9ck.value);
- fCheckOtherYn(ipt_eduway9 ,chk_eduway9ck.value);
- fCheckOtherYn(ipt_eduneed9 ,chk_eduneed9ck.value);
-
- if( rdo_eduwill.value== "999" ){
- fCheckOtherYn(ipt_eduwill9, "Y");
- }else{
- fCheckOtherYn(ipt_eduwill9, "N");
- }
- fColDisableChk();
- }
- function fCheckOtherYn(ipt, param){
-
- if( param=="Y" ){
- ipt.visible = true;
- }else{
- ipt.visible = false;
- ipt.value = "";
- }
- }
- function fSearchPatNm(){
- if( utlf_isNull(ds_send_reqdata.getColumn(0, "pid")) ){
- return;
- }else{
- fGetPid("ds_send_reqdata");
- }
- }
- /**
- * @desc : ???????????? ???? ????
- * @
- * @param : refPid - ???????? ???? node path
- * refPnm - ?????? ???? node path
- * @return :
- * @authur : ?????? 2008.03.18
- * @---------------------------------------------------
- */
- function fGetPid(refDs)
- {
- var NstNodepathDS = this.objects[refDs];
- ds_send_reqdata.setColumn(0, "pnm","");
- ds_init_ordlist.clearData();
-
- fInitMainList();
-
- ds_patinfolist.clearData();
-
- //?????????? 1???? ???? ???????? ???? ??????.
- dsf_createDsRow("ds_hidden_pidpopupinfo",
- [{col:"checkfnexam", type:"string", size:256, val:"1"}
- , {col:"autoflag", type:"string", size:256, val:"Y"}
- , {col:"pid", type:"string", size:256, val:NstNodepathDS.getColumn(0, "pid")}
- , {col:"srchcond", type:"string", size:256, val:""}], true);
-
- if( utlf_isNull(ds_hidden_pidpopupinfo.getColumn(0, "srchcond")) ){
- ds_hidden_pidpopupinfo.setColumn(0, "srchcond", '1');
- }
- var objArg = new Object();
- objArg.arg_ds_send = ds_hidden_pidpopupinfo;
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, null, null, null, null, null, null, null, null, "M");
-
- //???????? copy
- ds_main_popupendflag.setColumn(0, "popupendflag", frmf_getParameter("SPPMC02500_popupendflag"));
- var popupendflag = ds_main_popupendflag.getColumn(0, "popupendflag");
- if( popupendflag == "ok" ){
- NstNodepathDS.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
-
- var getPnm = ds_patinfolist.getColumn(0, "hngnm");
- if( utlf_isNull(getPnm) ) NstNodepathDS.setColumn(0, "pnm", "");
- if( !utlf_isNull(getPnm) ) {
- NstNodepathDS.setColumn(0, "pnm", ds_patinfolist.getColumn(0, "hngnm"));
- }
- fSearchOrdList();
- }
- }
- function fColDisableChk(){
- var rowSize = ds_main_educcntslist.rowcount;
- for( var i = 0; i < rowSize; i++ ){
- if( sysf_getUserId()!= ds_main_educcntslist.getColumn(i, "fstrgstrid") || ds_main_educcntslist.getColumn(i, "linkcd") != "-" ){
- ds_main_educcntslist.updatecontrol = false;
- ds_main_educcntslist.setColumn(i, "type", "Y");
- ds_main_educcntslist.updatecontrol = true;
- }
- }
- }
- /******************************************************************
- * Argument :
- * Description : 추가입력 Button Event
- ******************************************************************/
- function fGetAddPopup(){
- vPid = ds_search.getColumn(0, "pid");
- vOrddd = ds_search.getColumn(0, "orddd");
- vCretno = ds_search.getColumn(0, "cretno");
- frmf_setParameter("SPMRJ00200_pid" ,vPid);
- frmf_setParameter("SPMRJ00200_orddd" ,vOrddd);
- frmf_setParameter("SPMRJ00200_cretno",vCretno);
- frmf_modal("SPMRJ00200", "SPMRJ00200", null, null, null, null, null, null, null, null, null, null, "M");
- // modal("SPMRJ00200", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; min:hidden, max:hidden;");
- fSelectOrdCntsList();
- }]]></Script>
|