# Date: 27/04/06 # Version: 105 $DOC(MONEY_MOVE) name=Перевод ДС ч/з 57 счет class=1 product=ALD_PIF name_formula='Перевод ДС ч/з 57 счет '+@doc_number+" от " + convert(varchar,@doc_date,3) remark_formula=null $STATE(DEL) name=Удален class=2 $ENDSTATE $STATE(ED) name=Редактируется class=0 $ENDSTATE $STATE(NEW) name=Начальный class=1 $ENDSTATE $STATE(OP_FULL) name=Подтвержден class=0 $ENDSTATE $STATE(SENT) name=Отправлен class=0 $ENDSTATE $PROP(DOC_DATE) name=Дата документа field_name=doc_date table_name=t_paydocs field_type=datetime field_length=8 field_scale=3 field_prec=23 page=1 order=12 init_class=1 init_formula=.OPERDAY unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(DOC_NUMBER) name=Номер документа field_name=doc_number table_name=t_paydocs field_type=varchar field_length=30 field_scale=null field_prec=30 page=1 order=16 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(FROM_PARTNER_ID) name=Отправитель field_name=from_partner_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=0 order=37 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(TO_PARTNER_ID) name=Получатель field_name=to_partner_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=0 order=38 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(FROM_PARTNER_ACC_ID) name=Исходный р/с field_name=from_partner_acc_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=27 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(TO_PARTNER_ACC_ID) name=Целевой р/с field_name=to_partner_acc_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=28 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(DOC_SUM) name=Сумма field_name=doc_sum table_name=t_paydocs field_type=money field_length=8 field_scale=4 field_prec=19 page=2 order=7 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CUR_ID) name=Валюта суммы field_name=cur_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=8 init_class=2 init_formula=.CUR('RUR') unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(PERPOSE_STR) name=Примечание field_name=perpose_str table_name=t_paydocs field_type=varchar field_length=255 field_scale=null field_prec=255 page=2 order=9 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(FOUNDATION_ID) name=Документ основание field_name=foundation_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=5 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(PURPOSE_ID) name=Целевое назначение field_name=purpose_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=29 init_class=1 init_formula=(select id from t_purposes where code = 70) unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(PLACE_ID) name=id торговой площадки field_name=place_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=39 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CHARACTER_CUR_PRICE) name=Тип курса field_name=character_cur_price table_name=t_paydocs field_type=int field_length=4 field_scale=0 field_prec=10 page=2 order=30 init_class=1 init_formula=0 unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(PROCENT_PLUS) name=Процент field_name=procent_plus table_name=t_paydocs field_type=money field_length=8 field_scale=4 field_prec=19 page=2 order=33 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CUR_PRICE) name=Курс field_name=cur_price table_name=t_paydocs field_type=decimal field_length=9 field_scale=8 field_prec=18 page=2 order=32 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CUR_PRICE_DATE) name=Дата курса field_name=cur_price_date table_name=t_paydocs field_type=datetime field_length=8 field_scale=3 field_prec=23 page=2 order=31 init_class=1 init_formula=@doc_date unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CUR_DEALING_ID) name=Валюта проводки field_name=cur_dealing_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=34 init_class=1 init_formula=(select cur_id from t_plans where plan_code='PIF_ACCOUNT') unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(SUM_CUR_DEALING) name=Сумма проводки field_name=sum_cur_dealing table_name=t_paydocs field_type=money field_length=8 field_scale=4 field_prec=19 page=2 order=35 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(TO_DIRECTION_ID) name=Целевое направление field_name=to_direction_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=2 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(TO_OBJECT_ID) name=Целевой объект field_name=to_object_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=4 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(FROM_DIRECTION_ID) name=Исходное направление field_name=from_direction_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=1 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(FROM_OBJECT_ID) name=Исходный объект field_name=from_object_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=3 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CLIENT_ID) name=Клиент field_name=client_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=6 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CLIENT_CONTRACT_ID) name=Клиентский договор field_name=client_contract_id table_name=t_paydocs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=2 order=36 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(OUT_DATE) name=Внешняя дата корреспондента field_name=out_date table_name=td_depo_docs field_type=datetime field_length=8 field_scale=3 field_prec=23 page=1 order=10 init_class=null init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(IN_DATE) name=Дата документа field_name=in_date table_name=td_depo_docs field_type=datetime field_length=8 field_scale=3 field_prec=23 page=-1 order=11 init_class=1 init_formula=.OPERDAY unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(WHO_GET) name=Кто принял field_name=who_get table_name=td_depo_docs field_type=varchar field_length=100 field_scale=null field_prec=100 page=1 order=13 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(WHO_PUT) name=Кто отправил field_name=who_put table_name=td_depo_docs field_type=varchar field_length=100 field_scale=null field_prec=100 page=1 order=14 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(OUT_NO) name=Внешний номер field_name=out_no table_name=td_depo_docs field_type=varchar field_length=50 field_scale=null field_prec=50 page=1 order=15 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(CORRESPONDENT_ID) name=Корреспондент field_name=correspondent_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=17 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(PAYER_ID) name=Плательщик field_name=payer_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=18 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(PAY_SUM) name=Сумма field_name=pay_sum table_name=td_depo_docs field_type=money field_length=8 field_scale=4 field_prec=19 page=1 order=19 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(INITIATOR_ID) name=Инициатор field_name=initiator_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=20 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(DOCUMENT_FORM_ID) name=Форма документа field_name=document_form_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=21 init_class=0 init_formula=1 unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(DEPO_DOC_TYPE) name=Входящий исходящий или внутренний field_name=depo_doc_type table_name=td_depo_docs field_type=int field_length=4 field_scale=0 field_prec=10 page=1 order=22 init_class=1 init_formula=1 unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(FOLDER_ID) name=Папка field_name=folder_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=23 init_class=1 init_formula=.DEPO_FOLDER_DEFAULT unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(SUM_CUR_ID) name=Валюта суммы field_name=sum_cur_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=24 init_class=1 init_formula=.CUR("RUR") unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(DOC_COMMENT) name=Комментарий field_name=doc_comment table_name=td_depo_docs field_type=varchar field_length=255 field_scale=null field_prec=255 page=1 order=25 init_class=0 init_formula=null unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $PROP(OWNER_ID) name=Организация field_name=owner_id table_name=td_depo_docs field_type=numeric field_length=9 field_scale=0 field_prec=18 page=1 order=26 init_class=1 init_formula=.ORGANIZATION unique_index=null numerator=null import_type=null import_table=null import_field=null import_where=null ref_table=null ref_key=null ref_display=null ref_alias=null ref_where=null $ENDPROP $RELATION(REL1) class=1 type=T_OPERATIONS form=ITEM_OPERS_LIST prop=null idname=item_id_s order=999 $ENDRELATION $RELATION(REL2) class=0 type=CUR form=null prop=CUR_ID idname=null order=null $ENDRELATION $RELATION(REL3) class=0 type=PARTNERS form=null prop=CLIENT_ID idname=null order=null $ENDRELATION $RELATION(REL4) class=0 type=PARTNERS form=null prop=CORRESPONDENT_ID idname=null order=1 $ENDRELATION $RELATION(REL5) class=0 type=ITEMS form=null prop=FOUNDATION_ID idname=null order=null $ENDRELATION $RELATION(REL6) class=0 type=ITEMS form=null prop=CLIENT_CONTRACT_ID idname=null order=null $ENDRELATION $RELATION(REL8) class=0 type=PARTNERS_JUR form=null prop=TO_OBJECT_ID idname=null order=null $ENDRELATION $RELATION(REL7) class=0 type=PARTNERS_JUR form=null prop=FROM_OBJECT_ID idname=null order=null $ENDRELATION $RELATION(REL9) class=0 type=PARTNERS_JUR form=null prop=OWNER_ID idname=null order=2 $ENDRELATION $RELATION(REL10) class=0 type=BANK_ACCOUNTS form=null prop=FROM_PARTNER_ACC_ID idname=null order=3 $ENDRELATION $RELATION(REL11) class=0 type=BANK_ACCOUNTS form=null prop=TO_PARTNER_ACC_ID idname=null order=4 $ENDRELATION $RELATION(REL12) class=0 type=RATE_PLACES form=null prop=PLACE_ID idname=null order=5 $ENDRELATION $RELATION(REL13) class=1 type=SD_INDOC2DOC form=FORM2 prop=null idname=doc_id_s order=200 $ENDRELATION $FORM(D_BROKOPER_P1) name=Просмотр class=5 filter=null target_state= uo=uo_edit dw=d_brok_depooper procedure=ap_50000000000367200 patterns=GENERIC_VIEW_ITEM_P1 user_define=1 isvisible=0 istab=1 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315830) create procedure dbo.%PROC% @sid varchar(30) = null as .BEGIN('N') .CHECK_USER .CHECK_VIEW_ITEM if @id = -1 begin begin tran .GET_PROPS .CHECK_INSERT .INIT_VARS(B) .INSERT_ITEMS .INSERT commit tran end .INSERT_INFO4OPER(@id) .VIEW_ITEM(ALL,1) .END $ENDTEXT(11315830) $ACTION2RELATION(REL4.PARTNER_CODE) relation=REL4 where=null prop=PARTNER_CODE order=21 alias=corr_code $ENDACTION2RELATION $ACTION2RELATION(REL4.PARTNER_SHORT_NAME) relation=REL4 where=null prop=PARTNER_SHORT_NAME order=20 alias=corr_short_name $ENDACTION2RELATION $ACTION2RELATION(REL9.PARTNER_CODE) relation=REL9 where=null prop=PARTNER_CODE order=45 alias=partner_code $ENDACTION2RELATION $ACTION2RELATION(REL9.PARTNER_SHORT_NAME) relation=REL9 where=null prop=PARTNER_SHORT_NAME order=44 alias=partner_short_name $ENDACTION2RELATION $BIND(BIND1) type=MONEY_MOVE action=UO_DEAL_EDIT class=1 order=10 idname=null $ENDBIND $BIND(BIND2) type=SD_INFO4OPER action=FORM_ED class=1 order=20 idname=sid $ENDBIND $ENDFORM $FORM(UO_DEAL_EDIT) name=Данные class=5 filter=null target_state= uo=uo_edit dw=d_money_move_new procedure=ap_50000000000367203 patterns=GENERIC_VIEW_ITEM_P2 user_define=0 isvisible=1 istab=0 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315830) create procedure dbo.%PROC% @sid varchar(30) = null as .BEGIN('N') .CHECK_USER .CHECK_VIEW_ITEM .VIEW_ITEM(ALL,2) .END $ENDTEXT(11315830) $ACTION2RELATION(REL7.PARTNER_SHORT_NAME) relation=REL7 where=null prop=PARTNER_SHORT_NAME order=21 alias=from_object_name $ENDACTION2RELATION $ACTION2RELATION(REL8.PARTNER_SHORT_NAME) relation=REL8 where=null prop=PARTNER_SHORT_NAME order=21 alias=to_object_name $ENDACTION2RELATION $ACTION2RELATION(REL3.PARTNER_SHORT_NAME) relation=REL3 where=null prop=PARTNER_SHORT_NAME order=10 alias=client_short_name $ENDACTION2RELATION $ACTION2RELATION(REL10.BANK_ACCOUNT_NO) relation=REL10 where=null prop=BANK_ACCOUNT_NO order=12 alias=from_bank_account_no $ENDACTION2RELATION $ACTION2RELATION(REL11.BANK_ACCOUNT_NO) relation=REL11 where=null prop=BANK_ACCOUNT_NO order=12 alias=to_bank_account_no $ENDACTION2RELATION $ACTION2RELATION(REL6.ITEM_NAME) relation=REL6 where=null prop=ITEM_NAME order=3 alias=client_contract_name $ENDACTION2RELATION $ACTION2RELATION(REL12.PLACE_NAME) relation=REL12 where=null prop=PLACE_NAME order=3 alias=place_name $ENDACTION2RELATION $ACTION2RELATION(REL12.PLACE_CODE) relation=REL12 where=null prop=PLACE_CODE order=6 alias=place_code $ENDACTION2RELATION $CALC(ORGANISATION_ID_S) class=1 type=varchar calc_lenght=30 calc_prec=null calc_scale=null formula=(select owner_id from td_depo_docs where id=@id) label=Организация order=5 $ENDCALC $ENDFORM $ACTION(ACTION_DELETE) name=Удалить class=3 form=D_BROKOPER_P1 target_state=DEL procedure=ap_50000000000367214 patterns=GENERIC_MOVE user_define=0 isvisible=0 istab=1 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315832) create procedure dbo.%PROC% @sid varchar(30) = null as .BEGIN('N') .CHECK_USER .CHECK_UPDATE begin tran .UPDATE_STATE .ACTION_HISTORY /*-------Проводки ----------*/ commit tran .END $ENDTEXT(11315832) $BIND(BIND1) type=MONEY_MOVE action=UO_DEAL_EDIT class=1 order=10 idname=null $ENDBIND $ENDACTION $ACTION(ACTION_INSERT) name=Добавить class=1 form=D_BROKOPER_P1 target_state=ED procedure=ap_50000000000367216 patterns=GENERIC_INSERT_P1 user_define=1 isvisible=0 istab=1 posx=0 posy=0 width=2926 height=1840 proc_text=$TEXT(11315832) create procedure dbo.%PROC% @sid varchar(30) = null, .ARGLIST(ALL,1) as declare @action_id numeric, @id numeric, @user_id numeric, @state_id numeric, @type_id numeric, @item_name varchar(100), @new_state_id numeric begin begin tran select @action_id = %ACTION_ID% select @id = convert(numeric, @sid) .CHECK_USER .CHECK_UPDATE .ARGCONVERT(ALL,1) .INIT_VARS(AFTER,ALL,1) .FUND_GEN_NO(@doc_number,@depo_doc_type,@doc_date) .TEST_UNIQUE(ALL,1) .UPDATE_ITEMS .UPDATE(ALL,1) .RELGEN .UPDATE_STATE .ACTION_HISTORY commit tran select sid = convert(varchar, @id) end /* .ARGLIST(ALL,1) as .BEGIN('N') .CHECK_USER .CHECK_UPDATE .ARGCONVERT(ALL,1) .INIT_VARS(AFTER,ALL,1) .FUND_GEN_NO(@in_no,@depo_doc_type,@doc_date) .TEST_UNIQUE(ALL,1) begin tran .UPDATE(ALL,1) .RELGEN .UPDATE_STATE .ACTION_HISTORY commit tran select sid = convert(varchar,@id) .END */ $ENDTEXT(11315832) $BIND(BIND1) type=MONEY_MOVE action=ACTION_UPDATE1 class=1 order=10 idname=null $ENDBIND $BIND(BIND2) type=SD_INFO4OPER action=ACTION_UPDATE class=1 order=20 idname=sid $ENDBIND $ENDACTION $ACTION(ACTION_MOVE) name=Отменить class=9 form=null target_state=ED procedure=ap_50000000000367220 patterns=GENERIC_MOVE user_define=1 isvisible=0 istab=0 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315832) create procedure dbo.%PROC% @sid varchar(30) = null as .BEGIN('N') .CHECK_USER .CHECK_UPDATE begin tran .UPDATE_STATE .ACTION_HISTORY /*-------Проводки ----------*/ .OPERS_ROLL .SD_ASSENT_DEL(@id) .SD_ASSET_OPER_DEL(@id) commit tran .END $ENDTEXT(11315832) $ENDACTION $ACTION(ACTION_MOVE1) name=Исполнить class=9 form=null target_state=OP_FULL procedure=ap_50000000000367221 patterns=GENERIC_MOVE user_define=1 isvisible=0 istab=0 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315832) create procedure dbo.%PROC% @sid varchar(30) = null as declare @action_id numeric, @id numeric, @user_id numeric, @state_id numeric, @new_state_id numeric, @type_id numeric begin tran select @action_id = %ACTION_ID% select @id = convert(numeric, @sid) .CHECK_USER .CHECK_UPDATE .UPDATE_STATE .ACTION_HISTORY /*-------Проводки ----------*/ .GET_PROPS .TEST_RATE2CUR2DATE(@doc_date,@cur_id) -- проверка курса на дату declare @uk_organiz_id numeric, @type_schet_id numeric, @fund_plan_id numeric, @deb_acc_id numeric, @cred_acc_id numeric, @doc_name varchar(255), @purpose_name varchar(255), @complete_date datetime, @complete_date_s_57 datetime, ---@znach_datefirst numeric, @kol_d int /* select @znach_datefirst = @@DATEFIRST SET DATEFIRST 7 */ select @uk_organiz_id = (select ctrl_comp_id from td_pay_fond where id = (select b.owner_id from tb_contracts a,td_depo_docs b where a.id = @client_contract_id and a.id=b.id)) if @uk_organiz_id is null select @uk_organiz_id = ctrl_comp_id from td_pay_fond where id = @owner_id select @fund_plan_id = .ARG_PLAN('PIF_ACCOUNT') select @cred_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'57') select @purpose_name=name from t_purposes where id=@purpose_id select @doc_name = @purpose_name + ':'/* + .ITEM_NAME(@id) + ':'*/ + @perpose_str .GET_SD_OPER_DATE(@complete_date,@id) exec ap_calc_end_period @date_beg = @complete_date, @days_beg = 0, @date_end = @complete_date_s_57 out, @days = @kol_d out /* if DATEPART(dw ,@complete_date) = 6 select @complete_date_s_57 = @complete_date + 3 else if DATEPART(dw ,@complete_date) = 7 select @complete_date_s_57 = @complete_date + 2 else select @complete_date_s_57 = @complete_date + 1 */ --- от УК в УК ----- if (@from_object_id = @uk_organiz_id) and (@to_object_id = @uk_organiz_id) begin ----- 1 select @type_schet_id = (select acc_type_id from t_bank_accounts where id =@to_partner_acc_id ) ---- на Депозит. р/с ------ if @type_schet_id = 30 begin ------ 2 select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'55.1') ---*** .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@sum_cur_dealing,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@from_partner_acc_id) ---@to_partner_acc_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@to_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,1) ------------------------ end ------ 2 ----- на р/с (51)-------- if @type_schet_id = 10 begin ------ 3 select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'51') exec ap_calc_end_period @date_beg = @complete_date, @days_beg = 1, @date_end = @complete_date_s_57 out, @days = @kol_d out .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@sum_cur_dealing,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@to_partner_acc_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@to_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,1) ------------------------ end ------- 3 end ----- 1 -------От УК брокеру или брокер брокеру ------------ if ((@from_object_id = @uk_organiz_id) or (@from_object_id = @client_id)) and (@to_object_id = @client_id) begin ----- 1.2 select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'76.5.4') .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@doc_sum,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@from_partner_acc_id) ---@to_partner_acc_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(D,'PARTNERS',@to_object_id) .UPDATE_SUBC(D,'EXCHANGE',@place_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@to_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,1) ------------------------ end ----- 1.2 ----От борокера в УК ------------ if (@from_object_id = @client_id) and (@to_object_id = @uk_organiz_id) begin -----1.3 select @type_schet_id = (select acc_type_id from t_bank_accounts where id =@to_partner_acc_id ) ---- на Депозит. р/с ------ if @type_schet_id = 30 begin ------ 2.3 select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'55.1') ---*** .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@sum_cur_dealing,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@from_partner_acc_id) ---@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@to_partner_acc_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@to_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,1) ------------------------ end ------ 2.3 ----- на р/с (51)-------- if @type_schet_id = 10 begin ------ 3.3 select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'51') exec ap_calc_end_period @date_beg = @complete_date, @days_beg = 1, @date_end = @complete_date_s_57 out, @days = @kol_d out .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@sum_cur_dealing,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@to_partner_acc_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@to_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,1) ------------------------ end ------- 3.3 end ----1.3 /* ---- От брокера брокеру ---------------- if (@from_object_id = @client_id) and (@to_object_id = @client_id) begin ------- 1.4 select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'76.5.4') .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@doc_sum,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(D,'PARTNERS',@to_object_id) .UPDATE_SUBC(D,'EXCHANGE',@place_id) .SUBC_CHECK end -----1.4 */ ---set DATEFIRST @znach_datefirst commit tran .END $ENDTEXT(11315832) $ENDACTION $ACTION(ACTION_UPDATE) name=Изменить class=2 form=D_BROKOPER_P1 target_state=null procedure=ap_50000000000367222 patterns=GENERIC_UPDATE_P1 user_define=1 isvisible=0 istab=1 posx=0 posy=0 width=2629 height=1964 proc_text=$TEXT(11315833) create procedure dbo.%PROC% @sid varchar(30) = null, .ARGLIST(ALL,1) as declare @action_id numeric, @id numeric, @user_id numeric, @state_id numeric, @type_id numeric, @item_name varchar(100), @new_state_id numeric begin tran select @action_id = %ACTION_ID% select @id = convert(numeric, @sid) .CHECK_USER .CHECK_UPDATE .ARGCONVERT(ALL,1) if @doc_number is null begin .INIT_VARS(AFTER,ALL,1) .FUND_GEN_NO(@doc_number,@depo_doc_type,@doc_date) end .TEST_UNIQUE(ALL,1) .UPDATE(ALL,1) .RELGEN .UPDATE_STATE .ACTION_HISTORY commit tran select sid = convert(varchar, @id) $ENDTEXT(11315833) $BIND(BIND1) type=MONEY_MOVE action=ACTION_UPDATE1 class=1 order=20 idname=null $ENDBIND $BIND(BIND2) type=SD_INFO4OPER action=ACTION_UPDATE class=1 order=30 idname=null $ENDBIND $ENDACTION $ACTION(ACTION_UPDATE1) name=Данные (изм.) class=2 form=UO_DEAL_EDIT target_state=null procedure=ap_50000000000367217 patterns=GENERIC_UPDATE_P2 user_define=1 isvisible=1 istab=0 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315833) create procedure dbo.%PROC% @sid varchar(30) = null, .ARGLIST(ALL, 2) as declare @action_id numeric, @id numeric, @user_id numeric, @state_id numeric, @type_id numeric, @item_name varchar(100), @new_state_id numeric begin tran select @action_id = %ACTION_ID% select @id = convert(numeric, @sid) .CHECK_USER .CHECK_UPDATE .ARGCONVERT(ALL, 2) .TEST_UNIQUE(ALL, 2) .GET_PROPS(ALL,1) .INIT_VARS(B) .UPDATE_ITEMS declare @rate_value decimal(18,8), @rate_date datetime declare @type_schet_id_from numeric, @type_schet_id_to numeric if @cur_id<>@cur_dealing_id begin if @character_cur_price=0 begin .TEST_RATE2CUR2DATE(@cur_price_date,@cur_id) .CONVERT_SUM(@cur_id,@cur_dealing_id,@cur_price_date,0,@doc_sum,@sum_cur_dealing,@rate_value,@rate_date) select @cur_price=round(convert(money,@rate_value),2) end else begin if isnull(@cur_price,0)=0 .EXIT_MESSAGE('Курс не задан') select @sum_cur_dealing=round((@cur_price*@doc_sum+@doc_sum*@cur_price*(isnull(@procent_plus,0)/100)),2) end end else begin select @sum_cur_dealing=@doc_sum select @cur_price=1 select @procent_plus=null end --- Проверка откуда и куда на соответствие договору ---- declare @uk_organiz_id numeric ---@broc_id numeric select @uk_organiz_id = (select ctrl_comp_id from td_pay_fond where id = (select b.owner_id from tb_contracts a,td_depo_docs b where a.id = @client_contract_id and a.id=b.id)) select @type_schet_id_from = (select acc_type_id from t_bank_accounts where id =@from_partner_acc_id ) select @type_schet_id_to = (select acc_type_id from t_bank_accounts where id =@to_partner_acc_id ) if @uk_organiz_id is not null begin if @from_object_id not in (@uk_organiz_id,@client_id) .EXIT_MESSAGE('Неверно задан Объект откуда. С ним не заключен договор') if (@from_object_id = @uk_organiz_id and @type_schet_id_from = 30) and (@to_object_id = @client_id) .EXIT_MESSAGE('Перевод денег с депозитного счета стороннему клиенту (не на р/счет УК) невозможен') if (@from_object_id = @client_id) and (@to_object_id = @uk_organiz_id and @type_schet_id_to = 30) .EXIT_MESSAGE('Получение денег на депозитный счет от стороннего клиента (не с р/счет УК) невозможен') if @to_object_id not in (@uk_organiz_id,@client_id) .EXIT_MESSAGE('Неверно задан Объект куда. С ним не заключен договор') /*if (select acc_purpose_id from t_bank_accounts where id = @from_partner_acc_id) not in (3) .EXIT_MESSAGE('Счет объекта Откуда не назначен для фонда') */ /*if (select acc_purpose_id from t_bank_accounts where id = @to_partner_acc_id) not in (3) .EXIT_MESSAGE('Счет объекта Куда не назначен для фонда')*/ end if ((@to_object_id = @client_id) or (@from_object_id = @client_id)) and @place_id = null .EXIT_MESSAGE('Необходимо заполнить графу Торговая площадка') update t_paydocs set to_partner_id = @to_object_id ,from_partner_id = @from_object_id where id = @id -------------------- .UPDATE_ITEMS .UPDATE(ALL,2) .RELGEN .UPDATE_STATE .ACTION_HISTORY commit tran $ENDTEXT(11315833) $ENDACTION $ACTION(SEND_PAYMENT) name=Отправить class=9 form=null target_state=SENT procedure=ap_50000000000367225 patterns=GENERIC_MOVE user_define=1 isvisible=0 istab=0 posx=0 posy=0 width=0 height=0 proc_text=$TEXT(11315833) create procedure dbo.%PROC% @sid varchar(30) = null as declare @action_id numeric, @id numeric, @user_id numeric, @state_id numeric, @new_state_id numeric, @type_id numeric begin tran select @action_id = %ACTION_ID% select @id = convert(numeric, @sid) .CHECK_USER .CHECK_UPDATE .UPDATE_STATE .ACTION_HISTORY /*-------Проводки ----------*/ .GET_PROPS .TEST_RATE2CUR2DATE(@doc_date,@cur_id) -- проверка курса на дату declare @uk_organiz_id numeric, @type_schet_id numeric, @fund_plan_id numeric, @deb_acc_id numeric, @cred_acc_id numeric, @doc_name varchar(255), @purpose_name varchar(255), @complete_date datetime, @complete_date_s_57 datetime, ---@znach_datefirst numeric, @kol_d int select @uk_organiz_id = (select ctrl_comp_id from td_pay_fond where id = (select b.owner_id from tb_contracts a,td_depo_docs b where a.id = @client_contract_id and a.id=b.id)) if @uk_organiz_id is null select @uk_organiz_id = ctrl_comp_id from td_pay_fond where id = @owner_id select @fund_plan_id = .ARG_PLAN('PIF_ACCOUNT') select @deb_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'57') select @purpose_name=name from t_purposes where id=@purpose_id select @doc_name = @purpose_name + ':'/* + .ITEM_NAME(@id) + ':'*/ + @perpose_str .GET_SD_OPER_DATE(@complete_date,@id) exec ap_calc_end_period @date_beg = @complete_date, @days_beg = 1, @date_end = @complete_date_s_57 out, @days = @kol_d out --- от УК брокеру или УК ----- if (@from_object_id = @uk_organiz_id) and ((@to_object_id = @client_id) or (@to_object_id = @uk_organiz_id)) begin ----- 1 select @type_schet_id = (select acc_type_id from t_bank_accounts where id =@from_partner_acc_id ) ---- с Депозит. р/с ------ if @type_schet_id = 30 begin ------ 2 select @cred_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'55.1') exec ap_calc_end_period @date_beg = @complete_date, @days_beg = 0, @date_end = @complete_date_s_57 out, @days = @kol_d out ---*** .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@sum_cur_dealing,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@from_partner_acc_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@from_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,2) ------------------------ end ------ 2 ----- с р/с (51)-------- if @type_schet_id = 10 begin ------ 3 select @cred_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'51') .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@sum_cur_dealing,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@from_partner_acc_id) ---@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@from_partner_acc_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@from_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,2) -------------------------------- end ------- 3 end ----- 1 --- от брокера в УК или брокеру ----- if (@from_object_id = @client_id) and ((@to_object_id = @uk_organiz_id) or (@to_object_id = @client_id)) begin ------ 1.2 exec ap_calc_end_period @date_beg = @complete_date, @days_beg = 0, @date_end = @complete_date_s_57 out, @days = @kol_d out select @cred_acc_id = .SD_ACCID_FROM_EFFNO(@fund_plan_id,'76.5.4') .OPERATION(@owner_id,@fund_plan_id,@complete_date_s_57,@deb_acc_id,@cred_acc_id,@doc_sum,'RUR',@complete_date,0,0,@doc_name,N,@operation_id,@id,@action_id,@action_history_id) .UPDATE_SUBC(D,'BANK_ACCOUNT',@to_partner_acc_id) .UPDATE_SUBC(K,'BANK_ACCOUNT',@from_partner_acc_id) .UPDATE_SUBC(K,'PARTNERS',@from_object_id) .UPDATE_SUBC(K,'EXCHANGE',@place_id) .SUBC_CHECK --Запись в журнал операций .SD_ASSET_OPER_ADD(@id,@from_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id,2) ------------------------ end ------ 1.2 ----------------------- -- Запись в журнал согласий --- .SD_ASSENT_ADD(@id,@from_partner_acc_id,@sum_cur_dealing,null,@owner_id,@purpose_id) ------------------- commit tran .END $ENDTEXT(11315833) $ENDACTION $STATE2ACTION(ED.ACTION_DELETE) state=ED action=ACTION_DELETE $ENDSTATE2ACTION $STATE2ACTION(ED.ACTION_UPDATE) state=ED action=ACTION_UPDATE $ENDSTATE2ACTION $STATE2ACTION(ED.ACTION_UPDATE1) state=ED action=ACTION_UPDATE1 $ENDSTATE2ACTION $STATE2ACTION(ED.D_BROKOPER_P1) state=ED action=D_BROKOPER_P1 $ENDSTATE2ACTION $STATE2ACTION(ED.SEND_PAYMENT) state=ED action=SEND_PAYMENT $ENDSTATE2ACTION $STATE2ACTION(ED.UO_DEAL_EDIT) state=ED action=UO_DEAL_EDIT $ENDSTATE2ACTION $STATE2ACTION(NEW.ACTION_INSERT) state=NEW action=ACTION_INSERT $ENDSTATE2ACTION $STATE2ACTION(OP_FULL.ACTION_MOVE) state=OP_FULL action=ACTION_MOVE $ENDSTATE2ACTION $STATE2ACTION(OP_FULL.D_BROKOPER_P1) state=OP_FULL action=D_BROKOPER_P1 $ENDSTATE2ACTION $STATE2ACTION(OP_FULL.UO_DEAL_EDIT) state=OP_FULL action=UO_DEAL_EDIT $ENDSTATE2ACTION $STATE2ACTION(SENT.ACTION_MOVE) state=SENT action=ACTION_MOVE $ENDSTATE2ACTION $STATE2ACTION(SENT.ACTION_MOVE1) state=SENT action=ACTION_MOVE1 $ENDSTATE2ACTION $STATE2ACTION(SENT.D_BROKOPER_P1) state=SENT action=D_BROKOPER_P1 $ENDSTATE2ACTION $STATE2ACTION(SENT.UO_DEAL_EDIT) state=SENT action=UO_DEAL_EDIT $ENDSTATE2ACTION $STATE2PROP(ED.CHARACTER_CUR_PRICE) state=ED prop=CHARACTER_CUR_PRICE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CLIENT_CONTRACT_ID) state=ED prop=CLIENT_CONTRACT_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CLIENT_ID) state=ED prop=CLIENT_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CORRESPONDENT_ID) state=ED prop=CORRESPONDENT_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CUR_DEALING_ID) state=ED prop=CUR_DEALING_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CUR_ID) state=ED prop=CUR_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CUR_PRICE) state=ED prop=CUR_PRICE enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.CUR_PRICE_DATE) state=ED prop=CUR_PRICE_DATE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.DEPO_DOC_TYPE) state=ED prop=DEPO_DOC_TYPE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.DOCUMENT_FORM_ID) state=ED prop=DOCUMENT_FORM_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.DOC_COMMENT) state=ED prop=DOC_COMMENT enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.DOC_DATE) state=ED prop=DOC_DATE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.DOC_NUMBER) state=ED prop=DOC_NUMBER enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.DOC_SUM) state=ED prop=DOC_SUM enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.FOLDER_ID) state=ED prop=FOLDER_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.FOUNDATION_ID) state=ED prop=FOUNDATION_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.FROM_DIRECTION_ID) state=ED prop=FROM_DIRECTION_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.FROM_OBJECT_ID) state=ED prop=FROM_OBJECT_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.FROM_PARTNER_ACC_ID) state=ED prop=FROM_PARTNER_ACC_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.INITIATOR_ID) state=ED prop=INITIATOR_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.IN_DATE) state=ED prop=IN_DATE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.OUT_DATE) state=ED prop=OUT_DATE enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.OUT_NO) state=ED prop=OUT_NO enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.OWNER_ID) state=ED prop=OWNER_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.PAYER_ID) state=ED prop=PAYER_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.PAY_SUM) state=ED prop=PAY_SUM enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.PERPOSE_STR) state=ED prop=PERPOSE_STR enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.PLACE_ID) state=ED prop=PLACE_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.PROCENT_PLUS) state=ED prop=PROCENT_PLUS enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.PURPOSE_ID) state=ED prop=PURPOSE_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.SUM_CUR_ID) state=ED prop=SUM_CUR_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.TO_DIRECTION_ID) state=ED prop=TO_DIRECTION_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.TO_OBJECT_ID) state=ED prop=TO_OBJECT_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.TO_PARTNER_ACC_ID) state=ED prop=TO_PARTNER_ACC_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.WHO_GET) state=ED prop=WHO_GET enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(ED.WHO_PUT) state=ED prop=WHO_PUT enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CHARACTER_CUR_PRICE) state=NEW prop=CHARACTER_CUR_PRICE enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CLIENT_CONTRACT_ID) state=NEW prop=CLIENT_CONTRACT_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CLIENT_ID) state=NEW prop=CLIENT_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CORRESPONDENT_ID) state=NEW prop=CORRESPONDENT_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CUR_ID) state=NEW prop=CUR_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CUR_PRICE) state=NEW prop=CUR_PRICE enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.CUR_PRICE_DATE) state=NEW prop=CUR_PRICE_DATE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.DEPO_DOC_TYPE) state=NEW prop=DEPO_DOC_TYPE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.DOCUMENT_FORM_ID) state=NEW prop=DOCUMENT_FORM_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.DOC_COMMENT) state=NEW prop=DOC_COMMENT enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.DOC_DATE) state=NEW prop=DOC_DATE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.DOC_NUMBER) state=NEW prop=DOC_NUMBER enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.DOC_SUM) state=NEW prop=DOC_SUM enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.FOLDER_ID) state=NEW prop=FOLDER_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.FOUNDATION_ID) state=NEW prop=FOUNDATION_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.FROM_DIRECTION_ID) state=NEW prop=FROM_DIRECTION_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.FROM_OBJECT_ID) state=NEW prop=FROM_OBJECT_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.FROM_PARTNER_ACC_ID) state=NEW prop=FROM_PARTNER_ACC_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.INITIATOR_ID) state=NEW prop=INITIATOR_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.IN_DATE) state=NEW prop=IN_DATE enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.OUT_DATE) state=NEW prop=OUT_DATE enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.OUT_NO) state=NEW prop=OUT_NO enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.OWNER_ID) state=NEW prop=OWNER_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.PAYER_ID) state=NEW prop=PAYER_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.PAY_SUM) state=NEW prop=PAY_SUM enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.PERPOSE_STR) state=NEW prop=PERPOSE_STR enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.PLACE_ID) state=NEW prop=PLACE_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.PROCENT_PLUS) state=NEW prop=PROCENT_PLUS enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.PURPOSE_ID) state=NEW prop=PURPOSE_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.SUM_CUR_ID) state=NEW prop=SUM_CUR_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.TO_DIRECTION_ID) state=NEW prop=TO_DIRECTION_ID enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.TO_OBJECT_ID) state=NEW prop=TO_OBJECT_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.TO_PARTNER_ACC_ID) state=NEW prop=TO_PARTNER_ACC_ID enable=1 mandatory=1 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.WHO_GET) state=NEW prop=WHO_GET enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $STATE2PROP(NEW.WHO_PUT) state=NEW prop=WHO_PUT enable=1 mandatory=0 visible=1 $ENDSTATE2PROP $ENDDOC