Exemplo n.º 1
0
 private void cdup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)//光盘超过上限
 {
     if (InitConnect.GetWareUp(false).Trim() == "0")
     {
         MessageBox.Show("没有光盘超过系统上限!", "显示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
     }
     else
     {
         PrintUpDown cdup = new PrintUpDown(2, "光盘");
         cdup.Show();
     }
 }
Exemplo n.º 2
0
        private void FrmWarning_Load(object sender, EventArgs e)//初始化
        {
            int StartX = Screen.PrimaryScreen.WorkingArea.Width - this.Width;
            int StartY = Screen.PrimaryScreen.Bounds.Height;

            this.Location = new Point(StartX, StartY);
            //////////////////////////////////////////////////////////////////////////
            this.bookupcount.Text   = InitConnect.GetWareUp(true) + " 本";
            this.cdupcount.Text     = InitConnect.GetWareUp(false) + " 张";
            this.bookdowncount.Text = InitConnect.GetWareDown(true) + " 本";
            this.cddowncount.Text   = InitConnect.GetWareDown(false) + " 张";
        }
Exemplo n.º 3
0
 private void bookup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)//图书超过上限
 {
     if (InitConnect.GetWareUp(true).Trim() == "0")
     {
         MessageBox.Show("没有图书超过系统上限!", "显示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
     }
     else
     {
         PrintUpDown bookup = new PrintUpDown(1, "图书");
         bookup.Show();
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 检查是否有越界商品,如果有弹出警告窗口
 /// </summary>
 private void CheckWareUpDown()
 {
     if (InitConnect.GetWareDown(true) != "0" || InitConnect.GetWareDown(false) != "0" || InitConnect.GetWareUp(true) != "0" || InitConnect.GetWareUp(false) != "0")
     {
         FrmWarning warning = new FrmWarning();
         warning.Show();
     }
 }