示例#1
0
文件: CSEvents.cs 项目: pcstx/OA
 /// <summary>
 /// Raises all BeforeGroup events. These events are raised before a group change is commited to the datastore
 /// </summary>
 public static void BeforeGroup(Group group, ObjectState state, ApplicationType appType)
 {
     CSApplication.Instance().ExecutePreSectionGroupUpdate(group,state,appType);
 }
示例#2
0
 public abstract int CreateUpdateDeleteGroup(Group group, DataProviderAction action);
示例#3
0
文件: CSApplication.cs 项目: pcstx/OA
 internal void ExecutePreSectionGroupUpdate(Group group, ObjectState state, ApplicationType appType)
 {
     CSGroupEventHandler handler = Events[EventPreSectionGroupUpdate] as CSGroupEventHandler;
     if (handler != null)
     {
         handler(group, new CSEventArgs(state,appType));
     }
 }
示例#4
0
        public static Group PopulateForumGroupFromIDataReader(IDataReader dr)
        {
            Group forumGroup               = new Group();
            forumGroup.GroupID             = (int) dr["GroupID"];
            forumGroup.Name                = (string) dr["Name"];
            forumGroup.NewsgroupName       = (string) dr["NewsgroupName"];
            forumGroup.SortOrder           = Convert.ToInt32(dr["SortOrder"]);
            forumGroup.ApplicationType     = (ApplicationType) (Int16) dr["ApplicationType"];

            return forumGroup;
        }
示例#5
0
文件: Group.cs 项目: pcstx/OA
 public object Clone()
 {
     Group g = new Group(this.name);
     g.Sections = this.sections;
     g.sortOrder = this.sortOrder;
     g.groupID = this.groupID;
     g._applicationType = this._applicationType;
     g.newsgroupName = this.newsgroupName;
     return g;
 }