Beispiel #1
0
        private void _gwTictInfo_DoubleClick(object sender, EventArgs e)
        {
            int _rowid = _gwTictInfo.FocusedRowHandle;

            if (_rowid > -1)
            {
                BasicClass.cResult rWTI = new BasicClass.cResult();
                rWTI.TextChanged += new BasicClass.TextChangedHandler(rWTI_TextChanged);
                Form fr = new frSelectEmp(rWTI, Convert.ToInt32(_gwTictInfo.GetFocusedRowCellValue(_coInfoID)));
                fr.ShowDialog();
            }
        }
Beispiel #2
0
        private void _gvWorkTickInfo_DoubleClick(object sender, EventArgs e)
        {
            if (_gvWorkTickInfo.FocusedRowHandle > -1 && _gvWorkTickInfo.FocusedColumn.ColumnHandle > 6)
            {
                if (_gvWorkTickInfo.GetFocusedValue().ToString().Trim().Length == 0)
                {
                    if (DialogResult.Yes == XtraMessageBox.Show("是否选择生产员工", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1))
                    {
                        BasicClass.cResult rEM = new BasicClass.cResult();
                        rEM.TextChanged += new BasicClass.TextChangedHandler(rEM_TextChanged);
                        int    _BoxNum      = Convert.ToInt32(_gvWorkTickInfo.GetFocusedRowCellValue("箱号"));
                        int    _SizeID      = Convert.ToInt32(_gvWorkTickInfo.GetFocusedRowCellValue(gridColumn2));
                        string _WorkingName = _gvWorkTickInfo.FocusedColumn.FieldName;

                        //Form fr = new frSelectEmp(rEM);
                        Form fr = new frSelectEmp(new BasicClass.cResult(), -1, _MainID, _BoxNum, _WorkingName, _SizeID);
                        fr.ShowDialog();
                        _gcWorkTickInfo.DataSource = BasicClass.GetDataSet.GetDS(BasicClass.Bllstr.bllWorkTicketInfo, "GetWorkListByPW", new object[] { _MainID, _PWID, int.Parse(dtTM.Rows[0]["MaterielID"].ToString()), 0 }).Tables[0];
                    }
                }
            }
        }