JINR/fields/letter_nds.mod
[comments]
descr=U: форма подготовки посылки FYI.
input=doc_id - ID документа
output=Pop-up окно с формой
parents=docs/view_doc.cfg
childs=docs/doc_user_action_process.cfg
test_URL=?c=docs/sendFYI&doc_id=1
[end]
[parameters]
request_name=U:Письмо о ставке НДС
LOG=OFF
[end]
[report]
$CALL_SERVICE c=sys/getARUD; ??!AR_R=Y&!AR_A=Y
$INCLUDE [OK report] ??AR_A=Y|AR_R=Y
[end]
[OK report]
$SET_PARAMETERS result_code=#~doc_action_inform#; ??!result_code
$SET_PARAMETERS step_id=0;
$INCLUDE [form]
??!doSave=Y|ERROR|INPUT_ERROR
[end]
[form]
=================== Форма ввода данных для действия с документом ==============??
<!--<input type=hidden name="c" value="#c#">
<input type_=hidden name="doSave" value="">
<input type=hidden name=doc_id value='#doc_id#'>--!>
<center>
<table border=0 cellpadding=5 cellspacing=0>
<tr><td></td>
<td>
Уважаемый ??!user_sex=Ж
Уважаемая ??user_sex=Ж
#user_I# #user_O#,</td></tr>
<tr><td colspan=2 class="big
error ??ERROR&!FORWARD_USERS_OK=Y
">Выберите пользователей, которым Вы хотите отправить документ:
<input name=person value='#person#'>
</td></tr>
<tr><td colspan=2 class=center>
<br>
<input type="button" class="butt1" style="width:120;" value="Сохранить" onClick="saveLetterNDS();">
<input type="button" class="butt1" style="width:120;" value="Распечатать" onClick="document.popupForm.submit();">
<input type="button" class="butt1" style="width:120;" value="Закрыть" onClick="HideDialog();">
</td></tr>
</table>
</div>
<script type="text/javascript">
showMsg("##popupCont"); ??
showMsg("##dialog_title", "Письмо о ставке НДС 0%");
ShowDialog(true);
centerDialog();
var saveLetterNDS = function(){
$("##lefferNDSform").find("input[name='doSave']").val("Y");
AjaxCall('popupCont', '', true, 'lefferNDSform');
}
</script>
[end]