123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNR04700" position="absolute 0 0 1199 779" titletext="간호Item 시간Setting 관리" oninit="SMMNR04700_oninit" onload="SMMNR04700_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="간호Item 시간Setting 관리" class="tit_1" position="absolute 0 0 222 25"/>
- <Static id="caption42" text="공통 Setting" class="tit_2" position="absolute 0 41 170 62"/>
- <Shape id="line18" class="line_10" position="absolute 0 57 595 63" anchor="left top right"/>
- <Static id="caption1" text="부서 Setting" class="tit_2" position="absolute 598 41 727 62" anchor="top right"/>
- <Shape id="line1" class="line_10" position="absolute 598 57 1192 63" anchor="top right"/>
- <Button id="btn_srch" taborder="1" text="지시처방 불러오기" class="btn2" position="absolute 328 38 444 57" anchor="top right" onclick="btn_srch_onclick"/>
- <Button id="btn_saveitem" taborder="2" text="선택이동" class="btn2" position="absolute 445 38 509 57" anchor="top right" onclick="btn_saveitem_onclick"/>
- <Button id="button1" taborder="3" text="저장" class="btn5" position="absolute 1150 38 1192 57" anchor="top right" onclick="button1_onclick"/>
- <Grid id="grd_comprcplist" class="datagrid1" taborder="4" binddataset="ds_main_comprcpinfo_comprcplist" useinputpanel="false" position="absolute 0 62 595 772" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all" treeusecheckbox="false" oncellclick="grd_comprcplist_oncellclick" oncelldblclick="grd_comprcplist_oncelldblclick" treeinitstatus="expand,null">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="37"/>
- <Column size="192"/>
- <Column size="125"/>
- <Column size="213"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="간호 Item"/>
- <Cell col="4" text="시간"/>
- <Cell col="5" text="careitemcd"/>
- <Cell col="6" text="prcpcd"/>
- <Cell col="7" text="deptcd"/>
- <Cell col="8" text="instcd"/>
- <Cell col="9" text="depth"/>
- <Cell col="10" text="prcpclscd1"/>
- <Cell col="11" text="prcpclscd2"/>
- <Cell col="12" text="prcpclscd3"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:edittype" style="controlbackground:EXPR(controlbackground);controlborder:EXPR(controlborder);" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
- <Cell col="2" displaytype="tree" edittype="tree" text="bind:prcpnm" treestartlevel="1" treelevel="expr:depth"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:careitemnm"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:apnttmspec"/>
- <Cell col="5" text="bind:careitemcd"/>
- <Cell col="6" text="bind:prcpcd"/>
- <Cell col="7" text="bind:deptcd"/>
- <Cell col="8" text="bind:instcd"/>
- <Cell col="9" text="bind:depth"/>
- <Cell col="10" text="bind:prcpclscd1"/>
- <Cell col="11" text="bind:prcpclscd2"/>
- <Cell col="12" text="bind:prcpclscd3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_deptprcplist" class="datagrid1" taborder="5" binddataset="ds_main_deptprcpinfo_deptprcplist" useinputpanel="false" position="absolute 598 62 1193 772" autoenter="select" autofittype="col" cellsizingtype="col" anchor="top right bottom" oncellclick="grd_deptprcplist_oncellclick" oncelldblclick="grd_deptprcplist_oncelldblclick" treeuseimage="false" treeusecheckbox="false" treeinitstatus="expand,null">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="19"/>
- <Column size="37"/>
- <Column size="206"/>
- <Column size="132"/>
- <Column size="198"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="간호 Item"/>
- <Cell col="4" text="시간"/>
- <Cell col="5" text="careitemcd"/>
- <Cell col="6" text="prcpcd"/>
- <Cell col="7" text="deptcd"/>
- <Cell col="8" text="instcd"/>
- <Cell col="9" text="depth"/>
- <Cell col="10" text="prcpclscd1"/>
- <Cell col="11" text="prcpclscd2"/>
- <Cell col="12" text="prcpclscd3"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="expr:edittype" style="controlbackground:EXPR(controlbackground);controlborder:EXPR(controlborder);" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
- <Cell col="2" displaytype="tree" edittype="tree" style="align:left middle;padding:0 0 0 3;" text="bind:prcpnm" treestartlevel="1" treelevel="expr:depth"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:careitemnm"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:apnttmspec"/>
- <Cell col="5" text="bind:careitemcd"/>
- <Cell col="6" text="bind:prcpcd"/>
- <Cell col="7" text="bind:deptcd"/>
- <Cell col="8" text="bind:instcd"/>
- <Cell col="9" text="bind:depth"/>
- <Cell col="10" text="bind:prcpclscd1"/>
- <Cell col="11" text="bind:prcpclscd2"/>
- <Cell col="12" text="bind:prcpclscd3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_comsave" taborder="6" text="저장" class="btn5" position="absolute 510 38 552 57" anchor="top right" onclick="btn_comsave_onclick"/>
- <Button id="btn_comdelete" taborder="7" text="삭제" class="btn5" position="absolute 553 38 595 57" anchor="top right" onclick="btn_comdelete_onclick"/>
- <Combo id="cmb_deptcd" taborder="8" innerdataset="@ds_init_deptlist_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_default" position="absolute 710 38 850 57" anchor="top right" onitemchanged="cmb_deptcd_onitemchanged"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_comprcpinfo_comprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_comprcpinfo_comprcplist_oncolumnchanged"/>
- <Dataset id="ds_main_deptprcpinfo_deptprcplist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deptprcpinfo_deptprcplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="선택"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="지시처방명"/>
- <Column id="careitemnm" type="STRING" size="256" sumtext="간호Item명"/>
- <Column id="apnttmspec" type="STRING" size="256" sumtext="지정시간내역"/>
- <Column id="careitemcd" type="STRING" size="256" sumtext="간호Item코드"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
- <Column id="prcpclscd1" type="STRING" size="256" sumtext="처방분류코드1"/>
- <Column id="prcpclscd2" type="STRING" size="256" sumtext="처방분류코드2"/>
- <Column id="prcpclscd3" type="STRING" size="256" sumtext="처방분류코드3"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_prcpinfo_comprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="선택"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="지시처방명"/>
- <Column id="careitemnm" type="STRING" size="256" sumtext="간호Item명"/>
- <Column id="apnttmspec" type="STRING" size="256" sumtext="지정시간내역"/>
- <Column id="careitemcd" type="STRING" size="256" sumtext="간호Item코드"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
- <Column id="prcpclscd1" type="STRING" size="256" sumtext="처방분류코드1"/>
- <Column id="prcpclscd2" type="STRING" size="256" sumtext="처방분류코드2"/>
- <Column id="prcpclscd3" type="STRING" size="256" sumtext="처방분류코드3"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_prcpinfo_deptprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="선택"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="지시처방명"/>
- <Column id="careitemnm" type="STRING" size="256" sumtext="간호Item명"/>
- <Column id="apnttmspec" type="STRING" size="256" sumtext="지정시간내역"/>
- <Column id="careitemcd" type="STRING" size="256" sumtext="간호Item코드"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
- <Column id="prcpclscd1" type="STRING" size="256" sumtext="처방분류코드1"/>
- <Column id="prcpclscd2" type="STRING" size="256" sumtext="처방분류코드2"/>
- <Column id="prcpclscd3" type="STRING" size="256" sumtext="처방분류코드3"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="cmb_deptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
- </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 "emr_carecomxp::CareCom.xjs";
- var arErrorCode = new HashArray();
- var xCondPath = ds_main_cond;
- var xPrcpInfoPath = "ds_temp_prcpinfo";
- var xComPrcpListPath = ds_main_comprcpinfo_comprcplist;
- var xDeptPrcpListPath = ds_main_deptprcpinfo_deptprcplist;
- function SMMNR04700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNR04700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_comprcplist);
- grdf_setRowTypeIcon(grd_comprcplist, 0);
- grdf_initGrid(grd_deptprcplist);
- grdf_setRowTypeIcon(grd_deptprcplist, 0);
-
- fInitialize();
- }
- function fInitialize()
- {
- appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "W", "depthngnm", "asc", "", "", "", "ds_init_deptlist_dept", false, "");
-
- xCondPath.setColumn(0, "deptcd", sysf_getUserInfo("posdeptcd"));
- dsf_makeValue(ds_send,"deptcd", "string", xCondPath.getColumn(0, "deptcd"));
-
- var oParam = {};
- oParam.id = "TRMNR04701";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetCareDirecPrcpList";
- oParam.inds = "reqCond=ds_send";
- oParam.outds = "ds_temp_prcpinfo_comprcplist=comprcplist ds_temp_prcpinfo_deptprcplist=deptprcplist";
- oParam.async = false;
- oParam.callback = "cf_submit";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNR04701") > -1)
- {
- dsf_setFixVal(ds_temp_prcpinfo_comprcplist, "check:false");
- dsf_setFixVal(ds_temp_prcpinfo_deptprcplist, "check:false");
-
- ds_main_comprcpinfo_comprcplist.copyData(ds_temp_prcpinfo_comprcplist);
- ds_main_deptprcpinfo_deptprcplist.copyData(ds_temp_prcpinfo_deptprcplist);
-
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
- }
- }
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
-
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.enableevent = false;
- for(var iRow = 0; iRow < ds_main_deptprcpinfo_deptprcplist.rowcount; iRow++)
- {
- if(xDeptPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "", iRow);
- }
- }
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- ds_main_deptprcpinfo_deptprcplist.enableevent = true;
- }
-
- ds_main_deptprcpinfo_deptprcplist.addColumn("apnttmspec", "string");
- ds_main_deptprcpinfo_deptprcplist.addColumn("depth", "string");
-
- }
- function cf_submit(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function ds_main_comprcpinfo_comprcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check")
- {
- obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
- }
- }
- function ds_main_deptprcpinfo_deptprcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check")
- {
- obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
- }
- fChangedGridRow();
- }
- function fChangedGridRow()
- {
- var iRow = ds_main_deptprcpinfo_deptprcplist.rowposition;
- if(xDeptPrcpListPath.getColumn(iRow, "check") == "true")
- {
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "d");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- else
- {
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- }
- function btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- fCallDirecPrcpInfo();
- }
- function fCallDirecPrcpInfo()
- {
- frmf_setParameter("SMMNR04800_SaveFlag","N");
- frmf_modal("SPMNR04800", "SPMNR04800", "", "", "", "", "", "", "", "", "", "", "M");
-
- if(frmf_getParameter("SMMNR04800_SaveFlag") == "Y")
- {
- fSearchItemSetting("com");
- }
- }
- function fSearchItemSetting(pFlag)
- {
- ds_send.clear();
-
- switch(pFlag)
- {
- case "com" :
- dsf_makeValue(ds_send, "deptcd", "String","all");
-
- var oParam = {};
- oParam.id = "TRMNR04704";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetDeptDirecPrcpList";
- oParam.inds = "reqCond=ds_send";
- oParam.outds = "ds_main_comprcpinfo_comprcplist=comprcplist";
- oParam.async = false;
- oParam.callback = "cf_submit";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNR04704") > -1)
- {
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- dsf_setFixVal(ds_main_comprcpinfo_comprcplist, "check:false");
-
- ds_temp_prcpinfo_comprcplist.copyData(ds_main_comprcpinfo_comprcplist);
-
- for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
- }
- }
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- }
- break;
- case "dept":
- dsf_makeValue(ds_send, "deptcd", "string",ds_main_cond.getColumn(0, "deptcd"));
-
- var oParam = {};
- oParam.id = "TRMNR04703";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetDeptDirecPrcpList";
- oParam.inds = "reqCond=ds_send";
- oParam.outds = "ds_main_deptprcpinfo_deptprcplist=deptprcplist";
- oParam.async = false;
- oParam.callback = "cf_submit";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNR04703") > -1)
- {
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- dsf_setFixVal(ds_main_deptprcpinfo_deptprcplist, "check:false");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
-
- ds_temp_prcpinfo_deptprcplist.copyData(ds_main_deptprcpinfo_deptprcplist);
-
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.enableevent = false;
- for(var iRow = 0; iRow < ds_main_deptprcpinfo_deptprcplist.rowcount; iRow++)
- {
- if(xDeptPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "", iRow);
- }
- }
-
- ds_main_deptprcpinfo_deptprcplist.enableevent = true;
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- break;
- }
- }
- function grd_comprcplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fClickedGridRow("com");
- }
- function grd_comprcplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fDblClickGridRow("com");
- }
- function fClickedGridRow(pFlag)
- {
- var iRow = 0;
- var iCol = 0;
- var sDepth = "";
- switch(pFlag)
- {
- case "com" :
- iRow = ds_main_comprcpinfo_comprcplist.rowposition;
- iCol = grd_comprcplist.currentcol;
-
- if(iRow < 0 || iCol == 4) return;
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- if(iCol == 1)
- {
- ds_main_comprcpinfo_comprcplist.setRowType(iRow, "");
- return;
- }
-
- sDepth = xComPrcpListPath.getColumn(iRow, "depth");
- if(sDepth == 1) return;
- if(xComPrcpListPath.getColumn(iRow, "check") == "true")
- {
- xComPrcpListPath.setColumn(iRow, "check","false");
- }
- else
- {
- xComPrcpListPath.setColumn(iRow, "check","true");
- }
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- break;
- case "dept":
- iRow = ds_main_deptprcpinfo_deptprcplist.rowposition;
- iCol = grd_deptprcplist.currentcol;
- if(iCol == 1 || iCol == 4) return;
- if(iRow < 0) return;
- sDepth = xDeptPrcpListPath.getColumn(iRow, "depth");
- if(sDepth == 1) return;
-
- if(xDeptPrcpListPath.getColumn(iRow, "check") == "true")
- {
- xDeptPrcpListPath.setColumn(iRow, "check","false");
-
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- else
- {
- xDeptPrcpListPath.setColumn(iRow, "check","true");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "d");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
-
- break;
- }
- }
- function fDblClickGridRow(pFlag)
- {
- var iCol = 0;
- var iRow = 0;
- var sParamMsg = "";
- var sReturnMsg = "";
- var sPrcpCD = "";
- var sDepth = 0;
- var sStatus = 0;
- switch(pFlag)
- {
- case "com" :
- iCol = grd_comprcplist.currentcol;
- iRow = ds_main_comprcpinfo_comprcplist.rowposition;
- sDepth = xComPrcpListPath.getColumn(iRow, "depth");
- if(sDepth == 1) return;
- if(iCol == 4)
- {
- sPrcpCD = xComPrcpListPath.getColumn(iRow, "prcpcd");
- sParamMsg = "prcpnm▦prcpcd▦careitemnm▦careitemcd▦apnttmspec▦flag▩";
- sParamMsg += utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "prcpnm")) + "▦"
- + utlf_transNullToEmpty(sPrcpCD) + "▦"
- + utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "careitemnm")) + "▦"
- + utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "careitemcd")) + "▦"
- + utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "apnttmspec")) + "▦all▩";
- frmf_setParameter("SPMNR04900_Param",sParamMsg);
- frmf_setParameter("SPMNR04900_Return","");
-
- frmf_modal("SPMNR04900", "SPMNR04900", "", "", "", "", "", "", "", "", "", "", "M");
- sReturnMsg = frmf_getParameter("SPMNR04900_Return");
- if(!utlf_isNull(sReturnMsg))
- {
- xComPrcpListPath.setColumn(iRow, "careitemnm", getArrayData(sReturnMsg,1,0));
- xComPrcpListPath.setColumn(iRow, "careitemcd", getArrayData(sReturnMsg,1,1));
- xComPrcpListPath.setColumn(iRow, "apnttmspec", getArrayData(sReturnMsg,1,2));
-
- var findRow = eval(xPrcpInfoPath+"_comprcplist").findRow("prcpcd", sPrcpCD);
- eval(xPrcpInfoPath+"_comprcplist").setColumn(findRow, "check", xComPrcpListPath.getColumn(iRow, "check"));
-
- var csv = dsf_getDsCSV(ds_temp_prcpinfo_comprcplist, findRow, "", "","");
- var csv2 = dsf_getDsCSV(xComPrcpListPath, iRow, "", "","");
-
- if(csv != csv2)
- {
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- ds_main_comprcpinfo_comprcplist.setRowType(iRow, "u");
- ds_main_comprcpinfo_comprcplist.setColumn(iRow, "check", "false");
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- }
- else
- {
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- ds_main_comprcpinfo_comprcplist.setRowType(iRow, "");
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- }
- }
- }
- break;
- case "dept" :
- iCol = grd_deptprcplist.currentcol;
- iRow = ds_main_deptprcpinfo_deptprcplist.rowposition;
- if(iRow < 0) return;
-
- sDepth = xDeptPrcpListPath.getColumn(iRow, "depth");
- if(sDepth == 1) return;
- if(iCol == 4)
- {
- sStatus = ds_main_deptprcpinfo_deptprcplist.getRowType(iRow);
- sPrcpCD = xDeptPrcpListPath.getColumn(iRow, "prcpcd");
- sParamMsg = "prcpnm▦prcpcd▦careitemnm▦careitemcd▦apnttmspec▩";
- sParamMsg += utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "prcpnm")) + "▦"
- + utlf_transNullToEmpty(sPrcpCD) + "▦"
- + utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "careitemnm")) + "▦"
- + utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "careitemcd")) + "▦"
- + utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "apnttmspec")) + "▦dept▩";
- frmf_setParameter("SPMNR04900_Param",sParamMsg);
- frmf_setParameter("SPMNR04900_Return","");
- frmf_modal("SPMNR04900", "SPMNR04900", "", "", "", "", "", "", "", "", "", "", "M");
- sReturnMsg = frmf_getParameter("SPMNR04900_Return");
- if(!utlf_isNull(sReturnMsg))
- {
- xDeptPrcpListPath.setColumn(iRow, "apnttmspec",getArrayData(sReturnMsg,1,2));
- if(sStatus == 2) return;
-
- var findRow = ds_temp_prcpinfo_deptprcplist.findRow("prcpcd", sPrcpCD);
- ds_temp_prcpinfo_deptprcplist.setColumn(findRow, "check", xDeptPrcpListPath.getColumn(iRow, "check"));
-
- var csv = dsf_getDsCSV(ds_temp_prcpinfo_deptprcplist, findRow, "", "","");
- var csv2 = dsf_getDsCSV(xDeptPrcpListPath, iRow, "", "","");
-
- if(csv != csv2)
- {
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "u");
- ds_main_deptprcpinfo_deptprcplist.setColumn(iRow, "check", "false");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- else
- {
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- }
- }
- break;
- }
- }
- function grd_deptprcplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fClickedGridRow("dept");
- }
- function grd_deptprcplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fDblClickGridRow("dept");
- }
- function btn_saveitem_onclick(obj:Button, e:ClickEventInfo)
- {
- fSendItem();
- }
- function fSendItem()
- {
- var sDeptCD = ds_main_cond.getColumn(0, "deptcd");
- var iDeptPrcpRow=0;
- var sCareItemCD = "";
- var sPrcpCD = "";
- var iRow = 0;
- if(utlf_isNull(sDeptCD))
- {
- sysf_messageBox("부서를 먼저","C002");
- return;
- }
-
- for(var iRow = 0 ; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "check") == "true")
- {
- if(ds_main_comprcpinfo_comprcplist.getRowType(iRow) != 1)
- {
- sysf_messageBox("공통 Setting에 저장하지 않은 데이터가 있습니다.", "Q003");
- return;
- }
- sCareItemCD = xComPrcpListPath.getColumn(iRow, "careitemcd");
- if(utlf_isNull(sCareItemCD))
- {
- sysf_messageBox("간호 Item은","I003");
- return;
- }
- }
- }
-
- for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "check") == "true")
- {
- sPrcpCD = xComPrcpListPath.getColumn(iRow, "prcpcd");
-
- xComPrcpListPath.updatecontrol = false;
- xComPrcpListPath.setColumn(iRow, "check","false");
- xComPrcpListPath.updatecontrol = true;
-
- if(!utlf_isNull(xDeptPrcpListPath.lookup("prcpcd", sPrcpCD, "prcpcd"))) continue;
-
- iDeptPrcpRow = ds_main_deptprcpinfo_deptprcplist.addRow();
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "deptcd", sDeptCD);
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpnm", xComPrcpListPath.getColumn(iRow, "prcpnm"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "careitemnm", xComPrcpListPath.getColumn(iRow, "careitemnm"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "apnttmspec", xComPrcpListPath.getColumn(iRow, "apnttmspec"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "careitemcd", xComPrcpListPath.getColumn(iRow, "careitemcd"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpcd", xComPrcpListPath.getColumn(iRow, "prcpcd"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "instcd", xComPrcpListPath.getColumn(iRow, "instcd"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "depth", xComPrcpListPath.getColumn(iRow, "depth"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpclscd1", xComPrcpListPath.getColumn(iRow, "prcpclscd1"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpclscd2", xComPrcpListPath.getColumn(iRow, "prcpclscd2"));
- xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpclscd3", xComPrcpListPath.getColumn(iRow, "prcpclscd3"));
-
-
- //dsf_makeValue(xDeptPrcpListPath, "apnttmspec", "string",xComPrcpListPath.getColumn(iRow, "apnttmspec"), iDeptPrcpRow);
- //dsf_makeValue(xDeptPrcpListPath, "depth", "string",xComPrcpListPath.getColumn(iRow, "depth"), iDeptPrcpRow);
-
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.setRowType(iDeptPrcpRow, "i");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- }
- }
- function btn_comsave_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveItem("com");
- }
- function fSaveItem(pFlag)
- {
- ds_send.clear();
- switch(pFlag)
- {
- case "com" :
- dsf_makeValue(ds_send, "deptcd", "String","all");
- var oParam = {};
- oParam.id = "TXMNR04701";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqSetDirecPrcpList";
- oParam.inds = "prcplist=ds_main_comprcpinfo_comprcplist:u reqCond=ds_send";
- oParam.outds = "ds_main_comprcpinfo_comprcplist=comprcplist";
- oParam.async = false;
- oParam.callback = "cf_submit";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNR04701") > -1)
- {
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- dsf_setFixVal(ds_main_comprcpinfo_comprcplist, "check:false");
-
- ds_temp_prcpinfo_comprcplist.copyData(ds_main_comprcpinfo_comprcplist);
-
- for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
- }
- }
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- }
- break;
- case "dept":
- dsf_makeValue(ds_send, "deptcd", "string", ds_main_cond.getColumn(0, "deptcd"));
- var oParam = {};
- oParam.id = "TXMNR04702";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqSetDirecPrcpList";
- oParam.inds = "prcplist=ds_main_deptprcpinfo_deptprcplist:u reqCond=ds_send";
- oParam.outds = "ds_main_deptprcpinfo_deptprcplist=deptprcplist";
- oParam.async = false;
- oParam.callback = "cf_submit";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNR04702") > -1)
- {
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- dsf_setFixVal(ds_main_deptprcpinfo_deptprcplist, "check:false");
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
-
- ds_temp_prcpinfo_deptprcplist.copyData(ds_main_deptprcpinfo_deptprcplist);
-
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
- ds_main_deptprcpinfo_deptprcplist.enableevent = false;
-
- for(var iRow = 0; iRow < ds_main_deptprcpinfo_deptprcplist.rowcount; iRow++)
- {
- if(xDeptPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "", iRow);
- }
- }
- ds_main_deptprcpinfo_deptprcplist.enableevent = true;
- ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
- }
- break;
- }
- }
- function btn_comdelete_onclick(obj:Button, e:ClickEventInfo)
- {
- fDeleteItem("com");
- }
- function fDeleteItem(pFlag)
- {
- switch(pFlag)
- {
- case "com" :
- for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "check") == 'true')
- {
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- ds_main_comprcpinfo_comprcplist.setRowType(iRow, "d");
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- }
- }
-
- dsf_makeValue(ds_send, "deptcd", "string","all");
- var oParam = {};
- oParam.id = "TXMNR04701";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqSetDirecPrcpList";
- oParam.inds = "prcplist=ds_main_comprcpinfo_comprcplist:u reqCond=ds_send";
- oParam.outds = "ds_main_comprcpinfo_comprcplist=comprcplist";
- oParam.async = false;
- oParam.callback = "cf_submit";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNR04701") > -1)
- {
- ds_main_comprcpinfo_comprcplist.updatecontrol = false;
- dsf_setFixVal(ds_main_comprcpinfo_comprcplist, "check:false");
-
- ds_temp_prcpinfo_comprcplist.copyData(ds_main_comprcpinfo_comprcplist);
-
- for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
- {
- if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
- }
- else
- {
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
- dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
- }
- }
- ds_main_comprcpinfo_comprcplist.updatecontrol = true;
- }
- break;
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveItem("dept");
- }
- function cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSearchItemSetting("dept");
- }
- ]]></Script>
- </Form>
- </FDL>
|