Пример #1
0
 public SessionOrganization()
 {
     Department = CoreSessionContainer.Create(default(Guid?), default);
     BigRegion  = CoreSessionContainer.Create(default(Guid?), default);
     Region     = CoreSessionContainer.Create(default(Guid?), default);
     Store      = CoreSessionContainer.Create(default(Guid?), default);
     Group      = CoreSessionContainer.Create(default(Guid?), default);
 }
Пример #2
0
 public SessionOrganization(
     Guid?departmentId, string departmentName,
     Guid?bigRegionId, string bigRegionName,
     Guid?regionId, string regionName,
     Guid?storeId, string storeName,
     Guid?groupId, string groupName)
 {
     Department = CoreSessionContainer.Create(departmentId, departmentName);
     BigRegion  = CoreSessionContainer.Create(bigRegionId, bigRegionName);
     Region     = CoreSessionContainer.Create(regionId, regionName);
     Store      = CoreSessionContainer.Create(storeId, storeName);
     Group      = CoreSessionContainer.Create(groupId, groupName);
 }
Пример #3
0
 public CoreSession(string cityId,
                    Guid?companyId, string companyName,
                    Guid?departmentId, string departmentName,
                    Guid?bigRegionId, string bigRegionName,
                    Guid?regionId, string regionName,
                    Guid?storeId, string storeName,
                    Guid?groupId, string groupName,
                    string brokerId, string brokerName,
                    string currentUserId, string currentUserName)
 {
     City         = CoreSessionContainer.Create(cityId);
     Company      = CoreSessionContainer.Create(companyId, companyName);
     Broker       = CoreSessionContainer.Create(brokerId, brokerName);
     Organization = new SessionOrganization(
         departmentId, departmentName,
         bigRegionId, bigRegionName,
         regionId, regionName,
         storeId, storeName,
         groupId, groupName);
     User = CoreSessionContainer.Create(currentUserId, currentUserName);
 }