<!-- #include file="../../../include.asp" --> <!-- #include file="../../../user/bk/shiireuriage/fd_seizosashizusho_view_main_in.asp" --> <% '<!-- '################################################ ' 名称 :製造指図書表示 ' 作成日 :2008/4/1 ' 作成者 :小野 ' 目的 :製造指図書を表示する。 ' 概要 : '################################################ '--> ' %> <% main() Sub main() Dim RouteType Dim BunsyoNaiyoCD Dim Mode Dim ii Dim Query Dim Content RouteType = Request("RouteType") BunsyoNaiyoCD = Request("BunsyoNaiyoCD") Mode = Request("Mode") Dim Label If Mode = "Shikakari" Then Label = "仕掛品" Else Label = "" End If %> <html> <% = HtmlHeader("") %> <SCRIPT LANGUAGE="JavaScript"> <!-- HomeAlias = "<% = HomeAlias %>"; HomeAliasSL = "<% = HomeAliasSL %>"; <% If Mode = "Shikakari" Then %> ExitFlg = 2; <% Else %> ExitFlg = 1; <% End If %> function SubmitCheck() { if (form1.Kanryobi.value == "") { alert("製造完了日を入力してください "); form1.Kanryobi.focus(); return false; } if (Date.parse(form1.Kanryobi.value) < Date.parse(form1.Syoribi.value)) { alert("製造開始日(" + form1.Syoribi.value + ")以降の日付を入力してください" ); form1.Kanryobi.focus(); return false; } SubmitReal(form1); return true; } --> </SCRIPT> <body onkeydown="if(ExitFlg==2)ExitFlg=3;" onBeforeUnload="if(ExitFlg!=0)window.event.returnValue = ExitMsg(ExitFlg)" bgcolor="#5C70B6" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <% If Mode = "Shikakari" Then %> <form OnKeyDown="FormKeyDown(this)" name="form1" method="POST" action="<% = Replace(Request.ServerVariables("SCRIPT_NAME"), "_view_main.asp", "_bin.asp") %>" autocomplete="off"> <% End If %> <input type="hidden" name="RouteType" value="<% = RouteType %>"> <input type="hidden" name="BunsyoNaiyoCD" value="<% = BunsyoNaiyoCD %>"> <input type="hidden" name="BinType" value="Seihin"> <% If InStr(RouteType, "ViewOnly") > 0 Then Response.Write(HtmlDesign(4)) Else Response.Write(HtmlDesign(1)) End If Response.Write(HttpL1(2)) If InStr(RouteType, "ViewOnly") > 0 And InStr(RouteType, "RMail") > 0 Then Response.Write(HttpL2("照会・集計ウィンドウ" ,"tblbtn( '/" & HomeAlias & "/user/bk/menu_s_viewonly.asp')", "受発信文書", "", "受信文書", "", "", "", "", "", "", "")) ElseIf InStr(RouteType, "ViewOnly") > 0 And InStr(RouteType, "SMail") > 0 Then Response.Write(HttpL2("照会・集計ウィンドウ" ,"tblbtn( '/" & HomeAlias & "/user/bk/menu_s_viewonly.asp')", "受発信文書", "", "発信文書", "", "", "", "", "", "", "")) ElseIf InStr(RouteType, "ViewOnly") > 0 Then Response.Write(HttpL2("照会・集計ウィンドウ" ,"tblbtn( '/" & HomeAlias & "/user/bk/menu_s_viewonly.asp')", "経理部", "", "伝票", "", Title, "", "", "", "", "")) Else Response.Write(HttpL2("会社選択" ,"tblbtn( '/" & HomeAlias & "/user/bk/')", GB_GyosyuMeisyo, "tblbtn( '/" & HomeAlias & "/user/bk/menu_" & GB_Gyosyu & ".asp')", "製造部", "tblbtn( '/" & HomeAlias & "/user/bk/menu_s6.asp')", "製造指図書", "", "", "", "", "")) End If Response.Write(HttpL3("", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "")) If RouteType <> "ViewOnly" Then If Mode = "Shikakari" Then Response.Write(HttpL3_1(" 製造を完了する ", "SubmitCheck()", "印刷", "PrintoutReal()", "", "", "", "", "", "")) Else ' Response.Write(HttpL3_1("印刷", "PrintoutReal()", "削除", "SakujyoBtn()", "", "", "", "", "", "")) Response.Write(HttpL3_1("印刷", "PrintoutReal()", "", "", "", "", "", "", "", "")) End If Else 'InStr(RouteType, "ViewOnly") > 0 Response.Write(HttpL3_1("印刷", "PrintoutReal()", "", "", "", "", "", "", "", "")) End If If InStr(RouteType, "ViewOnly") > 0 And InStr(RouteType, "RMail") > 0 Then Response.Write(HttpL3_2("一覧表示", "tblbtn( '/" & HomeAlias & "/user/bk/jyuhasshinbunsyo/fn_jyuhasshinbunsyo.asp?RouteType=ViewOnly&PageType=受信文書')", "", "", "", "", "", "", "", "")) ElseIf InStr(RouteType, "ViewOnly") > 0 And InStr(RouteType, "SMail") > 0 Then Response.Write(HttpL3_2("一覧表示", "tblbtn( '/" & HomeAlias & "/user/bk/jyuhasshinbunsyo/fn_jyuhasshinbunsyo.asp?RouteType=ViewOnly&PageType=発信文書')", "", "", "", "", "", "", "", "")) ' ElseIf InStr(RouteType, "ViewOnly") > 0 Then ' Response.Write(HttpL3_2("一覧表示", "tblbtn( 'fk_zairyoshiire_ichiran.asp?DenpyoNo=" & DenpyoNo & "&RouteType=" & RouteType & "&PageType=" & PageType & "')", PrevTitle, PrevCmd, NextTitle, NextCmd, "", "", "", "")) Else If Mode = "Shikakari" Then Response.Write(HttpL3_2("追加", "tblbtn('fd_seizosashizusho.asp')", "一覧表示", "tblbtn('fd_seizosashizusho_ichiran.asp?BunsyoNaiyoCD=" & BunsyoNaiyoCD & "&Mode=" & Mode & "')", "", "", "", "", "", "")) Else Response.Write(HttpL3_2("一覧表示", "tblbtn('fd_seizosashizusho_ichiran.asp?BunsyoNaiyoCD=" & BunsyoNaiyoCD & "&Mode=" & Mode & "')", "", "", "", "", "", "", "", "")) End If ' Response.Write(HttpL3_2("一覧表示", "tblbtn( 'fm_shohin_ichiran.asp?PageType=" & PageType & "&SyohinCD=" & SyohinCD & "&Mode=" & Mode & "')", "", "", "", "", "", "", "", "")) End If Response.Write(HttpL4("製造指図書", Label & "照会")) %> <div id="L0" style="position: absolute; visibility: hidden; left: 0px; top: -2000px;"> <% Dim AutoFlg If RouteType = "Hakushi" Then AutoFlg = -1 Else AutoFlg = 0 End If %> <% = SeizouSashizusho(EnshuCD, KaisyaCD, BunsyoNaiyoCD, AutoFlg, 0) %> </div> <!-- </form> --> </body> <SCRIPT LANGUAGE="JavaScript"> function SakujyoBtn() { if (confirm("この操作は元に戻す事が出来ません。\r\n削除をしてもよろしいですか?")) { tblbtn( 'fd_seizosashizusho_bin.asp?BunsyoNaiyoCD=<% = BunsyoNaiyoCD %>&BinType=Del'); } } </SCRIPT> <% = HtmlFooter %> </html> <% End Sub %>