<% ' main() Sub main() If Not(SessionCheck()) Then Exit Sub End If Dim Query Dim Content Dim Content2 Dim EnshuName Dim MasterEnshu Query = "exec SPM演習取得 '" & GB_SystemCD & "','" & EnshuCD & "'" Set Content = OpenQuery(Query) If Not(Content.BOF Or Content.EOF) Then EnshuName = "" & Content.Fields("演習名称") MasterEnshu = "" & Content.Fields("マスター演習") End If '0件になったら税率0%を自動作成 Query = "" Query = Query & " " Query = Query & " SELECT * " Query = Query & " FROM TDA消費税率M " Query = Query & " WHERE システムCD = '" & GB_SystemCD & "' " Query = Query & " AND 演習CD = '" & EnshuCD & "' " Set Content = OpenQuery(Query) If Content.BOF Or Content.EOF Then Query = "" Query = Query & " " Query = Query & " INSERT INTO TDA消費税率M (システムCD, 演習CD, 消費税率, 標準, 運送費標準) " Query = Query & " VALUES ('" & GB_SystemCD & "', '" & EnshuCD & "', 0, '1', '1') " Set Content = OpenQuery(Query) End If Dim MSG MSG = Request("MSG") If MSG = "Update" Then MSG = "更新しました" End If %> <% = HtmlHeader("") %>
<% Response.Write(HtmlDesign(1)) Response.Write(HttpL1(4)) Response.Write(HttpL2("運用管理メニュー" ,"tblbtn( '../../admenu_w.asp')", "マスター管理", "tblbtn( '../fm_master_select.asp')", "消費税率マスター", "", "", "", "", "", "", "")) Response.Write(HttpL3("", "" ,"", "", "", "", "", "", "", "", "", "", "", "", "", "")) 'If MasterEnshu = "1" Then Response.Write(HttpL3_1("", "", "", "", "", "", "", "", "", "")) 'Else ' If GB_Admin = 2 Then 'Response.Write(HttpL3_1("保存", "SubmitCheck()", "", "", "", "", "", "", "", "")) ' Else ' Response.Write(HttpL3_1("保存", "SubmitCheck()", " 全演習に適用する ", "SubmitAll()", "", "", "", "", "", "")) '複雑過ぎてムリ ' End If 'End If Response.Write(HttpL3_2("戻る", "tblbtn('../fm_master_select.asp')", "", "", "", "", "", "", "", "")) Response.Write(HttpL4("消費税率マスター", "")) If MasterEnshu = "1" Then Response.Write(HttpL5("マスター演習に設定されているため変更できません")) Else Response.Write(HttpL5(MSG)) End If %>
<% = HtmlFooter %> <% End Sub %>