Exemplo n.º 1
0
 /// <summary>
 /// 关联任务查询
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnQueryJobs_Click(object sender, EventArgs e)
 {
     if (dataGridViewMaterials.SelectedRows == null || dataGridViewMaterials.SelectedRows.Count == 0)
     {
         MessageBoxEx.Show("请先选中数据行!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else
     {
         int id = int.Parse((dataGridViewMaterials.SelectedRows[0].Cells["ID_M"].Value == null) ? string.Empty : dataGridViewMaterials.SelectedRows[0].Cells["ID_M"].Value.ToString());
         WinForm.Material.wipDiscreteJobs Form = new WinForm.Material.wipDiscreteJobs(id);
         Form.ShowDialog();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 关联任务查询
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnQueryJobs_Click(object sender, EventArgs e)
 {
     if (dataGridViewMaterials.SelectedRows == null || dataGridViewMaterials.SelectedRows.Count == 0)
     {
         MessageBoxEx.Show("请先选中数据行!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else
     {
         int id = int.Parse((dataGridViewMaterials.SelectedRows[0].Cells["ID_M"].Value == null) ? string.Empty : dataGridViewMaterials.SelectedRows[0].Cells["ID_M"].Value.ToString());
         WinForm.Material.wipDiscreteJobs Form = new WinForm.Material.wipDiscreteJobs(id);
         Form.ShowDialog();
     }
 }