1
This commit is contained in:
@@ -7,8 +7,10 @@ using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using E_ZKEccSDK.Response;
|
||||
using E_ZKEccSDK.Request;
|
||||
using E_ZKEcc.Response;
|
||||
using E_ZKEcc.Request;
|
||||
using Kingdee.BOS;
|
||||
using System.Net.NetworkInformation;
|
||||
|
||||
namespace E_ZKEcc.Service
|
||||
{
|
||||
@@ -98,6 +100,36 @@ namespace E_ZKEcc.Service
|
||||
{
|
||||
return LeaveEmployee(pin, leavedate.ToString("yyyy-MM-dd HH:MM"), leavetype, reason);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 离职恢复
|
||||
/// </summary>
|
||||
/// <param name="userpin"></param>
|
||||
/// <returns></returns>
|
||||
public ResultDomian RestoreEmployee(string[] userpin)
|
||||
{
|
||||
_actionName = "restore";
|
||||
ResultDomian result;
|
||||
try
|
||||
{
|
||||
object data = new
|
||||
{
|
||||
userpin
|
||||
};
|
||||
|
||||
var dataJson = JsonConvert.SerializeObject(data, Formatting.None, _serializerSettings);
|
||||
|
||||
var resultJson = this.DoExecute(dataJson);
|
||||
|
||||
result = JsonConvert.DeserializeObject<ResultDomian>(resultJson);
|
||||
|
||||
return result;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
#endregion 人员离职
|
||||
|
||||
#region 获取人员信息
|
||||
|
||||
Reference in New Issue
Block a user