API CreateUniversalPartsCategory: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
(Založena nová stránka s textem „==== Description ==== Method allows You to create new universal parts category in system. ==== Exact name ==== <code>API_CreateUniversalPartsCategory</cod…“)
 
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádka 16: Řádka 16:
 
!Relation
 
!Relation
 
|-
 
|-
|@WorkshopID
+
|@ParentID
 
|int
 
|int
 
|
 
|
|ID of workshop from workshop list (see relation)
+
|Parent category ID
|API_GetWorkshops.ID
+
|
 +
|-
 +
|@Name
 +
|nvarchar(250)
 +
|
 +
|Name
 +
|
 +
|-
 +
|@Description
 +
|nvarchar(800)
 +
|
 +
|Description
 +
|
 +
|-
 +
|@SortIndex
 +
|int
 +
|
 +
|Sort index
 +
|
 +
|-
 +
|@IsRoot
 +
|bit
 +
|
 +
|Is root
 +
|
 +
|-
 +
|@IsTop
 +
|bit
 +
|
 +
|Is top
 +
|
 
|}
 
|}
 +
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be created
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateUniversalPartsCategory] @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_CreateUniversalPartsCategory] @ParentID= 1 ,@Name = 'Name' ,@Description= 'Description' ,@SortIndex= 0 ,@IsRoot= 0 ,@IsTop= 0
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Aktuální verze z 22. 9. 2017, 09:16

Description

Method allows You to create new universal parts category in system.

Exact name

API_CreateUniversalPartsCategory

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ParentID int Parent category ID
@Name nvarchar(250) Name
@Description nvarchar(800) Description
@SortIndex int Sort index
@IsRoot bit Is root
@IsTop bit Is top

Return

0 : OK
100 : Item could not be created

Example

 DECLARE @return_value int
 EXEC @return_value = [API_CreateUniversalPartsCategory] @ParentID= 1 ,@Name = 'Name' ,@Description= 'Description' ,@SortIndex= 0 ,@IsRoot= 0 ,@IsTop= 0

Notices

None.