資源簡(jiǎn)介
生成二維碼,通過(guò)手機(jī)端掃碼加入抽獎(jiǎng)池,然后加入數(shù)據(jù)進(jìn)行抽獎(jiǎng)(包含音頻)
代碼片段和文件信息
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?????????????????????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;
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????321??2017-12-20?08:51??YuanDan2\Lottery\App.config
?????文件???????1630??2017-12-13?11:38??YuanDan2\Lottery\Argi.cs
?????文件??????61440??2017-12-22?08:54??YuanDan2\Lottery\bin\Debug\AxInterop.WMPLib.dll
?????文件?????339968??2017-12-22?08:54??YuanDan2\Lottery\bin\Debug\Interop.WMPLib.dll
?????文件????7538176??2017-12-22?10:52??YuanDan2\Lottery\bin\Debug\Lottery.exe
?????文件????????321??2017-12-20?08:51??YuanDan2\Lottery\bin\Debug\Lottery.exe.config
?????文件?????183808??2017-12-22?10:52??YuanDan2\Lottery\bin\Debug\Lottery.pdb
?????文件??????21464??2017-12-22?11:10??YuanDan2\Lottery\bin\Debug\Lottery.vshost.exe
?????文件????????321??2017-12-20?08:51??YuanDan2\Lottery\bin\Debug\Lottery.vshost.exe.config
?????文件????????490??2012-06-06?02:06??YuanDan2\Lottery\bin\Debug\Lottery.vshost.exe.manifest
?????文件?????114856??2015-09-25?16:39??YuanDan2\Lottery\bin\Debug\music\end.mp3
?????文件?????499538??2015-09-25?16:21??YuanDan2\Lottery\bin\Debug\music\Erweima.mp3
?????文件??????37310??1999-10-03?05:42??YuanDan2\Lottery\bin\Debug\music\finish.wav
?????文件????8042496??2017-12-21?09:57??YuanDan2\Lottery\bin\Debug\music\fkqw.mp3
?????文件????2220649??2017-12-21?09:42??YuanDan2\Lottery\bin\Debug\music\Happy.mp3
?????文件????1778105??2015-06-08?22:01??YuanDan2\Lottery\bin\Debug\music\start.mp3
?????文件????1455042??2015-10-03?15:48??YuanDan2\Lottery\bin\Debug\music\start111.mp3
?????文件???????5811??2017-12-16?16:46??YuanDan2\Lottery\bin\Debug\Pictures\開(kāi)始抽獎(jiǎng).png
?????文件???????6396??2017-12-16?16:46??YuanDan2\Lottery\bin\Debug\Pictures\開(kāi)始抽獎(jiǎng)hov.png
?????文件???????7201??2017-12-18?15:15??YuanDan2\Lottery\bin\Debug\Pictures\點(diǎn)擊抽獎(jiǎng).png
?????文件???????7746??2017-12-18?15:15??YuanDan2\Lottery\bin\Debug\Pictures\點(diǎn)擊抽獎(jiǎng)H.png
?????文件????4842585??2009-07-14?13:32??YuanDan2\Lottery\bin\Debug\Sleep?Away.mp3
?????文件??????15231??2017-12-19?08:45??YuanDan2\Lottery\bin\Debug\src\return.png
?????文件???????8903??2017-12-18?16:21??YuanDan2\Lottery\bin\Debug\src\停止抽獎(jiǎng).png
?????文件???????9357??2017-12-18?16:21??YuanDan2\Lottery\bin\Debug\src\開(kāi)始抽獎(jiǎng).png
?????文件????6209536??2014-08-12?09:50??YuanDan2\Lottery\bin\Debug\ThoughtWorks.QRCode.dll
?????文件?????325120??2014-08-12?09:50??YuanDan2\Lottery\bin\Debug\ThoughtWorks.QRCode.pdb
?????文件???????2660??2017-12-15?14:47??YuanDan2\Lottery\Change.cs
?????文件???????5484??2017-12-11?15:34??YuanDan2\Lottery\Change.Designer.cs
?????文件???????5817??2017-12-11?15:34??YuanDan2\Lottery\Change.resx
............此處省略126個(gè)文件信息
評(píng)論
共有 條評(píng)論