private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (gridView1.FocusedRowHandle > -1) { BasicClass.cResult r = new BasicClass.cResult(); Form fr = new Task.frTaskForm(r, Convert.ToInt32(gridView1.GetFocusedRowCellValue(_coID)), 1); fr.ShowDialog(); } }
/// <summary> /// 生产制单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void label9_Click(object sender, EventArgs e) { DevExpress.XtraEditors.SimpleButton ll = sender as DevExpress.XtraEditors.SimpleButton; if (BasicClass.BasicFile.GetPermissions(ll.Text) != string.Empty) { Form fr = new Task.frTaskForm(); fr.ShowDialog(); } else { MessageBox.Show("没有权限 "); } }
//查看裁剪单 private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (radioGroup1.SelectedIndex < 4) { return; } try { this.Cursor = System.Windows.Forms.Cursors.WaitCursor; int _TID = Convert.ToInt32(radioGroup1.Properties.Items[radioGroup1.SelectedIndex].Value); BasicClass.cResult r = new BasicClass.cResult(); // r.TextChanged += new BasicClass.TextChangedHandler(r_TextChanged); Form fr = new Task.frTaskForm(r, _TID, 1); fr.ShowDialog(); } finally { this.Cursor = System.Windows.Forms.Cursors.Default; } }