17
Konie Documentation Documentation Release 1.0.0 Konie Jan 09, 2019

Konie Documentation Documentation

  • Upload
    others

  • View
    66

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Konie Documentation Documentation

Konie Documentation DocumentationRelease 1.0.0

Konie

Jan 09, 2019

Page 2: Konie Documentation Documentation
Page 3: Konie Documentation Documentation

Contents:

1 Guide 11.1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Wax Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.3 Production Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2 The Problem 7

3 Tech Details 9

4 SAP 11

5 What is Protrack 13

i

Page 4: Konie Documentation Documentation

ii

Page 5: Konie Documentation Documentation

CHAPTER 1

Guide

1.1 Getting Started

1.1.1 Setting up

Setting up the rights Variables

config.php & config2.php,

$SERVER="localhost:3306"; // database server Host$USER="root"; // Database user$PASS=""; // Database Password$BBDD="konieapp"; // Database Name

conn.php This code establishes the connection with Protrack

$dsn = "Driver={SQL Server};Server=10.1.1.80,1433;Database=Protrack;Integrated→˓Security=SSPI;User ID=koniecupsinternationalinc.local\Protrack;Password=Proabc123$$;→˓";$conn = odbc_connect( $dsn, 'sa', 'B1Admin' );

connex.php This code establishes the connection with our local database

$dsn = "Driver={SQL Server};Server=10.1.1.80,1433;Database=Protrack;Integrated→˓Security=SSPI;User ID=koniecupsinternationalinc.local\Protrack;Password=Proabc123$$;→˓";$conn = odbc_connect( $dsn, 'sa', 'B1Admin' );

1.1.2 Deprecated Functions

This Module is running in a old php version lower than 5.5, so to be able to test this module you have to make a fewchanges:

1

Page 6: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

• mysql_connect => mysqli_connect

• mysql_connect_errno => mysqli_connect_errno

• mysql_query($sqlref) => mysqli_query($conex,$sqlref)

• mysql_fetch_array => mysqli_fetch_array

Note: $resultref=mysql_query($sqlref) or die(mysqli_error()); // REPALCE WITH $resul-tref=mysqli_query($conex,$sqlref) or die(mysql_error());

This directory represents a complete module. The main file is index.php and it is used to initialize the module.

1.1.3 Database Connections

• Uses an SQL Database

• PROTRACK is a third party framework that uses SQL Server, the connection is required.

1.2 Wax Module

Paraffin Control System

Editors need to login into the system to manage the paraffin production.

1.2.1 File Structure

• DYMO.Label.Framework.2.0.2.js

• DYMO.Label.Framework.latest.js

• PrintLabel.js

• PrintLabel2.js

• base.php. Return the list of material by GPC25B18072A

2 Chapter 1. Guide

Page 7: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

• bobinaprod.php manage the roll if was received on the warehouse

• captura.php

• conca.php

• conex.php make the conection to the local database

• conf.php store the parameters (constants) for the local database conection

• cortebobina.php

• dymo.php

• email_wax - Copy.php

• email_wax.php

• eml_konie.png

• eml_konie_generico.png

• func.php

• hora.php

• index.php. Login Page

• jquery-ui.js

• jquery.fullscreen.min.js

• jquery.jqprint-0.3.js

• jquery.js

• listabobinas.php. data of the paraffin proccess

• listabobinas2.php data of the paraffin proccess

• listarollo.php. data of the paraffin proccess

• listarollo2.php. data of the paraffin proccess

• login.css

• logout.php. Logout the user from the system

• lrg.php

• pago.php. Integration with instapago

• papel.php List of the papper before the parffin proccess

• papel_core.php

• papel_parafinado.php List of the papper after the parffin proccess

• peso.php This function calculate the weight of the roll every minute

• read_xml2_ivan.php

• reel.php Coil control system sent to production

• registro_parafina.php Create a register on the database about the processed coil(bobina)

• registrobobina.php Create a register on the database about the new coil(bobina)

• registrobobina_danada.php Create a register on the database about the damage coil(bobina)

• registrowax.php

1.2. Wax Module 3

Page 8: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

• registrowax_espera.php

• rollo.php

• rollo_noregistrado.php

• rollot.php

• sensor.php

• validNum.js

• wax.css

• wax.php. Paraffin Control System Page

• wax_low.css

• wax_ultimo.php

1.2.2 Screenshots

Paraffin Control System (wax.php)

(listabobinas.php)

(listarollo.php)

(papel.php)

4 Chapter 1. Guide

Page 9: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

1.3 Production Module

Real-time Production Efficiency Indicator System

1.3.1 File Structure

• amcharts : javascript library for charts creations

• pie : javascript library for pie charts creations

• js : javascript directory

• img : media directory

• conex.php : make the conection to the local database

• conex2.php : make the database contection to the PROTRACK database

• conf.php : store the parameters (constants) for the local database conection

• conf2.php : store the parameters (constants) for the PROTRACK conection

• date.js : javascript library

• date.php

• dif_des.php Waste Management System in Production

• display2.php

• display4.php

• display5.php

• fg.php

• index.php

1.3. Production Module 5

Page 10: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

• jquery-ui.js javascript library for

• jquery.fullscreen.min.js javascript library for

• jquery.js javascript library for

• jsDatePick.min.1.3.js javascript library for

• logo_black.php

• main.css CSS CLASS

• matriz.php Bank matrix of conical beaker machines in plant

• mes2.php

• pro_des.php Waste Management System in Production

• pro_mod.php Alert system for Human Resources

• refup.php display the products references by size and shifts

• sensor.php extract the “temperature, humidity and waxtemperature” from the file state.xml and returnthe values in a json structure

• sensor_prod.php Store the sensor data into the database

• sensor_prod2.php NOT IN USE

• sensor_prueba.php NOT IN USE

• sp.php ** Retreive the Pallete Transaction from Protrack database**

• status_maq.php ** Return the status of the machine by ID **

• validNum.js javascript function to validate numbers only

6 Chapter 1. Guide

Page 11: Konie Documentation Documentation

CHAPTER 2

The Problem

Konie Cups is a manufacturer of paper cups. Currently, the overlaying administrative tool is SAP, whichdoes not help with optimizing and controlling the manufaturing process. Using SAP it is currently impos-sible to relate a new product (Paper Rolls) with a the final product (Paper Cups).

7

Page 12: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

8 Chapter 2. The Problem

Page 13: Konie Documentation Documentation

CHAPTER 3

Tech Details

• php < 5.4

• sql database

• sql Server : Protrack

• javascript & jQuery

9

Page 14: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

10 Chapter 3. Tech Details

Page 15: Konie Documentation Documentation

CHAPTER 4

SAP

SAP is used for administrative purposes in order to manage costs and overall staff and equipment.

11

Page 16: Konie Documentation Documentation

Konie Documentation Documentation, Release 1.0.0

12 Chapter 4. SAP

Page 17: Konie Documentation Documentation

CHAPTER 5

What is Protrack

Protrack is used for sending reports and tracking some of the proccess in real time. Protrack complements SAP inconnecting items where needed in order to produce more accurate reports.

13