<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Basic.Master" AutoEventWireup="true" CodeBehind="Qywx_Setting_2.aspx.cs" Inherits="helpdesk.Admin.Qywx_Setting_2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <p></p>


    
    <b>1.接收消息服务器配置</b>

      <table class="table table-bordered">


       <tr> 
     
       <th width="200px">
           URL
       </th>

       <td>

          <asp:TextBox runat="server" ID="txt_url" CssClass="form-control"></asp:TextBox>
           
           <div style="font-size:12px"> 
              可在 "企业微信-应用于小程序-自建的小程序-接收消息-设置API接收-URL" 填写此URL
           </div>

       </td>

       </tr>


           <tr> 
     
       <th width="200px">
           Token
       </th>

       <td>

          <asp:TextBox runat="server" ID="txt_token" CssClass="form-control"></asp:TextBox>

             <div style="font-size:12px"> 
                 可在 "企业微信-应用于小程序-自建的小程序-接收消息-设置API接收-Token" 填写此Token
           </div>

       </td>

       </tr>


          
           <tr> 
     
       <th width="200px">
           EncodingAESKey
       </th>

       <td>

          <asp:TextBox runat="server" ID="txt_aes" CssClass="form-control"></asp:TextBox>

             <div style="font-size:12px"> 
                可在 "企业微信-应用于小程序-自建的小程序-接收消息-设置API接收-Token" 填写此EncodingAESKey
           </div>

       </td>

       </tr>


               <tr>
              <th>
                  是否启用通知
                  <div style="font-size:12px; font-weight:normal">
                      通知二选一
                  </div>
              </th>
              <td>
                    <br />
                  <p>
                   <asp:CheckBox runat="server" ID="cb_wx_notice" Text="当用户申请会议时，启用企业微信通知" AutoPostBack="true" OnCheckedChanged="cb_wx_notice_CheckedChanged" /> <br />
                      </p>

                  <br />  
                  <p style="display:none">
                  <asp:CheckBox runat="server" ID="cb_write_calendar"  AutoPostBack="true"  Text="是否写入与会者日历" OnCheckedChanged="cb_write_to_calendar_CheckedChanged"/> <br />
                     <div style="font-size:12px"> 
                          如写入与会者日历，请在"应用管理-日程-可调用接口的应用" 里，勾选预订系统
                      </div>
                        </p>
              </td>

          </tr>



          <tr>
              <th>
                  测试配置是否正确 
              </th>

              <td>
                    收件人：<asp:TextBox runat="server" ID="txt_toUser" placeholder="企业微信用户" ></asp:TextBox> <asp:Button runat="server" ID="btn_test" Text="测试" OnClick="btn_test_Click" />

                  <div style="font-size:12px">
                      请先点击下面的保存后，再进行测试
                  </div>
   
              </td>

          </tr>


     

          

       <tr>
           <td colspan="2" align="center">

               <asp:button runat="server" ID="btn_save" Text="保存" CssClass="btn btn-primary" OnClick="btn_save_Click" />

           </td>
       </tr>
           

   </table>



     



</asp:Content>
