Задача 102.138534

Задача :102.138534

2015-03-12 14:37:19
Краткое описание :
Сделать методы по работе с внешними атрибутами и классификаторами static
Описание :
Внешние атрибуты
Что измененно :

Сделать методы по работе с внешними атрибутами и классификаторами static

Пригодится для FastReport.
Также является очень часто используемым функционалом. Проще будет посмотреть значение по Ctrl+F4, а также меньше писанины при кодировании
Как измененно :

Сделаны Static методы:
Function ExtAttr_Create(_wTable : word; _Name : string; _Type : word): comp;
Function ExtAttr_ID (_wTable : word; _Name : string): comp;
Function ExtAttr_Type (_wTable : word; _Name : string): word;
Function ExtAttr_Name(_cRec: comp): string;
Function ExtAttr_ValueExists (_wTable : word; _cRec: comp; _Name: string): boolean;
Function ExtAttr_ValueExistsID(_wTable : word; _cRec: comp; _cAttrNam: comp): boolean;
Function ExtAttr_DeleteValue (_wTable : word; _cRec: comp; _Name: string): integer;
Function ExtAttr_DeleteValueID(_wTable : word; _cRec: comp; _cAttrNam: comp): integer;
Function ExtAttr_SetNeedMessage (_NeedMessage : boolean) : boolean;
Procedure ExtAttr_ShowError (_err : word);
Function ExtAttr_LastError : word;
Function ExtAttr_CreateAttrComp (_wTable : word; _Name : string; _Type, _SysNumKau, _KodKau : word) : comp;
Function ExtAttr_CompKodKau (_cAttrNam: comp) : word;
Function ExtAttr_CompSysNumKau(_cAttrNam: comp) : word;
Function sGetAttr (_wTable : word; _cRec : comp; _Name : string) : string;
Function doGetAttr (_wTable : word; _cRec : comp; _Name : string) : double;
Function dGetAttr (_wTable : word; _cRec : comp; _Name : string) : date;
Function tGetAttr (_wTable : word; _cRec : comp; _Name : string) : time;
Function mGetAttr (_wTable : word; _cRec : comp; _Name : string) : string;
Function coGetAttr (_wTable : word; _cRec : comp; _Name : string) : comp;
Function sGetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp) : string;
Function doGetAttrID(_wTable : word; _cRec : comp; _cAttrNam : comp) : double;
Function dGetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp) : date;
Function tGetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp) : time;
Function mGetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp) : string;
Function coGetAttrID(_wTable : word; _cRec : comp; _cAttrNam : comp) : comp;
Function sSetAttr (_wTable : word; _cRec : comp; _Name, _Val : string) : boolean;
Function doSetAttr (_wTable : word; _cRec : comp; _Name : string; _Val : double) : boolean;
Function dSetAttr (_wTable : word; _cRec : comp; _Name : string; _Val : date) : boolean;
Function tSetAttr (_wTable : word; _cRec : comp; _Name : string; _Val : time) : boolean;
Function mSetAttr (_wTable : word; _cRec : comp; _Name, _Val : string) : boolean;
Function coSetAttr (_wTable : word; _cRec : comp; _Name : string; _Val : comp; _ValStr : string) : boolean;
Function sSetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp; _Val : string) : boolean;
Function doSetAttrID(_wTable : word; _cRec : comp; _cAttrNam : comp; _Val : double) : boolean;
Function dSetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp; _Val : date) : boolean;
Function tSetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp; _Val : time) : boolean;
Function mSetAttrID (_wTable : word; _cRec : comp; _cAttrNam : comp; _Val : string) : boolean;
Function coSetAttrID(_wTable : word; _cRec : comp; _cAttrNam : comp; _Val : comp; _ValStr : string) : boolean;
Function CopyAllAttr (_wTableFrom: word; _cRecFrom: comp; _cRecTo: comp) : boolean;
Function CopyAllAttrEx(_wTableFrom: word; _cRecFrom: comp; _wTableTo: word; _cRecTo: comp) : boolean;
Function DeleteAllAttr(_wTable: word; _cRec: comp) : boolean;
Function MoveAllAttr (_wTable: word; _cRecFrom: comp; _cRecTo : comp): boolean;
Function ExtAttr_Pick (_CanEdit: boolean; _wTable: word; _cRec: comp): boolean;
Function ReNameAttr (_wTable : word; _Name : string; _Type, _SysNumKau, _KodKau : word; _NameNew : string; _isCreateAttr : boolean) : comp;
Function DeleteAttr (_wTable: word; _Name : string; _Type : word) : boolean;
Function CopyAttrPick (_wTable: word; _cRecFrom: comp; _cRecTo: comp) : boolean;
Function CopyAttrName (_wTable: word; _cRecFrom: comp; _cRecTo: comp; _Name : string) : boolean;
Function CopyAttrID (_wTable: word; _cRecFrom: comp; _cRecTo: comp; _cAttrNam : comp ) : boolean;
Function GetAttrValueStr (_wTable : word; _cRec : comp; _Name : string) : string;
Function GetAttrValueStrID(_wTable : word; _cRec : comp; _cAttrNam : comp ) : string;
// ExClass.Vih
Function GetClassCode (_wTable: word; _ClassName: string) : word;
Function CreateClass (_wTable: word; _ClassName: string; _UniqFeat : word) : word;
Function AddSegClass(_ClassCode : word; _SegName: string; _SegCode: string; _cGroup: comp) : comp;
Function LinkSegClass (_wTable : word; _cRec : comp; _ClassName: string; _SegName: string) : boolean;
Function ExtClass_SetNeedMessage (_NeedMessage : boolean) : boolean;
Procedure ExtClass_ShowError (_err : word);
Function ExtClass_LastError : word;
Function GetSegName (_ClassCode : word; _cRec : comp) : string;
Function GetSegCode (_ClassCode : word; _cRec : comp) : string;
Function CopyAllClassVal (_wTable : word; _cRecFrom: comp; _cRecTo: comp) : boolean;
Function CopyAllClassValEx (_wTableFrom: word; _cRecFrom: comp; _wTableTo: word; _cRecTo: comp) : boolean;
Function CopyClassEx (_CodeFrom: word; _wTableTo: word) : word;
Function DeleteAllClassVal (_wTable: word; _cRec: comp) : boolean;
Function MoveAllClassVal (_wTable: word; _cRecFrom: comp; _cRecTo: comp): boolean;
Function ExtClass_Pick(_CanEdit: boolean; _wTable: word; _cRec: comp): boolean;
Function CopyAllClassValUniq (_wTable: word; _cRecFrom: comp; _cRecTo: comp; _bZam : boolean) : boolean;
Function CopyClassValPick (_wTable: word; _cRecFrom: comp; _cRecTo: comp) : boolean;
// ExtAttrClass.vih
Function ExtAttrClass_CopyAll (_wTableFrom: word; _cRecFrom: comp; _cRecTo: comp): boolean;
Function ExtAttrClass_CopyAllEx(_wTableFrom: word; _cRecFrom: comp; _wTableTo: word; _cRecTo: comp): boolean;
Function ExtAttrClass_DeleteAll(_wTable: word; _cRec : comp): boolean;
Function ExtAttrClass_MoveAll (_wTable: word; _cRecFrom: comp; _cRecTo: comp): boolean;
Function ExtAttrClass_SetNeedMessage(_NeedMessage : boolean) : boolean;
Procedure ExtAttrClass_ShowError(_err : word);
Function ExtAttrClass_LastError : word;

Название продукта Название компонента Тип Последняя версия Дата выхода
C_EXTCLASSC_EXTCLASSRES9.1.13.02015-03-12 14:37:19
C_EXTCLASSC_EXTCLASSRES9.1.013.0
C_OLAPC_OLAPRES9.1.14.02015-03-20 12:49:49
L_ADVREPL_ADVREPRES9.1.24.02015-05-07 14:19:15
L_BASEDOCL_BASEDOCRES9.1.40.02015-05-07 14:19:15
L_BASEDOCL_BASEDOCRES9.1.040.0
L_COMMONL_COMMONRES9.1.34.02015-03-30 14:22:28
L_COMMONL_COMMONRES9.1.034.0
L_CONSIGL_CONSIGRES9.1.29.02015-05-07 14:19:15
L_DOGOVORL_DOGOVORRES9.1.44.02015-05-07 14:19:15
L_DOGOVORL_DOGOVORRES9.1.044.0
L_DOVERL_DOVERRES9.1.24.02015-05-15 16:08:26
L_DOVERL_DOVERRES9.1.024.0
L_GRSCHL_GRSCHRES9.1.7.02015-05-13 13:53:38
L_KASSAL_KASSARES9.1.8.02015-05-13 13:53:38
L_KATORGL_KATORGRES9.1.34.02015-05-07 14:19:15
L_KATORGL_KATORGRES9.1.034.0
L_KATPARTYL_KATPARTYRES9.1.16.02015-05-28 14:28:30
L_KONTRBALL_KONTRBALRES9.1.22.02015-05-22 12:20:45
L_MAKEDOL_MAKEDORES9.1.17.02015-05-26 11:58:42
L_MAKEDOL_MAKEDORES9.1.017.0
L_MAKENAKLL_MAKENAKLRES9.1.16.02015-05-07 14:19:15
L_MCUL_MCURES9.1.38.02015-03-26 18:52:56
L_MCUL_MCURES9.1.038.0
L_MILKL_MILKRES9.1.1.02015-05-07 14:19:15
L_NALNAKLL_NALNAKLRES9.1.23.02015-05-13 13:53:38
L_NALOGL_NALOGRES9.1.30.02015-03-30 14:22:39
L_OSTATKIL_OSTATKIRES9.1.25.02015-03-16 17:37:58
L_PRICESL_PRICESRES9.1.27.02015-03-16 17:38:09
L_PRICESL_PRICESRES9.1.027.0
L_PRNSOPRL_PRNSOPRRES9.1.32.02015-05-07 14:19:15
L_PRNSOPRL_PRNSOPRRES9.1.032.0
L_REALTINGL_REALTINGRES9.1.16.02015-05-13 13:53:38
L_REMDOCL_REMDOCRES9.1.22.02015-05-25 15:49:25
L_REMDOCL_REMDOCRES9.1.022.0
L_REMONTL_REMONTRES9.1.21.02015-05-25 15:49:26
L_REPOPERL_REPOPERRES9.1.28.02015-05-07 14:19:15
L_REPOPERL_REPOPERRES9.1.028.0
L_ROZNL_ROZNRES9.1.24.02015-05-07 14:19:15
L_SALDOMTRL_SALDOMTRRES9.1.31.02015-05-07 14:19:15
L_SALDOMTRL_SALDOMTRRES9.1.031.0
L_SERIALNL_SERIALNRES9.1.12.02015-05-13 13:53:38
L_SERIALNL_SERIALNRES9.1.012.0
L_SFL_SFRES9.1.44.02015-03-30 14:22:50
L_SFL_SFRES9.1.044.0
L_SKIDL_SKIDRES9.1.11.02015-03-20 12:52:38
L_SKLADL_SKLADRES9.1.45.02015-03-24 15:15:06
L_SKLADL_SKLADRES9.1.045.0
L_SKLREPL_SKLREPRES9.1.33.02015-03-24 15:15:17
L_SKLREPL_SKLREPRES9.1.033.0
L_SMETAL_SMETARES9.1.20.02015-05-07 14:19:16
L_SOPRBASEL_SOPRBASERES9.1.29.02015-05-07 14:19:16
L_SOPRBASEL_SOPRBASERES9.1.029.0
L_SOPRDOCL_SOPRDOCRES9.1.41.02015-03-20 12:52:46
L_SOPRDOCL_SOPRDOCRES9.1.041.0
L_TTNDOCL_TTNDOCRES9.1.11.02015-06-03 13:49:48
L_UKSL_UKSRES9.1.28.02015-05-13 13:53:38
L_UKSL_UKSRES9.1.028.0
L_UKSMTOL_UKSMTORES9.1.22.02015-09-03 15:38:42
L_UKSPLANSL_UKSPLANSRES9.1.16.02015-05-13 13:53:38
L_UKSREPL_UKSREPRES9.1.20.02015-05-13 13:53:38
L_UKSREPL_UKSREPRES9.1.020.0
L_VALL_VALRES9.1.10.02015-05-28 14:28:30
L_WOODL_WOODRES9.1.37.02015-05-07 14:19:16