企业微信扫码抽奖


生成二维码,通过手机端扫码加入抽奖池,然后加入数据进行抽奖(包含音频)
资源截图
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Text;

namespace Lottery
{
    public class Argi
    {
        SqlConnection connection = new SqlConnection(ConfigurationManager.AppSettings[“SQLOUT“]);
        public void getInitLayout()
        {
            connection.Open();
            StringBuilder str = new StringBuilder();
            str.Append(“select Count(*) from Activity “);
            SqlCommand sc = new SqlCommand(str.ToString() connection);
            SqlDataAdapter sad = new SqlDataAdapter();
            sad.SelectCommand = sc;
            DataTable dt = new DataTable();
            sad.Fill(dt);
            connection.Close();
            int value = Convert.ToInt32(dt.Rows[0][0].ToString());
            //return value;
            //(value+4)*x
            if (value % 2 != 0)
            {
                value += 1;
            }
            value = value / 2;
            for (int i = 0; i <= value; i++) {
                if (value - i < i) {
                    Contant.Biantop = i;
                    Contant.Bianleft = value - i;
                    break;
                }

            }





        }
        public double GetInitWidth(int x) {
            int j = 0;
            for (int i = 9; ; i++) {
                if (i * x % 4 == 0)
                {
                    j = i;
                    Contant.BianChang = i * x / 4;
                    break;
                }
            }
            return j;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        321  2017-12-20 08:51  YuanDan2LotteryApp.config

     文件       1630  2017-12-13 11:38  YuanDan2LotteryArgi.cs

     文件      61440  2017-12-22 08:54  YuanDan2LotteryinDebugAxInterop.WMPLib.dll

     文件     339968  2017-12-22 08:54  YuanDan2LotteryinDebugInterop.WMPLib.dll

     文件    7538176  2017-12-22 10:52  YuanDan2LotteryinDebugLottery.exe

     文件        321  2017-12-20 08:51  YuanDan2LotteryinDebugLottery.exe.config

     文件     183808  2017-12-22 10:52  YuanDan2LotteryinDebugLottery.pdb

     文件      21464  2017-12-22 11:10  YuanDan2LotteryinDebugLottery.vshost.exe

     文件        321  2017-12-20 08:51  YuanDan2LotteryinDebugLottery.vshost.exe.config

     文件        490  2012-06-06 02:06  YuanDan2LotteryinDebugLottery.vshost.exe.manifest

     文件     114856  2015-09-25 16:39  YuanDan2LotteryinDebugmusicend.mp3

     文件     499538  2015-09-25 16:21  YuanDan2LotteryinDebugmusicErweima.mp3

     文件      37310  1999-10-03 05:42  YuanDan2LotteryinDebugmusicfinish.wav

     文件    8042496  2017-12-21 09:57  YuanDan2LotteryinDebugmusicfkqw.mp3

     文件    2220649  2017-12-21 09:42  YuanDan2LotteryinDebugmusicHappy.mp3

     文件    1778105  2015-06-08 22:01  YuanDan2LotteryinDebugmusicstart.mp3

     文件    1455042  2015-10-03 15:48  YuanDan2LotteryinDebugmusicstart111.mp3

     文件       5811  2017-12-16 16:46  YuanDan2LotteryinDebugPictures开始抽奖.png

     文件       6396  2017-12-16 16:46  YuanDan2LotteryinDebugPictures开始抽奖hov.png

     文件       7201  2017-12-18 15:15  YuanDan2LotteryinDebugPictures点击抽奖.png

     文件       7746  2017-12-18 15:15  YuanDan2LotteryinDebugPictures点击抽奖H.png

     文件    4842585  2009-07-14 13:32  YuanDan2LotteryinDebugSleep Away.mp3

     文件      15231  2017-12-19 08:45  YuanDan2LotteryinDebugsrc
eturn.png

     文件       8903  2017-12-18 16:21  YuanDan2LotteryinDebugsrc停止抽奖.png

     文件       9357  2017-12-18 16:21  YuanDan2LotteryinDebugsrc开始抽奖.png

     文件    6209536  2014-08-12 09:50  YuanDan2LotteryinDebugThoughtWorks.QRCode.dll

     文件     325120  2014-08-12 09:50  YuanDan2LotteryinDebugThoughtWorks.QRCode.pdb

     文件       2660  2017-12-15 14:47  YuanDan2LotteryChange.cs

     文件       5484  2017-12-11 15:34  YuanDan2LotteryChange.Designer.cs

     文件       5817  2017-12-11 15:34  YuanDan2LotteryChange.resx

............此处省略126个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)