Ejemplo n.º 1
0
        private void GridQuality_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            if (GridQuality.Rows[e.RowIndex].ReadOnly == true)
            {
                return;
            }
            //string fileName = "";
            string ProcessCode = GridQuality.Rows[e.RowIndex].Cells["colProcessCode"].Value.ToString();
            string ItemName    = GridQuality.Rows[e.RowIndex].Cells["colItemName"].Value.ToString();

            if (e.ColumnIndex == 1)
            {
                FrmDetectPart test = new FrmDetectPart(SN, ProcessCode, ItemName);
                test.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void GridQuality_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            if (e.ColumnIndex == -1)
            {
                return;
            }
            //if (GridQuality.Rows[e.RowIndex].Cells[e.ColumnIndex].ReadOnly == true) return;
            //string fileName = "";
            string ProcessCode  = GridQuality.Rows[e.RowIndex].Cells["colProcessCode"].Value.ToString();  //工序
            string materialName = GridQuality.Rows[e.RowIndex].Cells["colmaterialname"].Value.ToString(); //检验物料编码
            string ItemName     = GridQuality.Rows[e.RowIndex].Cells["coljytxdm"].Value.ToString();       //检验特性代码

            //string ItemName = "";
            if (e.ColumnIndex == 1)
            {
                FrmDetectPart test = new FrmDetectPart(SN, ProcessCode, materialName, ItemName);
                test.ShowDialog();
            }
        }