Beispiel #1
0
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            Program.type = Convert.ToInt32(textBox_ljhao.Text);
            StepTestFrom stf = new StepTestFrom();

            stf.Show();
        }
Beispiel #2
0
        private void button_Click2(object sender, EventArgs e)
        {
            Program.txtbh = (sender as Button).Tag.ToString();
            StepTestFrom stf = new StepTestFrom();

            stf.ShowDialog();
        }
Beispiel #3
0
        private void 重测ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Program.type = Convert.ToInt32(textBox_ljhao.Text);
            StepTestFrom stf = new StepTestFrom();

            stf.CompId = dgv.CurrentRow.Cells["零件号"].Value.ToString();
            stf.Pn     = dgv.CurrentRow.Cells["零件号"].Value.ToString();
            //MessageBox.Show(dgv.SelectedCells.Count.ToString());
            stf.Dselect_Cells = dgv.SelectedCells;
            stf.Show();
        }
Beispiel #4
0
        private void button_Click(object sender, EventArgs e)
        {
            Program.type = Convert.ToInt32((sender as Button).Tag);
            StepTestFrom stf = new StepTestFrom();

            stf.ShowDialog();

            //string num_text = (sender as Button).Text;
            //if(num_text == textBoxX1.Text)
            //{
            //    Program.txtbh = num_text;
            //    StepTestFrom stf = new StepTestFrom();
            //    stf.ShowDialog();
            //    return;
            //}

            //textBoxX1.Invoke(new Action(()=> {
            //    textBoxX1.Text = (sender as Button).Text;
            //}));
        }
Beispiel #5
0
        private void test_bt_Click(object sender, EventArgs e)
        {
            if (textBoxX1.Text == "")
            {
                MessageBox.Show("请输入零件号");
                return;
            }
            // 获得类型
            //Program.txtbh = textBoxX1.Text;
            Maticsoft.BLL.parts          parts_bll  = new Maticsoft.BLL.parts();
            List <Maticsoft.Model.parts> parts_mode = parts_bll.GetModelList(string.Format(" PN='{0}' ", textBoxX1.Text));

            if (parts_mode.Count <= 0)
            {
                return;
            }
            Program.type = Convert.ToInt32(parts_mode[0].componentId);

            StepTestFrom stf = new StepTestFrom();

            stf.CompId = textBoxX1.Text;
            stf.ShowDialog();
        }