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

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

商场管理系统——数据库设计与人事管理模块(五)

If ra.State = adStateOpen Then
  ra.Close
End If

If (Text6.Text = "") Or (Text12.Text = "") Or (Text14.Text = "") Then
      MsgBox ("请填写所有信息")
    Exit Sub
End If

str1 = Text12.Text
If (IsNumeric(str1) = False) Then
   MsgBox ("输入编号格式有错误")
Exit Sub
End If
 
If str1 > 99999999 Or str1 < 1 Then
   MsgBox ("输入编号格式有错误")
Exit Sub
End If

str2 = Text14.Text
    If (IsNumeric(str2) = False) Then
    MsgBox ("输入工资有错误")
    Exit Sub
    End If
 
If str2 > 9999 Or str2 < 400 Then
   MsgBox ("输入工资有错误")
Exit Sub
End If

rd.Open "SELECT * FROM 人事 where (编号 = '" & Text12.Text & "') and  (姓名 ='" & Text6.Text & "')", db, adOpenStatic, adLockOptimistic
If rd.BOF = True Or rd.EOF = True Then
   MsgBox ("输入信息不相符")
   Exit Sub
Else: ra.Open "delete FROM 工资 where (编号 = '" & Text12.Text & "') and  (姓名 ='" & Text6.Text & "') ", db, adOpenStatic, adLockOptimistic
End If

rb.Open "SELECT *  FROM 工资 ", db, adOpenStatic, adLockOptimistic
   rb.AddNew
   rb("姓名") = Text6.Text
   rb("编号") = Text12.Text
   rb("工资数额") = Text14.Text
   rb("日期") = Year(Date) & "-" & Month(Date) & "-" & Day(Date)
   rb.Update
   rb.Close
  
rb.Open "SELECT *  FROM 工资 ", db, adOpenStatic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rb

   Text6.Text = ""
   Text12.Text = ""
   Text14.Text = ""
 
End Sub

Private Sub Command4_Click()
Text6.Text = ""
Text12.Text = ""
Text14.Text = ""
End Sub

Private Sub Command5_Click()
Dim num As Long

If rd.State = adStateOpen Then
  rd.Close
End If

If rb.State = adStateOpen Then
  rb.Close
End If

If ra.State = adStateOpen Then
  ra.Close
End If

If (Text1.Text = "") Or (Text9.Text = "") Or (Text5.Text = "") Or (Text7.Text = "") Or (Combo1.Text = "") Or (Text7.Text = "") Or (Combo1.Text = "") Or (Combo2.Text = "") Or (Combo3.Text = "") Or (Combo4.Text = "") Or (Combo5.Text = "") Or (Combo6.Text = "") Or (Combo7.Text = "") Or (Combo8.Text = "") Or (Combo9.Text = "") Or (Combo10.Text = "") Then
      MsgBox ("请填写所有信息")
    Exit Sub
End If
str1 = Text7.Text
    If (IsNumeric(str1) = False) Then
    MsgBox ("输入编号格式有错误")
    Exit Sub
    End If
 
If str1 > 99999999 Or str1 < 10000000 Then
   MsgBox ("输入编号格式有错误")
Exit Sub
End If

If (Combo8.Text - Combo5.Text) < 19 Then
   MsgBox ("您的年龄输入有错误")
   Exit Sub
End If

rd.Open "SELECT * FROM 人事 where 编号 = '" & Text7.Text & "'", db, adOpenStatic, adLockOptimistic
If rd.BOF = False Or rd.EOF = False Then
   MsgBox ("此编号已存在")
   Exit Sub
End If

ra.Open "delete FROM 人事  where (编号 = '" & cnum & "') and (姓名 ='" & cname & "') ", db, adOpenStatic, adLockOptimistic

rb.Open "SELECT *  FROM 人事 ", db, adOpenStatic, adLockOptimistic
  rb.AddNew
  rb("姓名") = Text1.Text
  rb("性别") = Combo1.Text
  rb("编号") = Text7.Text
  rb("学历") = Combo4.Text
  rb("部门名称") = Combo3.Text
  rb("岗位") = Text9.Text
  rb("工作性质") = Combo2.Text
  rb("出生日期") = Combo5.Text & "-" & Combo6.Text & "-" & Combo7.Text
  rb("工作时间") = Combo8.Text & "-" & Combo9.Text & "-" & Combo10.Text
  rb("联系方式") = Text5.Text
  rb.Update
  rb.Close
  
   Text1.Text = ""
   Text5.Text = ""
   Text7.Text = ""
   Text9.Text = ""
Form2.Text1.Text = ""
Form2.Text2.Text = ""
End Sub

Private Sub Command6_Click()
Dim Y As Long

If rd.State = adStateOpen Then
  rd.Close
End If

If (Text6.Text = "") Or (Text12.Text = "") Then
      MsgBox ("请填写姓名与编号")
    Exit Sub
End If

str1 = Text12.Text
If (IsNumeric(str1) = False) Then
   MsgBox ("输入编号格式有错误")
Exit Sub
End If
 
If str1 > 99999999 Or str1 < 1 Then
   MsgBox ("输入编号格式有错误")
Exit Sub
End If

rd.Open "SELECT * FROM 工资 where (编号 = '" & Text12.Text & "') and  (姓名 ='" & Text6.Text & "') ", db, adOpenStatic, adLockOptimistic
If rd.BOF = True Or rd.EOF = True Then
   MsgBox ("输入信息不相符,不能删除")
   Exit Sub
Else: Form5.Show
End If

End Sub

Private Sub data1_Click()
Form3.Show
End Sub

Private Sub data3_Click()
Form2.Show
End Sub


Private Sub data2_Click()
info.Enabled = False
member.Enabled = False
salary.Enabled = False
data1.Enabled = True
Frame1.Visible = False
Frame4.Visible = False
Frame2.Visible = False
End Sub

Private Sub data4_Click()
End
End Sub

Private Sub Form_Load()
info.Enabled = True
member.Enabled = True
salary.Enabled = True
Frame1.Visible = False
Frame4.Visible = True
Frame2.Visible = False
If rd.State = adStateOpen Then
rd.Close
End If
rd.Open "SELECT * FROM 人事表单", db, adOpenStatic, adLockOptimistic
Set MSHFlexGrid4.DataSource = rd
End Sub

Private Sub Form_Unload(Cancel As Integer)
    db.Close
End Sub

Private Sub info1_Click()
Frame1.Visible = False
Frame4.Visible = True
Frame2.Visible = False
If rd.State = adStateOpen Then
rd.Close
End If
rd.Open "SELECT * FROM 人事表单", db, adOpenStatic, adLockOptimistic
Set MSHFlexGrid4.DataSource = rd
End Sub

Private Sub info2_Click()
Frame1.Visible = False
Frame4.Visible = True
Frame2.Visible = False
form6.Show
End Sub

Private Sub mem1_Click()
Frame1.Visible = False
Frame4.Visible = False
Frame2.Visible = False
Command1.Visible = False
Form2.Show
Form2.Command3.Visible = True
Form2.Command1.Visible = False
End Sub
Private Sub mem2_Click()
Frame1.Visible = False
Frame4.Visible = False
Frame2.Visible = False
Form2.Show
Form2.Command1.Visible = True
Form2.Command3.Visible = False
End Sub

Private Sub member3_Click()
Frame1.Visible = True
Frame4.Visible = False
Frame2.Visible = False
Command5.Visible = False
Command1.Visible = True
End Sub

Private Sub salary_Click()
Frame1.Visible = False
Frame2.Visible = True
Frame4.Visible = False
If rd.State = adStateOpen Then
rd.Close
End If
rd.Open "SELECT * FROM 工资表单", db, adOpenStatic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rd
End Sub

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

相关论文
上一篇:基于JSP的360教育在线网站 下一篇:基于互联网的网上考勤系统
推荐论文 本专业最新论文
Tags:商场 管理系统 数据库 设计 人事管理 模块 【返回顶部】

相关栏目

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


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

 

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

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

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