コード例 #1
0
ファイル: DeleteForm.cs プロジェクト: wyntung/HLZDGL
        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; 
        }