Song.Site/Manage/SOAP/Employee.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 System.Xml;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
namespace Song.Site.Manage.SOAP
{
/// <summary>
/// Depart 的摘要说明
/// </summary>
[WebService(Namespace = "http://yuefan.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class Employee : System.Web.Services.WebService
{
[WebMethod]
//获取所有在职员工
public Song.Entities.EmpAccount[] Employees()
{
int orgid = Extend.LoginState.Admin.CurrentUser.Org_ID;
return Business.Do<IEmployee>().GetAll(orgid, -1, true, "");
}
[WebMethod]
//获取某部门所有在职员工
public Song.Entities.EmpAccount[] Emp4Depart(int depid)
{
int orgid = Extend.LoginState.Admin.CurrentUser.Org_ID;
return Business.Do<IEmployee>().GetAll(orgid, depid, true, null);
}
[WebMethod]
//递交员工与角色的关联
public void UpdateEmp4Posi(string xml)
{
if (xml == "" || xml == null) return;
XmlDocument resXml = new XmlDocument();
xml = Server.UrlDecode(xml);
try
{
resXml.LoadXml(xml);
XmlNodeList nodeList = resXml.SelectSingleNode("nodes").ChildNodes;
//取rootid
XmlNode nodes = resXml.SelectSingleNode("nodes");
XmlElement xenodes = (XmlElement)nodes;
int posi = Convert.ToInt32(xenodes.Attributes["posi"].Value);
Business.Do<IPosition>().DeleteRelation4Emp(posi);
//遍历所有子节点
foreach (XmlNode xn in nodeList)
{
XmlElement xe = (XmlElement)xn;
后面还有 43 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
