/// <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(); } }
private void cddown_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)//光盘低于下限 { if (InitConnect.GetWareDown(false).Trim() == "0") { MessageBox.Show("没有光盘低于系统下限!", "显示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); } else { PrintUpDown cddown = new PrintUpDown(4, "光盘"); cddown.Show(); } }
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) + " 张"; }
private void bookdown_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)//图书低于下限 { if (InitConnect.GetWareDown(true).Trim() == "0") { MessageBox.Show("没有图书低于系统下限!", "显示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); } else { PrintUpDown bookdown = new PrintUpDown(3, "图书"); bookdown.Show(); } }