public SysOrganizationTypeBO(SysOrganizationType otype) { this.ID = otype.ID; this.Name = otype.Name; this.OrganizationID = otype.OrganizationID; this.IsEnabled = otype.IsEnabled; this.CreateTime = otype.CreateTime; this.CreatorID = otype.CreatorID; }
private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e) { SysOrganizationType type = (SysOrganizationType)myRadDataForm.CurrentItem; type.OrganizationID = VMGlobal.CurrentUser.OrganizationID; }