You are on page 1of 4

Companies Search

Menu
 Change Menu name from “Employers” to “Companies”
 Change Menu Item from “Search Employers” to only “Companies”

Employer Search Form


 Change Section Title from “Employers Search” to “Companies Search”
 Also in browser tab title “Companies Search”

Filters:
 Change Filter Label from “Employer” to “Company Name” and not “Companies”
 Add new filters:
o “Subscriber” DDL
 Use this sp [getSubscribers] to load all subscribers
 Check if “SuperAdmin” (bit) in session = 1
 If SuperAdmin=1:
o Filter value is set to null by default
o Filter is visible
 If SuperAdmin is zero or null:
o filter value is set to subscriberId (int) in session
o Filter is hidden, but value should be sent to search
 When sent to sp [SearchEmployers]: Parameter value “SubscriberId”
o Is Subscriber DDL (a second filter with same name as above)
 Options:
 All (Value = 0)
 Subscriber (Value = 1)
 Not Subscriber (Value = 2)
 When sent to sp [SearchEmployers]: Parameter value “isSubscriber”
o Provider DDL
 Options:
 All (Value = 0)
 Provider (Value = 1)
 Not Provider (Value = 2)
 When sent to sp [SearchEmployers]: Parameter value “isProvider”
 It should not be hidden even if superadmin=0
o Employer DDL
 Options:
 All (Value = 0)
 Employer (Value = 1)
 Not Employer (Value = 2)
 When sent to sp [SearchEmployers]: Parameter value “isEmployer”
 On search:
o Send the new filters as parameters to the sp [SearchEmployers]
o Update the sp [SearchEmployers] to make a dynamic query to take the new filters into
consideration:
 subscriberId:
 if parameter value=0 or null, do not add condition to where clause
 if parameter value > 0, add condition to where clause (where
isnull(subscriberId,0)= @subscriberId)
 isSubscriber:
 if parameter value=0, do not add condition to where clause
 if parameter value=1, add condition to where clause (for example:
where isnull(isSubscriber,0)=1)
 if parameter value=2, add condition to where clause (for example:
where isnull(isSubscriber,0)=0)
 isEmployer:
 if parameter value=0, do not add condition to where clause
 if parameter value=1, add condition to where clause (for example:
where isnull(isEmployer,0)=1)
 if parameter value=2, add condition to where clause (for example:
where isnull(isEmployer,0)=0)
 isProvider:
 if parameter value=0, do not add condition to where clause
 if parameter value=1, add condition to where clause (for example:
where isnull(isProvider,0)=1)
 if parameter value=2, add condition to where clause (for example:
where isnull(isProvider,0)=0)

List
 Please add pagination to this list (20 per page)
 Hide the column “packages”
 Display new columns (already added in the sp):
o Subscriber (make it first column)
 Text showing “Subscriber Name” (use field [SubscriberName] (varchar) from SP
SearchEmployers)
 Column Hidden when “SuperAdmin” is zero or null (bit field in session)
o Change Employer column title to Company and not “companies”
o
o Subscriber (after country column)
 Yes/No (use field [isSubscriber] (bit) from SP SearchEmployers) (instead of “No”,
please use dash only – as above screenshot)
o Employer (after the second Subscriber column)
 Yes/No (use field [isEmployer] (bit) from SP SearchEmployers) (instead of “No”,
please use dash only - )
o Provider (after Employer column)
 Yes/No (use field [isProvider] (bit) from SP SearchEmployers) (instead of “No”,
please use dash only - )
o Structure
 Hyperlink which redirects to the “Company Structure” form
o Cities
 Hyperlink which redirects to the “Cities” form
 Visible only if the company is a subscriber (the company itself, this is not related
to the session variable “admin”)
o Employees
 Hyperlink which redirects to the “Company Employees” form

New Employer form (when plus is clicked)


 Change form title from “Add Employers” to “Add Company”
 Add “Subscriber” DDL
o Use this sp [getSubscribers] to load all subscribers
o if “SuperAdmin” = 1: by default, value= subscriberId (int) from session
o if “SuperAdmin” = 0 or null (from session)
 value is selected=subscriberId (int) from session but DDL is hidden
 On save:
o Include subscriberId parameter in the sp call [ClientInfoSave]

Edit Form
 “Save and cancel” buttons should be fixed and not scrollable
 Rename the form title from “Edit Client Info” to “Edit Company Info”
 Rename the text label from “Client Name” to “Company Name”
 Add “Subscriber” DDL
o Use this sp [getSubscribers] to load all subscribers
o This field should be required
o hidden if “SuperAdmin” = 0 or null (from session)
 Add 3 checkboxes:
o Subscriber
 hidden if “SuperAdmin” = 0 or null (from session)
o Employer
o Provider
 Subscription Name (textbox)
o The label should be Subscription Name and not Subscriber Name
o It should load from subscriptionName (in SP SearchEmployers) and not subscribername
o It should be hidden, unless the company is subscriber (hide this field if isSubscriber is
zero or null)
 If the logo already exists:
o Retrieve image when editing
o display it as a picture (the logo should fit even if the original size is big)
o allow to upload a new logo to replace the previous one
 On save:
o Send the new fields as parameter to the sp: ClientInfoSave

You might also like