Beispiel #1
0
 public Operation(Operation operation)
 {
     this.typeOfMachining          = operation.getTypeOfMachining();
     this.idOperation              = operation.getIdOperation();
     this.typeOfInstrument         = operation.getTypeOfInstrument();
     this.idOnTechnologicalProcess = operation.getIdOnTechnologicalProcess();
 }
        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));
        }
Beispiel #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); }
        }