private void btnAuditing_Click(object sender, EventArgs e) { if (!m_serverQualityProblem.AuditingSundrySchedule("搭车分析计划表", m_lnqAssemblingAnalysis.Bill_ID, out m_strErr)) { MessageDialog.ShowPromptMessage(m_strErr); return; } else { MessageDialog.ShowPromptMessage("审核成功"); IQueryable <View_HR_Personnel> listPersonnel = m_serverPersonnel.GetPersonnelViewInfo(ServerModule.PersonnelDefiniens.ParameterType.姓名, txtPrincipal.Text); m_billMessageServer.PassFlowMessage(m_lnqAssemblingAnalysis.Bill_ID, string.Format("{0} 号搭车分析计划表,请责任人提交分析结果", m_lnqAssemblingAnalysis.Bill_ID), BillFlowMessage_ReceivedUserType.用户, listPersonnel.First().工号); this.Close(); } }
private void 提交效果确认信息ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow.Cells["单据状态"].Value.ToString() == "等待效果确认") { if (!UpdateBill()) { return; } string msg = string.Format("{0} 号质量问题整改处置单已确认效果,请编制人最终确认", m_lnqQuality.Bill_ID); m_billMessageServer.PassFlowMessage(m_lnqQuality.Bill_ID, msg, m_serverPersonnel.GetPersonnelViewInfo(ServerModule.PersonnelDefiniens.ParameterType.姓名, m_lnqQuality.HappenFillInPersonnel).First().工号, false); } else { MessageDialog.ShowErrorMessage("请重新确认单据状态"); } }