<% ' main() Sub main() If Not(SessionCheck()) Then Exit Sub End If Dim KanriKubun Dim EnshuName Dim ShijyoMeisyo , ShijyoCD, ShijyoCD2 '市場コード、市場名称、市場カナ名称 Dim Query, Content ShijyoCD = Request("ShijyoCD") KanriKubun = Session(HomeAlias & "KanriKubun") ShijyoCD2 = ShijyoCD '演習名称GET EnshuName = ConvEnshuMeisyo(EnshuCD) '対象データGET Query = "exec SPM市場取得 '" & GB_SystemCD & "','" & EnshuCD & "','" & ShijyoCD & "'" Set Content = OpenQuery(Query) If Not(Content.BOF Or Content.EOF) Then ShijyoCD = Content.Fields("市場CD") ShijyoMeisyo = Content.Fields("市場名称") End If '当該市場限定の商品があるか確認する Dim ShijyoSyohin ShijyoSyohin = 0 Query = "exec SPM商品市場一覧 '" & GB_SystemCD & "','" & EnshuCD & "','" & ShijyoCD & "', '" & GB_GakuseiNo & "'" Set Content = OpenQuery(Query) Do While Not(Content.BOF Or Content.EOF) If Content.Fields("市場CD") = ShijyoCD Then ShijyoSyohin = 1 Exit Do End If Content.MoveNext Loop '当該市場の会社があるか確認する Dim ShijyoKaisha ShijyoKaisha = 0 Query = "exec SPM会社一覧 '" & GB_SystemCD & "','" & EnshuCD & "', 2" Set Content = OpenQuery(Query) Do While Not(Content.BOF Or Content.EOF) If Content.Fields("市場CD") = ShijyoCD Then ShijyoKaisha = 1 Exit Do End If Content.MoveNext Loop %> <% = AppTitle %>
<% Response.Write(HtmlDesign(1)) Response.Write(HttpL1(4)) If GB_Admin >= 1 Then Response.Write(HttpL2("運用管理メニュー" ,"tblbtn( '/" & HomeAlias & "/admin/admenu_w.asp')", "マスター管理", "tblbtn( '/" & HomeAlias & "/admin/master/fm_master_select.asp')", "市場マスター", "", "", "", "", "", "", "")) Response.Write(HttpL3("", "" ,"", "", "", "", "", "", "", "", "", "", "", "", "", "")) If EnshuCD <> "SYSORIGN" Then If ShijyoCD = "" Then Response.Write(HttpL3_1("", "","", "" ,"", "", "", "", "", "")) Else Response.Write(HttpL3_1("修正", "tblbtn('fm_shijyo.asp?ShijyoCD=" & ShijyoCD & "&Action=2&nr=n')","削除", "DeleteCheck()" ,"", "", "", "", "", "")) End If Response.Write(HttpL3_2("追加", "tblbtn( 'fm_shijyo.asp?Action=1')", "一覧表示", "tblbtn( 'fm_shijyo_ichiran.asp?ShijyoCD=" & ShijyoCD2 & "')", "", "", "", "", "", "")) End If Response.Write(HttpL3_2("追加", "tblbtn( 'fm_shijyo.asp?Action=1')", "一覧表示", "tblbtn( 'fm_shijyo_ichiran.asp')" ,"", "", "", "", "", "")) Else Response.Write(HttpL2("市場選択" ,"tblbtn( '/" & HomeAlias & "/user/bk/')", GB_GyosyuMeisyo, "tblbtn( '/" & HomeAlias & "/user/bk/menu_" & GB_Gyosyu & ".asp')", "社長室・総務部", "tblbtn( '/" & HomeAlias & "/user/bk/menu_s4.asp')", "マスター照会", "tblbtn( '/" & HomeAlias & "/user/bk/menu_s43.asp')", "市場マスター", "", "", "")) Response.Write(HttpL3("", "" ,"", "", "", "", "", "", "", "", "", "", "", "", "", "")) Response.Write(HttpL3_1("", "" ,"", "", "", "", "", "", "", "")) Response.Write(HttpL3_2("一覧表示", "tblbtn( 'fm_shijyo_ichiran.asp?ShijyoCD=" & ShijyoCD2 & "')" ,"", "", "", "", "", "", "", "")) End If Response.Write(HttpL4("市場マスター", "照会")) If EnshuCD = "SYSORIGN" Then Response.Write(HttpL5("演習コード SYSORIGN の演習は修正出来ません")) End If %>
<% = HtmlFooter %> <% End Sub %>