SourceDataToDb.cshtml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @{
  2. List<string> dic = ViewBag.dic as List<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(string sub in dic)
  16. {
  17. string[] data = sub.Split('|');
  18. <option value="@data[0]">@data[1]</option>
  19. }
  20. </select>
  21. </div>
  22. <div>
  23. 类型:<select id="kind">
  24. <option value="bind">绑定</option>
  25. <option value="trade">交易</option>
  26. <option value="active">激活/押金</option>
  27. <option value="merchantinfo">商户</option>
  28. <option value="merchant">商户(力pos)</option>
  29. </select>
  30. </div>
  31. <div>
  32. 报文:<textarea id="content" style="width: 100%; height: 300px;"></textarea>
  33. </div>
  34. <div>
  35. <input type="button" value="查询" onclick="post()">
  36. </div>
  37. <script>
  38. function post(){
  39. var brand = document.getElementById("brand").value
  40. var kind = document.getElementById("kind").value;
  41. var content = document.getElementById("content").value;
  42. window.location.href = "/home/SourceDataToDbResult?content=" + kind + "|" + brand + "|" + content;
  43. }
  44. </script>
  45. </body>
  46. </html>