管理信息系统分析与设计初稿 下载本文

Call GBSJK lyons = lyons + 1 Exit Sub End If

YHMC = RS(\用户名\YHMM = RS(\密码\RS.Close Set RS = Nothing Call GBSJK Unload Me 主窗口.Show End Sub

Private SubCommand2_Click() Dim anw As Intege

ranw = MsgBox(\确定要退出系统吗?\vbYesNo, \请问\If anw = 6 Then Unload Me Else

Text1.Text = \End If End Sub

Private SubCommand3_Click() Unload Me 启动窗口.Show End Sub

Private Sub Form_Load() Me.Caption = DLQX1 & \登入\

Label4(1).Caption = DLQX1 & \登入\Label4(2).Caption = \人力资源管理信息系统\

Label1.Caption = DLQX1 & \名称:\Label2.Caption = DLQX1 & \密码:\zong = 0 Text1.Text = \Text2.Text = \End Sub

2.考聘薪酬部分代码 public:

int nume() {return(num);} string nam(){return(name);} char showsex() {return(sex);} int showage() {return(age);}

protected:

int num; string name; char sex; int age; int wage;};

class Manager:public Employee {public:

Manager() {wage=8000;} int

managerwage()

{return(wage);}

void set_in()

{ cout<<\姓名:\

cin>>name;

- 30 -

cout<

int worktime;};

Salesmanager:public

class Employee {public:

cin>>sex;

cout<>age; cout<

Salesmanager() {allsale=0;}

void set_in()

{cout<<\员工的编号:\

cin>>num; cout<>name; cout<

class Technician:public Employee {public:

void set_in()

{cout<<\技术员的编号:\

cin>>num; cout<>name; cout<

cin>>sex;

cout<>age; cout<

cin>>sex;

}

int get_wage()

cout<>age; cout<>worktime; cout<

int get_wage() {return

(5000+allsale*0.005);}

{return (worktime*100);} protected:

- 31 -