@{
    List<string> dic = ViewBag.dic as List<string>;
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>补原始数据</title>
</head>
<body>
    <div>
        品牌：<select id="brand">
            @foreach(string sub in dic)
            {
                string[] data = sub.Split('|');
                <option value="@data[0]">@data[1]</option>
            }
        </select>
    </div>
    <div>
        类型：<select id="kind">
            <option value="bind">绑定</option>
            <option value="trade">交易</option>
            <option value="active">激活/押金</option>
            <option value="merchantinfo">商户</option>
            <option value="merchant">商户(力pos)</option>
        </select>
    </div>
    <div>
        报文：<textarea id="content" style="width: 100%; height: 300px;"></textarea>
    </div>
    <div>
        <input type="button" value="查询" onclick="post()">
    </div>
    <script>
        function post(){
            var brand = document.getElementById("brand").value
            var kind = document.getElementById("kind").value;
            var content = document.getElementById("content").value;
            window.location.href = "/home/SourceDataToDbResult?content=" + kind + "|" + brand + "|" + content;
        }
    </script>
</body>
</html>