×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: user8210d
Added: Apr 15, 2019 11:17 AM
Views: 3814
Tags: no tags
  1. JINR/fields/letter_nds.mod
  2.  
  3. [comments]
  4. descr=U: форма подготовки посылки FYI.
  5.  
  6. input=doc_id - ID документа
  7.  
  8. output=Pop-up окно с формой
  9. parents=docs/view_doc.cfg
  10. childs=docs/doc_user_action_process.cfg
  11. test_URL=?c=docs/sendFYI&doc_id=1
  12. [end]
  13.  
  14. [parameters]
  15. request_name=U:Письмо о ставке НДС
  16. LOG=OFF
  17. [end]
  18.  
  19. [report]
  20. $CALL_SERVICE c=sys/getARUD;   ??!AR_R=Y&!AR_A=Y
  21. $INCLUDE [OK report]  ??AR_A=Y|AR_R=Y
  22. [end]
  23.  
  24.  
  25. [OK report]
  26. $SET_PARAMETERS result_code=#~doc_action_inform#; ??!result_code
  27.  
  28. $SET_PARAMETERS step_id=0;  
  29.  
  30. $INCLUDE [form]
  31.         ??!doSave=Y|ERROR|INPUT_ERROR
  32. [end]
  33.  
  34. [form]
  35.  
  36.     =================== Форма ввода данных для действия с документом ==============??
  37.     <div id="lefferNDSform">
  38.         <!--<input type=hidden name="c" value="#c#">
  39.        <input type_=hidden name="doSave" value="">
  40.        <input type=hidden name=doc_id value='#doc_id#'>--!>
  41.  
  42.        <center>
  43.        <table border=0 cellpadding=5 cellspacing=0>
  44.            <tr><td></td>
  45.            <td>
  46. Уважаемый ??!user_sex=Ж
  47.            Уважаемая ??user_sex=Ж
  48.            #user_I# #user_O#,</td></tr>
  49.  
  50.            <tr><td colspan=2 class="big
  51.            error ??ERROR&!FORWARD_USERS_OK=Y
  52.            ">Выберите пользователей, которым Вы хотите отправить документ:
  53.                <input name=person value='#person#'>
  54.            </td></tr>
  55.  
  56.  
  57.  
  58.            <tr><td colspan=2 class=center>
  59.            <br>
  60.            <input type="button" class="butt1" style="width:120;" value="Сохранить" onClick="saveLetterNDS();">&nbsp; &nbsp;
  61.            <input type="button" class="butt1" style="width:120;" value="Распечатать" onClick="document.popupForm.submit();"> &nbsp; &nbsp;
  62.            <input type="button" class="butt1" style="width:120;" value="Закрыть" onClick="HideDialog();">
  63.            </td></tr>
  64.        </table>
  65.    </div>  
  66.  
  67.    <script type="text/javascript">
  68.        showMsg("##popupCont"); ??
  69.        showMsg("##dialog_title", "Письмо о ставке НДС 0%");
  70.        ShowDialog(true);
  71.        centerDialog();
  72.  
  73.        var saveLetterNDS = function(){
  74.            $("##lefferNDSform").find("input[name='doSave']").val("Y");
  75.            AjaxCall('popupCont', '', true, 'lefferNDSform');
  76.  
  77.        }
  78.    </script>
  79. [end]
  80.  
  81.  
  82.