User editing fixed
This commit is contained in:
@@ -182,8 +182,8 @@
|
||||
</Model>
|
||||
</Children>
|
||||
<Location>
|
||||
<X>152 px</X>
|
||||
<Y>-8 px</Y>
|
||||
<X>208 px</X>
|
||||
<Y>-56 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>168 px</Width>
|
||||
@@ -269,7 +269,7 @@
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>b61df6d8-6f93-4605-bcb8-40e631176cd7</Path>
|
||||
<Path>5121abf9-8963-4853-92fc-38b4be002089</Path>
|
||||
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
@@ -288,36 +288,55 @@
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>ebd061a6-a896-4a7d-936f-207f87e52535</Path>
|
||||
<Path>9d01dc6b-a794-47f8-ac79-0ff53861181c</Path>
|
||||
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
<Model xsi:type="EnumTypeMemberVwModel">
|
||||
<CustomProperties>
|
||||
<OID>17</OID>
|
||||
<Parent>12</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
<X>0.5 px</X>
|
||||
<Y>72.5 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>144 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>b61df6d8-6f93-4605-bcb8-40e631176cd7</Path>
|
||||
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
</Children>
|
||||
<Size>
|
||||
<Width>145 px</Width>
|
||||
<Height>72 px</Height>
|
||||
<Height>90 px</Height>
|
||||
</Size>
|
||||
<MaxSize>
|
||||
<Width>0 px</Width>
|
||||
<Height>73 px</Height>
|
||||
<Height>91 px</Height>
|
||||
</MaxSize>
|
||||
</Model>
|
||||
</Children>
|
||||
<Location>
|
||||
<X>-296 px</X>
|
||||
<Y>-168 px</Y>
|
||||
<Y>-160 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>150 px</Width>
|
||||
<Height>121 px</Height>
|
||||
<Height>139 px</Height>
|
||||
</Size>
|
||||
<MinSize>
|
||||
<Width>100 px</Width>
|
||||
<Height>121 px</Height>
|
||||
<Height>139 px</Height>
|
||||
</MinSize>
|
||||
<MaxSize>
|
||||
<Width>800 px</Width>
|
||||
<Height>121 px</Height>
|
||||
<Height>139 px</Height>
|
||||
</MaxSize>
|
||||
<Ports />
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
@@ -328,20 +347,20 @@
|
||||
</Model>
|
||||
<Model xsi:type="ClassVwModel">
|
||||
<CustomProperties>
|
||||
<OID>17</OID>
|
||||
<OID>18</OID>
|
||||
<Parent>0</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="PropertiesVwModel">
|
||||
<CustomProperties>
|
||||
<OID>18</OID>
|
||||
<Parent>17</Parent>
|
||||
<OID>19</OID>
|
||||
<Parent>18</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>19</OID>
|
||||
<Parent>18</Parent>
|
||||
<OID>20</OID>
|
||||
<Parent>19</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -359,8 +378,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>20</OID>
|
||||
<Parent>18</Parent>
|
||||
<OID>21</OID>
|
||||
<Parent>19</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -378,8 +397,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>21</OID>
|
||||
<Parent>18</Parent>
|
||||
<OID>22</OID>
|
||||
<Parent>19</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -397,8 +416,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>22</OID>
|
||||
<Parent>18</Parent>
|
||||
<OID>23</OID>
|
||||
<Parent>19</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -426,14 +445,14 @@
|
||||
</Model>
|
||||
<Model xsi:type="RelationPropertiesVwModel">
|
||||
<CustomProperties>
|
||||
<OID>23</OID>
|
||||
<Parent>17</Parent>
|
||||
<OID>24</OID>
|
||||
<Parent>18</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="RelationPropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>24</OID>
|
||||
<Parent>23</Parent>
|
||||
<OID>25</OID>
|
||||
<Parent>24</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Size>
|
||||
@@ -462,8 +481,8 @@
|
||||
</Model>
|
||||
</Children>
|
||||
<Location>
|
||||
<X>-128 px</X>
|
||||
<Y>240 px</Y>
|
||||
<X>-136 px</X>
|
||||
<Y>256 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>150 px</Width>
|
||||
@@ -486,20 +505,20 @@
|
||||
</Model>
|
||||
<Model xsi:type="ClassVwModel">
|
||||
<CustomProperties>
|
||||
<OID>25</OID>
|
||||
<OID>26</OID>
|
||||
<Parent>0</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="PropertiesVwModel">
|
||||
<CustomProperties>
|
||||
<OID>26</OID>
|
||||
<Parent>25</Parent>
|
||||
<OID>27</OID>
|
||||
<Parent>26</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>27</OID>
|
||||
<Parent>26</Parent>
|
||||
<OID>28</OID>
|
||||
<Parent>27</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -517,8 +536,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>28</OID>
|
||||
<Parent>26</Parent>
|
||||
<OID>29</OID>
|
||||
<Parent>27</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -529,25 +548,6 @@
|
||||
<Width>290 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>6f0890a5-0db1-40e6-931c-92c885506d9b</Path>
|
||||
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>29</OID>
|
||||
<Parent>26</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
<X>0.5 px</X>
|
||||
<Y>36.5 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>290 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>fff013a1-3d14-4f2b-aee3-f5c0e5ad4d8e</Path>
|
||||
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
|
||||
@@ -556,7 +556,26 @@
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>30</OID>
|
||||
<Parent>26</Parent>
|
||||
<Parent>27</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
<X>0.5 px</X>
|
||||
<Y>36.5 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>290 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>6f0890a5-0db1-40e6-931c-92c885506d9b</Path>
|
||||
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>31</OID>
|
||||
<Parent>27</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -567,6 +586,25 @@
|
||||
<Width>290 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>e280a355-8d22-494b-bc72-9f5fb4c85f3a</Path>
|
||||
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>32</OID>
|
||||
<Parent>27</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
<X>0.5 px</X>
|
||||
<Y>72.5 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>290 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>caf3dc53-f6cb-4554-98ac-a700657258e9</Path>
|
||||
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
|
||||
@@ -574,13 +612,13 @@
|
||||
</Model>
|
||||
<Model xsi:type="PropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>31</OID>
|
||||
<Parent>26</Parent>
|
||||
<OID>33</OID>
|
||||
<Parent>27</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
<X>0.5 px</X>
|
||||
<Y>72.5 px</Y>
|
||||
<Y>90.5 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>290 px</Width>
|
||||
@@ -594,23 +632,23 @@
|
||||
</Children>
|
||||
<Size>
|
||||
<Width>291 px</Width>
|
||||
<Height>91 px</Height>
|
||||
<Height>109 px</Height>
|
||||
</Size>
|
||||
<MaxSize>
|
||||
<Width>0 px</Width>
|
||||
<Height>91 px</Height>
|
||||
<Height>109 px</Height>
|
||||
</MaxSize>
|
||||
</Model>
|
||||
<Model xsi:type="RelationPropertiesVwModel">
|
||||
<CustomProperties>
|
||||
<OID>32</OID>
|
||||
<Parent>25</Parent>
|
||||
<OID>34</OID>
|
||||
<Parent>26</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="RelationPropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>33</OID>
|
||||
<Parent>32</Parent>
|
||||
<OID>35</OID>
|
||||
<Parent>34</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Size>
|
||||
@@ -624,8 +662,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="RelationPropertyVwModel">
|
||||
<CustomProperties>
|
||||
<OID>34</OID>
|
||||
<Parent>32</Parent>
|
||||
<OID>36</OID>
|
||||
<Parent>34</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -644,7 +682,7 @@
|
||||
</Children>
|
||||
<Location>
|
||||
<X>0 px</X>
|
||||
<Y>90 px</Y>
|
||||
<Y>108 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>291 px</Width>
|
||||
@@ -658,20 +696,20 @@
|
||||
</Model>
|
||||
</Children>
|
||||
<Location>
|
||||
<X>224 px</X>
|
||||
<X>160 px</X>
|
||||
<Y>256 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>296 px</Width>
|
||||
<Height>194 px</Height>
|
||||
<Height>212 px</Height>
|
||||
</Size>
|
||||
<MinSize>
|
||||
<Width>100 px</Width>
|
||||
<Height>194 px</Height>
|
||||
<Height>212 px</Height>
|
||||
</MinSize>
|
||||
<MaxSize>
|
||||
<Width>800 px</Width>
|
||||
<Height>194 px</Height>
|
||||
<Height>212 px</Height>
|
||||
</MaxSize>
|
||||
<Ports />
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
@@ -682,45 +720,39 @@
|
||||
</Model>
|
||||
<Model xsi:type="AssociationVwModel">
|
||||
<CustomProperties>
|
||||
<OID>35</OID>
|
||||
<OID>37</OID>
|
||||
<OutModel>1</OutModel>
|
||||
<InModel>25</InModel>
|
||||
<OutPort>36</OutPort>
|
||||
<InPort>37</InPort>
|
||||
<InModel>26</InModel>
|
||||
<OutPort>38</OutPort>
|
||||
<InPort>39</InPort>
|
||||
<Parent>0</Parent>
|
||||
</CustomProperties>
|
||||
<PortAnchors>
|
||||
<Port>
|
||||
<Location>
|
||||
<X>0 px</X>
|
||||
<Y>97 px</Y>
|
||||
<X>126 px</X>
|
||||
<Y>0 px</Y>
|
||||
</Location>
|
||||
<Anchors>Top Bottom</Anchors>
|
||||
<Align>Right</Align>
|
||||
<Anchors>Left Right</Anchors>
|
||||
<Align>Bottom</Align>
|
||||
<CustomProperties>
|
||||
<OID>36</OID>
|
||||
<OID>38</OID>
|
||||
<PortType>FloatAnchor</PortType>
|
||||
</CustomProperties>
|
||||
</Port>
|
||||
<Port>
|
||||
<Location>
|
||||
<X>148 px</X>
|
||||
<X>174 px</X>
|
||||
<Y>0 px</Y>
|
||||
</Location>
|
||||
<Anchors>Left Right</Anchors>
|
||||
<Align>Top</Align>
|
||||
<CustomProperties>
|
||||
<OID>37</OID>
|
||||
<OID>39</OID>
|
||||
<PortType>FloatAnchor</PortType>
|
||||
</CustomProperties>
|
||||
</Port>
|
||||
</PortAnchors>
|
||||
<BendPoints>
|
||||
<PointD>
|
||||
<X>372 px</X>
|
||||
<Y>89 px</Y>
|
||||
</PointD>
|
||||
</BendPoints>
|
||||
<IsManuallyRouted>false</IsManuallyRouted>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>865bd42d-b0ba-426f-a351-bcbdd38533f1</Path>
|
||||
@@ -729,20 +761,20 @@
|
||||
</Model>
|
||||
<Model xsi:type="EnumTypeVwModel">
|
||||
<CustomProperties>
|
||||
<OID>38</OID>
|
||||
<OID>40</OID>
|
||||
<Parent>0</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="PropertiesVwModel">
|
||||
<CustomProperties>
|
||||
<OID>39</OID>
|
||||
<Parent>38</Parent>
|
||||
<OID>41</OID>
|
||||
<Parent>40</Parent>
|
||||
</CustomProperties>
|
||||
<Children>
|
||||
<Model xsi:type="EnumTypeMemberVwModel">
|
||||
<CustomProperties>
|
||||
<OID>40</OID>
|
||||
<Parent>39</Parent>
|
||||
<OID>42</OID>
|
||||
<Parent>41</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -760,8 +792,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="EnumTypeMemberVwModel">
|
||||
<CustomProperties>
|
||||
<OID>41</OID>
|
||||
<Parent>39</Parent>
|
||||
<OID>43</OID>
|
||||
<Parent>41</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -779,8 +811,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="EnumTypeMemberVwModel">
|
||||
<CustomProperties>
|
||||
<OID>42</OID>
|
||||
<Parent>39</Parent>
|
||||
<OID>44</OID>
|
||||
<Parent>41</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -798,8 +830,8 @@
|
||||
</Model>
|
||||
<Model xsi:type="EnumTypeMemberVwModel">
|
||||
<CustomProperties>
|
||||
<OID>43</OID>
|
||||
<Parent>39</Parent>
|
||||
<OID>45</OID>
|
||||
<Parent>41</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
@@ -828,7 +860,7 @@
|
||||
</Children>
|
||||
<Location>
|
||||
<X>-128 px</X>
|
||||
<Y>-168 px</Y>
|
||||
<Y>-160 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>150 px</Width>
|
||||
@@ -851,11 +883,11 @@
|
||||
</Model>
|
||||
<Model xsi:type="AssociationVwModel">
|
||||
<CustomProperties>
|
||||
<OID>44</OID>
|
||||
<OutModel>17</OutModel>
|
||||
<InModel>25</InModel>
|
||||
<OutPort>45</OutPort>
|
||||
<InPort>46</InPort>
|
||||
<OID>46</OID>
|
||||
<OutModel>18</OutModel>
|
||||
<InModel>26</InModel>
|
||||
<OutPort>47</OutPort>
|
||||
<InPort>48</InPort>
|
||||
<Parent>0</Parent>
|
||||
</CustomProperties>
|
||||
<PortAnchors>
|
||||
@@ -867,31 +899,31 @@
|
||||
<Anchors>Top Bottom</Anchors>
|
||||
<Align>Right</Align>
|
||||
<CustomProperties>
|
||||
<OID>45</OID>
|
||||
<OID>47</OID>
|
||||
<PortType>FloatAnchor</PortType>
|
||||
</CustomProperties>
|
||||
</Port>
|
||||
<Port>
|
||||
<Location>
|
||||
<X>0 px</X>
|
||||
<Y>79 px</Y>
|
||||
<Y>86.3298969072165 px</Y>
|
||||
</Location>
|
||||
<Anchors>Top Bottom</Anchors>
|
||||
<Align>Left</Align>
|
||||
<CustomProperties>
|
||||
<OID>46</OID>
|
||||
<OID>48</OID>
|
||||
<PortType>FloatAnchor</PortType>
|
||||
</CustomProperties>
|
||||
</Port>
|
||||
</PortAnchors>
|
||||
<BendPoints>
|
||||
<PointD>
|
||||
<X>42 px</X>
|
||||
<Y>319 px</Y>
|
||||
<X>34 px</X>
|
||||
<Y>335 px</Y>
|
||||
</PointD>
|
||||
<PointD>
|
||||
<X>42 px</X>
|
||||
<Y>335 px</Y>
|
||||
<X>34 px</X>
|
||||
<Y>342.329896907216 px</Y>
|
||||
</PointD>
|
||||
</BendPoints>
|
||||
<IsManuallyRouted>false</IsManuallyRouted>
|
||||
|
||||
@@ -8,13 +8,12 @@
|
||||
<File Name="FsContext.Generated.cs" DestinationFolder="FoodsharingSiegen.Server\Data" />
|
||||
<File Name="User.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||
<File Name="User.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
<File Name="InteractionProcess.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||
<File Name="InteractionProcess.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
<File Name="Prospect.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||
<File Name="Prospect.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
<File Name="InteractionDate.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||
<File Name="InteractionDate.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
<File Name="Interaction.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||
<File Name="Interaction.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
<File Name="UserType.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
<File Name="InteractionType.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||
</GeneratedFiles>
|
||||
</Generation>
|
||||
<DatabaseFirstNamingRules>
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
<class name="$EnumTypes">
|
||||
<EnumType Name="UserType" class="UserType" p1:Guid="b1301985-6d27-413f-9f9e-ebbdfc49bbc1">
|
||||
<Member Name="Unverified" Value="0" p1:Guid="b046051e-682a-45ca-8471-d9c55c09ed59" />
|
||||
<Member Name="User" Value="1" p1:Guid="fbcf22ae-d06c-4ef4-9375-7da0116c1756" />
|
||||
<Member Name="Admin" Value="2" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
|
||||
<Member Name="Superadmin" Value="3" p1:Guid="ebd061a6-a896-4a7d-936f-207f87e52535" />
|
||||
<Member Name="ReadOnly" Value="10" p1:Guid="fbcf22ae-d06c-4ef4-9375-7da0116c1756" />
|
||||
<Member Name="WelcomeTeam" Value="20" p1:Guid="5121abf9-8963-4853-92fc-38b4be002089" />
|
||||
<Member Name="StoreManager" Value="30" p1:Guid="9d01dc6b-a794-47f8-ac79-0ff53861181c" />
|
||||
<Member Name="Admin" Value="40" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
|
||||
</EnumType>
|
||||
<EnumType Name="InteractionType" class="InteractionType" p1:Guid="93f9359f-3deb-4dbe-9a8b-b8949f833919">
|
||||
<Member Name="EinAb" Value="10" p1:Guid="f2ad51e2-93c8-4c70-8620-b3f9fc8fe484" />
|
||||
@@ -52,11 +53,14 @@
|
||||
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="cca7506d-fc68-4075-bb8c-1b502aa79807">
|
||||
<column name="" />
|
||||
</id>
|
||||
<property name="UserId" type="Guid" p1:ValidateRequired="true" p1:Guid="fff013a1-3d14-4f2b-aee3-f5c0e5ad4d8e">
|
||||
<column name="" not-null="False" />
|
||||
</property>
|
||||
<property name="Date" type="DateTime" p1:ValidateRequired="true" p1:Guid="6f0890a5-0db1-40e6-931c-92c885506d9b">
|
||||
<column name="" />
|
||||
</property>
|
||||
<property name="UserId" type="Guid" p1:ValidateRequired="true" p1:Guid="fff013a1-3d14-4f2b-aee3-f5c0e5ad4d8e">
|
||||
<column name="" not-null="False" />
|
||||
<property name="Info" type="String" p1:nullable="True" p1:ValidateRequired="false" p1:Guid="e280a355-8d22-494b-bc72-9f5fb4c85f3a">
|
||||
<column name="" />
|
||||
</property>
|
||||
<property name="Type" type="FoodsharingSiegen.Contracts.Entity.InteractionType" p1:ValidateRequired="true" p1:Guid="caf3dc53-f6cb-4554-98ac-a700657258e9">
|
||||
<column name="" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This is auto-generated code.
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by Entity Developer tool using EF Core template.
|
||||
// Code is generated on: 01.04.2022 16:25:00
|
||||
// Code is generated on: 01.04.2022 16:41:05
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -27,9 +27,11 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
|
||||
public virtual Guid Id { get; set; }
|
||||
|
||||
public virtual Guid UserId { get; set; }
|
||||
|
||||
public virtual DateTime Date { get; set; }
|
||||
|
||||
public virtual Guid UserId { get; set; }
|
||||
public virtual string Info { get; set; }
|
||||
|
||||
public virtual InteractionType Type { get; set; }
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This is auto-generated code.
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by Entity Developer tool using EF Core template.
|
||||
// Code is generated on: 01.04.2022 16:25:00
|
||||
// Code is generated on: 01.04.2022 16:41:05
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This is auto-generated code.
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by Entity Developer tool using EF Core template.
|
||||
// Code is generated on: 01.04.2022 16:25:00
|
||||
// Code is generated on: 01.04.2022 16:41:05
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This is auto-generated code.
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by Entity Developer tool using EF Core template.
|
||||
// Code is generated on: 01.04.2022 16:25:00
|
||||
// Code is generated on: 01.04.2022 16:41:05
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This is auto-generated code.
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by Entity Developer tool using EF Core template.
|
||||
// Code is generated on: 01.04.2022 16:25:00
|
||||
// Code is generated on: 01.04.2022 16:41:05
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -21,8 +21,9 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
public enum UserType : int
|
||||
{
|
||||
Unverified = 0,
|
||||
User = 1,
|
||||
Admin = 2,
|
||||
Superadmin = 3
|
||||
ReadOnly = 10,
|
||||
WelcomeTeam = 20,
|
||||
StoreManager = 30,
|
||||
Admin = 40
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This is auto-generated code.
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by Entity Developer tool using EF Core template.
|
||||
// Code is generated on: 01.04.2022 16:25:00
|
||||
// Code is generated on: 01.04.2022 16:41:05
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -129,8 +129,9 @@ namespace FoodsharingSiegen.Server.Data
|
||||
{
|
||||
modelBuilder.Entity<Interaction>().ToTable(@"Interactions");
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.Id).HasColumnName(@"Id").IsRequired().ValueGeneratedOnAdd();
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.Date).HasColumnName(@"Date").IsRequired().ValueGeneratedNever();
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.UserId).HasColumnName(@"UserId").ValueGeneratedNever();
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.Date).HasColumnName(@"Date").IsRequired().ValueGeneratedNever();
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.Info).HasColumnName(@"Info").ValueGeneratedNever();
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.Type).HasColumnName(@"Type").IsRequired().ValueGeneratedNever();
|
||||
modelBuilder.Entity<Interaction>().Property(x => x.ProspectId).HasColumnName(@"ProspectId").ValueGeneratedNever();
|
||||
modelBuilder.Entity<Interaction>().HasKey(@"Id");
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
Editable
|
||||
Responsive>
|
||||
<DataGridColumns>
|
||||
<DataGridCommandColumn TItem="User" Caption="Wololo" Width="100px" CellStyle="@(_ => "display: flex; padding-left: 0; padding-right: 0; justify-content: center; align-items: center;")">
|
||||
<DataGridCommandColumn TItem="User" Width="100px" CellStyle="@(_ => "display: flex; padding-left: 0; padding-right: 0; justify-content: center; align-items: center;")">
|
||||
<NewCommandTemplate>
|
||||
<Button Size="Size.ExtraSmall" Color="Color.Success" Clicked="@context.Clicked" Class="mr-1" Style="min-width: auto;">
|
||||
<i class="oi oi-plus"></i>
|
||||
@@ -56,11 +56,14 @@
|
||||
</Button>
|
||||
</ClearFilterCommandTemplate>
|
||||
</DataGridCommandColumn>
|
||||
<DataGridColumn TItem="User" Field="@nameof(User.Name)" Caption="Name" Editable="true"></DataGridColumn>
|
||||
<DataGridColumn TItem="User" Field="@nameof(User.Mail)" Caption="E-Mail" Editable="true"></DataGridColumn>
|
||||
<DataGridColumn TItem="User" Field="@nameof(User.Type)" Caption="Typ" Editable="true">
|
||||
<DataGridCheckColumn TItem="User" Field="@nameof(User.Verified)" Caption="Verifiziert" Editable="true" Width="100px">
|
||||
<DisplayTemplate>
|
||||
<Check TValue="bool" Checked="context.Verified" Disabled="true" ReadOnly="true"/>
|
||||
</DisplayTemplate>
|
||||
</DataGridCheckColumn>
|
||||
<DataGridColumn TItem="User" Field="@nameof(User.Type)" Caption="Typ" Editable="true" Width="200px">
|
||||
<EditTemplate>
|
||||
<Select TValue="UserType" @bind-SelectedValue="@context.Item.Type">
|
||||
<Select TValue="UserType" SelectedValue="@((UserType)context.CellValue)" SelectedValueChanged="@(v => context.CellValue = v)">
|
||||
@foreach (var enumValue in Enum.GetValues<UserType>())
|
||||
{
|
||||
<SelectItem TValue="UserType" Value="enumValue">@enumValue</SelectItem>
|
||||
@@ -68,5 +71,8 @@
|
||||
</Select>
|
||||
</EditTemplate>
|
||||
</DataGridColumn>
|
||||
<DataGridColumn TItem="User" Field="@nameof(User.Name)" Caption="Name" Editable="true" Width="250px"></DataGridColumn>
|
||||
<DataGridColumn TItem="User" Field="@nameof(User.Mail)" Caption="E-Mail" Editable="true"></DataGridColumn>
|
||||
|
||||
</DataGridColumns>
|
||||
</DataGrid>
|
||||
@@ -1,12 +1,17 @@
|
||||
using Blazorise.DataGrid;
|
||||
using Blazorise.DataGrid;
|
||||
using FoodsharingSiegen.Contracts.Entity;
|
||||
using FoodsharingSiegen.Server.Data.Service;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace FoodsharingSiegen.Server.Pages
|
||||
{
|
||||
/// <summary>
|
||||
/// The users class (a. beging, 01.04.2022)
|
||||
/// </summary>
|
||||
public partial class Users
|
||||
{
|
||||
#region Dependencies (Injected)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// <summary> Gets or sets the user service. </summary>
|
||||
///
|
||||
@@ -14,9 +19,32 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
[Inject] public UserService UserService { get; set; } = null!;
|
||||
|
||||
private List<User>? UserList { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the user data grid (ab)
|
||||
/// </summary>
|
||||
public DataGrid<User> UserDataGrid { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the user list (ab)
|
||||
/// </summary>
|
||||
private List<User>? UserList { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Override OnAfterRenderAsync
|
||||
|
||||
/// <summary>
|
||||
/// Ons the after render using the specified first render (a. beging, 01.04.2022)
|
||||
/// </summary>
|
||||
/// <param name="firstRender">The first render</param>
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
@@ -25,6 +53,27 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
await base.OnAfterRenderAsync(firstRender);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Method Chang
|
||||
|
||||
/// <summary>
|
||||
/// Changs the context (a. beging, 01.04.2022)
|
||||
/// </summary>
|
||||
/// <param name="context">The context</param>
|
||||
/// <param name="type">The type</param>
|
||||
private void Chang(CellEditContext<User> context, UserType type)
|
||||
{
|
||||
context.Item.Type = type;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Method LoadUsers
|
||||
|
||||
/// <summary>
|
||||
/// Loads the users (a. beging, 01.04.2022)
|
||||
/// </summary>
|
||||
private async Task LoadUsers()
|
||||
{
|
||||
var usersR = await UserService.GetUsersAsync();
|
||||
@@ -33,24 +82,42 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
private async Task RowUpdated(SavedRowItem<User, Dictionary<string, object>> arg)
|
||||
{
|
||||
if (arg.Item?.Id == null || arg.Item.Id.Equals(Guid.Empty) || arg.Values?.Any() != true) return;
|
||||
#endregion
|
||||
|
||||
await UserService.Update(arg.Item);
|
||||
}
|
||||
#region Private Method RowInserted
|
||||
|
||||
/// <summary>
|
||||
/// Rows the inserted using the specified arg (a. beging, 01.04.2022)
|
||||
/// </summary>
|
||||
/// <param name="arg">The arg</param>
|
||||
private async Task RowInserted(SavedRowItem<User, Dictionary<string, object>> arg)
|
||||
{
|
||||
var addUserR = await UserService.AddUserAsync(arg.Item);
|
||||
if (!addUserR.Success)
|
||||
{
|
||||
// Error Toast
|
||||
//Todo Error Toast [01.04.22 - Andre Beging]
|
||||
}
|
||||
else
|
||||
{
|
||||
await LoadUsers();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Method RowUpdated
|
||||
|
||||
/// <summary>
|
||||
/// Rows the updated using the specified arg (a. beging, 01.04.2022)
|
||||
/// </summary>
|
||||
/// <param name="arg">The arg</param>
|
||||
private async Task RowUpdated(SavedRowItem<User, Dictionary<string, object>> arg)
|
||||
{
|
||||
if (arg.Item?.Id == null || arg.Item.Id.Equals(Guid.Empty) || arg.Values?.Any() != true) return;
|
||||
|
||||
var result = await UserService.Update(arg.Item);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<main>
|
||||
<div class="top-row px-4">
|
||||
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
|
||||
|
||||
</div>
|
||||
|
||||
<article class="content px-4">
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
|
||||
<nav class="flex-column">
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="counter">
|
||||
<span class="fas fa-tasks mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Übersicht
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
||||
<span class="fas fa-users mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Benutzer
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="counter">
|
||||
<span class="fas fa-tasks mr-1" aria-hidden="true" style="font-size: 1.4em;"></span> Verifizierung
|
||||
</NavLink>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
BIN
FoodsharingSiegen.Server/app.db-shm
Normal file
BIN
FoodsharingSiegen.Server/app.db-shm
Normal file
Binary file not shown.
BIN
FoodsharingSiegen.Server/app.db-wal
Normal file
BIN
FoodsharingSiegen.Server/app.db-wal
Normal file
Binary file not shown.
Reference in New Issue
Block a user