API CreateWorkshop: Porovnání verzí

Z Podpora.nextis.cz
Skočit na navigaci Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to create new Workshop in system. ==== Exact name ==== <code>API_CreateWorkshop</code> ==== Type ==== Standard ex…“
 
Bez shrnutí editace
 
(Nejsou zobrazeny 2 mezilehlé verze od stejného uživatele.)
Řádek 1: Řádek 1:
==== Description ====
==== Description ====
Method allows You to create new Workshop in system.
Method allows You to create new workshop in system.


==== Exact name ====
==== Exact name ====
Řádek 16: Řádek 16:
!Relation
!Relation
|-
|-
|@WorkshopID
|@Name
|nvarchar(250)
|
|Name
|
|-
|@Street
|nvarchar(200)
|
|Street
|
|-
|@City
|nvarchar(120)
|
|City
|
|-
|@ZIPCode
|nvarchar(15)
|
|ZIP code
|
|-
|@Country
|nvarchar(70)
|
|Country
|
|-
|@Region
|nvarchar(70)
|
|Region
|
|-
|@State
|nvarchar(80)
|
|State
|
|-
|@StateID
|int
|int
|
|
|ID of workshop from workshop list (see relation)
|ID of country from country list (see relation)
|API_GetWorkshops.ID
|API_GetCountry.ID
|-
|@PhoneNumber
|nvarchar(50)
|
|Phone number
|
|-
|@Fax
|nvarchar(50)
|
|Fax
|
|-
|@MobilePhone
|nvarchar(50)
|
|MobilePhone
|
|-
|@Email
|nvarchar(70)
|
|Email
|
|-
|@Web
|nvarchar(120)
|
|Web
|
|}
|}
==== Return ====
0 : OK
100 : Item could not be created


==== Example ====
==== Example ====
<syntaxhighlight lang="sql">
<syntaxhighlight lang="sql">
EXEC [API_CreateWorkshop] @WorkshopID = 1 ,@Name = 'Name' ,@Street = 'Street' ,@City = 'City' ,@ZIPCode = 'ZIPCode' ,@Country = 'Country' ,@Region = 'Region' ,@State ='Česká republika' ,@StateID = 15797 ,@Phone = '+420 556 621 300' ,@Fax = '+420 596 790 789' ,@MobilePhone = '+420 556 621 301' ,@Email = 'info@nextis.cz' ,@Web = 'www.nextis.cz'
DECLARE @return_value int
EXEC @return_value = [API_CreateWorkshop] @Name = 'Name' ,@Street = 'Street' ,@City = 'City' ,@ZIPCode = 'ZIPCode' ,@Country = 'Country' ,@Region = 'Region' ,@State ='Česká republika' ,@StateID = 15797 ,@PhoneNumber = '+420 556 621 300' ,@Fax = '+420 596 790 789' ,@MobilePhone = '+420 556 621 301' ,@Email = 'info@nextis.cz' ,@Web = 'www.nextis.cz'
</syntaxhighlight>
</syntaxhighlight>


==== Notices ====
==== Notices ====
None.
None.

Aktuální verze z 20. 9. 2017, 14:11

Description

Method allows You to create new workshop in system.

Exact name

API_CreateWorkshop

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@Name nvarchar(250) Name
@Street nvarchar(200) Street
@City nvarchar(120) City
@ZIPCode nvarchar(15) ZIP code
@Country nvarchar(70) Country
@Region nvarchar(70) Region
@State nvarchar(80) State
@StateID int ID of country from country list (see relation) API_GetCountry.ID
@PhoneNumber nvarchar(50) Phone number
@Fax nvarchar(50) Fax
@MobilePhone nvarchar(50) MobilePhone
@Email nvarchar(70) Email
@Web nvarchar(120) Web

Return

0 : OK
100 : Item could not be created

Example

 DECLARE @return_value int
 EXEC @return_value = [API_CreateWorkshop] @Name = 'Name' ,@Street = 'Street' ,@City = 'City' ,@ZIPCode = 'ZIPCode' ,@Country = 'Country' ,@Region = 'Region' ,@State ='Česká republika' ,@StateID = 15797 ,@PhoneNumber = '+420 556 621 300' ,@Fax = '+420 596 790 789' ,@MobilePhone = '+420 556 621 301' ,@Email = 'info@nextis.cz' ,@Web = 'www.nextis.cz'

Notices

None.