Exemplo n.º 1
0
        void mainWhile(object tel)
        {
            string    telStr   = tel.ToString();
            string    strSql   = "select SUBSTRING(Number7,1,3) q3w from TelphoneData where SUBSTRING(Number7,4,4)=" + telStr.Substring(3, 4) + " and city='" + textBox2.Text + "'";
            DataTable returnDt = SqlHelp.bangding(strSql);
            string    telStr8  = telStr.Substring(3, 8);

            for (int i = 0; i < returnDt.Rows.Count; i++)
            {
                string keyword = returnDt.Rows[i][0].ToString() + telStr8;
                int    bl      = CollectRule.MainWhile(search, keyword);
                if (bl == 1)
                {
                    num++;
                }
                else if (bl == -1)
                {
                    MessageBox.Show(DateTime.Now.ToString() + "执行到:" + keyword + "时,当前IP开始被" + search + "屏蔽,未启动VPN!\r\n");
                }
            }
        }
Exemplo n.º 2
0
Arquivo: Form1.cs Projeto: zhangvs/-
        private void Form1_Load(object sender, EventArgs e)
        {
            //string keyword = "05398827666";
            //if (keyword.Substring(0,1)=="0")
            //{
            //    int k = keyword.IndexOf('-');
            //    if (k > 0)
            //    {
            //        keyword = keyword.Substring(k + 1, 7);
            //    }
            //    else
            //    {
            //        keyword = keyword.Substring(4, 7);
            //    }
            //}


            //bool dd = Regex.IsMatch(" 小区", @"[\u4e00-\u9fa5]+(广场|大街|大厦|小区|(软件|工业|软件)园|交汇|有限公司|有限责任公司|地址:|地址:)");

            string rem = "使用说明 手机号码: 五行数理说明:号码 13305390000 (山东省临沂市 山东电信CDMA卡) 的数理为: 80 ,凶星入度,清本缩小,一生皆苦之孤独空虚数 (大凶) ,其暗示...";
            bool   bl  = CollectRule.ruleJudge(rem, "13305390000");
        }
Exemplo n.º 3
0
        //本文件记录
        void mainWhile0(object tel)
        {
            DateTime hdStart = DateTime.Now;
            int      hdnum   = 0;

            string keyword = tel.ToString();
            int    bl      = CollectRule.MainWhile(search, keyword);

            if (bl == 1)
            {
                num++;
                hdnum++;
            }
            else if (bl == -1)
            {
                MessageBox.Show(DateTime.Now.ToString() + "执行到:" + keyword + "时,当前IP开始被" + search + "屏蔽,未启动VPN!\r\n");
            }

            DateTime hdEnd = DateTime.Now;

            StringHelp.Write(StringHelp.pathError, hdEnd.ToString() + "号码:" + keyword + "执行结束。" + "用时:" + DateHelp.DateDiff(hdEnd, hdStart) + "获取个数:" + hdnum + "\r\n");
        }