Example #1
0
        public void Init()
        {
            _DbEngine = new ODBEngine();
            _DbEngine.DbInit(_UserModel);

            UdcList = new List<Udc>();
            UdcList.Add(new Udc { IsSys = true, Id = "AUDC000000000001", Name = "仅数字", Tips = "仅数字", Data = "0123456789" });
            UdcList.Add(new Udc { IsSys = true, Id = "AUDC000000000002", Name = "大写字母", Tips = "大写字母", Data = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" });
            UdcList.Add(new Udc { IsSys = true, Id = "AUDC000000000003", Name = "小写字母", Tips = "小写字母", Data = "abcdefghijklmnopqrstuvwxyz" });
            UdcList.Add(new Udc { IsSys = true, Id = "AUDC000000000004", Name = "大小写字母", Tips = "大小写字母", Data = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" });
            UdcList.Add(new Udc { IsSys = true, Id = "AUDC000000000005", Name = "数字及字母", Tips = "数字及字母", Data = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" });
            UdcList.Add(new Udc { IsSys = true, Id = "AUDC000000000006", Name = "可输入英文符号", Tips = "可输入英文符号", Data = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" });
            foreach (Udc udc in _DbEngine.Query<Udc>())
            {
                UdcList.Add(udc);
            }

            string _UdcKey = "AUDC000000000005";
            foreach (Udc item in UdcList)
            {
                if (item.Id == _UdcKey)
                {
                    DefaultUdc = item;
                }
            }

            UdcModified = 0x7FFFFFFF;
        }