工资管理系统数据图_工资管理系统实训报告_工资管理系统需求规格说明书(54)

电脑杂谈  发布时间:2017-02-09 18:12:37  来源:网络整理

} } /*<-------------删除职工信息---------->*/ public static bool DeleteZG(string zgxx) { if (DAL.职工sever.delete(zgxx) >

0) { return true;

}16 else { return false;

} } public static List<职工表>

getall() { return DAL.职工sever.getall();

} public static List<职工表>

search(string name) { return DAL.职工sever.search(name);

职工表 ss = new 职工表();

职工sever dd = new 职工sever();

} 2、考勤manager类:

/*<-------------增加考勤信息---------->*/ public static bool add(考勤表 model) { if (考勤sever.add(model) >

0) { return true;

} else { return false;

} } /*<-------------删除考勤信息---------->*/ public static bool DeleteKQ(string kqxx) { if (DAL.考勤sever.delete(kqxx) >

0) { return true;

} else { return false;

} } public static List<考勤表>

getall() { return DAL.考勤sever.getall();

} public static List<考勤表>

search(string name1) { return DAL.考勤sever.search(name1);

}}17 4.4 界面设计及实现4.4.1 职工信息查询界面及代码此界面用于实现对职工信息的查询以及跳转到主窗体和更改职工信息界面。

程序代码 如下:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Data.SqlClient;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace show { public partial class 职工信息查询 : Form { public 职工信息查询() { InitializeComponent();

} private void button1_Click(object sender, EventArgs e) { string name;

name = "";

name = textBox1.Text.Trim().ToString();

dataGridView1.DataSource = BLL.职工manager.search(name);

} private void 职工信息查询_Load(object sender, EventArgs e) { dataGridView1.DataSource = BLL.职工manager.getall();


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-31446-54.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 韦元旦
      韦元旦

      所以他只能干一些耍无赖撒泼的事情

    • 阎宽
      阎宽

      为什么要彼此伤害

    热点图片
    拼命载入中...