SourceDataToDb.cshtml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @{
  2. Dictionary<int, string> dic = ViewBag.dic as Dictionary<int, string>;
  3. }
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <title>补原始数据</title>
  11. </head>
  12. <body>
  13. <div>
  14. 品牌:<select id="brand">
  15. @foreach(int Id in dic.Keys)
  16. {
  17. <option value="@Id">@dic[Id]</option>
  18. }
  19. </select>
  20. </div>
  21. <div>
  22. 类型:<select id="kind">
  23. <option value="bind">绑定</option>
  24. <option value="trade">交易</option>
  25. <option value="active">激活/押金</option>
  26. <option value="merchantinfo">商户</option>
  27. <option value="merchant">商户(力pos)</option>
  28. </select>
  29. </div>
  30. <div>
  31. 报文:<textarea id="content" style="width: 100%; height: 300px;"></textarea>
  32. </div>
  33. <div>
  34. <input type="button" value="查询" onclick="post()">
  35. </div>
  36. <script>
  37. function post(){
  38. var brand = document.getElementById("brand").value
  39. var kind = document.getElementById("kind").value;
  40. var content = document.getElementById("content").value;
  41. window.location.href = "/home/SourceDataToDbResult?content=" + kind + "|" + brand + "|" + content;
  42. }
  43. </script>
  44. </body>
  45. </html>