コード例 #1
0
ファイル: Operation.cs プロジェクト: Tikhomirov-Sergey/thesis
 public Operation(Operation operation)
 {
     this.typeOfMachining          = operation.getTypeOfMachining();
     this.idOperation              = operation.getIdOperation();
     this.typeOfInstrument         = operation.getTypeOfInstrument();
     this.idOnTechnologicalProcess = operation.getIdOnTechnologicalProcess();
 }
コード例 #2
0
        private static int saveOperationInTechnologicalProcess(int cipherDetail, int idCalculation, Operation technologicalProcess, int numberOperation)
        {
            int    idOperation   = technologicalProcess.getIdOperation();
            string nameOperation = technologicalProcess.getTypeOfMachining();

            dbConnection.SetQuery($@"INSERT INTO {TECHNOLOGICAL_PROCESS} VALUES ({numberOperation}, {idOperation}, '{nameOperation}', {cipherDetail}, {idCalculation})");

            return(getIdentCurrent(TECHNOLOGICAL_PROCESS));
        }
コード例 #3
0
        public List <ParametersOperation> getListOperationOnSurfaceRoughness(Operation operation, double surfaceRoughness)
        {
            try
            {
                int    idOperation      = operation.getIdOperation();
                string nameOperation    = operation.getTypeOfMachining();
                string typeOfInstrument = operation.getTypeOfInstrument();

                List <ParametersOperation> operations = this.operations[idOperation].getListOperationOnSurfaceRoughness(surfaceRoughness, nameOperation, typeOfInstrument);

                return(operations);
            }
            catch { return(null); }
        }
コード例 #4
0
        public static void insertParametersOfOperationsInTextboxes(MainForm form)
        {
            form.TypeOfMachining.Text = operation.getTypeOfMachining();
            selectTypeOfInstrument(form);

            /*
             * form.TypeOfMachining.Text = operation.getTypeOfMachining();
             * form.PrecisionOfMachining.Text = operation.getPrecisionOfMachining();
             * form.SurfaceRoughnessRz.Text = operation.getSurfaceRoughnessRzToString();
             * form.ThicknessOfDefectiveCoating.Text = operation.getThicknessOfDefectiveCoatingToString();
             * form.Kvalitet.Text = operation.getKvalitetToString();
             * form.CoefficientOfRefinement.Text = operation.getCoefficientOfRefinementToString();
             *
             * selectTypeOfInstrument(form);*/
        }
コード例 #5
0
        public static void buttonOfSelectOperations(MainForm form)
        {
            Operation operation = StorageOfSelectedOperation.getOperation();

            if (operation != null)
            {
                extractionOfParametersOfOperationFromTextBoxes(operation, form);

                int indexSelectedOperation = StorageOfSelectedOperation.getIndexSelectedOperation();
                int indexSelectedSurface   = StorageOfSelectedOperation.getIndexSelectedSurface();

                Part.addOperationInSurface(operation, indexSelectedSurface, indexSelectedOperation);

                insertNameOperationInTextboxes(form, operation.getTypeOfMachining(), indexSelectedOperation);

                operation = new Operation(operation);
                StorageOfSelectedOperation.setOperation(operation);
            }

            /*ParametersOperation operation = StorageOfSelectedOperation.getOperation();
             *
             * if (operation != null)
             * {
             *  extractionOfParametersOfOperationFromTextBoxes(operation, form);
             *
             *  int indexSelectedOperation = StorageOfSelectedOperation.getIndexSelectedOperation();
             *  int indexSelectedSurface = StorageOfSelectedOperation.getIndexSelectedSurface();
             *
             *  Part.addOperationInSurface(operation, indexSelectedSurface, indexSelectedOperation);
             *
             *  insertNameOperationInTextboxes(form, operation.getNameOperation(), indexSelectedOperation);
             *
             *  operation = new ParametersOperation(operation);
             *  StorageOfSelectedOperation.setParameters(operation);
             * }*/
        }