Exemplo n.º 1
0
                    public List<CutListAndCustomPropFields> GetPropertyFromCutlistAndCustomProperty()
                    {
                        var listStr = new List<CutListAndCustomPropFields>();

                        string[] configArray = swModel.GetConfigurationNames();

                        var cutProp = ListCutListPropertyName();

                        for (var x = 0; x < ListCutListPropertyName().Count; x++)
                        {
                            foreach (var i in configArray)
                            {
                                var cutListClass = new CutListAndCustomPropFields();

                                Configuration swConf = swModel.GetConfigurationByName(i.ToString());

                                if (swConf.IsDerived()) continue;

                                //swModel.ShowConfiguration(i.ToString());

                                // CustomProperty
                                cutListClass.Title = swModel.GetTitle();
                                cutListClass.ConfigName = i;
                                cutListClass.MaterialId = CustomPropertyString(cutProp[x].MaterialId, i);
                                cutListClass.Description = CustomPropertyString(cutProp[x].Description, i);
                                cutListClass.Number = CustomPropertyString(cutProp[x].Number, i);
                                cutListClass.Area = CustomPropertyString(cutProp[x].Area, i);
                                cutListClass.CodeMat = CustomPropertyString(cutProp[x].CodeMat, i);
                                //CutListClass.Version = CustomPropertyString(cutProp[x].Version);
                                cutListClass.PaintX = CustomPropertyString(cutProp[x].PaintX, i);
                                cutListClass.PaintY = CustomPropertyString(cutProp[x].PaintY, i);
                                cutListClass.PaintZ = CustomPropertyString(cutProp[x].PaintZ, i);

                                //CutList
                                cutListClass.Height = CutlistPropertyString(cutProp[x].Height);
                                cutListClass.Width = CutlistPropertyString(cutProp[x].Width);
                                cutListClass.Thickness = CutlistPropertyString(cutProp[x].Thickness);
                                cutListClass.Folds = CutlistPropertyString(cutProp[x].Folds);

                                listStr.Add(cutListClass);
                            }
                        }
                        return listStr;
                    }
Exemplo n.º 2
0
                    public List<CutListAndCustomPropFields> ListCutListPropertyName()
                    {
                        var listStr = new List<CutListAndCustomPropFields>();

                        var cutListClass = new CutListAndCustomPropFields
                        {
                            //ConfigName = "",
                            MaterialId = "MaterialID",
                            Description = "Наименование",
                            Number = "Обозначение",
                            Area = "Площадь покрытия",
                            CodeMat = "Код материала",
                            Height = "Длина граничной рамки",
                            Width = "Ширина граничной рамки",
                            Thickness = "Толщина листового металла",
                            Folds = "Сгибы",
                            Version = "Revision",
                            PaintX = "Длина",
                            PaintY = "Высота",
                            PaintZ = "Ширина"

                        };

                        listStr.Add(cutListClass);

                        return listStr;
                    }