<% ' ' %> <% main() Sub main() If Not(SessionCheck()) Then Exit Sub End If 'MHMKANJOSAIMOKC = "" Dim Cnt Dim RouteType RouteType = Request("RouteType") Dim PageType PageType = "総勘定元帳" Dim Url Url = Request.ServerVariables("URL") Dim KanjyoCD KanjyoCD = Request("KanjyoCD") Dim AutoZandakaNyuryoku AutoZandakaNyuryoku = GetEnshuParam(EnshuCD, "残高自動計算") '仕訳日選択モード Dim Shiwakebi Shiwakebi = "0" If ShiwakebiSelect = 1 Then Shiwakebi = GetEnshuParam(EnshuCD, "日付仕訳日指定") End If ' Shiwakebi = "0" ' Shiwakebi = "1" Dim TmpShiwakebiAry 'Spread羅列(存在チェックにも利用) Dim ShiwakebiAry '自前フォーム用配列 ReDim ShiwakebiAry(0) If Shiwakebi = "1" Then Query = "" Query = Query & " " Query = Query & " " Query = Query & " SELECT 取引日 " Query = Query & " FROM TSK伝票F " Query = Query & " WHERE 削除フラグ = 0 " Query = Query & " AND システムCD = '" & GB_SystemCD & "' " Query = Query & " AND 演習CD = '" & EnshuCD & "' " Query = Query & " AND 会社CD = '" & KaisyaCD & "' " Query = Query & " GROUP BY 取引日 " Query = Query & " ORDER BY 取引日 DESC " Set Content = OpenQuery(Query) Do While Not(Content.BOF Or Content.EOF) TmpShiwakebiAry = TmpShiwakebiAry & "\t" & SetTimeYYYYMMDD(Content.Fields("取引日")) ReDim PreServe ShiwakebiAry(UBound(ShiwakebiAry) + 1) '配列+1 ShiwakebiAry(UBound(ShiwakebiAry)) = "" & SetTimeYYYYMMDD(Content.Fields("取引日")) Content.MoveNext Loop End If Dim TaisyakuKubun Dim KouriHanbai KouriHanbai = KourihanbaiRiyo() '取引先市場配列作成(080929小野) Dim TorihikisakiMeishoAry ReDim TorihikisakiMeishoAry(0) Dim TorihikisakiShijoAry ReDim TorihikisakiShijoAry(0) Query = "exec SPM摘要表示一覧 '" & GB_SystemCD & "','" & EnshuCD & "', '" & KaisyaCD & "'" Set Content = OpenQuery(Query) Do While Not(Content.BOF Or Content.EOF) If Not(Content.Fields("摘要区分") = "K" AND Content.Fields("摘要CD") = KaisyaCD) Then ReDim PreServe TorihikisakiMeishoAry(UBound(TorihikisakiMeishoAry) + 1) ReDim PreServe TorihikisakiShijoAry(UBound(TorihikisakiShijoAry) + 1) TorihikisakiMeishoAry(UBound(TorihikisakiMeishoAry)) = "" & Content.Fields("摘要") TorihikisakiShijoAry(UBound(TorihikisakiShijoAry)) = "" & Content.Fields("市場CD") End If Content.MoveNext Loop '勘定科目一覧を配列化 Dim KamokuCDAry Dim KamokuMeiAry Dim KamokuSaimokuAry ReDim KamokuCDAry(0) ReDim KamokuMeiAry(0) ReDim KamokuSaimokuAry(0) Dim ChkKanjyoCD ChkKanjyoCD = 0 '勘定CDの存在確認(061116小野) Query = "exec SPM勘定科目一覧 '" & GB_SystemCD & "','" & EnshuCD & "', '" & GB_GyosyuKubun & "', '', '" & GB_KaisyaCD & "'" Set Content = OpenQuery(Query) Do While Not(Content.BOF Or Content.EOF) ReDim PreServe KamokuCDAry(UBound(KamokuCDAry) + 1) '配列+1 ReDim PreServe KamokuMeiAry(UBound(KamokuMeiAry) + 1) '配列+1 ReDim PreServe KamokuSaimokuAry(UBound(KamokuSaimokuAry) + 1) '配列+1 KamokuCDAry(UBound(KamokuCDAry)) = "" & Content.Fields("勘定CD") KamokuMeiAry(UBound(KamokuMeiAry)) = "" & Content.Fields("勘定名称") KamokuSaimokuAry(UBound(KamokuSaimokuAry)) = "" & Content.Fields("勘定細目") If Content.Fields("勘定CD") = KanjyoCD Then ChkKanjyoCD = 1 '勘定CDの存在確認(061116小野) End If Content.MoveNext Loop Dim PreKanjyoMeisai Dim ZandakaTotal,KarikataKingakuTotal,KashikataKingakuTotal Dim KarikataMonthTotal,KashikataMonthTotal KarikataMonthTotal = 0 KashikataMonthTotal = 0 '↓ウィンドウ幅(fk_sokanjyomototyo_view_main_in__.aspと同じ) ※Egdeモードのみ利用 Dim WidthParent, WidthParent2 Dim WidthCell1, WidthCell2, WidthCell3, WidthCell4, WidthCell5, WidthCell6, WidthCell7 Dim HeightCell HeightCell = 23 WidthCell7 = 84 If Shiwakebi = "1" Then WidthCell7 = WidthCell7 + 10 End If WidthCell3 = 77 + 16 'プルダウンのため拡張 WidthCell4 = 108 WidthCell1 = 50 WidthCell5 = 137 + 14 'プルダウンのため拡張 WidthCell2 = 91 WidthCell6 = 18 + 20 'プルダウンのため拡張 ' WidthParent2 = 811 WidthParent = 833 + 50 'プルダウンのため拡張 If Shiwakebi = "1" Then WidthParent = WidthParent + 10 End If '↑ウィンドウ幅 %> <% '_view_main.aspと同じにする %> <% = HtmlHeader("sj3tyobored11") %>
" name="form1" autocomplete="off"> <% If InStr(RouteType, "HojyoboOnly") > 0 Then Response.Write(HtmlDesign(2)) Else Response.Write(HtmlDesign(1)) End If Response.Write(HttpL1(3)) If PackageMode = 1 Then Response.Write(HttpL2("メインメニュー" ,"tblbtn('/" & HomeAlias & "/user/bk/menu_cyac.asp')", "手入力帳簿", "tblbtn( '/" & HomeAlias & "/user/bk/menu_cyac3.asp')", PageType, "", "", "", "", "", "", "")) Else Response.Write(HttpL2("会社選択" ,"tblbtn( '/" & HomeAlias & "/user/bk/')", GB_GyosyuMeisyo, "tblbtn( '/" & HomeAlias & "/user/bk/menu_" & GB_Gyosyu & ".asp')", "経理部", "tblbtn( '/" & HomeAlias & "/user/bk/menu_s1.asp')", "帳簿", "tblbtn( '/" & HomeAlias & "/user/bk/menu_s12.asp')", PageType, "", "", "")) End If Response.Write(HttpL3("", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "")) If KanjyoCD <> "" And ChkKanjyoCD = 1 Then '当該勘定CDに対する勘定科目が無ければ保存ボタンを表示しない(061116小野) ' If KanjyoCD <> "" Then If GB_IEmode = "1" Then '※HttpL3_1にボタンを追加する事前処理(210107小野) Call HttpL3_1_AddBtn("行↑", "SpreadShiftRowSub(document.vaSpread1, 'Up');", "行↓", "SpreadShiftRowSub(document.vaSpread1, 'Dn');", "", "", "", "", "", "") Response.Write(HttpL3_1("保存", "SubmitCheck()", "行追加", "SpreadAddItem2(document.vaSpread1);SetAiteKanjyoKamokuList(KanjyoMeisaiSelected);SetTorihikisakiShijoList(form1.TorihikisakiShijo.value);", "行挿入", "SpreadInsertItem(document.vaSpread1);SetAiteKanjyoKamokuList(KanjyoMeisaiSelected);SetTorihikisakiShijoList(form1.TorihikisakiShijo.value);", "行削除", "SpreadDelItem(document.vaSpread1);", "", "")) Else '※HttpL3_1にボタンを追加する事前処理(210107小野) Call HttpL3_1_AddBtn( "", "", "", "", "", "", "", "", "", "") Response.Write(HttpL3_1("保存", "SubmitCheck()", "行挿入", "SpRowInsertSub();", "行削除", "SpRowDeleteSub();SpSetZandaka();", "行↑", "SpRowShiftSub('Up');SpSetZandaka();", "行↓", "SpRowShiftSub('Dn');SpSetZandaka();")) End If End If ' Response.Write(HttpL3_2("照会", "tblbtn( '" & Replace(Url, ".asp", "_view.asp") & "?RouteType=" & RouteType & "&KanjyoCD=" & KanjyoCD & "')", "", "", "", "", "", "", "", "")) Response.Write(HttpL3_2("照会", "tblbtn( '" & Replace(Url, ".asp", "_view.asp") & "?RouteType=" & RouteType & "&KanjyoCD=" & KanjyoCD & "')", "印刷", "tblbtn( '" & Replace(Url, ".asp", "_view.asp") & "?RouteType=" & RouteType & "&KanjyoCD=" & KanjyoCD & "&AutoPrint=1')", "", "", "", "", "", "")) Response.Write(HttpL4(PageType, "")) %>
<% If GB_IEmode <> "1" Then %> <% Else 'IEモード %> <% Dim KanjyoCDCol KanjyoCDCol = 4 %> <% End If %> <% = HtmlFooter %> <% End Sub %>