ygkqbt.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GongZi.GongZiClass;
/// download by http://www.codefans.net
namespace GongZi
{
public partial class ygkqbt : Form
{
public ygkqbt()
{
InitializeComponent();
}
DBOperate operate = new DBOperate();//创建数据库操作对象
public string Ydate;//声明字段
private void frmUserKqManage_Load(object sender, EventArgs e)
{
operate.BindDropdownlist("tb_employee",cbbYnum,1);
for (int i = 1; i <= 12; i++)
{
toolStripComboBox1.Items.Add(i+"月");//添加月份
}
}
private void cbbYnum_SelectedIndexChanged(object sender, EventArgs e)
{
string id = cbbYnum.Text;//得到ID信息
string sql =//创建SQL字符串
"select * from tb_employee where employeeID='" + id + "'";
DataSet ds = operate.GetTable(sql);//得到数据集
ds.Dispose();//释放资源
txtYname.Text = ds.Tables[0].Rows[0][2].ToString();//得到姓名信息
txtYsex.Text = ds.Tables[0].Rows[0][3].ToString();//得到性别信息
txtYdep.Text = ds.Tables[0].Rows[0][4].ToString();//得到部门信息
txtYzhiwu.Text = ds.Tables[0].Rows[0][8].ToString();//得到职务信息
txtYbasepay.Text = ds.Tables[0].Rows[0][12].ToString();//得到基本工资信息
switch (txtYzhiwu.Text)
{
case "总经理": txtYjintie.Text = "500"; break;//判断津贴
case "副总经理": txtYjintie.Text = "400"; break;//判断津贴
case "项目经理": txtYjintie.Text = "300"; break;//判断津贴
case "部门经理": txtYjintie.Text = "200"; break;//判断津贴
case "程序员": txtYjintie.Text = "100"; break;//判断津贴
case "文员"://判断津贴
case "后勤": txtYjintie.Text = "50"; break;//判断津贴
}
string sql1 =//创建SQL字符串
"select * from tb_prize where UserID='"+id+"'";
DataSet ds1 = operate.GetTable(sql1);//得到数据集
ds.Dispose();//释放资源
string str =//创建SQL字符串
"select count(*) from tb_prize where UserID='" + id + "'";
int i = operate.HumanNum(str);//获取记录数量
if (i > 0)
{
if (ds1.Tables[0].Rows[0][8].ToString().Substring(6, 1) == Ydate)
后面还有 106 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。