网站地图| 免费获取|
毕业论文网
  • 网站首页|
  • 论文范文|
  • 论文降重|
  • 职称论文发表|
  • 合作期刊|
  • 论文下载|
  • 计算机论文|
  • 外文翻译|
  • 免费论文|
  • 论文资料|
  • 论文开题报告
搜索

当前位置:毕业论文网 -> 免费论文 -> 计算机论文 -> 电子教务管理系统vb(四)
计算机论文资料| ASP设计| Delphi| VB设计| JSP设计| ASP.NET设计| VB.NET| java设计| VC| pb| VS| dreamweaver| c#.net| vf| VC++| 计算机论文范文| 论文下载| 自动化论文

电子教务管理系统vb(四)

最新活动:微信集50个赞就可获取任意一篇钻石会员文档。详情见微信集赞换文档
电子教务管理系统vb(四) e
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = False
Command7.Enabled = True
Command8.Enabled = False
Command9.Enabled = False
Command13.Enabled = False
For i = 0 To 8
 txtcj(i).Enabled = True
 txtcj(i).Text = ""
Next i
End Sub

Private Sub Command9_Click()
On Error GoTo err
    For i = 0 To 8
       If Trim(txtcj(i).Text) > Text3.Text * 1 Then
          MsgBox "成绩大于预定值!", , "成绩第" & i + 1 & "项错误"
          Exit Sub
       End If
    Next i
txtcj(9).Text = txtcj(0) * 1 + txtcj(1) * 1 + txtcj(2) * 1 + txtcj(3) * 1 + txtcj(4) * 1 + txtcj(5) * 1 * (Text2.Text * 1) + txtcj(6) * 1 * (Text2.Text * 1) + txtcj(7) * 1 * (Text2.Text * 1) + txtcj(8) * 1 * (Text2.Text * 1)
If AddFlg = False Then
Rs1.Open "select 语文,数学,英语,物理,化学,政治,历史,地理,生物,总分 from 成绩表 where 考试号='" & Trim(KSH.Caption) & "' and 考试性质='" & Text1.Text & "'", Con, adOpenStatic, adLockPessimistic, adCmdText
   Rs1!语文 = Trim(txtcj(0).Text)
   Rs1!数学 = Trim(txtcj(1).Text)
   Rs1!英语 = Trim(txtcj(2).Text)
   Rs1!物理 = Trim(txtcj(3).Text)
   Rs1!化学 = Trim(txtcj(4).Text)
   Rs1!政治 = Trim(txtcj(5).Text) * 1 * (Text2.Text * 1)
   Rs1!历史 = Trim(txtcj(6).Text) * 1 * (Text2.Text * 1)
   Rs1!地理 = Trim(txtcj(7).Text) * 1 * (Text2.Text * 1)
   Rs1!生物 = Trim(txtcj(8).Text) * 1 * (Text2.Text * 1)
   Rs1!总分 = Trim(txtcj(9).Text)
   Rs1.UpdateBatch adAffectAllChapters
   SBar1.Panels.Item(1) = "修改成功保存!"
 
Rs1.Close
Else
  
   CmdExe.ActiveConnection = Con
   CmdExe.CommandText = "insert into 成绩表(考试号,语文,数学,英语,物理,化学,政治,历史,地理,生物,总分,考试性质) values " & "(" & KSH.Caption & "," & txtcj(0).Text & "," & txtcj(1).Text & "," & txtcj(2).Text & "," & txtcj(3).Text & "," & txtcj(4).Text & "," & txtcj(5).Text * 1 * (Text2.Text * 1) & "," & txtcj(6).Text * 1 * (Text2.Text * 1) & "," & txtcj(7).Text * 1 * (Text2.Text * 1) & "," & txtcj(8).Text * 1 * (Text2.Text * 1) & "," & txtcj(9).Text & ",'" & Text1.Text & "')"
   CmdExe.Execute
   SBar1.Panels.Item(1) = "添加成功保存!"
   iCount = iCount + 1
End If
Label3.Caption = "共添加" & iCount & "条记录"

rs.MoveNext
If List1.ListIndex + 1 < List1.ListCount Then
 List1.ListIndex = List1.ListIndex + 1
End If

Display

Exit Sub
err:
Call ExecErr(Date, Me.Caption, err.Number, err.Source, err.Description)
End Sub

Private Sub Form_Load()
AddFlg = False
iCount = 0
Set rs = New ADODB.Recordset
Set Rs1 = New ADODB.Recordset
Set CmdExe = New ADODB.Command

Dim rsbj As ADODB.Recordset
Set rsbj = New ADODB.Recordset
    rsbj.Open "班级表", Con, adOpenStatic, adLockPessimistic, adCmdTable
   
    Combo1.Clear
    Do While Not rsbj.EOF
        Combo1.AddItem rsbj!班级
        rsbj.MoveNext
    Loop
 &n

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

电子教务管理系统vb(四)由毕业论文网(www.huoyuandh.com)会员上传。
原创论文资料流程 相关论文
上一篇:公交车查询系统+vb 下一篇:VB+教学辅助系统
推荐论文 本专业最新论文
Tags:电子 教务 管理系统 access 文档 外文 翻译 开题 报告 答辩 ppt 源代码 2010-04-23 19:41:05【返回顶部】
精彩推荐
发表论文

联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士论文资料


毕业论文网提供论文范文,论文代发,原创论文资料

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

Copyright@ 2009-2020 毕业论文网 版权所有