Esempio n. 1
0
            private static void Update(WallHightMode hiMode)
            {
                string FGCode       = "";
                bool   readyToWrite = true;

                if (_reportRule == ReportRule.Gyp || _reportRule == ReportRule.Both)
                {
                    FGCode = "C1011.0";
                    if (_stud == 0)
                    {
                        switch (hiMode)
                        {
                        case WallHightMode.Full:
                            if (_boundaryCond == 0)
                            {
                                FGCode += "01a";
                            }
                            else if (_boundaryCond == 1)
                            {
                                _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                                readyToWrite = false;
                            }
                            else if (_boundaryCond == 2)
                            {
                                FGCode += "01c";
                            }
                            else
                            {
                                FGCode += "01d";
                            }
                            break;

                        case WallHightMode.Partial:
                            if (_boundaryCond != 1)
                            {
                                _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                                readyToWrite = false;
                            }
                            else
                            {
                                FGCode += "01b";
                            }
                            break;
                        }
                    }
                    else
                    {
                        if (hiMode == WallHightMode.Full && _boundaryCond == 0)
                        {
                            FGCode += "11a";
                        }
                        else
                        {
                            _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                            readyToWrite = false;
                        }
                    }

                    if (readyToWrite)
                    {
                        WriteIntoPG(FGCode, "石膏板隔墙", "ShiGaoBanGeQiang", PGComponents.GypWall, 1300.0);
                    }
                }
                if (_reportRule == ReportRule.Finish || _reportRule == ReportRule.Both)
                {
                    FGCode       = "C3011.";
                    readyToWrite = true;
                    if (_finishType == FinishType.OneWallpaper || _finishType == FinishType.TwoWallpaper)
                    {
                        FGCode += "001";
                    }
                    else if (_finishType == FinishType.OneCeramic || _finishType == FinishType.TwoCeramic)
                    {
                        FGCode += "002";
                    }
                    else if (_finishType == FinishType.OneWood || _finishType == FinishType.TwoWood)
                    {
                        FGCode += "003";
                    }
                    switch (hiMode)
                    {
                    case WallHightMode.Full:
                        if (_boundaryCond == 0)
                        {
                            FGCode += 'a';
                        }
                        else if (_boundaryCond == 1)
                        {
                            _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                            readyToWrite = false;
                        }
                        else if (_boundaryCond == 2)
                        {
                            FGCode += 'c';
                        }
                        else
                        {
                            FGCode += 'd';
                        }
                        break;

                    case WallHightMode.Partial:
                        if (_boundaryCond != 1)
                        {
                            _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                            readyToWrite = false;
                        }
                        else
                        {
                            FGCode += "b";
                        }
                        break;
                    }
                    if (readyToWrite)
                    {
                        WriteIntoPG(FGCode, "表面装饰", "BiaoMianZhuangShi", PGComponents.WallFinish, 900.0);
                    }
                }
            }
Esempio n. 2
0
            private static void Update(WallHightMode hiMode)
            {
                string FGCode = "";
                bool readyToWrite = true;

                if (_reportRule == ReportRule.Gyp || _reportRule == ReportRule.Both)
                {
                    FGCode = "C1011.0";
                    if (_stud == 0)
                    {
                        switch (hiMode)
                        {
                            case WallHightMode.Full:
                                if (_boundaryCond == 0) FGCode += "01a";
                                else if (_boundaryCond == 1)
                                {
                                    _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                                    readyToWrite = false;
                                }
                                else if (_boundaryCond == 2) FGCode += "01c";
                                else FGCode += "01d";
                                break;
                            case WallHightMode.Partial:
                                if (_boundaryCond != 1)
                                {
                                    _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                                    readyToWrite = false;
                                }
                                else FGCode += "01b";
                                break;
                        }
                    }
                    else
                    {
                        if (hiMode == WallHightMode.Full && _boundaryCond == 0) FGCode += "11a";
                        else
                        {
                            _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                            readyToWrite = false;
                        }
                    }

                    if(readyToWrite) WriteIntoPG(FGCode, "石膏板隔墙", "ShiGaoBanGeQiang", PGComponents.GypWall, 1300.0);
                }
                if (_reportRule == ReportRule.Finish || _reportRule == ReportRule.Both)
                {
                    FGCode = "C3011.";
                    readyToWrite = true;
                    if (_finishType == FinishType.OneWallpaper || _finishType == FinishType.TwoWallpaper) FGCode += "001";
                    else if (_finishType == FinishType.OneCeramic || _finishType == FinishType.TwoCeramic) FGCode += "002";
                    else if (_finishType == FinishType.OneWood || _finishType == FinishType.TwoWood) FGCode += "003";
                    switch (hiMode)
                    {
                        case WallHightMode.Full:
                            if (_boundaryCond == 0) FGCode += 'a';
                            else if (_boundaryCond == 1)
                            {
                                _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                                readyToWrite = false;
                            }
                            else if (_boundaryCond == 2) FGCode += 'c';
                            else FGCode += 'd';
                            break;
                        case WallHightMode.Partial:
                            if(_boundaryCond != 1)
                            {
                                _abandonWriter.WriteAbandonment(_wall, AbandonmentTable.GypWall_BoundConflictHi);
                                readyToWrite = false;
                            }
                            else FGCode += "b";
                            break;
                    }
                    if(readyToWrite) WriteIntoPG(FGCode, "表面装饰", "BiaoMianZhuangShi", PGComponents.WallFinish, 900.0);
                }
            }