Exemplo n.º 1
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucRP_Mtl203_Load(object sender, EventArgs e)
        {
            _dtpValue      = new ToolStripDateTimePicker();
            _dtpValue.Size = new Size(120, 27);

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

            list.Add(bnTop.Items[0]);
            list.Add(bnTop.Items[1]);
            list.Add(bnTop.Items[2]);
            list.Add(bnTop.Items[3]);
            list.Add(_dtpValue);
            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);
            }

            FillComboBox();
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucRC_Order_Load(object sender, EventArgs e)
        {
            FillComboBox();

            //-----
            _dateFrom       = new ToolStripDateTimePicker();
            _dateFrom.Size  = new Size(120, 21);
            _dateFrom.Value = DateTime.Now.AddDays(-1);

            _dateTo       = new ToolStripDateTimePicker();
            _dateTo.Size  = new Size(120, 21);
            _dateTo.Value = DateTime.Now;

            bnTop.Items.Add(_dateFrom);
            bnTop.Items.Add(_dateTo);

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

            list.Add(bnTop.Items[0]);
            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]);
            list.Add(bnTop.Items[7]);
            list.Add(bnTop.Items[14]);
            list.Add(bnTop.Items[8]);
            list.Add(bnTop.Items[15]);
            list.Add(bnTop.Items[9]);
            list.Add(bnTop.Items[10]);
            list.Add(bnTop.Items[11]);
            list.Add(bnTop.Items[12]);
            list.Add(bnTop.Items[13]);

            bnTop.Items.Clear();
            foreach (ToolStripItem item in list)
            {
                bnTop.Items.Add(item);
            }
        }
Exemplo n.º 3
0
        private void ucRC_System_Load(object sender, EventArgs e)
        {
            _date      = new ToolStripDateTimePicker();
            _date.Size = new Size(120, 21);

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

            list.Add(bnTop.Items[0]);
            list.Add(_date);
            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]);

            bnTop.Items.Clear();
            foreach (ToolStripItem item in list)
            {
                bnTop.Items.Add(item);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucCS_BillEdit_Load(object sender, EventArgs e)
        {
            //-----bnTop
            _dateFrom         = new ToolStripDateTimePicker();
            _dateFrom.Size    = new Size(120, 21);
            _dateFrom.Value   = DateTime.Now.AddDays(-3);
            _dateFrom.Visible = false;
            _dateTo           = new ToolStripDateTimePicker();
            _dateTo.Size      = new Size(120, 21);
            _dateTo.Value     = DateTime.Now;
            _dateTo.Visible   = false;
            //重新排列Items
            List <ToolStripItem> list = new List <ToolStripItem>();

            list.Add(bnTop.Items[0]);
            list.Add(bnTop.Items[1]);
            list.Add(bnTop.Items[2]);
            list.Add(bnTop.Items[3]);
            list.Add(bnTop.Items[4]);
            list.Add(_dateFrom);
            list.Add(bnTop.Items[5]);
            list.Add(_dateTo);
            list.Add(bnTop.Items[6]);
            list.Add(bnTop.Items[7]);
            list.Add(bnTop.Items[8]);
            list.Add(bnTop.Items[9]);
            list.Add(bnTop.Items[10]);
            list.Add(bnTop.Items[11]);
            list.Add(bnTop.Items[12]);
            //list.Add(bnTop.Items[13]);

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

            //-----bnR1
            _chbSingle      = new ToolStripCheckBox();
            _chbSingle.Text = "整单发货";
            //重新排列Items
            list = new List <ToolStripItem>();
            list.Add(_chbSingle);
            list.Add(bnR1.Items[0]);
            list.Add(bnR1.Items[1]);
            bnR1.Items.Clear();
            foreach (ToolStripItem item in list)
            {
                bnR1.Items.Add(item);
            }
            //-----bnR3
            _chbSo             = new ToolStripCheckBox();
            _chbSo.Text        = "销售出库单";
            _chbSo.ToolTipText = "同时修改关联的销售出库单";
            ((CheckBox)_chbSo.Control).CheckedChanged += new EventHandler(OutStockCheckedChanged);
            _chbAr             = new ToolStripCheckBox();
            _chbAr.Text        = "应收单";
            _chbAr.ToolTipText = "同时修改关联的应收单";
            ((CheckBox)_chbAr.Control).CheckedChanged += new EventHandler(ArCheckedChanged);
            _chbSn             = new ToolStripCheckBox();
            _chbSn.Text        = "退货通知单";
            _chbSn.ToolTipText = "同时修改关联的退货通知单";
            _chbSr             = new ToolStripCheckBox();
            _chbSr.Text        = "销售退货单";
            _chbSr.ToolTipText = "同时修改关联的销售退货单";
            //重新排列Items
            list = new List <ToolStripItem>();
            list.Add(bnR3.Items[0]);
            list.Add(bnR3.Items[1]);
            list.Add(bnR3.Items[2]);
            list.Add(_chbSo);
            list.Add(_chbAr);
            list.Add(_chbSn);
            list.Add(_chbSr);
            list.Add(bnR3.Items[3]);
            list.Add(bnR3.Items[4]);
            bnR3.Items.Clear();
            foreach (ToolStripItem item in list)
            {
                bnR3.Items.Add(item);
            }

            tpl1.Visible = false;
            tpl1.Enabled = false;

            FillCombobox();
        }