Ejemplo n.º 1
0
        private void ucCS_OutStockMaterial_Load(object sender, EventArgs e)
        {
            _FID = 0;
            //-----
            _rbtMatch            = new ToolStripRadioButton();
            _rbtNotMatch         = new ToolStripRadioButton();
            _rbtMatch.Checked    = true;
            _rbtMatch.Text       = "携带";
            _rbtMatch.Tag        = 5;
            _rbtNotMatch.Checked = false;
            _rbtNotMatch.Text    = "排除";
            _rbtNotMatch.Tag     = 6;

            //重新排列Items
            List <ToolStripItem> list = new List <ToolStripItem>();

            list.Add(bnTop.Items[0]);
            list.Add(bnTop.Items[1]);
            list.Add(bnTop.Items[2]);
            list.Add(_rbtMatch);
            list.Add(_rbtNotMatch);
            list.Add(bnTop.Items[3]);
            list.Add(bnTop.Items[4]);
            list.Add(bnTop.Items[5]);
            list.Add(bnTop.Items[6]);
            list.Add(bnTop.Items[7]);

            bnTop.Items.Clear();
            foreach (ToolStripItem item in list)
            {
                bnTop.Items.Add(item);
            }

            SetDataSource();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucRP_Bom_Load(object sender, EventArgs e)
        {
            _Type = 1;

            _rbtBom         = new ToolStripRadioButton();
            _rbtBom.Text    = "BOM重复查询";
            _rbtBom.Checked = true;
            ((RadioButton)_rbtBom.Control).CheckedChanged += new EventHandler(rbt_CheckedChanged);

            _rbtBomChild      = new ToolStripRadioButton();
            _rbtBomChild.Text = "BOM项次重复查询";
            ((RadioButton)_rbtBomChild.Control).CheckedChanged += new EventHandler(rbt_CheckedChanged);

            _rbtBomChild_Times      = new ToolStripRadioButton();
            _rbtBomChild_Times.Text = "BOM项次查询";

            //重新排列Items
            List <ToolStripItem> list = new List <ToolStripItem>();

            list.Add(bnTop.Items[0]);
            list.Add(_rbtBom);
            list.Add(_rbtBomChild);
            list.Add(_rbtBomChild_Times);
            list.Add(bnTop.Items[1]);
            list.Add(bnTop.Items[2]);
            list.Add(bnTop.Items[3]);
            list.Add(bnTop.Items[4]);
            list.Add(bnTop.Items[5]);
            list.Add(bnTop.Items[6]);

            bnTop.Items.Clear();
            foreach (ToolStripItem item in list)
            {
                bnTop.Items.Add(item);
            }

            bnTop_lblTimes.Visible = false;
            bnTop_cbxLogic.Visible = false;
            bnTop_cbxValue.Visible = false;

            FillComboBox();
        }