% ' ' %> <% main() Sub main() If Not(SessionCheck()) Then Exit Sub End If Dim GenkinNyusyukinCD, Tekiyo, Kingaku, Syoribi GenkinNyusyukinCD = Request("GenkinNyusyukinCD") Dim PageType PageType = Request("PageType") Dim Label If PageType = "Nyukin" Then Label = "入金" Else Label = "出金" End If Dim BinType BinType = Request("BinType") Dim Query, Content Dim CoinFlg CoinFlg = 0 Query = "exec SPK現金入出金取得 '" & GB_SystemCD & "','" & EnshuCD & "', '" & KaisyaCD & "', 1, '" & GenkinNyusyukinCD & "'" Set Content = OpenQuery(Query) If Not(Content.BOF Or Content.EOF) Then Syoribi = SetTimeYYYYMMDD(Content.Fields("処理日")) Kingaku = Content.Fields("金額") Tekiyo = Content.Fields("摘要") If Kingaku < 1000 Then CoinFlg = 1 End If End If Dim bMinusCheck bMinusCheck = 0 Dim nyukin , syukin , zandaka zandaka = 0 Query = "exec SPK現金入出金履歴一覧 '" & GB_SystemCD & "','" & EnshuCD & "', '" & KaisyaCD & "'" Set Content = OpenQuery(Query) Do While Not(Content.BOF Or Content.EOF) If Content.Fields("現金取引区分") = "GN" Then nyukin = Content.Fields("金額") syukin = 0 ElseIf Content.Fields("現金取引区分") = "GS" Then nyukin = 0 syukin = Content.Fields("金額") Else nyukin = Content.Fields("金額") syukin = Content.Fields("金額") End If zandaka = zandaka + nyukin - syukin If zandaka < 0 Then bMinusCheck = 1 End If Content.MoveNext Loop %>