App_Code/PersonMgr.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using System.Collections;
/// <summary>
/// 员工管理类
/// </summary>
public class PersonMgr
{
public PersonMgr()
{
}
#region 函数UpdatePerson | 更新Person信息
/// <summary>
/// 更新Person类信息
/// </summary>
/// <param name="person">员工管理类参数</param>
/// <returns>更新成功返回true 否则返回false</returns>
public bool UpdatePerson(Person person)
{
string strSQL = "";
SqlDataAdapter sa = null;
SqlCommandBuilder builder = null;
DataRow row = null;
DataTable dt = null;
bool returnValue = false;
if (person != null)
{
if (person.PersonID == "")
{
strSQL = "SELECT Top 0 * FROM Sys_Person";
}
else
{
strSQL = "SELECT Top 1 * FROM Sys_Person WHERE PersonID = '" + person.PersonID + "'";
}
dt = CMMgr.GetDataTable(strSQL);
if (dt.Rows.Count > 0)
{
row = dt.Rows[0];
}
else
{
row = dt.NewRow();
}
row["PersonID"] = person.PersonID;
row["PersonName"] = person.PersonName;
row["Password"] = person.Password;
row["Card"] = person.Card;
row["DeptID"] = person.Dept.DeptID;
row["Sex"] = person.Sex;
row["Birthday"] = person.Birtyday;
row["WorkDate"] = person.WorkDate;
后面还有 148 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。