网站地图
范文同学网


自动化 模具 机械 电子 通信 动画 英语范文 工程管理 金融范文 旅游管理 工业工程 生物工程 给排水范文 西门子PLC 历史学 三菱PLC
单片机 财务 会计 法律 行政 物理 物流范文 电子商务 制药工程 包装工程 土木工程 材料科学 汉语言范文 欧姆龙PLC 电压表 松下PLC
计算机 化工 数电 工商 食品 德语 国贸范文 人力资源 教育管理 交通工程 市场营销 印刷工程 机电一体化 数控范文 变电站 文化产业

  • 网站首页|
  • 文档范文|
  • 人工降重|
  • 职称文章发表|
  • 合作期刊|
  • 范文下载|
  • 计算机范文|
  • 外文翻译|
  • 免费范文|
  • 原创范文|
  • 开题报告

联系方式

当前位置:范文同学网 -> 免费范文 -> 计算机范文 -> 商场管理系统——数据库设计与人事管理模块(五)
计算机文章范文| ASP设计| Delphi| VB设计| JSP设计| ASP.NET| VB.NET| java设计| VC| pb| VS| dreamweaver| c#.net| vf| VC++| 计算机文档范文| 范文下载| 自动化范文
·电气自动化原创文章范文 ·学前教育专业原创文章范文 ·国际经济贸易原创文章范文 ·药学专业原创文章范文 ·英语专业原创文章范文 ·公共事业管理原创文章范文
·金融专业原创文章范文 ·广播电视编导原创文章范文 ·电子商务专业原创文章范文 ·法律专业原创文章范文 ·工商管理原创文章范文 ·汉语言文学原创文章范文
·人力资源管理原创文章范文 ·摄影专业原创文章范文 ·心理学专业原创文章范文 ·教育管理原创文章范文 ·市场营销原创文章范文 ·计算机专业原创文章范文
·物流管理专业原创文章范文 ·小学教育专业原创文章范文 ·行政管理专业原创文章范文 ·土木工程管理原创文章范文 ·财务会计专业原创文章范文 ·信息管理信息系统原创范文
·新闻学专业原创文章范文 ·眼视光技术原创文章范文 ·播音与主持原创文章范文 ·广告学专业原创文章范文 ·表演专业原创文章范文 ·动画专业原创文章范文
·视觉传达设计原创文章范文 ·数控技术专业原创文章范文 ·录音艺术原创文章范文 ·光机电应用技术原创范文 ·机电一体化原创文章范文 ·印刷技术专业原创文章范文
·动漫设计与制作原创范文 ·软件技术专业原创文章范文 ·书法学专业原创文章范文 ·应用电子技术原创文章范文 ·电子信息工程技术原创范文 ·机械专业原创文章范文
·酒店管理专业原创文章范文 ·旅游管理专业原创文章范文 ·文化产业管理专业原创范文 ·体育教育专业原创文章范文 ·通信工程专业原创文章范文 ·护理专业原创文章范文

原创文档范文 → 计算机专业原创文档范文 软件技术专业原创文档范文  现成文档范文 → 计算机文档范文

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

本文ID:LW13429 ¥
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 <..

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教育在线网站 下一篇:基于互联网的网上考勤系统
点击查看关于 商场 管理系统 数据库 设计 人事管理 模块 的相关范文题目 【返回顶部】
精彩推荐
电气工程自动化原创范文  电子商务原创文章范文
人力资源专业原创文章范文 土木工程原创文章范文
工商管理专业原创范文    药学专业原创范文
汉语言文学专业原创范文  会计专业原创文章范文
计算机技术原创文章范文  金融学原创文章范文
法学专业原创文章范文   市场营销专业原创范文
信息管理专业原创文章范文 学前教育专业原创范文
公共事业管理专业原创范文 英语专业原创范文
教育管理专业原创范文   行政管理专业原创范文
热门范文

关于我们 | 联系方式 | 范文说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士文章范文


范文同学网提供文档范文,原创文章范文,网站永久域名www.lunwentongxue.com ,lunwentongxue-范文同学网拼音首字母组合

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

Copyright@ 2009-2024 范文同学网 版权所有