123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>임상 연구 과제 연계 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <subjlist>
- <subjinfo>
- <instcd/>
- <subjno/>
- <stdyno/>
- <rschid/>
- <rschnm/>
- <stdysubjnm/>
- <subjectno/>
- <stdytermfrom/>
- <stdytermto/>
- <connflag/>
- </subjinfo>
- </subjlist>
- <projlist>
- <projinfo>
- <instcd/>
- <studycd/>
- <projcd/>
- <status/>
- <statnm/>
- <kind/>
- <kindnm/>
- <rshid/>
- <rshnm/>
- <projnm/>
- <cnfmdd/>
- <fromdd/>
- <todd/>
- <connflag/>
- </projinfo>
- </projlist>
- </main>
- <init/>
- <send>
- <procstat>T</procstat>
- <connflag>T</connflag>
- <nmflag/>
- <setflag/>
- <subj/>
- <proj/>
- </send>
- <hidden>
- <tooltipflag/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPAM00412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXPAM00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSetConnFlagDisp() {
-
- grd_subj.rebuildStyle();
- grd_proj.rebuildStyle();
-
- var cnt = grd_subj.rows;
- for (var i = 1; i < cnt; i++) {
- if (grd_subj.valueMatrix(i, grd_subj.colRef("connflag")) == "Y") {
- grd_subj.rowStyle(i, "data", "color") = "black";
- grd_subj.cellStyle("background-color", i, grd_subj.colRef("subjectno")) = "transparent";
- } else {
- grd_subj.rowStyle(i, "data", "color") = "crimson";
- grd_subj.cellStyle("background-color", i, grd_subj.colRef("subjectno")) = "#ffffb4";
- }
- }
-
- cnt = grd_proj.rows;
- for (var i = 1; i < cnt; i++) {
- if (grd_proj.valueMatrix(i, grd_proj.colRef("connflag")) == "Y") {
- grd_proj.rowStyle(i, "data", "color") = "black";
- grd_proj.cellStyle("background-color", i, grd_proj.colRef("studycd")) = "transparent";
- } else {
- grd_proj.rowStyle(i, "data", "color") = "crimson";
- grd_proj.cellStyle("background-color", i, grd_proj.colRef("studycd")) = "#ffffb4";
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TRPAM00412");
- fSetConnFlagDisp();
- ]]>
- </script>
- </button>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">임상 연구 과제 연계 관리</caption>
- <line id="line13" style="x1:1115px; y1:28px; x2:1115px; y2:55px; border-color:#FFD799; border-left-style:solid; "/>
- <caption id="caption2" class="tit_2" style="left:0px; top:70px; width:148px; height:14px; ">병원 과제 내역 (AST)</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:595px; y2:85px; "/>
- <datagrid id="grd_subj" nodeset="/root/main/subjlist/subjinfo" backcoloralternate="transparent" caption="기관^과제번호^연구번호^책임교수ID^책임교수^과제명^CTMS연계번호^시작일^종료일^연계" colsep="^" colwidth="0, 80, 0, 0, 60, 315, 100, 80, 80, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:595px; height:645px; ">
- <col ref="instcd"/>
- <col ref="subjno" style="text-align:center; "/>
- <col ref="stdyno"/>
- <col ref="rschid"/>
- <col ref="rschnm" style="text-align:center; "/>
- <col ref="stdysubjnm" style="text-align:left; "/>
- <col ref="subjectno" type="input" style="text-align:left; "/>
- <col ref="stdytermfrom" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="stdytermto" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="connflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_subj.gridToInstance();
- fSetConnFlagDisp();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (!grd_subj.isCell(event.target)) {
- return;
- }
-
- if (grd_subj.row < grd_subj.fixedRows) {
- return;
- }
-
- var str = "";
- var row = 0;
- var editflag = false;
- if (grd_subj.col == grd_subj.colRef("stdysubjnm")) {
-
- str = model.getValue("/root/main/subjlist/subjinfo[" + grd_subj.row + "]/stdysubjnm");
- row = grd_proj.findRow(str, 0, grd_proj.colRef("projnm"), false, true);
-
- } else if (grd_subj.col == grd_subj.colRef("subjectno")) {
-
- var str = model.getValue("/root/main/subjlist/subjinfo[" + grd_subj.row + "]/subjectno");
- var row = grd_proj.findRow(str, 0, grd_proj.colRef("studycd"), false, true);
- editflag = true;
-
- }
-
- if (row > 0) {
- model.setFocus("grd_proj");
- grd_proj.row = row;
-
- var topRow = row - 11;
- if (topRow < 1) {
- topRow = 1;
- }
- grd_proj.topRow = topRow;
- } else {
- grd_proj.select(grd_proj.row, 1) = false;
- }
-
- if (editflag) {
- grd_subj.editCell();
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_subj.rowStyle(grd_subj.row, "data", "font-weight") = "bold";
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:600px; y1:85px; x2:1195px; y2:85px; "/>
- <datagrid id="grd_proj" nodeset="/root/main/projlist/projinfo" backcoloralternate="transparent" caption="기관^과제식별번호^과제코드^상태코드^상태^과제종류코드^과제종류^책임교수ID^책임교수^과제명^승인일^시작일^종료일^연계" colsep="^" colwidth="0, 110, 60, 0, 40, 0, 60, 0, 60, 225, 80, 80, 80, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:600px; top:90px; width:595px; height:645px; ">
- <col ref="instcd"/>
- <col ref="studycd" type="input" style="text-align:left; "/>
- <col ref="projcd" style="text-align:center; "/>
- <col ref="status"/>
- <col ref="statnm" style="text-align:center; "/>
- <col ref="kind"/>
- <col ref="kindnm" style="text-align:center; "/>
- <col ref="rshid"/>
- <col ref="rshnm" style="text-align:center; "/>
- <col ref="projnm" style="text-align:left; "/>
- <col ref="cnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="connflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_proj.gridToInstance();
- fSetConnFlagDisp();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (!grd_proj.isCell(event.target)) {
- return;
- }
-
- if (grd_proj.row < grd_proj.fixedRows) {
- return;
- }
-
- var str = "";
- var row = 0;
- var editflag = false;
-
- if (grd_proj.col == grd_proj.colRef("projnm")) {
-
- str = model.getValue("/root/main/projlist/projinfo[" + grd_proj.row + "]/projnm");
- row = grd_subj.findRow(str, 0, grd_subj.colRef("stdysubjnm"), false, true);
-
- } else if (grd_proj.col == grd_proj.colRef("studycd")) {
-
- var str = model.getValue("/root/main/projlist/projinfo[" + grd_proj.row + "]/studycd");
- var row = grd_subj.findRow(str, 0, grd_subj.colRef("subjectno"), false, true);
- editflag = true;
- }
-
- if (row > 0) {
- model.setFocus("grd_subj");
- grd_subj.row = row;
-
- var topRow = row - 11;
- if (topRow < 1) {
- topRow = 1;
- }
- grd_subj.topRow = topRow;
- } else {
- grd_subj.select(grd_subj.row, 1) = false;
- }
-
- if (editflag) {
- grd_proj.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_proj.rowStyle(grd_proj.row, "data", "font-weight") = "bold";
- ]]>
- </script>
- </datagrid>
- <button id="btn_setsubj" class="btn4_letter7" style="left:479px; top:740px; width:116px; height:22px; ">
- <caption>변경 내역 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var rows = grd_subj.rows;
-
- var cnt = 0;
-
- for (var i = 1; i < rows; i++) {
- if (grd_subj.rowStatus(i) == 2) {
- cnt++;
- }
- }
-
- if (cnt < 1) {
- messageBox("변경된 내역이 없습니다.", "E999");
- return;
- } else if (messageBox("[ " + cnt + " ] 개 병원 과제의 CTMS연계번호를 변경하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- var str = grd_subj.getUpdateData("update");
-
- model.setValue("/root/send/subj", str);
- model.setValue("/root/send/setflag", "subj");
-
- submit("TXPAM00407");
-
- model.setValue("/root/send/subj", "");
-
- fSetConnFlagDisp();
- ]]>
- </script>
- </button>
- <button id="btn_setproj" class="btn4_letter7" style="left:1079px; top:740px; width:116px; height:22px; ">
- <caption>변경 내역 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_proj.rows;
-
- var cnt = 0;
-
- for (var i = 1; i < rows; i++) {
- if (grd_proj.rowStatus(i) == 2) {
- cnt++;
- }
- }
-
- if (cnt < 1) {
- messageBox("변경된 내역이 없습니다.", "E999");
- return;
- } else if (messageBox("[ " + cnt + " ] 개 연구 과제의 과제식별번호를 변경하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- var str = grd_proj.getUpdateData("update");
-
- model.setValue("/root/send/proj", str);
- model.setValue("/root/send/setflag", "proj");
-
- submit("TXPAM00407");
-
- model.setValue("/root/send/proj", "");
-
- fSetConnFlagDisp();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/hidden/tooltipflag" overflow="visible" appearance="full" style="left:155px; top:68px; width:75px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>툴팁 보기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/hidden/tooltipflag") == "Y") {
- grd_subj.attribute("tooltip") = "true";
- grd_proj.attribute("tooltip") = "true";
- } else {
- grd_subj.attribute("tooltip") = "false";
- grd_proj.attribute("tooltip") = "false";
- }
- ]]>
- </script>
- </select>
- <caption id="caption1" class="search_name" style="left:5px; top:32px; width:96px; height:17px; ">진행 상태 :</caption>
- <select1 id="rdo_proc" ref="/root/send/procstat" appearance="full" cellspacing="3" cols="3" overflow="visible" style="left:103px; top:32px; width:140px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>진행</label>
- <value>P</value>
- </item>
- <item>
- <label>종결</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:265px; top:32px; width:96px; height:17px; ">연계 과제 :</caption>
- <select1 id="rdo_conn" ref="/root/send/connflag" appearance="full" cellspacing="3" cols="3" overflow="visible" style="left:360px; top:32px; width:140px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>있음</label>
- <value>Y</value>
- </item>
- <item>
- <label>없음</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="tit_2" style="left:600px; top:70px; width:148px; height:14px; ">연구 과제 내역 (MIS)</caption>
- <select id="chk_nmflag" ref="/root/send/nmflag" overflow="visible" appearance="full" style="left:530px; top:33px; width:145px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>과제명 일치 항목 조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_excel_ast" class="btn2_letter4" style="left:531px; top:65px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var filename = window.fileDialog("save", ",", false, "병원 과제 내역 (AST)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- var param = "";
-
- for (var i = 0; i < grd_subj.cols; i++) {
- if (grd_subj.colWidth(i) == 0) {
- param += "exportfalsecols:" + i + ";";
- }
- }
-
- grd_subj.saveExcel(filename, "sheetname:병원 과제 내역 (AST);colhiddenextend:true;rowhiddenextend:false;" + param);
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <button id="btn_excel_mis" class="btn2_letter4" style="left:1131px; top:65px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "연구 과제 내역 (MIS)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- var param = "";
-
- for (var i = 0; i < grd_proj.cols; i++) {
- if (grd_proj.colWidth(i) == 0) {
- param += "exportfalsecols:" + i + ";";
- }
- }
-
- grd_proj.saveExcel(filename, "sheetname:연구 과제 내역 (MIS);colhiddenextend:true;rowhiddenextend:false;" + param);
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|