Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- form Block
- name Блокове
- hor_sectors 2 dimensions 2:8
- ver_sectors 1 dimensions 1
- view_block Block grid
- name Блокове
- coordinates 1,1,1,1
- end_view_block
- view_block Room grid
- name Стаи
- coordinates 2,1,2,1
- end_view_block
- view_block BlockRentPrice nested
- name Цена на наема за блок
- coordinates 1,1,1,1
- end_view_block
- view_block RoomRentPrice nested
- name Цена на наема за стая
- coordinates 1,1,1,1
- end_view_block
- end_form
- view Block
- unique_key BlockID
- can_delete Eng.HasRight("ADMIN")
- can_save Eng.HasRight("INSPECTORMAN")
- sql_unique_clause BlockID = is_gen_long
- sql
- line SELECT * FROM SOS_Block ^^ order by BlockName
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_Block
- end_sql_count
- sql_max
- line SELECT MAX(BlockID) FROM SOS_Block
- end_sql_max
- col BlockID
- length 4
- name ID Блок
- relation_point ToBlockRentPrice
- relation_block BlockRentPrice
- end_col
- col BlockName
- length 10
- name Блок
- relation_point SOS_BLOCK->SOS_ROOM
- relation_block ROOM
- stay_linked true
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col TypePowerMeasure
- name Тип електромер
- length 10
- edit_type button
- button_state Блоков, Стаен
- button_key 0,1
- default_value 0
- end_col
- col Active
- name Активен?
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 1
- end_col
- col TotalVolume
- name Пълен отопляем обем (куб.м.)
- length 10
- decimals 3
- end_col
- col HeatingPower
- name Мощност абонатна станция(квт)
- length 10
- decimals 3
- viewable_in_grid hidden
- end_col
- col RentCoef
- name Коефициент наем
- length 10
- decimals 2
- viewable_in_grid normal
- validate BLOCK_RENTCOEF>=0
- end_col
- relation SOS_Block->SOS_Room
- name Стаи
- type one_to_many
- rs_from Block
- rs_to Room
- fields_from BlockID
- fields_to BlockID
- end_relation
- relation ToBlockRentPrice
- name Цена на наема за блока
- type one_to_many
- rs_from Block
- rs_to BlockRentPrice
- fields_from BlockID
- fields_to BlockID
- end_relation
- end_view
- view BlockRentPrice
- unique_key BlockID, RoomID, ValueDate
- sql
- line SELECT * FROM SOS_RENTPRICE ^^ WHERE BlockID=is_gen_long AND RoomID = -1 ORDER BY ValueDate DESC
- end_sql
- col ID
- name ID
- length 10
- viewable_in_grid hidden
- sql_ignore yes
- end_col
- col BlockID
- name ID блок
- length 10
- viewable_in_grid hidden
- end_col
- col RoomID
- name ID стая
- length 10
- viewable_in_grid hidden
- default_value -1
- end_col
- col ValueDate
- name От дата
- length 10
- end_col
- col ValueType
- name Вид стойност
- length 10
- edit_type button
- button_state ПРОЦЕНТ,СУМА
- button_key 0,1
- default_value 0
- end_col
- col ValueAmount
- name Стойност
- length 10
- decimals 2
- validate BLOCKRENTPRICE_VALUEAMOUNT>0
- end_col
- end_view
- view Room
- unique_key BlockID, RoomID
- sql
- line SELECT * FROM SOS_ROOM ^^ where BlockID = is_gen_long order by RoomName
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_ROOM where BlockID = is_gen_long
- params BlockID
- end_sql_count
- sql_max
- line SELECT max(RoomID) FROM SOS_ROOM where BlockID = is_gen_long
- params BlockID
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- can_save Eng.HasRight("INSPECTORMAN")
- col BlockID
- length 4
- name ID Блок
- viewable_in_grid hidden
- end_col
- col RoomID
- length 4
- name ID Стая
- relation_point ToRoomRentPrice
- relation_block RoomRentPrice
- end_col
- col RoomName
- name Стая
- length 10
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col Places
- name Max. Места
- length 10
- VALIDATE ROOM_PLACES >= 0 && ROOM_PLACES <= 60 && ROOM_BUSY <= ROOM_PLACES
- end_col
- col Busy
- length 10
- name Заети Места
- VALIDATE ROOM_BUSY >= 0 && ROOM_BUSY <= 60
- end_col
- col Area
- name Площ
- length 10
- decimals 2
- end_col
- col PowerMeter
- name Електромер
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 0
- end_col
- col Lift
- name Асансьор
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 0
- end_col
- col Cleaner
- name Чистачка
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 0
- end_col
- col Heating
- name Парно
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 0
- end_col
- col RoomType
- name Тип Стая
- length 10
- edit_type combo
- combo_sql gen_select 0,Празна,1,Мъжка,2,Женска,3,Семейна,4,Чужденци
- default_value 0
- end_col
- col IsActive
- name Използуване
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 1
- end_col
- col IsPayConsume
- name Плаща ли консумативи?
- length 10
- edit_type button
- button_state НЕ, ДА
- button_key 0,1
- default_value 1
- end_col
- col CoefPower
- name Коефицент за ел. енергия
- length 10
- decimals 3
- end_col
- col Volume
- name Отопляем обем (куб.м.)
- length 10
- decimals 3
- end_col
- col RentCoef
- name Коефициент наем
- length 10
- decimals 2
- viewable_in_grid normal
- validate ROOM_RENTCOEF>=0
- end_col
- col PenaltyCoef
- name Наказателен коефициент
- length 10
- viewable_in_grid normal
- edit_type button
- button_state НЕ, ДА, НЕДЕКЛАРИРАНИ ЕЛ.УРЕДИ
- button_key 0,1,2
- default_value 0
- end_col
- relation ToRoomRentPrice
- name Цена на наема за стая
- type one_to_many
- rs_from Room
- rs_to RoomRentPrice
- fields_from BlockID, RoomID
- fields_to BlockID, RoomID
- end_relation
- end_view
- view RoomRentPrice
- unique_key BlockID, RoomID, ValueDate
- sql
- line SELECT * FROM SOS_RENTPRICE ^^ WHERE BlockID=is_gen_long AND RoomID = is_gen_long ORDER BY ValueDate DESC
- end_sql
- col ID
- name ID
- length 10
- viewable_in_grid hidden
- sql_ignore yes
- end_col
- col BlockID
- name ID блок
- length 10
- viewable_in_grid hidden
- end_col
- col RoomID
- name ID стая
- length 10
- viewable_in_grid hidden
- end_col
- col ValueDate
- name От дата
- length 10
- end_col
- col ValueType
- name Вид стойност
- length 10
- edit_type button
- button_state ПРОЦЕНТ,СУМА
- button_key 0,1
- default_value 0
- end_col
- col ValueAmount
- name Стойност
- length 10
- decimals 2
- validate ROOMRENTPRICE_VALUEAMOUNT>0
- end_col
- end_view
- form Department
- name Факултети и специалности
- hor_sectors 1 dimensions 1
- ver_sectors 2 dimensions 3:5
- view_block Departments grid
- name Факултети
- coordinates 1,1,1,1
- end_view_block
- view_block Subjects grid
- name Специалности
- coordinates 1,2,1,2
- end_view_block
- end_form
- view Departments
- unique_key DepartmentID
- can_save Eng.HasRight("ADMIN")
- sql_unique_clause DepartmentID = is_gen_long
- sql
- line SELECT * FROM SOS_DEPARTMENT ^^ order by DepartmentAbrv
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_DEPARTMENT
- end_sql_count
- sql_max
- line SELECT MAX(DepartmentID) FROM SOS_DEPARTMENT
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- col DepartmentID
- length 3
- name ID Факултет
- end_col
- col DepartmentAbrv
- length 8
- name Съкр. наименование
- relation_point Departments->Subjects
- relation_block Subjects
- stay_linked yes
- validate DEPARTMENTS_DEPARTMENTABRV!=""
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col DepartmentName
- length 30
- name Наименование
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col IsLocal
- name ВУЗ
- length 10
- edit_type button
- button_state ТУ, ДРУГ ВУЗ
- button_key 1,0
- default_value 1
- end_col
- relation Departments->Subjects
- name Специалности
- type one_to_many
- rs_from Departments
- rs_to Subjects
- fields_from DepartmentID
- fields_to DepartmentID
- end_relation
- end_view
- view Subjects
- unique_key DepartmentID, SubjectID
- cmd_line yes
- sql
- line SELECT * FROM SOS_SUBJECT ^^ where DepartmentID = is_gen_long order by SubjectAbrv
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_SUBJECT where DepartmentID = is_gen_long
- end_sql_count
- sql_max
- line SELECT max(SubjectID) FROM SOS_SUBJECT where DepartmentID = is_gen_long
- Params DepartmentID
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- col DepartmentID
- length 3
- viewable_in_grid hidden
- end_col
- col SubjectID
- length 3
- //viewable_in_grid hidden
- name ID
- end_col
- col SubjectAbrv
- length 10
- name Съкр. наименование
- VALIDATE SUBJECTS_SUBJECTABRV!=""
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col SubjectName
- name Наименование
- length 25
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- end_view
- form Country
- name Номенклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block Country grid
- name Държави
- coordinates 1,1,1,1
- end_view_block
- end_form
- view Country
- unique_key CountryID
- can_save Eng.HasRight("ADMIN")
- sql_unique_clause CountryID = is_gen_long
- sql
- line SELECT * FROM SOS_COUNTRY ^^ order by CountryName
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_COUNTRY
- end_sql_count
- sql_max
- line SELECT MAX(CountryID) FROM SOS_COUNTRY
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- col CountryID
- length 3
- name ID Държава
- end_col
- col CountryName
- length 35
- name Наименование
- validate COUNTRY_COUNTRYNAME!=""
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- end_view
- form EducationType
- name Номенклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block EducationTypes grid
- name Форми на обучение
- coordinates 1,1,1,1
- end_view_block
- end_form
- view EducationTypes
- unique_key EduTypeID
- can_save Eng.HasRight("ADMIN")
- sql_unique_clause EduTypeID = is_gen_long
- sql
- line SELECT * FROM SOS_EDUTYPE ^^ order by EduTypeAbrv
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_EDUTYPE
- end_sql_count
- sql_max
- line SELECT MAX(EduTypeID) FROM SOS_EDUTYPE
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- col EduTypeID
- length 3
- name ID
- end_col
- col EduTypeAbrv
- length 4
- name Съкр.
- validate EDUCATIONTYPES_EDUTYPEABRV != ""
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col EduTypeName
- length 35
- name Наименование
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- end_view
- form StudentTypes
- name Номенклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block StudentTypes grid
- name Категории студенти
- coordinates 1,1,1,1
- end_view_block
- end_form
- view StudentTypes
- head_lines 1
- unique_key StudentTypeID
- can_save Eng.HasRight("ADMIN")
- can_delete Eng.HasRight("ADMIN")
- sql_unique_clause StudentTypeID = is_gen_long
- sql
- line SELECT * FROM SOS_STUDENTTYPE ^^ order by StudentTypeAbrv
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_STUDENTTYPE
- end_sql_count
- sql_max
- line SELECT MAX(StudentTypeID) FROM SOS_STUDENTTYPE
- end_sql_max
- col StudentTypeID
- length 3
- name ID
- end_col
- col StudentTypeAbrv
- length 4
- name Съкр.
- validate STUDENTTYPES_STUDENTTYPEABRV != ""
- validate_msg Въведете съкратено наименование!
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col StudentTypeName
- length 20
- name Наименование
- validate STUDENTTYPES_STUDENTTYPENAME != ""
- validate_msg Въведете наименование!
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- col OrderNo
- length 10
- name Заповед номер
- validate STUDENTTYPES_ORDERNO != ""
- validate_msg Въведете заповед номер!
- end_col
- col OrderDate
- length 10
- name Заповед дата
- validate (new Date(STUDENTTYPES_ORDERDATE)).getFullYear() > 1900
- validate_msg Въведете дата на заповедта!
- end_col
- col FromDate
- length 10
- name От дата
- validate (new Date(STUDENTTYPES_FROMDATE)).getFullYear() > 1900
- validate_msg Въведете начална дата на заповедта!
- end_col
- col ToDate
- length 10
- name До дата
- validate (new Date(STUDENTTYPES_TODATE)).getFullYear() > 1900
- validate_msg Въведете крайна дата на заповедта!
- end_col
- col PaySubsidy
- name Без субсидия(САМО за ДП!!!)
- length 20
- edit_type combo
- combo_sql GEN_SELECT 0,ПРЕЗ УЧ. ГОДИНА,1,ЦЕЛОГОДИШНО
- default_value 0
- end_col
- end_view
- form Penalty
- name Номеклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block Penalties grid
- name Наказания
- coordinates 1,1,1,1
- end_view_block
- end_form
- view Penalties
- unique_key PenaltyID
- can_save Eng.HasRight("ADMIN")
- sql_unique_clause PenaltyID = is_gen_long
- sql
- line SELECT * FROM SOS_Penalty ^^ order by PenaltyName
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_Penalty
- end_sql_count
- sql_max
- line SELECT MAX(PenaltyID) FROM SOS_Penalty
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- col PenaltyID
- length 3
- name ID Наказание
- end_col
- col PenaltyName
- length 35
- name Наименование
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- end_view
- form AcadYear
- name Номеклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block AcadYear grid
- name Учебни години
- coordinates 1,1,1,1
- end_view_block
- end_form
- view AcadYear
- script
- line {{
- function isValidAcadYear() {
- var diff ;
- var from, to, sep ;
- if (ACADYEAR_ACADYEARNAME.length != 9) return false ;
- from = ACADYEAR_ACADYEARNAME.substr(0, 4) ;
- sep = ACADYEAR_ACADYEARNAME.substr(4, 1) ;
- to = ACADYEAR_ACADYEARNAME.substr(5, 4) ;
- if (sep != "/") return false ;
- diff = to - from ;
- if (diff != 1) return false ;
- return true ;
- }
- function isValidFromDate() {
- var year1, year2 ;
- year1 = new Date(ACADYEAR_FROMDATE) ;
- if(year1.getDate() == 1 && year1.getMonth() ==0)
- return false;
- year2 = ACADYEAR_ACADYEARNAME.substr(0, 4) ;
- return year1.getFullYear() == year2 ;
- }
- function isValidToDate() {
- var year1, year2 ;
- year1 = new Date(ACADYEAR_TODATE) ;
- if(year1.getDate() == 31 && year1.getMonth() ==11)
- return false;
- year2 = ACADYEAR_ACADYEARNAME.substr(5, 4) ;
- return year1.getFullYear() == year2 ;
- }
- }}
- end_script
- unique_key AcadYearID
- can_save Eng.HasRight("ADMIN")
- sql_unique_clause AcadYearID = is_gen_long
- sql
- line SELECT * FROM SOS_ACADYEAR ^^ order by ACADYEARNAME
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_ACADYEAR
- end_sql_count
- sql_max
- line SELECT MAX(AcadYearID) FROM SOS_ACADYEAR
- end_sql_max
- can_delete Eng.HasRight("ADMIN")
- col AcadYearID
- length 3
- name ID
- end_col
- col ACADYEARNAME
- length 10
- name Учебна год.
- picture 9999_9999
- default_value "____/____"
- mask ____/____
- validate isValidAcadYear()
- //validate_msg Невалиден формат!
- end_col
- col FromDate
- length 8
- name От дата
- validate isValidFromDate()
- end_col
- col ToDate
- length 8
- name До дата
- validate isValidToDate()
- end_col
- end_view
- form Year
- name Летни Месеци
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block Year grid
- name Летни Месеци
- coordinates 1,1,1,1
- end_view_block
- end_form
- view Year
- script
- line {{
- function isValidFromDateSummer() {
- var yeartmp;
- yeartmp = new Date(YEAR_FROMDATESUMMER) ;
- return yeartmp.getFullYear() == YEAR_YEAR ;
- }
- function isValidToDateSummer() {
- var yeartmp;
- yeartmp = new Date(YEAR_TODATESUMMER) ;
- return yeartmp.getFullYear() == YEAR_YEAR ;
- }
- }}
- end_script
- unique_key Year
- can_save Eng.HasRight("ADMIN")
- sql_unique_clause Year = is_gen_long
- sql
- line SELECT * FROM SOS_YEAR ^^ order by YEAR
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_YEAR
- end_sql_count
- can_delete Eng.HasRight("ADMIN")
- col Year
- name Година
- length 10
- end_col
- col FromDateSummer
- length 10
- name От дата Лято
- validate isValidFromDateSummer()
- end_col
- col ToDateSummer
- length 10
- name До дата Лято
- validate isValidToDateSummer()
- end_col
- end_view
- form PayItem
- name Номеклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block PayItem grid
- name Видове плащания
- coordinates 1,1,1,1
- end_view_block
- end_form
- view PayItem
- unique_key PayItemID
- sql_unique_clause PayItemID = is_gen_long
- can_save Eng.HasRight("ADMIN")
- can_delete Eng.HasRight("ADMIN")
- sql
- line SELECT * FROM SOS_PAYITEM ^^
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_PAYITEM
- end_sql_count
- sql_max
- line SELECT MAX(PayItemID) FROM SOS_PAYITEM
- end_sql_max
- col PayItemID
- length 10
- name ID
- end_col
- col PayItemName
- length 30
- name Вид плащане
- validate PAYITEM_PAYITEMNAME != ""
- validate_msg Въведете вид плащане!
- picture $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- end_col
- end_view
- form DocNo
- name Номеклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1:1
- view_block DocNo grid
- name Последни номера на документи
- coordinates 1,1,1,1
- end_view_block
- end_form
- view DocNo
- unique_key ID
- sql_unique_clause ID = is_gen_long
- can_save Eng.HasRight("ADMIN")
- can_delete Eng.HasRight("ADMIN")
- sql
- line SELECT * FROM SOS_DOCNO ^^ ORDER BY LastDocNum
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_DOCNO
- end_sql_count
- sql_max
- line SELECT MAX(ID) FROM SOS_DOCNO
- end_sql_max
- col ID
- length 7
- name ID
- end_col
- col LastDocNum
- length 15
- name Последен номер фактура
- validate DOCNO_LASTDOCNUM >= 0
- end_col
- col LastOrderNum
- length 15
- name Последен номер заповед
- validate DOCNO_LASTORDERNUM >= 0
- end_col
- col LastOrderDoctorant
- length 15
- name Последен номер заповед докторанти
- validate DOCNO_LASTORDERDOCTORANT >= 0
- end_col
- end_view
- form LivStatus
- name Номенклатури
- hor_sectors 1 dimensions 1
- ver_sectors 1 dimensions 1
- view_block LivStatus grid
- name Житейски статус
- coordinates 1,1,1,1
- end_view_block
- end_form
- view LivStatus
- unique_key LivStatusID
- can_delete Eng.HasRight("ADMIN")
- sql
- line SELECT * FROM SOS_LivStatus ^^
- end_sql
- sql_count
- line SELECT count(*) FROM SOS_LivStatus
- end_sql_count
- sql_max
- line SELECT MAX(LivStatusID) FROM SOS_LivStatus
- end_sql_max
- col LivStatusID
- name ID Статус
- length 8
- end_col
- col LivStatusName
- name Наименование
- length 20
- end_col
- col PercRent
- name Процент от наема
- length 10
- decimals 2
- end_col
- end_view
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement