00001: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ChangesMap')) DROP TABLE [dbo].[PR_ChangesMap]
00002: GO
00003: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ChangesMaps')) DROP TABLE [dbo].[PR_ChangesMaps]
00004: GO
00005: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_CorrelateMap')) DROP TABLE [dbo].[PR_CorrelateMap]
00006: GO
00007: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_RelationMap')) DROP TABLE [dbo].[PR_RelationMap]
00008: GO
00009: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassifierMM')) DROP TABLE [dbo].[PR_ClassifierMM]
00010: GO
00011: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_TrPrice')) DROP TABLE [dbo].[PR_TrPrice]
00012: GO
00013: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_CheckTovarName')) DROP TABLE [dbo].[PR_CheckTovarName]
00014: GO
00015: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SuppPrices')) DROP TABLE [dbo].[PR_SuppPrices]
00016: GO
00017: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_List')) DROP TABLE [dbo].[PR_List]
00018: GO
00019: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_PresenceType')) DROP TABLE [dbo].[PR_PresenceType]
00020: GO
00021: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassifierList')) DROP TABLE [dbo].[PR_ClassifierList]
00022: GO
00023: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_Groups')) DROP TABLE [dbo].[PR_Groups]
00024: GO
00025: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassTypeList')) DROP TABLE [dbo].[PR_ClassTypeList]
00026: GO
00027: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportLog')) DROP TABLE [dbo].[PR_ImportLog]
00028: GO
00029: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportParm')) DROP TABLE [dbo].[PR_ImportParm]
00030: GO
00031: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportParmAction')) DROP TABLE [dbo].[PR_ImportParmAction]
00032: GO
00033: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportParmArticul')) DROP TABLE [dbo].[PR_ImportParmArticul]
00034: GO
00035: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportParmPresent')) DROP TABLE [dbo].[PR_ImportParmPresent]
00036: GO
00037: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ProviderList')) DROP TABLE [dbo].[PR_ProviderList]
00038: GO
00039: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportParmSourceType')) DROP TABLE [dbo].[PR_ImportParmSourceType]
00040: GO
00041: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_DEBUG_FindClassifier')) DROP TABLE [dbo].[PR_DEBUG_FindClassifier]
00042: GO
00043: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_GetCheckTovarName')) DROP TABLE [dbo].[PR_ST_GetCheckTovarName]
00044: GO
00045: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassSET')) DROP TABLE [dbo].[PR_ClassSET]
00046: GO
00047: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_Classifier')) DROP TABLE [dbo].[PR_ST_Classifier]
00048: GO
00049: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_Group')) DROP TABLE [dbo].[PR_ST_Group]
00050: GO
00051: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_PRList')) DROP TABLE [dbo].[PR_ST_PRList]
00052: GO
00053: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_SuppPrice1')) DROP TABLE [dbo].[PR_ST_SuppPrice1]
00054: GO
00055: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_Tree')) DROP TABLE [dbo].[PR_ST_Tree]
00056: GO
00057: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_Tree_Debug')) DROP TABLE [dbo].[PR_ST_Tree_Debug]
00058: GO
00059: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_ImportParm')) DROP TABLE [dbo].[PR_ST_ImportParm]
00060: GO
00061: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_SuppPrice2')) DROP TABLE [dbo].[PR_ST_SuppPrice2]
00062: GO
00063: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_ImportLog')) DROP TABLE [dbo].[PR_ST_ImportLog]
00064: GO
00065: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_SuppPrice')) DROP TABLE [dbo].[PR_ST_SuppPrice]
00066: GO
00067: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_TrPrice')) DROP TABLE [dbo].[PR_ST_TrPrice]
00068: GO
00069: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ST_ChangesMap')) DROP TABLE [dbo].[PR_ST_ChangesMap]
00070: GO
00071: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_Countries') )DROP TABLE [dbo].[SY_Countries]
00072: GO
00073: Begin Tran
00074: CREATE TABLE dbo.Tmp_SY_Image
00075: (
00076: i int NOT NULL ,
00077: [Key] AS ('i' + convert(nvarchar(4),[i])),
00078: Image image NULL,
00079: Alias nvarchar(50) NULL
00080: ) ON [PRIMARY]
00081: TEXTIMAGE_ON [PRIMARY]
00082: GO
00083: Insert Tmp_sy_image(i,image) values (0,0x47494638396101000100800000FFFFFF00000021F90401000000002C00000000010001000002024401003B00 )
00084: GO
00085: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_Image') )DROP TABLE [dbo].[SY_Image]
00086: GO
00087: CREATE TABLE dbo.SY_Image
00088: (
00089: i int IDENTITY(1,1) NOT NULL ,
00090: [Key] AS ('i' + convert(nvarchar(4),[i])),
00091: Image image NULL,
00092: Alias nvarchar(50) NULL
00093: ) ON [PRIMARY]
00094: TEXTIMAGE_ON [PRIMARY]
00095: GO
00096: SET IDENTITY_INSERT dbo.SY_Image ON
00097: GO
00098: IF EXISTS(SELECT * FROM dbo.Tmp_SY_Image)
00099: EXEC('INSERT INTO dbo.SY_Image (i, Image, Alias)
00100: SELECT i, Image, Alias FROM dbo.Tmp_SY_Image')
00101: GO
00102: DROP TABLE dbo.Tmp_SY_Image
00103: GO
00104: COMMIT
00105: GO
00106:
00107: ALTER TABLE [dbo].[SY_Countries] ADD CONSTRAINT [PK_SY_Countries] PRIMARY KEY CLUSTERED
00108: (
00109: [sID] ASC
00110: ) ON [PRIMARY]
00111: GO
00112:
00113: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_Countries]') ) DROP TABLE [dbo].[SY_Countries]
00114: GO
00115: SET ANSI_NULLS ON
00116: GO
00117: SET QUOTED_IDENTIFIER ON
00118: GO
00119: CREATE TABLE [dbo].[SY_Countries](
00120: [sID] [int] IDENTITY(1,1) NOT NULL,
00121: [sCountryName] [nvarchar](30) COLLATE Cyrillic_General_CI_AS NULL,
00122: [sNXCountryName] [nvarchar](250) COLLATE Cyrillic_General_CI_AS NULL,
00123: [sNX2CountryName] [nvarchar](250) COLLATE Cyrillic_General_CI_AS NULL
00124: ) ON [PRIMARY]
00125:
00126: GO
00127: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_SY_Countries]')) DROP INDEX SY_Countries.[PK_SY_Countries]
00128: GO
00129: ALTER TABLE [dbo].[SY_Countries] ADD CONSTRAINT [PK_SY_Countries] PRIMARY KEY CLUSTERED
00130: (
00131: [sID] ASC
00132: ) ON [PRIMARY]
00133: GO
00134:
00135: SET ANSI_NULLS ON
00136: GO
00137: SET QUOTED_IDENTIFIER ON
00138: GO
00139: CREATE TABLE [dbo].[PR_ChangesMap](
00140: [i] [int] IDENTITY(1,1) NOT NULL,
00141: [ToImport] [int] NULL,
00142: [ToImportLog] [int] NULL,
00143: [ToSuppPrice] [int] NULL,
00144: [ToTrPrice] [int] NULL,
00145: [Type] [int] NULL,
00146: [PriceSale] [money] NULL,
00147: [PriceBuy] [money] NULL,
00148: [Price1] [money] NULL,
00149: [Price2] [money] NULL,
00150: [Price3] [money] NULL,
00151: [Price4] [money] NULL,
00152: [Price5] [money] NULL,
00153: [Price6] [money] NULL,
00154: [DeltaPriceSale] [money] NULL,
00155: [DeltaPriceBuy] [money] NULL,
00156: [DeltaPrice1] [money] NULL,
00157: [DeltaPrice2] [money] NULL,
00158: [DeltaPrice3] [money] NULL,
00159: [DeltaPrice4] [money] NULL,
00160: [DeltaPrice5] [money] NULL,
00161: [DeltaPrice6] [money] NULL
00162: ) ON [PRIMARY]
00163:
00164: GO
00165: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ChangesMap_1]')) DROP INDEX PR_ChangesMap.[PK_PR_ChangesMap_1]
00166: GO
00167: ALTER TABLE [dbo].[PR_ChangesMap] ADD CONSTRAINT [PK_PR_ChangesMap_1] PRIMARY KEY CLUSTERED
00168: (
00169: [i] ASC
00170: ) ON [PRIMARY]
00171: GO
00172:
00173: SET ANSI_NULLS ON
00174: GO
00175: SET QUOTED_IDENTIFIER ON
00176: GO
00177: CREATE TABLE [dbo].[PR_ChangesMaps](
00178: [i] [int] IDENTITY(1,1) NOT NULL,
00179: [ToImport] [int] NULL,
00180: [ToImportLog] [int] NULL,
00181: [ToPosition] [int] NULL,
00182: [Type] [int] NULL,
00183: [PriceSale] [money] NULL,
00184: [PriceBuy] [money] NULL,
00185: [Price1] [money] NULL,
00186: [Price2] [money] NULL,
00187: [Price3] [money] NULL,
00188: [Price4] [money] NULL,
00189: [Price5] [money] NULL,
00190: [Price6] [money] NULL,
00191: [DeltaPriceSale] [money] NULL,
00192: [DeltaPriceBuy] [money] NULL,
00193: [DeltaPrice1] [money] NULL,
00194: [DeltaPrice2] [money] NULL,
00195: [DeltaPrice3] [money] NULL,
00196: [DeltaPrice4] [money] NULL,
00197: [DeltaPrice5] [money] NULL,
00198: [DeltaPrice6] [money] NULL
00199: ) ON [PRIMARY]
00200:
00201: GO
00202: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('PK_PR_ChangesMaps')) DROP INDEX PR_ChangesMaps.[PK_PR_ChangesMaps]
00203: GO
00204: ALTER TABLE [dbo].[PR_ChangesMaps] ADD CONSTRAINT [PK_PR_ChangesMaps] PRIMARY KEY CLUSTERED
00205: (
00206: [i] ASC
00207: ) ON [PRIMARY]
00208: GO
00209:
00210: SET ANSI_NULLS ON
00211: GO
00212: SET QUOTED_IDENTIFIER ON
00213: GO
00214: CREATE TABLE [dbo].[PR_CheckTovarName](
00215: [i] [int] IDENTITY(1,1) NOT NULL,
00216: [ToClissifierList] [int] NOT NULL,
00217: [ToGroup] [int] NULL,
00218: [Key1] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00219: [And1] [nvarchar](1) COLLATE Cyrillic_General_CI_AS NULL,
00220: [Ne1] [nvarchar](2) COLLATE Cyrillic_General_CI_AS NULL,
00221: [Ne1_] [bit] NULL,
00222: [Key2] [nchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00223: [And2] [nvarchar](1) COLLATE Cyrillic_General_CI_AS NULL,
00224: [Ne2] [nvarchar](2) COLLATE Cyrillic_General_CI_AS NULL,
00225: [Ne2_] [bit] NULL,
00226: [Key3] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00227: [Reg] [nvarchar](3) COLLATE Cyrillic_General_CI_AS NULL,
00228: [Reg_] [bit] NULL
00229: ) ON [PRIMARY]
00230:
00231: GO
00232: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('PK_PR_CheckTovarName')) DROP INDEX PR_CheckTovarName.[PK_PR_CheckTovarName]
00233: GO
00234: ALTER TABLE [dbo].[PR_CheckTovarName] ADD CONSTRAINT [PK_PR_CheckTovarName] PRIMARY KEY CLUSTERED
00235: (
00236: [i] ASC
00237: ) ON [PRIMARY]
00238: GO
00239:
00240: SET ANSI_NULLS ON
00241: GO
00242: SET QUOTED_IDENTIFIER ON
00243: GO
00244: CREATE TABLE [dbo].[PR_ClassifierList](
00245: [id] [int] IDENTITY(1,1) NOT NULL,
00246: [Type] [int] NULL,
00247: [Name] [nvarchar](100) COLLATE Cyrillic_General_CI_AS NULL,
00248: [GroupID] [int] NULL,
00249: [ImageKey] [nvarchar](6) COLLATE Cyrillic_General_CI_AS NOT NULL,
00250: [Description] [nvarchar](250) COLLATE Cyrillic_General_CI_AS NULL,
00251: [OrdinalNo] [int] NULL
00252: ) ON [PRIMARY]
00253:
00254: GO
00255: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('PK_PR_ClassifierList')) DROP INDEX PR_ClassifierList.[PK_PR_ClassifierList]
00256: GO
00257:
00258: ALTER TABLE [dbo].[PR_ClassifierList] ADD CONSTRAINT [PK_PR_ClassifierList] PRIMARY KEY CLUSTERED
00259: (
00260: [id] ASC
00261: ) ON [PRIMARY]
00262: GO
00263: GO
00264: SET ANSI_NULLS ON
00265: GO
00266: SET QUOTED_IDENTIFIER ON
00267: GO
00268: CREATE TABLE [dbo].[PR_ClassSET](
00269: [i] [int] IDENTITY(1,1) NOT NULL,
00270: [CurrentUser] [int] NOT NULL,
00271: [Enable] [bit] NOT NULL,
00272: [ToClass] [int] NOT NULL
00273: ) ON [PRIMARY]
00274:
00275: GO
00276: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassSet_index')) DROP INDEX PR_ClassSET.[PR_ClassSet_index]
00277: GO
00278: CREATE NONCLUSTERED INDEX [PR_ClassSet_index] ON [dbo].[PR_ClassSET]
00279: (
00280: [CurrentUser] ASC
00281: ) ON [PRIMARY]
00282: GO
00283: SET ANSI_NULLS ON
00284: GO
00285: SET QUOTED_IDENTIFIER ON
00286: GO
00287: CREATE TABLE [dbo].[PR_ClassifierMM](
00288: [id] [int] IDENTITY(1,1) NOT NULL,
00289: [ToPrice] [int] NULL,
00290: [ToClass] [int] NULL
00291: ) ON [PRIMARY]
00292:
00293: GO
00294: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ClassifierMM]')) DROP INDEX PR_ClassifierMM.[PK_PR_ClassifierMM]
00295: GO
00296: ALTER TABLE [dbo].[PR_ClassifierMM] ADD CONSTRAINT [PK_PR_ClassifierMM] PRIMARY KEY CLUSTERED
00297: (
00298: [id] ASC
00299: ) ON [PRIMARY]
00300: GO
00301:
00302: SET ANSI_NULLS ON
00303: GO
00304: SET QUOTED_IDENTIFIER ON
00305: GO
00306: CREATE TABLE [dbo].[PR_ClassTypeList](
00307: [id] [int] IDENTITY(1,1) NOT NULL,
00308: [Name] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00309: [OrdinalNo] [int] NOT NULL,
00310: [ImageKey] [nvarchar](6) COLLATE Cyrillic_General_CI_AS NOT NULL,
00311: [IsBrend] [bit] NOT NULL,
00312: [IsMagazin] [bit] NOT NULL,
00313: [IsKategory] [bit] NOT NULL,
00314: [IsSubGroup] [bit] NOT NULL,
00315: [IsDetails] [bit] NOT NULL
00316: ) ON [PRIMARY]
00317:
00318: GO
00319: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ClassTypeList]')) DROP INDEX PR_ClassTypeList.[PK_PR_ClassTypeList]
00320: GO
00321: ALTER TABLE [dbo].[PR_ClassTypeList] ADD CONSTRAINT [PK_PR_ClassTypeList] PRIMARY KEY CLUSTERED
00322: (
00323: [id] ASC
00324: ) ON [PRIMARY]
00325: GO
00326:
00327: SET ANSI_NULLS ON
00328: GO
00329: SET QUOTED_IDENTIFIER ON
00330: GO
00331: CREATE TABLE [dbo].[PR_CorrelateMap](
00332: [i] [int] IDENTITY(1,1) NOT NULL,
00333: [ToImport] [int] NULL,
00334: [ToTrPrice] [int] NULL,
00335: [ToSuppPrice] [int] NULL,
00336: [ONE] AS ((CONVERT([varchar],[ToTRPrice],0)+'_')+CONVERT([varchar],[ToSuppPrice],0)),
00337: [Difference] AS ((((((((((((([DiffSale]+[DiffBuy])+[DiffName])+[DiffDesc])+[DiffUrl])+[DiffArt])+[DiffPath1])+[DiffPath2])+[DiffPath3])+[DiffPath4])+[DiffPath5])+[DiffPath6])+[DiffPath7])+[DiffPath8]),
00338: [DiffSale] [money] NULL,
00339: [DiffBuy] [money] NULL,
00340: [DiffName] [int] NULL,
00341: [DiffDesc] [int] NULL,
00342: [DiffUrl] [int] NULL,
00343: [DiffArt] [int] NULL,
00344: [DiffPath1] [int] NULL,
00345: [DiffPath2] [int] NULL,
00346: [DiffPath3] [int] NULL,
00347: [DiffPath4] [int] NULL,
00348: [DiffPath5] [int] NULL,
00349: [DiffPath6] [int] NULL,
00350: [DiffPath7] [int] NULL,
00351: [DiffPath8] [int] NULL
00352: ) ON [PRIMARY]
00353:
00354: GO
00355: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[IX_PR_CorrelateMap]')) DROP INDEX PR_CorrelateMap.[IX_PR_CorrelateMap]
00356: GO
00357: ALTER TABLE [dbo].[PR_CorrelateMap] ADD CONSTRAINT [IX_PR_CorrelateMap] UNIQUE NONCLUSTERED
00358: (
00359: [ONE] ASC
00360: ) ON [PRIMARY]
00361: GO
00362: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_CorrelateMap]')) DROP INDEX PR_CorrelateMap.[PK_PR_CorrelateMap]
00363: GO
00364: ALTER TABLE [dbo].[PR_CorrelateMap] ADD CONSTRAINT [PK_PR_CorrelateMap] PRIMARY KEY CLUSTERED
00365: (
00366: [i] ASC
00367: ) ON [PRIMARY]
00368: GO
00369:
00370: SET ANSI_NULLS ON
00371: GO
00372: SET QUOTED_IDENTIFIER ON
00373: GO
00374: CREATE TABLE [dbo].[PR_DEBUG_FindClassifier](
00375: [i] [int] IDENTITY(1,1) NOT NULL,
00376: [IsSubGroup] [int] NULL,
00377: [PrCheck_Result] [int] NULL,
00378: [Summary] [nvarchar](4000) COLLATE Cyrillic_General_CI_AS NULL,
00379: [PR_CheckTovarName_ToClassifierList] [int] NULL,
00380: [PR_CheckTovarName_ToGroup] [int] NULL,
00381: [ModelName] [nvarchar](4000) COLLATE Cyrillic_General_CI_AS NULL,
00382: [PR_CheckTovarName_Key1] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00383: [PR_CheckTovarName_Ne1_] [bit] NULL,
00384: [PR_CheckTovarName_Key2] [nchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00385: [PR_CheckTovarName_Ne2_] [bit] NULL,
00386: [PR_CheckTovarName_Key3] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00387: [PR_CheckTovarName_Reg_] [bit] NULL,
00388: [GroupID] [int] NULL
00389: ) ON [PRIMARY]
00390:
00391: GO
00392: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_DEBUG_FindClassifier]')) DROP INDEX PR_DEBUG_FindClassifier.[PK_PR_DEBUG_FindClassifier]
00393: GO
00394: ALTER TABLE [dbo].[PR_DEBUG_FindClassifier] ADD CONSTRAINT [PK_PR_DEBUG_FindClassifier] PRIMARY KEY CLUSTERED
00395: (
00396: [i] ASC
00397: ) ON [PRIMARY]
00398: GO
00399:
00400: SET ANSI_NULLS ON
00401: GO
00402: SET QUOTED_IDENTIFIER ON
00403: GO
00404: CREATE TABLE [dbo].[PR_Groups](
00405: [id] [int] IDENTITY(1,1) NOT NULL,
00406: [Name] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00407: [OrdinalNo] [int] NULL,
00408: [ImageKey] [nvarchar](6) COLLATE Cyrillic_General_CI_AS NULL
00409: ) ON [PRIMARY]
00410:
00411: GO
00412: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_Groups]')) DROP INDEX PR_Groups.[PK_PR_Groups]
00413: GO
00414: ALTER TABLE [dbo].[PR_Groups] ADD CONSTRAINT [PK_PR_Groups] PRIMARY KEY CLUSTERED
00415: (
00416: [id] ASC
00417: ) ON [PRIMARY]
00418: GO
00419:
00420: SET ANSI_NULLS ON
00421: GO
00422: SET QUOTED_IDENTIFIER ON
00423: GO
00424: CREATE TABLE [dbo].[PR_ImportLog](
00425: [i] [int] IDENTITY(1,1) NOT NULL,
00426: [sDate] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00427: [UserID] [smallint] NULL,
00428: [Import] [int] NULL,
00429: [XlsRetCode] [int] NULL,
00430: [XlsMessage] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00431: [ChkRetCode] [int] NULL,
00432: [ChkMessage] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00433: [PosRetCode] [char](10) COLLATE Cyrillic_General_CI_AS NULL,
00434: [PosMessage] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00435: [MapRetCode] [int] NULL,
00436: [MapMessage] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00437: [MonRetCode] [int] NULL,
00438: [MonMessage] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00439: [DelMapRows] [int] NULL,
00440: [DelTrRows] [int] NULL,
00441: [DelCorRows] [int] NULL,
00442: [DelRelRows] [int] NULL
00443: ) ON [PRIMARY]
00444:
00445: GO
00446: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ImportLog]')) DROP INDEX PR_ImportLog.[PK_PR_ImportLog]
00447: GO
00448: ALTER TABLE [dbo].[PR_ImportLog] ADD CONSTRAINT [PK_PR_ImportLog] PRIMARY KEY CLUSTERED
00449: (
00450: [i] ASC
00451: ) ON [PRIMARY]
00452: GO
00453:
00454: SET ANSI_NULLS ON
00455: GO
00456: SET QUOTED_IDENTIFIER ON
00457: GO
00458: CREATE TABLE [dbo].[PR_ImportParm](
00459: [i] [int] IDENTITY(1,1) NOT NULL,
00460: [ImportName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00461: [KKID] [int] NOT NULL,
00462: [Formater] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00463: [FormaterParm] [nvarchar](3500) COLLATE Cyrillic_General_CI_AS NULL,
00464: [Srok] [int] NOT NULL,
00465: [SrokActionType] [int] NOT NULL,
00466: [PresentType] [int] NOT NULL,
00467: [ArticulType] [int] NOT NULL,
00468: [SourceType] [int] NULL,
00469: [SourceURL] [nvarchar](250) COLLATE Cyrillic_General_CI_AS NULL,
00470: [SourceCheck] [bit] NULL,
00471: [Comment] [nvarchar](300) COLLATE Cyrillic_General_CI_AS NULL,
00472: [Visible] [bit] NULL
00473: ) ON [PRIMARY]
00474:
00475: GO
00476: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ImportParm]')) DROP INDEX PR_ImportParm.[PK_PR_ImportParm]
00477: GO
00478: ALTER TABLE [dbo].[PR_ImportParm] ADD CONSTRAINT [PK_PR_ImportParm] PRIMARY KEY CLUSTERED
00479: (
00480: [i] ASC
00481: ) ON [PRIMARY]
00482: GO
00483:
00484: SET ANSI_NULLS ON
00485: GO
00486: SET QUOTED_IDENTIFIER ON
00487: GO
00488: CREATE TABLE [dbo].[PR_ImportParmAction](
00489: [id] [int] IDENTITY(1,1) NOT NULL,
00490: [Actions] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00491: [Yes_MsgAndBlock] [bit] NULL,
00492: [Yes_MsgOnly] [bit] NULL
00493: ) ON [PRIMARY]
00494:
00495: GO
00496: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PK_PR_ImportParmAction')) DROP INDEX PR_ImportParmAction.[PK_PR_ImportParmAction]
00497: GO
00498: ALTER TABLE [dbo].[PR_ImportParmAction] ADD CONSTRAINT [PK_PR_ImportParmAction] PRIMARY KEY CLUSTERED
00499: (
00500: [id] ASC
00501: )ON [PRIMARY]
00502: GO
00503: SET ANSI_NULLS ON
00504: GO
00505: SET QUOTED_IDENTIFIER ON
00506: GO
00507: CREATE TABLE [dbo].[PR_ImportParmArticul](
00508: [id] [int] IDENTITY(1,1) NOT NULL,
00509: [Articul] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00510: [Yes_Articul] [bit] NULL,
00511: [No_Articul] [bit] NULL
00512: ) ON [PRIMARY]
00513:
00514: GO
00515: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ImportParmArticul]')) DROP INDEX PR_ImportParmArticul.[PK_PR_ImportParmArticul]
00516: GO
00517: ALTER TABLE [dbo].[PR_ImportParmArticul] ADD CONSTRAINT [PK_PR_ImportParmArticul] PRIMARY KEY CLUSTERED
00518: (
00519: [id] ASC
00520: ) ON [PRIMARY]
00521: GO
00522:
00523: SET ANSI_NULLS ON
00524: GO
00525: SET QUOTED_IDENTIFIER ON
00526: GO
00527: CREATE TABLE [dbo].[PR_ImportParmPresent](
00528: [id] [int] IDENTITY(1,1) NOT NULL,
00529: [Present] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00530: [Yes_PriceOnly] [bit] NULL,
00531: [Yes_PriceFlag] [bit] NULL
00532: ) ON [PRIMARY]
00533:
00534: GO
00535: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ImportParmPresent]')) DROP INDEX PR_ImportParmPresent.[PK_PR_ImportParmPresent]
00536: GO
00537: ALTER TABLE [dbo].[PR_ImportParmPresent] ADD CONSTRAINT [PK_PR_ImportParmPresent] PRIMARY KEY CLUSTERED
00538: (
00539: [id] ASC
00540: ) ON [PRIMARY]
00541: GO
00542:
00543: SET ANSI_NULLS ON
00544: GO
00545: SET QUOTED_IDENTIFIER ON
00546: GO
00547: CREATE TABLE [dbo].[PR_ImportParmSourceType](
00548: [i] [int] IDENTITY(1,1) NOT NULL,
00549: [SourceTypeName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00550: [IsFile] [bit] NULL,
00551: [IsURL] [bit] NULL,
00552: [IsOpenFile] [bit] NULL
00553: ) ON [PRIMARY]
00554:
00555: GO
00556: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ImportParmSourceType]')) DROP INDEX PR_ImportParmSourceType.[PK_PR_ImportParmSourceType]
00557: GO
00558: ALTER TABLE [dbo].[PR_ImportParmSourceType] ADD CONSTRAINT [PK_PR_ImportParmSourceType] PRIMARY KEY CLUSTERED
00559: (
00560: [i] ASC
00561: ) ON [PRIMARY]
00562: GO
00563:
00564: SET ANSI_NULLS ON
00565: GO
00566: SET QUOTED_IDENTIFIER ON
00567: GO
00568: CREATE TABLE [dbo].[PR_List](
00569: [id] [int] IDENTITY(1,1) NOT NULL,
00570: [ModelName] [nvarchar](4000) COLLATE Cyrillic_General_CI_AS NOT NULL,
00571: [PresenseType] [int] NOT NULL,
00572: [Country] [int] NULL,
00573: [DescriptionS] [nvarchar](1000) COLLATE Cyrillic_General_CI_AS NULL,
00574: [Description] [ntext] COLLATE Cyrillic_General_CI_AS NULL,
00575: [UseFixedPrice] [bit] NOT NULL,
00576: [FixedPrice] [money] NULL,
00577: [GTD] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00578: [UseCategory] [bit] NOT NULL,
00579: [Favourite] [bit] NOT NULL,
00580: [FavColor] [int] NOT NULL,
00581: [FavComment] [nvarchar](250) COLLATE Cyrillic_General_CI_AS NULL,
00582: [ShopID] [int] NULL,
00583: [CategoryID] [int] NOT NULL
00584: ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
00585:
00586: GO
00587: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_List]')) DROP INDEX PR_List.[PK_PR_List]
00588: GO
00589: ALTER TABLE [dbo].[PR_List] ADD CONSTRAINT [PK_PR_List] PRIMARY KEY CLUSTERED
00590: (
00591: [id] ASC
00592: ) ON [PRIMARY]
00593: GO
00594:
00595: SET ANSI_NULLS ON
00596: GO
00597: SET QUOTED_IDENTIFIER ON
00598: GO
00599: CREATE TABLE [dbo].[PR_PresenceType](
00600: [id] [int] IDENTITY(1,1) NOT NULL,
00601: [Name] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00602: [OrdinalNo] [int] NULL,
00603: [ImageKey] [nvarchar](6) COLLATE Cyrillic_General_CI_AS NULL
00604: ) ON [PRIMARY]
00605:
00606: GO
00607: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_PresenceType]')) DROP INDEX PR_PresenceType.[PK_PR_PresenceType]
00608: GO
00609: ALTER TABLE [dbo].[PR_PresenceType] ADD CONSTRAINT [PK_PR_PresenceType] PRIMARY KEY CLUSTERED
00610: (
00611: [id] ASC
00612: ) ON [PRIMARY]
00613: GO
00614:
00615: SET ANSI_NULLS ON
00616: GO
00617: SET QUOTED_IDENTIFIER ON
00618: GO
00619: CREATE TABLE [dbo].[PR_ProviderList](
00620: [id] [int] IDENTITY(1,1) NOT NULL,
00621: [FormaterName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00622: [DefaultParm] [nvarchar](4000) COLLATE Cyrillic_General_CI_AS NOT NULL
00623: ) ON [PRIMARY]
00624:
00625: GO
00626: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[IX_PR_ProviderList]')) DROP INDEX PR_ProviderList.[IX_PR_ProviderList]
00627: GO
00628: ALTER TABLE [dbo].[PR_ProviderList] ADD CONSTRAINT [IX_PR_ProviderList] UNIQUE NONCLUSTERED
00629: (
00630: [FormaterName] ASC
00631: ) ON [PRIMARY]
00632: GO
00633: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ProviderList]')) DROP INDEX PR_ProviderList.[PK_PR_ProviderList]
00634: GO
00635: ALTER TABLE [dbo].[PR_ProviderList] ADD CONSTRAINT [PK_PR_ProviderList] PRIMARY KEY CLUSTERED
00636: (
00637: [id] ASC
00638: ) ON [PRIMARY]
00639: GO
00640:
00641: SET ANSI_NULLS ON
00642: GO
00643: SET QUOTED_IDENTIFIER ON
00644: GO
00645: CREATE TABLE [dbo].[PR_RelationMap](
00646: [i] [int] IDENTITY(1,1) NOT NULL,
00647: [ToTrPrice] [int] NULL,
00648: [ToSuppPrice] [int] NULL,
00649: [ONE] AS ((CONVERT([varchar],[ToTRPrice],0)+'_')+CONVERT([varchar],[ToSuppPrice],0)),
00650: [ToImport] [int] NULL
00651: ) ON [PRIMARY]
00652:
00653: GO
00654: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[IX_PR_ChangesMap]')) DROP INDEX PR_RelationMap.[IX_PR_ChangesMap]
00655: GO
00656: ALTER TABLE [dbo].[PR_RelationMap] ADD CONSTRAINT [IX_PR_ChangesMap] UNIQUE NONCLUSTERED
00657: (
00658: [ONE] ASC
00659: ) ON [PRIMARY]
00660: GO
00661: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_ChangesMap]')) DROP INDEX PR_RelationMap.[PK_PR_ChangesMap]
00662: GO
00663: ALTER TABLE [dbo].[PR_RelationMap] ADD CONSTRAINT [PK_PR_ChangesMap] PRIMARY KEY CLUSTERED
00664: (
00665: [i] ASC
00666: ) ON [PRIMARY]
00667: GO
00668:
00669: SET ANSI_NULLS ON
00670: GO
00671: SET QUOTED_IDENTIFIER ON
00672: GO
00673: CREATE TABLE [dbo].[PR_SuppPrices](
00674: [i] [int] IDENTITY(1,1) NOT NULL,
00675: [Name] [nvarchar](1000) COLLATE Cyrillic_General_CI_AS NULL,
00676: [Path] AS (((((((((([Path1]+'>>')+[Path2])+'>>')+[Path3])+'>>')+[Path4])+'>>')+[Path5])+'>>')+[Path6]),
00677: [Art] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00678: [Description] [nvarchar](1000) COLLATE Cyrillic_General_CI_AS NULL,
00679: [URL] [nvarchar](300) COLLATE Cyrillic_General_CI_AS NULL,
00680: [PriceSale] [money] NULL,
00681: [PriceBuy] [money] NULL,
00682: [Price1] [money] NULL,
00683: [Price2] [money] NULL,
00684: [Price3] [money] NULL,
00685: [Price4] [money] NULL,
00686: [Price5] [money] NULL,
00687: [Price6] [money] NULL,
00688: [PriceDate] [datetime] NULL,
00689: [ImportDate] [datetime] NULL,
00690: [Warranty] [int] NULL,
00691: [Path1] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00692: [Path2] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00693: [Path3] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00694: [Path4] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00695: [Path5] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00696: [Path6] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00697: [Path7] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00698: [Path8] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00699: [Presence] [int] NULL,
00700: [Status] [int] NULL,
00701: [PRID] [int] NULL,
00702: [ImportLogID] [int] NULL,
00703: [Supp] [int] NULL
00704: ) ON [PRIMARY]
00705:
00706: GO
00707: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_SuppPrices]')) DROP INDEX PR_SuppPrices.[PK_PR_SuppPrices]
00708: GO
00709: ALTER TABLE [dbo].[PR_SuppPrices] ADD CONSTRAINT [PK_PR_SuppPrices] PRIMARY KEY CLUSTERED
00710: (
00711: [i] ASC
00712: ) ON [PRIMARY]
00713: GO
00714:
00715: SET ANSI_NULLS ON
00716: GO
00717: SET QUOTED_IDENTIFIER ON
00718: GO
00719: CREATE TABLE [dbo].[PR_TrPrice](
00720: [i] [int] IDENTITY(1,1) NOT NULL,
00721: [Import] [int] NULL,
00722: [Name] [nvarchar](1000) COLLATE Cyrillic_General_CI_AS NULL,
00723: [Path] AS (((((((((([Path1]+'>>')+[Path2])+'>>')+[Path3])+'>>')+[Path4])+'>>')+[Path5])+'>>')+[Path6]),
00724: [Art] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NULL,
00725: [Availability] [int] NULL,
00726: [Description] [nvarchar](1000) COLLATE Cyrillic_General_CI_AS NULL,
00727: [URL] [nvarchar](300) COLLATE Cyrillic_General_CI_AS NULL,
00728: [PriceSale] [money] NULL,
00729: [PriceBuy] [money] NULL,
00730: [Price1] [money] NULL,
00731: [Price2] [money] NULL,
00732: [Price3] [money] NULL,
00733: [Price4] [money] NULL,
00734: [Price5] [money] NULL,
00735: [Price6] [money] NULL,
00736: [PriceDate] [datetime] NULL,
00737: [ImportDate] [datetime] NULL,
00738: [Warranty] [int] NULL,
00739: [Path1] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00740: [Path2] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00741: [Path3] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00742: [Path4] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00743: [Path5] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00744: [Path6] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00745: [Path7] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00746: [Path8] [nvarchar](500) COLLATE Cyrillic_General_CI_AS NULL,
00747: [MapStatus] [int] NULL
00748: ) ON [PRIMARY]
00749:
00750: GO
00751: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[PK_PR_TrPrice]')) DROP INDEX PR_TrPrice.[PK_PR_TrPrice]
00752: GO
00753: ALTER TABLE [dbo].[PR_TrPrice] ADD CONSTRAINT [PK_PR_TrPrice] PRIMARY KEY CLUSTERED
00754: (
00755: [i] ASC
00756: ) ON [PRIMARY]
00757: GO
00758:
00759: SET ANSI_NULLS ON
00760: GO
00761: SET QUOTED_IDENTIFIER ON
00762: GO
00763: CREATE TABLE [dbo].[PR_ST_Classifier](
00764: [id] [int] NULL,
00765: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00766: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00767: [OrdinalNo] [int] NOT NULL,
00768: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00769: [TabIndex] [int] NOT NULL,
00770: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00771: [Width] [int] NOT NULL,
00772: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00773: [IsID] [bit] NOT NULL,
00774: [HeaderAlignment] [int] NOT NULL,
00775: [DataAlignment] [int] NOT NULL,
00776: [EditType] [int] NOT NULL,
00777: [MinWidth] [int] NOT NULL,
00778: [MinValue] [int] NOT NULL,
00779: [MaxValue] [int] NOT NULL,
00780: [DecimalPlaces] [int] NOT NULL
00781: ) ON [PRIMARY]
00782:
00783: GO
00784:
00785: SET ANSI_NULLS ON
00786: GO
00787: SET QUOTED_IDENTIFIER ON
00788: GO
00789: CREATE TABLE [dbo].[PR_ST_GetCheckTovarName](
00790: [id] [int] NULL,
00791: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00792: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00793: [OrdinalNo] [int] NOT NULL,
00794: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00795: [TabIndex] [int] NOT NULL,
00796: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00797: [Width] [int] NOT NULL,
00798: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00799: [IsID] [bit] NOT NULL,
00800: [HeaderAlignment] [int] NOT NULL,
00801: [DataAlignment] [int] NOT NULL,
00802: [EditType] [int] NOT NULL,
00803: [MinWidth] [int] NOT NULL,
00804: [MinValue] [int] NOT NULL,
00805: [MaxValue] [int] NOT NULL,
00806: [DecimalPlaces] [int] NOT NULL
00807: ) ON [PRIMARY]
00808:
00809: GO
00810:
00811: SET ANSI_NULLS ON
00812: GO
00813: SET QUOTED_IDENTIFIER ON
00814: GO
00815: CREATE TABLE [dbo].[PR_ST_Group](
00816: [id] [int] NULL,
00817: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00818: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00819: [OrdinalNo] [int] NOT NULL,
00820: [IsLoadForSortingToCombobox] [bit] NOT NULL,
00821: [TabIndex] [int] NOT NULL,
00822: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00823: [Width] [int] NOT NULL,
00824: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00825: [IsID] [bit] NOT NULL,
00826: [HeaderAlignment] [int] NOT NULL,
00827: [DataAlignment] [int] NOT NULL,
00828: [EditType] [int] NOT NULL,
00829: [MinWidth] [int] NOT NULL,
00830: [MinValue] [int] NOT NULL,
00831: [MaxValue] [int] NOT NULL,
00832: [DecimalPlaces] [int] NOT NULL
00833: ) ON [PRIMARY]
00834:
00835: GO
00836:
00837: SET ANSI_NULLS ON
00838: GO
00839: SET QUOTED_IDENTIFIER ON
00840: GO
00841: CREATE TABLE [dbo].[PR_ST_ImportLog](
00842: [id] [smallint] NOT NULL,
00843: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00844: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00845: [OrdinalNo] [int] NOT NULL,
00846: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00847: [TabIndex] [int] NOT NULL,
00848: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00849: [Width] [int] NOT NULL,
00850: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00851: [IsID] [bit] NOT NULL,
00852: [HeaderAlignment] [int] NOT NULL,
00853: [DataAlignment] [int] NOT NULL,
00854: [EditType] [int] NOT NULL,
00855: [MinWidth] [int] NOT NULL,
00856: [MinValue] [int] NOT NULL,
00857: [MaxValue] [int] NOT NULL,
00858: [DecimalPlaces] [int] NOT NULL
00859: ) ON [PRIMARY]
00860:
00861: GO
00862:
00863: SET ANSI_NULLS ON
00864: GO
00865: SET QUOTED_IDENTIFIER ON
00866: GO
00867: CREATE TABLE [dbo].[PR_ST_ImportParm](
00868: [id] [smallint] NOT NULL,
00869: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00870: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00871: [OrdinalNo] [int] NOT NULL,
00872: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00873: [TabIndex] [int] NOT NULL,
00874: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00875: [Width] [int] NOT NULL,
00876: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00877: [IsID] [bit] NOT NULL,
00878: [HeaderAlignment] [int] NOT NULL,
00879: [DataAlignment] [int] NOT NULL,
00880: [EditType] [int] NOT NULL,
00881: [MinWidth] [int] NOT NULL,
00882: [MinValue] [int] NOT NULL,
00883: [MaxValue] [int] NOT NULL,
00884: [DecimalPlaces] [int] NOT NULL
00885: ) ON [PRIMARY]
00886:
00887: GO
00888:
00889: SET ANSI_NULLS ON
00890: GO
00891: SET QUOTED_IDENTIFIER ON
00892: GO
00893: CREATE TABLE [dbo].[PR_ST_PRList](
00894: [id] [int] NULL,
00895: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00896: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00897: [OrdinalNo] [int] NOT NULL,
00898: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00899: [TabIndex] [int] NOT NULL,
00900: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00901: [Width] [int] NOT NULL,
00902: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00903: [IsID] [bit] NOT NULL,
00904: [HeaderAlignment] [int] NOT NULL,
00905: [DataAlignment] [int] NOT NULL,
00906: [EditType] [int] NOT NULL,
00907: [MinWidth] [int] NOT NULL,
00908: [MinValue] [int] NOT NULL,
00909: [MaxValue] [int] NOT NULL,
00910: [DecimalPlaces] [int] NOT NULL
00911: ) ON [PRIMARY]
00912:
00913: GO
00914:
00915: SET ANSI_NULLS ON
00916: GO
00917: SET QUOTED_IDENTIFIER ON
00918: GO
00919: CREATE TABLE [dbo].[PR_ST_SuppPrice](
00920: [id] [smallint] NOT NULL,
00921: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00922: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00923: [OrdinalNo] [int] NOT NULL,
00924: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00925: [TabIndex] [int] NOT NULL,
00926: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00927: [Width] [int] NOT NULL,
00928: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00929: [IsID] [bit] NOT NULL,
00930: [HeaderAlignment] [int] NOT NULL,
00931: [DataAlignment] [int] NOT NULL,
00932: [EditType] [int] NOT NULL,
00933: [MinWidth] [int] NOT NULL,
00934: [MinValue] [int] NOT NULL,
00935: [MaxValue] [int] NOT NULL,
00936: [DecimalPlaces] [int] NOT NULL
00937: ) ON [PRIMARY]
00938:
00939: GO
00940:
00941: SET ANSI_NULLS ON
00942: GO
00943: SET QUOTED_IDENTIFIER ON
00944: GO
00945: CREATE TABLE [dbo].[PR_ST_SuppPrice1](
00946: [id] [int] NULL,
00947: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00948: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00949: [OrdinalNo] [int] NOT NULL,
00950: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00951: [TabIndex] [int] NOT NULL,
00952: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00953: [Width] [int] NOT NULL,
00954: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00955: [IsID] [bit] NOT NULL,
00956: [HeaderAlignment] [int] NOT NULL,
00957: [DataAlignment] [int] NOT NULL,
00958: [EditType] [int] NOT NULL,
00959: [MinWidth] [int] NOT NULL,
00960: [MinValue] [int] NOT NULL,
00961: [MaxValue] [int] NOT NULL,
00962: [DecimalPlaces] [int] NOT NULL
00963: ) ON [PRIMARY]
00964:
00965: GO
00966:
00967: SET ANSI_NULLS ON
00968: GO
00969: SET QUOTED_IDENTIFIER ON
00970: GO
00971: CREATE TABLE [dbo].[PR_ST_SuppPrice2](
00972: [id] [int] NULL,
00973: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00974: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00975: [OrdinalNo] [int] NOT NULL,
00976: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
00977: [TabIndex] [int] NOT NULL,
00978: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00979: [Width] [int] NOT NULL,
00980: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
00981: [IsID] [bit] NOT NULL,
00982: [HeaderAlignment] [int] NOT NULL,
00983: [DataAlignment] [int] NOT NULL,
00984: [EditType] [int] NOT NULL,
00985: [MinWidth] [int] NOT NULL,
00986: [MinValue] [int] NOT NULL,
00987: [MaxValue] [int] NOT NULL,
00988: [DecimalPlaces] [int] NOT NULL
00989: ) ON [PRIMARY]
00990:
00991: GO
00992:
00993: SET ANSI_NULLS ON
00994: GO
00995: SET QUOTED_IDENTIFIER ON
00996: GO
00997: CREATE TABLE [dbo].[PR_ST_Tree](
00998: [id] [smallint] NOT NULL,
00999: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01000: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01001: [OrdinalNo] [int] NOT NULL,
01002: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
01003: [TabIndex] [int] NOT NULL,
01004: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01005: [Width] [int] NOT NULL,
01006: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01007: [IsID] [bit] NOT NULL,
01008: [HeaderAlignment] [int] NOT NULL,
01009: [DataAlignment] [int] NOT NULL,
01010: [EditType] [int] NOT NULL,
01011: [MinWidth] [int] NOT NULL,
01012: [MinValue] [int] NOT NULL,
01013: [MaxValue] [int] NOT NULL,
01014: [DecimalPlaces] [int] NOT NULL
01015: ) ON [PRIMARY]
01016:
01017: GO
01018:
01019: SET ANSI_NULLS ON
01020: GO
01021: SET QUOTED_IDENTIFIER ON
01022: GO
01023: CREATE TABLE [dbo].[PR_ST_TrPrice](
01024: [id] [smallint] NOT NULL,
01025: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01026: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01027: [OrdinalNo] [int] NOT NULL,
01028: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
01029: [TabIndex] [int] NOT NULL,
01030: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01031: [Width] [int] NOT NULL,
01032: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01033: [IsID] [bit] NOT NULL,
01034: [HeaderAlignment] [int] NOT NULL,
01035: [DataAlignment] [int] NOT NULL,
01036: [EditType] [int] NOT NULL,
01037: [MinWidth] [int] NOT NULL,
01038: [MinValue] [int] NOT NULL,
01039: [MaxValue] [int] NOT NULL,
01040: [DecimalPlaces] [int] NOT NULL
01041: ) ON [PRIMARY]
01042:
01043: GO
01044:
01045: SET ANSI_NULLS ON
01046: GO
01047: SET QUOTED_IDENTIFIER ON
01048: GO
01049: CREATE TABLE [dbo].[PR_ST_Tree_Debug](
01050: [id] [smallint] NOT NULL,
01051: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01052: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01053: [OrdinalNo] [int] NOT NULL,
01054: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
01055: [TabIndex] [int] NOT NULL,
01056: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01057: [Width] [int] NOT NULL,
01058: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01059: [IsID] [bit] NOT NULL,
01060: [HeaderAlignment] [int] NOT NULL,
01061: [DataAlignment] [int] NOT NULL,
01062: [EditType] [int] NOT NULL,
01063: [MinWidth] [int] NOT NULL,
01064: [MinValue] [int] NOT NULL,
01065: [MaxValue] [int] NOT NULL,
01066: [DecimalPlaces] [int] NOT NULL
01067: ) ON [PRIMARY]
01068:
01069: GO
01070:
01071:
01072: SET ANSI_NULLS ON
01073: GO
01074: SET QUOTED_IDENTIFIER ON
01075: GO
01076: CREATE TABLE [dbo].[PR_ST_ChangesMap](
01077: [id] [smallint] NOT NULL,
01078: [RsFieldsName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01079: [ColumnTag] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01080: [OrdinalNo] [int] NOT NULL,
01081: [IsLoadForSortingToCombobox] [char](1) COLLATE Cyrillic_General_CI_AS NOT NULL,
01082: [TabIndex] [int] NOT NULL,
01083: [Code] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01084: [Width] [int] NOT NULL,
01085: [sName] [nvarchar](50) COLLATE Cyrillic_General_CI_AS NOT NULL,
01086: [IsID] [bit] NOT NULL,
01087: [HeaderAlignment] [int] NOT NULL,
01088: [DataAlignment] [int] NOT NULL,
01089: [EditType] [int] NOT NULL,
01090: [MinWidth] [int] NOT NULL,
01091: [MinValue] [int] NOT NULL,
01092: [MaxValue] [int] NOT NULL,
01093: [DecimalPlaces] [int] NOT NULL
01094: ) ON [PRIMARY]
01095:
01096: GO
01097:
01098:
01099: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMap_PR_ImportLog]')) ALTER TABLE PR_ChangesMap DROP CONSTRAINT [FK_PR_ChangesMap_PR_ImportLog]
01100: GO
01101: ALTER TABLE [dbo].[PR_ChangesMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMap_PR_ImportLog] FOREIGN KEY([ToImportLog])
01102: REFERENCES [PR_ImportLog] ([i])
01103: NOT FOR REPLICATION
01104: GO
01105: ALTER TABLE [dbo].[PR_ChangesMap] NOCHECK CONSTRAINT [FK_PR_ChangesMap_PR_ImportLog]
01106: GO
01107: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMap_PR_ImportParm]')) ALTER TABLE PR_ChangesMap DROP CONSTRAINT [FK_PR_ChangesMap_PR_ImportParm]
01108: GO
01109: ALTER TABLE [dbo].[PR_ChangesMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMap_PR_ImportParm] FOREIGN KEY([ToImport])
01110: REFERENCES [PR_ImportParm] ([i])
01111: NOT FOR REPLICATION
01112: GO
01113: ALTER TABLE [dbo].[PR_ChangesMap] NOCHECK CONSTRAINT [FK_PR_ChangesMap_PR_ImportParm]
01114: GO
01115: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMap_PR_SuppPrices1]')) ALTER TABLE PR_ChangesMap DROP CONSTRAINT [FK_PR_ChangesMap_PR_SuppPrices1]
01116: GO
01117: ALTER TABLE [dbo].[PR_ChangesMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMap_PR_SuppPrices1] FOREIGN KEY([ToSuppPrice])
01118: REFERENCES [PR_SuppPrices] ([i])
01119: NOT FOR REPLICATION
01120: GO
01121: ALTER TABLE [dbo].[PR_ChangesMap] NOCHECK CONSTRAINT [FK_PR_ChangesMap_PR_SuppPrices1]
01122: GO
01123: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMap_PR_TrPrice1]')) ALTER TABLE PR_ChangesMap DROP CONSTRAINT [FK_PR_ChangesMap_PR_TrPrice1]
01124: GO
01125: ALTER TABLE [dbo].[PR_ChangesMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMap_PR_TrPrice1] FOREIGN KEY([ToTrPrice])
01126: REFERENCES [PR_TrPrice] ([i])
01127: NOT FOR REPLICATION
01128: GO
01129: ALTER TABLE [dbo].[PR_ChangesMap] NOCHECK CONSTRAINT [FK_PR_ChangesMap_PR_TrPrice1]
01130: GO
01131:
01132: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMaps_PR_ImportLog]')) ALTER TABLE PR_ChangesMaps DROP CONSTRAINT [FK_PR_ChangesMaps_PR_ImportLog]
01133: GO
01134: ALTER TABLE [dbo].[PR_ChangesMaps] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMaps_PR_ImportLog] FOREIGN KEY([ToImportLog])
01135: REFERENCES [PR_ImportLog] ([i])
01136: NOT FOR REPLICATION
01137: GO
01138: ALTER TABLE [dbo].[PR_ChangesMaps] NOCHECK CONSTRAINT [FK_PR_ChangesMaps_PR_ImportLog]
01139: GO
01140: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMaps_PR_ImportParm]')) ALTER TABLE PR_ChangesMaps DROP CONSTRAINT [FK_PR_ChangesMaps_PR_ImportParm]
01141: GO
01142: ALTER TABLE [dbo].[PR_ChangesMaps] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMaps_PR_ImportParm] FOREIGN KEY([ToImport])
01143: REFERENCES [PR_ImportParm] ([i])
01144: NOT FOR REPLICATION
01145: GO
01146: ALTER TABLE [dbo].[PR_ChangesMaps] NOCHECK CONSTRAINT [FK_PR_ChangesMaps_PR_ImportParm]
01147: GO
01148: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMaps_PR_SuppPrices]')) ALTER TABLE PR_ChangesMaps DROP CONSTRAINT [FK_PR_ChangesMaps_PR_SuppPrices]
01149: GO
01150: ALTER TABLE [dbo].[PR_ChangesMaps] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMaps_PR_SuppPrices] FOREIGN KEY([ToPosition])
01151: REFERENCES [PR_SuppPrices] ([i])
01152: NOT FOR REPLICATION
01153: GO
01154: ALTER TABLE [dbo].[PR_ChangesMaps] NOCHECK CONSTRAINT [FK_PR_ChangesMaps_PR_SuppPrices]
01155: GO
01156:
01157: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_CheckTovarName_PR_ClassifierList]')) ALTER TABLE PR_CheckTovarName DROP CONSTRAINT [FK_PR_CheckTovarName_PR_ClassifierList]
01158: GO
01159: ALTER TABLE [dbo].[PR_CheckTovarName] WITH CHECK ADD CONSTRAINT [FK_PR_CheckTovarName_PR_ClassifierList] FOREIGN KEY([ToClissifierList])
01160: REFERENCES [PR_ClassifierList] ([id])
01161: GO
01162: ALTER TABLE [dbo].[PR_CheckTovarName] CHECK CONSTRAINT [FK_PR_CheckTovarName_PR_ClassifierList]
01163: GO
01164: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_CheckTovarName_PR_Groups]')) ALTER TABLE PR_CheckTovarName DROP CONSTRAINT [FK_PR_CheckTovarName_PR_Groups]
01165: GO
01166: ALTER TABLE [dbo].[PR_CheckTovarName] WITH CHECK ADD CONSTRAINT [FK_PR_CheckTovarName_PR_Groups] FOREIGN KEY([ToGroup])
01167: REFERENCES [PR_Groups] ([id])
01168: GO
01169: ALTER TABLE [dbo].[PR_CheckTovarName] CHECK CONSTRAINT [FK_PR_CheckTovarName_PR_Groups]
01170: GO
01171:
01172:
01173: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ClassifierMM_PR_ClassifierList]')) ALTER TABLE PR_ClassifierMM DROP CONSTRAINT [FK_PR_ClassifierMM_PR_ClassifierList]
01174: GO
01175: ALTER TABLE [dbo].[PR_ClassifierMM] WITH CHECK ADD CONSTRAINT [FK_PR_ClassifierMM_PR_ClassifierList] FOREIGN KEY([ToClass])
01176: REFERENCES [PR_ClassifierList] ([id])
01177: GO
01178: ALTER TABLE [dbo].[PR_ClassifierMM] CHECK CONSTRAINT [FK_PR_ClassifierMM_PR_ClassifierList]
01179: GO
01180: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ClassifierMM_PR_List]')) ALTER TABLE PR_ClassifierMM DROP CONSTRAINT [FK_PR_ClassifierMM_PR_List]
01181: GO
01182: ALTER TABLE [dbo].[PR_ClassifierMM] WITH CHECK ADD CONSTRAINT [FK_PR_ClassifierMM_PR_List] FOREIGN KEY([ToPrice])
01183: REFERENCES [PR_List] ([id])
01184: GO
01185: ALTER TABLE [dbo].[PR_ClassifierMM] CHECK CONSTRAINT [FK_PR_ClassifierMM_PR_List]
01186: GO
01187:
01188:
01189: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_CorrelateMap_PR_ImportParm]')) ALTER TABLE PR_CorrelateMap DROP CONSTRAINT [FK_PR_CorrelateMap_PR_ImportParm]
01190: GO
01191: ALTER TABLE [dbo].[PR_CorrelateMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_CorrelateMap_PR_ImportParm] FOREIGN KEY([ToImport])
01192: REFERENCES [PR_ImportParm] ([i])
01193: GO
01194: ALTER TABLE [dbo].[PR_CorrelateMap] NOCHECK CONSTRAINT [FK_PR_CorrelateMap_PR_ImportParm]
01195: GO
01196: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_CorrelateMap_PR_SuppPrices]')) ALTER TABLE PR_CorrelateMap DROP CONSTRAINT [FK_PR_CorrelateMap_PR_SuppPrices]
01197: GO
01198: ALTER TABLE [dbo].[PR_CorrelateMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_CorrelateMap_PR_SuppPrices] FOREIGN KEY([ToSuppPrice])
01199: REFERENCES [PR_SuppPrices] ([i])
01200: GO
01201: ALTER TABLE [dbo].[PR_CorrelateMap] NOCHECK CONSTRAINT [FK_PR_CorrelateMap_PR_SuppPrices]
01202: GO
01203: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_CorrelateMap_PR_TrPrice]')) ALTER TABLE PR_CorrelateMap DROP CONSTRAINT [FK_PR_CorrelateMap_PR_TrPrice]
01204: GO
01205: ALTER TABLE [dbo].[PR_CorrelateMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_CorrelateMap_PR_TrPrice] FOREIGN KEY([ToTrPrice])
01206: REFERENCES [PR_TrPrice] ([i])
01207: GO
01208: ALTER TABLE [dbo].[PR_CorrelateMap] NOCHECK CONSTRAINT [FK_PR_CorrelateMap_PR_TrPrice]
01209: GO
01210:
01211:
01212: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportLog_PR_ImportParm]')) ALTER TABLE PR_ImportLog DROP CONSTRAINT [FK_PR_ImportLog_PR_ImportParm]
01213: GO
01214: ALTER TABLE [dbo].[PR_ImportLog] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportLog_PR_ImportParm] FOREIGN KEY([Import])
01215: REFERENCES [PR_ImportParm] ([i])
01216: GO
01217: ALTER TABLE [dbo].[PR_ImportLog] NOCHECK CONSTRAINT [FK_PR_ImportLog_PR_ImportParm]
01218: GO
01219: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportLog_SY_Users]')) ALTER TABLE PR_ImportLog DROP CONSTRAINT [FK_PR_ImportLog_SY_Users]
01220: GO
01221: ALTER TABLE [dbo].[PR_ImportLog] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportLog_SY_Users] FOREIGN KEY([UserID])
01222: REFERENCES [SY_Users] ([sID])
01223: GO
01224: ALTER TABLE [dbo].[PR_ImportLog] NOCHECK CONSTRAINT [FK_PR_ImportLog_SY_Users]
01225: GO
01226:
01227:
01228: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_List_PR_ClassifierList]')) ALTER TABLE PR_List DROP CONSTRAINT [FK_PR_List_PR_ClassifierList]
01229: GO
01230: ALTER TABLE [dbo].[PR_List] WITH CHECK ADD CONSTRAINT [FK_PR_List_PR_ClassifierList] FOREIGN KEY([CategoryID])
01231: REFERENCES [PR_ClassifierList] ([id])
01232: GO
01233: ALTER TABLE [dbo].[PR_List] CHECK CONSTRAINT [FK_PR_List_PR_ClassifierList]
01234: GO
01235: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_List_PR_PresenceType]')) ALTER TABLE PR_List DROP CONSTRAINT [FK_PR_List_PR_PresenceType]
01236: GO
01237: ALTER TABLE [dbo].[PR_List] WITH CHECK ADD CONSTRAINT [FK_PR_List_PR_PresenceType] FOREIGN KEY([PresenseType])
01238: REFERENCES [PR_PresenceType] ([id])
01239: GO
01240: ALTER TABLE [dbo].[PR_List] CHECK CONSTRAINT [FK_PR_List_PR_PresenceType]
01241: GO
01242: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_List_SY_Countries]')) ALTER TABLE PR_List DROP CONSTRAINT [FK_PR_List_SY_Countries]
01243: GO
01244: ALTER TABLE [dbo].[PR_List] WITH CHECK ADD CONSTRAINT [FK_PR_List_SY_Countries] FOREIGN KEY([Country])
01245: REFERENCES [SY_Countries] ([sID])
01246: GO
01247: ALTER TABLE [dbo].[PR_List] CHECK CONSTRAINT [FK_PR_List_SY_Countries]
01248: GO
01249:
01250:
01251: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_SuppPrices_KK_Cards]')) ALTER TABLE PR_SuppPrices DROP CONSTRAINT [FK_PR_SuppPrices_KK_Cards]
01252: GO
01253: ALTER TABLE [dbo].[PR_SuppPrices] WITH NOCHECK ADD CONSTRAINT [FK_PR_SuppPrices_KK_Cards] FOREIGN KEY([Supp])
01254: REFERENCES [KK_Cards] ([sID])
01255: GO
01256: ALTER TABLE [dbo].[PR_SuppPrices] NOCHECK CONSTRAINT [FK_PR_SuppPrices_KK_Cards]
01257: GO
01258: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_SuppPrices_PR_List]')) ALTER TABLE PR_SuppPrices DROP CONSTRAINT [FK_PR_SuppPrices_PR_List]
01259: GO
01260: ALTER TABLE [dbo].[PR_SuppPrices] WITH CHECK ADD CONSTRAINT [FK_PR_SuppPrices_PR_List] FOREIGN KEY([PRID])
01261: REFERENCES [PR_List] ([id])
01262: GO
01263: ALTER TABLE [dbo].[PR_SuppPrices] CHECK CONSTRAINT [FK_PR_SuppPrices_PR_List]
01264: GO
01265:
01266:
01267: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ClassifierList_PR_ClassTypeList]')) ALTER TABLE PR_ClassifierList DROP CONSTRAINT [FK_PR_ClassifierList_PR_ClassTypeList]
01268: GO
01269: ALTER TABLE [dbo].[PR_ClassifierList] WITH CHECK ADD CONSTRAINT [FK_PR_ClassifierList_PR_ClassTypeList] FOREIGN KEY([Type])
01270: REFERENCES [PR_ClassTypeList] ([id])
01271: GO
01272: ALTER TABLE [dbo].[PR_ClassifierList] CHECK CONSTRAINT [FK_PR_ClassifierList_PR_ClassTypeList]
01273: GO
01274: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ClassifierList_PR_Groups]')) ALTER TABLE PR_ClassifierList DROP CONSTRAINT [FK_PR_ClassifierList_PR_Groups]
01275: GO
01276: ALTER TABLE [dbo].[PR_ClassifierList] WITH CHECK ADD CONSTRAINT [FK_PR_ClassifierList_PR_Groups] FOREIGN KEY([GroupID])
01277: REFERENCES [PR_Groups] ([id])
01278: GO
01279: ALTER TABLE [dbo].[PR_ClassifierList] CHECK CONSTRAINT [FK_PR_ClassifierList_PR_Groups]
01280: GO
01281:
01282:
01283: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMap_PR_SuppPrices]')) ALTER TABLE PR_RelationMap DROP CONSTRAINT [FK_PR_ChangesMap_PR_SuppPrices]
01284: GO
01285: ALTER TABLE [dbo].[PR_RelationMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMap_PR_SuppPrices] FOREIGN KEY([ToSuppPrice])
01286: REFERENCES [PR_SuppPrices] ([i])
01287: GO
01288: ALTER TABLE [dbo].[PR_RelationMap] NOCHECK CONSTRAINT [FK_PR_ChangesMap_PR_SuppPrices]
01289: GO
01290: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ChangesMap_PR_TrPrice]')) ALTER TABLE PR_RelationMap DROP CONSTRAINT [FK_PR_ChangesMap_PR_TrPrice]
01291: GO
01292: ALTER TABLE [dbo].[PR_RelationMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_ChangesMap_PR_TrPrice] FOREIGN KEY([ToTrPrice])
01293: REFERENCES [PR_TrPrice] ([i])
01294: GO
01295: ALTER TABLE [dbo].[PR_RelationMap] NOCHECK CONSTRAINT [FK_PR_ChangesMap_PR_TrPrice]
01296: GO
01297: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_RelationMap_PR_ImportParm]')) ALTER TABLE PR_RelationMap DROP CONSTRAINT [FK_PR_RelationMap_PR_ImportParm]
01298: GO
01299: ALTER TABLE [dbo].[PR_RelationMap] WITH NOCHECK ADD CONSTRAINT [FK_PR_RelationMap_PR_ImportParm] FOREIGN KEY([ToImport])
01300: REFERENCES [PR_ImportParm] ([i])
01301: GO
01302: ALTER TABLE [dbo].[PR_RelationMap] NOCHECK CONSTRAINT [FK_PR_RelationMap_PR_ImportParm]
01303: GO
01304:
01305:
01306: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportParm_KK_Cards]')) ALTER TABLE PR_ImportParm DROP CONSTRAINT [FK_PR_ImportParm_KK_Cards]
01307: GO
01308: ALTER TABLE [dbo].[PR_ImportParm] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportParm_KK_Cards] FOREIGN KEY([KKID])
01309: REFERENCES [KK_Cards] ([sID])
01310: NOT FOR REPLICATION
01311: GO
01312: ALTER TABLE [dbo].[PR_ImportParm] NOCHECK CONSTRAINT [FK_PR_ImportParm_KK_Cards]
01313: GO
01314: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportParm_PR_ImportParmAction]')) ALTER TABLE PR_ImportParm DROP CONSTRAINT [FK_PR_ImportParm_PR_ImportParmAction]
01315: GO
01316: ALTER TABLE [dbo].[PR_ImportParm] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportParm_PR_ImportParmAction] FOREIGN KEY([SrokActionType])
01317: REFERENCES [PR_ImportParmAction] ([id])
01318: GO
01319: ALTER TABLE [dbo].[PR_ImportParm] NOCHECK CONSTRAINT [FK_PR_ImportParm_PR_ImportParmAction]
01320: GO
01321: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportParm_PR_ImportParmArticul]')) ALTER TABLE PR_ImportParm DROP CONSTRAINT [FK_PR_ImportParm_PR_ImportParmArticul]
01322: GO
01323: ALTER TABLE [dbo].[PR_ImportParm] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportParm_PR_ImportParmArticul] FOREIGN KEY([ArticulType])
01324: REFERENCES [PR_ImportParmArticul] ([id])
01325: GO
01326: ALTER TABLE [dbo].[PR_ImportParm] NOCHECK CONSTRAINT [FK_PR_ImportParm_PR_ImportParmArticul]
01327: GO
01328: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportParm_PR_ImportParmPresent]')) ALTER TABLE PR_ImportParm DROP CONSTRAINT [FK_PR_ImportParm_PR_ImportParmPresent]
01329: GO
01330: ALTER TABLE [dbo].[PR_ImportParm] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportParm_PR_ImportParmPresent] FOREIGN KEY([PresentType])
01331: REFERENCES [PR_ImportParmPresent] ([id])
01332: GO
01333: ALTER TABLE [dbo].[PR_ImportParm] NOCHECK CONSTRAINT [FK_PR_ImportParm_PR_ImportParmPresent]
01334: GO
01335: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportParm_PR_ImportParmSourceType]')) ALTER TABLE PR_ImportParm DROP CONSTRAINT [FK_PR_ImportParm_PR_ImportParmSourceType]
01336: GO
01337: ALTER TABLE [dbo].[PR_ImportParm] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportParm_PR_ImportParmSourceType] FOREIGN KEY([SourceType])
01338: REFERENCES [PR_ImportParmSourceType] ([i])
01339: GO
01340: ALTER TABLE [dbo].[PR_ImportParm] NOCHECK CONSTRAINT [FK_PR_ImportParm_PR_ImportParmSourceType]
01341: GO
01342: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_ImportParm_PR_ProviderList]')) ALTER TABLE PR_ImportParm DROP CONSTRAINT [FK_PR_ImportParm_PR_ProviderList]
01343: GO
01344: ALTER TABLE [dbo].[PR_ImportParm] WITH NOCHECK ADD CONSTRAINT [FK_PR_ImportParm_PR_ProviderList] FOREIGN KEY([Formater])
01345: REFERENCES [PR_ProviderList] ([FormaterName])
01346: NOT FOR REPLICATION
01347: GO
01348: ALTER TABLE [dbo].[PR_ImportParm] NOCHECK CONSTRAINT [FK_PR_ImportParm_PR_ProviderList]
01349: GO
01350:
01351: IF EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID('[FK_PR_TrPrice_PR_ImportParm]')) ALTER TABLE PR_TrPrice DROP CONSTRAINT [FK_PR_TrPrice_PR_ImportParm]
01352: GO
01353: ALTER TABLE [dbo].[PR_TrPrice] WITH NOCHECK ADD CONSTRAINT [FK_PR_TrPrice_PR_ImportParm] FOREIGN KEY([Import])
01354: REFERENCES [PR_ImportParm] ([i])
01355: GO
01356: ALTER TABLE [dbo].[PR_TrPrice] NOCHECK CONSTRAINT [FK_PR_TrPrice_PR_ImportParm]
01357: GO
01358:
01359: IF EXISTS (SELECT * FROM sysobjects WHERE name =('FK_PR_ClassSET_PR_ClassifierList')) ALTER TABLE PR_ClassSET DROP CONSTRAINT [FK_PR_ClassSET_PR_ClassifierList]
01360: GO
01361: ALTER TABLE [dbo].[PR_ClassSET] WITH CHECK ADD CONSTRAINT [FK_PR_ClassSET_PR_ClassifierList] FOREIGN KEY([ToClass])
01362: REFERENCES [PR_ClassifierList] ([id])
01363: GO
01364: ALTER TABLE [dbo].[PR_ClassSET] CHECK CONSTRAINT [FK_PR_ClassSET_PR_ClassifierList]
01365: GO
01366:
01367:
01368: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_Classifier')) DROP VIEW [dbo].[PR_Classifier]
01369: GO
01370: SET ANSI_NULLS ON
01371: GO
01372: SET QUOTED_IDENTIFIER ON
01373: GO
01374: CREATE VIEW dbo.PR_Classifier
01375: AS
01376: SELECT TOP 1000 dbo.PR_ClassifierList.id, dbo.PR_ClassifierList.Name, dbo.PR_ClassifierList.Description, dbo.SY_Image.[Key] AS ImageKey,
01377: dbo.SY_Image.Image, dbo.PR_ClassTypeList.Name AS TypeName, dbo.PR_ClassTypeList.id AS Type, dbo.PR_ClassTypeList.ImageKey AS TypeKey,
01378: dbo.PR_ClassTypeList.IsBrend, dbo.PR_ClassTypeList.IsMagazin, dbo.PR_ClassTypeList.IsKategory, dbo.PR_ClassTypeList.IsSubGroup,
01379: dbo.PR_ClassTypeList.IsDetails, TypeImage.Image AS TypeImage, dbo.PR_Groups.Name AS GroupName, dbo.PR_Groups.id AS [Group],
01380: dbo.PR_Groups.ImageKey AS GroupKey, GroupImage.Image AS GroupImage
01381: FROM dbo.SY_Image INNER JOIN
01382: dbo.PR_ClassifierList ON dbo.SY_Image.[Key] = dbo.PR_ClassifierList.ImageKey INNER JOIN
01383: dbo.PR_ClassTypeList ON dbo.PR_ClassTypeList.id = dbo.PR_ClassifierList.Type INNER JOIN
01384: dbo.PR_Groups ON dbo.PR_Groups.id = dbo.PR_ClassifierList.GroupID INNER JOIN
01385: dbo.SY_Image AS GroupImage ON GroupImage.[Key] = dbo.PR_Groups.ImageKey INNER JOIN
01386: dbo.SY_Image AS TypeImage ON TypeImage.[Key] = dbo.PR_ClassTypeList.ImageKey
01387: ORDER BY dbo.PR_ClassTypeList.OrdinalNo
01388:
01389:
01390: GO
01391:
01392: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_Class')) DROP VIEW [dbo].[PR_Class]
01393: GO
01394: SET ANSI_NULLS ON
01395: GO
01396: SET QUOTED_IDENTIFIER ON
01397: GO
01398: create View PR_Class
01399: as
01400: SELECT dbo.PR_ClassifierList.id, dbo.PR_ClassifierList.Name, dbo.PR_ClassifierList.Description, dbo.SY_Image.[Key] AS ImageKey,
01401: dbo.PR_ClassTypeList.Name AS TypeName, dbo.PR_ClassTypeList.id AS Type, dbo.PR_ClassTypeList.ImageKey AS TypeKey,
01402: dbo.PR_ClassTypeList.IsBrend, dbo.PR_ClassTypeList.IsMagazin, dbo.PR_ClassTypeList.IsKategory, dbo.PR_ClassTypeList.IsSubGroup,
01403: dbo.PR_ClassTypeList.IsDetails, dbo.PR_Groups.Name AS GroupName, dbo.PR_Groups.id AS [Group],
01404: dbo.PR_Groups.ImageKey AS GroupKey
01405: FROM dbo.SY_Image INNER JOIN
01406: dbo.PR_ClassifierList ON dbo.SY_Image.[Key] = dbo.PR_ClassifierList.ImageKey INNER JOIN
01407: dbo.PR_ClassTypeList ON dbo.PR_ClassTypeList.id = dbo.PR_ClassifierList.Type INNER JOIN
01408: dbo.PR_Groups ON dbo.PR_Groups.id = dbo.PR_ClassifierList.GroupID
01409:
01410: GO
01411:
01412:
01413: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_Check')) DROP FUNCTION [dbo].[PR_Check]
01414: GO
01415: SET ANSI_NULLS ON
01416: GO
01417: SET QUOTED_IDENTIFIER ON
01418: GO
01419:
01420: CREATE FUNCTION [dbo].[PR_Check]
01421: (
01422: @ModelName nvarchar(4000),
01423: @Key1 nvarchar(50) = NULL,
01424: @Ne2 bit=0,
01425: @Key2 nvarchar(50) = NULL,
01426: @Ne3 bit=0,
01427: @Key3 nvarchar(50) = NULL,
01428: @Reg bit=0
01429: )
01430: RETURNS int
01431: --
01432: --select dbo.PR_Check ('qweqwr fdsfd 125', '125', 1, 'fdsfd', 0, 'qweqwr',1)
01433: --select dbo.PR_Check ('qweqwr fdsfd 125', '125', 0, 'fdsfd', default, default,0)
01434: --select dbo.PR_Check ('qweqwr fdsfd 125', '125', NULL, NULL, NULL, NULL,NULL)
01435: AS
01436: BEGIN
01437: If @Reg=1
01438: If ISNULL(@Key1,'')<>''
01439: If Charindex(@Key1 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) > 0
01440: If ISNULL(@Key2,'')=''
01441: Return 1
01442: else
01443: If @Ne2=1
01444: If Charindex(@Key2 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) = 0
01445: If ISNULL(@Key3,'')=''
01446: Return 1
01447: else
01448: If @Ne3=1
01449: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) = 0
01450: Return 1
01451: else
01452: Return 0
01453: else
01454: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) > 0
01455: Return 1
01456: else
01457: Return 0
01458: else
01459: Return 0
01460: else
01461: If Charindex(@Key2 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) > 0
01462: If ISNULL(@Key3,'')=''
01463: Return 1
01464: else
01465: If @Ne3=1
01466: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) = 0
01467: Return 1
01468: else
01469: Return 0
01470: else
01471: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CS_AS ,@ModelName) > 0
01472: Return 1
01473: else
01474: Return 0
01475: else
01476: Return 0
01477: else
01478: Return 0
01479: else
01480: Return 2
01481: else
01482: If ISNULL(@Key1,'')<>''
01483: If Charindex(@Key1 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) > 0
01484: If ISNULL(@Key2,'')=''
01485: Return 1
01486: else
01487: If @Ne2=1
01488: If Charindex(@Key2 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) = 0
01489: If ISNULL(@Key3,'')=''
01490: Return 1
01491: else
01492: If @Ne3=1
01493: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) = 0
01494: Return 1
01495: else
01496: Return 0
01497: else
01498: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) > 0
01499: Return 1
01500: else
01501: Return 0
01502: else
01503: Return 0
01504: else
01505: If Charindex(@Key2 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) > 0
01506: If ISNULL(@Key3,'')=''
01507: Return 1
01508: else
01509: If @Ne3=1
01510: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) = 0
01511: Return 1
01512: else
01513: Return 0
01514: else
01515: If Charindex(@Key3 collate SQL_Latin1_General_Cp1251_CI_AS ,@ModelName) > 0
01516: Return 1
01517: else
01518: Return 0
01519: else
01520: Return 0
01521: else
01522: Return 0
01523: else
01524: Return 2
01525:
01526: Return 3
01527: END
01528:
01529: GO
01530: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_DiffWord')) DROP FUNCTION [dbo].[PR_DiffWord]
01531: GO
01532: SET ANSI_NULLS ON
01533: GO
01534: SET QUOTED_IDENTIFIER ON
01535: GO
01536:
01537: CREATE FUNCTION PR_DiffWord(@Name1 nvarchar(4000), @Name2 nvarchar(4000))
01538: RETURNS int
01539: AS BEGIN
01540: Declare @Count int
01541: select @Count=count(*) from PR_SPLIT(@Name1) as T1
01542: join PR_SPLIT(@Name2) as T2 ON T1.text=T2.Text
01543: Return(@Count)
01544: END
01545:
01546: GO
01547: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_IsEqualCost')) DROP FUNCTION [dbo].[PR_IsEqualCost]
01548: GO
01549: SET ANSI_NULLS ON
01550: GO
01551: SET QUOTED_IDENTIFIER ON
01552: GO
01553:
01554: create Function PR_IsEqualCost (
01555: @Sale1 money,
01556: @Buy1 money,
01557: @Sale2 money,
01558: @Buy2 money
01559: ) RETURNS int
01560: as
01561: --???????????????????? ???????? ?? ???????????? =1, ???????? ?????????? ??????????????????
01562: BEGIN
01563: return(1)
01564: END
01565:
01566: GO
01567: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_IsEqualTovar')) DROP FUNCTION [dbo].[PR_IsEqualTovar]
01568: GO
01569: SET ANSI_NULLS ON
01570: GO
01571: SET QUOTED_IDENTIFIER ON
01572: GO
01573: Create Function PR_IsEqualTovar (
01574: @Art1 nvarchar(50),
01575: @TovarName1 nvarchar(1000),
01576: @Art2 nvarchar(50),
01577: @TovarName2 nvarchar(1000)
01578: ) RETURNS int
01579: as
01580: BEGIN
01581: If (@TovarName1=@TovarName2) Return(0)
01582: return(1)
01583: END
01584:
01585: GO
01586: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_Split')) DROP FUNCTION [dbo].[PR_Split]
01587: GO
01588: SET ANSI_NULLS ON
01589: GO
01590: SET QUOTED_IDENTIFIER ON
01591: GO
01592:
01593: CREATE FUNCTION [dbo].[PR_Split] (@Name1 as nvarchar(1000))
RETURNS @Array TABLE (i int IDENTITY (1, 1), Text nvarchar(1000))
01594: as
01595: BEGIN
01596: Declare @EscapeChar char, @Pos1 int, @Pos2 int, @Out nvarchar(1000)
01597:
01598: Select @Pos2=1,@Pos1=0,@EscapeChar=',',@Name1=Replace(@Name1,' ' ,@EscapeChar)
01599: While @Pos2>0 BEGIN
01600:
01601: select @Pos2=CHARINDEX(@EscapeChar,@Name1,@Pos1)
01602:
01603: If @Pos2>0 BEGIN
01604: --??????????????
01605: select @Out=SUBSTRING(@Name1,@Pos1,@Pos2-@Pos1)
01606: If @Out<> ' ' INSERT @Array(Text) Values(@Out)
01607: Select @Pos1=@Pos2+1
01608: END
01609: ELSE BEGIN
01610: --???? ??????????????
01611: select @Out=SUBSTRING(@Name1,@Pos1,len(@Name1)-@Pos1+1)
01612: If @Out<> ' ' INSERT @Array(Text) Values(@Out)
01613: Select @Pos2=0
01614: END
01615: END
01616:
01617: RETURN
01618: END
01619:
01620: GO
01621: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SuppPrice')) DROP FUNCTION [dbo].[PR_SuppPrice]
01622: GO
01623: SET ANSI_NULLS ON
01624: GO
01625: SET QUOTED_IDENTIFIER ON
01626: GO
01627: CREATE FUNCTION PR_SuppPrice
01628: (
01629: @ImportNumber int
01630: )
01631: RETURNS TABLE
01632: AS
01633: RETURN
01634: (
01635: select
01636: PR_SuppPrices.i,
01637: PR_SuppPrices.Name,
01638: PR_SuppPrices.Path,
01639: PR_SuppPrices.Art,
01640: PR_SuppPrices.Description,
01641: PR_SuppPrices.URL,
01642: PR_SuppPrices.PriceSale,
01643: PR_SuppPrices.PriceBuy,
01644: PR_SuppPrices.Price1,
01645: PR_SuppPrices.Price2,
01646: PR_SuppPrices.Price3,
01647: PR_SuppPrices.Price4,
01648: PR_SuppPrices.Price5,
01649: PR_SuppPrices.Price6,
01650: PR_SuppPrices.PriceDate,
01651: PR_SuppPrices.ImportDate,
01652: PR_SuppPrices.Warranty,
01653: PR_SuppPrices.Path1,
01654: PR_SuppPrices.Path2,
01655: PR_SuppPrices.Path3,
01656: PR_SuppPrices.Path4,
01657: PR_SuppPrices.Path5,
01658: PR_SuppPrices.Path6,
01659: PR_SuppPrices.Path7,
01660: PR_SuppPrices.Path8,
01661: PR_SuppPrices.Presence,
01662: PR_SuppPrices.Status,
01663: PR_SuppPrices.PRID,
01664: PR_SuppPrices.ImportLogID,
01665: PR_SuppPrices.Supp
01666: from PR_SuppPrices join PR_ImportParm on PR_ImportParm.KKID=PR_SuppPrices.supp
01667: where PR_ImportParm.i=@ImportNumber
01668: )
01669:
01670: GO
01671:
01672:
01673: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_AddImages')) DROP PROCEDURE [dbo].[SY_AddImages]
01674: GO
01675: SET ANSI_NULLS ON
01676: GO
01677: SET QUOTED_IDENTIFIER ON
01678: GO
01679: CREATE procedure [dbo].[SY_AddImages]
01680: @Image image,
01681: @Alias as nvarchar(50) = NULL
01682: as
01683: set nocount on
01684: begin transaction
01685: insert SY_Image([Image],Alias) values(@Image,@Alias)
01686: select [Key] from SY_Image where i=scope_Identity()
01687: commit transaction
01688: Return
01689:
01690:
01691: GO
01692: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_DelUserGroupsMM')) DROP PROCEDURE [dbo].[SY_DelUserGroupsMM]
01693: GO
01694: SET ANSI_NULLS ON
01695: GO
01696: SET QUOTED_IDENTIFIER ON
01697: GO
01698: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01699: CREATE PROCEDURE SY_DelUserGroupsMM
01700: @ToUser smallint,
01701: @ToGroup smallint
01702: as
01703: delete from SY_UserGroupsMM where (ToUser=@ToUser and ToGroup=@ToGroup)
01704:
01705:
01706: GO
01707: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_GetAllImages')) DROP PROCEDURE [dbo].[SY_GetAllImages]
01708: GO
01709: SET ANSI_NULLS ON
01710: GO
01711: SET QUOTED_IDENTIFIER ON
01712: GO
01713: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01714: CREATE PROCEDURE [dbo].[SY_GetAllImages]
01715: as
01716: select * from SY_Image order by i
01717:
01718:
01719:
01720: GO
01721: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_GetOneImage')) DROP PROCEDURE [dbo].[SY_GetOneImage]
01722: GO
01723: SET ANSI_NULLS ON
01724: GO
01725: SET QUOTED_IDENTIFIER ON
01726: GO
01727: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01728: CREATE PROCEDURE SY_GetOneImage
01729: @i as int
01730: as
01731: select * from SY_Image where i=@i
01732:
01733:
01734: GO
01735: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_GetUserGroupsMM')) DROP PROCEDURE [dbo].[SY_GetUserGroupsMM]
01736: GO
01737: SET ANSI_NULLS ON
01738: GO
01739: SET QUOTED_IDENTIFIER ON
01740: GO
01741: create procedure [dbo].[SY_GetUserGroupsMM]
01742: as
01743: select * from SY_UserGroupsMM
01744:
01745: GO
01746: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_NewIdentityRecord')) DROP PROCEDURE [dbo].[SY_NewIdentityRecord]
01747: GO
01748: SET ANSI_NULLS ON
01749: GO
01750: SET QUOTED_IDENTIFIER OFF
01751: GO
01752:
01753:
01754: CREATE procedure SY_NewIdentityRecord
01755: @Table as nvarchar(50),
01756: @IDField as nvarchar(50)
01757: as
01758: declare @ret as int
01759:
01760: begin TRANSACTION
01761: exec ('insert into '+@Table+' default values')
01762: --exec ('select * from '+@Table+' where '+ @IDField+'=@@IDENTITY')
01763: set @ret=@@IDENTITY
01764: COMMIT TRANSACTION
01765:
01766: return @ret
01767:
01768:
01769: GO
01770: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_SetImageAlias')) DROP PROCEDURE [dbo].[SY_SetImageAlias]
01771: GO
01772: SET ANSI_NULLS ON
01773: GO
01774: SET QUOTED_IDENTIFIER ON
01775: GO
01776: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01777: CREATE PROCEDURE [dbo].[SY_SetImageAlias]
01778: @i as int,
01779: @Alias as nvarchar(50)
01780: as
01781: Update SY_Image Set Alias=@Alias where i=@i
01782: return @@Rowcount
01783:
01784:
01785:
01786: GO
01787: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_SetUserGroupsMM')) DROP PROCEDURE [dbo].[SY_SetUserGroupsMM]
01788: GO
01789: SET ANSI_NULLS ON
01790: GO
01791: SET QUOTED_IDENTIFIER ON
01792: GO
01793: CREATE procedure [dbo].[SY_SetUserGroupsMM]
01794: @ToUser smallint,
01795: @ToGroup smallint
01796: as
01797: select * from SY_UserGroupsMM where ToUser=@ToUser and ToGroup=@ToGroup
01798: If @@Rowcount=0
01799: insert SY_UserGroupsMM(ToUser,ToGroup) values (@ToUser,@ToGroup)
01800:
01801: GO
01802: IF EXISTS (SELECT * FROM sysobjects WHERE name=('SY_User_GetGroup')) DROP PROCEDURE [dbo].[SY_User_GetGroup]
01803: GO
01804: SET ANSI_NULLS ON
01805: GO
01806: SET QUOTED_IDENTIFIER ON
01807: GO
01808: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01809:
01810: CREATE procedure SY_User_GetGroup
01811: @CurrentUser int
01812: as
01813: select * from SY_UserGroups
01814:
01815: GO
01816: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_AddCheckTovarName')) DROP PROCEDURE [dbo].[PR_AddCheckTovarName]
01817: GO
01818: SET ANSI_NULLS ON
01819: GO
01820: SET QUOTED_IDENTIFIER ON
01821: GO
01822:
01823: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01824: CREATE PROCEDURE PR_AddCheckTovarName
01825: @Class as int
01826: as
01827: Insert PR_CheckTovarName(ToClissifierList) Values (@Class)
01828: return Scope_Identity()
01829:
01830:
01831: GO
01832: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_AddClassifier')) DROP PROCEDURE [dbo].[PR_AddClassifier]
01833: GO
01834: SET ANSI_NULLS ON
01835: GO
01836: SET QUOTED_IDENTIFIER ON
01837: GO
01838: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01839: CREATE PROCEDURE [dbo].[PR_AddClassifier]
01840: @Name nvarchar(50),
01841: @OrdinalNo int,
01842: @ImageKey nvarchar(6),
01843: @GroupName nvarchar(50),
01844: @ClassTypeName nvarchar(50),
01845: @Description nvarchar(250),
01846: @NameVP nvarchar(100),
01847: @NamePP nvarchar(100),
01848: @NameRP nvarchar(100)
01849: as
01850: Declare @GroupId int, @ClassTypeId int
01851: select @GroupID=id from PR_Groups where [name]=@GroupName
01852: select @ClassTypeId=id from PR_ClassTypeList where [name]=@ClassTypeName
01853:
01854: update [PR_ClassifierList ]set OrdinalNo=OrdinalNo+1 where OrdinalNo>@OrdinalNo
01855: INSERT INTO [PR_ClassifierList]([Name],[OrdinalNo],[ImageKey],[Type],[GroupID],Description,NameVP,NamePP,NameRP)
01856: VALUES (@Name,@OrdinalNo,@ImageKey,@ClassTypeId,@GroupID,@Description,@NameVP,@NamePP,@NameRP)
01857:
01858: return (scope_identity())
01859:
01860:
01861:
01862: GO
01863: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_AddClassType')) DROP PROCEDURE [dbo].[PR_AddClassType]
01864: GO
01865: SET ANSI_NULLS ON
01866: GO
01867: SET QUOTED_IDENTIFIER ON
01868: GO
01869: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01870: CREATE PROCEDURE [dbo].[PR_AddClassType]
01871: @Name as nvarchar(50),
01872: @OrdinalNo as int,
01873: @ImageKey nvarchar(6),
01874: @IsBrend bit,
01875: @IsMagazin bit,
01876: @IsKategory bit,
01877: @IsSubGroup bit,
01878: @IsDetails bit
01879: as
01880: update [PR_ClassTypeList] set OrdinalNo=OrdinalNo+1 where OrdinalNo>@OrdinalNo
01881: INSERT INTO [PR_ClassTypeList]([Name],[OrdinalNo],[ImageKey],IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails)
01882: VALUES (@Name,@OrdinalNo,@ImageKey,@IsBrend,@IsMagazin,@IsKategory,@IsSubGroup,@IsDetails)
01883:
01884:
01885: GO
01886: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_AddGroup')) DROP PROCEDURE [dbo].[PR_AddGroup]
01887: GO
01888: SET ANSI_NULLS ON
01889: GO
01890: SET QUOTED_IDENTIFIER ON
01891: GO
01892: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01893: CREATE PROCEDURE [dbo].[PR_AddGroup]
01894: @Name as nvarchar(50),
01895: @OrdinalNo as int,
01896: @ImageKey nvarchar(6)
01897: as
01898: update [PR_Groups] set OrdinalNo=OrdinalNo+1 where OrdinalNo>@OrdinalNo
01899: INSERT INTO [PR_Groups]([Name],[OrdinalNo],[ImageKey]) VALUES (@Name,@OrdinalNo,@ImageKey)
01900:
01901:
01902: GO
01903: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_AddPresenceType')) DROP PROCEDURE [dbo].[PR_AddPresenceType]
01904: GO
01905: SET ANSI_NULLS ON
01906: GO
01907: SET QUOTED_IDENTIFIER ON
01908: GO
01909: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01910: CREATE PROCEDURE [dbo].[PR_AddPresenceType]
01911: @Name as nvarchar(50),
01912: @OrdinalNo as int,
01913: @ImageKey nvarchar(6)
01914: as
01915: update [PR_PresenceType] set OrdinalNo=OrdinalNo+1 where OrdinalNo>@OrdinalNo
01916: INSERT INTO [PR_PresenceType]([Name],[OrdinalNo],[ImageKey]) VALUES (@Name,@OrdinalNo,@ImageKey)
01917:
01918:
01919: GO
01920: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_AddPrList')) DROP PROCEDURE [dbo].[PR_AddPrList]
01921: GO
01922: SET ANSI_NULLS ON
01923: GO
01924: SET QUOTED_IDENTIFIER ON
01925: GO
01926: CREATE PROCEDURE [dbo].[PR_AddPrList]
01927: @ModelName nvarchar(4000),
01928: @PresenseType int,
01929: @Country int,
01930: @DescriptionS nvarchar(1000),
01931: @Description ntext,
01932: @UseFixedPrice bit,
01933: @FixedPrice money,
01934: @GTD nvarchar(50),
01935: @UseCategory bit,
01936: @Favourite bit,
01937: @FavColor int,
01938: @FavComment nchar(250),
01939: @ShopID int,
01940: @CategoryID int,
01941: @WithLink int = NULL
01942: as
01943: Declare @PrID_Num as int
01944: Begin Transaction
01945: INSERT INTO [PR_List]
01946: ([ModelName]
01947: ,[PresenseType]
01948: ,[Country]
01949: ,[DescriptionS]
01950: ,[Description]
01951: ,[UseFixedPrice]
01952: ,[FixedPrice]
01953: ,[GTD]
01954: ,[UseCategory]
01955: ,[Favourite]
01956: ,[FavColor]
01957: ,[FavComment]
01958: ,[ShopID]
01959: ,[CategoryID])
01960: VALUES
01961: (@ModelName
01962: ,@PresenseType
01963: ,@Country
01964: ,@DescriptionS
01965: ,@Description
01966: ,@UseFixedPrice
01967: ,@FixedPrice
01968: ,@GTD
01969: ,@UseCategory
01970: ,@Favourite
01971: ,@FavColor
01972: ,@FavComment
01973: ,@ShopID
01974: ,@CategoryID)
01975: select @PrID_Num= Scope_Identity()
01976: If not (@WithLink is null) BEGIN
01977: exec PR_SetLinkPrToSupp @PrID=@PrID_Num , @SuppID=@WithLink
01978: END
01979: Commit
01980: return @PrID_Num
01981:
01982: GO
01983: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_CheckDuplicateArt')) DROP PROCEDURE [dbo].[PR_CheckDuplicateArt]
01984: GO
01985: SET ANSI_NULLS ON
01986: GO
01987: SET QUOTED_IDENTIFIER ON
01988: GO
01989: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01990: CREATE PROCEDURE PR_CheckDuplicateArt
01991: @ImportNumber int
01992: as
01993: select [Art], count(Art) as 'Count_art' from PR_TrPrice
01994: where Import=@ImportNumber
01995: group by [Art]
01996: having count(Art)>1
01997:
01998:
01999: GO
02000: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_CheckTovarNameChangeKey')) DROP PROCEDURE [dbo].[PR_CheckTovarNameChangeKey]
02001: GO
02002: SET ANSI_NULLS ON
02003: GO
02004: SET QUOTED_IDENTIFIER ON
02005: GO
02006: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02007: CREATE PROCEDURE PR_CheckTovarNameChangeKey
02008: @ColumnName as nvarchar(10),
02009: @i int
02010: as
02011: if @ColumnName='Ne1' Update PR_CheckTovarName SET Ne1_=(case Ne1_ when 1 then 0 else 1 end) where @i=i
02012: else if @ColumnName='Ne2' Update PR_CheckTovarName SET Ne2_=(case Ne2_ when 1 then 0 else 1 end) where @i=i
02013: else if @ColumnName='Reg' Update PR_CheckTovarName SET Reg_=(case Reg_ when 1 then 0 else 1 end) where @i=i
02014:
02015:
02016: GO
02017: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClearTable')) DROP PROCEDURE [dbo].[PR_ClearTable]
02018: GO
02019: SET ANSI_NULLS ON
02020: GO
02021: SET QUOTED_IDENTIFIER ON
02022: GO
02023: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02024: CREATE PROCEDURE PR_ClearTable
02025: @ImportNumber int,
02026: @Tab int,
02027: @DelMapRows int OUTPUT,
02028: @DelTrRows int output,
02029: @DelCorRows int output,
02030: @DelRelRows int output
02031: as
02032: --???????? ???????????????? ???????? ?? ??????????????, ???? ?????????????? PR_ImportEnd ?????????????? ?????????? ?????????????????? ??????????-????????????
02033: --Public Enum PR_ClearTable
02034: --Normal = 1 '???????????? ???????????????????????? - ?????????????? ???????????? ???? ????????
02035: --TrPrice = 2 '?????????????? ???????????? ?????? ??????????, ?? ?????????????? ???????????????? XLS-????????????????
02036: --RelationMap = 4 '?????????????? ?????????? ?????????????????????????? ?????????????? TrPrice <-> SuppPrice
02037: --ChangesMap = 8 '?????????????? ?????????? ??????????????????
02038: --CorrelateMap = 16 '?????????????? ?????? ?????????????????????????????? ??????????, ???????????????????????? ?????? ?????????????? ???????????????? ??????????????
02039: --End Enum
02040:
02041:
02042: IF (@Tab & 2)=2 BEGIN
02043: DELETE FROM PR_TrPrice WHERE Import=@ImportNumber
02044: SELECT @DelTrRows=@@RowCount
02045: END
02046:
02047: IF (@Tab & 4)=4 BEGIN
02048: DELETE FROM PR_RelationMap WHERE ToImport=@ImportNumber
02049: SELECT @DelRelRows=@@RowCount
02050: END
02051:
02052: IF (@Tab & 8)=8 BEGIN
02053: DELETE FROM PR_ChangesMap WHERE ToImport=@ImportNumber
02054: SELECT @DelMapRows=@@RowCount
02055: END
02056:
02057: IF (@Tab & 16)=16 BEGIN
02058: DELETE FROM PR_CorrelateMap WHERE ToImport=@ImportNumber
02059: SELECT @DelCorRows=@@RowCount
02060: END
02061:
02062:
02063: GO
02064: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_DEBUG_DiffWords')) DROP PROCEDURE [dbo].[PR_DEBUG_DiffWords]
02065: GO
02066: SET ANSI_NULLS ON
02067: GO
02068: SET QUOTED_IDENTIFIER ON
02069: GO
02070: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02071: CREATE PROCEDURE PR_DEBUG_DiffWords
02072: as
02073: Declare @Name1 as nvarchar(1000), @Pos1 int, @Pos2 int
02074: Select @Name1 = 'sdasd adadsa, asdasd touyitit, 6546366'
02075:
02076: Select @Pos2=1,@Pos1=0
02077: While @Pos2>0 BEGIN
02078:
02079: select @Pos2=CHARINDEX(' ',@Name1,@Pos1)
02080:
02081: If @Pos2>0 BEGIN
02082: --??????????????
02083: select @Pos1,@Pos2,SUBSTRING(@Name1,@Pos1,@Pos2-@Pos1)
02084: Select @Pos1=@Pos2+1
02085: END
02086: ELSE BEGIN
02087: --???? ??????????????
02088: select @Pos1,@Pos2,SUBSTRING(@Name1,@Pos1,len(@Name1)-@Pos1)
02089: Select @Pos2=0
02090: END
02091: END
02092: return(0)
02093:
02094:
02095: GO
02096: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_DEBUG_GetSuppPrice')) DROP PROCEDURE [dbo].[PR_DEBUG_GetSuppPrice]
02097: GO
02098: SET ANSI_NULLS ON
02099: GO
02100: SET QUOTED_IDENTIFIER ON
02101: GO
02102:
02103: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02104: CREATE PROCEDURE [dbo].[PR_DelCheckTovarName]
02105: @i as int
02106: as
02107: Delete PR_CheckTovarName where i=@i
02108: return Scope_Identity()
02109:
02110:
02111: GO
02112: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_DelClassifierMM')) DROP PROCEDURE [dbo].[PR_DelClassifierMM]
02113: GO
02114: SET ANSI_NULLS ON
02115: GO
02116: SET QUOTED_IDENTIFIER ON
02117: GO
02118: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02119: CREATE PROCEDURE PR_DelClassifierMM
02120: @ToPrice int,
02121: @ToClass int
02122: as
02123: delete from PR_ClassifierMM where ToPrice=@ToPrice and ToClass=@ToClass
02124:
02125:
02126: GO
02127: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_DelLinkInSuppPrice')) DROP PROCEDURE [dbo].[PR_DelLinkInSuppPrice]
02128: GO
02129: SET ANSI_NULLS ON
02130: GO
02131: SET QUOTED_IDENTIFIER ON
02132: GO
02133: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02134: CREATE PROCEDURE PR_DelLinkInSuppPrice
02135: @I as int
02136: as
02137: Update PR_SuppPrices SET PRID=NULL where @I=I
02138: return @@Rowcount
02139:
02140:
02141: GO
02142: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_FindClassifier_NewPosition')) DROP PROCEDURE [dbo].[PR_FindClassifier_NewPosition]
02143: GO
02144: SET ANSI_NULLS ON
02145: GO
02146: SET QUOTED_IDENTIFIER ON
02147: GO
02148: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02149: CREATE PROCEDURE [dbo].[PR_FindClassifier_NewPosition]
02150: @ModelName nvarchar(3500)
02151: as
02152: -- ???????????????? ???????????????? ?????? ?????????????????? ????????????????????????????
02153: -- select * from PR_Classifier
02154:
02155: select PR_Classifier.[id]
02156: ,PR_Classifier.[Name]
02157: ,PR_Classifier.[Description]
02158: ,PR_Classifier.[ImageKey]
02159: ,PR_Classifier.[Image]
02160: ,PR_Classifier.[TypeName]
02161: ,PR_Classifier.[Type]
02162: ,PR_Classifier.[TypeKey]
02163: ,PR_Classifier.[IsBrend]
02164: ,PR_Classifier.[IsMagazin]
02165: ,PR_Classifier.[IsKategory]
02166: ,PR_Classifier.[IsSubGroup]
02167: ,PR_Classifier.[IsDetails]
02168: ,PR_Classifier.[TypeImage]
02169: ,PR_Classifier.[GroupName]
02170: ,PR_Classifier.[Group]
02171: ,PR_Classifier.[GroupKey]
02172: ,PR_Classifier.[GroupImage]
02173: from PR_SuppPrices as Y
02174: join PR_SuppPrices as X on x.path=y.path
02175: join PR_List on X.PRID=PR_List.ID
02176: join PR_ClassifierMM on PR_ClassifierMM.ToPrice=PR_List.ID
02177: join PR_ClassifierList on PR_ClassifierList.ID=PR_ClassifierMM.ToClass
02178: join PR_Classifier on PR_Classifier.ID=PR_ClassifierMM.ToClass and ((IsMagazin=1) or (IsSubGroup=1))
02179: where Y.name=@ModelName
02180:
02181:
02182: GO
02183: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_FindClassifier_Other')) DROP PROCEDURE [dbo].[PR_FindClassifier_Other]
02184: GO
02185: SET ANSI_NULLS ON
02186: GO
02187: SET QUOTED_IDENTIFIER ON
02188: GO
02189: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02190: CREATE PROCEDURE [dbo].[PR_FindClassifier_Other]
02191: @i int =NULL, --?????????????? ??????????-??????????
02192: @PriceName nvarchar(4000)=NULL, --???????????????????????? ?????????????? ????????????
02193: --?????????????????????? ???????????????? ???????? ???? ?????????????????????????????????? ????????????????????
02194: @Yes nvarchar(3500) = NULL --???????????????? ?????????????????????????????? ?????? ?????????????????????? (???? ?????? ???????????? ???? ????????, ???? ???? ?????? ???????? ???????????????? ???????????? ?????????????? ????????????)
02195: --
02196: --exec PR_FindClassifier 8
02197: --
02198: as
02199: -- ???????????????? ???????????????? ?????? ?????????????????? ????????????????????????????
02200: -- select * from PR_Classifier
02201:
02202: Declare @Result nvarchar(4000) SELECT @Result=''
02203: --?? ?????? ???????????????????? ?????? ???????????? ?????????????? ?????????????? ???????????????????? ??????????????????
02204:
02205: set nocount on
02206: Declare @ModelName as nvarchar(4000)
02207: If (@i is null)
02208: select @ModelName=@PriceName
02209: else
02210: select @ModelName=ModelName from pr_list where id=@i
02211: --?? ???????? ?????????? ???????????? ?????????? ???????????? ????????????????
02212: if (@ModelName is null) or (@ModelName='') or (@Modelname=' ') return(-1)
02213:
02214: Declare @CheckTovarName int, @ToClissifierList int, @ToGroup int, @Key1 nvarchar(50), @Ne2 bit, @Key2 nvarchar(50), @Ne3 bit, @Key3 nvarchar(50),
02215: @Reg bit,@IsBrend bit,@IsMagazin bit,@IsKategory bit,@IsSubGroup bit,@IsDetails bit,@GroupID int, @SignedGroup int,@Classifier_STATUS int
02216: --???????? ???????????? ???????????????? ????????????????????????????, ???? ?????????????? ?????????????????? ?????????????? ???????????????? (?????? ?????? ??????????????????????)
02217: DECLARE Classifier CURSOR FOR
02218: select
02219: PR_CheckTovarName.i,
02220: PR_CheckTovarName.ToClissifierList,
02221: PR_CheckTovarName.ToGroup,
02222: PR_CheckTovarName.Key1,
02223: PR_CheckTovarName.Ne1_,
02224: PR_CheckTovarName.Key2,
02225: PR_CheckTovarName.Ne2_,
02226: PR_CheckTovarName.Key3,
02227: PR_CheckTovarName.Reg_,
02228: PR_ClassTypeList.IsBrend,
02229: PR_ClassTypeList.IsMagazin,
02230: PR_ClassTypeList.IsKategory,
02231: PR_ClassTypeList.IsSubGroup,
02232: PR_ClassTypeList.IsDetails,
02233: PR_ClassifierList.GroupID -- ?? ???????? ???????????? GroupID ?????????????????? ???????????? ?????? IsSubGroup=1, ?? ?????????????????? ?????????????? ?? ?????? ??????????
02234: from dbo.PR_Split(@Yes) as yes
02235: right outer join PR_CheckTovarName on ToClissifierList=yes.[text]
02236: join PR_ClassifierList on PR_CheckTovarName.ToClissifierList=PR_ClassifierList.id
02237: join PR_ClassTypeList on PR_ClassTypeList.id=PR_ClassifierList.[type]
02238: where (yes.i is null)
02239: --?????????? ??????????????????, ?????????????? ???????????????? ?????? ?????????? ????????????????
02240: and PR_ClassTypeList.IsSubGroup=0
02241:
02242: --?? ?????? ?????????????????????? ?????????????????????????????? ?????? ???????? ??????????????????, ?????????????????????? ?? ???????????????????? ??????????????
02243: --?????? ???????????? ???? ?????????????????????? ??????????????
02244: DECLARE SignedGroup CURSOR FOR
02245: select PR_ClassifierList.GroupID
02246: from dbo.PR_Split(@Yes) as yes
02247: join PR_ClassifierList on PR_ClassifierList.id=yes.[text]
02248: join PR_ClassTypeList on PR_ClassTypeList.id=PR_ClassifierList.[type] and PR_ClassTypeList.IsSubGroup=1
02249:
02250: Open SignedGroup
02251: FETCH NEXT FROM SignedGroup INTO @SignedGroup
02252: IF @@FETCH_STATUS <> 0 BEGIN
02253: CLOSE SignedGroup
02254: DEALLOCATE SignedGroup
02255: --???????? ?????????????????????? ???????? - ???????????????? ????????????????????
02256: Return(-3)
02257: END
02258: CLOSE SignedGroup
02259:
02260: OPEN Classifier
02261: FETCH NEXT FROM Classifier INTO @CheckTovarName, @ToClissifierList, @ToGroup, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg , @IsBrend, @IsMagazin, @IsKategory, @IsSubGroup, @IsDetails, @GroupID
02262: IF @@FETCH_STATUS <> 0 BEGIN
02263: CLOSE Classifier
02264: DEALLOCATE Classifier
02265: --???????? ??????????????????????????????, ???? ?????????????? ?????????? ?????????????????? ???????????????? ????????????????
02266: Return(-2)
02267: END
02268: select @Classifier_STATUS=@@FETCH_STATUS
02269:
02270: --?????????? ????????????????
02271: WHILE @Classifier_STATUS = 0 BEGIN
02272:
02273: If @ToGroup is NULL BEGIN
02274: --???????? ?????????????????????????? ?????????????????????? ?? ?????????? ??????????????
02275: If (dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg)=1)
02276: Select @Result=cast(@Result as nvarchar)+ cast(@ToClissifierList as nvarchar) + ' '
02277:
02278: --???????????????????? ???????????? ?? ????????????
02279: INSERT dbo.PR_DEBUG_FindClassifier
02280: select 0 as IsSubGroup, dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg) As PR_Check_Result, @Result as Summary, @ToClissifierList as PR_CheckTovarName_ToClissifierList, @ToGroup as PR_CheckTovarName_ToGroup, @ModelName as ModelName, @Key1 as PR_CheckTovarName_Key1, @Ne2 as PR_CheckTovarName_Ne2, @Key2 as PR_CheckTovarName_Key2, @Ne3 as PR_CheckTovarName_Ne3, @Key3 as PR_CheckTovarName_Key3, @Reg as PR_CheckTovarName_Reg, -1 as GroupID
02281: END
02282: else BEGIN
02283: --???????? ???????????????????????? ?????????????????????? ???????????? ?? ?????????? ????????????
02284: Open SignedGroup
02285: FETCH NEXT FROM SignedGroup INTO @SignedGroup
02286: WHILE @@FETCH_STATUS = 0 BEGIN
02287:
02288: If (dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg)=1) and @ToGroup=@SignedGroup
02289: Select @Result=cast(@Result as nvarchar)+ cast(@ToClissifierList as nvarchar) + ' '
02290: FETCH NEXT FROM SignedGroup INTO @SignedGroup
02291:
02292: --???????????????????? ???????????? ?? ????????????
02293: INSERT dbo.PR_DEBUG_FindClassifier
02294: select -1 as IsSubGroup, dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg) As PR_Check_Result, @Result as Summary, @ToClissifierList as PR_CheckTovarName_ToClissifierList, @ToGroup as PR_CheckTovarName_ToGroup, @ModelName as ModelName, @Key1 as PR_CheckTovarName_Key1, @Ne2 as PR_CheckTovarName_Ne2, @Key2 as PR_CheckTovarName_Key2, @Ne3 as PR_CheckTovarName_Ne3, @Key3 as PR_CheckTovarName_Key3, @Reg as PR_CheckTovarName_Reg, @SignedGroup as GroupID
02295:
02296: END
02297: CLOSE SignedGroup
02298: END
02299:
02300: FETCH NEXT FROM Classifier INTO @CheckTovarName, @ToClissifierList, @ToGroup, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg , @IsBrend, @IsMagazin, @IsKategory, @IsSubGroup, @IsDetails, @GroupID
02301: select @Classifier_STATUS=@@FETCH_STATUS
02302:
02303: END
02304: CLOSE Classifier
02305: DEALLOCATE Classifier
02306: DEALLOCATE SignedGroup
02307:
02308: --???????????????????? ?????????????????????????????? ?????????????????? ?? ?????????????????? ?????????????? ???? ???????????????? ?????????????? ??????????????????
02309: Select * from dbo.PR_Split(@Result) as yes join PR_Classifier on PR_Classifier.id=yes.[text]
02310:
02311:
02312:
02313:
02314:
02315:
02316:
02317: GO
02318: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_FindClassifier_Subgroup')) DROP PROCEDURE [dbo].[PR_FindClassifier_Subgroup]
02319: GO
02320: SET ANSI_NULLS ON
02321: GO
02322: SET QUOTED_IDENTIFIER ON
02323: GO
02324: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02325: CREATE PROCEDURE [dbo].[PR_FindClassifier_Subgroup]
02326: @i int =NULL, --?????????????? ??????????-??????????
02327: @PriceName nvarchar(4000)=NULL, --???????????????????????? ?????????????? ????????????
02328: --?????????????????????? ???????????????? ???????? ???? ?????????????????????????????????? ????????????????????
02329: @Yes nvarchar(3500) = NULL --???????????????? ?????????????????????????????? ?????? ?????????????????????? (???? ?????? ???????????? ?????? ???? ????????)
02330: --
02331: --exec PR_FindClassifier 8
02332: --
02333: as
02334: -- ???????????????? ???????????????? ?????? ?????????????????? ????????????????????????????
02335: -- select * from PR_Classifier
02336:
02337: Declare @Result nvarchar(4000) SELECT @Result=''
02338: --?? ?????? ???????????????????? ?????? ???????????? ?????????????? ?????????????? ???????????????????? ??????????????????
02339: set nocount on
02340:
02341: Declare @ModelName as nvarchar(4000)
02342: If (@i is null)
02343: select @ModelName=@PriceName
02344: else
02345: select @ModelName=ModelName from pr_list where id=@i
02346: --?? ???????? ?????????? ???????????? ?????????? ???????????? ????????????????
02347: if (@ModelName is null) or (@ModelName='') or (@Modelname=' ') return(-1)
02348:
02349: Declare @CheckTovarName int, @ToClissifierList int, @ToGroup int, @Key1 nvarchar(50), @Ne2 bit, @Key2 nvarchar(50), @Ne3 bit, @Key3 nvarchar(50), @Reg bit,
02350: @IsBrend bit,@IsMagazin bit,@IsKategory bit,@IsSubGroup bit,@IsDetails bit,@GroupID int
02351: --???????? ???????????? ???????????????? ????????????????????????????, ???? ?????????????? ?????????????????? ?????????????? ????????????????
02352: DECLARE Classifier CURSOR FOR
02353: select
02354: -- ?? ???????? ???????????? GroupID ?????????????????? ???????????? ?????? IsSubGroup=1, ?? ?????????????????? ?????????????? ?? ?????? ??????????
02355: PR_CheckTovarName.i,
02356: PR_CheckTovarName.ToClissifierList,
02357: PR_CheckTovarName.ToGroup,
02358: PR_CheckTovarName.Key1,
02359: PR_CheckTovarName.Ne1_,
02360: PR_CheckTovarName.Key2,
02361: PR_CheckTovarName.Ne2_,
02362: PR_CheckTovarName.Key3,
02363: PR_CheckTovarName.Reg_,
02364: PR_ClassTypeList.IsBrend,
02365: PR_ClassTypeList.IsMagazin,
02366: PR_ClassTypeList.IsKategory,
02367: PR_ClassTypeList.IsSubGroup,
02368: PR_ClassTypeList.IsDetails,
02369: PR_ClassifierList.GroupID
02370: from dbo.PR_Split(@Yes) as yes
02371: right outer join PR_CheckTovarName on ToClissifierList=yes.[text]
02372: join PR_ClassifierList on PR_CheckTovarName.ToClissifierList=PR_ClassifierList.id
02373: join PR_ClassTypeList on PR_ClassTypeList.id=PR_ClassifierList.[type]
02374: where (yes.i is null)
02375: --?????????????? ?????????? ??????????????????, ?????????????? ???????????????? ??????????????????
02376: and PR_ClassTypeList.IsSubGroup=1
02377:
02378: OPEN Classifier
02379:
02380: FETCH NEXT FROM Classifier INTO @CheckTovarName, @ToClissifierList, @ToGroup, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg , @IsBrend, @IsMagazin, @IsKategory, @IsSubGroup, @IsDetails, @GroupID
02381: IF @@FETCH_STATUS <> 0 BEGIN
02382: CLOSE Classifier
02383: DEALLOCATE Classifier
02384: Return(-2)
02385: END
02386:
02387: WHILE @@FETCH_STATUS = 0 BEGIN
02388:
02389: If @ToGroup is NULL BEGIN
02390: --???????? ?????????????????????????? ?????????????????????? ?? ?????????? ??????????????
02391: If (dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg)=1)
02392: Select @Result=cast(@Result as nvarchar)+ cast(@ToClissifierList as nvarchar) + ' '
02393: END
02394: else BEGIN
02395: --???????? ???????????????????????? ?????????????????????? ???????????? ?? ?????????? ????????????
02396: If (dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg)=1) and @ToGroup=@GroupID
02397: Select @Result=cast(@Result as nvarchar)+ cast(@ToClissifierList as nvarchar) + ' '
02398: END
02399:
02400: --???????????????????? ???????????? ?? ????????????
02401: INSERT dbo.PR_DEBUG_FindClassifier
02402: select 1 as IsSubGroup, dbo.PR_Check (@ModelName, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg) As PR_Check_Result, @Result as Summary, @ToClissifierList as ToClissifierList, @ToGroup as ToGroup, @ModelName as ModelName, @Key1 as Key1, @Ne2 as Ne2, @Key2 as Key2, @Ne3 as Ne3, @Key3 as Key3, @Reg as Reg, @GroupID as GroupID
02403: FETCH NEXT FROM Classifier INTO @CheckTovarName, @ToClissifierList, @ToGroup, @Key1, @Ne2, @Key2, @Ne3, @Key3, @Reg , @IsBrend, @IsMagazin, @IsKategory, @IsSubGroup, @IsDetails, @GroupID
02404:
02405: END
02406: CLOSE Classifier
02407: DEALLOCATE Classifier
02408:
02409: --???????????????????? ?????????????????????????????? ?????????????????? ?? ?????????????????? ?????????????? ???? ???????????????? ?????????????? ??????????????????
02410: Select * from dbo.PR_Split(@Result) as yes join PR_Classifier on PR_Classifier.id=yes.[text]
02411:
02412:
02413:
02414:
02415:
02416:
02417:
02418:
02419:
02420: GO
02421: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetAllClassifier')) DROP PROCEDURE [dbo].[PR_GetAllClassifier]
02422: GO
02423: SET ANSI_NULLS ON
02424: GO
02425: SET QUOTED_IDENTIFIER ON
02426: GO
02427: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02428: CREATE PROCEDURE [dbo].[PR_GetAllClassifier]
02429: as
02430: select * from PR_Classifier
02431:
02432:
02433: GO
02434: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetAllClassifierForType')) DROP PROCEDURE [dbo].[PR_GetAllClassifierForType]
02435: GO
02436: SET ANSI_NULLS ON
02437: GO
02438: SET QUOTED_IDENTIFIER ON
02439: GO
02440: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02441: CREATE PROCEDURE [dbo].[PR_GetAllClassifierForType]
02442: @IsBrend bit=0,
02443: @IsMagazin bit=0,
02444: @IsKategory bit=0,
02445: @IsSubGroup bit=0,
02446: @IsDetails bit=0,
02447: @OrderByName as bit=0
02448: as
02449: If @OrderByName=0
02450: select * from PR_Classifier
02451: where IsBrend=@IsBrend and IsMagazin=@IsMagazin and IsKategory=@IsKategory and IsSubGroup=@IsSubGroup and IsDetails=@IsDetails
02452: else
02453: select * from PR_Classifier
02454: where IsBrend=@IsBrend and IsMagazin=@IsMagazin and IsKategory=@IsKategory and IsSubGroup=@IsSubGroup and IsDetails=@IsDetails
02455: order by [Name]
02456:
02457: GO
02458: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetAllSupp')) DROP PROCEDURE [dbo].[PR_GetAllSupp]
02459: GO
02460: SET ANSI_NULLS ON
02461: GO
02462: SET QUOTED_IDENTIFIER ON
02463: GO
02464:
02465: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02466: CREATE PROCEDURE [dbo].[PR_GetAllSupp]
02467: as
02468: select * from KK_Cards
02469:
02470:
02471: GO
02472: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetChangesMap')) DROP PROCEDURE [dbo].[PR_GetChangesMap]
02473: GO
02474: SET ANSI_NULLS ON
02475: GO
02476: SET QUOTED_IDENTIFIER ON
02477: GO
02478: CREATE PROCEDURE [dbo].[PR_GetChangesMap]
02479: @ImportNumber int=2,
02480: @Type1 int=0,
02481: @Type2 int=0,
02482: @Type3 int=0,
02483: @Type4 int=1,
02484: @OrderName int=0
02485: as
02486:
02487: select * from (
02488:
02489: select
02490: PR_ChangesMap.i,
02491: PR_ChangesMap.ToImport,
02492: PR_ChangesMap.ToImportLog,
02493: PR_ChangesMap.ToSuppPrice,
02494: PR_ChangesMap.Type,
02495: PR_ChangesMap.PriceSale,
02496: PR_ChangesMap.PriceBuy,
02497: PR_ChangesMap.Price1,
02498: PR_ChangesMap.Price2,
02499: PR_ChangesMap.Price3,
02500: PR_ChangesMap.Price4,
02501: PR_ChangesMap.Price5,
02502: PR_ChangesMap.Price6,
02503: PR_ChangesMap.DeltaPriceSale,
02504: PR_ChangesMap.DeltaPriceBuy,
02505: PR_ChangesMap.DeltaPrice1,
02506: PR_ChangesMap.DeltaPrice2,
02507: PR_ChangesMap.DeltaPrice3,
02508: PR_ChangesMap.DeltaPrice4,
02509: PR_ChangesMap.DeltaPrice5,
02510: PR_ChangesMap.DeltaPrice6,
02511: PR_SuppPrices.Name,
02512: PR_SuppPrices.Status,
02513: PR_SuppPrices.Presence,
02514: PR_SuppPrices.path1,
02515: PR_SuppPrices.path2,
02516: PR_SuppPrices.path3,
02517: PR_SuppPrices.path4,
02518: PR_SuppPrices.path5,
02519: PR_SuppPrices.path6,
02520: PR_SuppPrices.path7,
02521: PR_SuppPrices.path8
02522:
02523: from PR_ChangesMap
02524: join PR_SuppPrices on PR_SuppPrices.i=PR_ChangesMap .ToSuppPrice
02525: Join PR_ImportParm On PR_ChangesMap.ToImport= PR_ImportParm.i and PR_ImportParm.i=@ImportNumber
02526: WHERE (@Type2=1 and PR_ChangesMap.Type=2)
02527: or (@Type3=1 and PR_ChangesMap.Type=3)
02528: or (@Type4=1 and PR_ChangesMap.Type=4)
02529:
02530: union all --??????????, ?????????????? ???????????????????????? ???? ?? ??????
02531:
02532: select
02533: PR_ChangesMap.i,
02534: PR_ChangesMap.ToImport,
02535: PR_ChangesMap.ToImportLog,
02536: PR_ChangesMap.ToTrPrice,
02537: PR_ChangesMap.Type,
02538: PR_ChangesMap.PriceSale,
02539: PR_ChangesMap.PriceBuy,
02540: PR_ChangesMap.Price1,
02541: PR_ChangesMap.Price2,
02542: PR_ChangesMap.Price3,
02543: PR_ChangesMap.Price4,
02544: PR_ChangesMap.Price5,
02545: PR_ChangesMap.Price6,
02546: PR_ChangesMap.DeltaPriceSale,
02547: PR_ChangesMap.DeltaPriceBuy,
02548: PR_ChangesMap.DeltaPrice1,
02549: PR_ChangesMap.DeltaPrice2,
02550: PR_ChangesMap.DeltaPrice3,
02551: PR_ChangesMap.DeltaPrice4,
02552: PR_ChangesMap.DeltaPrice5,
02553: PR_ChangesMap.DeltaPrice6,
02554: PR_TrPrice.Name,0,0,
02555: PR_TrPrice.path1,
02556: PR_TrPrice.path2,
02557: PR_TrPrice.path3,
02558: PR_TrPrice.path4,
02559: PR_TrPrice.path5,
02560: PR_TrPrice.path6,
02561: PR_TrPrice.path7,
02562: PR_TrPrice.path8
02563:
02564: from PR_ChangesMap
02565: join PR_TrPrice on PR_TrPrice.i=PR_ChangesMap.ToTrPrice
02566: Join PR_ImportParm On PR_ChangesMap.ToImport= PR_ImportParm.i and PR_ImportParm.i=@ImportNumber
02567: Where PR_ChangesMap.Type=1 and @Type1=1
02568:
02569: ) t
02570: order by
02571:
02572: Case When @OrderName=0 THEN t.path2+t.path3+t.path4+t.path5+t.path6+t.path7+t.path8
02573: else t.[name]
02574: end
02575:
02576:
02577: GO
02578: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetChangesMaps')) DROP PROCEDURE [dbo].[PR_GetChangesMaps]
02579: GO
02580: SET ANSI_NULLS ON
02581: GO
02582: SET QUOTED_IDENTIFIER ON
02583: GO
02584: CREATE PROCEDURE [dbo].[PR_GetChangesMaps]
02585: @ImportNumber int=2,
02586: @Type1 int=0,
02587: @Type2 int=0,
02588: @Type3 int=0,
02589: @Type4 int=1,
02590: @OrderName int=0,
02591: @LogNumber int=2
02592: as
02593:
02594: select
02595: PR_ChangesMaps.i,
02596: PR_ChangesMaps.ToImport,
02597: PR_ChangesMaps.ToImportLog,
02598: PR_ChangesMaps.ToPosition,
02599: PR_ChangesMaps.Type,
02600: PR_ChangesMaps.PriceSale,
02601: PR_ChangesMaps.PriceBuy,
02602: PR_ChangesMaps.Price1,
02603: PR_ChangesMaps.Price2,
02604: PR_ChangesMaps.Price3,
02605: PR_ChangesMaps.Price4,
02606: PR_ChangesMaps.Price5,
02607: PR_ChangesMaps.Price6,
02608: PR_ChangesMaps.DeltaPriceSale,
02609: PR_ChangesMaps.DeltaPriceBuy,
02610: PR_ChangesMaps.DeltaPrice1,
02611: PR_ChangesMaps.DeltaPrice2,
02612: PR_ChangesMaps.DeltaPrice3,
02613: PR_ChangesMaps.DeltaPrice4,
02614: PR_ChangesMaps.DeltaPrice5,
02615: PR_ChangesMaps.DeltaPrice6,
02616: PR_SuppPrices.Name,
02617: PR_SuppPrices.Status,
02618: PR_SuppPrices.Presence,
02619: PR_SuppPrices.path1,
02620: PR_SuppPrices.path2,
02621: PR_SuppPrices.path3,
02622: PR_SuppPrices.path4,
02623: PR_SuppPrices.path5,
02624: PR_SuppPrices.path6,
02625: PR_SuppPrices.path7,
02626: PR_SuppPrices.path8
02627:
02628: from PR_ChangesMaps
02629: join PR_SuppPrices on PR_SuppPrices.i=PR_ChangesMaps .ToPosition
02630: Join PR_ImportParm On PR_ChangesMaps.ToImport= PR_ImportParm.i and PR_ImportParm.i=@ImportNumber
02631: WHERE ((@Type2=1 and PR_ChangesMaps.Type=2)
02632: or (@Type3=1 and PR_ChangesMaps.Type=3)
02633: or (@Type4=1 and PR_ChangesMaps.Type=4)
02634: or (@Type1=1 and PR_ChangesMaps.Type=1))
02635: and @LogNumber=ToImportLog
02636:
02637: order by
02638:
02639: Case When @OrderName=0 THEN PR_SuppPrices.path2+PR_SuppPrices.path3+PR_SuppPrices.path4+PR_SuppPrices.path5+PR_SuppPrices.path6+PR_SuppPrices.path7+PR_SuppPrices.path8
02640: else PR_SuppPrices.[name]
02641: end
02642:
02643: GO
02644: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetCheckTovarName')) DROP PROCEDURE [dbo].[PR_GetCheckTovarName]
02645: GO
02646: SET ANSI_NULLS ON
02647: GO
02648: SET QUOTED_IDENTIFIER ON
02649: GO
02650: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02651: CREATE PROCEDURE PR_GetCheckTovarName
02652: @Class as int
02653: as
02654: select * from PR_CheckTovarName where ToClissifierList=@Class
02655:
02656:
02657: GO
02658: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetCheckTovarNameOne')) DROP PROCEDURE [dbo].[PR_GetCheckTovarNameOne]
02659: GO
02660: SET ANSI_NULLS ON
02661: GO
02662: SET QUOTED_IDENTIFIER ON
02663: GO
02664: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02665: CREATE PROCEDURE [dbo].[PR_GetCheckTovarNameOne]
02666: @i as int
02667: as
02668: select * from PR_CheckTovarName where i=@i
02669:
02670:
02671: GO
02672: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetClassifier')) DROP PROCEDURE [dbo].[PR_GetClassifier]
02673: GO
02674: SET ANSI_NULLS ON
02675: GO
02676: SET QUOTED_IDENTIFIER ON
02677: GO
02678: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02679: CREATE PROCEDURE [dbo].[PR_GetClassifier]
02680: @i int
02681: as
02682: select *
02683: from SY_Image join PR_ClassifierList on SY_Image.[Key]=PR_ClassifierList.ImageKey
02684: where @i=id
02685:
02686:
02687: GO
02688: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetClassImages')) DROP PROCEDURE [dbo].[PR_GetClassImages]
02689: GO
02690: SET ANSI_NULLS ON
02691: GO
02692: SET QUOTED_IDENTIFIER ON
02693: GO
02694: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02695: CREATE PROCEDURE [dbo].[PR_GetClassImages]
02696: as
02697: select *
02698: from SY_Image join PR_ClassifierList on SY_Image.[Key]=PR_ClassifierList.ImageKey
02699: order by OrdinalNo
02700:
02701:
02702: GO
02703: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetClassType')) DROP PROCEDURE [dbo].[PR_GetClassType]
02704: GO
02705: SET ANSI_NULLS ON
02706: GO
02707: SET QUOTED_IDENTIFIER ON
02708: GO
02709: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02710: CREATE PROCEDURE [dbo].[PR_GetClassType]
02711: @i as int
02712: as
02713: select * from PR_ClassTypeList where id=@i
02714:
02715:
02716: GO
02717: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetCountries')) DROP PROCEDURE [dbo].[PR_GetCountries]
02718: GO
02719: SET ANSI_NULLS ON
02720: GO
02721: SET QUOTED_IDENTIFIER ON
02722: GO
02723: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02724: CREATE PROCEDURE PR_GetCountries
02725: as
02726: select * from SY_Countries
02727:
02728:
02729: GO
02730: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetCountSuppPrice')) DROP PROCEDURE [dbo].[PR_GetCountSuppPrice]
02731: GO
02732: SET ANSI_NULLS ON
02733: GO
02734: SET QUOTED_IDENTIFIER ON
02735: GO
02736: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02737: CREATE PROCEDURE [dbo].[PR_GetCountSuppPrice]
02738: @Supp int
02739: as
02740: Declare @Row1 int
02741: select @Row1=count(*) from PR_SuppPrices where supp=@supp
02742: return(@Row1)
02743:
02744:
02745:
02746: GO
02747: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetGroup')) DROP PROCEDURE [dbo].[PR_GetGroup]
02748: GO
02749: SET ANSI_NULLS ON
02750: GO
02751: SET QUOTED_IDENTIFIER ON
02752: GO
02753: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02754: CREATE PROCEDURE PR_GetGroup
02755: @i as int
02756: as
02757: select * from PR_Groups where id=@i
02758:
02759:
02760: GO
02761: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetGroupImages')) DROP PROCEDURE [dbo].[PR_GetGroupImages]
02762: GO
02763: SET ANSI_NULLS ON
02764: GO
02765: SET QUOTED_IDENTIFIER ON
02766: GO
02767: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02768: CREATE PROCEDURE [dbo].[PR_GetGroupImages]
02769: as
02770: select *
02771: from SY_Image join PR_Groups on SY_Image.[Key]=PR_Groups.ImageKey
02772: order by OrdinalNo
02773:
02774:
02775: GO
02776: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetImportName')) DROP PROCEDURE [dbo].[PR_GetImportName]
02777: GO
02778: SET ANSI_NULLS ON
02779: GO
02780: SET QUOTED_IDENTIFIER ON
02781: GO
02782: create procedure PR_GetImportName
02783: @i int
02784: as
02785: select ImportName from PR_ImportParm where i=@i
02786:
02787: GO
02788: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetLog')) DROP PROCEDURE [dbo].[PR_GetLog]
02789: GO
02790: SET ANSI_NULLS ON
02791: GO
02792: SET QUOTED_IDENTIFIER ON
02793: GO
02794:
02795: CREATE procedure [dbo].[PR_GetLog]
02796: @CurrentUser int = 11
02797: as
02798: select
02799: PR_ImportLog.i as 'ID',
02800: PR_ImportLog.sDate as '????????',
02801: dbo.FN_User_GetUserName (PR_ImportLog.UserID,@CurrentUser) as '????????????????????????',
02802: KK_Cards.sName As '??????????????????',
02803: PR_ImportParm.ImportName as '????????????',
02804: ltrim(str(PR_ImportLog.XlsRetCode)) + ':' + PR_ImportLog.XlsMessage as 'Xls',
02805: ltrim(str(PR_ImportLog.ChkRetCode)) + ':' + PR_ImportLog.ChkMessage as 'Chk',
02806: ltrim(str(PR_ImportLog.PosRetCode)) + ':' + PR_ImportLog.PosMessage as 'Pos',
02807: ltrim(str(PR_ImportLog.MapRetCode)) + ':' + PR_ImportLog.MapMessage as 'Map',
02808: ltrim(str(PR_ImportLog.MonRetCode)) + ':' + PR_ImportLog.MonMessage as 'Mon',
02809: PR_ImportLog.DelTrRows,
02810: PR_ImportLog.DelCorRows,
02811: PR_ImportLog.DelRelRows,
02812: PR_ImportLog.DelMapRows
02813: from PR_ImportLog
02814: join SY_Users on SY_Users.sID=PR_ImportLog.UserID
02815: join PR_ImportParm on PR_ImportParm.i=PR_ImportLog.Import
02816: join KK_Cards on KK_Cards.sID=PR_ImportParm.KKID
02817:
02818:
02819:
02820:
02821:
02822:
02823:
02824:
02825:
02826:
02827:
02828:
02829:
02830:
02831:
02832:
02833: GO
02834: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetOneClassifier')) DROP PROCEDURE [dbo].[PR_GetOneClassifier]
02835: GO
02836: SET ANSI_NULLS ON
02837: GO
02838: SET QUOTED_IDENTIFIER ON
02839: GO
02840: CREATE procedure [dbo].[PR_GetOneClassifier]
02841: @i int
02842: as
02843: select * from PR_Classifier
02844: where @i=id
02845:
02846:
02847: GO
02848: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetOneImage')) DROP PROCEDURE [dbo].[PR_GetOneImage]
02849: GO
02850: SET ANSI_NULLS ON
02851: GO
02852: SET QUOTED_IDENTIFIER ON
02853: GO
02854: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02855: CREATE PROCEDURE [dbo].[PR_GetOneImage]
02856: @ImageKey as nvarchar(6)
02857: as
02858: select * from SY_Image where [Key]=@ImageKey
02859:
02860:
02861: GO
02862: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetParm')) DROP PROCEDURE [dbo].[PR_GetParm]
02863: GO
02864: SET ANSI_NULLS ON
02865: GO
02866: SET QUOTED_IDENTIFIER ON
02867: GO
02868: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02869: CREATE PROCEDURE PR_GetParm
02870: as
02871: select PR_ImportParm.I as 'ID',PR_ImportParm.ImportName as '??????',KK_Cards.sName as '??????????????????',Formater as '????????????',FormaterParm,
02872: Srok,SrokActionType,PresentType,ArticulType,SourceType,
02873: SourceURL,SourceCheck
02874: from PR_ImportParm join kk_Cards on kk_Cards.sId=PR_ImportParm.KKID
02875: where Visible=1
02876:
02877:
02878: GO
02879: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPresImages')) DROP PROCEDURE [dbo].[PR_GetPresImages]
02880: GO
02881: SET ANSI_NULLS ON
02882: GO
02883: SET QUOTED_IDENTIFIER ON
02884: GO
02885: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02886: CREATE PROCEDURE [dbo].[PR_GetPresImages]
02887: as
02888: select *
02889: from SY_Image join PR_PresenceType on SY_Image.[Key]=PR_PresenceType.ImageKey
02890: order by OrdinalNo
02891:
02892:
02893: GO
02894: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPRList')) DROP PROCEDURE [dbo].[PR_GetPRList]
02895: GO
02896: SET ANSI_NULLS ON
02897: GO
02898: SET QUOTED_IDENTIFIER ON
02899: GO
02900: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02901: CREATE PROCEDURE [dbo].[PR_GetPRList]
02902: @i int
02903: as
02904: select
02905: PR_List.id,
02906: PR_List.ModelName,
02907: PR_List.PresenseType,
02908: PR_List.Country,
02909: PR_List.DescriptionS,
02910: PR_List.Description,
02911: PR_List.UseFixedPrice,
02912: PR_List.FixedPrice,
02913: PR_List.GTD,
02914: PR_List.UseCategory,
02915: PR_List.Favourite,
02916: PR_List.FavColor,
02917: PR_List.FavComment,
02918: PR_List.ShopID,
02919: PR_List.CategoryID,
02920: SY_Countries.sCountryName
02921:
02922: from PR_List
02923: join SY_Countries on SY_Countries.sID=PR_List.Country
02924: join PR_PresenceType on PR_PresenceType.ID=PR_List.PresenseType
02925: where PR_List.id=@i
02926:
02927: GO
02928: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPRListInSubGroup')) DROP PROCEDURE [dbo].[PR_GetPRListInSubGroup]
02929: GO
02930: SET ANSI_NULLS ON
02931: GO
02932: SET QUOTED_IDENTIFIER ON
02933: GO
02934: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02935: CREATE PROCEDURE [dbo].[PR_GetPRListInSubGroup]
02936: @Group nvarchar(100),
02937: @SubGroup nvarchar(100)
02938: as
02939: --exec PR_GetPRListInSubGroup N'??????????????????????????',N'?????????? ????????????'
02940: select
02941: PR_List.id,
02942: PR_List.ModelName,
02943: PR_List.PresenseType,
02944: PR_List.Country,
02945: PR_List.DescriptionS,
02946: PR_List.Description,
02947: PR_List.UseFixedPrice,
02948: PR_List.FixedPrice,
02949: PR_List.GTD,
02950: PR_List.UseCategory,
02951: PR_List.Favourite,
02952: PR_List.FavColor,
02953: PR_List.FavComment,
02954: PR_List.ShopID,
02955: PR_List.CategoryID,
02956: SY_Countries.sCountryName
02957:
02958: from PR_List
02959: join SY_Countries on SY_Countries.sID=PR_List.Country
02960: join PR_PresenceType on PR_PresenceType.ID=PR_List.PresenseType
02961: join PR_ClassifierMM on PR_ClassifierMM.ToPrice=PR_List.id
02962: join PR_ClassifierList on PR_ClassifierList.id= PR_ClassifierMM.ToClass and PR_ClassifierList.Name=@SubGroup
02963: join PR_ClassTypeList on PR_ClassTypeList.id= PR_ClassifierList.Type and PR_ClassTypeList.IsSubGroup=1
02964: join PR_Groups on PR_Groups.id=PR_ClassifierList.GroupID and PR_Groups.Name=@Group
02965:
02966:
02967:
02968:
02969:
02970:
02971: GO
02972: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPRListInSubGroupSFD')) DROP PROCEDURE [dbo].[PR_GetPRListInSubGroupSFD]
02973: GO
02974: SET ANSI_NULLS ON
02975: GO
02976: SET QUOTED_IDENTIFIER ON
02977: GO
02978: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
02979: create PROCEDURE [dbo].[PR_GetPRListInSubGroupSFD]
02980: @Group nvarchar(100),
02981: @SubGroup nvarchar(100),
02982: @OverrideByID int = -1
02983: as
02984: --exec PR_GetPRListInSubGroup N'??????????????????????????',N'?????????? ????????????'
02985: select
02986: PR_List.id,
02987: PR_List.ModelName,
02988: PR_List.PresenseType,
02989: PR_List.Country,
02990: PR_List.DescriptionS,
02991: PR_List.Description,
02992: PR_List.UseFixedPrice,
02993: PR_List.FixedPrice,
02994: PR_List.GTD,
02995: PR_List.UseCategory,
02996: PR_List.Favourite,
02997: PR_List.FavColor,
02998: PR_List.FavComment,
02999: PR_List.ShopID,
03000: PR_List.CategoryID,
03001: SY_Countries.sCountryName
03002:
03003: from PR_List
03004: join SY_Countries on SY_Countries.sID=PR_List.Country
03005: join PR_PresenceType on PR_PresenceType.ID=PR_List.PresenseType
03006: join PR_ClassifierMM on PR_ClassifierMM.ToPrice=PR_List.id
03007: join PR_ClassifierList on PR_ClassifierList.id= PR_ClassifierMM.ToClass and PR_ClassifierList.Name=@SubGroup
03008: join PR_ClassTypeList on PR_ClassTypeList.id= PR_ClassifierList.Type and PR_ClassTypeList.IsSubGroup=1
03009: join PR_Groups on PR_Groups.id=PR_ClassifierList.GroupID and PR_Groups.Name=@Group
03010:
03011: WHERE PR_List.id=@OverrideByID
03012: OR @OverrideByID = -1
03013:
03014:
03015:
03016: GO
03017: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPrListLike')) DROP PROCEDURE [dbo].[PR_GetPrListLike]
03018: GO
03019: SET ANSI_NULLS ON
03020: GO
03021: SET QUOTED_IDENTIFIER ON
03022: GO
03023: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03024: CREATE PROCEDURE [dbo].[PR_GetPrListLike]
03025: @Like nvarchar(500)
03026: as
03027:
03028: select
03029: PR_List.id,
03030: PR_List.ModelName,
03031: PR_List.PresenseType,
03032: PR_List.Country,
03033: PR_List.DescriptionS,
03034: PR_List.Description,
03035: PR_List.UseFixedPrice,
03036: PR_List.FixedPrice,
03037: PR_List.GTD,
03038: PR_List.UseCategory,
03039: PR_List.Favourite,
03040: PR_List.FavColor,
03041: PR_List.FavComment,
03042: PR_List.ShopID,
03043: PR_List.CategoryID,
03044: SY_Countries.sCountryName,
03045: dbo.PR_DiffWord(PR_List.ModelName,@Like) as [Difference]
03046:
03047: from PR_List
03048: join SY_Countries on SY_Countries.sID=PR_List.Country
03049: join PR_PresenceType on PR_PresenceType.ID=PR_List.PresenseType
03050:
03051: where dbo.PR_DiffWord(PR_List.ModelName,@Like)>0
03052:
03053: order by dbo.PR_DiffWord(PR_List.ModelName,@Like) desc
03054:
03055: GO
03056: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPRListPos')) DROP PROCEDURE [dbo].[PR_GetPRListPos]
03057: GO
03058: SET ANSI_NULLS ON
03059: GO
03060: SET QUOTED_IDENTIFIER ON
03061: GO
03062: CREATE procedure [dbo].[PR_GetPRListPos]
03063: @i int
03064: as
03065: select
03066: PR_List.id,
03067: PR_List.ModelName,
03068: PR_List.PresenseType,
03069: PR_List.Country,
03070: PR_List.DescriptionS,
03071: PR_List.Description,
03072: PR_List.UseFixedPrice,
03073: PR_List.FixedPrice,
03074: PR_List.GTD,
03075: PR_List.UseCategory,
03076: PR_List.Favourite,
03077: PR_List.FavColor,
03078: PR_List.FavComment,
03079: PR_List.ShopID,
03080: PR_List.CategoryID,
03081: SY_Countries.sCountryName
03082:
03083: from PR_List
03084: join SY_Countries on SY_Countries.sID=PR_List.Country
03085: join PR_PresenceType on PR_PresenceType.ID=PR_List.PresenseType
03086: where PR_List.id=@i
03087:
03088: GO
03089: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetSignClassifier')) DROP PROCEDURE [dbo].[PR_GetSignClassifier]
03090: GO
03091: SET ANSI_NULLS ON
03092: GO
03093: SET QUOTED_IDENTIFIER ON
03094: GO
03095: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03096: CREATE PROCEDURE PR_GetSignClassifier
03097: @I as int
03098: as
03099: select * from PR_Classifier
03100: where exists(select 1 from PR_ClassifierMM where ToPrice=@I and PR_Classifier.id=PR_ClassifierMM.ToClass)
03101:
03102:
03103: GO
03104: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetSuppPrice')) DROP PROCEDURE [dbo].[PR_GetSuppPrice]
03105: GO
03106: SET ANSI_NULLS ON
03107: GO
03108: SET QUOTED_IDENTIFIER ON
03109: GO
03110: CREATE Procedure [dbo].[PR_GetSuppPrice]
03111: @ImportNumber int,
03112: @TrPriceRecord int
03113: as
03114: If not exists (select 1 from PR_SuppPrice(@ImportNumber)
03115: join PR_CorrelateMap on PR_SuppPrice.i=PR_CorrelateMap.ToSuppPrice
03116: join PR_TrPrice on PR_TrPrice.i= PR_CorrelateMap.ToTrPrice
03117: where PR_TrPrice.Import=@ImportNumber
03118: and PR_TrPrice.i=@TrPriceRecord) BEGIN
03119: -- ???????????????? ?????????????? ????????????????????
03120: Declare @InsertedRecords as integer
03121: EXEC @InsertedRecords = PR_SetCorrelateMap1 @ImportNumber, @TrPriceRecord
03122: -- @InsertedRecords=0 ???????????? ?????? ???????? ???????????? ???????? ?????????????? ????????????
03123: END
03124:
03125: -- ???????????? ?????????? ???? ???????? ?????????????? ????????????????????
03126: select top 1000
03127: --PR_CorrelateMap.[Difference],
03128: PR_SuppPrice.[i],
03129: @ImportNumber,
03130: PR_SuppPrice.[Name],
03131: PR_SuppPrice.Path,
03132: PR_SuppPrice.Art,
03133: PR_SuppPrice.[Description],
03134: PR_SuppPrice.URL,
03135: PR_SuppPrice.PriceSale,
03136: PR_SuppPrice.PriceBuy,
03137: PR_SuppPrice.Price1,
03138: PR_SuppPrice.Price2,
03139: PR_SuppPrice.Price3,
03140: PR_SuppPrice.Price4,
03141: PR_SuppPrice.Price5,
03142: PR_SuppPrice.Price6,
03143: PR_SuppPrice.PriceDate,
03144: PR_SuppPrice.ImportDate,
03145: PR_SuppPrice.Warranty,
03146: PR_SuppPrice.Path1,
03147: PR_SuppPrice.Path2,
03148: PR_SuppPrice.Path3,
03149: PR_SuppPrice.Path4,
03150: PR_SuppPrice.Path5,
03151: PR_SuppPrice.Path6,
03152: PR_SuppPrice.Path7,
03153: PR_SuppPrice.Path8,
03154: PR_SuppPrice.Presence,
03155: PR_SuppPrice.Status,
03156: PR_SuppPrice.PrID,
03157: PR_SuppPrice.ImportLogID,
03158: PR_SuppPrice.Supp
03159: from PR_SuppPrice(@ImportNumber)
03160: join PR_CorrelateMap on PR_SuppPrice.i=PR_CorrelateMap.ToSuppPrice
03161: join PR_TrPrice on PR_TrPrice.i= PR_CorrelateMap.ToTrPrice
03162: where PR_TrPrice.i=@TrPriceRecord and PR_TrPrice.Import=@ImportNumber
03163: and PR_CorrelateMap.ToImport=@ImportNumber
03164: and not exists (select 1 from PR_RelationMap where PR_RelationMap.ToSuppPrice=PR_SuppPrice.i)
03165: and PR_CorrelateMap.[Difference]>0
03166: and dbo.PR_IsEqualCost(PR_TrPrice.PriceSale, PR_TrPrice.PriceBuy, PR_SuppPrice.PriceSale, PR_SuppPrice.PriceBuy)=1
03167: order by PR_CorrelateMap.[Difference] desc
03168:
03169:
03170: GO
03171: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetSuppPrice1')) DROP PROCEDURE [dbo].[PR_GetSuppPrice1]
03172: GO
03173: SET ANSI_NULLS ON
03174: GO
03175: SET QUOTED_IDENTIFIER ON
03176: GO
03177: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03178: CREATE PROCEDURE [dbo].[PR_GetSuppPrice1]
03179: @Supp int
03180: as
03181: select * from PR_SuppPrices where @Supp=Supp and PrID is null
03182:
03183:
03184: GO
03185: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetSuppPrice2')) DROP PROCEDURE [dbo].[PR_GetSuppPrice2]
03186: GO
03187: SET ANSI_NULLS ON
03188: GO
03189: SET QUOTED_IDENTIFIER ON
03190: GO
03191: CREATE PROCEDURE [dbo].[PR_GetSuppPrice2]
03192: @PrID as int
03193: as
03194: select
03195: PR_SuppPrices.i,
03196: KK_Cards.sName,
03197: PR_SuppPrices.Name,
03198: PR_SuppPrices.PriceBuy,
03199: PR_SuppPrices.PriceDate,
03200: PR_ImportParm.Srok,
03201: PR_SuppPrices.Presence
03202:
03203: from PR_SuppPrices
03204: join KK_Cards on KK_Cards.sID=PR_SuppPrices.Supp
03205: join PR_ImportParm on PR_ImportParm.kkID=KK_Cards.sID
03206: where @PrId=PrId
03207:
03208:
03209: GO
03210: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetSuppPriceForTree')) DROP PROCEDURE [dbo].[PR_GetSuppPriceForTree]
03211: GO
03212: SET ANSI_NULLS ON
03213: GO
03214: SET QUOTED_IDENTIFIER ON
03215: GO
03216: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03217: CREATE PROCEDURE [dbo].[PR_GetSuppPriceForTree]
03218: @Supp int,
03219: @Path1 as nvarchar(500) ='',
03220: @Path2 as nvarchar(500) ='',
03221: @Path3 as nvarchar(500) ='',
03222: @Path4 as nvarchar(500) ='',
03223: @Path5 as nvarchar(500) ='',
03224: @Path6 as nvarchar(500) ='',
03225: @Path7 as nvarchar(500) ='',
03226: @Path8 as nvarchar(500) =''
03227: as
03228:
03229: select * from PR_SuppPrices
03230: where @Supp=supp and
03231: Path1=@Path1 and
03232: Path2=@Path2 and
03233: Path3=@Path3 and
03234: Path4=@Path4 and
03235: Path5=@Path5 and
03236: Path6=@Path6 and
03237: Path7=@Path7 and
03238: Path8=@Path8
03239: order by [Name]
03240:
03241:
03242: GO
03243: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetTrPrice')) DROP PROCEDURE [dbo].[PR_GetTrPrice]
03244: GO
03245: SET ANSI_NULLS ON
03246: GO
03247: SET QUOTED_IDENTIFIER ON
03248: GO
03249: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03250: CREATE PROCEDURE PR_GetTrPrice
03251: @ImportNumber int=2,
03252: @i int=0
03253: as
03254:
03255: select * from PR_TrPrice
03256: where Import=@ImportNumber and
03257: (@i=0 or i=@i)
03258: order by [Name]
03259:
03260: GO
03261: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetTrPriceForTree')) DROP PROCEDURE [dbo].[PR_GetTrPriceForTree]
03262: GO
03263: SET ANSI_NULLS ON
03264: GO
03265: SET QUOTED_IDENTIFIER ON
03266: GO
03267: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03268: CREATE PROCEDURE PR_GetTrPriceForTree
03269: @ImportNumber int=2,
03270: @Path1 as nvarchar(500) ='',
03271: @Path2 as nvarchar(500) ='',
03272: @Path3 as nvarchar(500) ='',
03273: @Path4 as nvarchar(500) ='',
03274: @Path5 as nvarchar(500) ='',
03275: @Path6 as nvarchar(500) ='',
03276: @Path7 as nvarchar(500) ='',
03277: @Path8 as nvarchar(500) =''
03278: as
03279:
03280: select * from PR_TrPrice
03281: where Import=@ImportNumber and
03282: Path1=@Path1 and
03283: Path2=@Path2 and
03284: Path3=@Path3 and
03285: Path4=@Path4 and
03286: Path5=@Path5 and
03287: Path6=@Path6 and
03288: Path7=@Path7 and
03289: Path8=@Path8
03290: order by [Name]
03291:
03292: GO
03293: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetTypeImages')) DROP PROCEDURE [dbo].[PR_GetTypeImages]
03294: GO
03295: SET ANSI_NULLS ON
03296: GO
03297: SET QUOTED_IDENTIFIER ON
03298: GO
03299: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03300: CREATE PROCEDURE [dbo].[PR_GetTypeImages]
03301: as
03302: select *
03303: from SY_Image join PR_ClassTypeList on SY_Image.[Key]=PR_ClassTypeList.ImageKey
03304: order by OrdinalNo
03305:
03306:
03307: GO
03308: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportEnd')) DROP PROCEDURE [dbo].[PR_ImportEnd]
03309: GO
03310: SET ANSI_NULLS ON
03311: GO
03312: SET QUOTED_IDENTIFIER ON
03313: GO
03314: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03315: CREATE PROCEDURE PR_ImportEnd
03316: @ID int,
03317: @Code int,
03318: @Mess nvarchar(500),
03319: @Step int
03320: as
03321: declare @Row1 int, @Import int
03322: select @Import=import from PR_ImportLog WHERE I=@ID
03323:
03324: --???????????? ?????????? ?? ?????????????????? ?????? ??????????????
03325: Declare @DelMapRows int, @DelTrRows int, @DelCorRows int, @DelRelRows int
03326: IF @Code >1 BEGIN
03327: exec PR_ClearTable @Import, @Code , @DelMapRows OUTPUT, @DelTrRows OUTPUT, @DelCorRows OUTPUT, @DelRelRows OUTPUT
03328: UPDATE [PR_ImportLog]
03329: SET [DelMapRows]=@DelMapRows , [DelTrRows]= @DelTrRows , [DelCorRows] = @DelCorRows , [DelRelRows]=@DelRelRows
03330: WHERE I=@ID
03331: IF @@RowCount<>1 raiserror ('???????????????????? ???????????????????? ?????????????? ???? ?????????????????????????????? ??????????????',1,1)
03332: END
03333:
03334: --???????? ??????????????
03335: --Public Enum PR_ImportStep
03336: --XLS = 1 '???????????? XLS->SQL
03337: --CHK = 2 '?????????????????????????? ?????????????????? ?????????????? (?????? ??????????, ???????????? ?????????????????? PR_TovarCheck)
03338: --pos = 3 '?????????????????????????? ?????????????????????? ??????????????
03339: --MAP = 4 '?????????? ??????????????????
03340: --MON = 5 '?????????? ?????????? ???????????????? ???? ?????????? ??????????????
03341: --End Enum
03342:
03343: IF @Step=1 BEGIN
03344: UPDATE [PR_ImportLog]
03345: SET [XlsRetCode]=@Code , [XlsMessage]= @Mess WHERE I=@ID
03346: IF @@RowCount<>1 raiserror ('???????????????????? ???????????????????? ?????????????? ???? ?????????????????????????????? ??????????????',1,1)
03347: END
03348:
03349: ELSE IF @Step=2 BEGIN
03350: UPDATE [PR_ImportLog]
03351: SET [ChkRetCode]=@Code , [ChkMessage]= @Mess WHERE I=@ID
03352: IF @@RowCount<>1 raiserror ('???????????????????? ???????????????????? ?????????????? ???? ?????????????????????????????? ??????????????',1,1)
03353: END
03354:
03355: ELSE IF @Step=3 BEGIN
03356: UPDATE [PR_ImportLog]
03357: SET [PosRetCode]=@Code , [PosMessage]= @Mess WHERE I=@ID
03358: IF @@RowCount<>1 raiserror ('???????????????????? ???????????????????? ?????????????? ???? ?????????????????????????????? ??????????????',1,1)
03359:
03360: END
03361:
03362: ELSE If @Step=4 BEGIN
03363: UPDATE [PR_ImportLog]
03364: SET [MapRetCode]=@Code , [MapMessage]= @Mess WHERE I=@ID
03365: IF @@RowCount<>1 raiserror ('???????????????????? ???????????????????? ?????????????? ???? ?????????????????????????????? ??????????????',1,1)
03366: END
03367:
03368: ELSE IF @Step=5 BEGIN
03369: UPDATE [PR_ImportLog]
03370: SET [MonRetCode]=@Code , [MonMessage]= @Mess WHERE I=@ID
03371: IF @@RowCount<>1 raiserror ('???????????????????? ???????????????????? ?????????????? ???? ?????????????????????????????? ??????????????',1,1)
03372: END
03373:
03374: GO
03375: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ImportStart')) DROP PROCEDURE [dbo].[PR_ImportStart]
03376: GO
03377: SET ANSI_NULLS ON
03378: GO
03379: SET QUOTED_IDENTIFIER ON
03380: GO
03381: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03382: CREATE PROCEDURE PR_ImportStart
03383: @Data Datetime,
03384: @CurrentUser int,
03385: @Import int
03386: as
03387:
03388: --?????????? ?????????????? ?????????????? ???????????? ?????? ?????????? ???? ???????????? ???????????????????? ???????? ??????????????
03389: Declare @DelMapRows int, @DelTrRows int, @DelCorRows int, @DelRelRows int, @TableName int
03390: select @TableName=2+4+8+16
03391: exec PR_ClearTable @Import, @TableName , @DelMapRows OUTPUT, @DelTrRows OUTPUT, @DelCorRows OUTPUT, @DelRelRows OUTPUT
03392:
03393: --???????????? ?????????????? ?????????? ???????????? ??????????????03394: Declare @Row1 int
03395: INSERT INTO [PR_ImportLog]([sDate], [UserID], [Import])
03396: VALUES(@Data,@CurrentUser,@Import )
03397: select @Row1=@@Rowcount
03398: if @Row1=1 Return (SCOPE_IDENTITY())
03399: else return (0)
03400:
03401: GO
03402: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_LoadDefaultParm')) DROP PROCEDURE [dbo].[PR_LoadDefaultParm]
03403: GO
03404: SET ANSI_NULLS ON
03405: GO
03406: SET QUOTED_IDENTIFIER ON
03407: GO
03408: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03409: CREATE procedure PR_LoadDefaultParm
03410: @Provider nvarchar(50)
03411: as
03412: select * from PR_ProviderList where @Provider=[FormaterName]
03413:
03414:
03415: GO
03416: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_LoadImportParm')) DROP PROCEDURE [dbo].[PR_LoadImportParm]
03417: GO
03418: SET ANSI_NULLS ON
03419: GO
03420: SET QUOTED_IDENTIFIER ON
03421: GO
03422: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03423: CREATE PROCEDURE PR_LoadImportParm
03424: @i int=2
03425: as
03426: Select * ,
03427: PR_ImportParmSourceType.i as 'PR_ImportParmSourceType_i',
03428: PR_ProviderList.id as 'PR_ProviderList_i',
03429: PR_ImportParmAction.id as 'PR_ImportParmAction_i',
03430: PR_ImportParmArticul.id as 'PR_ImportParmArticul_i',
03431: PR_ImportParmPresent.id as 'PR_ImportParmPresent_i',
03432: KK_Cards.sName as 'KK_Cards_Name'
03433:
03434: from [PR_ImportParm]
03435: join PR_ImportParmSourceType on [PR_ImportParm].SourceType = PR_ImportParmSourceType.i
03436: join PR_ProviderList on [PR_ImportParm].Formater = PR_ProviderList.FormaterName
03437: join PR_ImportParmAction on [PR_ImportParm].SrokActionType= PR_ImportParmAction.id
03438: join PR_ImportParmArticul on [PR_ImportParm].ArticulType = PR_ImportParmArticul.id
03439: join PR_ImportParmPresent on [PR_ImportParm].PresentType = PR_ImportParmPresent.id
03440: join kk_cards on [PR_ImportParm].kkid = kk_Cards.sid
03441: where [PR_ImportParm].i=@i
03442:
03443:
03444: GO
03445: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_NewPosRequest')) DROP PROCEDURE [dbo].[PR_NewPosRequest]
03446: GO
03447: SET ANSI_NULLS ON
03448: GO
03449: SET QUOTED_IDENTIFIER ON
03450: GO
03451: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03452: CREATE PROCEDURE [dbo].[PR_NewPosRequest]
03453: @ImportNumber int
03454: as
03455: Declare @Supp as int
03456: --?????????????????? ???????????????????? ?????????????????????????? ???????????? ?????????? PR_SuppNewPos ?? ???????????? 0 - ???????? ?????????? ???? ??????????, ?????? KKID ???????????????????? - ???????? ?????????? ??????????
03457: select @Supp=Supp from PR_SuppPrice(@ImportNumber) where PRID is NULL
03458: IF @@Rowcount=0 Return 0
03459: else return @Supp
03460:
03461:
03462:
03463: GO
03464: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SaveChangesMap')) DROP PROCEDURE [dbo].[PR_SaveChangesMap]
03465: GO
03466: SET ANSI_NULLS ON
03467: GO
03468: SET QUOTED_IDENTIFIER ON
03469: GO
03470: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03471:
03472: CREATE procedure PR_SaveChangesMap
03473: @ImportNumber int
03474: as
03475: declare @ImportLogID int, @Row1 int
03476: select top 1 @ImportLogID=i from PR_ImportLog where import=@ImportNumber order by i desc
03477:
03478:
03479: INSERT INTO [PR_ChangesMaps](
03480: [ToImport],
03481: [ToImportLog],
03482: [ToPosition],
03483: [Type],
03484: [PriceSale],
03485: [PriceBuy],
03486: [Price1],
03487: [Price2],
03488: [Price3],
03489: [Price4],
03490: [Price5],
03491: [Price6],
03492: [DeltaPriceSale],
03493: [DeltaPriceBuy],
03494: [DeltaPrice1],
03495: [DeltaPrice2],
03496: [DeltaPrice3],
03497: [DeltaPrice4],
03498: [DeltaPrice5],
03499: [DeltaPrice6])
03500: select
03501: @ImportNumber,
03502: @ImportLogID,
03503: [ToSuppPrice],
03504: [Type],
03505: [PriceSale],
03506: [PriceBuy],
03507: [Price1],
03508: [Price2],
03509: [Price3],
03510: [Price4],
03511: [Price5],
03512: [Price6],
03513: [DeltaPriceSale],
03514: [DeltaPriceBuy],
03515: [DeltaPrice1],
03516: [DeltaPrice2],
03517: [DeltaPrice3],
03518: [DeltaPrice4],
03519: [DeltaPrice5],
03520: [DeltaPrice6]
03521: from PR_ChangesMap
03522: where ToImport=@ImportNumber
03523: select @Row1=@@rowcount
03524:
03525: return (@Row1)
03526:
03527:
03528: GO
03529: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SaveDefaultParm')) DROP PROCEDURE [dbo].[PR_SaveDefaultParm]
03530: GO
03531: SET ANSI_NULLS ON
03532: GO
03533: SET QUOTED_IDENTIFIER ON
03534: GO
03535: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03536: CREATE procedure PR_SaveDefaultParm
03537: @Provider nvarchar(50),
03538: @Parm nvarchar(4000)
03539: as
03540: UPDATE [PR_ProviderList]
03541: SET [DefaultParm]=@Parm
03542: WHERE [FormaterName]=@Provider
03543:
03544:
03545: GO
03546: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SaveImportParm')) DROP PROCEDURE [dbo].[PR_SaveImportParm]
03547: GO
03548: SET ANSI_NULLS ON
03549: GO
03550: SET QUOTED_IDENTIFIER ON
03551: GO
03552: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03553:
03554: CREATE PROCEDURE PR_SaveImportParm
03555: @sName nvarchar (50),
03556: @KKID int,
03557: @Formater nvarchar (50),
03558: @FormaterParm nvarchar (3500),
03559: @Srok int,
03560: @SrokActionType int ,
03561: @PresentType int ,
03562: @ArticulType int ,
03563: @SourceType int,
03564: @SourceURL nvarchar (250),
03565: @SourceCheck bit
03566: as
03567: Declare @Row1 int, @Row2 int
03568: INSERT INTO [PR_ImportParm]([ImportName], [KKID], [Formater], [FormaterParm], [Srok], [SrokActionType], [PresentType], [ArticulType], [SourceType], [SourceURL], [SourceCheck],[Visible])
03569: VALUES(@sName,@KKID,@Formater,@FormaterParm,@Srok,@SrokActionType,@PresentType,@ArticulType,@SourceType,@SourceURL,@SourceCheck,1)
03570: Select @Row1=@@RowCount, @Row2=scope_identity()
03571: If @Row1<>1 return(-1)
03572: else return(@Row2)
03573:
03574: GO
03575: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SetChangesMap')) DROP PROCEDURE [dbo].[PR_SetChangesMap]
03576: GO
03577: SET ANSI_NULLS ON
03578: GO
03579: SET QUOTED_IDENTIFIER ON
03580: GO
03581: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03582:
03583: CREATE PROCEDURE [dbo].[PR_SetChangesMap]
03584: @importNumber int,
03585: @Row1 int =0 output ,
03586: @Row2 int =0 output ,
03587: @Row3 int =0 output ,
03588: @Row4 int =0 output
03589: as
03590: --Declare @Row1 int, @Row2 int,@Row3 int,@Row4 int
03591: --Type ?? PR_ChangesMap - ?????? ???????????? (?????????????? ?????????????????? ?? ?????????? ??????????????????)
03592: --1 - ?????????? ?????????????? (???????????? ??????????????????)
03593: --2 - ?????????????? ??????????????????????
03594: --3 - ?????????????? ?????????????????? ?? ??????????????
03595: --4 - ???????????? ?????????????????? ???????? (?????? ?????????????????? ??????????????)
03596:
03597: INSERT PR_ChangesMap(Type,ToImport,ToSuppPrice,ToTrPrice,PriceSale,PriceBuy,Price1,Price2,Price3,Price4,Price5,Price6,DeltaPriceSale,DeltaPriceBuy,DeltaPrice1,DeltaPrice2,DeltaPrice3,DeltaPrice4,DeltaPrice5,DeltaPrice6)
03598: SELECT 1,@importNumber,0, NEW.i ,isnull(NEW.PriceSale,0), isnull(NEW.PriceBuy,0), isnull(NEW.Price1,0), isnull(NEW.Price2,0), isnull(NEW.Price3,0), isnull(NEW.Price4,0), isnull(NEW.Price5,0), isnull(NEW.Price6,0), 0, 0, 0, 0, 0, 0, 0, 0
03599: FROM PR_TrPrice as NEW
03600: WHERE NEW.MapStatus=2 and Import=@importNumber
03601: select @row1=@@Rowcount
03602:
03603: INSERT PR_ChangesMap(Type,ToImport,ToSuppPrice,ToTrPrice,PriceSale,PriceBuy,Price1,Price2,Price3,Price4,Price5,Price6,DeltaPriceSale,DeltaPriceBuy,DeltaPrice1,DeltaPrice2,DeltaPrice3,DeltaPrice4,DeltaPrice5,DeltaPrice6)
03604: SELECT 2,@importNumber,OLD.i,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
03605: FROM PR_SuppPrices as OLD
03606: WHERE OLD.Presence=1 and not exists (select 1 from PR_RelationMap as REF Where REF.ToSuppPrice=OLD.i and REF.ToImport=@importNumber)
03607: select @row2=@@Rowcount
03608:
03609: INSERT PR_ChangesMap(Type,ToImport,ToSuppPrice,ToTrPrice,PriceSale,PriceBuy,Price1,Price2,Price3,Price4,Price5,Price6,DeltaPriceSale,DeltaPriceBuy,DeltaPrice1,DeltaPrice2,DeltaPrice3,DeltaPrice4,DeltaPrice5,DeltaPrice6)
03610: SELECT 3,@importNumber,OLD.i,0, isnull(NEW.PriceSale,0), isnull(NEW.PriceBuy,0), isnull(NEW.Price1,0), isnull(NEW.Price2,0), isnull(NEW.Price3,0), isnull(NEW.Price4,0), isnull(NEW.Price5,0), isnull(NEW.Price6,0), isnull(NEW.PriceSale,0) - isnull(OLD.PriceSale,0), isnull(NEW.PriceBuy,0) - isnull(OLD.PriceBuy,0), isnull(NEW.Price1,0) - isnull(OLD.Price1,0), isnull(NEW.Price2,0) - isnull(OLD.Price2,0), isnull(NEW.Price3,0) - isnull(OLD.Price3,0), isnull(NEW.Price4,0) - isnull(OLD.Price4,0), isnull(NEW.Price5,0) - isnull(OLD.Price5,0), isnull(NEW.Price6,0) - isnull(OLD.Price6,0)
03611: FROM PR_RelationMap as REF
03612: join PR_SuppPrices as OLD ON REF.ToSuppPrice=OLD.i and OLD.Presence=0
03613: join PR_TrPrice as NEW ON REF.ToTrPrice= NEW.i and NEW.MapStatus=1
03614: where NEW.Import=@importNumber
03615: select @row3=@@Rowcount
03616:
03617: INSERT PR_ChangesMap(Type,ToImport,ToSuppPrice,ToTrPrice,PriceSale,PriceBuy,Price1,Price2,Price3,Price4,Price5,Price6,DeltaPriceSale,DeltaPriceBuy,DeltaPrice1,DeltaPrice2,DeltaPrice3,DeltaPrice4,DeltaPrice5,DeltaPrice6)
03618: SELECT 4,@importNumber,OLD.i,0, isnull(NEW.PriceSale,0), isnull(NEW.PriceBuy,0), isnull(NEW.Price1,0), isnull(NEW.Price2,0), isnull(NEW.Price3,0), isnull(NEW.Price4,0), isnull(NEW.Price5,0), isnull(NEW.Price6,0), isnull(NEW.PriceSale,0) - isnull(OLD.PriceSale,0), isnull(NEW.PriceBuy,0) - isnull(OLD.PriceBuy,0), isnull(NEW.Price1,0) - isnull(OLD.Price1,0), isnull(NEW.Price2,0) - isnull(OLD.Price2,0), isnull(NEW.Price3,0) - isnull(OLD.Price3,0), isnull(NEW.Price4,0) - isnull(OLD.Price4,0), isnull(NEW.Price5,0) - isnull(OLD.Price5,0), isnull(NEW.Price6,0) - isnull(OLD.Price6,0)
03619: FROM PR_RelationMap as REF
03620: join PR_SuppPrices as OLD ON REF.ToSuppPrice=OLD.i and OLD.Presence=1
03621: join PR_TrPrice as NEW ON REF.ToTrPrice= NEW.i and NEW.MapStatus=1
03622: WHERE (isnull(NEW.PriceSale,0) <> isnull(OLD.PriceSale,0)) or (isnull(NEW.PriceBuy,0) <> isnull(OLD.PriceBuy,0)) or (isnull(NEW.Price1,0) <> isnull(OLD.Price1,0)) or (isnull(NEW.Price2,0) <> isnull(OLD.Price2,0)) or (isnull(NEW.Price3,0) <> isnull(OLD.Price3,0)) or (isnull(NEW.Price4,0) <> isnull(OLD.Price4,0)) or (isnull(NEW.Price5,0) <> isnull(OLD.Price5,0)) or (isnull(NEW.Price6,0) <> isnull(OLD.Price6,0))
03623: and NEW.Import=@importNumber
03624: select @row4=@@Rowcount
03625: --MapStatus ?? TrPrice
03626: --1 - ????????????????????????
03627: --2 - ??????????
03628: --3 - ????????????????????????
03629: --4 - ??????????????????
03630:
03631:
03632: --Presence ?? PR_SuppPrices
03633: --0 ??? ?????????????? ?????? ?? ??????????????
03634: --1 ??? ?????????????? ???????? ?? ??????????????
03635: --2 ??? ?????????????? ??????????????????
03636:
03637: Return(@Row1+@Row2+@Row3+@Row4)
03638:
03639:
03640: GO
03641: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SetClassifierMM')) DROP PROCEDURE [dbo].[PR_SetClassifierMM]
03642: GO
03643: SET ANSI_NULLS ON
03644: GO
03645: SET QUOTED_IDENTIFIER ON
03646: GO
03647: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03648: CREATE PROCEDURE PR_SetClassifierMM
03649: @ToPrice int,
03650: @ToClass int
03651: as
03652: select 1 from PR_ClassifierMM where ToPrice=@ToPrice and ToClass=@ToClass
03653: if @@Rowcount=0
03654: insert PR_ClassifierMM (ToPrice,ToClass) values (@ToPrice,@ToClass)
03655:
03656:
03657: GO
03658: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SetCorrelateMap1')) DROP PROCEDURE [dbo].[PR_SetCorrelateMap1]
03659: GO
03660: SET ANSI_NULLS ON
03661: GO
03662: SET QUOTED_IDENTIFIER ON
03663: GO
03664: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03665: CREATE PROCEDURE [dbo].[PR_SetCorrelateMap1]
03666: @ImportNumber int,
03667: @NewPriceRecord int
03668: as
03669: Declare @Row1 as int
03670: INSERT INTO [PR_CorrelateMap]( [ToImport],[ToTrPrice], [ToSuppPrice], [DiffSale], [DiffBuy], [DiffName],
03671: [DiffDesc], [DiffUrl], [DiffArt], [DiffPath1], [DiffPath2], [DiffPath3], [DiffPath4], [DiffPath5], [DiffPath6], [DiffPath7], [DiffPath8])
03672: SELECT
03673: @ImportNumber,
03674: PR_TrPrice.i, --[ToTrPrice],
03675: PR_SuppPrice.i, --[ToSuppPrice],
03676: CASE when PR_SuppPrice.PriceSale>0 then PR_TrPrice.PriceSale/PR_SuppPrice.PriceSale else 0 end, --[DiffSale],
03677: CASE when PR_SuppPrice.PriceBuy>0 then PR_TrPrice.PriceBuy/PR_SuppPrice.PriceBuy else 0 end, --[DiffBuy],
03678: dbo.PR_DiffWord(PR_SuppPrice.[Name],PR_TrPrice.[Name]), --[DiffName],
03679: 0,--[DiffDesc],
03680: 0,--[DiffUrl],
03681: 0,--[DiffArt],
03682: 0,--[DiffPath1],
03683: 0,--[DiffPath2],
03684: 0,--[DiffPath3],
03685: 0,--[DiffPath4],
03686: 0,--[DiffPath5],
03687: 0,--[DiffPath6],
03688: 0,--[DiffPath7],
03689: 0--[DiffPath8]
03690: FROM PR_TrPrice, PR_SuppPrice(@ImportNumber)
03691: where
03692: --@ImportNumber=PR_SuppPrice.Import and
03693: not exists (select 1 from PR_RelationMap where PR_RelationMap.ToSuppPrice=PR_SuppPrice.i)
03694: and @ImportNumber=PR_TrPrice.Import
03695: and PR_TrPrice.MapStatus=0 and @NewPriceRecord=PR_TrPrice.i
03696: select @Row1=@@Rowcount
03697: Return(@Row1)
03698:
03699:
03700: GO
03701: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SetLinkPrToSupp')) DROP PROCEDURE [dbo].[PR_SetLinkPrToSupp]
03702: GO
03703: SET ANSI_NULLS ON
03704: GO
03705: SET QUOTED_IDENTIFIER ON
03706: GO
03707: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03708: CREATE PROCEDURE [dbo].[PR_SetLinkPrToSupp]
03709: @PrID int,
03710: @SuppID int
03711: as
03712: Update PR_SuppPrices
03713: Set PRID=@PrID, Status=0
03714: where @SuppID=i
03715: Return @@Rowcount
03716:
03717:
03718:
03719: GO
03720: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SetSuppPrice')) DROP PROCEDURE [dbo].[PR_SetSuppPrice]
03721: GO
03722: SET ANSI_NULLS ON
03723: GO
03724: SET QUOTED_IDENTIFIER ON
03725: GO
03726: CREATE procedure [dbo].[PR_SetSuppPrice]
03727: @ImportNumber int
03728: as
03729:
03730: declare @ImportLogID int, @Supp int, @Row1 int, @Row2 int
03731: select @Supp=KKID from PR_ImportParm where i=@ImportNumber
03732: select top 1 @ImportLogID=i from PR_ImportLog where import=@ImportNumber order by i desc
03733:
03734: --?????????????? ???????????????????? ?? ???????????????????? ??????????
03735:
03736: BEGIN TRAN
03737:
03738: INSERT INTO [PR_SuppPrices](
03739: [Name],
03740: [Art],
03741: [Description],
03742: [URL],
03743: [PriceSale], [PriceBuy], [Price1], [Price2], [Price3], [Price4], [Price5], [Price6],
03744: [PriceDate], [ImportDate], [Warranty],
03745: [Path1], [Path2], [Path3], [Path4], [Path5], [Path6], [Path7], [Path8],
03746: [Presence],
03747: [Status],
03748: [PRID], [ImportLogID], [Supp])
03749: select
03750: PR_TrPrice.[Name],
03751: PR_TrPrice.[Art],
03752: PR_TrPrice.[Description],
03753: PR_TrPrice.[URL],
03754: PR_ChangesMap.[PriceSale], PR_ChangesMap.[PriceBuy], PR_ChangesMap.[Price1], PR_ChangesMap.[Price2], PR_ChangesMap.[Price3], PR_ChangesMap.[Price4], PR_ChangesMap.[Price5], PR_ChangesMap.[Price6] ,
03755: PR_TrPrice.[PriceDate], PR_TrPrice.[ImportDate], PR_TrPrice.[Warranty],
03756: PR_TrPrice.[Path1], PR_TrPrice.[Path2], PR_TrPrice.[Path3], PR_TrPrice.[Path4], PR_TrPrice.[Path5], PR_TrPrice.[Path6], PR_TrPrice.[Path7], PR_TrPrice.[Path8],
03757: 1,
03758: 1, --PR_TrPrice.[MapStatus]
03759: NULL, @ImportLogID, @Supp
03760: from PR_ChangesMap join PR_TrPrice on PR_TrPrice.i=PR_ChangesMap .ToTrPrice
03761: where PR_ChangesMap.Type=1 and ToImport=@ImportNumber
03762:
03763: select @Row1=@@Rowcount
03764:
03765: --???????????? ???????????? ???????????? ?? ChangesMaps
03766:
03767: Update PR_ChangesMap
03768: set ToSuppPrice=PR_SuppPrices.i
03769: from PR_ChangesMap
03770: join PR_TrPrice on PR_ChangesMap.ToTrPrice=PR_TrPrice.i
03771: join PR_SuppPrices on PR_SuppPrices.[Name]= PR_TrPrice.[Name]
03772: where PR_ChangesMap.ToImport=@ImportNumber and PR_ChangesMap.Type=1
03773:
03774: select @Row2=@@Rowcount
03775:
03776: iF @Row1=@Row2 COMMIT TRAN
03777: else Rollback TRAN
03778:
03779: Return (@Row1-@Row2)
03780:
03781:
03782:
03783:
03784:
03785: GO
03786: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_SetTrStatus')) DROP PROCEDURE [dbo].[PR_SetTrStatus]
03787: GO
03788: SET ANSI_NULLS ON
03789: GO
03790: SET QUOTED_IDENTIFIER ON
03791: GO
03792: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03793: CREATE PROCEDURE PR_SetTrStatus
03794: @i int=0,
03795: @Status int=0,
03796: @SuppPriceRecord int=0,
03797: @Import int
03798: as
03799: Declare @Row1 as int, @Row2 as int
03800:
03801: if not exists (select * from PR_TrPrice
03802: join PR_RelationMap on PR_TrPrice.i=PR_RelationMap.ToTrPrice
03803: where PR_TrPrice.i=@i and @Import=ToImport)
03804: BEGIN
03805: BEGIN TRANSACTION
03806: update PR_TrPrice set MapStatus=@Status where i=@i
03807: select @row1=@@Rowcount
03808:
03809: if @row1=1
03810: BEGIN
03811: If @Status=1
03812: BEGIN -- ?????????????????? ??????????
03813: Insert PR_RelationMap (ToTrPrice,ToSuppPrice,ToImport) values (@i,@SuppPriceRecord,@Import)
03814: select @row2=@@Rowcount
03815: If @Row2=1 BEGIN
03816: COMMIT
03817: Return(0)
03818: END
03819: else BEGIN
03820: -- ???? ?????????????? ???????????????????? ?????????????????????? ?????????????????????? ONE
03821: ROLLBACK
03822: Return(2)
03823: END
03824: END
03825: COMMIT
03826: return(0)
03827: END
03828: ROLLBACK
03829: return(1)
03830: END
03831: ELSE BEGIN
03832: If exists (select * from PR_TrPrice where MapStatus=1 and @i=i)
03833: BEGIN
03834: BEGIN TRANSACTION
03835: --???????????????????? ??????????
03836: update PR_TrPrice set MapStatus=@Status where i=@i
03837: select @row1=@@Rowcount
03838:
03839: if @row1=1
03840: BEGIN
03841: Delete from Map
03842: from PR_RelationMap as Map
03843: join PR_TrPrice on Map.ToTrPrice = PR_TrPrice.i
03844: where PR_TrPrice.i=@i
03845: select @row2=@@Rowcount
03846:
03847: IF @row2=1
03848: BEGIN
03849: COMMIT
03850: RETURN(0)
03851: END
03852: ELSE BEGIN
03853: -- ?????????? ?????????????? ???? ?????????? ???????? ???????????? ??????????
03854: ROLLBACK
03855: RETURN(4)
03856: END
03857: END
03858: ELSE
03859: COMMIT
03860: Return(3)
03861: END
03862: ELSE
03863: -- ???????????????? ?????????????????????? ????????
03864: Return(5)
03865: END
03866:
03867: GO
03868: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_TovarCheck')) DROP PROCEDURE [dbo].[PR_TovarCheck]
03869: GO
03870: SET ANSI_NULLS ON
03871: GO
03872: SET QUOTED_IDENTIFIER ON
03873: GO
03874: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03875: CREATE PROCEDURE [dbo].[PR_TovarCheck]
03876: @ImportNumber int
03877: as
03878:
03879: DECLARE NewTovar CURSOR FOR
03880: SELECT i,Name,Art FROM PR_TrPrice WHERE Import=@ImportNumber
03881: FOR Update of MapStatus
03882:
03883: DECLARE @i int, @Name nvarchar(1000), @Art nvarchar(1000),@Row1 int, @Row2 int, @Row3 int
03884: DECLARE @Supp int --?????????? ?????????? ???????????????????? ?? ?????????????? ????????????????
03885: Select @Supp=KKID from PR_ImportParm where @ImportNumber=i
03886: Select @Row2=0
03887: --?????????????????????????????????????? - ?????? ????????????????????????
03888: update PR_TrPrice set MapStatus=0 where Import=@ImportNumber
03889: delete from PR_RelationMap
03890:
03891: OPEN NewTovar
03892: FETCH NEXT FROM NewTovar INTO @i,@Name,@Art
03893:
03894: WHILE @@FETCH_STATUS = 0 BEGIN
03895:
03896: BEGIN TRANSACTION
03897: insert PR_RelationMap (ToImport, ToTrPrice,ToSuppPrice)
03898: Select @ImportNumber,@i,PR_SuppPrices.i from PR_SuppPrices where Supp=@Supp and dbo.PR_IsEqualTovar(@Art,@Name,PR_SuppPrices.Art,PR_SuppPrices.Name)=0
03899:
03900: select @Row1=@@Rowcount
03901:
03902: If (@Row1=1) --???????????????????????? ??????????????, ???????????? ????????
03903: update PR_TrPrice set MapStatus=1 where CURRENT OF NewTovar
03904: COMMIT
03905:
03906: Select @Row2=@Row2+@Row1
03907: FETCH NEXT FROM NewTovar INTO @i,@Name,@Art
03908: END
03909:
03910: CLOSE NewTovar
03911: DEALLOCATE NewTovar
03912:
03913: Return (@Row2) -- ???????????????????? ?????????????? ?? ?????????????????????? ?????????????????????????? ????????????
03914:
03915:
03916: GO
03917: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_TovarNew')) DROP PROCEDURE [dbo].[PR_TovarNew]
03918: GO
03919: SET ANSI_NULLS ON
03920: GO
03921: SET QUOTED_IDENTIFIER ON
03922: GO
03923: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03924: CREATE PROCEDURE PR_TovarNew
03925: @ImportNumber int
03926: as
03927: declare @Art bit
03928: select @Art=Yes_Articul from PR_ImportParmArticul
03929: join PR_ImportParm on PR_ImportParmArticul.id=PR_ImportParm.ArticulType
03930: where PR_ImportParm.i=@ImportNumber
03931: If @Art=1 BEGIN
03932: update PR_TrPrice set MapStatus=2 where Mapstatus=0 and Import=@ImportNumber
03933: Return (@@Rowcount)
03934: END
03935:
03936: GO
03937: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_Tree')) DROP PROCEDURE [dbo].[PR_Tree]
03938: GO
03939: SET ANSI_NULLS ON
03940: GO
03941: SET QUOTED_IDENTIFIER ON
03942: GO
03943: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03944: CREATE PROCEDURE [dbo].[PR_Tree]
03945: @Supp int
03946: as
03947: select distinct path1,path2,path3,path4,path5,path6,path7,path8 from PR_SuppPrices
03948: where path1<>'' and @Supp=supp
03949:
03950:
03951: GO
03952: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_TrPriceWrite')) DROP PROCEDURE [dbo].[PR_TrPriceWrite]
03953: GO
03954: SET ANSI_NULLS ON
03955: GO
03956: SET QUOTED_IDENTIFIER ON
03957: GO
03958: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03959:
03960: CREATE PROCEDURE PR_TrPriceWrite
03961: @Import int=0,
03962: @Name nvarchar(1000) ='',
03963: @Art nvarchar(50)='',
03964: @Availability int=0,
03965: @Description nvarchar(1000)='',
03966: @URL nvarchar(300)='',
03967: @PriceSale money=0,
03968: @PriceBuy money=0,
03969: @Price1 money=0,
03970: @Price2 money=0,
03971: @Price3 money=0,
03972: @Price4 money=0,
03973: @Price5 money=0,
03974: @Price6 money=0,
03975: @PriceDate nvarchar(50)='2006-01-01',
03976: @ImportDate datetime='2006-01-01',
03977: @Path1 nvarchar(500)='',
03978: @Path2 nvarchar(500)='',
03979: @Path3 nvarchar(500)='',
03980: @Path4 nvarchar(500)='',
03981: @Path5 nvarchar(500)='',
03982: @Path6 nvarchar(500)='',
03983: @Path7 nvarchar(500)='',
03984: @Path8 nvarchar(500)=''
03985:
03986: as
03987: INSERT INTO [PR_TrPrice]([Import], [Name], [Art], [Availability], [Description], [URL], [PriceSale], [PriceBuy], [Price1], [Price2], [Price3], [Price4], [Price5], [Price6], [PriceDate], [ImportDate], [Path1],[Path2],[Path3],[Path4],[Path5],[Path6],[Path7],[Path8] )
03988: VALUES(@Import, @Name, @Art, @Availability, @Description, @URL, @PriceSale, @PriceBuy, @Price1, @Price2, @Price3, @Price4, @Price5, @Price6, @PriceDate, @ImportDate, @Path1,@Path2,@Path3,@Path4,@Path5,@Path6,@Path7,@Path8)
03989:
03990: GO
03991: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UnvisibleImportParm')) DROP PROCEDURE [dbo].[PR_UnvisibleImportParm]
03992: GO
03993: SET ANSI_NULLS ON
03994: GO
03995: SET QUOTED_IDENTIFIER ON
03996: GO
03997: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
03998:
03999: CREATE PROCEDURE PR_UnvisibleImportParm
04000: @i int
04001: as
04002: Declare @Row1 int
04003: UPDATE [PR_ImportParm]
04004: SET [visible]=0
04005: where [i]=@i
04006: Select @Row1=@@RowCount
04007: If @Row1<>1 return(-1)
04008: else return(0)
04009:
04010: GO
04011: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UpdateImportParm')) DROP PROCEDURE [dbo].[PR_UpdateImportParm]
04012: GO
04013: SET ANSI_NULLS ON
04014: GO
04015: SET QUOTED_IDENTIFIER ON
04016: GO
04017: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04018:
04019: CREATE PROCEDURE PR_UpdateImportParm
04020: @i int,
04021: @sName nvarchar (50),
04022: @KKID int,
04023: @Formater nvarchar (50),
04024: @FormaterParm nvarchar (3500),
04025: @Srok int,
04026: @SrokActionType int ,
04027: @PresentType int ,
04028: @ArticulType int ,
04029: @SourceType int,
04030: @SourceURL nvarchar (250),
04031: @SourceCheck bit
04032: as
04033: Declare @Row1 int, @Row2 int
04034: UPDATE [PR_ImportParm]
04035: SET [ImportName]=@sName,[KKID]=@KKID,[Formater]=@Formater,[FormaterParm]=@FormaterParm,
04036: [Srok]=@Srok,[SrokActionType]=@SrokActionType,[PresentType]=@PresentType,
04037: [ArticulType]=@ArticulType,[SourceType]=@SourceType,[SourceURL]=@SourceURL,[SourceCheck]=@SourceCheck
04038: where [i]=@i
04039: Select @Row1=@@RowCount
04040: If @Row1<>1 return(-1)
04041: else return(0)
04042:
04043: GO
04044: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UpdCheckTovarName')) DROP PROCEDURE [dbo].[PR_UpdCheckTovarName]
04045: GO
04046: SET ANSI_NULLS ON
04047: GO
04048: SET QUOTED_IDENTIFIER ON
04049: GO
04050: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04051: CREATE PROCEDURE [dbo].[PR_UpdCheckTovarName]
04052: @i int,
04053: @Value sql_variant,
04054: @ColumnName as nvarchar(10)
04055: as
04056: If @ColumnName='ToGroup'
04057: If cast(@Value as int) = 0 update PR_CheckTovarName set ToGroup=NULL where i=@i
04058: else update PR_CheckTovarName set ToGroup=cast(@Value as int) where i=@i
04059: else if @ColumnName='Key1' update PR_CheckTovarName set Key1=cast(@Value as nvarchar) where i=@i
04060: else if @ColumnName='Key2' update PR_CheckTovarName set Key2=cast(@Value as nvarchar) where i=@i
04061: else if @ColumnName='Key3' update PR_CheckTovarName set Key3=cast(@Value as nvarchar) where i=@i
04062: return @@Rowcount
04063:
04064:
04065:
04066: GO
04067: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UpdClassifierWithNewImage')) DROP PROCEDURE [dbo].[PR_UpdClassifierWithNewImage]
04068: GO
04069: SET ANSI_NULLS ON
04070: GO
04071: SET QUOTED_IDENTIFIER ON
04072: GO
04073: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04074: CREATE PROCEDURE [dbo].[PR_UpdClassifierWithNewImage]
04075: @i int,
04076: @Name nvarchar(50),
04077: @OrdinalNo int,
04078: @ImageKey nvarchar(6),
04079: @GroupName nvarchar(50),
04080: @ClassTypeName nvarchar(50),
04081: @Description nvarchar(250),
04082: @NameVP nvarchar(100),
04083: @NamePP nvarchar(100),
04084: @NameRP nvarchar(100)
04085: as
04086: Declare @GroupId int, @ClassTypeId int
04087: select @GroupID=id from PR_Groups where [name]=@GroupName
04088: select @ClassTypeId=id from PR_ClassTypeList where [name]=@ClassTypeName
04089:
04090: update [PR_ClassifierList ]set OrdinalNo=OrdinalNo+1 where OrdinalNo>@OrdinalNo
04091:
04092: Update [PR_ClassifierList] SET [Name]=@Name, [OrdinalNo]=@OrdinalNo,[ImageKey]=@ImageKey,[Type]=@ClassTypeId,[GroupID]=@GroupID,[Description]=@Description,NameVP=@NameVP,NamePP=@NamePP,NameRP=@NameRP
04093: where id=@i
04094:
04095: return (@@Rowcount)
04096:
04097:
04098:
04099: GO
04100: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UpdClassifierWithOldImage')) DROP PROCEDURE [dbo].[PR_UpdClassifierWithOldImage]
04101: GO
04102: SET ANSI_NULLS ON
04103: GO
04104: SET QUOTED_IDENTIFIER ON
04105: GO
04106: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04107: CREATE PROCEDURE [dbo].[PR_UpdClassifierWithOldImage]
04108: @i int,
04109: @Name nvarchar(50),
04110: @OrdinalNo int,
04111: @OldImageValue nvarchar(50),
04112: @GroupName nvarchar(50),
04113: @ClassTypeName nvarchar(50),
04114: @Description nvarchar(250)
04115: as
04116: Declare @GroupId int, @ClassTypeId int, @OldImageID nvarchar(6), @NewImageID nvarchar(6)
04117: select @GroupID=id from PR_Groups where [name]=@GroupName
04118: select @ClassTypeId=id from PR_ClassTypeList where [name]=@ClassTypeName
04119: select @OldImageID=ImageKey FROM PR_ClassifierList where [Name]=@OldImageValue
04120: BEGIN TRAN
04121: insert SY_Image([Image],[Alias]) select [Image],[Alias] From SY_Image where [KEY]=@OldImageID
04122: select @NewImageID=[KEY] from SY_Image where i=scope_Identity()
04123: COMMIT
04124:
04125: update [PR_ClassifierList ]set OrdinalNo=OrdinalNo+1 where OrdinalNo>@OrdinalNo
04126:
04127: Update [PR_ClassifierList] SET [Name]=@Name, [OrdinalNo]=@OrdinalNo,[ImageKey]=@NewImageID,[Type]=@ClassTypeId,[GroupID]=@GroupID,[Description]=@Description
04128: where id=@i
04129:
04130: return (@@Rowcount)
04131:
04132:
04133: GO
04134: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UpdGroup')) DROP PROCEDURE [dbo].[PR_UpdGroup]
04135: GO
04136: SET ANSI_NULLS ON
04137: GO
04138: SET QUOTED_IDENTIFIER ON
04139: GO
04140: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04141: create PROCEDURE [dbo].[PR_UpdGroup]
04142: @i as int,
04143: @Name as nvarchar(50),
04144: @ImageKey as nvarchar(6)
04145: as
04146: update PR_Groups
04147: set [Name]=@Name, ImageKey=@ImageKey
04148: where id=@i
04149:
04150:
04151:
04152: GO
04153: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_UpdPrList')) DROP PROCEDURE [dbo].[PR_UpdPrList]
04154: GO
04155: SET ANSI_NULLS ON
04156: GO
04157: SET QUOTED_IDENTIFIER ON
04158: GO
04159: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04160: CREATE PROCEDURE [dbo].[PR_UpdPrList]
04161: @Id int,
04162: @ModelName nvarchar(4000),
04163: @PresenseType int,
04164: @Country int,
04165: @DescriptionS nvarchar(1000),
04166: @Description ntext,
04167: @UseFixedPrice bit,
04168: @FixedPrice money,
04169: @GTD nvarchar(50),
04170: @UseCategory bit,
04171: @Favourite bit,
04172: @FavColor int,
04173: @FavComment nvarchar(250),
04174: @ShopID int,
04175: @CategoryID int
04176: as
04177: If @CategoryID=0
04178: UPDATE [PR_List]
04179: SET [ModelName]=@ModelName
04180: ,[PresenseType]=@PresenseType
04181: ,[Country]=@Country
04182: ,[DescriptionS]=@DescriptionS
04183: ,[Description]=@Description
04184: ,[UseFixedPrice]=@UseFixedPrice
04185: ,[FixedPrice]=@FixedPrice
04186: ,[GTD]=@GTD
04187: ,[UseCategory]=@UseCategory
04188: ,[Favourite]=@Favourite
04189: ,[FavColor]=@FavColor
04190: ,[FavComment]=@FavComment
04191: ,[ShopID]=@ShopID
04192: WHERE @id=id
04193: else
04194: UPDATE [PR_List]
04195: SET [ModelName]=@ModelName
04196: ,[PresenseType]=@PresenseType
04197: ,[Country]=@Country
04198: ,[DescriptionS]=@DescriptionS
04199: ,[Description]=@Description
04200: ,[UseFixedPrice]=@UseFixedPrice
04201: ,[FixedPrice]=@FixedPrice
04202: ,[GTD]=@GTD
04203: ,[UseCategory]=@UseCategory
04204: ,[Favourite]=@Favourite
04205: ,[FavColor]=@FavColor
04206: ,[FavComment]=@FavComment
04207: ,[ShopID]=@ShopID
04208: ,[CategoryID]=@CategoryID
04209: WHERE @id=id
04210: return @@rowcount
04211:
04212: GO
04213:
04214: IF EXISTS (SELECT * FROM sysobjects WHERE name = ('PR_GetGroupImageKeyForName')) DROP PROCEDURE [dbo].[PR_GetGroupImageKeyForName]
04215: GO
04216: SET ANSI_NULLS ON
04217: GO
04218: SET QUOTED_IDENTIFIER ON
04219: GO
04220: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04221: create PROCEDURE [dbo].[PR_GetGroupImageKeyForName]
04222: @Name as nvarchar(50)
04223: as
04224: select ImageKey from PR_Groups where @Name=[name]
04225: GO
04226: IF EXISTS (SELECT * FROM sys.objects WHERE name=('PR_GetClassTypeForName')) DROP PROCEDURE [dbo].[PR_GetClassTypeForName]
04227: GO
04228: SET ANSI_NULLS ON
04229: GO
04230: SET QUOTED_IDENTIFIER ON
04231: GO
04232: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04233: Create PROCEDURE [dbo].[PR_GetClassTypeForName]
04234: @Name as nvarchar(50)
04235: as
04236: select IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails from PR_ClassTypeList where @Name=[name]
04237: GO
04238:
04239: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetPRListInSubGroupSFD')) DROP PROCEDURE [dbo].[PR_GetPRListInSubGroupSFD]
04240: GO
04241: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04242:
04243: IF EXISTS (SELECT * FROM sysobjects WHERE name=D('PR_GetPRListDEBUGSFD')) DROP PROCEDURE [dbo].[PR_GetPRListDEBUGSFD]
04244: GO
04245: SET ANSI_NULLS ON
04246: GO
04247: SET QUOTED_IDENTIFIER ON
04248: GO
04249: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04250: create PROCEDURE [dbo].[PR_GetPRListInSubGroupSFD]
04251: @Group nvarchar(100),
04252: @SubGroup nvarchar(100),
04253: @OverrideByID int = -1
04254: as
04255: --exec PR_GetPRListInSubGroup N'??????????????????????????',N'?????????? ????????????'
04256: select
04257: PR_List.id,
04258: PR_List.ModelName,
04259: PR_List.PresenseType,
04260: PR_List.Country,
04261: PR_List.DescriptionS,
04262: PR_List.Description,
04263: PR_List.UseFixedPrice,
04264: PR_List.FixedPrice,
04265: PR_List.GTD,
04266: PR_List.UseCategory,
04267: PR_List.Favourite,
04268: PR_List.FavColor,
04269: PR_List.FavComment,
04270: PR_List.ShopID,
04271: PR_List.CategoryID,
04272: SY_Countries.sCountryName
04273:
04274: from PR_List
04275: join SY_Countries on SY_Countries.sID=PR_List.Country
04276: join PR_PresenceType on PR_PresenceType.ID=PR_List.PresenseType
04277: join PR_ClassifierMM on PR_ClassifierMM.ToPrice=PR_List.id
04278: join PR_ClassifierList on PR_ClassifierList.id= PR_ClassifierMM.ToClass and PR_ClassifierList.Name=@SubGroup
04279: join PR_ClassTypeList on PR_ClassTypeList.id= PR_ClassifierList.Type and PR_ClassTypeList.IsSubGroup=1
04280: join PR_Groups on PR_Groups.id=PR_ClassifierList.GroupID and PR_Groups.Name=@Group
04281:
04282: WHERE PR_List.id=@OverrideByID
04283: OR @OverrideByID = -1
04284:
04285: GO
04286:
04287: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassSetSFD')) DROP PROCEDURE [dbo].[PR_ClassSetSFD]
04288: GO
04289: SET ANSI_NULLS ON
04290: GO
04291: SET QUOTED_IDENTIFIER ON
04292: GO
04293: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04294: CREATE procedure [dbo].[PR_ClassSetSFD]
04295: @OverrideByID int = -1,
04296: @CurrentUser as int = 11,
04297: @Class as nvarchar(50) = '',
04298: @Enable as bit = 0
04299: as
04300: set nocount on
04301: IF @OverrideByID=-1 BEGIN
04302: --???????????? ???? ???????????? - ?????????????????? ?????????????????????????? ?? ?????????? ?? ?????????????? ?????? ??????????????????????????????????
04303: delete PR_ClassSET where @CurrentUser=CurrentUser AND Enable=0
04304: insert PR_ClassSET
04305: select @CurrentUser,@Enable,X.ID
04306: from PR_ClassifierList X
04307: where X.[Name]=@Class and not exists ( --???????????? ????????????????????????
04308: select * from PR_ClassSET where @CurrentUser=CurrentUser and ToClass=X.id and enable=1)
04309: END
04310: ELSE BEGIN
04311: --???????????? ???? ???????????????????????????? - ???????????? ?????? ??????????????????
04312: update PR_ClassSET set [Enable]=case when [Enable]=0 then 1 else 0 end
04313: where @CurrentUser=CurrentUser and ToClass=@OverrideByID
04314: END
04315: select
04316: PR_ClassifierList.ID as ID,
04317: PR_ClassSET.[Enable] as IsEnable,
04318: case when PR_ClassSET.[Enable]=0 then 'ilStatus#WORK'
04319: else 'ilStatus#WORK_G' end as ID$Pic,
04320: PR_ClassifierList.Name as Class,
04321: 'ilIcons#'+ PR_ClassifierList.ImageKey as Class$Pic,
04322: PR_ClassTypeList.Name as ClassType,
04323: 'ilIcons#'+PR_ClassTypeList.ImageKey as ClassType$Pic,
04324: PR_ClassifierList.Type,
04325: PR_ClassTypeList.IsBrend,
04326: PR_ClassTypeList.IsMagazin,
04327: PR_ClassTypeList.IsKategory,
04328: PR_ClassTypeList.IsSubGroup,
04329: PR_ClassTypeList.IsDetails,
04330: PR_ClassSET.i
04331: from PR_ClassSET
04332: join PR_ClassifierList on PR_ClassSet.ToClass = PR_ClassifierList.ID
04333: join PR_ClassTypeList on PR_ClassifierList.[Type]=PR_ClassTypeList.Id
04334: WHERE (PR_ClassifierList.ID=@OverrideByID OR @OverrideByID = -1 )
04335: and PR_ClassSET.CurrentUser=@CurrentUser
04336: order by i desc
04337:
04338: GO
04339: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_ClassSetDEBUGSFD')) DROP PROCEDURE [dbo].[PR_ClassSetDEBUGSFD]
04340: GO
04341: SET ANSI_NULLS ON
04342: GO
04343: SET QUOTED_IDENTIFIER ON
04344: GO
04345:
04346: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04347: CREATE procedure [dbo].[PR_ClassSetDEBUGSFD]
04348: @OverrideByID int = -1,
04349: @CurrentUser as int = 0
04350: as
04351: --exec ZW_RegisterSFD 11,'2006-08-25 00:00:00:000','2006-11-24 00:00:00:000',1,0,0,-1,-1,0,N'',0,0,0,default,N'ZWID',N'DSID',default,1,1,default
04352: select
04353: PR_ClassifierList.ID as ID,
04354: case when PR_ClassifierList.ID<@CurrentUser then 1
04355: else 0 end as IsEnable,
04356: case when PR_ClassifierList.ID<@CurrentUser then 'ilStatus#WORK'
04357: else 'ilStatus#WORK_G' end as ID$Pic,
04358: PR_ClassifierList.Name as Class,
04359: 'ilIcons#'+ PR_ClassifierList.ImageKey as Class$Pic,
04360: PR_ClassTypeList.Name as ClassType,
04361: 'ilIcons#'+PR_ClassTypeList.ImageKey as ClassType$Pic,
04362: PR_ClassifierList.Type,
04363: PR_ClassTypeList.IsBrend,
04364: PR_ClassTypeList.IsMagazin,
04365: PR_ClassTypeList.IsKategory,
04366: PR_ClassTypeList.IsSubGroup,
04367: PR_ClassTypeList.IsDetails
04368: from PR_ClassifierList join PR_ClassTypeList on PR_ClassifierList.Type=PR_ClassTypeList.Id
04369: WHERE PR_ClassifierList.ID=@OverrideByID OR @OverrideByID = -1
04370:
04371: GO
04372:
04373: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetAllType')) DROP PROCEDURE [dbo].[PR_GetAllType]
04374: GO
04375: SET ANSI_NULLS ON
04376: GO
04377: SET QUOTED_IDENTIFIER ON
04378: GO
04379: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04380: create PROCEDURE [dbo].[PR_GetAllType]
04381: as
04382: select *
04383: from PR_ClassTypeList
04384: order by OrdinalNo
04385:
04386: GO
04387:
04388: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetBrendForKategory')) DROP PROCEDURE [dbo].[PR_GetBrendForKategory]
04389: GO
04390: SET ANSI_NULLS ON
04391: GO
04392: SET QUOTED_IDENTIFIER ON
04393: GO
04394: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04395: CREATE procedure [dbo].[PR_GetBrendForKategory]
04396: @iKat as int,
04397: @iGroup as int
04398: as
04399: select id,Name,ImageKey
04400: from PR_Class BREND
04401: where BREND.isBrend=1 and exists
04402: (select * from dbo.PR_List
04403: join PR_ClassifierMM on PR_ClassifierMM.ToPrice=PR_List.id
04404: join PR_ClassifierMM MM1 on MM1.ToPrice=PR_List.ID
04405: join PR_ClassifierList CL1 on CL1.ID=MM1.ToClass and CL1.ID=@iKat
04406: join PR_ClassTypeList CT1 on CT1.ID=CL1.Type and CT1.IsKategory=1
04407: join PR_ClassifierMM MM2 on MM2.ToPrice=PR_List.ID
04408: join PR_Class CL2 on MM2.ToClass=CL2.ID and CL2.[Group]=@iGroup and CL2.IsSubGroup=1
04409: where PR_ClassifierMM.ToClass=Brend.id)
04410: GO
04411: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetBrendForSubGroup')) DROP PROCEDURE [dbo].[PR_GetBrendForSubGroup]
04412: GO
04413: SET ANSI_NULLS ON
04414: GO
04415: SET QUOTED_IDENTIFIER ON
04416: GO
04417: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04418: CREATE procedure [dbo].[PR_GetBrendForSubGroup]
04419: @iSubGroup as int
04420: as
04421: --??????????????????????????, ?????? ???????????????? ???????????????????? ?????????????? ??????????-??????????,?? ?????????????? ???????????????????? ???????????? ???? ???????????????? ???????????????????????? (??????????????????)
04422: select id,Name,ImageKey
04423: from dbo.PR_Class Brend
04424: where Brend.isBrend=1 and exists
04425: (select * from dbo.PR_List Y
04426: join PR_ClassifierMM on PR_ClassifierMM.ToPrice=Y.id
04427: join PR_ClassifierMM MM1 on MM1.ToPrice=Y.ID
04428: join PR_ClassifierList CL1 on CL1.ID=MM1.ToClass and CL1.ID=@iSubGroup
04429: join PR_ClassTypeList CT1 on CT1.ID=CL1.Type and CT1.IsSubGroup=1
04430: where PR_ClassifierMM.ToClass=Brend.id)
04431:
04432:
04433:
04434: GO
04435: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetKategoryForGroup')) DROP PROCEDURE [dbo].[PR_GetKategoryForGroup]
04436: GO
04437: SET ANSI_NULLS ON
04438: GO
04439: SET QUOTED_IDENTIFIER ON
04440: GO
04441: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04442: CREATE procedure [dbo].[PR_GetKategoryForGroup]
04443: @iGroup as int
04444: as
04445: select KAT.id,KAT.Name,KAT.ImageKey
04446: from PR_List PR1
04447: join PR_ClassifierMM MM1 on MM1.ToPrice=PR1.ID
04448: join PR_Class KAT on KAT.ID=MM1.ToClass and KAT.IsKategory=1
04449: join PR_ClassifierMM MM2 on MM2.ToPrice=PR1.ID
04450: join PR_Class GR1 on MM2.ToClass=GR1.ID and GR1.[Group]=@iGroup and GR1.IsSubGroup=1
04451: group by KAT.id,KAT.Name,KAT.ImageKey
04452:
04453: GO
04454: IF EXISTS (SELECT * FROM sysobjects WHERE name=('PR_GetSubGroupForGroup')) DROP PROCEDURE [dbo].[PR_GetSubGroupForGroup]
04455: GO
04456: SET ANSI_NULLS ON
04457: GO
04458: SET QUOTED_IDENTIFIER ON
04459: GO
04460: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
04461: CREATE procedure [dbo].[PR_GetSubGroupForGroup]
04462: @iGroup as int
04463: as
04464: select id,Name,ImageKey from dbo.PR_Class Z
04465: where isSubGroup=1 and [Group]=@iGroup and exists
04466: (select 1 from PR_List join PR_ClassifierMM on PR_ClassifierMM.ToPrice=PR_List.id
04467: where PR_ClassifierMM.ToClass=z.ID)
04468:
04469:
04470: GO
04471:
04472:
04473: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04474: VALUES ('',NULL,NULL)
04475: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04476: VALUES ('P??????????','????????????','????????????')
04477: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04478: VALUES ('??????????????','?????????????? (?? ?????????????? ??????????)',NULL)
04479: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04480: VALUES ('????????????????','????????????????',NULL)
04481: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04482: VALUES ('??????','?????????????????????? ?????????? ??????????????',NULL)
04483: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04484: VALUES ('????????????????????????????','?????????????????????? ?????????????????????? ???????????????????????????? ?? ???????????????? ????????????????',NULL)
04485: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04486: VALUES ('??????????','?????????????????? ???????????????? ???????????????????? (??????)',NULL)
04487: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04488: VALUES ('????????????????','????????????????',NULL)
04489: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04490: VALUES ('????????????????','???????????????????????? ???????????????????? ????????????????',NULL)
04491: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04492: VALUES ('????????????','????????????',NULL)
04493: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04494: VALUES ('??????????????','?????????????????????? ??????????????',NULL)
04495: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04496: VALUES ('??????????????','???????????????????? ????????????????????',NULL)
04497: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04498: VALUES ('??????????','???????????????????? ??????????',NULL)
04499: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04500: VALUES ('??????????????????','???????????????????? ??????????????????',NULL)
04501: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04502: VALUES ('????????????','?????????????????????? ????????????????????',NULL)
04503: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04504: VALUES ('????????????','????????????',NULL)
04505: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04506: VALUES ('?????????? ????????.','???????????????????? ??????????','???????????????????? ??????????')
04507: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04508: VALUES ('????????????????????','?????????????? ???????????????????? ????????????????????',NULL)
04509: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04510: VALUES ('????????????????????','?????????????????????? ????????????????????',NULL)
04511: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04512: VALUES ('????????????','???????????????? ????????????????????',NULL)
04513: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04514: VALUES ('????????????-????????','????????????-???????? (??????)',NULL)
04515: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04516: VALUES ('????????????????','???????????????????? ????????????????',NULL)
04517: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04518: VALUES ('???????????? (??????????????)','???????????? (??????????????)','??????????????')
04519: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04520: VALUES ('??????????????','?????????????????????? ??????????????',NULL)
04521: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04522: VALUES ('??????????????','??????????????',NULL)
04523: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04524: VALUES ('??????????????????','???????????????????? ??????????????????',NULL)
04525: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04526: VALUES ('??????????????????','?????????????????????? ????????????????????',NULL)
04527: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04528: VALUES ('??????????????','?????????????????????? ????????????????????',NULL)
04529: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04530: VALUES ('?????????? (????????)','????????',NULL)
04531: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04532: VALUES ('??????????????','???????????????????????? ?????????????????????? ??????????',NULL)
04533: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04534: VALUES ('??????????-????????','???????????????????? ??????????-????????',NULL)
04535: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04536: VALUES ('????????????????????','?????????????????????????? ????????????????????',NULL)
04537: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04538: VALUES ('????????????????','???????????????????????? ???????????????????? ????????????????',NULL)
04539: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04540: VALUES ('??????????????????','??????????????????',NULL)
04541: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04542: VALUES ('??????????????','??????????????',NULL)
04543: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04544: VALUES ('?????????????????? ????????????????????','?????????????????? ????????????????????','????????????????')
04545: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04546: VALUES ('????????????','????????????',NULL)
04547: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04548: VALUES ('??????????','?????????????? ????????????????????',NULL)
04549: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04550: VALUES ('??????????????','??????????????',NULL)
04551: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04552: VALUES ('??????????????',NULL,NULL)
04553: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04554: VALUES ('????????????????','????????????????',NULL)
04555: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04556: VALUES ('??????????????',NULL,NULL)
04557: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04558: VALUES ('??????????????',NULL,NULL)
04559: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04560: VALUES ('??????????',NULL,NULL)
04561: INSERT SY_Countries (sCountryName,sNXCountryName,sNX2CountryName)
04562: VALUES ('????????????',NULL,NULL)
04563: GO
04564: INSERT PR_ClassTypeList (Name,OrdinalNo,ImageKey,IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails)
04565: VALUES ('??????????',2,'i1',1,0,0,0,0)
04566: INSERT PR_ClassTypeList (Name,OrdinalNo,ImageKey,IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails)
04567: VALUES ('??????????????????',3,'i1',0,0,0,1,0)
04568: INSERT PR_ClassTypeList (Name,OrdinalNo,ImageKey,IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails)
04569: VALUES ('??????????????????',4,'i1',0,0,1,0,0)
04570: INSERT PR_ClassTypeList (Name,OrdinalNo,ImageKey,IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails)
04571: VALUES ('????????????????????????????',5,'i1',0,0,0,0,1)
04572: INSERT PR_ClassTypeList (Name,OrdinalNo,ImageKey,IsBrend,IsMagazin,IsKategory,IsSubGroup,IsDetails)
04573: VALUES ('??????????????',7,'i1',0,1,0,0,0)
04574: GO
04575: INSERT PR_PresenceType (Name,OrdinalNo,ImageKey)
04576: VALUES ('Auto',1,NULL)
04577: INSERT PR_PresenceType (Name,OrdinalNo,ImageKey)
04578: VALUES ('???????????? ?? ??????????????',2,NULL)
04579: INSERT PR_PresenceType (Name,OrdinalNo,ImageKey)
04580: VALUES ('???????????? ?????? ?? ??????????????',3,NULL)
04581: INSERT PR_PresenceType (Name,OrdinalNo,ImageKey)
04582: VALUES ('???? ???????????????????? ???? ??????????',4,NULL)
04583: INSERT PR_PresenceType (Name,OrdinalNo,ImageKey)
04584: VALUES ('??????????????',5,NULL)
04585: GO
04586: INSERT PR_ProviderList (FormaterName,DefaultParm)
04587: VALUES ('PR_FP_XL_Outline',';???????????????????????? ???????????????? ?? ?????????? ?? ??????????????
04588: [DataLocation]
04589: NameCol=2
04590: StartRow=6
04591: MaxRow=10000
04592: ;?????????????????????? ?????????????? ???????????? - ?????????????? "=0" ???? ??????????????????????
04593: PriceBuy=3
04594: PriceSale=0
04595: Price1=0
04596: Price2=0
04597: Price3=0
04598: Price4=0
04599: Price5=0
04600: Price6=0
04601:
04602:
04603: ;???????????????? ?????????????????????? ???????????? ????????????????
04604: [TreeDefine]
04605: ;?????????? ??????????????????????: 0 - ?????????????????????????? ?????????????????? ???? ???????? ?????????????????????? (?????????????? ??????????)
04606: ; 1- ?????????????????????????? ????????????, ?????????????? ?? ?????????????????? ??????????????
04607: ; 2- OutLine
04608: TreeMode=2
04609: ; ?????? Mode=1 ?????????? ?????????????? ?? ?????????????? ????????????????
04610: TreeCol=1
04611: ;?????????????? ?????????????? ?????????????? - ???????????? ???????? ?? ?????????????????? ??????????????
04612: TreeFlag=2
04613:
04614: [Articul]
04615: ;???????????????????? ????????????????: 0-??????????????????????, ?????? ?????????? ??????????????
04616: ArtCol=0
04617:
04618: ;???????????????? ?????????????????????? ????????????
04619: [CheckPrice]
04620: ;?????????? ????????????????: 0-?????????? ?? ????????????, 1-...
04621: CheckMode=0
04622: CheckRow=4
04623: CheckCol=2
04624: CheckText=??????????-???????? "????????????"
04625:
04626: ;?????????? ????????
04627: [DateLocation]
04628: ;??????????: 2-?????? ???????? (???????????????????????? ?????????????? ???????? ?? ??????????),
04629: ; 1-?????? ???????? (???????????????????????? ?????????????? ????????), 0-???????? ?? ????????????
04630: DateMode=2
04631: DateRow=5
04632: DateCol=2
04633: DateReplace= ??.,
04634: ')
04635: INSERT PR_ProviderList (FormaterName,DefaultParm)
04636: VALUES ('PR_FP_Text','[DataLocation]
04637: NameCol=2
04638: StartRow=2
04639: MaxRow=10000
04640: ;?????????????????????? ?????????????? ???????????? - ?????????????? "=0" ???? ??????????????????????
04641: PriceBuy=4
04642: PriceSale=5
04643: Price1=0
04644: Price2=0
04645: Price3=0
04646: Price4=0
04647: Price5=0
04648: Price6=0
04649:
04650:
04651: ;???????????????? ?????????????????????? ???????????? ????????????????
04652: [TreeDefine]
04653: ; 1- ?????????????????????????? ????????????, ?????????????? ?? ?????????????????? ??????????????
04654: TreeMode=1
04655: ; ?????? Mode=1 ?????????? ?????????????? ?? ?????????????? ????????????????
04656: TreeCol=2
04657: NameReplace=,,,
04658:
04659:
04660: [Articul]
04661: ;???????????????????? ????????????????: ?????????? ??????????????
04662: ArtCol=0
04663:
04664:
04665: ;???????????????? ?????????????????????? ????????????
04666: [CheckPrice]
04667: ;?????????? ????????????????: 0-?????????? ?? ????????????.
04668: CheckMode=0
04669: CheckRow=0
04670: CheckCol=0
04671: CheckText=??????
04672:
04673:
04674: ;?????????? ????????
04675: [DateLocation]
04676: ;??????????: 2-?????? ???????? (???????????????????????? ?????????????? ???????? ?? ??????????),
04677: DateMode=2
04678:
04679:
04680: [TovarPresence]
04681: ;?????????????? ?? ???????????????????? ?????????????? ????????????
04682: PresenceColumn=6
04683: PresenceNo=??????????????????????,???? ??????????????????,??????????????????
04684:
04685: ')
04686:
04687:
04688: INSERT PR_ImportParm (ImportName,KKID,Formater,FormaterParm,Srok,SrokActionType,PresentType,ArticulType,SourceType,SourceURL,SourceCheck,Comment,Visible)
04689: VALUES ('OSTAVA',3412,'PR_FP_XL_Outline',';???????????????????????? ???????????????? ?? ?????????? ?? ??????????????
04690: [DataLocation]
04691: NameCol=2
04692: StartRow=6
04693: MaxRow=10000
04694: ;?????????????????????? ?????????????? ???????????? - ?????????????? "=0" ???? ??????????????????????
04695: PriceBuy=3
04696: PriceSale=6
04697: Price1=0
04698: Price2=0
04699: Price3=0
04700: Price4=0
04701: Price5=0
04702: Price6=0
04703:
04704:
04705: ;???????????????? ?????????????????????? ???????????? ????????????????
04706: [TreeDefine]
04707: ;?????????? ??????????????????????: 0 - ?????????????????????????? ?????????????????? ???? ???????? ?????????????????????? (?????????????? ??????????)
04708: ; 1- ?????????????????????????? ????????????, ?????????????? ?? ?????????????????? ??????????????
04709: TreeMode=2
04710: ; ?????? Mode=1 ?????????? ?????????????? ?? ?????????????? ????????????????
04711: TreeCol=1
04712: ;?????????????? ?????????????? ?????????????? - ???????????? ???????? ?? ?????????????????? ??????????????
04713: TreeFlag=2
04714:
04715: [Articul]
04716: ;???????????????????? ????????????????: 0-??????????????????????, ?????? ?????????? ??????????????
04717: ArtCol=0
04718: ;??????????????, ?????? ???????????????? ???????????????? ?? ??????????????, - ?? ?????????????? ?? ?????????????? - ???????????? ????????
04719: ArtOrDataCol=2
04720:
04721: ;???????????????? ?????????????????????? ????????????
04722: [CheckPrice]
04723: ;?????????? ????????????????: 0-?????????? ?? ????????????, 1-...
04724: CheckMode=0
04725: CheckRow=4
04726: CheckCol=2
04727: CheckText=??????????-???????? "????????????"
04728:
04729: ;?????????? ????????
04730: [DateLocation]
04731: ;??????????: 2-?????? ???????? (???????????????????????? ?????????????? ???????? ?? ??????????),
04732: ; 1-?????? ???????? (???????????????????????? ?????????????? ????????), 0-???????? ?? ????????????
04733: DateMode=2
04734: DateRow=5
04735: DateCol=2
04736: DateReplace= ??.,
04737:
04738:
04739:
04740: ',30,1,1,1,3,'',0,NULL,1)
04741: INSERT PR_ImportParm (ImportName,KKID,Formater,FormaterParm,Srok,SrokActionType,PresentType,ArticulType,SourceType,SourceURL,SourceCheck,Comment,Visible)
04742: VALUES ('Nix',2856,'PR_FP_XL_Outline','[DataLocation]
04743: NameCol=2
04744: StartRow=8
04745: MaxRow=1000
04746: ;?????????????????????? ?????????????? ???????????? - ?????????????? "=0" ???? ??????????????????????
04747: PriceBuy=6
04748: PriceSale=4
04749: Price1=4
04750: Price2=5
04751: Price3=6
04752: Price4=0
04753: Price5=0
04754: Price6=0
04755:
04756:
04757: ;???????????????? ?????????????????????? ???????????? ????????????????
04758: [TreeDefine]
04759: ;?????????? ??????????????????????: 0 - ?????????????????????????? ?????????????????? ???? ???????? ?????????????????????? (?????????????? ??????????)
04760: ; 1- ?????????????????????????? ????????????, ?????????????? ?? ?????????????????? ??????????????
04761: TreeMode=1
04762: ; ?????? Mode=1 ?????????? ?????????????? ?? ?????????????? ????????????????
04763: TreeCol=1
04764: ;?????????????? ?????????????? ?????????????? - ???????????? ???????? ?? ?????????????????? ??????????????
04765: TreeFlag=2
04766:
04767: [Articul]
04768: ;???????????????????? ????????????????: 0-??????????????????????, ?????? ?????????? ??????????????
04769: ArtCol=1
04770: ;??????????????, ?????? ???????????????? ???????????????? ?? ??????????????, - ?? ?????????????? ?? ?????????????? - ???????????? ????????
04771: ArtOrDataCol=2
04772:
04773: ;???????????????? ?????????????????????? ????????????
04774: [CheckPrice]
04775: ;?????????? ????????????????: 0-?????????? ?? ????????????, 1-...
04776: CheckMode=0
04777: CheckRow=2
04778: CheckCol=2
04779: CheckText=??????. 974-3333 (30 ??????????), 616-70-01 (5 ??????????) http://www.nix.ru E-mail: sale@nix.ru
04780:
04781: ;?????????? ????????
04782: [DateLocation]
04783: ;??????????: 2-?????? ???????? (???????????????????????? ?????????????? ???????? ?? ??????????),
04784: ; 1-?????? ???????? (???????????????????????? ?????????????? ????????), 0-???????? ?? ????????????
04785: DateMode=0
04786: DateRow=2
04787: DateCol=5
04788: ;DateReplace=,
04789:
04790:
04791: ',30,1,1,1,3,'',0,NULL,1)
04792: INSERT PR_ImportParm (ImportName,KKID,Formater,FormaterParm,Srok,SrokActionType,PresentType,ArticulType,SourceType,SourceURL,SourceCheck,Comment,Visible)
04793: VALUES ('????????????????????????',768,'PR_FP_Text','[DataLocation]
04794: NameCol=2
04795: StartRow=2
04796: MaxRow=1000
04797: ;?????????????????????? ?????????????? ???????????? - ?????????????? "=0" ???? ??????????????????????
04798: PriceBuy=4
04799: PriceSale=5
04800: Price1=0
04801: Price2=0
04802: Price3=0
04803: Price4=0
04804: Price5=0
04805: Price6=0
04806:
04807:
04808: ;???????????????? ?????????????????????? ???????????? ????????????????
04809: [TreeDefine]
04810: ; 1- ?????????????????????????? ????????????, ?????????????? ?? ?????????????????? ??????????????
04811: TreeMode=1
04812: ; ?????? Mode=1 ?????????? ?????????????? ?? ?????????????? ????????????????
04813: TreeCol=2
04814: NameReplace=,,,
04815:
04816:
04817: [Articul]
04818: ;???????????????????? ????????????????: ?????????? ??????????????
04819: ArtCol=0
04820:
04821:
04822: ;???????????????? ?????????????????????? ????????????
04823: [CheckPrice]
04824: ;?????????? ????????????????: 0-?????????? ?? ????????????.
04825: CheckMode=0
04826: CheckRow=0
04827: CheckCol=0
04828: CheckText=??????
04829:
04830:
04831: ;?????????? ????????
04832: [DateLocation]
04833: ;??????????: 2-?????? ???????? (???????????????????????? ?????????????? ???????? ?? ??????????),
04834: DateMode=2
04835:
04836:
04837: [TovarPresence]
04838: ;?????????????? ?? ???????????????????? ?????????????? ????????????
04839: PresenceColumn=6
04840: PresenceNo=??????????????????????,???? ??????????????????,??????????????????
04841:
04842:
04843: ',30,1,1,1,1,'C:\Documents and Settings\Administrator\Desktop\rustyle.txt',0,NULL,1)
04844: GO
04845:
04846: INSERT PR_ImportParmAction (Actions,Yes_MsgAndBlock,Yes_MsgOnly)
04847: VALUES ('???????????? ????????????????????',0,1)
04848: INSERT PR_ImportParmAction (Actions,Yes_MsgAndBlock,Yes_MsgOnly)
04849: VALUES ('???????????????????? ?? ???????????????????????? ???????????????????? ???????????? ????????????',1,0)
04850: GO
04851: INSERT PR_ImportParmArticul (Articul,Yes_Articul,No_Articul)
04852: VALUES ('???????????????? ????????',1,0)
04853: INSERT PR_ImportParmArticul (Articul,Yes_Articul,No_Articul)
04854: VALUES ('?????????????????? ??????',0,1)
04855: GO
04856: INSERT PR_ImportParmPresent (Present,Yes_PriceOnly,Yes_PriceFlag)
04857: VALUES ('???? ????????????',1,0)
04858: INSERT PR_ImportParmPresent (Present,Yes_PriceOnly,Yes_PriceFlag)
04859: VALUES ('???? ???????????????? ?? ????????????',0,1)
04860: GO
04861: INSERT PR_ImportParmSourceType (SourceTypeName,IsFile,IsURL,IsOpenFile)
04862: VALUES ('????????',1,0,0)
04863: INSERT PR_ImportParmSourceType (SourceTypeName,IsFile,IsURL,IsOpenFile)
04864: VALUES ('URL',0,1,0)
04865: INSERT PR_ImportParmSourceType (SourceTypeName,IsFile,IsURL,IsOpenFile)
04866: VALUES ('???????????????? ????????',0,0,1)
04867: GO
04868:
04869:
04870:
04871:
04872: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04873: VALUES (1,'i','int',1,'1',1,'i',1000,'i',1,2,6,0,1000,0,250,0)
04874: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04875: VALUES (2,'ToImport','int',40,'1',1,'ToImport',0,'ToImport',0,2,6,0,1000,0,250,0)
04876: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04877: VALUES (3,'ToImportLog','int',3,'1',1,'ToImportLog',0,'ToImportLog',0,2,6,0,1000,0,250,0)
04878: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04879: VALUES (4,'ToSuppPrice','int',4,'1',1,'ToSuppPrice',0,'ToSuppPrice',0,2,6,0,1000,0,250,0)
04880: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04881: VALUES (5,'Type','int',5,'1',1,'Type',0,'Type',0,2,6,0,1000,0,250,0)
04882: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04883: VALUES (6,'PriceSale','money',6,'1',1,'PriceSale',1000,'PriceSale',0,2,6,0,1000,0,250,2)
04884: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04885: VALUES (7,'PriceBuy','money',7,'1',1,'PriceBuy',1000,'PriceBuy',0,2,6,0,1000,0,250,2)
04886: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04887: VALUES (8,'Price1','money',8,'1',1,'Price1',1000,'Price1',0,2,6,0,1000,0,250,2)
04888: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04889: VALUES (9,'Price2','money',9,'1',1,'Price2',1000,'Price2',0,2,6,0,1000,0,250,2)
04890: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04891: VALUES (10,'Price3','money',10,'1',1,'Price3',1000,'Price3',0,2,6,0,1000,0,250,2)
04892: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04893: VALUES (11,'Price4','money',11,'1',1,'Price4',1000,'Price4',0,2,6,0,1000,0,250,2)
04894: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04895: VALUES (12,'Price5','money',12,'1',1,'Price5',1000,'Price5',0,2,6,0,1000,0,250,2)
04896: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04897: VALUES (13,'Price6','money',13,'1',1,'Price6',1000,'Price6',0,2,6,0,1000,0,250,2)
04898: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04899: VALUES (14,'DeltaPriceSale','money',14,'1',1,'DeltaPriceSale',1000,'DeltaPriceSale',0,2,6,0,1000,0,250,2)
04900: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04901: VALUES (15,'DeltaPriceBuy','money',15,'1',1,'DeltaPriceBuy',1000,'DeltaPriceBuy',0,2,6,0,1000,0,250,2)
04902: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04903: VALUES (16,'DeltaPrice1','money',16,'1',1,'DeltaPrice1',1000,'DeltaPrice1',0,2,6,0,1000,0,250,2)
04904: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04905: VALUES (17,'DeltaPrice2','money',17,'1',1,'DeltaPrice2',1000,'DeltaPrice2',0,2,6,0,1000,0,250,2)
04906: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04907: VALUES (18,'DeltaPrice3','money',18,'1',1,'DeltaPrice3',1000,'DeltaPrice3',0,2,6,0,1000,0,250,2)
04908: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04909: VALUES (19,'DeltaPrice4','money',19,'1',1,'DeltaPrice4',1000,'DeltaPrice4',0,2,6,0,1000,0,250,2)
04910: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04911: VALUES (20,'DeltaPrice5','money',20,'1',1,'DeltaPrice5',1000,'DeltaPrice5',0,2,6,0,1000,0,250,2)
04912: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04913: VALUES (21,'DeltaPrice6','money',21,'1',1,'DeltaPrice6',1000,'DeltaPrice6',0,2,6,0,1000,0,250,2)
04914: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04915: VALUES (22,'Name','nvarchar',2,'1',1,'Name',5000,'Name',0,2,0,0,1000,0,250,0)
04916: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04917: VALUES (23,'MapStatus','int',23,'1',1,'MapStatus',0,'MapStatus',0,2,6,0,1000,0,250,0)
04918: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04919: VALUES (24,'Presence','int',24,'1',1,'Presence',0,'Presence',0,2,6,0,1000,0,250,0)
04920: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04921: VALUES (25,'path1','nvarchar',25,'1',1,'path1',1000,'path1',0,2,0,0,1000,0,250,0)
04922: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04923: VALUES (26,'path2','nvarchar',26,'1',1,'path2',1000,'path2',0,2,0,0,1000,0,250,0)
04924: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04925: VALUES (27,'path3','nvarchar',27,'1',1,'path3',1000,'path3',0,2,0,0,1000,0,250,0)
04926: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04927: VALUES (28,'path4','nvarchar',28,'1',1,'path4',1000,'path4',0,2,0,0,1000,0,250,0)
04928: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04929: VALUES (29,'path5','nvarchar',29,'1',1,'path5',1000,'path5',0,2,0,0,1000,0,250,0)
04930: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04931: VALUES (30,'path6','nvarchar',30,'1',1,'path6',1000,'path6',0,2,0,0,1000,0,250,0)
04932: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04933: VALUES (31,'path7','nvarchar',31,'1',1,'path7',1000,'path7',0,2,0,0,1000,0,250,0)
04934: INSERT PR_ST_ChangesMap (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04935: VALUES (32,'path8','nvarchar',32,'1',1,'path8',1000,'path8',0,2,0,0,1000,0,250,0)
04936:
04937: GO
04938:
04939:
04940:
04941: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04942: VALUES (1,'id','int',1,'1',1,'id',1,'id',1,2,6,0,1000,0,250,0)
04943: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04944: VALUES (2,'Name','nvarchar',2,'1',1,'Name',2100,'Name',0,2,0,0,1000,0,250,0)
04945: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04946: VALUES (3,'Description','nvarchar',3,'1',1,'Description',1,'Description',0,2,0,0,1000,0,250,0)
04947: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04948: VALUES (4,'ImageKey','nvarchar',4,'1',1,'ImageKey',1,'ImageKey',0,2,0,0,1000,0,250,0)
04949: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04950: VALUES (5,'Image','image',5,'1',1,'Image',1,'Image',0,2,0,0,1000,0,250,0)
04951: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04952: VALUES (6,'TypeName','nvarchar',6,'1',1,'TypeName',1600,'TypeName',0,2,0,0,1000,0,250,0)
04953: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04954: VALUES (7,'Type','int',7,'1',1,'Type',1,'Type',0,2,6,0,1000,0,250,0)
04955: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04956: VALUES (8,'TypeKey','nvarchar',8,'1',1,'TypeKey',1,'TypeKey',0,2,0,0,1000,0,250,0)
04957: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04958: VALUES (9,'IsBrend','bit',9,'1',1,'IsBrend',1,'IsBrend',0,2,0,0,1000,0,250,0)
04959: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04960: VALUES (10,'IsMagazin','bit',10,'1',1,'IsMagazin',1,'IsMagazin',0,2,0,0,1000,0,250,0)
04961: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04962: VALUES (11,'IsKategory','bit',11,'1',1,'IsKategory',1,'IsKategory',0,2,0,0,1000,0,250,0)
04963: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04964: VALUES (12,'IsSubGroup','bit',12,'1',1,'IsSubGroup',1,'IsSubGroup',0,2,0,0,1000,0,250,0)
04965: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04966: VALUES (13,'IsDetails','bit',13,'1',1,'IsDetails',1,'IsDetails',0,2,0,0,1000,0,250,0)
04967: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04968: VALUES (14,'TypeImage','image',14,'1',1,'TypeImage',1,'TypeImage',0,2,0,0,1000,0,250,0)
04969: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04970: VALUES (15,'GroupName','nvarchar',15,'1',1,'GroupName',1,'GroupName',0,2,0,0,1000,0,250,0)
04971: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04972: VALUES (16,'Group','int',16,'1',1,'Group',1,'Group',0,2,6,0,1000,0,250,0)
04973: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04974: VALUES (17,'GroupKey','nvarchar',17,'1',1,'GroupKey',1,'GroupKey',0,2,0,0,1000,0,250,0)
04975: INSERT PR_ST_Classifier (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04976: VALUES (18,'GroupImage','image',18,'1',1,'GroupImage',1,'GroupImage',0,2,0,0,1000,0,250,0)
04977:
04978: GO
04979:
04980:
04981:
04982: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04983: VALUES (1,'i','int',1,'1',1,'i',1,'i',1,2,6,0,1000,0,250,0)
04984: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04985: VALUES (2,'ToClissifierList','int',2,'1',1,'ToClissifierList',1,'ToClissifierList',0,2,6,0,1000,0,250,0)
04986: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04987: VALUES (3,'ToGroup','int',15,'1',1,'ToGroup',1200,'ToGroup',0,2,4,8,1000,0,250,0)
04988: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04989: VALUES (4,'Key1','nvarchar',4,'1',1,'Key1',1100,'Key1',0,2,0,2,1000,0,250,0)
04990: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04991: VALUES (5,'And1','nvarchar',5,'1',1,'And1',500,' ',0,2,0,0,1000,0,250,0)
04992: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04993: VALUES (6,'Ne1','nvarchar',6,'1',1,'Ne1',500,' ',0,2,0,0,1000,0,250,0)
04994: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04995: VALUES (7,'Ne1_','bit',7,'1',1,'Ne1_',1,'Ne1_',0,2,0,0,1000,0,250,0)
04996: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04997: VALUES (8,'Key2','nchar',8,'1',1,'Key2',1100,'Key2',0,2,0,2,1000,0,250,0)
04998: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
04999: VALUES (9,'And2','nvarchar',9,'1',1,'And2',500,' ',0,2,0,0,1000,0,250,0)
05000: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05001: VALUES (10,'Ne2','nvarchar',10,'1',1,'Ne2',500,' ',0,2,0,0,1000,0,250,0)
05002: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05003: VALUES (11,'Ne2_','bit',11,'1',1,'Ne2_',1,'Ne2_',0,2,0,0,1000,0,250,0)
05004: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05005: VALUES (12,'Key3','nvarchar',12,'1',1,'Key3',1100,'Key3',0,2,0,2,1000,0,250,0)
05006: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05007: VALUES (13,'Reg','nvarchar',13,'1',1,'Reg',500,' ',0,2,0,0,1000,0,250,0)
05008: INSERT PR_ST_GetCheckTovarName (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05009: VALUES (14,'Reg_','bit',14,'1',1,'Reg_',1,'Reg_',0,2,0,0,1000,0,250,0)
05010:
05011: GO
05012:
05013:
05014:
05015: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05016: VALUES (1,'i','int',1,1,1,'i',0,'i',0,2,6,0,1000,0,250,0)
05017: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05018: VALUES (2,'Key','nvarchar',2,1,1,'Key',0,'Key',0,2,0,0,1000,0,250,0)
05019: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05020: VALUES (3,'Image','image',3,1,1,'Image',0,'Image',0,2,0,0,1000,0,250,0)
05021: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05022: VALUES (4,'Alias','nvarchar',4,1,1,'Alias',0,'Alias',0,2,0,0,1000,0,250,0)
05023: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05024: VALUES (5,'id','int',5,1,1,'id',500,'id',1,2,6,0,1000,0,250,0)
05025: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05026: VALUES (6,'Name','nvarchar',6,1,1,'Name',10000,'Name',0,2,0,0,1000,0,250,0)
05027: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05028: VALUES (7,'OrdinalNo','int',7,1,1,'OrdinalNo',300,'OrdinalNo',0,2,6,0,1000,0,250,0)
05029: INSERT PR_ST_Group (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05030: VALUES (8,'ImageKey','nvarchar',8,1,1,'ImageKey',300,'ImageKey',0,2,0,0,1000,0,250,0)
05031:
05032: GO
05033:
05034:
05035:
05036: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05037: VALUES (1,'ID','int',1,'1',1,'ID',1000,'ID',1,2,6,0,1000,0,250,0)
05038: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05039: VALUES (2,'????????','nvarchar',2,'1',1,'????????',1000,'????????',0,2,0,0,1000,0,250,0)
05040: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05041: VALUES (3,'????????????????????????','nvarchar',3,'1',1,'????????????????????????',1000,'????????????????????????',0,2,0,0,1000,0,250,0)
05042: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05043: VALUES (4,'??????????????????','nvarchar',4,'1',1,'??????????????????',1000,'??????????????????',0,2,0,0,1000,0,250,0)
05044: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05045: VALUES (5,'????????????','nvarchar',5,'1',1,'????????????',1000,'????????????',0,2,0,0,1000,0,250,0)
05046: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05047: VALUES (6,'Xls','nvarchar',6,'1',1,'Xls',1000,'Xls',0,2,2,0,1000,0,250,0)
05048: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05049: VALUES (7,'Chk','nvarchar',7,'1',1,'Chk',1000,'Chk',0,2,2,0,1000,0,250,0)
05050: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05051: VALUES (8,'Pos','nvarchar',8,'1',1,'Pos',1000,'Pos',0,2,2,0,1000,0,250,0)
05052: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05053: VALUES (9,'Map','nvarchar',9,'1',1,'Map',1000,'Map',0,2,2,0,1000,0,250,0)
05054: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05055: VALUES (10,'Mon','nvarchar',10,'1',1,'Mon',1000,'Mon',0,2,2,0,1000,0,250,0)
05056: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05057: VALUES (11,'DelTrRows','int',11,'1',1,'DelTrRows',1000,'DelTrRows',0,2,6,0,1000,0,250,0)
05058: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05059: VALUES (12,'DelCorRows','int',12,'1',1,'DelCorRows',1000,'DelCorRows',0,2,6,0,1000,0,250,0)
05060: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05061: VALUES (13,'DelRelRows','int',13,'1',1,'DelRelRows',1000,'DelRelRows',0,2,6,0,1000,0,250,0)
05062: INSERT PR_ST_ImportLog (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05063: VALUES (14,'DelMapRows','int',14,'1',1,'DelMapRows',1000,'DelMapRows',0,2,6,0,1000,0,250,0)
05064:
05065: GO
05066:
05067:
05068:
05069: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05070: VALUES (1,'ID','int',1,'1',1,'ID',1000,'ID',1,2,6,0,1000,0,250,0)
05071: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05072: VALUES (2,'??????','nvarchar',2,'1',1,'??????',1000,'??????',0,2,0,0,1000,0,250,0)
05073: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05074: VALUES (3,'??????????????????','nvarchar',3,'1',1,'??????????????????',1000,'??????????????????',0,2,0,0,1000,0,250,0)
05075: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05076: VALUES (4,'????????????','nvarchar',4,'1',1,'????????????',1000,'????????????',0,2,0,0,1000,0,250,0)
05077: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05078: VALUES (5,'FormaterParm','nvarchar',5,'1',1,'FormaterParm',0,'FormaterParm',0,2,0,0,1000,0,250,0)
05079: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05080: VALUES (6,'Srok','int',6,'1',1,'Srok',0,'Srok',0,2,6,0,1000,0,250,0)
05081: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05082: VALUES (7,'SrokActionType','int',7,'1',1,'SrokActionType',0,'SrokActionType',0,2,6,0,1000,0,250,0)
05083: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05084: VALUES (8,'PresentType','int',8,'1',1,'PresentType',0,'PresentType',0,2,6,0,1000,0,250,0)
05085: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05086: VALUES (9,'ArticulType','int',9,'1',1,'ArticulType',0,'ArticulType',0,2,6,0,1000,0,250,0)
05087: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05088: VALUES (10,'SourceType','int',10,'1',1,'SourceType',0,'SourceType',0,2,6,0,1000,0,250,0)
05089: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05090: VALUES (11,'SourceURL','nvarchar',11,'1',1,'SourceURL',0,'SourceURL',0,2,0,0,1000,0,250,0)
05091: INSERT PR_ST_ImportParm (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05092: VALUES (12,'SourceCheck','bit',12,'1',1,'SourceCheck',0,'SourceCheck',0,2,0,0,1000,0,250,0)
05093:
05094: GO
05095:
05096:
05097:
05098: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05099: VALUES (1,'id','int',1,'1',1,'id',500,'id',1,2,6,0,1000,0,250,0)
05100: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05101: VALUES (2,'ModelName','nvarchar',2,'1',1,'ModelName',10000,'ModelName',0,2,0,0,1000,0,250,0)
05102: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05103: VALUES (3,'PresenseType','int',3,'1',1,'PresenseType',1,'PresenseType',0,2,6,0,1000,0,250,0)
05104: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05105: VALUES (4,'Country','int',4,'1',1,'Country',1,'Country',0,2,6,0,1000,0,250,0)
05106: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05107: VALUES (5,'DescriptionS','nvarchar',5,'1',1,'DescriptionS',1,'DescriptionS',0,2,0,0,1000,0,250,0)
05108: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05109: VALUES (6,'Description','ntext',6,'1',1,'Description',1,'Description',0,2,0,0,1000,0,250,0)
05110: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05111: VALUES (7,'UseFixedPrice','bit',7,'1',1,'UseFixedPrice',1,'UseFixedPrice',0,2,0,0,1000,0,250,0)
05112: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05113: VALUES (8,'FixedPrice','money',8,'1',1,'FixedPrice',1,'FixedPrice',0,2,6,0,1000,0,250,2)
05114: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05115: VALUES (9,'GTD','nvarchar',9,'1',1,'GTD',1,'GTD',0,2,0,0,1000,0,250,0)
05116: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05117: VALUES (10,'UseCategory','bit',10,'1',1,'UseCategory',1,'UseCategory',0,2,0,0,1000,0,250,0)
05118: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05119: VALUES (11,'Favourite','bit',11,'1',1,'Favourite',1,'Favourite',0,2,0,0,1000,0,250,0)
05120: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05121: VALUES (12,'FavColor','int',12,'1',1,'FavColor',1,'FavColor',0,2,6,0,1000,0,250,0)
05122: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05123: VALUES (13,'FavComment','nvarchar',13,'1',1,'FavComment',1,'FavComment',0,2,0,0,1000,0,250,0)
05124: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05125: VALUES (14,'ShopID','int',14,'1',1,'ShopID',1,'ShopID',0,2,0,0,1000,0,250,0)
05126: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05127: VALUES (15,'CategoryID','int',15,'1',1,'CategoryID',1,'CategoryID',0,2,6,0,1000,0,250,0)
05128: INSERT PR_ST_PRList (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05129: VALUES (16,'sCountryName','nvarchar',16,'1',1,'sCountryName',1,'sCountryName',0,2,0,0,1000,0,250,0)
05130:
05131: GO
05132:
05133:
05134:
05135: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05136: VALUES (1,'i','int',1,'0',1,'i',500,'i',1,2,6,0,1000,0,250,0)
05137: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05138: VALUES (3,'Name','nvarchar',3,'0',1,'Name',5000,'Name',0,2,0,0,1000,0,250,0)
05139: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05140: VALUES (4,'Path','nvarchar',4,'0',1,'Path',0,'Path',0,2,0,0,1000,0,250,0)
05141: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05142: VALUES (5,'Art','nvarchar',5,'0',1,'Art',500,'Art',0,2,0,0,1000,0,250,0)
05143: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05144: VALUES (7,'Description','nvarchar',7,'0',1,'Description',0,'Description',0,2,0,0,1000,0,250,0)
05145: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05146: VALUES (8,'URL','nvarchar',8,'0',1,'URL',0,'URL',0,2,0,0,1000,0,250,0)
05147: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05148: VALUES (9,'PriceSale','money',9,'0',1,'PriceSale',0,'PriceSale',0,2,6,0,1000,0,250,2)
05149: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05150: VALUES (10,'PriceBuy','money',10,'0',1,'PriceBuy',0,'PriceBuy',0,2,6,0,1000,0,250,2)
05151: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05152: VALUES (11,'Price1','money',11,'0',1,'Price1',0,'Price1',0,2,6,0,1000,0,250,2)
05153: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05154: VALUES (12,'Price2','money',12,'0',1,'Price2',0,'Price2',0,2,6,0,1000,0,250,2)
05155: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05156: VALUES (13,'Price3','money',13,'0',1,'Price3',0,'Price3',0,2,6,0,1000,0,250,2)
05157: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05158: VALUES (14,'Price4','money',14,'0',1,'Price4',0,'Price4',0,2,6,0,1000,0,250,2)
05159: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05160: VALUES (15,'Price5','money',15,'0',1,'Price5',0,'Price5',0,2,6,0,1000,0,250,2)
05161: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05162: VALUES (16,'Price6','money',16,'0',1,'Price6',0,'Price6',0,2,6,0,1000,0,250,2)
05163: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05164: VALUES (17,'PriceDate','datetime',17,'0',1,'PriceDate',0,'PriceDate',0,2,0,0,1000,0,250,0)
05165: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05166: VALUES (18,'ImportDate','datetime',18,'0',1,'ImportDate',0,'ImportDate',0,2,0,0,1000,0,250,0)
05167: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05168: VALUES (19,'Warranty','int',19,'0',1,'Warranty',0,'Warranty',0,2,6,0,1000,0,250,0)
05169: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05170: VALUES (20,'Path1','nvarchar',20,'0',1,'Path1',1000,'Path1',0,2,0,0,1000,0,250,0)
05171: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05172: VALUES (21,'Path2','nvarchar',21,'0',1,'Path2',1000,'Path2',0,2,0,0,1000,0,250,0)
05173: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05174: VALUES (22,'Path3','nvarchar',22,'0',1,'Path3',1000,'Path3',0,2,0,0,1000,0,250,0)
05175: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05176: VALUES (23,'Path4','nvarchar',23,'0',1,'Path4',1000,'Path4',0,2,0,0,1000,0,250,0)
05177: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05178: VALUES (24,'Path5','nvarchar',24,'0',1,'Path5',1000,'Path5',0,2,0,0,1000,0,250,0)
05179: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05180: VALUES (25,'Path6','nvarchar',25,'0',1,'Path6',1000,'Path6',0,2,0,0,1000,0,250,0)
05181: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05182: VALUES (26,'Path7','nvarchar',26,'0',1,'Path7',1000,'Path7',0,2,0,0,1000,0,250,0)
05183: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05184: VALUES (27,'Path8','nvarchar',27,'0',1,'Path8',1000,'Path8',0,2,0,0,1000,0,250,0)
05185: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05186: VALUES (28,'Presence','int',28,'0',1,'Presence',0,'Presence',0,2,6,0,1000,0,250,0)
05187: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05188: VALUES (29,'Status','int',2,'0',1,'Status',1000,'Status',0,2,6,0,1000,0,250,0)
05189: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05190: VALUES (30,'OwnPriceID','int',30,'0',1,'OwnPriceID',0,'OwnPriceID',0,2,6,0,1000,0,250,0)
05191: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05192: VALUES (31,'ImportLogID','int',31,'0',1,'ImportLogID',0,'ImportLogID',0,2,6,0,1000,0,250,0)
05193: INSERT PR_ST_SuppPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05194: VALUES (32,'Supp','int',32,'0',1,'Supp',0,'Supp',0,2,6,0,1000,0,250,0)
05195:
05196: GO
05197:
05198:
05199:
05200: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05201: VALUES (1,'i','int',1,'1',1,'i',500,'i',1,2,6,0,1000,0,250,0)
05202: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05203: VALUES (3,'Name','nvarchar',3,'1',1,'Name',3000,'Name',0,2,0,0,1000,0,250,0)
05204: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05205: VALUES (4,'Path','nvarchar',4,'1',1,'Path',2000,'Path',0,2,0,0,1000,0,250,0)
05206: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05207: VALUES (5,'Art','nvarchar',10,'1',1,'Art',1000,'Art',0,2,0,0,1000,0,250,0)
05208: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05209: VALUES (7,'Description','nvarchar',7,'1',1,'Description',1000,'Description',0,2,0,0,1000,0,250,0)
05210: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05211: VALUES (8,'URL','nvarchar',8,'1',1,'URL',1000,'URL',0,2,0,0,1000,0,250,0)
05212: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05213: VALUES (9,'PriceSale','money',9,'1',1,'PriceSale',1000,'PriceSale',0,2,6,0,1000,0,250,2)
05214: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05215: VALUES (10,'PriceBuy','money',5,'1',1,'PriceBuy',1000,'PriceBuy',0,2,6,0,1000,0,250,2)
05216: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05217: VALUES (11,'Price1','money',11,'1',1,'Price1',1000,'Price1',0,2,6,0,1000,0,250,2)
05218: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05219: VALUES (12,'Price2','money',12,'1',1,'Price2',1000,'Price2',0,2,6,0,1000,0,250,2)
05220: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05221: VALUES (13,'Price3','money',13,'1',1,'Price3',1000,'Price3',0,2,6,0,1000,0,250,2)
05222: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05223: VALUES (14,'Price4','money',14,'1',1,'Price4',1000,'Price4',0,2,6,0,1000,0,250,2)
05224: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05225: VALUES (15,'Price5','money',15,'1',1,'Price5',1000,'Price5',0,2,6,0,1000,0,250,2)
05226: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05227: VALUES (16,'Price6','money',16,'1',1,'Price6',1000,'Price6',0,2,6,0,1000,0,250,2)
05228: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05229: VALUES (17,'PriceDate','datetime',17,'1',1,'PriceDate',1000,'PriceDate',0,2,0,0,1000,0,250,0)
05230: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05231: VALUES (18,'ImportDate','datetime',18,'1',1,'ImportDate',1000,'ImportDate',0,2,0,0,1000,0,250,0)
05232: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05233: VALUES (19,'Warranty','int',19,'1',1,'Warranty',1000,'Warranty',0,2,6,0,1000,0,250,0)
05234: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05235: VALUES (20,'Path1','nvarchar',20,'1',1,'Path1',1000,'Path1',0,2,0,0,1000,0,250,0)
05236: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05237: VALUES (21,'Path2','nvarchar',21,'1',1,'Path2',1000,'Path2',0,2,0,0,1000,0,250,0)
05238: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05239: VALUES (22,'Path3','nvarchar',22,'1',1,'Path3',1000,'Path3',0,2,0,0,1000,0,250,0)
05240: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05241: VALUES (23,'Path4','nvarchar',23,'1',1,'Path4',1000,'Path4',0,2,0,0,1000,0,250,0)
05242: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05243: VALUES (24,'Path5','nvarchar',24,'1',1,'Path5',1000,'Path5',0,2,0,0,1000,0,250,0)
05244: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05245: VALUES (25,'Path6','nvarchar',25,'1',1,'Path6',1000,'Path6',0,2,0,0,1000,0,250,0)
05246: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05247: VALUES (26,'Path7','nvarchar',26,'1',1,'Path7',1000,'Path7',0,2,0,0,1000,0,250,0)
05248: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05249: VALUES (27,'Path8','nvarchar',27,'1',1,'Path8',1000,'Path8',0,2,0,0,1000,0,250,0)
05250: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05251: VALUES (28,'Presence','int',28,'1',1,'Presence',1000,'Presence',0,2,6,0,1000,0,250,0)
05252: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05253: VALUES (29,'Status','int',29,'1',1,'Status',1000,'Status',0,2,6,0,1000,0,250,0)
05254: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05255: VALUES (30,'PRID','int',30,'1',1,'PRID',1000,'PRID',0,2,6,0,1000,0,250,0)
05256: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05257: VALUES (31,'ImportLogID','int',31,'1',1,'ImportLogID',1000,'ImportLogID',0,2,6,0,1000,0,250,0)
05258: INSERT PR_ST_SuppPrice1 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05259: VALUES (32,'Supp','int',32,'1',1,'Supp',1000,'Supp',0,2,6,0,1000,0,250,0)
05260:
05261: GO
05262:
05263:
05264:
05265: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05266: VALUES (1,'i','int',1,'1',1,'i',1,'i',1,2,6,0,1000,0,250,0)
05267: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05268: VALUES (2,'sName','nvarchar',2,'1',1,'sName',1000,'sName',0,2,0,0,1000,0,250,0)
05269: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05270: VALUES (3,'Name','nvarchar',3,'1',1,'Name',3500,'Name',0,2,0,0,1000,0,250,0)
05271: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05272: VALUES (4,'PriceBuy','money',4,'1',1,'PriceBuy',1000,'PriceBuy',0,2,6,0,1000,0,250,2)
05273: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05274: VALUES (5,'PriceDate','datetime',5,'1',1,'PriceDate',2000,'PriceDate',0,2,0,0,1000,0,250,0)
05275: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05276: VALUES (6,'Srok','int',6,'1',1,'Srok',500,'Srok',0,2,6,0,1000,0,250,0)
05277: INSERT PR_ST_SuppPrice2 (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05278: VALUES (8,'Presence','int',8,'1',1,'Presence',500,'Presence',0,2,6,0,1000,0,250,0)
05279:
05280: GO
05281:
05282:
05283:
05284: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05285: VALUES (1,'i','int',1,'1',1,'i',1000,'i',1,2,6,0,1000,0,250,0)
05286: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05287: VALUES (3,'Name','nvarchar',3,'1',1,'Name',1000,'Name',0,2,0,0,1000,0,250,0)
05288: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05289: VALUES (4,'Path','nvarchar',4,'1',1,'Path',1000,'Path',0,2,0,0,1000,0,250,0)
05290: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05291: VALUES (5,'Art','nvarchar',5,'1',1,'Art',1000,'Art',0,2,0,0,1000,0,250,0)
05292: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05293: VALUES (7,'Description','nvarchar',7,'1',1,'Description',1000,'Description',0,2,0,0,1000,0,250,0)
05294: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05295: VALUES (8,'URL','nvarchar',8,'1',1,'URL',1000,'URL',0,2,0,0,1000,0,250,0)
05296: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05297: VALUES (9,'PriceSale','money',9,'1',1,'PriceSale',1000,'PriceSale',0,2,6,0,1000,0,250,2)
05298: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05299: VALUES (10,'PriceBuy','money',10,'1',1,'PriceBuy',1000,'PriceBuy',0,2,6,0,1000,0,250,2)
05300: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05301: VALUES (11,'Price1','money',11,'1',1,'Price1',1000,'Price1',0,2,6,0,1000,0,250,2)
05302: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05303: VALUES (12,'Price2','money',12,'1',1,'Price2',1000,'Price2',0,2,6,0,1000,0,250,2)
05304: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05305: VALUES (13,'Price3','money',13,'1',1,'Price3',1000,'Price3',0,2,6,0,1000,0,250,2)
05306: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05307: VALUES (14,'Price4','money',14,'1',1,'Price4',1000,'Price4',0,2,6,0,1000,0,250,2)
05308: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05309: VALUES (15,'Price5','money',15,'1',1,'Price5',1000,'Price5',0,2,6,0,1000,0,250,2)
05310: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05311: VALUES (16,'Price6','money',16,'1',1,'Price6',1000,'Price6',0,2,6,0,1000,0,250,2)
05312: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05313: VALUES (17,'PriceDate','datetime',17,'1',1,'PriceDate',1000,'PriceDate',0,2,0,0,1000,0,250,0)
05314: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05315: VALUES (18,'ImportDate','datetime',18,'1',1,'ImportDate',1000,'ImportDate',0,2,0,0,1000,0,250,0)
05316: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05317: VALUES (19,'Warranty','int',19,'1',1,'Warranty',1000,'Warranty',0,2,6,0,1000,0,250,0)
05318: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05319: VALUES (20,'Path1','nvarchar',20,'1',1,'Path1',1000,'Path1',0,2,0,0,1000,0,250,0)
05320: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05321: VALUES (21,'Path2','nvarchar',21,'1',1,'Path2',1000,'Path2',0,2,0,0,1000,0,250,0)
05322: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05323: VALUES (22,'Path3','nvarchar',22,'1',1,'Path3',1000,'Path3',0,2,0,0,1000,0,250,0)
05324: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05325: VALUES (23,'Path4','nvarchar',23,'1',1,'Path4',1000,'Path4',0,2,0,0,1000,0,250,0)
05326: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05327: VALUES (24,'Path5','nvarchar',24,'1',1,'Path5',1000,'Path5',0,2,0,0,1000,0,250,0)
05328: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05329: VALUES (25,'Path6','nvarchar',25,'1',1,'Path6',1000,'Path6',0,2,0,0,1000,0,250,0)
05330: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05331: VALUES (26,'Path7','nvarchar',26,'1',1,'Path7',1000,'Path7',0,2,0,0,1000,0,250,0)
05332: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05333: VALUES (27,'Path8','nvarchar',27,'1',1,'Path8',1000,'Path8',0,2,0,0,1000,0,250,0)
05334: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05335: VALUES (28,'Presence','int',28,'1',1,'Presence',1000,'Presence',0,2,6,0,1000,0,250,0)
05336: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05337: VALUES (29,'Status','int',29,'1',1,'Status',1000,'Status',0,2,6,0,1000,0,250,0)
05338: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05339: VALUES (30,'PrID','int',30,'1',1,'PrID',1000,'PrID',0,2,6,0,1000,0,250,0)
05340: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05341: VALUES (31,'ImportLogID','int',31,'1',1,'ImportLogID',1000,'ImportLogID',0,2,6,0,1000,0,250,0)
05342: INSERT PR_ST_Tree (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05343: VALUES (32,'Supp','int',32,'1',1,'Supp',1000,'Supp',0,2,6,0,1000,0,250,0)
05344:
05345: GO
05346:
05347:
05348:
05349: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05350: VALUES (1,'i','int',1,'1',1,'i',1000,'i',1,2,6,0,1000,0,250,0)
05351: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05352: VALUES (3,'Name','nvarchar',3,'1',1,'Name',1000,'Name',0,2,0,0,1000,0,250,0)
05353: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05354: VALUES (4,'Path','nvarchar',4,'1',1,'Path',1000,'Path',0,2,0,0,1000,0,250,0)
05355: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05356: VALUES (5,'Art','nvarchar',5,'1',1,'Art',1000,'Art',0,2,0,0,1000,0,250,0)
05357: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05358: VALUES (7,'Description','nvarchar',7,'1',1,'Description',1000,'Description',0,2,0,0,1000,0,250,0)
05359: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05360: VALUES (8,'URL','nvarchar',8,'1',1,'URL',1000,'URL',0,2,0,0,1000,0,250,0)
05361: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05362: VALUES (9,'PriceSale','money',9,'1',1,'PriceSale',1000,'PriceSale',0,2,6,0,1000,0,250,2)
05363: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05364: VALUES (10,'PriceBuy','money',10,'1',1,'PriceBuy',1000,'PriceBuy',0,2,6,0,1000,0,250,2)
05365: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05366: VALUES (11,'Price1','money',11,'1',1,'Price1',1000,'Price1',0,2,6,0,1000,0,250,2)
05367: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05368: VALUES (12,'Price2','money',12,'1',1,'Price2',1000,'Price2',0,2,6,0,1000,0,250,2)
05369: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05370: VALUES (13,'Price3','money',13,'1',1,'Price3',1000,'Price3',0,2,6,0,1000,0,250,2)
05371: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05372: VALUES (14,'Price4','money',14,'1',1,'Price4',1000,'Price4',0,2,6,0,1000,0,250,2)
05373: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05374: VALUES (15,'Price5','money',15,'1',1,'Price5',1000,'Price5',0,2,6,0,1000,0,250,2)
05375: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05376: VALUES (16,'Price6','money',16,'1',1,'Price6',1000,'Price6',0,2,6,0,1000,0,250,2)
05377: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05378: VALUES (17,'PriceDate','datetime',17,'1',1,'PriceDate',1000,'PriceDate',0,2,0,0,1000,0,250,0)
05379: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05380: VALUES (18,'ImportDate','datetime',18,'1',1,'ImportDate',1000,'ImportDate',0,2,0,0,1000,0,250,0)
05381: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05382: VALUES (19,'Warranty','int',19,'1',1,'Warranty',1000,'Warranty',0,2,6,0,1000,0,250,0)
05383: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05384: VALUES (20,'Path1','nvarchar',20,'1',1,'Path1',1000,'Path1',0,2,0,0,1000,0,250,0)
05385: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05386: VALUES (21,'Path2','nvarchar',21,'1',1,'Path2',1000,'Path2',0,2,0,0,1000,0,250,0)
05387: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05388: VALUES (22,'Path3','nvarchar',22,'1',1,'Path3',1000,'Path3',0,2,0,0,1000,0,250,0)
05389: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05390: VALUES (23,'Path4','nvarchar',23,'1',1,'Path4',1000,'Path4',0,2,0,0,1000,0,250,0)
05391: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05392: VALUES (24,'Path5','nvarchar',24,'1',1,'Path5',1000,'Path5',0,2,0,0,1000,0,250,0)
05393: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05394: VALUES (25,'Path6','nvarchar',25,'1',1,'Path6',1000,'Path6',0,2,0,0,1000,0,250,0)
05395: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05396: VALUES (26,'Path7','nvarchar',26,'1',1,'Path7',1000,'Path7',0,2,0,0,1000,0,250,0)
05397: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05398: VALUES (27,'Path8','nvarchar',27,'1',1,'Path8',1000,'Path8',0,2,0,0,1000,0,250,0)
05399: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05400: VALUES (28,'Presence','int',28,'1',1,'Presence',1000,'Presence',0,2,6,0,1000,0,250,0)
05401: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05402: VALUES (29,'Status','int',29,'1',1,'Status',1000,'Status',0,2,6,0,1000,0,250,0)
05403: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05404: VALUES (30,'PrID','int',30,'1',1,'PrID',1000,'PrID',0,2,6,0,1000,0,250,0)
05405: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05406: VALUES (31,'ImportLogID','int',31,'1',1,'ImportLogID',1000,'ImportLogID',0,2,6,0,1000,0,250,0)
05407: INSERT PR_ST_Tree_Debug (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05408: VALUES (32,'Supp','int',32,'1',1,'Supp',1000,'Supp',0,2,6,0,1000,0,250,0)
05409:
05410: GO
05411:
05412:
05413:
05414: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05415: VALUES (1,'i','int',1,'0',1,'i',500,'i',1,2,6,0,1000,0,250,0)
05416: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05417: VALUES (2,'Import','int',28,'0',1,'Import',0,'Import',0,2,6,0,1000,0,250,0)
05418: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05419: VALUES (3,'Name','nvarchar',3,'0',1,'Name',5000,'Name',0,2,0,0,1000,0,250,0)
05420: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05421: VALUES (4,'Path','nvarchar',4,'0',1,'Path',0,'Path',0,2,0,0,1000,0,250,0)
05422: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05423: VALUES (5,'Art','nvarchar',5,'0',1,'Art',500,'Art',0,2,0,0,1000,0,250,0)
05424: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05425: VALUES (6,'Availability','int',6,'0',1,'Availability',0,'Availability',0,2,6,0,1000,0,250,0)
05426: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05427: VALUES (7,'Description','nvarchar',7,'0',1,'Description',0,'Description',0,2,0,0,1000,0,250,0)
05428: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05429: VALUES (8,'URL','nvarchar',8,'0',1,'URL',0,'URL',0,2,0,0,1000,0,250,0)
05430: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05431: VALUES (9,'PriceSale','money',9,'0',1,'PriceSale',0,'PriceSale',0,2,6,0,1000,0,250,2)
05432: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05433: VALUES (10,'PriceBuy','money',10,'0',1,'PriceBuy',0,'PriceBuy',0,2,6,0,1000,0,250,2)
05434: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05435: VALUES (11,'Price1','money',11,'0',1,'Price1',0,'Price1',0,2,6,0,1000,0,250,2)
05436: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05437: VALUES (12,'Price2','money',12,'0',1,'Price2',0,'Price2',0,2,6,0,1000,0,250,2)
05438: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05439: VALUES (13,'Price3','money',13,'0',1,'Price3',0,'Price3',0,2,6,0,1000,0,250,2)
05440: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05441: VALUES (14,'Price4','money',14,'0',1,'Price4',0,'Price4',0,2,6,0,1000,0,250,2)
05442: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05443: VALUES (15,'Price5','money',15,'0',1,'Price5',0,'Price5',0,2,6,0,1000,0,250,2)
05444: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05445: VALUES (16,'Price6','money',16,'0',1,'Price6',0,'Price6',0,2,6,0,1000,0,250,2)
05446: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05447: VALUES (17,'PriceDate','datetime',17,'0',1,'PriceDate',0,'PriceDate',0,2,0,0,1000,0,250,0)
05448: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05449: VALUES (18,'ImportDate','datetime',18,'0',1,'ImportDate',0,'ImportDate',0,2,0,0,1000,0,250,0)
05450: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05451: VALUES (19,'Warranty','int',19,'0',1,'Warranty',0,'Warranty',0,2,6,0,1000,0,250,0)
05452: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05453: VALUES (20,'Path1','nvarchar',20,'0',1,'Path1',1000,'Path1',0,2,0,0,1000,0,250,0)
05454: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05455: VALUES (21,'Path2','nvarchar',21,'0',1,'Path2',1000,'Path2',0,2,0,0,1000,0,250,0)
05456: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05457: VALUES (22,'Path3','nvarchar',22,'0',1,'Path3',1000,'Path3',0,2,0,0,1000,0,250,0)
05458: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05459: VALUES (23,'Path4','nvarchar',23,'0',1,'Path4',1000,'Path4',0,2,0,0,1000,0,250,0)
05460: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05461: VALUES (24,'Path5','nvarchar',24,'0',1,'Path5',1000,'Path5',0,2,0,0,1000,0,250,0)
05462: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05463: VALUES (25,'Path6','nvarchar',25,'0',1,'Path6',1000,'Path6',0,2,0,0,1000,0,250,0)
05464: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05465: VALUES (26,'Path7','nvarchar',26,'0',1,'Path7',1000,'Path7',0,2,0,0,1000,0,250,0)
05466: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05467: VALUES (27,'Path8','nvarchar',27,'0',1,'Path8',1000,'Path8',0,2,0,0,1000,0,250,0)
05468: INSERT PR_ST_TrPrice (id,RsFieldsName,ColumnTag,OrdinalNo,IsLoadForSortingToCombobox,TabIndex,Code,Width,sName,IsID,HeaderAlignment,DataAlignment,EditType,MinWidth,MinValue,MaxValue,DecimalPlaces)
05469: VALUES (28,'MapStatus','int',2,'0',1,'MapStatus',1000,'MapStatus',0,2,6,0,1000,0,250,0)
05470:
05471: GO
05472:
05473:
05474: ALTER TABLE dbo.PR_ClassifierList ADD
05475: NameVP nchar(100) NULL,
05476: NamePP nchar(100) NULL,
05477: NameRP nchar(100) NULL
05478: GO
Comments (
)
)
Link to this page:
//www.vb-net.com/wanted/my/prlog.htm
|
|