📄 form45.frm
字号:
Else
a82 = grs.Fields(81)
End If
If grs.Fields(82) = 0 Then
a83 = ""
Else
a83 = grs.Fields(82)
End If
If grs.Fields(83) = 0 Then
a84 = ""
Else
a84 = grs.Fields(83)
End If
If grs.Fields(84) = 0 Then
a85 = ""
Else
a85 = grs.Fields(84)
End If
If grs.Fields(85) = 0 Then
a86 = ""
Else
a86 = grs.Fields(85)
End If
If grs.Fields(86) = 0 Then
a87 = ""
Else
a87 = grs.Fields(86)
End If
If grs.Fields(87) = 0 Then
a88 = ""
Else
a88 = grs.Fields(87)
End If
If grs.Fields(88) = 0 Then
a89 = ""
Else
a89 = grs.Fields(88)
End If
If grs.Fields(89) = 0 Then
a90 = ""
Else
a90 = grs.Fields(89)
End If
If grs.Fields(90) = 0 Then
a91 = ""
Else
a91 = grs.Fields(90)
End If
If grs.Fields(91) = 0 Then
a92 = ""
Else
a92 = grs.Fields(91)
End If
If grs.Fields(92) = 0 Then
a93 = ""
Else
a93 = grs.Fields(92)
End If
If grs.Fields(93) = 0 Then
a94 = ""
Else
a94 = grs.Fields(93)
End If
If grs.Fields(94) = 0 Then
a95 = ""
Else
a95 = grs.Fields(94)
End If
If grs.Fields(95) = 0 Then
a96 = ""
Else
a96 = grs.Fields(95)
End If
If grs.Fields(96) = 0 Then
a97 = ""
Else
a97 = grs.Fields(96)
End If
If grs.Fields(97) = 0 Then
a98 = ""
Else
a98 = grs.Fields(97)
End If
If grs.Fields(98) = 0 Then
a99 = ""
Else
a99 = grs.Fields(98)
End If
If grs.Fields(99) = 0 Then
a100 = ""
Else
a100 = grs.Fields(99)
End If
If grs.Fields(100) = 0 Then
a101 = ""
Else
a101 = grs.Fields(100)
End If
If grs.Fields(101) = 0 Then
a102 = ""
Else
a102 = grs.Fields(101)
End If
If grs.Fields(102) = 0 Then
a103 = ""
Else
a103 = grs.Fields(102)
End If
If grs.Fields(103) = 0 Then
a104 = ""
Else
a104 = grs.Fields(103)
End If
If grs.Fields(104) = 0 Then
a105 = ""
Else
a105 = grs.Fields(104)
End If
If grs.Fields(105) = 0 Then
a106 = ""
Else
a106 = grs.Fields(105)
End If
If grs.Fields(106) = 0 Then
a107 = ""
Else
a107 = grs.Fields(106)
End If
If grs.Fields(107) = 0 Then
a108 = ""
Else
a108 = grs.Fields(107)
End If
If grs.Fields(108) = 0 Then
a109 = ""
Else
a109 = grs.Fields(108)
End If
If grs.Fields(109) = 0 Then
a110 = ""
Else
a110 = grs.Fields(109)
End If
If grs.Fields(110) = 0 Then
a111 = ""
Else
a111 = grs.Fields(110)
End If
If grs.Fields(111) = 0 Then
a112 = ""
Else
a112 = grs.Fields(111)
End If
If grs.Fields(112) = 0 Then
a113 = ""
Else
a113 = grs.Fields(112)
End If
If grs.Fields(113) = 0 Then
a114 = ""
Else
a114 = grs.Fields(113)
End If
If grs.Fields(114) = 0 Then
a115 = ""
Else
a115 = grs.Fields(114)
End If
If grs.Fields(115) = 0 Then
a116 = ""
Else
a116 = grs.Fields(115)
End If
If grs.Fields(116) = 0 Then
a117 = ""
Else
a117 = grs.Fields(116)
End If
If grs.Fields(117) = 0 Then
a118 = ""
Else
a118 = grs.Fields(117)
End If
If grs.Fields(118) = 0 Then
a119 = ""
Else
a119 = grs.Fields(118)
End If
If grs.Fields(119) = 0 Then
a120 = ""
Else
a120 = grs.Fields(119)
End If
If grs.Fields(120) = 0 Then
a121 = ""
Else
a121 = grs.Fields(120)
End If
If grs.Fields(121) = 0 Then
a122 = ""
Else
a122 = grs.Fields(121)
End If
If grs.Fields(122) = 0 Then
a123 = ""
Else
a123 = grs.Fields(122)
End If
If grs.Fields(123) = 1 Then
a124 = ""
Else
a124 = grs.Fields(123)
End If
If grs.Fields(124) = 0 Then
a125 = ""
Else
a125 = grs.Fields(124)
End If
If grs.Fields(125) = 0 Then
a126 = ""
Else
a126 = grs.Fields(125)
End If
If grs.Fields(126) = 0 Then
a127 = ""
Else
a127 = grs.Fields(126)
End If
If grs.Fields(127) = 0 Then
a128 = ""
Else
a128 = grs.Fields(127)
End If
If grs.Fields(128) = 0 Then '共计为空,预收款也必为空
a129 = ""
Else
a129 = grs.Fields(128)
End If
If grs.Fields(129) = 0 Then
a130 = ""
Else
a130 = grs.Fields(129)
End If
If grs.Fields(130) = 0 Then
a131 = ""
Else
a131 = grs.Fields(130)
End If
Form46.Text1.Text = a1
Form46.Text2.Text = a2
Form46.Text3.Text = a3
Form46.Combo1.Text = a4
Form46.Combo2.Text = a5
Form46.Text6.Text = a6
Form46.Text7.Text = a7
Form46.Text8.Text = a8
Form46.Text9.Text = a9
Form46.Text10.Text = a10
Form46.Combo3.Text = a11
Form46.Combo4.Text = a12
Form46.Text13.Text = a13
Form46.Text14.Text = a14
Form46.Text15.Text = a15
Form46.Text16.Text = a16
Form46.Text17.Text = a17
Form46.Combo5.Text = a18
Form46.Combo6.Text = a19
Form46.Text20.Text = a20
Form46.Text21.Text = a21
Form46.Text22.Text = a22
Form46.Text23.Text = a23
Form46.Text24.Text = a24
Form46.Combo7.Text = a25
Form46.Combo8.Text = a26
Form46.Text27.Text = a27
Form46.Text28.Text = a28
Form46.Text29.Text = a29
Form46.Text30.Text = a30
Form46.Text31.Text = a31
Form46.Combo9.Text = a32
Form46.Combo10.Text = a33
Form46.Text34.Text = a34
Form46.Text35.Text = a35
Form46.Text36.Text = a36
Form46.Text37.Text = a37
Form46.Text38.Text = a38
Form46.Combo11.Text = a39
Form46.Combo12.Text = a40
Form46.Text41.Text = a41
Form46.Text42.Text = a42
Form46.Text43.Text = a43
Form46.Text44.Text = a44
Form46.Text45.Text = a45
Form46.Combo13.Text = a46
Form46.Combo14.Text = a47
Form46.Text48.Text = a48
Form46.Text49.Text = a49
Form46.Text50.Text = a50
Form46.Text51.Text = a51
Form46.Text52.Text = a52
Form46.Text53.Text = a53
Form46.Combo19.Text = a54
Form46.Text55.Text = a55
Form46.Text56.Text = a56
Form46.Text57.Text = a57
Form46.Combo20.Text = a58
Form46.Text59.Text = a59
Form46.Text60.Text = a60
Form46.Text61.Text = a61
Form46.Text62.Text = a62
Form46.Text63.Text = a63
Form46.Text64.Text = a64
Form46.Text65.Text = a65
Form46.Text66.Text = a66
Form46.Text67.Text = a67
Form46.Text68.Text = a68
Form46.Text69.Text = a69
Form46.Text70.Text = a70
Form46.Combo15.Text = a71
Form46.Combo16.Text = a72
Form46.Text73.Text = a73
Form46.Text74.Text = a74
Form46.Text75.Text = a75
Form46.Text76.Text = a76
Form46.Text77.Text = a77
Form46.Combo17.Text = a78
Form46.Combo18.Text = a79
Form46.Text80.Text = a80
Form46.Text81.Text = a81
Form46.Text82.Text = a82
Form46.Text83.Text = a83
Form46.Text84.Text = a84
Form46.Combo21.Text = a85
Form46.Text86.Text = a86
Form46.Text87.Text = a87
Form46.Text88.Text = a88
Form46.Text89.Text = a89
Form46.Combo22.Text = a90
Form46.Text91.Text = a91
Form46.Text92.Text = a92
Form46.Text93.Text = a93
Form46.Text94.Text = a94
Form46.Combo23.Text = a95
Form46.Text96.Text = a96
Form46.Text97.Text = a97
Form46.Text98.Text = a98
Form46.Text99.Text = a99
Form46.Combo24.Text = a100
Form46.Text101.Text = a101
Form46.Text102.Text = a102
Form46.Text103.Text = a103
Form46.Text104.Text = a104
Form46.Combo25.Text = a105
Form46.Text106.Text = a106
Form46.Text107.Text = a107
Form46.Text108.Text = a108
Form46.Text109.Text = a109
Form46.Combo26.Text = a110
Form46.Text111.Text = a111
Form46.Text112.Text = a112
Form46.Text113.Text = a113
Form46.Text114.Text = a114
Form46.Text18.Text = a115
Form46.Text4.Text = a116
Form46.Text19.Text = a117
Form46.Text5.Text = a118
Form46.Text25.Text = a119
Form46.Text11.Text = a120
Form46.Text26.Text = a121
Form46.Text12.Text = a70
Form46.Text33.Text = a123
Form46.Text32.Text = a124
Form46.Text40.Text = a125
Form46.Text39.Text = a126
Form46.Text46.Text = a127
Form46.Text47.Text = a128
Form46.Text115.Text = a129
Form46.Text58.Text = a130
Form46.Text54.Text = a131
p1 = grs.Fields(52).Value
p2 = grs.Fields(128).Value
p3 = Val(p1) - Val(p2)
If p3 = "0" Then
Form46.Text116.Text = ""
Else
Form46.Text116.Text = p3
End If
End If
grs.MoveNext
Next
grs.Close
End If
Next
Dim msql, msql1, msql2 As String
Form46.ListView1.ListItems.Clear
msql6 = "select 单位名称,工程编号, 时间,总计累计 from 定线 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 竣工 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 地籍 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 松北 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 计划内 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%'"
msql = msql6 & "UNION ALL select 单位名称,工程编号, 时间,总计累计 from 零星验字工程 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%' UNION ALL select 单位名称,工程编号, 时间,总计累计 from 建筑物位置测定 where 院长签字<>'0' and 实际回款金额='0' and 单位名称 like '%" & left(a1, 2) & "%'"
grs.CursorLocation = adUseClient
grs.Open msql, gconn, 1, 1
For i = 1 To grs.RecordCount
Form46.ListView1.ListItems.Add , , grs("单位名称").Value
Form46.ListView1.ListItems.Item(i).SubItems(1) = grs("工程编号").Value
Form46.ListView1.ListItems.Item(i).SubItems(2) = grs("时间").Value
Form46.ListView1.ListItems.Item(i).SubItems(3) = grs("总计累计").Value
grs.MoveNext
Next
grs.Close
Form46.ListView2.ListItems.Clear
msql1 = "select sp_rws_num, sp_fromman_dept,sp_fromman, sp_opinion,sp_posttime ,sp_xz from 流程记录 where sp_rws_num='" & splc & "'order by sp_posttime DESC"
grs.CursorLocation = adUseClient
grs.Open msql1, gconn, 1, 1
For i = 1 To grs.RecordCount
Form46.ListView2.ListItems.Add , , grs("sp_fromman_dept").Value
Form46.ListView2.ListItems.Item(i).SubItems(1) = grs("sp_fromman").Value
Form46.ListView2.ListItems.Item(i).SubItems(2) = grs("sp_opinion").Value
Form46.ListView2.ListItems.Item(i).SubItems(3) = grs("sp_posttime").Value
Form46.ListView2.ListItems.Item(i).SubItems(4) = grs("sp_xz").Value
grs.MoveNext
Next
grs.Close
Form46.Text40.Text = username
Form46.Show vbModal
Exit Sub
End If
Next
End Sub
Private Sub Timer1_Timer()
Dim i As Integer
i = i + 1
If i = 5 Then
Form45.ListView1.ListItems.Clear
For Each mytab In gcat.Tables
a = a + 1
lty11 = mytab.Name
lty12 = left(lty11, 2)
If lty12 <> "sy" And lty12 <> "dt" And lty12 <> "my" And lty12 <> "密码" And lty12 <> "流程" Then
grs.CursorLocation = adUseClient
grs.Open lty11, gconn, adOpenKeyset, adLockPessimistic
For n = 1 To grs.RecordCount
If grs.Fields(124).Value = "0" Then
b = b + 1
Form45.ListView1.ListItems.Add , , grs.Fields(0).Value
Form45.ListView1.ListItems.Item(b).SubItems(1) = grs.Fields(1).Value
Form45.ListView1.ListItems.Item(b).SubItems(2) = grs.Fields(2).Value
Form45.ListView1.ListItems.Item(b).SubItems(3) = grs.Fields(52).Value
Form45.ListView1.ListItems.Item(b).SubItems(4) = grs.Fields(53).Value
End If
grs.MoveNext
Next
grs.Close
End If
Next
If Form45.ListView1.ListItems.Count <> "0" Then
Form45.ListView1.ListItems(Form45.ListView1.ListItems.Count).Selected = True
Form45.ListView1.SelectedItem.EnsureVisible
Form45.ListView1.Refresh
End If
i = 0
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -