Esempio n. 1
0
        private C_Shelf CreateShelf(SortingLineBox sortingLineBox)
        {
            C_Shelf c_Shelf = new C_Shelf(sortingLineBox);

            //c_Shelf.SetTooltip();
            c_Shelf.Name = sortingLineBox.LineBoxCode;
            return(c_Shelf);
        }
Esempio n. 2
0
        private void customButton3_Click(object sender, EventArgs e)
        {
            if (dgvnewlinebox.SelectedRows.Count > 0 && dgvoldlinebox.SelectedRows.Count > 0)
            {
                if (MessageBox.Show("是否转换烟仓?请确认烟仓拨烟数相同。", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    if (dgvoldlinebox.SelectedRows[0].Cells["oldPutNum"].Value.ToString() ==
                        dgvnewlinebox.SelectedRows[0].Cells["newPutNum"].Value.ToString())
                    {
                        SortingLineBox oldsortingLineBox = new SortingLineBox();
                        SortingLineBox newsortingLineBox = new SortingLineBox();


                        oldsortingLineBox.LineBoxCode =
                            dgvoldlinebox.SelectedRows[0].Cells["oldlineBoxCode"].Value.ToString();
                        oldsortingLineBox.LineBoxName =
                            dgvoldlinebox.SelectedRows[0].Cells["oldlineBoxName"].Value.ToString();
                        oldsortingLineBox.PlcAddress =
                            dgvoldlinebox.SelectedRows[0].Cells["oldplcAddress"].Value.ToString();



                        newsortingLineBox.LineBoxCode =
                            dgvnewlinebox.SelectedRows[0].Cells["newLineBoxCode"].Value.ToString();
                        newsortingLineBox.LineBoxName =
                            dgvnewlinebox.SelectedRows[0].Cells["newLineBoxName"].Value.ToString();
                        newsortingLineBox.PlcAddress =
                            dgvnewlinebox.SelectedRows[0].Cells["newPlcAddress"].Value.ToString();



                        SortingLineBoxList.TransactCigBox(oldsortingLineBox, newsortingLineBox);

                        dgvoldlinebox.DataSource = SortingLineBoxList.GetBindLineBoxList();
                        dgvnewlinebox.DataSource = SortingLineBoxList.GetEmptyLineBoxList();
                        MessageBox.Show("烟仓转移完成,如转移烟仓为立式烟仓请重新生成LED数据并发送!");
                    }
                    else
                    {
                        MessageBox.Show("需要转移的烟道拨烟数不相符!");
                    }
                }
            }
            else
            {
                MessageBox.Show("未选择转移的烟道!");
            }
        }
Esempio n. 3
0
        public C_Shelf(SortingLineBox sortingLineBox)
        {
            InitializeComponent();
            this.Width                = sortingLineBox.PutNum * 30;
            _sortingLineBox           = sortingLineBox;
            labshelfcode.Text         = _sortingLineBox.LineBoxCode;
            progressBarX1.Maximum     = _sortingLineBox.TOTQTY;
            progressBarX1.Value       = 0;
            progressBarX1.Text        = _sortingLineBox.CigName.Replace("(", "").Replace(")", "");;
            progressBarX1.TextVisible = false;
            if (sortingLineBox.IsDynamicbox == 1)
            {
                progressBarX1.ColorTable = eProgressBarItemColor.Paused;
            }


            labcqty.Text = "";
            //在父控件中透明
            labcqty.Parent = progressBarX1;

            labcqty.BackColor = Color.Transparent;
        }