123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>의사별선택진료의서명관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data1>
- <ref_deptcd/>
- <ref_date/>
- </data1>
- <data2>
- <userid/>
- <orddeptcd/>
- <ref_date/>
- </data2>
- <data3/>
- </send>
- <main>
- <doctlist>
- <doct/>
- </doctlist>
- <suppdoctlist>
- <suppdoct/>
- </suppdoctlist>
- </main>
- <init>
- <deptlist>
- <dept>
- <cd/>
- <nm/>
- </dept>
- </deptlist>
- <suppdeptlist>
- <suppdept>
- <cd/>
- <nm/>
- </suppdept>
- </suppdeptlist>
- <suppdoctlist>
- <doct>
- <cd/>
- <nm/>
- </doct>
- </suppdoctlist>
- <PAM>
- <P0057list>
- <P0057>
- <cdnm/>
- <cdid/>
- <detl/>
- </P0057>
- </P0057list>
- </PAM>
- </init>
- <hidden>
- <result/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMC06601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/init"/>
- <submission id="TRPMC06602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/doctlist"/>
- <submission id="TRPMC06603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/suppdoctlist"/>
- <submission id="TXPMC06601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/result"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/data1/ref_date", getCurrentDate());
- model.setValue("/root/send/data2/ref_date", getCurrentDate());
-
- submit("TRPMC06601", false);
- submit("TRPMC06602", false);
-
- pamfGetCodeList(new Array("P0057"), new Array("/root/init/PAM/P0057list"));
-
- model.makeNode("/root/init/suppdoctlist");
- copyNodeType("/root/init/suppdoctlist", "/root/main/doctlist", "replace");
- model.removeNodeset("/root/main/doctlist/doct");
- //model.resetInstanceNode("/root/main/doctlist")
-
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PMC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize() {
- model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main/doctlist/doct");
- model.removeNodeset("/root/main/suppdoctlist/suppdoct");
-
- model.setValue("/root/send/data1/ref_date", getCurrentDate());
- model.setValue("/root/send/data2/ref_date", getCurrentDate());
-
- grd_suppdoctlist.clearStatus();
-
- model.refresh();
- }
-
- function fGetDoctList() {
- submit("TRPMC06602", false);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1192;1,1195;2,52;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">의사별지원부서의사관리</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption17" class="search_name" style="left:5px; top:8px; width:86px; height:17px; ">진료과 :</caption>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.dispatch("grd_doctlist", "onclick");
- ]]>
- </script>
- </button>
- <select1 id="cmb_deptcd" ref="/root/send/data1/ref_deptcd" appearance="minimal" style="left:82px; top:7px; width:148px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetDoctList();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:248px; top:7px; width:86px; height:17px; ">기준일자 :</caption>
- <input id="ipt_date" ref="/root/send/data1/ref_date" inputtype="date" style="left:339px; top:6px; width:100px; height:19px; "/>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55px; width:85px; height:13px; font-family:돋움; vertical-align:middle; ">진료의사</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <datagrid id="grd_doctlist" nodeset="/root/main/doctlist/doct" class="datagrid2" caption="전문의^선택
여부^입력
여부^orddeptcd" colsep="^" colwidth="100, 40, 40, 20" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:230px; height:665px; ">
- <col ref="usernm" style="text-align:left; "/>
- <col ref="specyn" style="text-align:center; "/>
- <col ref="saveyn" style="text-align:center; "/>
- <col ref="deptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()) {
- var iRow = grd_doctlist.row;
-
- var sOrddrid = model.getValue("/root/main/doctlist/doct[" + iRow + "]/userid");
- var sOrddeptcd = model.getValue("/root/main/doctlist/doct[" + iRow + "]/deptcd");
-
- model.setValue("/root/send/data2/userid", sOrddrid);
- model.setValue("/root/send/data2/orddeptcd", sOrddeptcd);
- model.setValue("/root/send/data2/ref_date", model.getValue("/root/send/data1/ref_date"));
-
- model.removeNodeset("/root/main/suppdoctlist/suppdoct");
-
- grd_suppdoctlist.clearStatus();
- grd_suppdoctlist.refresh();
-
- submit("TRPMC06603", false);
-
- grd_suppdoctlist.refresh();
-
- var iCount = getNodesetCount("/root/main/suppdoctlist/suppdoct");
- var iSuppCount = getNodesetCount("/root/init/suppdeptlist/suppdept"); // 지원진료과 리스트 카운트
- if (iCount == 0) {
- for (var idx = 1 ; idx <= iSuppCount ; idx++) {
- grd_suppdoctlist.addRow();
-
- var sSuppDeptCd = model.getValue("/root/init/suppdeptlist/suppdept[" + idx + "]/cd");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/orddrid", sOrddrid);
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/orddeptcd", sOrddeptcd);
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/suppdeptcd", sSuppDeptCd); // 지원진료과코드
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/specdrid1", "-");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/specdrid2", "-");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/specdrid3", "-");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/fromdd", getCurrentDate());
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/todd", "99991231");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/remfact", "-");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/suppdeptcd_old", "");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/fromdd_old", "");
- model.setValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/todd_old", "");
-
- grd_suppdoctlist.cellComboNodeset(idx, 2) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
- grd_suppdoctlist.cellComboNodeset(idx, 3) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
- grd_suppdoctlist.cellComboNodeset(idx, 4) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
- grd_suppdoctlist.refresh();
- }
- } else {
- for (var idx = 1 ; idx <= iSuppCount ; idx++) {
- grd_suppdoctlist.clearStatus();
-
- var sSuppDeptCd = model.getValue("/root/main/suppdoctlist/suppdoct[" + idx + "]/suppdeptcd");
- grd_suppdoctlist.cellComboNodeset(idx, 2) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
- grd_suppdoctlist.cellComboNodeset(idx, 3) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
- grd_suppdoctlist.cellComboNodeset(idx, 4) = "/root/init/suppdoctlist/doct[deptcd = '" + sSuppDeptCd + "' ]";
- grd_suppdoctlist.refresh();
- }
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_suppdoctlist" nodeset="/root/main/suppdoctlist/suppdoct" caption="진료지원부서^선택진료의1^선택진료의2^선택진료의3^시작일자^종료일자^참고사항^orddeptcd^orddrid^suppdeptcd_old^fromdd_old^todd_old" colsep="^" colwidth="150, 80, 80, 80, 100, 100, 346, 20, 20, 20, 20, 20" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:235px; top:75px; width:957px; height:665px; ">
- <col disabled="true" ref="suppdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppdeptlist/suppdept">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="specdrid1" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppdoctlist/doct">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="specdrid2" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppdoctlist/doct">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="specdrid3" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppdoctlist/doct">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col ref="remfact" type="input"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="suppdeptcd_old" visibility="hidden"/>
- <col ref="fromdd_old" visibility="hidden"/>
- <col ref="todd_old" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var iRow = grd_suppdoctlist.row;
- var iCol = grd_suppdoctlist.col;
- var sDeptCD = model.getValue("/root/main/suppdoctlist/suppdoct[" + iRow + "]/suppdeptcd");
- if (sDeptCD != null) {
- grd_suppdoctlist.cellComboNodeset(iRow, 2) = "/root/init/suppdoctlist/doct[deptcd = '" + sDeptCD + "' ]";
- grd_suppdoctlist.cellComboNodeset(iRow, 3) = "/root/init/suppdoctlist/doct[deptcd = '" + sDeptCD + "' ]";
- grd_suppdoctlist.cellComboNodeset(iRow, 4) = "/root/init/suppdoctlist/doct[deptcd = '" + sDeptCD + "' ]";
- grd_suppdoctlist.refresh();
- }
-
- //alert (sDeptCD);
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:240px; top:55px; width:126px; height:14px; font-family:돋움; vertical-align:middle; ">진료지원 선택의사</caption>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/data3");
- model.setValue("/root/send/data3", getGridUpdateData(grd_suppdoctlist));
-
- if(submit("TXPMC06601", false)) {
- messageBox("저장되었습니다!!", "I");
- model.resetInstanceNode("/root/send/data3");
-
- grd_suppdoctlist.clearStatus();
-
- model.dispatch("grd_doctlist", "onclick");
- }
-
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_deleteRow" class="btn2_letter3" visibility="hidden" style="left:1139px; top:63px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_suppdoctlist.row >= 1) {
- grd_suppdoctlist.addStatus(grd_aimtSearch.row, "delete");
- //model.setvalue("/root/main/aimtgrd/gridaimtsearch[" + grd_aimtSearch.row +"]/state", "D");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_addRow" class="btn2_letter3" visibility="hidden" style="left:1083px; top:63px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_suppdoctlist.addRow();
- grd_suppdoctlist.refresh();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|