Ejemplo n.º 1
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmCPDB_Push_Load(object sender, EventArgs e)
        {
            //_dtDataSource = new DataTable();
            _Load = true;
            //_Btn = new DataGridViewButtonColumn();
            _Chb = new DataGridViewCheckBoxColumn();

            _Date      = new ToolStripDateTimePicker();
            _Date.Size = new Size(120, 21);


            List <ToolStripItem> list = new List <ToolStripItem>();

            list.Add(bnBottom.Items[0]);
            list.Add(_Date);
            list.Add(bnBottom.Items[1]);
            list.Add(bnBottom.Items[2]);
            list.Add(bnBottom.Items[3]);
            list.Add(bnBottom.Items[4]);
            list.Add(bnBottom.Items[5]);

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

            Text = "根据发货通知单推WMS成品调拨[部门:" + _List[2] + "][调入仓库:" + _List[5] + "]";
        }
Ejemplo n.º 2
0
 private void exportForm_Load(object sender, EventArgs e)
 {
     startTime       = new ToolStripDateTimePicker();
     startTime.Width = 130;
     endTime         = new ToolStripDateTimePicker();
     endTime.Width   = 130;
     toolStrip1.Items.Insert(6, startTime);
     toolStrip1.Items.Insert(8, endTime);
     startTime.Control.Format          = DateTimePickerFormat.Custom;
     startTime.Control.CustomFormat    = "yyyy-MM-dd";
     endTime.Control.Format            = DateTimePickerFormat.Custom;
     endTime.Control.CustomFormat      = "yyyy-MM-dd";
     dataGridView1.AutoGenerateColumns = false;
 }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmBomCompare_Load(object sender, EventArgs e)
        {
            _tsNeedDate         = new ToolStripDateTimePicker();
            _tsNeedDate.Size    = new Size(120, 21);
            _tsNeedDate.Value   = _tNeedDate;
            _tsNeedDate.Enabled = false;

            _chbSyn             = new ToolStripCheckBox();
            _chbSyn.Text        = "同步修改";
            _chbSyn.ToolTipText = "是否同时修改需求日期[" + _tNeedDate.ToString("yyyy-MM-dd") + "]的其他生产用料清单下的相同子项物料";
            _chbSyn.Checked     = false;

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

            list.Add(bnBottom.Items[0]);
            list.Add(bnBottom.Items[1]);
            list.Add(_tsNeedDate);
            list.Add(_chbSyn);
            list.Add(bnBottom.Items[2]);
            list.Add(bnBottom.Items[3]);
            list.Add(bnBottom.Items[4]);
            list.Add(bnBottom.Items[5]);

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

            dgv1.DataSource = _dtOld;
            dgv2.DataSource = _dtNew;

            dgv1.Rows[_Row].DefaultCellStyle.BackColor = Color.Plum;
            //dgv1.Rows[_Row].Selected = true;
            dgv2.Rows[_Row].DefaultCellStyle.BackColor = Color.Plum;
            //dgv2.Rows[_Row].Selected = true;

            if (_Type)
            {
                Text = "物料清单修改对照-产品编码:" + _Number + "[修改子项物料用量]";
            }
            else
            {
                Text = "物料清单修改对照-产品编码:" + _Number + "[替换子项物料]";
            }
        }
Ejemplo n.º 4
0
        public MainToolItems()
        {
            InitializeComponent();
            fromDateTime          = new ToolStripDateTimePicker();
            fromDateTime.AutoSize = true;
            fromDateTime.Name     = "fromDateTime";
            fromDateTime.Size     = new System.Drawing.Size(80, 23);
            DateTime now = DateTime.Now;

            fromDateTime.Value  = now;
            toDateTime          = new ToolStripDateTimePicker();
            toDateTime.AutoSize = true;
            toDateTime.Name     = "toDateTime";
            toDateTime.Size     = new System.Drawing.Size(80, 23);
            toDateTime.Value    = now;
            this.Items.Insert(FromDateTimeIndex, fromDateTime);
            this.Items.Insert(ToDateTimeIndex, toDateTime);
            minDate    = now;
            maxDate    = now;
            actMinDate = now;
            actMaxDate = now;
            fromDateTime.DateTimeHasChanged += fromDateTime_DateTimeHasChanged;
            toDateTime.DateTimeHasChanged   += toDateTime_DateTimeHasChanged;
        }