📄 form21.frm
字号:
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 = username
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
Form22.Text1.Text = a1
Form22.Text2.Text = a2
Form22.Text3.Text = a3
Form22.Combo1.Text = a4
Form22.Combo2.Text = a5
Form22.Text6.Text = a6
Form22.Text7.Text = a7
Form22.Text8.Text = a8
Form22.Text9.Text = a9
Form22.Text10.Text = a10
Form22.Combo3.Text = a11
Form22.Combo4.Text = a12
Form22.Text13.Text = a13
Form22.Text14.Text = a14
Form22.Text15.Text = a15
Form22.Text16.Text = a16
Form22.Text17.Text = a17
Form22.Combo5.Text = a18
Form22.Combo6.Text = a19
Form22.Text20.Text = a20
Form22.Text21.Text = a21
Form22.Text22.Text = a22
Form22.Text23.Text = a23
Form22.Text24.Text = a24
Form22.Combo7.Text = a25
Form22.Combo8.Text = a26
Form22.Text27.Text = a27
Form22.Text28.Text = a28
Form22.Text29.Text = a29
Form22.Text30.Text = a30
Form22.Text31.Text = a31
Form22.Combo9.Text = a32
Form22.Combo10.Text = a33
Form22.Text34.Text = a34
Form22.Text35.Text = a35
Form22.Text36.Text = a36
Form22.Text37.Text = a37
Form22.Text38.Text = a38
Form22.Combo11.Text = a39
Form22.Combo12.Text = a40
Form22.Text41.Text = a41
Form22.Text42.Text = a42
Form22.Text43.Text = a43
Form22.Text44.Text = a44
Form22.Text45.Text = a45
Form22.Combo13.Text = a46
Form22.Combo14.Text = a47
Form22.Text48.Text = a48
Form22.Text49.Text = a49
Form22.Text50.Text = a50
Form22.Text51.Text = a51
Form22.Text52.Text = a52
Form22.Text53.Text = a53
Form22.Combo19.Text = a54
Form22.Text55.Text = a55
Form22.Text56.Text = a56
Form22.Text57.Text = a57
Form22.Combo20.Text = a58
Form22.Text59.Text = a59
Form22.Text60.Text = a60
Form22.Text61.Text = a61
Form22.Text62.Text = a62
Form22.Text63.Text = a63
Form22.Text64.Text = a64
Form22.Text65.Text = a65
Form22.Text66.Text = a66
Form22.Text67.Text = a67
Form22.Text68.Text = a68
Form22.Text69.Text = a69
Form22.Text70.Text = a70
Form22.Combo15.Text = a71
Form22.Combo16.Text = a72
Form22.Text73.Text = a73
Form22.Text74.Text = a74
Form22.Text75.Text = a75
Form22.Text76.Text = a76
Form22.Text77.Text = a77
Form22.Combo17.Text = a78
Form22.Combo18.Text = a79
Form22.Text80.Text = a80
Form22.Text81.Text = a81
Form22.Text82.Text = a82
Form22.Text83.Text = a83
Form22.Text84.Text = a84
Form22.Combo21.Text = a85
Form22.Text86.Text = a86
Form22.Text87.Text = a87
Form22.Text88.Text = a88
Form22.Text89.Text = a89
Form22.Combo22.Text = a90
Form22.Text91.Text = a91
Form22.Text92.Text = a92
Form22.Text93.Text = a93
Form22.Text94.Text = a94
Form22.Combo23.Text = a95
Form22.Text96.Text = a96
Form22.Text97.Text = a97
Form22.Text98.Text = a98
Form22.Text99.Text = a99
Form22.Combo24.Text = a100
Form22.Text101.Text = a101
Form22.Text102.Text = a102
Form22.Text103.Text = a103
Form22.Text104.Text = a104
Form22.Combo25.Text = a105
Form22.Text106.Text = a106
Form22.Text107.Text = a107
Form22.Text108.Text = a108
Form22.Text109.Text = a109
Form22.Combo26.Text = a110
Form22.Text111.Text = a111
Form22.Text112.Text = a112
Form22.Text113.Text = a113
Form22.Text114.Text = a114
Form22.Text18.Text = a115
Form22.Text4.Text = a116
Form22.Text19.Text = a117
Form22.Text5.Text = a118
Form22.Text25.Text = a119
Form22.Text11.Text = a120
Form22.Text26.Text = a121
Form22.Text12.Text = a70
Form22.Text33.Text = a123
Form22.Text32.Text = a124
Form22.Text40.Text = a125
Form22.Text39.Text = a126
Form22.Text46.Text = a127
Form22.Text47.Text = a128
Form22.Text115.Text = a129
Form22.Text58.Text = a130
Form22.Text54.Text = a131
Else
l = l + 1
End If
End If
grs.MoveNext
Next
End If
Next
grs.Close
Dim msql, msql1, msql2, msql3, msql4, msql5, msql6 As String
Form22.ListView1.ListItems.Clear
msql = "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) & "%' 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
Form22.ListView1.ListItems.Add , , grs("单位名称").Value
Form22.ListView1.ListItems.Item(i).SubItems(1) = grs("工程编号").Value
Form22.ListView1.ListItems.Item(i).SubItems(2) = grs("时间").Value
Form22.ListView1.ListItems.Item(i).SubItems(3) = grs("总计").Value
grs.MoveNext
Next
grs.Close
Form22.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
Form22.ListView2.ListItems.Add , , grs("sp_fromman_dept").Value
Form22.ListView2.ListItems.Item(i).SubItems(1) = grs("sp_fromman").Value
Form22.ListView2.ListItems.Item(i).SubItems(2) = grs("sp_opinion").Value
Form22.ListView2.ListItems.Item(i).SubItems(3) = grs("sp_posttime").Value
Form22.ListView2.ListItems.Item(i).SubItems(4) = grs("sp_xz").Value
grs.MoveNext
Next
grs.Close
If l = 0 Then
Form22.Show vbModal
Else
MsgBox "不能修改该数据,没有领导批示或财务部已收款或数据录入权属不同!", vbInformation, "提示"
For p = 1 To Form21.ListView1.ListItems.Count
Form21.ListView1.ListItems.Item(p).Checked = False
Next
End If
End Sub
Private Sub Picture2_Click()
Dim i, j, m, n, p, k As Integer
Dim a As String
Dim c, MyPos, MyPos1 As Integer
Dim c1, c2, c3, c4, c5, SearchString, SearchChar As String
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
m = 0
k = 0
For i = 1 To Form21.ListView1.ListItems.Count
If Form21.ListView1.ListItems.Item(i).Checked = True Then
m = m + 1
normalstring(m) = Form21.ListView1.ListItems.Item(i).ListSubItems(1)
End If
Next
If m = 0 Then
MsgBox "请选择要删除的数据!", vbInformation, "提示"
Exit Sub
End If
Msg = "是否删除该数据" ' 定义信息。
Style = vbYesNo + vbInformation + vbDefaultButton2 ' 定义按钮。
Title = "提示" ' 定义标题。
Help = "DEMO.HLP" ' 定义帮助文件。
Ctxt = 1000 ' 定义标题
' 上下文。
' 显示信息。
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' 用户按下“是”。
' MyString = "Yes" ' 完成某操作。
If m > 0 Then
For j = 1 To m
grs.CursorLocation = adUseClient
grs.Open biaoming, gconn
For i = 1 To grs.RecordCount
If normalstring(j) = grs.Fields(1).Value And username = grs.Fields(120).Value Then '总共125个字段
If grs.Fields(122).Value = 0 Then
MyPos1 = 1
End If
If grs.Fields(114).Value = 0 And grs.Fields(116).Value = 0 And grs.Fields(118).Value = 0 And grs.Fields(126).Value = 0 Then
MyPos = 1
End If
If grs("depart").Value = "11" Then
MyPos = 1
End If
If MyPos <> 0 And MyPos1 <> 0 Then
k = k + 1
grs.Delete
End If
End If
grs.MoveNext
Next
grs.Close
Next
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -