private void AddFlowProject_Load(object sender, EventArgs e) { technologyLib = new TechnologyLib(sqlConnection); dataSet = new DataSet(); technologyLib.GetFlowProjectData(dataSet); m_FlowProjectID = technologyLib.GetFlowProjectID(FlowProjectName); switch (m_OperateFlag) { case 1: break; case 2: for (int i = 0; i < dataSet.Tables["FlowProject"].Rows.Count; i++) { if (m_FlowProjectID == Convert.ToInt16(dataSet.Tables["FlowProject"].Rows[i]["FlowProjectID"])) { textBox1.Text = dataSet.Tables["FlowProject"].Rows[i]["FlowProjectName"].ToString(); richTextBox1.Text = dataSet.Tables["FlowProject"].Rows[i]["Description"].ToString(); break; } } break; } }
private void AddFlowProjectDetails_Load(object sender, EventArgs e) { technologyLib = new TechnologyLib(sqlConnection); dataSet = new DataSet(); technologyLib.GetFlowData(dataSet); technologyLib.GetFlowProjectDetailsViewData(dataSet, m_FlowProjectName); m_FlowProjectID = technologyLib.GetFlowProjectID(m_FlowProjectName); InitialListView1(listView1); InitialListView2(listView2); }
private void DeleteForm_Load(object sender, EventArgs e) { //technologyLib = new TechnologyLib(sqlConnection); //dataSet = new DataSet(); //technologyLib.GetUserPopedomData(dataSet); //string textName = "确定要删除调试方案:\r\n" + m_DebugItemProjectName; //m_DebugItemProjectID = technologyLib.GetDebugItemProjectID(m_DebugItemProjectName); technologyLib = new TechnologyLib(sqlConnection); dataSet = new DataSet(); technologyLib.GetUserPopedomData(dataSet); string textName = ""; switch (m_DeleteFlag) { case 1: m_PopedomID = technologyLib.GetUserPopedomID(m_PopedomName); textName = "确定要删除权限方案:\r\n" + m_PopedomName; break; case 2: textName = "确定要删除用户组:\r\n" + m_UserGrpName; break; case 3: textName = "确定要删除用户:\r\n" + m_BarCode; break; case 4: textName = "确定要删除工序:\r\n" + m_FlowName; break; case 5: m_FlowProjectID = technologyLib.GetFlowProjectID(m_FlowProjectName); textName = "确定要删除工序方案:\r\n" + m_FlowProjectName; break; case 6: m_DebugItemID = technologyLib.GetDebugItemID(m_DebugItemName); textName = "确定要删除调试项目:\r\n" + m_DebugItemName; break; case 7: m_DebugItemProjectID = technologyLib.GetDebugItemProjectID(m_DebugItemProjectName); textName = "确定要删除调试方案:\r\n" + m_DebugItemProjectName; break; case 8: m_CmdItemID = technologyLib.GetCmdItemID(m_CmdItemName); textName = "确定要删除调试命令:\r\n" + m_CmdItemName; break; case 9: m_TestRunProjectID = technologyLib.GetT_TestRunProjectID(m_TestRunProjectName); textName = "确定要删除考机方案:\r\n" + m_TestRunProjectName; break; case 10: m_VerifyModuleID = technologyLib.GetVerifyModuleID(m_VerifyModuleName); textName = "确定要删除验证模块:\r\n" + m_VerifyModuleName; break; case 11: m_VerifyPopedomID = technologyLib.GetVerifyPopedomID(m_VerifyPopedomName); textName = "确定要删除验证模块权限方案:\r\n" + m_VerifyPopedomName; break; case 12: m_ModuleClassID = technologyLib.GetModuleClassID(m_ModuleClassName); textName = "确定要删除模块类型名称:\r\n" + m_ModuleClassName; break; case 13: textName = "确定要删除条码编码:\r\n" + m_ModuleCode; break; case 14: textName = "确定要删除装配项目:\r\n" + m_AssembleItemName; break; case 15: textName = "确定要删除装配方案:\r\n" + m_AssembleItemName; break; } richTextBox1.Text = textName; }