private void dgvList_DoubleClick(object sender, EventArgs e) { frmWorkOrderToResponseDetail frm = new frmWorkOrderToResponseDetail(); WorkOrderInfo currentWorkOrderInfo = (xSource[dgvList.CurrentRow.Index] as WorkOrderInfo); frm.AccessPoint = currentWorkOrderInfo.AccessPoint; frm.StationId = currentWorkOrderInfo.StationId; frm.WorkOrderId = currentWorkOrderInfo.WorkOrderId; if (frm.ShowDialog() == DialogResult.OK) { //刷新 RefreshDataGridView(); } }
private void OnClickReminderInfoWin(WorkOrderReminderInfo item) { if (item.SourceType == "A0101") { //待响应的工单 frmWorkOrderToResponseDetail frm = new frmWorkOrderToResponseDetail(); frm.AccessPoint = item.AccessPoint; frm.StationId = item.StationId; frm.WorkOrderId = item.SourceKey; frm.ShowDialog(); } else if (item.SourceType == "A0102") { //处理中的工单 frmWorkOrderProcessingDetail frm = new frmWorkOrderProcessingDetail(); frm.AccessPoint = item.AccessPoint; frm.StationId = item.StationId; frm.WorkOrderId = item.SourceKey; frm.ShowDialog(); } raiseRemindTimer.Enabled = true; }