示例#1
0
 public Form_FirstGuild()
 {
     InitializeComponent();
     this.CenterToScreen();
     this.textBox1.Text = ControCenter.GetFeatureCode();
     this.Show();
 }
示例#2
0
        public Form_main()
        {
            InitializeComponent();
            this.CenterToParent();


            //this.FormBorderStyle = FormBorderStyle.None;
            this.NowLogName.Text = NowLogName.Text + ControCenter.NowLogType + ControCenter.NowLogName;
            WindowState          = FormWindowState.Maximized;
            //自做控件
            Bout b = new Bout();

            Bitmap   bt  = new Bitmap(this.Width, this.Height);
            Graphics grp = Graphics.FromImage(bt);
            //  _Graphcis.DrawImage(Image.FromStream(new MemoryStream(_ImageByte)), 0, 0, p_Width, p_Height);
            //  _Graphcis.Dispose();
            // return _Bitmap;
            Image img = this.BackgroundImage;

            grp.DrawImage(img, 0, 0, this.Width, this.Height);
            this.BackgroundImage = img;


            this.Show();
            string str = ControCenter.GernerCDK("8B06025F1F8DDF02C08EF3B7BF21858396507976524B1F74", "30", 0);
        }
示例#3
0
 public static void ReissueCard(VipInfo vip, string NewCard)
 {
     if (ControCenter.ReissueCard(vip, NewCard))
     {
         MessageBox.Show("成功");
     }
 }
示例#4
0
 public static void AddNewViper(VipInfo vip, string CardNum)
 {
     if (ControCenter.AddNewViper(vip, CardNum))
     {
         MessageBox.Show("成功");
     }
 }
 public Form_loading()
 {
     InitializeComponent();
     this.FormBorderStyle = FormBorderStyle.None;
     this.labload.Width   = 0;
     CenterToScreen();
     ControCenter.GetCpuDeskId();
 }
 public Form_purchase()
 {
     InitializeComponent();
     this.CenterToScreen();
     this.textBox1.Text = ControCenter.GetXufeiCode();
     this.label4.Text   = ControCenter.remainDays.ToString();
     this.Show();
 }
示例#7
0
 public static VipInfo SearchVipInfo(string CardNum, VipInfo vip)
 {
     if (CardNum != "未读取到卡号")
     {
         vip = ControCenter.SearchVipInfo(CardNum, vip);
     }
     return(vip);
 }
示例#8
0
 public static void ReportLoss(string CardNum, VipInfo vip)
 {
     if (ControCenter.ReportLoss(CardNum, vip))
     {
         MessageBox.Show("成功");
     }
     else
     {
         MessageBox.Show("失败");
     }
 }
示例#9
0
 public static void SentNewCard(string CardNum)
 {
     if (ControCenter.SentNewCard(CardNum))
     {
         MessageBox.Show("发卡成功");
     }
     else
     {
         MessageBox.Show("发卡失败");
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (ControCenter.CertifyXufeiCode(this.textBox1.Text, this.textBox2.Text))
     {
         this.Close();
     }
     else
     {
         MessageBox.Show("激活码错误!");
     }
 }
示例#11
0
 public static string GetCardBalanceNum(string CardNum)
 {
     if (CardNum != null)
     {
         return(ControCenter.GetCardBalanceNum(CardNum));
     }
     else
     {
         return("");
     }
 }
示例#12
0
 public static void Consume(string CardNum, string balance, Form form)
 {
     if (ControCenter.Consume(CardNum, uint.Parse(balance.ToString())) == true)
     {
         MessageBox.Show("成功");
         form.Close();
     }
     else
     {
         MessageBox.Show("失败");
     }
 }
示例#13
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (ControCenter.CertifyCDK(this.textBox2.Text))
     {
         this.Close();
         Form_log Log = new Form_log();
     }
     else
     {
         MessageBox.Show("激活码错误!");
     }
 }
示例#14
0
 public static void Log(string LogName, string LogPassword, Form_log log)
 {
     if (ControCenter.LogIn(LogName, LogPassword))
     {
         log.Visible = false;
         ControCenter.LoadObjData();
         Form_main f = new Form_main();
     }
     else
     {
         MessageBox.Show("密码错误!");
     }
 }
示例#15
0
 private void button4_Click(object sender, EventArgs e)
 {
     MessageBox.Show("1:请按格式修改好表格再尝试导入。 /n2.当软件价格与此时导入的表冲突时,以导入的表格为准 /n3.当软件库中存在多个相同参数相同物品时,仅修改序号大的物品价格");
     try
     {
         string path = ControCenter.SelectPath();
         DataService.ImportExcelToAcess(path);
     }
     catch
     {
         MessageBox.Show("导入失败,检查文件。");
     }
 }
示例#16
0
 private void BtnNewCard_Click(object sender, EventArgs e)
 {
     try
     {
         path = ControCenter.SelectPath();
         ControCenter.GetDataOfExcel(path);
         DataService.FillPriceOfDs();
         dataGridView1.DataSource = DataService.GetListFormDs();
     }
     catch
     {
         MessageBox.Show("打开文件失败。请确保文件格式正确");
     }
 }
示例#17
0
        public static string GetTopInFreeNum(string balance)
        {
            uint FreeN;

            if (balance != "")
            {
                FreeN = uint.Parse(balance);
                return(ControCenter.GetTopInFreeNum(FreeN).ToString());
            }
            else
            {
                return("");
            }
        }
示例#18
0
 public static void TopIn(string CardNum, string balance, Form form)
 {
     if (balance != "")
     {
         if (ControCenter.TopIn(CardNum, uint.Parse(balance.ToString()) + uint.Parse(GetTopInFreeNum(balance))) == true)
         {
             MessageBox.Show("成功");
             form.Close();
         }
         else
         {
             MessageBox.Show("失败");
         }
     }
     else
     {
         MessageBox.Show("失败");
     }
 }
示例#19
0
        public static void StartLog(Form init)//开始准备登陆,验证
        {
            ProjectForm = init;
            if (!DataService.VerifyConn())
            {
                MessageBox.Show("数据连接失败!");
                init.Close();
            }
            else
            {
                init.Visible = false;


                ControCenter.GetFeatureCode();

                //ControCenter.FeatureCode = "f**k";
                ControCenter.FirstUse = DataService.IsFirstUse();
                if (ControCenter.FirstUse)
                {
                    Form_FirstGuild guild = new Form_FirstGuild();
                }
                else
                {
                    ControCenter.VerifyUsingPermission();
                    if (ControCenter.remainDays >= 0)
                    {
                        Form_log Log = new Form_log();
                    }
                    else
                    {
                        MessageBox.Show("剩余时间不足,请充值以继续使用软件");
                        Form_purchase f = new Form_purchase();
                    }
                }
            }
        }
示例#20
0
 public static List <VipInfo> SearchVipInfo(string name, string phone)
 {
     return(ControCenter.SearchVipInfo(name, phone));
 }
示例#21
0
 public static List <VipInfo> SearchAllVipInfo()
 {
     return(ControCenter.SearchAllVipInfo());
 }