123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <?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>
- <magam>
- <magamlist/>
- </magam>
- </main>
- <send>
- <search>
- <instcd/>
- <endmonth/>
- <deptcd/>
- <deptnm/>
- <workyn/>
- <endyn/>
- </search>
- <save>
- </save>
- <magamsearch>
- <instcd/>
- <dd/>
- <deptcd/>
- </magamsearch>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- <hidden>
- </hidden>
- <magam/>
- <distrimagam/>
- </root>
- </instance>
- <submission id="TRRSO20401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- <submission id="TXRSO20501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- <submission id="TRRSO21002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/magamsearch" resultref="/root/magam"/>
- <submission id="TRRSO20502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/magam"/>
- <submission id="TXRSO20502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
- <submission id="TRRSO21003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/magamsearch" resultref="/root/distrimagam"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N"); //기관
- misfGridInit(grd_magam);
- misfGetAndSetUserInfo(); //접속자기본정보
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
- model.setValue("/root/send/search/endmonth" , getCurrentDate().substr(0, 6) ); //마감년월 설정
- model.setValue("/root/send/search/workyn", "Y"); //Y:마감작업, N:마감취소
-
- model.setValue("/root/send/search/deptcd", DUT_PLCEDEPT_CD);
- model.setValue("/root/send/search/deptnm", DUT_PLCEDEPT_NM);
-
- if(DUT_PLCEDEPT_CD == "4020334000"){
- btn_distriendY.visible = true;
- btn_distriendN.visible = true;
- }else{
- btn_distriendY.visible = false;
- btn_distriendN.visible = false;
- }
-
- model.setValue("/root/send/magamsearch/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/magamsearch/dd", getCurrentDate().substr(0, 6));
- model.setValue("/root/send/magamsearch/deptcd", DUT_PLCEDEPT_CD);
-
- reMagamYN(); //물류마감,해당부서 마감여부조회
-
- reEndDeptList();//마감부서리스트 조회
-
- model.refresh();
- ]]>
- </script>
- <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/numericHelper.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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var distriyn = "N";
-
-
- function reMagamYN(){
- cap_magam.value = "";
- if(submit("TRRSO21003")){
- var endyn = model.getValue("/root/distrimagam/endyn");
- if(endyn == "Y"){
- cap_magam.value = "물류마감이 되어있습니다.";
- btn_distriendY.disabled = true;
- btn_distriendN.disabled = false;
- btn_exec.disabled = true;
- distriyn = "Y";
- }else{
- cap_magam.value = "";
- btn_distriendY.disabled = false;
- btn_distriendN.disabled = true;
- btn_exec.disabled = false;
- distriyn = "N";
-
- if(submit("TRRSO21002")){
- var magamyn = model.getValue("/root/magam/magamyn");
- if(magamyn == "Y"){
- cap_magam.value = "해당부서는 현재 마감되어있습니다.";
- rdo_workyn.value = "N"
- }else{
- cap_magam.value = "";
- rdo_workyn.value = "Y"
- }//if(magamyn == "Y"){
- }else{
- return;
- }//if(submit("TRRSO21002")){
- }//if(endyn == "Y"){
- }else{
- return;
- }//if(submit("TRRSO21003")){
- }
-
-
- function reEndDeptList(){
- if(submit("TRRSO20502")){
- var magamyn = "";
- for(var i = 1 ; i < grd_magam.rows ; i++){
- magamyn = grd_magam.valueMatrix(i, grd_magam.colRef("magamyn"));
- if(magamyn == "Y"){
- grd_magam.cellStyle("background-color", i, 1, i, 2) = "#ccffff";
- }else{
- grd_magam.cellStyle("background-color", i, 1, i, 2) = "#ffff99";
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="770" pageheight="500" guideline="1,1368;" style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:745px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">월마감(부서재고)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:745px; height:442px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:400px; y2:38px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:19px; width:180px; height:14px; ">부서재고 월마감 작업</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:148px; x2:400px; y2:148px; "/>
- <caption id="caption26" class="cell_1" style="left:0px; top:96px; width:110px; height:23px; text-align:center; vertical-align:middle; ">부 서</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:94px; x2:270px; y2:94px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:94px; x2:400px; y2:94px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:120px; x2:400px; y2:120px; "/>
- <caption id="cap_purccondd" class="cell_1" style="left:0px; top:44px; width:110px; height:23px; text-align:center; vertical-align:middle; ">기관코드</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:70px; width:110px; height:23px; text-align:center; vertical-align:middle; ">마감년월</caption>
- <caption id="cap_concmpycd1" class="cell_1" style="left:0px; top:122px; width:110px; height:23px; text-align:center; vertical-align:middle; ">작업구분</caption>
- <line id="line10" class="line_2" style="x1:0px; y1:68px; x2:400px; y2:68px; "/>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:112px; top:46px; width:143px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_endmonth" ref="/root/send/search/endmonth" navindex="5" inputtype="date" format="yyyy-mm" style="left:112px; top:72px; width:143px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/magamsearch/instcd", cmb_instcd.value);
- model.setValue("/root/send/magamsearch/dd", ipt_endmonth.value);
- model.setValue("/root/send/magamsearch/deptcd", ipt_deptcd.value);
-
- reMagamYN(); //물류마감,해당부서 마감여부조회
-
- reEndDeptList();//마감부서리스트 조회
- ]]>
- </script>
- </input>
- <select1 id="rdo_workyn" ref="/root/send/search/workyn" appearance="full" cols="2" overflow="visible" style="left:114px; top:126px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>마감작업</label>
- <value>Y</value>
- </item>
- <item>
- <label>마감취소</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_deptcd" ref="/root/send/search/deptcd" class="input_default" navindex="2" style="left:112px; top:98px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm" );
- ipt_deptcd.refresh();
- opt_deptnm.refresh();
- //조회조건 변경시 초기화 및 check
- //fSearchCondChanged("ipt_deptcd");
-
- if(distriyn == "Y"){
- return;
- }
-
- if(opt_deptnm.value != ""){
- model.setValue("/root/send/magamsearch/instcd", cmb_instcd.value);
- model.setValue("/root/send/magamsearch/dd", ipt_endmonth.value);
- model.setValue("/root/send/magamsearch/deptcd", ipt_deptcd.value);
- if(submit("TRRSO21002")){
- var magamyn = model.getValue("/root/magam/magamyn");
- if(magamyn == "Y"){
- cap_magam.value = "해당부서는 현재 마감되어있습니다.";
- }else{
- cap_magam.value = "";
- }
- }else{
- return;
- }
- }
- ]]>
- </script>
- </input>
- <output id="opt_deptnm" ref="/root/send/search/deptnm" class="output_fix" appearance="output" style="left:202px; top:98px; width:188px; height:19px; "/>
- <button id="btn_deptcd" class="icon_search" navindex="3" style="left:184px; top:100px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "deptcd,deptnm";
- misfOpenPopUpList("02", ipt_deptcd,"", recv_list) ;
- ipt_deptcd.refresh();
- opt_deptnm.refresh();
-
- if(distriyn == "Y"){
- return;
- }
-
- if(opt_deptnm.value != ""){
- model.setValue("/root/send/magamsearch/instcd", cmb_instcd.value);
- model.setValue("/root/send/magamsearch/dd", ipt_endmonth.value);
- model.setValue("/root/send/magamsearch/deptcd", ipt_deptcd.value);
- if(submit("TRRSO21002")){
- var magamyn = model.getValue("/root/magam/magamyn");
- if(magamyn == "Y"){
- cap_magam.value = "해당부서는 현재 마감되어있습니다.";
- }else{
- cap_magam.value = "";
- }
- }else{
- return;
- }
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_magam" nodeset="/root/main/magam/magamlist" caption="부서^마감여부" colsep="^" colwidth="184, 100" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:410px; top:0px; width:330px; height:440px; ">
- <col ref="deptnm"/>
- <col ref="magamyn"/>
- </datagrid>
- <caption id="cap_magam" style="left:5px; top:155px; width:395px; height:30px; font-size:11pt; font-weight:bold; color:#ff0000; text-align:center; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:745px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:400px; y2:25; "/>
- <button id="btn_exec" class="btn4_letter2" navindex="41" style="left:336px; top:3px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //마감년월에 입력된 값이 올바르지 않으면, 마감년월을 선택하라고 alert함
- if(ipt_endmonth.value.length < 6) {
- messageBox("마감년월이 올바로 선택되지 않았습니다. \n\n먼저 마감년월을 선택하십시요.", "E999", "");
- model.setFocus("ipt_endmonth");
- return;
- }
- //부서에 선택된 값이 없으면, 부서를 선택하라고 alert함
- if(ipt_deptcd.value == "") {
- messageBox("부서가 선택되지 않았습니다. \n\n부서를 선택하십시요.", "E999", "");
- model.setFocus("ipt_deptcd");
- return;
- }
-
- /* 아래의 마감확정에 대한 process는 Himed로 오면서 없어졌음. -> AS_IS 도 2007년 이후 단 1차례만 사용한 이력이 있음
- if(rdo_workyn.value == "N") { //N:마감취소
- if(submit("TRRSO20401")) {
- if(model.getValue("") == "") {
- messageBox("이미 마감확정된 월이므로 마감취소를 할 수 없습니다. \n\n정보통신실로 문의하십시요.", "E999", "");
- model.setFocus("ipt_endmonth");
- return;
- }
- }
- }
- */
- if(distriyn = "N"){
- if(submit("TXRSO20501")){
- model.setValue("/root/send/magamsearch/instcd", cmb_instcd.value);
- model.setValue("/root/send/magamsearch/dd", ipt_endmonth.value);
- model.setValue("/root/send/magamsearch/deptcd", ipt_deptcd.value);
-
- reMagamYN(); //물류마감,해당부서 마감여부조회
-
- reEndDeptList();//마감부서리스트 조회
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_distriendN" class="btn4_letter6" navindex="41" visibility="hidden" style="left:232px; top:3px; width:104px; height:22px; ">
- <caption>물류마감취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //마감년월에 입력된 값이 올바르지 않으면, 마감년월을 선택하라고 alert함
- if(ipt_endmonth.value.length < 6) {
- messageBox("마감년월이 올바로 선택되지 않았습니다. \n\n먼저 마감년월을 선택하십시요.", "E999", "");
- model.setFocus("ipt_endmonth");
- return;
- }
-
- model.setValue("/root/send/search/endyn", "N");
- if(submit("TXRSO20502")){
- if(submit("TRRSO21003")){
- var endyn = model.getValue("/root/distrimagam/endyn");
- if(endyn == "Y"){
- cap_magam.value = "물류마감이 되어있습니다.";
- btn_distriendY.disabled = true;
- btn_distriendN.disabled = false;
- btn_exec.disabled = true;
- distriyn = "Y";
- }else{
- cap_magam.value = "";
- btn_distriendY.disabled = false;
- btn_distriendN.disabled = true;
- btn_exec.disabled = false;
- distriyn = "N";
- }
- }else{
- return;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_distriendY" class="btn4_letter6" navindex="41" visibility="hidden" style="left:128px; top:3px; width:104px; height:22px; ">
- <caption>물류마감작업</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //마감년월에 입력된 값이 올바르지 않으면, 마감년월을 선택하라고 alert함
- if(ipt_endmonth.value.length < 6) {
- messageBox("마감년월이 올바로 선택되지 않았습니다. \n\n먼저 마감년월을 선택하십시요.", "E999", "");
- model.setFocus("ipt_endmonth");
- return;
- }
-
- model.setValue("/root/send/search/endyn", "Y");
- if(submit("TXRSO20502")){
- if(submit("TRRSO21003")){
- var endyn = model.getValue("/root/distrimagam/endyn");
- if(endyn == "Y"){
- cap_magam.value = "물류마감이 되어있습니다.";
- btn_distriendY.disabled = true;
- btn_distriendN.disabled = false;
- btn_exec.disabled = true;
- distriyn = "Y";
- }else{
- cap_magam.value = "";
- btn_distriendY.disabled = false;
- btn_distriendN.disabled = true;
- btn_exec.disabled = false;
- distriyn = "N";
- }
- }else{
- return;
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|