123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNH08000" position="absolute 0 0 640 380" titletext="상용구" oninit="SPMNH08000_oninit" onload="SPMNH08000_onload">
- <Layouts>
- <Layout>
- <Grid position="absolute 5 36 635 341" id="grd_sentslist" binddataset="ds_main_sentslist" oncelldblclick="grd_sentslist_oncelldblclick" oncellclick="grd_sentslist_oncellclick" cellclickbound="cell" cellsizingtype="both" style="font:Dotum,8,bold;" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21" band="left"/>
- <Column size="25" band="left"/>
- <Column size="140"/>
- <Column size="425"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2" text="상담구분"/>
- <Cell col="3" text="상담내용"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
- <Cell col="2" text="bind:cnst3" suppress="1" suppressalign="middle,over" tooltiptext="bind:cnst3"/>
- <Cell col="3" style="align:left;" text="bind:cnst2" wordwrap="word" tooltiptext="bind:cnst2"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="단어는 최대 2000개까지 표시됩니다." position="absolute 335 353 570 368" id="caption4" style="font:Dotum,9,bold;"/>
- <Shape position="absolute 5 31 635 37" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Button position="absolute 579 9 635 31" id="btn_ok" class="btn4" text="확인" onclick="btn_ok_onclick"/>
- <Button position="absolute 580 348 636 370" id="button1" class="btn2" text="닫기" onclick="button1_onclick"/>
- <Static text="상용구" position="absolute 5 15 118 36" id="caption76" class="tit_2"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_sentslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_sentslist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="상태"/>
- <Column id="cnst1" type="STRING" size="256" sumtext="하드코드번호"/>
- <Column id="cnst2" type="STRING" size="256" sumtext="상담내용"/>
- <Column id="cnst3" type="STRING" size="256" sumtext="상담구분"/>
- </ColumnInfo>
- </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";
- function SPMNH08000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNH08000_onload(obj:Form, e:LoadEventInfo)
- {
- dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRMNH08000";
- oParam.service = "hospiceapp.HospiceRecMngt";
- oParam.method = "reqGetUsefulSentences";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_sentslist=sentslist";
- oParam.async = false;
- oParam.callback = "cf_TRMNH08000";
- tranf_submit(oParam);
- }
- function cf_TRMNH08000(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- }
- function btn_ok_onclick(obj:Button, e:ClickEventInfo)
- {
- chkList2();
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- opener.frmf_setParameter("cnst2", "");
- this.close();
- }
- function chkList2()
- {
- var cnt = 0;
- var cntchk = 0;
- var status = opener.ds_main_hospiceinfo_hospicedetl.getColumn(opener.ds_main_hospiceinfo_hospicedetl.rowposition, "cnstkind");
- sysf_trace(status)
- if(utlf_isNull(status))
- {
- sysf_messageBox("가족상담 내용을 ", "C002");
- this.close();
- }
- var cnst2List ="";
- for (var i = 0; i < ds_main_sentslist.rowcount; i++)
- {
- if(ds_main_sentslist.getColumn(i, "chk") == "Y")
- {
- cntchk += 1;
- }
- }
-
- for (var i = 0; i < ds_main_sentslist.rowcount; i++)
- {
- if (ds_main_sentslist.getColumn(i, "chk") == "Y")
- {
- cnt += 1;
- cnst2List = cnst2List + ds_main_sentslist.getColumn(i, "cnst2");
-
- if(cntchk < 2)
- {
- cnst2List += "";
- }
- else
- {
- cnst2List += ". ";
- }
- }
- else
- {
- cnt += 0;
- }
- }
-
- opener.frmf_setParameter("cnst2", cnst2List);
- this.close();
-
- if (cnt == 0)
- {
- sysf_messageBox("복사할 항목을 체크해 주십시요","I");
- }
- }
- function chkList1()
- {
- var cnt = 0;
- var status = opener.ds_main_hospiceinfo_hospicedetl.getColumn(opener.ds_main_hospiceinfo_hospicedetl.rowposition, "cnstkind");
- if(utlf_isNull(status))
- {
- sysf_messageBox("가족상담 내용을", "C002");
- this.close();
- }
-
- var cnst2List ="";
- for (var i = 0; i < ds_main_sentslist.rowcount; i++)
- {
- if(ds_main_sentslist.getColumn(i, "chk") == "Y")
- {
- cnt += 1;
-
- opener.frmf_setParameter("cnst2", ds_main_sentslist.getColumn(i, "cnst3"));
- this.close();
- }
- else
- {
- cnt += 0;
- }
- }
-
- if (cnt == 0)
- {
- sysf_messageBox("복사할 항목을 체크해 주십시요","I");
- }
- }
- function ds_main_sentslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function grd_sentslist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_main_sentslist.setColumn(e.row, "chk", "Y");
-
- if(e.col == 2)
- {
- chkList1();
- }
-
- if(e.col == 3)
- {
- chkList2();
- }
- }
- function grd_sentslist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var chk = ds_main_sentslist.getColumn(e.row, "chk");
-
- if(e.col != 1 && chk == "Y")
- {
- ds_main_sentslist.setColumn(e.row, "chk", "N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|