示例#1
0
 public int NoteAdd(NewsNote entity)
 {
     entity.Nn_CrtTime = DateTime.Now;
     if (entity.Nn_Details != null)
     {
         if (entity.Nn_Details.Length > 255)
         {
             entity.Nn_Details = entity.Nn_Details.Substring(0, 255);
         }
     }
     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 <NewsNote>(entity));
 }
示例#2
0
 public void NoteSave(NewsNote entity)
 {
     Gateway.Default.Save <NewsNote>(entity);
 }