Beispiel #1
0
        private void WriteLayerName(ExcelHelp xls, Excel.Worksheet sheet, Type type, int row)
        {
            switch (type.Namespace)
            {
            case "DenshowBusinessComponent":
                //layer
                xls.WriteValue(sheet, Definition.LayerType, row, "ビジネスロジック層");
                xls.WriteValue(sheet, Definition.Category, row, "ロジック");
                break;

            case "DenshowBusinessInterface":
                xls.WriteValue(sheet, Definition.LayerType, row, "ビジネスロジック層");
                xls.WriteValue(sheet, Definition.Category, row, "ファクトリー");
                break;

            case "DenshowBusinessInterface.Component":
            case "DenshowBusinessInterface.Entity":
                xls.WriteValue(sheet, Definition.LayerType, row, "ビジネスロジック層");
                xls.WriteValue(sheet, Definition.Category, row, "エンティティ");
                break;

            case "DenshowDataAccessComponent":
                xls.WriteValue(sheet, Definition.LayerType, row, "データアクセス層");
                xls.WriteValue(sheet, Definition.Category, row, "データアクセス");
                break;

            case "DenshowDataAccessComponent.Dao":
                xls.WriteValue(sheet, Definition.LayerType, row, "データアクセス層");
                xls.WriteValue(sheet, Definition.Category, row, "データアクセス");
                break;

            case "DenshowDataAccessImpl.Dao":
                xls.WriteValue(sheet, Definition.LayerType, row, "データアクセス層");
                xls.WriteValue(sheet, Definition.Category, row, "管理");
                xls.GetRange(sheet, 2, 2, row, row).Font.Color = Excel.XlRgbColor.rgbRed;
                break;

            case "DenshowDataAccessComponent.Properties":
                xls.WriteValue(sheet, Definition.LayerType, row, "データアクセス層");
                xls.WriteValue(sheet, Definition.Category, row, "システム");
                break;

            case "DenshowDataAccessInterface":
                xls.WriteValue(sheet, Definition.LayerType, row, "データアクセス層");
                if (type.Name.EndsWith("Factory"))
                {
                    xls.WriteValue(sheet, Definition.Category, row, "ファクトリー");
                }
                break;

            case "DenshowDataAccessInterface.Dto":
            case "DenshowDataAccessInterface.Entity":
                xls.WriteValue(sheet, Definition.LayerType, row, "データアクセス層");
                xls.WriteValue(sheet, Definition.Category, row, "エンティティ");
                break;

            case "DenshowCommon":
                xls.WriteValue(sheet, Definition.LayerType, row, "各層共通");
                xls.WriteValue(sheet, Definition.Category, row, "共通");
                break;

            case "DenshowNativeCommon":
                xls.WriteValue(sheet, Definition.LayerType, row, "各層共通画像処理");
                xls.WriteValue(sheet, Definition.Category, row, "共通");
                break;

            case "ReportDefinition.Base":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "画面");
                break;

            case "ReportDefinition.Checklist":
            case "ReportDefinition.ControlDefinision":
            case "ReportDefinition.Menu":
            case "ReportDefinition.Monitoring":
            case "ReportDefinition.ReportForm":
            case "ReportDefinition.Template":
            case "ReportDefinition.User":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "画面");
                break;

            case "ReportDefinition.Process":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "プロセス");
                break;

            case "ReportDefinition.Properties":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "システム");
                break;

            case "ReportDefinitionControl.Button":
            case "ReportDefinitionControl.Cell":
            case "ReportDefinitionControl.ComboBoxItem":
            case "ReportDefinitionControl.Label":
            case "ReportDefinitionControl.Menu":
            case "ReportDefinitionControl.Picture2.ContextMenu.Menu":
            case "ReportDefinitionControl.Picture2.ContextMenu.MenuItem":
            case "ReportDefinitionControl.TextBox":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "共通コントロール");
                break;

            case "ReportDefinitionControl.Picture2":
            case "ReportDefinitionControl.Picture2.CustomControl":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "描画コントロール");
                break;

            case "ReportDefinitionControl.Picture2.Entity":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "管理");
                break;

            case "ReportDefinitionControl.Properties":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "システム");
                break;

            case "ReportService":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "システム");
                break;

            case "ReportServiceProto.Process":
                xls.GetRange(sheet, 2, 2, row, row).Font.Color = Excel.XlRgbColor.rgbRed;
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "プロセス");
                break;

            case "RecogResultCorrection":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                if (!type.Name.Equals("Global"))
                {
                    xls.WriteValue(sheet, Definition.Category, row, "Web画面");
                }
                else
                {
                    xls.WriteValue(sheet, Definition.Category, row, "メイン");
                }

                break;

            case "RecogResultCorrection.Process":
                xls.WriteValue(sheet, Definition.LayerType, row, "プレゼンテーション層");
                xls.WriteValue(sheet, Definition.Category, row, "プロセス");
                break;

            case "JocrSDKInterface":
            case "JocrSDKComponent":
            case "HocrSDKInterface":
            case "HocrSDKComponent":
            case "FormSDKInterface":
            case "FormSDKComponent":
            case "DocumentSDKInterface":
            case "DocumentSDKComponent":
            case "DocumentSDKCommon":
                xls.WriteValue(sheet, Definition.LayerType, row, "ビジネスロジック層(SDK)");
                if (type.Name.Equals(type.Namespace))
                {
                    xls.WriteValue(sheet, Definition.Category, row, "ロジック");
                }
                break;

            default:
                break;
            }
        }