Song.ServiceImpls/KnowledgeCom.cs
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using WeiSha.Common;
using Song.Entities;
using WeiSha.Data;
using Song.ServiceInterfaces;
using System.Xml;
using System.Data.Common;
namespace Song.ServiceImpls
{
public class KnowledgeCom : IKnowledge
{
#region IKnowledge 成员
public int KnowledgeAdd(Knowledge entity)
{
entity.Kn_CrtTime = DateTime.Now;
Song.Entities.Organization org = Business.Do<IOrganization>().OrganCurrent();
if (org != null)
{
entity.Org_ID = org.Org_ID;
entity.Org_Name = org.Org_Name;
}
return Gateway.Default.Save<Knowledge>(entity);
}
public void KnowledgeSave(Knowledge entity)
{
Gateway.Default.Save<Knowledge>(entity);
}
public void KnowledgeDelete(int identify)
{
Gateway.Default.Delete<Knowledge>(Knowledge._.Kn_ID == identify);
}
public Knowledge KnowledgeSingle(int identify)
{
return Gateway.Default.From<Knowledge>().Where(Knowledge._.Kn_ID == identify).ToFirst<Knowledge>();
}
public Knowledge KnowledgePrev(int couid, int kns, int id)
{
WhereClip wc = new WhereClip();
if (couid >= 0) wc.And(Knowledge._.Cou_ID == couid);
if (kns > 0) wc.And(Knowledge._.Kns_ID == kns);
return Gateway.Default.From<Knowledge>().OrderBy(Knowledge._.Kn_ID.Desc)
.Where(wc && Knowledge._.Kn_ID > id).ToFirst<Knowledge>();
}
public Knowledge KnowledgeNext(int couid, int kns, int id)
后面还有 287 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
