123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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="">
- <main>
- <list>
- <goodhistory>
- <goodhistorylist/>
- </goodhistory>
- <good>
- <goodlist/>
- </good>
- </list>
- <gooddet>
- <gooddetlist/>
- </gooddet>
- </main>
- <target>
- <defaultvalue/>
- </target>
- <init>
- <popmenu>
- <grd_costlist>
- <item>
- <name>품명일괄변경</name>
- <func>fSetGoodnm</func>
- </item>
- <item>
- <name>규격일괄변경</name>
- <func>fSetGoodSpec</func>
- </item>
- <item>
- <name>모델일괄변경</name>
- <func>fSetGoodModel</func>
- </item>
- <item>
- <name>제조회사일괄변경</name>
- <func>fSetGoodProdCmpy</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>포장단위일괄변경</name>
- <func>fSetPurcUnit</func>
- </item>
- <item>
- <name>환산수량일괄변경</name>
- <func>fSetExchQty</func>
- </item>
- <item>
- <name>수불단위일괄변경</name>
- <func>fSetDeliveUnit</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>단가일괄변경</name>
- <func>fSetGoodUnitCost</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>주거래처일괄변경</name>
- <func>fSetMainCustLastSuplplce</func>
- </item>
- <item>
- <name>보조거래처일괄변경</name>
- <func>fSetSuppCustCd</func>
- </item>
- </grd_costlist>
- </popmenu>
- <popinputcd/>
- <popinputnm/>
- <poptitle/>
- <popcond/>
- <popformat/>
- </init>
- <send>
- <goodlist>
- <instcd/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <edicd/>
- <goodcd/>
- <goodflag/>
- <goodnm/>
- <prodcmpycd/>
- <prodcmpynm/>
- <maincustlastsuplplce/>
- <maincustlastsuplplcenm/>
- <suppcustcd/>
- <suppcustnm/>
- <purcflag/>
- <stocmngtflag/>
- <reqmthd/>
- <allsizeyn/>
- <conflag/>
- <useyn/>
- <fr_fromdd/>
- <to_fromdd/>
- <reqflag/>
- <sch_goodcd/>
- <offset/>
- <pagesize>20</pagesize>
- <oldcd/>
- <plceordbase/>
- <selectonly>Y</selectonly>
- </goodlist>
- <goodhistory>
- <goodcd/>
- </goodhistory>
- <save>
- <goodlist/>
- <setautoins>
- <setyn>Y</setyn>
- <insfromdd/>
- </setautoins>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSC03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_costlist);
- misfGridInit(grd_goodhistory);
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"3","N");
- misfComboComCdListMulti("Z0007","cmb_instcd");
-
- //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y",getUserInfo("dutplceinstcd"),"Y");
-
- //기관코드 읽어오는 부분 넣기
- var instcd = getUserInfo("dutplceinstcd");
- var instnm = getUserInfo("dutplceinstnm");
-
- if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
-
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_goodflag.length> 0) {
- cmb_goodflag.selectedindex= 0;
- }
-
- grd_costlist.explorerbar = "sortshow";
- grd_goodhistory.explorerbar = "sortshow";
-
- grd_costlist.selectionmode = "list";
- model.refresh();
- }
-
- function fGridAutoRowchanged()
- {
- if(grd_costlist.rows > grd_costlist.fixedRows)
- {
- grd_costlist.row = grd_costlist.fixedRows;
- }
- }
-
- function fSetDataCopy(pnode,nodename)
- {
- misfGridInit(grd_goodhistory);
-
- if (swt_select.selectedIndex == 0)
- {
- misfGridInit(grd_costlist);
- fgrid = grd_costlist;
- }
- else return;
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var tmpdata = "";
- for (var j = 1; j <= codynode.length ; j++) {
- misfGridIUD(fgrid,"A");
- addRow = fgrid.rows - fgrid.fixedRows;
-
- for(var curcol = 1; curcol < fgrid.cols ; curcol++)
- {
- tmpdata = model.getValue(pnode +"/" + nodename + "[" + j + "]/" + fgrid.colAttribute(curcol, "ref"));
- if(tmpdata.length> 0)model.setValue(fgrid.nodeset + "[" + addRow + "]/" + fgrid.colAttribute(curcol, "ref") , tmpdata);
- }
- addRow = addRow + 1;
- }
- fgrid.clearStatus();
- model.refresh();
- }
-
- function fSaveDataSetting(pSubmit_Id) {
-
- if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
- else return;
-
- var insfromdd = model.getValue(ipt_insfromdd.attribute("ref"));
- model.removenode("/root/send/save");
- model.makeNode("/root/send/save/goodlist");
- model.makeNode("/root/send/save/gooddetlist");
- model.makeNode("/root/send/save/setautoins/setyn");
- model.makeNode("/root/send/save/setautoins/insfromdd")
-
- model.setValue("/root/send/save/setautoins/setyn","Y");
- model.setValue("/root/send/save/setautoins/insfromdd",insfromdd);
-
- model.refresh();
-
- if(swt_select.selectedIndex == 0)model.setValue("/root/send/save/goodlist" , fgrid.getUpdateData());
- model.setValue("/root/send/save/gooddetlist" , fgrid.getUpdateData());
-
- submit(pSubmit_Id);
-
- if (model.getValue(gvErrorMsgPath + "/type") != "error")
- {
- fgrid.clearStatus();
- submit("TRRSC00602");
- }
- }
- function fCheckRetrieveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
- {
- messageBox("물품구분을 " ,"C002");
- model.setFocus("cmb_goodflag");
- return false;
- }
- model.setValue("/root/send/goodlist/offset","0");
- model.setValue("/root/send/goodlist/pagesize", 20);
- return true;
- }
-
- function fSubmitOnScroll() {
- if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
- else return;
- if(fgrid.vscroll.attribute("max") == fgrid.vscroll.attribute("pos")) {
- model.setValue("/root/send/goodlist/offset", fgrid.rows-fgrid.fixedRows);
- model.setValue("/root/send/goodlist/pagesize", 20);
- submit("TRRSC00601");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0; top:0; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">약품 상한가 셋팅</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
- <group id="grp_title" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1195px; height:108px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:100px; top:9px; width:148px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption23" class="search_name" style="left:640px; top:30px; width:86px; height:17px; ">주거래처 :</caption>
- <input id="input1" ref="/root/send/goodlist/to_fromdd" class="input_default" inputtype="date" style="left:833px; top:80px; width:85px; height:19px; "/>
- <caption id="caption27" class="search_name" style="left:640px; top:8px; width:86px; height:17px; ">물 품 명 :</caption>
- <caption id="caption29" class="search_name" style="left:640px; top:54px; width:86px; height:17px; ">제조회사 :</caption>
- <input id="ipt_goodnm" ref="/root/send/goodlist/goodnm" class="input_default" style="left:725px; top:8px; width:193px; height:19px; "/>
- <input id="ipt_prodcmpycd" ref="/root/send/goodlist/prodcmpycd" class="input_search" style="left:725px; top:54px; width:84px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpynm.attribute("ref"),"");
- else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm"
- ,"prodcmpycd," + ipt_prodcmpycd.value ,"","prodcmpycd,prodcmpynm"
- ,ipt_prodcmpycd,"SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_prodcmpynm" ref="/root/send/goodlist/prodcmpynm" class="output_fix" navindex="-1" editable="false" style="left:831px; top:54px; width:143px; height:19px; "/>
- <button id="btn_prodcmpycd" class="icon_search" style="left:812px; top:54px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodlist/maincustlastsuplplcenm" class="output_fix" navindex="-1" editable="false" style="left:831px; top:30px; width:143px; height:19px; "/>
- <button id="btn_maincustlastsuplplce" class="icon_search" style="left:812px; top:30px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_maincustlastsuplplce" ref="/root/send/goodlist/maincustlastsuplplce" class="input_search" style="left:725px; top:30px; width:84px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchCust(ipt_maincustlastsuplplcenm,cmb_instcd);
- ]]>
- </script>
- </input>
- <input id="ipt_edicd" ref="/root/send/goodlist/edicd" class="input_default" style="left:421px; top:33px; width:148px; height:19px; "/>
- <input id="ipt_goodcd" ref="/root/send/goodlist/sch_goodcd" class="input_default" imemode="disabled" style="left:421px; top:9px; width:148px; height:19px; "/>
- <caption id="caption33" class="search_name" style="left:336px; top:9px; width:86px; height:17px; ">물품코드 :</caption>
- <caption id="caption34" class="search_name" style="left:333px; top:33px; width:89px; height:17px; ">EDI 코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:40px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // size 원위치
- if (fCheckRetrieveData() == false) return;
- misfGridInit(grd_costlist);
- //misfGridInit(grd_goodhistory);
- //misfMsterDetailRetrieve();
- // if ( grd_costlist.rows - grd_costlist.fixedRows > 0 ) submit("TRRSC00602");
- ]]>
- </script>
- </button>
- <line id="line_title" class="line_4" style="x1:1100px; y1:12px; x2:1100px; y2:92px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="input23" ref="/root/send/goodlist/fr_fromdd" class="input_default" inputtype="date" style="left:725px; top:80px; width:86px; height:19px; "/>
- <caption id="caption38" class="search_name" style="left:640px; top:80px; width:86px; height:17px; ">적용기간 :</caption>
- <caption id="caption1" style="left:832px; top:86px; width:5px; height:20px; font-weight:bold; ">~</caption>
- <caption id="caption2" style="left:816px; top:80px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <select1 id="cmb_goodflag" ref="/root/send/goodlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:100px; top:31px; width:148px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfGridInit(grd_costlist);
- misfGridInit(grd_goodhistory);
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption90" class="search_name" style="left:15px; top:31px; width:86px; height:17px; ">물품구분:</caption>
- </group>
- <datagrid id="grd_goodhistory" nodeset="/root/main/list/goodhistory/goodhistorylist" visibility="visible" caption="적용일자*^사용유무^규격^모델^제조회사^제조국^주거래처^보조거래처^EDI 코드^입고단위^불출단위^제품단가^입고계정^비용계정^견적가^외화단가^화폐단위^제품단가^수불단가^의료수가^대분류^중분류^소분류^수정자^수정일시" colsep="^" colwidth="80, 0, 65, 60, 66, 66, 80, 80, 75, 71, 73, 40, 100, 70, 51, 55, 69, 41, 71, 70, 94, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:628px; width:1195px; height:106px; ">
- <col ref="fromdd" format="yyyy-mm-dd"/>
- <col ref="useyn"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col ref="prodplcenm"/>
- <col ref="maincustlastsuplplcenm"/>
- <col ref="suppcustnm"/>
- <col ref="edicd"/>
- <col ref="purcunitnm"/>
- <col ref="deliveunitnm"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col ref="winacntnm"/>
- <col ref="amtacntnm"/>
- <col ref="estmamt" visibility="hidden"/>
- <col ref="forgncurncyunitcost" visibility="hidden"/>
- <col ref="curncyunitnm"/>
- <col ref="goodunitcost" visibility="hidden"/>
- <col visibility="hidden"/>
- <col visibility="hidden"/>
- <col ref="lrgnm"/>
- <col ref="mdlnm"/>
- <col ref="smlnm"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodhistory.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line8" class="line_1" style="x1:0px; y1:623px; x2:1195px; y2:623px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:609px; width:95px; height:13px; ">이력정보</caption>
- <switch id="swt_select" style="left:0px; top:121px; width:1195px; height:413px; ">
- <case id="cse_costlist">
- <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
- <button id="btn_excel" class="btn2_letter3" navindex="12" style="left:1135px; top:3px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "물품종합조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_costlist.saveExcel(fileName, "물품종합조회");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_costlist" nodeset="/root/main/list/good/goodlist" caption="적용일자^물품코드^품명^규격^EDI 코드^제조회사^포장단위^환산수량^수불단위^단가계약여부^단가^단가 계약기간^단가 계약기간^주거래처^계정과목^계정과목" colsep="^" colwidth="81, 72, 153, 112, 80, 78, 69, 64, 61, 92, 105, 75, 73, 106, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:372px; ">
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:left; padding-left:10; "/>
- <col ref="edicd" style="text-align:center; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- <col ref="purcunit" style="text-align:center; "/>
- <col ref="exchqty" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="costconyn" style="text-align:center; "/>
- <col ref="goodunitcost" visibility="visible" format="#,###" style="text-align:right; "/>
- <col ref="fromconterm" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="toconterm" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
- <col ref="winacnt" style="text-align:center; "/>
- <col ref="winacntnm" style="text-align:left; "/>
- <col ref="todd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="goodhngnm" visibility="hidden"/>
- <col ref="goodengnm" visibility="hidden"/>
- <col ref="proddrugsetflag" visibility="hidden"/>
- <col ref="mainusedeptcd" visibility="hidden"/>
- <col ref="conflag" visibility="hidden"/>
- <col ref="fromconterm" visibility="hidden"/>
- <col ref="toconterm" visibility="hidden"/>
- <col ref="estmamt" visibility="hidden"/>
- <col ref="lastpurcdd" visibility="hidden"/>
- <script type="javascript" ev:event="onscrolldown">
- <![CDATA[
- fSubmitOnScroll();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if ( grd_costlist.row != grd_costlist.fixedRows-1 && grd_costlist.rows - grd_costlist.fixedRows > 0 ) {
- model.setValue( "/root/send/goodhistory/goodcd", grd_costlist.valueMatrix( grd_costlist.row, grd_costlist.colRef("goodcd")) );
- submit("TRRSC00602");
- model.refresh();
- }
- grd_costlist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </group>
- <group id="group2" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_costlist);
- misfGridInit(grd_goodhistory);
- if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
- else
- {
- if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
- }
- //물품구분일 경우 첫번째 index 자동 설정
- if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
- ]]>
- </script>
- </button>
- <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|