Ejemplo n.º 1
0
        public static SiteGroup SiteGroup(System.Data.IDataReader reader)
        {
            SiteGroup result = null;

            if (null != reader && reader.Read())
            {
                result = new SiteGroup();
                PopulateSiteGroup(result, reader);
            }

            return result;
        }
Ejemplo n.º 2
0
 public static void PopulateSiteGroup(SiteGroup input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.SiteGroupId = Utilities.ToInt(reader[Mimosa.Apartment.Common.SiteGroup.ColumnNames.SiteGroupId]);
     input.GroupName = Utilities.ToString(reader[Mimosa.Apartment.Common.SiteGroup.ColumnNames.GroupName]);
     input.CanDelete = Utilities.ToBool(reader[Mimosa.Apartment.Common.SiteGroup.ColumnNamesExtended.CanDelete]);
 }
Ejemplo n.º 3
0
 void gvwSiteGroup_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
 {
     SiteGroup newItem = new SiteGroup();
     newItem.CreatedBy = newItem.UpdatedBy = Globals.UserLogin.UserName;
     newItem.IsChanged = true;
     newItem.Sites = new List<Site>();
     e.NewObject = newItem;
 }