色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

mysql人事管理系統(tǒng)源代碼

黃文隆2年前10瀏覽0評論

MySQL人事管理系統(tǒng)是一款基于MySQL數(shù)據(jù)庫的人力資源管理軟件,可以幫助企業(yè)和機構(gòu)為員工管理提供完整的解決方案,包括員工信息管理、薪酬福利管理、培訓(xùn)管理等。

數(shù)據(jù)庫表結(jié)構(gòu)如下:

CREATE TABLE `employee` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`gender` varchar(10) NOT NULL,
`birthday` date DEFAULT NULL,
`department` varchar(50) NOT NULL,
`position` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `salary` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`month` varchar(10) NOT NULL,
`employee_id` int(11) NOT NULL,
`basic_salary` decimal(10,2) NOT NULL,
`bonus` decimal(10,2) NOT NULL,
`tax` decimal(10,2) NOT NULL,
`pre_tax_salary` decimal(10,2) NOT NULL,
`after_tax_salary` decimal(10,2) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `training` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`topic` varchar(100) NOT NULL,
`employee_id` int(11) NOT NULL,
`start_time` datetime NOT NULL,
`end_time` datetime NOT NULL,
`type` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

系統(tǒng)源代碼如下:

function addEmployee(name, gender, birthday, department, position) {
var sql = "INSERT INTO employee (name, gender, birthday, department, position) VALUES (" 
+ name + "', '" + gender + "', '" + birthday + "', '" + department + "', '" + position + "')";
runSQL(sql);
}
function addSalary(month, employee_id, basic_salary, bonus, tax, pre_tax_salary, after_tax_salary) {
var sql = "INSERT INTO salary (month, employee_id, basic_salary, bonus, tax, pre_tax_salary, after_tax_salary) VALUES (" 
+ month + "', " + employee_id + ", " + basic_salary + ", " + bonus + ", " 
+ tax + ", " + pre_tax_salary + ", " + after_tax_salary + ")";
runSQL(sql);
}
function addTraining(topic, employee_id, start_time, end_time, type) {
var sql = "INSERT INTO training (topic, employee_id, start_time, end_time, type) VALUES (" 
+ topic + "', " + employee_id + ", '" + start_time + "', '" + end_time + "', '" + type + "')";
runSQL(sql);
}

以上是MySQL人事管理系統(tǒng)的核心代碼,它包含了添加員工、添加薪酬和添加培訓(xùn)的函數(shù)。它們將數(shù)據(jù)添加到相應(yīng)的數(shù)據(jù)庫表中,實現(xiàn)了對員工信息、薪酬福利和培訓(xùn)情況的管理。該系統(tǒng)具有簡單易用的特點,可供各種規(guī)模的企業(yè)和機構(gòu)使用。