Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Article to explain how to configure webviewer and how It works

Configuration

Server.config

This is to configure supplier database

Code Block
languagexml
<SupplierDatabase>
    <Enabled>true</Enabled>
    <DataBaseName>Assert#Supplier</DataBaseName>
    <DataBaseServer>(local)</DataBaseServer>
    <UseSqlServerUser>false</UseSqlServerUser>
    <SqlServerUser>Assert#User</SqlServerUser>
    <SqlServerPassword>Login#123!@$</SqlServerPassword>
</SupplierDatabase>

Permission.config

Code Block
languagexml
<ResourcePermission>
	<Id>17</Id>
	<Enabled>true</Enabled>
	<Name>SupplierAdmin</Name>
	<Note>Users can admin users of his organization</Note>
	<Groups>
		<string>SupplierAdmin</string>
	</Groups>
</ResourcePermission>

<ResourcePermission>
	<Id>18</Id>
	<Enabled>true</Enabled>
	<Name>SupplierDeclaration</Name>
	<Note>Users can make declarations for his organizations</Note>
	<Groups>
		<string>SupplierDeclaration</string>
	</Groups>
</ResourcePermission>

<ResourcePermission>
	<Id>19</Id>
	<Enabled>true</Enabled>
	<Name>SupplierCodeOfConduct</Name>
	<Note>Users can create and update a code of conduct for his company</Note>
	<Groups>
		<string>SupplierCodeOfConduct</string>
	</Groups>
</ResourcePermission>

Profile.config

This is to configure where uploaded files will be stored

Code Block
languagexml
upplierSettings>
   <Enabled>true</Enabled>
</SupplierSettings>

<SupplierSettings>
<Enabled>true</Enabled>

	<DocumentsFilePath>C:\Signifikant\Data\Dometic\Documents</DocumentsFilePath>
	<ImageFilePath>Start.jpg</ImageFilePath>
</SupplierSettings>	
<UseNewLayout>true</UseNewLayout>

<PermissionGroup>
	<Name>SupplierAdmin</Name>
	<Description>Permission to admin his organization</Description>
</PermissionGroup>
<PermissionGroup>
	<Name>SupplierDeclaration</Name>
	<Description>Permission to make declararions to his organization</Description>
</PermissionGroup>
<PermissionGroup>
	<Name>SupplierCodeOfConduct</Name>
	<Description>Permission to create and update code of conduct for his organization</Description>
</PermissionGroup>

Supplier Database

...

Permissions used

SupplierAdmin : User is able to sign declarations

...

Administration: User can modify his code of conduct and approve/disapprove pending declarations

Areas

Two buttons have been added in Menu (_Layout.cshtml) :

  • Supplier Administration : Admin will be redirected to Supplier Administration page

  • Supplier Declarations : User will be redirected to a list of declarations linked to his company

Views

new layout made by Quentin is used in our views

SupplierAdministration

Here, admin will see two buttons :

  • Code Of Conduct List : A button to his list of code of conduct

  • Supplier Declaration : User will be redirected to the list of pending declarations made by supplier

SupplierCompliance

The supplier will see the status of his company :

  • Code of conduct (ok, new version, expired, not ok)

  • Material declarations (ok, more to do, nothing done)

  • List of all the declarations his company did

Declaration View

The content change according to the permission. This is what will be possible to do:

  • Sign button

  • Admin approve

  • Edit/Display information (name, code of conduct, …)

  • Link to the code of conduct

Code Of Conduct View

The content change according to the permission :

  • Edit/Display information

  • List of documents with add, edit and delete buttons

Document View

  • Edit/Display information

  • List of files with upload, download and delete buttons