Song.Site/API/Mobile.asmx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
namespace Song.Site.SOAP
{
/// <summary>
/// Mobile 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class Mobile : System.Web.Services.WebService
{
#region 通记录功能院系
/// <summary>
/// 通过手机号判断当前员工是否在职
/// </summary>
/// <param name="phone">员工的手机号,从手机中自动获取</param>
/// <param name="code">验证码</param>
/// <returns></returns>
[WebMethod]
public bool IsOnJob(string phone,string code)
{
if (!isVerify(code)) return false;
return Business.Do<IEmployee>().IsOnJob(phone);
}
///// <summary>
///// 通过员工手机号,获取员工信息
///// </summary>
///// <param name="phoneNumber">员工的手机号,从手机中自动获取</param>
///// <param name="code">验证码</param>
///// <returns></returns>
//[WebMethod]
//public Song.Entities.EmpAccount Employee(string phoneNumber, string code)
//{
// if (!isVerify(code)) return null;
// return Business.Do<IEmployee>().GetSingleByPhone(phoneNumber);
//}
/// <summary>
/// 获取所有在职员工
/// </summary>
/// <param name="code">验证码</param>
/// <returns></returns>
[WebMethod]
public Song.Entities.EmpAccount[] Employees(string code)
{
if (!isVerify(code)) return null;
int orgid = Extend.LoginState.Admin.CurrentUser.Org_ID;
Song.Entities.EmpAccount[] eas = null;
eas = Business.Do<IEmployee>().GetAll(orgid,-1,true, "");
foreach (Song.Entities.EmpAccount ea in eas)
后面还有 44 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
