You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/MvcShipping/DAL/MsOpSeae/GetQingdaoPort.cs

569 lines
73 KiB
C#

using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using System.Xml.Serialization;
using System.IO;
using System.Drawing;
using DSWeb.BallotAiying2;
using DotNet4.Utilities;
using System.Text;
namespace DSWeb.MvcShipping.DAL.GetQingdaoPort
{
public class MsGetQingdaoPortDAL
{
static private Image byteArrayToImage(byte[] Bytes)
{
using (MemoryStream ms = new MemoryStream(Bytes))
{
Image outputImg = Image.FromStream(ms);
return outputImg;
}
}
static private string CutStr(string Code)
{
var result = "";
var startindex = Code.IndexOf("1");
result = Code.Substring(startindex, Code.Length - startindex);
var endindex = result.LastIndexOf("1");
result = result.Substring(0, endindex + 1);
return result;
}
private static Dictionary<string, string> GetCodeData(string codetype)
{
Dictionary<string, string> CodeKey = new Dictionary<string, string>();
if (codetype == "1")
{
CodeKey.Add("11000000000011011000000000011111000000000011111111111111111111111111111111000000000000011000000000000011000000000000011", "1");
CodeKey.Add("11000000000111110000000001111110000000011011110000000110011110000001100011110000011000011111000110000011011111100000011001111000000011", "2");
CodeKey.Add("110000000001101100001100000111100001100000111100001100000111100001100000111110010110001110111110111111100011100011111", "3");
CodeKey.Add("11000000000001111000000000011111000000000110011000000011100011000000111000011000001100000011000011111111111111111111111111111100000000011000000000000011", "4");
CodeKey.Add("1111111000001101111111000000111100011000000111100011000000111100011100000111100001100001101100001111111101100000011111", "5");
CodeKey.Add("11111110000001111111111100011100110001110111000100000111110001100000011110001100000011110001100000011110001110000110011000111111110000000011111", "6");
CodeKey.Add("110000000000000110000000000011110000000011111110000000111100110000011100000110001110000000110111000000000111100000000000111", "7");
CodeKey.Add("1111000011100011111100111110110001111110011100000111100001100000111100001100000111110011110000110111110111001100011100011111100000000001111", "8");
CodeKey.Add("11111000000001111111100011001100001110001111000000110001111000000110001111000000110001111100000100011001110001100111000111111111110000001111111", "9");
CodeKey.Add("1111111000000111111111110001110000000111011000000000001111000000000001111000000000001111000000000011101110000000111000111111111110000001111111", "0");
}
else
{
CodeKey.Add("111100000000111111000110111001110001111000011000111100001100011110000110001101100110011100111111111100000111111", "9");
CodeKey.Add("111111111111111111111111111100011000011110001100001111001110000111111101100111011100011111000000000111", "B");
CodeKey.Add("111111000000111111110000111000011100011000000110001100000011000011000011011111111111111111111111111", "d");
CodeKey.Add("1100000000110110000000011111000000001111111111111111111111111111000000000001100000000000110000000000011", "1");
CodeKey.Add("111111111111111111111111110000110000110000110000001100011000000110001110000111000011111111000000111111", "b");
CodeKey.Add("111111000001111111111001110011001101100011000011110001100001111000110000111100011100111011000111111000000001111", "6");
CodeKey.Add("1100000000000011110000000000111111000000000111001100000001110000110000001111111111111000111111111111100000000000110000000000000011", "4");
CodeKey.Add("11111100000000011111111001100011100001110010001100000011001000110000001100100001100001100110001111111111111000111111111111", "g");
CodeKey.Add("111111100011000011111110000110001100011000011000110001100001100011000110000110001100001100111000110000111111000011000001111", "5");
CodeKey.Add("11000000011000011000110000110001100011000011000110001100001100011000110000110001100101100111000011110111111000001110001111", "3");
CodeKey.Add("11111111111110001111111111111000000001000000000000001000000000000001100000000000000110000000000000011111111110000000111111111", "h");
CodeKey.Add("10000000000000001000000000000000110011111111111111101111111011111", "j");
CodeKey.Add("1111110000000001111111100000001110000111000000110000001100000011000000110000001100000011000000011000011", "c");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111", "M");
CodeKey.Add("1111110000001111111100001110110111000110011001100011001100110000111110011000001111011", "e");
CodeKey.Add("1100000000011111111111111111111111111101100000000110110000000011", "f");
CodeKey.Add("110000000011111000001111110000111111110001111110011000110000001100011111000110000011111111000000001111110000000000111110000000000011", "A");
CodeKey.Add("11100011110011111011111111001111100111000011110001100001111000111000111111111100111011100011111000000000111", "8");
CodeKey.Add("111111100011011111110000111100011000011110001100001111000110000111100001100111110000111111011000001111", "5");
CodeKey.Add("11100011110011111011111111001111100111000011110001100001111000110000111111111100111011100011111000000000111", "8");
CodeKey.Add("11100000110011111000110011001100011001100110001100110010000111111111000001111111110000000000011", "a");
CodeKey.Add("11000000011011000110000111100011000011110001100001111000110000111100101100111011110111111001110001111", "3");
CodeKey.Add("111111111111111111111111111000011000011110001100001111001110000111111101100111011100011111000000000111", "B");
CodeKey.Add("111111000000001111111111000001110011001100001100011000011000110001100000100011000110000110000100011100111000011000111111000000000001111", "6");
CodeKey.Add("1100000000000011111111111100011111111111110001101100000000000110110000000000011", "f");
CodeKey.Add("1100000000001011111111111100011111111111110001101100000000000110110000000000011", "f");
CodeKey.Add("111100000000000111111000110000111001110001100011000011000110001100001100011000110000110001100001100110011100000111111111100000000111111", "9");
CodeKey.Add("11011111111111101111111111", "i");
CodeKey.Add("1100000000011110000000111111000000111001100001110000110001111111111111111111111111100000000110000000000011", "4");
CodeKey.Add("10000000000000001000000000000000111011111111111111101111111111111", "j");
CodeKey.Add("111111111111100011111111111110001100011000011000110001100001100011001110000110001111101100111000011100011111000000000000111", "B");
CodeKey.Add("1111110000001111111100001110000111000110000001100011000000110001100000011000011000011", "c");
CodeKey.Add("11111100000011111111001111100001110011100000011001110000001100101100001100111111111111111111111111111", "g");
CodeKey.Add("111111110111111011111111111100011000011110001100001110001110000110101101000111011100011111000000000011", "B");
CodeKey.Add("1100000001111100000001111110000001101111000001100111100001100011110001100001101111100000110011100000011", "2");
CodeKey.Add("11100000000110011111000000110011001100000011001100110000001100110010000000111111111000000001111111110000000000000011", "a");
CodeKey.Add("1100000000000110000000001111000000011111100000111100110001110000011001100000001111100000000111", "7");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111100111100000000111111000110111001110001111000011000111100001100011110000110001101100110011100111111111100000111111", "M9");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111", "M");
CodeKey.Add("110000000000011111000000001111110000000111111110000001111110011000000110000001100000011111000110000000011111111000000000001111110000000000000111110000000000000011", "A");
CodeKey.Add("1100000000000000110000000001100011000000011110001100000111100000110001110000000011001100000000001111100000000000111", "7");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111110000000011111000001111110000111111110001111110011000110000001100011111000110000011111111000000001111110000000000111110000000000011", "MA");
CodeKey.Add("1100000000110000110000000011000111000000001100011111111111110001111111111111000000000000001100000000000000110000000000000011", "1");
CodeKey.Add("11100000110011111000010011001100010001100110001100110010000011111111000001111110110000000000011", "a");
CodeKey.Add("1111110000000001111111100000001110110111000000110011001100000011001100110000000111110011000000001111011", "e");
CodeKey.Add("110000000000011111000000001110110000000011111110000001111110011000000110000001100000011111000110000000011110101000000000001111100000000000000111010000000000000011", "A");
CodeKey.Add("111011111111101111111111111100011000011110001100001111001110000111111101100011011100011110000000000111", "B");
CodeKey.Add("111111100011011111110000111100011000011110001100001111000110000111100001100111110000111111011000000111", "5");
CodeKey.Add("1100000001101000000000111110000001101011000000100110100001100011110001100001000011100000110011100000011", "2");
CodeKey.Add("11100000110011111000110011001100011001100010001100110010000111111111000001111111110000000000011", "a");
CodeKey.Add("11111111111111111111111111000001000000000001000000000001100000000000110000000000011111111110000111111111", "h");
CodeKey.Add("11011111111110001101111101111", "i");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111111111111111111111111111111000001000000000001000000000001100000000000110000000000011111111110000111111111", "Mh");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000000000001100000000000001110000000000111110000000000111000100000001010000110000001111111111111000101111111111100000000000110000000000000011", "M4");
CodeKey.Add("1100000001111100000001111110000001101101000001100111100001100011100001100001101111100000110011100000011", "2");
CodeKey.Add("110000000011111000001111110000111111110001111110011000110000001100011111000100000011111111000000001111100000000000111110000000000011", "A");
CodeKey.Add("110111100011011101110000111100011000011110001100000111000110000101100000100101110000111111001000000111", "5");
CodeKey.Add("1100000000000110000000001111000000010111100000111100110001110000011001100000001011100000000111", "7");
CodeKey.Add("11111111111111111110101110000110000110000110000001100011000000110000110000111000011111111000000111111", "b");
CodeKey.Add("111111110111100011111110111110001100011000011000110001100001100011001110000110001111001100101000011100011111000000000000101", "B");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111111011111111111101111111111", "Mi");
CodeKey.Add("11100000011110011111000011111111001110001100111000011000110001100001100011000111000110001111111100111000011100011111000000000000111", "8");
CodeKey.Add("1100000001110001100000001111000110000001101100011000001100110001100001100011000110001100001100001111100000110000011100000011", "2");
CodeKey.Add("111111000000001111111111000001110011001100001100011000011000110001100001100011000110000110001100011100111000011000111111000000000001111", "6");
CodeKey.Add("11111111111110001110111111111000000001000000000000001000000000000001100000000000000110000000000000011110111110000000111111111", "h");
CodeKey.Add("111111000000000111111110000000111000011100000011000000110000001100000011000000011000011000011111111111110001111111111111", "d");
CodeKey.Add("1100000000110110000000011111000000001111011111111111111111111111000000000001100000000000110000000000011", "1");
CodeKey.Add("11100000110011111000110011000100011001100110001100110010000111111111000001111111110000000000011", "a");
CodeKey.Add("1101100000011110101010011100110001010000100000110100011000011110001100001110000110001010110001101100000000011", "6");
CodeKey.Add("100000001000001100011000001000110000100001100010000110000110001100011000011000010000110001100001101001101000000010000111", "3");
CodeKey.Add("111101000000001111111101000001110011001100001100011000011000110001000001100011000110000010001100011100111000011000101111000000000001011", "6");
CodeKey.Add("11011111111110001101111111111", "i");
CodeKey.Add("111111111111100011111111111110000000110000110000000110000001100000011000000110000001110000111000000011111111000000000111111", "b");
CodeKey.Add("1100000001111100000001011110000001101111000001100111100001100011110001100001101111100000110011100000011", "2");
CodeKey.Add("1111100000000011111111001100011100001110010001100000011001000010000001100100001100001100010001111011111101000111111111111", "g");
CodeKey.Add("11111111111110001111111111111000111100000000000001111110000000000000111111000000000000011111000000000000001100000000000111110000000011111100000001111110000000001111000000000000111111111111100011111111111110000000000011100000011110011111000011111111001110001100111000011000110001100001100011000111000110001111111100111000011100011111000000000000111", "M8");
CodeKey.Add("11100000011110011111000011011111000110001100111000011000110001100001100011000111000100001111111100111000011100011111000000000000111", "8");
CodeKey.Add("11100011110011111011111110001111100111000011110001100001110000111000111111111100111011100011111000000000111", "8");
CodeKey.Add("1100000000011111111111111111111111111001100000000110110000000011", "f");
CodeKey.Add("111100000000000111111000010000111001110001100011000010000110001100001100011000110000110001100001100110011000000111111111100000000111101", "9");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000000001111110000000001111111100000001110110111000000110011001100000011001100110000000111110011000000001111011", "Me");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000001111111111111000111111111111100000000000011100000000110011111000000110011001100000011001100110000001100110010000000111111111000000001111111110000000000000011", "Ma");
CodeKey.Add("111100000000111110000110111001110001111000011000111100001100011110000110001101100110011100111111111100000111111", "9");
CodeKey.Add("10011111111110001101111111111", "i");
CodeKey.Add("1100000000001110000000111111000000110001100001110000110001111110111111111111111111100000000010000000000011", "4");
CodeKey.Add("1100000000110010000000011111000000001111111111111111111110110111000000000001100000000000010000000000011", "1");
CodeKey.Add("111111100011000011011110000110000100011000011000110001100001100010000110000110001100001100111000110000110101000011000001111", "5");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111110001100000000011111111111111111111111111101100000000110110000000011", "Mf");
CodeKey.Add("1011110000001111111000001110100111000110011001100011001100110000111110011000001111001", "e");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111000001111110000001111111100001110110111000110011001100011001100110000111110011000001111011", "Me");
CodeKey.Add("110000000011111000001111110000111111110001111110001000110000001100011111000110000011111111000000001111110000000000011110000000000011", "A");
CodeKey.Add("11111111111110001111111111111000111100000000000001111110000000000000111111000000000000011111000000000000001100000000000111110000000011111100000001111110000000001111000000000000111111111111100011111111111110000000111111000000001111111111000001110011001100001100011000011000110001100001100011000110000110001100011100111000011000111111000000000001111", "M6");
CodeKey.Add("111111000000001111111111000001110011001100001100011000011000110001100001100011000110000110001100011100111000011000111110000000000001111", "6");
CodeKey.Add("110111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111111111111111111111111111111000001000000000001000000000001100000000000110000000000011111111110000111111111", "Mh");
CodeKey.Add("1100000001110001100000001111000010000001101100011000001100110001100001100011000110001100001100001111100000110000011100000011", "2");
CodeKey.Add("1100000001011100000000111110000001101111000001000111100000100011010001100001101111100000110001100000001", "2");
CodeKey.Add("1100000001111100000001111110000001101111000001100111100001100011110001100001101111100000110011100000001", "2");
CodeKey.Add("111111111111100011111111111110001100011000011000110001100001100011001110000110001111101100111000011100011011000000000000111", "B");
CodeKey.Add("100000000110000010000000001000101000000000100011001111001010001011110111111000000000000001100000000000000110000000000000001", "1");
CodeKey.Add("1111110000001110111100001110000111000110000001100011000000110000100000011000011000011", "c");
CodeKey.Add("1111100000001111111100000110110010000110011001100010001100010000111110011000001011011", "e");
CodeKey.Add("1111111111111111111111111111100000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111", "M");
CodeKey.Add("11111111111111111111111111000001000000000001000010000001100000000000110000000000011111111110000111111111", "h");
CodeKey.Add("1111110000001101011000000110000111000110000000100011000000010001100000011000011000011", "c");
CodeKey.Add("11111111111111111111111111000001000000000001000000000001100000000000010000000000011111111110000111111111", "h");
CodeKey.Add("111100000000011111000110011001110001101000011000111100001000010110000110001101100110011000111011111100000111111", "9");
CodeKey.Add("1100000000011111111111111111101111011101100000000110110000000011", "f");
CodeKey.Add("111100000000111111000110111001110001111000011000111100001100011010000110001101100110011100111111111100000111111", "9");
CodeKey.Add("1111110000000001111111100110001110000111001000110000001100100011000000110010000110000110011000111111111111100011111111111", "g");
CodeKey.Add("111111111111100011111111111110000000110000110000000110000001100000011000000110000001110000101000000011111111000000000111111", "b");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111100000000011100000110011111000110011001100011001100110001100110010000111111111000001111111110000000000011", "Ma");
CodeKey.Add("111100000000111111000110111001110001111000001000110100001100010110000110001101100110011100111111111100000111111", "9");
CodeKey.Add("110000000011111000001111110000111111110001111110011000110000001100011111000110000011111111000000001111100000000000111110000000000011", "A");
CodeKey.Add("111111000000111011110000111000011100011000000110001100000011000011000011011111111111111111111111111", "d");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111100000111111000000111111110000111000011100011000000110001100000011000011000011011111111111111111111111111", "Md");
CodeKey.Add("10000000000000001000000000000000111011111111111111101111111111011", "j");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000001111111111111000111111111111100011011111111110001101111111111", "Mi");
CodeKey.Add("10110111111110111111111111100011000001100001100001101000110000111111101100101001100010011000000000111", "B");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111110000000011100011110011111011111111001111100111000011110001100001111000111000111111111100111011100011111000000000111", "M8");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111000000001100000000011110000000111111000000111001100001110000110001111111111111111111111111100000000110000000000011", "M4");
CodeKey.Add("11100000110011111000110011001100011001100110001100110010000111111011000001111111110000000000011", "a");
CodeKey.Add("11011111111110000101111111111", "i");
CodeKey.Add("1111110000001111111100000110000111000110000001100011000000110001100000011000011000011", "c");
CodeKey.Add("11111111111111111111111111000001000000000001000000000001100000000000110000000000001111111110000111111111", "h");
CodeKey.Add("110000000001111000000101100000011101110001111100010000100000001100011111000010000001110110000000000111110000000000111110000000000011", "A");
CodeKey.Add("111111100001011111110000111100011000011110001100001111000110000111100001100111110000111111011000001111", "5");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001101100000111111000011111100000011110000000001111111111111111111111111111111111111111111111111111000001000000000001000000000001100000000000110000000000011111111110000111111111", "Mh");
CodeKey.Add("11100010110011111011111111001111100111000011110001100001111000110000111111111100111011100011111000000000111", "8");
CodeKey.Add("101011111011100011111111110110001000011000001000010001100001100011001010000010001111101100111000011000011110000000000000101", "B");
CodeKey.Add("1000000000000000100001111110101111100111011111111", "j");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111111111111111111111111111111100011000011110001100001111001110000111111101100111011100011111000000000111", "MB");
CodeKey.Add("1100000000110110000000011111000000001111111101111111111111111111000000000001100000000000110000000000011", "1");
CodeKey.Add("11111111111110001111111111111000111100000000000001111110000000000000111111000000000000011111000000000000001100000000000111110000000011111100000001111110000000001111000000000000111111111111100011111111111110000000011111100000000011111111001100011100001110010001100000011001000110000001100100001100001100110001111111111111000111111111111", "Mg");
CodeKey.Add("11111111111110001111111111111", "h");
CodeKey.Add("1000000000000001100000000000000010000000000000011111101110000000111011011", "j");
CodeKey.Add("111111111111101011101101011000011000010010000100000111001110000111111101100111011100011011000000000111", "B");
CodeKey.Add("11111100000000011111111001100011100001110010001100000001001000110000001100100001100001100010001111111111111000111111111111", "g");
CodeKey.Add("111100000000111111000110111001110001111000011000111100001100011110000110001101100110011100111111110100000111111", "9");
CodeKey.Add("11100000110011111000110011001100011001100110001100110010000111110111000001111111110000000000011", "a");
CodeKey.Add("11111111111111101111111111000011000011000011000000110001100000011000111000011100001111111100000011111", "b");
CodeKey.Add("100000000001111110111111111011111111001100000000110110000000001", "f");
CodeKey.Add("11000000010000011000110000110001100011000011000110001100001100011000110000110001100101100111000011110111111000001110001111", "3");
CodeKey.Add("111101100011011101110000110100011000011110001100001111000010000111100001100111110000111111011000001011", "5");
CodeKey.Add("11111111111000001111111101010000000100000110000000110000001100000011000000110000001110000111000000011111101000000000111111", "b");
CodeKey.Add("1100000000110011111000000110011001100000011001100110000001100110010000000111111111000000001111111110000000000000001", "a");
CodeKey.Add("1100000001110001100000001111000110000001101100011000001000110001100001100011000110001100001100001111100000110000011100000011", "2");
CodeKey.Add("110000000011111000001111110000111111110001111110001000110000001100011111000110000011111111000000001111110000000000111110000000000011", "A");
CodeKey.Add("11000000011011000110000111100011000011110001100000111000110000111100101100111011110111111001110001111", "3");
CodeKey.Add("10011111101110101111111011", "i");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111111111111111111111111111110000110000110000110000001100011000000110001110000111000011111111000000111111", "Mb");
CodeKey.Add("111111111111111111111111110000110000110000100000001100011000000110001110000111000011101111000000110111", "b");
CodeKey.Add("11100000110011111000110011001100011001100110001100110010000111111111000001111011110000000000011", "a");
CodeKey.Add("101100000000111011000110111001100001111000001000111100001100011110000110001101100110001100111011011100000111111", "9");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100000111110000001111000000000111111111111111111111111110000000011111000001111110000111111110001111110011000110000001100011111000110000011111111000000001111110000000000111110000000000011", "MA");
CodeKey.Add("111111000001111110111001100011001101100011000011110001100001111000110000110100011100111011000111111000000001011", "6");
CodeKey.Add("1100011010011111011111111000111100011000011110001100001111000111000111101110100111011100010111000000000111", "8");
CodeKey.Add("111110000000001111011100000001110000111000000110000001100000001000000110000000110000110000110101001011100011011111111", "d");
CodeKey.Add("1100000000000011111111111100010111111111110001101100000000000110110000000000011", "f");
CodeKey.Add("1011010100101000010110101", "i");
CodeKey.Add("11111100000000011111111001100011100001110010001100000011001000010000001100100001100001100110000111111111111000111111111111", "g");
CodeKey.Add("1111110000001111111000000110000111000110000001100011000000110001100000011000001000011", "c");
CodeKey.Add("1100000000000110000000001110000000011111100000111100110001110000011001100000001111100000000111", "7");
CodeKey.Add("11100011110011111010111111001111100111000011110001100001111000111000111111111100111011100011111000000000111", "8");
CodeKey.Add("11111100000111111101100111001100110110001100001111000110000111100011000001110001110011101100010111100000000111", "6");
CodeKey.Add("110000000001111111111110111111111111110010000000011011000000001", "f");
CodeKey.Add("111111111111111111111111111100011000011110001100000111001110000111111101100111011100011111000000000111", "B");
CodeKey.Add("11001111111011101111111111", "i");
CodeKey.Add("111111100011000011111110000010001100011000011000110001100000100001000010000100001100000100101000110000101111000011000001011", "5");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111110000111111000001111111111001110011001101100011000011110001100001111000110000111100011100111011000111111000000001111", "M6");
CodeKey.Add("11000000011011000110000111100011000011100001100001111000110000111100001100111011110111101001100001111", "3");
CodeKey.Add("1111110000000001111111100000001110110111000000110011001100000011001100110000000110110011000000001110001", "e");
CodeKey.Add("11000011110011010011111111001111100111000011110001000001111000111000011111111100111011100011111000000000111", "8");
CodeKey.Add("11111111111111101111111111000001000000000001000000000001100000000000110000000000011111111110000111111111", "h");
CodeKey.Add("111100000000000111111000110000111001110001100011000001000110001100001100011000110000110001100001100110011100000111111111100000000111111", "9");
CodeKey.Add("111000000000110011111000000011001100110000000110011001100000001100110010000000011111111100000000011111111100000000000000011", "a");
CodeKey.Add("1100000000000011111000000000111111000000001111111100000001111110011000000011000000110000000111110001100000000011111111000000000000111111000000000000001111100000000000000011", "A");
CodeKey.Add("1111111000110000011111110000110000110001100001100001100011000011000011000110000110000110000110011100001100001111110000011000001111", "5");
CodeKey.Add("100000000000000001000000000000000010110111111111111101101111111111111", "j");
CodeKey.Add("11111111101110001111111111111000000001000000000000001000000000000001100000000000000110000000000000011111111110000000111111111", "h");
CodeKey.Add("111100000000111111000110111001110001111000011000111100001100011110000110001101100110011100111111111000000111111", "9");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111100000000011100000110011111000010010001100011001100110001100110010000111111011000001111111110000000000011", "Ma");
CodeKey.Add("11100011110011111011111111001111100111000001010001100001111000111000111111111100111011000011111000000000011", "8");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000011000000011000011000110000110001100011000011000110001100001100011000110000110001100101100111000011110111111000001110001111", "M3");
CodeKey.Add("11000000011011000110000111100011000011110000100001101000110000011100101100111011110111111001110001111", "3");
CodeKey.Add("111111000000111111110000101000001100011000000110001100000001000011000011011101111111111111101011011", "d");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000001111111111111000111111111111100000000111111000000000111111110000000111000011100000011000000110000001100000011000000011000011000011111111111110001111111111111", "Md");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000011111111111111001111111111111100111011111111111111101111111111111", "Mj");
CodeKey.Add("1111110000001111111100001110000111000110000001100011000000110001100000011000011000001", "c");
CodeKey.Add("1111110000001111111100000110000111000110000000100011000000110001100000011000011000011", "c");
CodeKey.Add("100000000011110000000110110000000111001100001110000110001111111111011110111111011100000000110000000000011", "4");
CodeKey.Add("111111000001111111111001110011001101100011000011110001100001111000110000011100011100111011000111111000000001111", "6");
CodeKey.Add("111111000000000111111110000000111000010100000011000000110000001100000011000000011000011000011111111111110001111111111111", "d");
CodeKey.Add("111111111111111111110111110000110000110000110000001100011000000110001110000111000011111111000000111111", "b");
CodeKey.Add("11000000011011000110000111100011000011110001100001111000110000111100101100111011110101111001110001111", "3");
CodeKey.Add("1100000001111000000000111110000001101111000000100111100001100011110001100001101111100000110011100000011", "2");
CodeKey.Add("110000000011111000001111100000111111110001111110011000110000001100011111000110000011111111000000001111110000000000111110000000000011", "A");
CodeKey.Add("11111100000000011111101001100011100001110010001100000001001000110000001100100001100001100110001111111111111000111111101111", "g");
CodeKey.Add("11000000011001000110000111100011000011110001100000101000110000010100100100111010110111111000110001111", "3");
CodeKey.Add("111111111111111101110111110000110000110000110000001100011000000110001110000111000011101111000000111111", "b");
CodeKey.Add("1111110000000001111111100110000110000111001000010000001100100010000000110010000110000110011000111111111111000011111111111", "g");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000111111111110100011111111111110000000110000110000000110000000100000011000000110000001100000111000000011111111000000000111011", "Mb");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111111111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111111111111111111111111111110000110000110000110000001100011000000110001110000111000011111111000000111111", "MMb");
CodeKey.Add("110000000000011000000000111100000001111110000011110011000101000001100100000000111110000000011", "7");
CodeKey.Add("11111111111110001011111111111000111100000000000001011110000000000000111111000000000000011101000000000000001100000000000111110000000011111100000001111110000000001110000000000000111111111111100011111111111110000000011111100000000011111111001100011100001110010001100000011001000110000001100100001100001100110001111111111111000111111111111", "Mg");
CodeKey.Add("110000000011111000001111110000111111110001111110011000110000001100011111000110000011111110000000001111110000000000111110000000000011", "A");
CodeKey.Add("111011000000111111110000111000011100011000000110001100000011000011000001011111111111111110111111111", "d");
CodeKey.Add("11111111101111111111111111000001000000000001000000000001100000000000110000000000001111111110000111111111", "h");
CodeKey.Add("111111000000000111111110000000111000011100000011000000110000001100000011000000011000011000111111111111110001111111111111", "d");
CodeKey.Add("101111111111111111111111111100011000011110001100001111001110000111111101100111011100011111000000000111", "B");
CodeKey.Add("11000000000001111100000000111111000000011111111000000111111001100000011000000110000001111100011000000001111111100000000000111111000000000000011111000000000000001100000000000000000010000000000000001000000000000000111011111111111111101111111111111", "Aj");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000111111111111100011111111111110000000110000110000000110000001100000011000000110000001110000111000000011111111000000000111111", "Mb");
CodeKey.Add("10000000010101000001101100000011010100000101110001000110000001100011001000110000011110111000000001111110000000000101010000000000011", "A");
CodeKey.Add("1100000000011110000000111111000000101001100001110000110001111111111111111111111111100000000110000000000011", "9");
CodeKey.Add("11111111111111111111111111111100000000001101110000000000111101000000000011111000000000000100000000111110000011111100001111110000001111000000000101111111110111101111111110000111111000001111111111001110011001101100011000011110001100001111000110000111100011100111011000111111000000001111", "M6");
CodeKey.Add("11001000000111011110000110000011100010000000010001100000011000001000001011101011111111101110101111", "6");
CodeKey.Add("11111111111110001111111111111000000001000000000000001000000000000001100000000000000110000000000000001111111110000000111111111", "h");
CodeKey.Add("11111111111111111111111111000001000000000001000000000000100000000000110000000000011111111110000111111111", "4");
CodeKey.Add("111111000000111111010000111000011100011000000110001100000011000011000011011111111111111111111111111", "d");
CodeKey.Add("11000000011000011000110000110001100011000011000110001100001100011000110000110001100101000111000011110110110000001110001111", "3");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000010000000000001111100000000111111000000011111100000000011110000000000011111111111111001111111111111100111011111111111111101111111111111", "Mj");
CodeKey.Add("1111110000000001111111100000000110000111000000110000000100000011000000110000001100000011000000011000011", "c");
CodeKey.Add("111111000000001111111111000001110011001100001100011000011000110001100001100011000110000110001100011100101000011000111111000000000001111", "6");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000000001111110000000001110111100000001110110111000000110011001100000011001100110000000111110011000000001111011", "Me");
CodeKey.Add("11111100000000011011110001100011100001110010001100000011001000110000001100100001100001100110001111110111111000111111111111", "g");
CodeKey.Add("101010000001110111100000100110011000110010000100001001100110000010110011000000110011", "e");
CodeKey.Add("10111111011111111101111111000001000000000001000000000000100000000000110000000000011111111110000111110111", "h");
CodeKey.Add("11000000011000011000110000110001100011000011000110001100001100011000110000110001100101100111000011110111111000001100001111", "3");
CodeKey.Add("111111111111100011101111111110000000110000110000000110000001100000011000000110000001110000111000000011011111000000000111111", "b");
CodeKey.Add("11000000011011000110000110000011000011100001100000111000110000111100100100111010110111110001100001111", "3");
CodeKey.Add("110000000011111000001111110000111111110001111110011000110000001100011101000110000011111111000000001111110000000000111110000000000011", "A");
CodeKey.Add("11111111111111111111111111000001000000000001000000000001100000000000100000000000011111111110000111011111", "h");
CodeKey.Add("1100000001111100000001111010000001101111000001100111100001100011110001100001101111100000110011100000011", "2");
CodeKey.Add("1100000000011011111111111101010101111101100000000100110000000011", "f");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111111111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111000001111110000001111111100001110110111000110011001100011001100110000111110011000001111011", "MMe");
CodeKey.Add("11000011110011111011111111001111100111000011110001100001111000111000111111111100111011100011111000000000111", "8");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011011100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111011111111111111111", "M");
CodeKey.Add("101111111111100011111111111110000000110000110000000110000001100000011000000010000000110000111000000011111011000000000111111", "b");
CodeKey.Add("11100000011110011111000011111111001110001100111000011000110001100001100011000111000110001111111100111000011100011110000000000000101", "8");
CodeKey.Add("1100000110011111000110011001100001001100110001100110010000111111111000001111111110000000000011", "a");
CodeKey.Add("110111000000111111110000111000011100011000000010001100000011000011000011011111111111111111111111111", "d");
CodeKey.Add("10000000000000001", "j");
CodeKey.Add("11011111111111111100110111101111", "a");
CodeKey.Add("11000000000110011111000000110001001100000011001100110000001100110010000000111111111000000001111111010000000000000011", "e");
CodeKey.Add("111111111111111111111111110000110000110000110000001100011000000110001110000111000011111111000000111011", "b");
CodeKey.Add("11100000010110011111000011111111001110001100110000011000110001100001100011000110000110001111111100111000011100011011000000000000111", "8");
CodeKey.Add("10000000000000001000000000000000111011111011111101101111111111111", "j");
CodeKey.Add("111111000000000111111110000000111000011100000011000000110000001100000011000000011000011000011111111111110001111111111011", "d");
CodeKey.Add("1100000000100000100000000001000111000000001100010110101111110000110111110010000000000000000100000000000000110000000000000001", "1");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111000001111110000001111111100001110000111000110000001100011000000110001100000011000011000011", "Mc");
CodeKey.Add("111111100011011111110000111100011000011110001100001111000110000111100000100111110000111111011000001111", "5");
CodeKey.Add("1100000000111100000001111010000001100111000001100111100001100011110001100001100111100000110011100000011", "2");
CodeKey.Add("1100000000000011110000000000111110000000000111001100000001110000110000001111111111111000111111111111100000000000110000000000000011", "4");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000001110000000000001111111111111000111111111101100001100000001110001100000001111000110000001101100011000001100110001100001100011000110001100001100001111100000110000011100000011", "M2");
CodeKey.Add("111111111111110111111111110000110000110000110000001100011000000110001110000111000011111111000000111111", "b");
CodeKey.Add("101110100011011111110000111100011000011110001100001111000110000111100001100111110000111111011000001111", "5");
CodeKey.Add("110000000000001111000000000011111100000000011100110000000111000011000000111111111111100001110111111110000000000011000000000000001", "4");
CodeKey.Add("11101100000000011101111001100010100001110010001100000001001000010000001100100001100001100010001111111111111000111111111111", "g");
CodeKey.Add("10011111111111101111111011", "i");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000001111111111111000111111111111100001100000001110001100000001111000110000001101100011000001100110001100001100011000110001100001100001111100000110000011100000011", "M2");
CodeKey.Add("110111000000000111111110000000111000011100000011000000110000001100000011000000011000011000011111111111110001111111111111", "d");
CodeKey.Add("1100000001111100000001111110000001101111000001100111100001100011110001100000101111100000110011100000011", "2");
CodeKey.Add("1100000110011111000110011001100011001100110001100110000000111111011000001111111010000000000011", "a");
CodeKey.Add("111111000000111111110000111000011100011000000110001100000011000011000011011111101111111111111111111", "d");
CodeKey.Add("100000001110001100000001011000110000001100100011000001100110001100001100011000010001100001100001111100000110000011100000001", "2");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000111111100011000011111110000110001100011000011000110001100001100011000110000110001100001100111000110000111111000011000001111", "M5");
CodeKey.Add("11011110000100110110000011110001100001110000110000110100011000011110000110011010000011011000100000101", "5");
CodeKey.Add("1010101101111111101111111111110000000000111111000000000011011100000000001010100000000000110000000011111000001111010000111111000000111100000000011011111111111111011111111111111100011011111110000111100011000011110001100001111000110000111100001100111110000111111011000001111", "M5");
CodeKey.Add("1100000000110110000000011111000000001111101111111111111111111111000000000001100000000000010000000000011", "1");
CodeKey.Add("10000000011011000110000111100011000011110001100001110000110000111100100100111011110110111001110001111", "3");
CodeKey.Add("1100000001111100000001111110000001100111000001100111100001100011110001100001100111100000110011100000011", "2");
CodeKey.Add("1111110000001111111100001110110111000010001001100010001100010000111110011000001111011", "e");
CodeKey.Add("1100000000011111111111101111011111111101100000000100110000000001", "f");
CodeKey.Add("11111111111110001111111111111000111100000000000001111110000000000000111111000000000000011111000000000000001100000000000111110000000011111100000001111110000000001111000000000000111111111111100011111111111110000000000011111000000001111110000000111111110000001111110011000000110000001100000011111000110000000011111111000000000001111110000000000000111110000000000000011", "MA");
CodeKey.Add("11111111111110111111111111", "h");
CodeKey.Add("111111111111110111101111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011100000000001111111111111111111111111100000000011100000110011111000110011001100011001100110001100110010000111111111000001111111110000000000011", "Ma");
CodeKey.Add("111111000001111101111001110011001101100011000011110001100001111000110000111100011100011011000111111000000001111", "6");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000001111111111111000111111111111100000111100000000000111111000110000111001110001100011000011000110001100001100011000110000110001100001100110011100000111111111100000000111111", "M9");
CodeKey.Add("1000000001000011000110000110001100011000011000110001100001100001000110000110001100101100111000011110110111000001110001101", "3");
CodeKey.Add("110000000011111000001111110000111111100001011110011000110000001100011111000110000011111111000000001111100000000000111110000000000011", "A");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000110111000000011111100000000011110000000000001111111111111000111011111101100000000111111000000000111111110000000111000011100000011000000110000001100000011000000011000011000011111111111110001111111111111", "Md");
CodeKey.Add("111100000000011111000110111001110001111000011000111100001100011110000110001101100110011100111111111100000111111", "9");
CodeKey.Add("11111101111100011111111111110001100010000011000110001100001100001001110000110001111101100111000011100011111000000000000111", "B");
CodeKey.Add("1000000000000000100000000000000011101111111111111110111111111111", "j");
CodeKey.Add("1011110100110000100100111101", "i");
CodeKey.Add("10000000000000001000000000000000110011111010101111101111111101111", "j");
CodeKey.Add("1111111111111111111111111101110000000000111111000000000011111100000000001010100000000000100000000011111000001111110000111111000000111100000000011111111111011111111111111000000001100000000011110000000111111000000111001100001110000110001111111111111111111111111100000000110000000000011", "M4");
CodeKey.Add("11111111111111111111111111111100000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111111111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111", "MM");
CodeKey.Add("111111000000111111110000101000011100011000000110000100000010000011000011011101111111111111011111111", "d");
CodeKey.Add("110111111111111011111111110000110000110000110000001100011000000010001110000011000011111111000000111011", "b");
CodeKey.Add("1010111111010000101001100110100001100000000000000001111000000000000001011100000000000001111100000000000000100000000000011110000000001110110000000111110000000000101000000000000011001101101110000101101110101000011000000011000011000110000110001100011000011000110001100001100011000110000110001100101100111000011110111111000001110001111", "M3");
CodeKey.Add("100000000011111111111111111111111111101100000000110110000000011", "f");
CodeKey.Add("111100000000000111111000110000111001110001100011000011000110001100001100011000110000110001100001100110011100000111111110100000000111111", "9");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111101100000001111100000001111110000001101111000001100111100001100011110001100001101111100000110011100000011", "M2");
CodeKey.Add("1100000110011111000110001001100001001100100001100110010000111011011000001110110110000000000011", "a");
CodeKey.Add("11011111111011101111111111", "i");
CodeKey.Add("11100000110011111000110011001100011001100110001100110010000101110111000001111111110000000000011", "a");
CodeKey.Add("1100000000000011110000000000111111000000000111001100000001110000110000001111111111111000111111111011100000000000110000000000000011", "4");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011011100000000000001011000000000000000010000000000011111000000001111010000000110111000000000111100000000000011111111011110000111111111111", "M");
CodeKey.Add("11111100011000011111110000110001000010000001000110001100001100011000110000110001100001100111000110000111111000011000001111", "5");
CodeKey.Add("100000000110110000000011110000000001110111110111111111111101101000000000001100000000000100000000000011", "1");
CodeKey.Add("111111111111111111111111111100011000011110001100001111001110000111111101100111011100011011000000000111", "B");
CodeKey.Add("1111111111111000111111111111100011110000000000000111111000000000000011111100000000000001111100000000000000110000000000011111000000001111110000000111111000000000111100000000000011111111111110001111111111111000111111111111100011111111111110001100011000011000110001100001100011001110000110001111101100111000011100011111000000000000111", "MB");
CodeKey.Add("100000001111100000001111100000001101101000001100011100001100011100001100001101011100000110010000000011", "2");
CodeKey.Add("11100011110011111011111101001111100111000011110001100001111000111000111111111100111011100011111000000000111", "8");
CodeKey.Add("1100000000110110000000011111000000001111111111110111111111111111000000000001100000000000110000000000011", "1");
CodeKey.Add("111111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111111111111100000000011000000110011111000010011001100011001100110000100110010000111111111000001111110110000000000011", "Ma");
CodeKey.Add("100000000011110000000111011000000111001100001010000100001101111111111111111111111100000000110000000000011", "4");
CodeKey.Add("1111110000001111111100001110110111000110001001100011001000110000111010011000001111011", "e");
CodeKey.Add("111111101111110101110111111111000000000001011000000000001111110000000000011110000000000010000000001010100000110111000011110100000011100000000001011111111101101111110111100000000010000000110001110000010001001000001001000010001000110000000011110100000000101011110000000000001", "Ma");
CodeKey.Add("110000000101010000000111111000000110111100000010001000000110001101000110000100010110000011000110000001", "2");
CodeKey.Add("11011111111111101111111101", "i");
CodeKey.Add("1100000000110010000000011111000000001111111111111110110111111011000000000001100000000000110000000000011", "1");
CodeKey.Add("1100000000000110000000001111000000011111100000111100110001110000011001100000000111100000000111", "7");
CodeKey.Add("11100000000110011111000000110011001100000011001000110000001100110010000000111101111000000001111111110000000000000011", "a");
CodeKey.Add("11100011110011111011111111001111100111000010110001100001111000111000111111111100111011100011111000000000111", "8");
CodeKey.Add("111111111111100011111111111110001111000000000000011111100000000000001111110000000000000111110000000000000011000000000001111100000000111111000000011111100000000011110000000000001111111111111000111111111111100011111111111110001111111111111000000001000000000000001000000000000001100000000000000100000000000000011111111110000000111111111", "Mh");
CodeKey.Add("11111111111111111110111111000001000000000001000000000001100000000000110000000000011111111110000111111111", "h");
CodeKey.Add("11111100011010111110000111100011000011110001100001111000110000111100001000111010000011111011000001111", "5");
CodeKey.Add("1011000000010100000000111000010100001000000100000100000001000000000001001010101101010110110101001", "d");
CodeKey.Add("111111111011100011111111111110001100011000011000110001100001100011001110000110001111101100111000011100011111000000000000111", "B");
CodeKey.Add("11111100000000011111111001100011100001110010001100000011001000110000001100100001100001100110000111111111111000111111111111", "g");
CodeKey.Add("11111111111110001111111111111000111100000000000001111110000000000000111111000000000000011111000000000000001100000000000111110000000011111100000001111110000000001111000000000000111111111111100011111111111110000000010101100000000011101101001100011100001110010001000000011001000010000001100000000100001000010000111110111011000111111111111", "Mg");
CodeKey.Add("111111111111111101111111111100001000011110001100001111001110000011011101100111011100001011000000000111", "B");
CodeKey.Add("1000000000011110000000111111000000111001100001110000110001111111111110111111101101100000000110000000000011", "4");
CodeKey.Add("111111100011011111110000111100011000011110001100001111000110000111100001000111110000111110011000001111", "5");
CodeKey.Add("1100000001111100000001111110000001101111000001100111100001100011110001100001101111100000110011100100011", "2");
CodeKey.Add("111111111111111111111111111100011000011110001100001111001110000111110101100111011100011111000000000111", "B");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111011000000011011000110000111100011000011110001100001111000110000111100101100111011110111111001110001111", "M3");
CodeKey.Add("11111111111111111111111111000001000000000001000000000001100000000000110000000000011111111110000111111101", "h");
CodeKey.Add("110111100011001011110000011000010000011010001100001111000110000110100001100111010000111111011000001011", "5");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111111111111111111111111111110000110000110000110000000100011000000110001110000111000011111111000000111111", "Mb");
CodeKey.Add("1100000001110100000001111110000001100101000001000111100001100011110001100000101101100000110010100000001", "2");
CodeKey.Add("111111000000111111110000111000011100011000000110001100000011000011000011011111111111111111111011111", "d");
CodeKey.Add("111111000001111111111001110011001101100011000011100001100001111000110000111100011100111011000111111000000001111", "6");
CodeKey.Add("111111000001111111111001110011001101100011000011110001100001111000110000111100011100111011000111111000000000111", "6");
CodeKey.Add("100000001110001100000001111000110000001101100011000001100110001100001100011000110001100001100001111100000110000011100000011", "2");
CodeKey.Add("11111000000001111111111000001010011001000001100011000011000110001100001100010000100000010001100011100111000011000111110000000000001111", "6");
CodeKey.Add("111111100011010011010000100000010000011110000100001001000010000011000001100111110000111001001000000111", "5");
CodeKey.Add("1100000000011110000000110110000000111001100000110000110001101101111111111111111111100000000110000000000011", "4");
CodeKey.Add("11110111111110101110111111", "h");
CodeKey.Add("100000000000010000000000011000000000000111101111000011110111", "6");
CodeKey.Add("111111000001111101111001100011001101000011000011110001100000111000110000111100010100111011000111111000000000111", "A");
CodeKey.Add("110000000000101111111111011111111110110110000000011001000000001", "f");
CodeKey.Add("1100000000011110000000111110000000011001100001110000110001111111111111111111111111100000000110000000000011", "4");
CodeKey.Add("1100000000000111110000000011111100000001111111100000011111100110000001100000011000000111110001100000000111111110000000000011111100000000000001111100000000000000110000000000000000001", "A");
CodeKey.Add("111011111111111111101111111111111", "j");
CodeKey.Add("11111111111111111111111111111000000000001111110000000000111111000000000011111000000000001100000000111110000011111100001111110000001111000000000111111111111111111111111110000000011100011110011111011111111001111100111000011110001100001111000111000111111111100111011100011111000000000111", "M8");
CodeKey.Add("111111100011011111110000111100011000011110001100001110000110000111100001100111110000111111011000001111", "5");
CodeKey.Add("111100000000111111000110111001110001111000011000111100001100011110000110001101100110011000111111111100000111111", "9");
CodeKey.Add("1111100000001111111100001110000111000110000001100011000000110001100000011000011000011", "c");
CodeKey.Add("1100000001110001100000001111000110000001101100011000001100010001100001100011000010001100001000001111100000110000011100000011", "2");
CodeKey.Add("111100000000111111000110111001110001111000011000111100001100011110000110001101100110011100111111011100000111111", "9");
CodeKey.Add("11100000110011011000010011001100011001100110001100110010000111111111000001011110110000000000011", "a");
CodeKey.Add("11101101011111111011111011110001100000111000110000111000110000010111110110001101110000101000000000001", "B");
CodeKey.Add("111111000000001101111111000001110011001100001100011000011000110001100001100011000110000110001100011100111000011000111111000000000001111", "6");
CodeKey.Add("111111000000000110111100000000111000010100000011000000110000001100000011000000011000010000011111111011110000110111111111", "d");
CodeKey.Add("11000000011011000110000111100011000011110001100001111000100000111100101100111011110111111001110001111", "3");
CodeKey.Add("1100000000000110000000001111000000011111100000011000110000110000011001100000001111100000000011", "7");
CodeKey.Add("1100000000011111111111101111111111111101100000000100110000000011", "f");
CodeKey.Add("11100000110001111000110011001100011001100110001100110010000111111101000001111111110000000000001", "a");
CodeKey.Add("1011111111111101111111111", "i");
CodeKey.Add("111111000000111101110000111000010100011000000100001100000011000011000011001111111111111110111101111", "d");
CodeKey.Add("11111101111110000111111101111000000001000000000000001000000000000001100000000000000110000000000000011111111110000000111111111", "h");
CodeKey.Add("110000000011111000001101110000011111110001111110011000100000001100011011000110000011111011000000001011110000000000111110000000000011", "A");
CodeKey.Add("111111000001111101101001100011001101100011000011110001000001111000110000111100011100111011000111111000000001111", "6");
CodeKey.Add("11000000011011000110000111100010000011110001100001111000110000111100101100111011110111111001110001111", "3");
CodeKey.Add("111111111111111111111101110000110000110000110000001100011000000110001110000111000011101111000000111111", "b");
CodeKey.Add("1111110000000001110101100000001110110111000000110011000100000010001100110000000111110011000000001111011", "e");
CodeKey.Add("1100000001010001100000001111000110000001101100011000001100110000100000100011000110001100001000001101100000110000011100000011", "2");
CodeKey.Add("11100011110011111011111111001111100111000011110001100001111000111000111101111100111011100011111000000000111", "8");
CodeKey.Add("11111111111111111111111111000001000000000001000000000001100000000000110000000000011111111110000111101011", "h");
CodeKey.Add("11111111111010001101111101001000000001000000000000001000000000000001100000000000000100000000000000011111111110000000111111111", "h");
CodeKey.Add("11100000000110011111000000110011001100000011001100110000001100110000000000111111111000000001111110110000000000000011", "a");
CodeKey.Add("11111100000000011111011001100011100001110010001100000011001000110000001100100001100001100110001111111111111000111111111111", "g");
CodeKey.Add("1100000000011010111111111101101101111001000000000110110000000011", "f");
CodeKey.Add("1100000000000011111110111100011111101011110001101100000000000110110000000000001", "f");
CodeKey.Add("111111111111101111111111111100011000011110001100001111001110000111111101000111011100011111000000000111", "B");
CodeKey.Add("111111100011000011111110000110001100011000011000110001100001100001000110000110001100001100111000110000111111000011000001111", "5");
CodeKey.Add("11000000011000010000110000110001000011000011000010001100001100011000110000110001000100100111000011110101111000001110000111", "3");
CodeKey.Add("1111110000001111111100000110000111000110000001100011000000110001100000001000011000011", "c");
CodeKey.Add("1100000011110011111000011111111001110001100111000011000110001100001100011000111000010001111010100111000010100011101000000000000111", "8");
CodeKey.Add("1111111111111111111111111111110000000000111111000000000011111100000000001111100000000000110000000011111000001111110000111111000000111100000000011111111111111111111111111111111100011011111110000111100011000011110001100001111000110000111100001100111110000111111011000001111", "M5");
CodeKey.Add("1100000001111100000001111010000001101111000001100011100001100011110001100001101111100000110011100000011", "2");
CodeKey.Add("110000000000001111000000001111110000000110110110000001101110011000000010000001100000011110000010000000001111111000000000001101100000000000000111100000000000000011", "A");
CodeKey.Add("11111111111111111111110111000001000000000001000000000001100000000000110000000000011111111110000111111111", "h");
CodeKey.Add("1100000001111100000001111110000001101111000001100111100001100011110001100001001111100000110011100000011", "2");
CodeKey.Add("1111110000001110111100001110000111000110000001100011000000110001100000011000011000011", "c");
CodeKey.Add("1100000001111100000001111100000001101111000001000111100000100011110001100001101111100000110011100000011", "2");
CodeKey.Add("111111111111111111111111111100011000011110001100001111001110000111111101000111011100011111000000000111", "B");
CodeKey.Add("10000000000000001000000000000000111011111111111111100111111111111", "j");
CodeKey.Add("11000000001000011000110000110001000011000011000010001100001100001000110000110001100100100111000011110111111000001110000111", "3");
CodeKey.Add("1000000000000000110000000001100011000000011110001100000111100000110001110000000011001100000000001111100000000000111", "7");
CodeKey.Add("1111110000000001111111100000001110110111000000110011000100000011001100110000000111110011000000001111011", "e");
CodeKey.Add("11100000110011111000110011001100011001100110001100110010000111101111000001111111110000000000011", "a");
CodeKey.Add("111111100001011111110000011100011000011110001100001111000110000111100001100111110000011111011000000111", "5");
CodeKey.Add("10000000000000001000000000000000111010111111111111101111111111101", "j");
CodeKey.Add("101111111111111111111111111111000000000011111100000000001111110000000000111110000000000011000000001111100000111111000011111100000011110000000001111111111111111011111111101100000001111100000001111110000001101111000001100111100001000011110001100001101111100000110011100000011", "M2");
CodeKey.Add("1100000001110001100000001111000110000001101100011000000100110001100001100011000110001100001100001111100000110000011100000011", "2");
CodeKey.Add("1111110000000001111101100000000110000111000000110000001100000011000000110000001100000011000000011000011", "c");
CodeKey.Add("1100000000011111111111111111111111111101100000000110010000000011", "f");
}
return CodeKey;
}
static public string GetHtmlData(string url, string poststr, string codetype = "1")
{
Dictionary<string, string> CodeKey = GetCodeData(codetype);
var result = "";
if ((url.Trim() == "") || (poststr.Trim() == "")) { return result; }
TimeSpan ts = DateTime.Now - DateTime.Parse("1970-1-1");
string strtime = ts.TotalMilliseconds.ToString();
strtime = strtime.Substring(0, strtime.IndexOf("."));
HttpHelperX2 ShippHttp = new HttpHelperX2();
var outcodestr = "";
bool trancode = false;
string codestr1 = "";
string codestr2 = "";
string codestr3 = "";
string codestr4 = "";
int i = 0;
while (!trancode)
{
try
{
var bmpurl = "http://www.qingdaoport.net/adv/random.jsp?d=" + strtime;
if (codetype == "2") bmpurl = "http://www.qingdaoport.net/adv/ran1.jsp";
Image img = ShippHttp.GetAndGetBitmap(bmpurl, "", url, true);
UnCodebase Amp = new UnCodebase(img as Bitmap);
Amp.GrayByPixels();
Amp.GetPicValidByValue(128, 4);
var codestr = Amp.GetBmpCode(Amp.bmpobj, 128);
string[] codelist = codestr.Split('@');
var strtemp = "";
List<System.String> strlist = new List<System.String>();
for (var z = 0; z <= codelist.Length - 1; z++)
{
strtemp = codelist[z];
if (strtemp.IndexOf("1") >= 0)
{
strlist.Add(CutStr(strtemp));
}
}
outcodestr = "";
trancode = true;
if (strlist.Count != 0)
{
for (var j = 0; j < strlist.Count; j++)
{
if (CodeKey.ContainsKey(strlist[j]))
{
var str1 = "";
CodeKey.TryGetValue(strlist[j], out str1);
if (str1 == "") trancode = false;
outcodestr = outcodestr + str1;
}
}
}
}
catch
{
trancode = false;
}
i = i + 1;
if (i == 4) trancode = true;
}
if ((outcodestr == ""))
{
return "";
}
var poststrAll = poststr + "&num=" + outcodestr;
result = ShippHttp.PostAndGetHtml(url, poststrAll, "application/x-www-form-urlencoded", url, true, Encoding.GetEncoding("gb2312"));
return result;
}
static public string GetHtmlData2(string url, string poststr)
{
var result = "";
HttpHelperX2 ShippHttp = new HttpHelperX2();
result = ShippHttp.PostAndGetHtml(url, poststr, "application/x-www-form-urlencoded", url, true, Encoding.GetEncoding("gb2312"));
return result;
}
}
}