免费获取|
论文天下网
  • 论文天下网 |
  • 原创毕业论文 |
  • 论文范文 |
  • 论文下载 |
  • 计算机论文 |
  • 论文降重 |
  • 毕业论文 |
  • 外文翻译 |
  • 免费论文 |
  • 开题报告 |
  • 心得体会 |

当前位置:论文天下网 -> 免费论文 -> 计算机论文

地籍登记管理系统+vb(五)

bsp;      End If
             If rs.Fields(j).Name = "抵押期限" Then
             Text4.Text = rs.Fields(j)
             End If
             If rs.Fields(j).Name = "抵押日期" Then
             DTPicker2.Value = rs.Fields(j)
             End If
         Next j
        End If
      End If
      Command1.Enabled = True
End If
bb:
 
End Sub


三:初始登记界面设计

初始界面代码设计:
Option Explicit
Public InitWidth As Long       ' Form 的原始大小
Public InitHeight As Long
Public flstype As Integer
Public zdhao1, zdhao As String
Public selrow As Integer


Private Sub Command1_Click()
Dim I As Integer
rs.AddNew

If flxGridhistory.TextMatrix(1, 1) = "" Then
MsgBox "宗地号不能为空!", vbInformation, "输入检查"
Else

For I = 0 To flxGridhistory.Rows - 2
flxGridhistory.Row = I + 1
selrow = flxGridhistory.Row
flstype = rs.Fields(selrow - 1).Type

Select Case flstype
Case 10
rs.Fields(I) = flxGridhistory.TextMatrix(I + 1, 1) & ""
Case 8
If flxGridhistory.TextMatrix(I + 1, 1) <> "" Then
rs.Fields(I) = flxGridhistory.TextMatrix(I + 1, 1)
Else
    rs.Fields(I) = DateSerial(1900, 1, 1)
End If
Case 6, 3, 4

If flxGridhistory.TextMatrix(I + 1, 1) <> "" Then
rs.Fields(I) = flxGridhistory.TextMatrix(I + 1, 1)
Else
rs.Fields(I) = 0
End If
End Select

Next I
On Error GoTo errordowith
rs.Update

On Error GoTo 0
db.Recordsets.Refresh

If flxGridhistory.TextMatrix(1, 1) = "" Then
Exit Sub
Else
MsgBox "入库完毕!"
zdhao = flxGridhistory.TextMatrix(1, 1)
End If


Command2.Enabled = True
Command1.Enabled = False

End If


Exit Sub

errordowith:
MsgBox "有重复数据!!!"


End Sub


Private Sub Command2_Click()
rs.FindFirst ("宗地号 = '" & zdhao & "'")
rs.Delete
Dim j As Integer
For j = 1 To flxGridhistory.Rows - 1
flxGridhistory.TextMatrix(j, 1) = ""
Next j
Command2.Enabled = False
End Sub

Private Sub Command3_Click()

Unload Me
frmdengji.Show

End Sub

Private Sub Command4_Click()
Dim j, m As Integer
If flxGridhistory.TextMatrix(1, 1) = "" Then
     
  MsgBox "宗地号不能为空,请重新输入!", vbOKOnly + vbInformation, "输入检查"
Else
 
  'zdhao = flxGridhistory.TextMatrix(1, 1)
  rs.FindFirst ("宗地号 = '" & zdhao1 & "'")


On Error GoTo 0

End Sub


Private Sub Form_Resize()
Dim D(4) As Double
Dim I As Long
Dim TempPos As Long
Dim StartPos As Long
Dim Ctl As Control
Dim TempVisible As Boolean
Dim ScaleX As Double
Dim ScaleY As Double

ScaleX = ScaleWidth / InitWidth
ScaleY = ScaleHeight / InitHeight
On Error Resume Next
For Each Ctl In Me
    TempVisible = Ctl.Visible
    Ctl.Visible = False
    StartPos = 1
    ' 读取 Control 的原始位置、大小、字型大小
 &n

首页 上一页 2 3 4 5 6 下一页 尾页 5/6/6

相关论文
上一篇:车辆管理系统+vb 下一篇:电表管理系统VB
推荐论文 本专业最新论文
Tags:地籍 登记 管理系统 【返回顶部】

相关栏目

自动化相关
计算机论文
工程管理论文
法律论文
医学论文
人力资源
电子专业
电气工程
英语论文
行政管理
电子商务
社科文学
教育论文
物流专业
金融专业
财务管理
会计专业
化学化工材料科学
电子通信
环境科学
经济类
机械模具类
报告,总结,申请书
其他专业论文


关于我们 | 联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 原创毕业论文

 

论文天下网提供论文检测,论文降重,论文范文,论文排版,网站永久域名WWW.GEPUW.NET

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 893628136@qq.com

Copyright@ 2009-2022 GEPUW.NET 论文天下网 版权所有