예제 #1
0
        private void OrganizationTreeOrganizationChanged(object sender, OrganizationTree.OrganizationChangedEventArgs e)
        {
            _curIdOrganization = e.IdOrganization;
            if (_objectContext.organization.Parameters.Contains("idOrganizationParent"))
                _objectContext.organization.Parameters["idOrganizationParent"].Value = _curIdOrganization;
            else
                _objectContext.organization.Parameters.Add(new ObjectParameter("idOrganizationParent",
                                                                               _curIdOrganization));

            organizationBindingSource.DataSource =
                _objectContext.organization.Where("it.id_organization_parent=@idOrganizationParent");
        }
 private void OrganizationTreeOrganizationChanged(object sender, OrganizationTree.OrganizationChangedEventArgs e)
 {
     _chosenOrgLeaf = e.AllSubOrgLeaf;
     UpdateValueData();
 }