Professional Documents
Culture Documents
Cfe Professional Residence
Cfe Professional Residence
PROJECT:
“IMPLEMENTATION OF A WEB SYSTEM FOR MONITORING
DETERMINATION OF VALUES AND OBJECTIVES (DEVO) IN CFE
ZONA VILLAHERMOSA”
Presents
Isaías Samuel Ramírez Sáenz
07E50278
Company:
Federal Electricity Commission (CFE)
External consultant:
Eng. Luis Armando Figueroa Camacho
Internal Advisor:
MGTI. Edgar Martín Lorca Velueta
The electrical infrastructure is of a high cost, which is why monthly meetings are
held to analyze the increasing losses, as Tabasco is considered to be the 4th
place nationally in losses, that is, it is considered a non-profitable area. .
This report is structured by five chapters that describe in detail the procedures to
follow to achieve the project objectives:
The first chapter defines the problem statement, the justification of the web
system and the objectives to be achieved as well as the limitations.
The third chapter will be comprised of the theoretical foundation of the concepts.
The fourth chapter shows the way in which the web system will be built as well
as the development of the activities for the development of the project and in the
last chapter the results of the Web system Determination of Values and
Objectives (DEVO) are presented.
INTRODUCTION
ANNEXES:
Annex A: Data Collection
Annex B: User Manual
iii
CHAPTER I
PROBLEM STATEMENT
In the life cycle of the preparation of the Monthly Report, it is carried out in three
extremely important processes, preparation of Charts, Analysis and Corrective
Measures, these allow continuous improvement in the departments that make
up the Villahermosa Zone to be carried out consistently. planned way.
Another problem that the process of preparing graphs has is when presenting
the monthly report, since each of the different agencies prepares their graphs
independently, that is, there is no standard for preparing the graphs. itself,
causing confusion when viewing the report in the monthly meetings planned for
its analysis.
How to manage the efficient management of the Monthly Report for determining
Values and objectives at the Zone level, using Information Technologies?
1.2.- JUSTIFICATION
• Automate the DEVO process, using a tool based on ASP.net visual studio
to generate reports in a standard way.
This project will solve the preparation of the DEVO report, thus being able to
comply in a timely manner with what is requested by the superintendency when
making its monthly reports, as well as the ease of being able to fill out said
formats. It is intended to launch this application for each one. of the five
processes involved in the area.
One of the limitations that we will find in this project is due to the time since it is
very short for the preparation of the entire project, because the volume of data
for each of the processes involved in the DEVO is very large, so determined that
only the DEVO of the commercialization process be prepared only for this
residency stage.
22.9% of the installed capacity corresponds to 22 plants built with private capital
by Independent Energy Producers (PIE).
At the CFE, electrical energy is produced using different technologies and
different sources of primary energy. It has thermoelectric, hydroelectric, coal-
electric, geothermoelectric, wind-electric and nuclear power plants.
To convey electricity from the generation plants to the home of each of its
clients, the CFE has more than 751 thousand kilometers of transmission and
distribution lines.
At the end of 2010, the supply of electrical energy reached more than 190
thousand locations (190,732 rural and 3,667 urban) and 97.8% of the population
uses electricity.
Regarding the total sales volume, 99% is made up of direct sales to the public
and the remaining 1% is exported.
Although the domestic sector accounts for 88.4% of customers, its sales
represent 23.8% of total sales to the public. An inverse situation occurs in the
industrial sector, where less than 1% of customers represent more than half of
sales.
The CFE is also the federal government entity in charge of planning the national
electrical system, which is reflected in the Program of Works and Investments of
the Electric Sector (POISE), which describes the evolution of the electricity
market, as well as the expansion of the generation and transmission capacity to
meet demand over the next ten years, and is updated annually.
CFE is a decentralized public body, with legal personality and its own assets.
2.2.- VISION
2.3.- MISSION
Satisfy the needs of our customers by guaranteeing the supply of electricity and
other services, through a competitive company with the comprehensive
development of its collaborators and respecting the environment.
2.4.- OBJECTIVE
Superintendencia Zona
villahermosa
Oficinas de lineas
de subtrasmicion Agencias
Oficinas de redes
subterraneas
Oficinas de
comunicaciones
Oficinas de control
“DEVELOPMENT AND IMPLEMENTATION OF A WEB PORTAL FOR MONITORING THE DETERMINATION OF VALUES AND OBJECTIVES (DEVO)”
Federal Electricity Commission (CFE)
13
2.6.- MACROLOCATION OF THE FEDERAL ELECTRICITY COMMISSION
(CFE) VILLAHERMOSA ZONE
The offices of the Federal Electricity Commission (CFE) Villahermosa Zone are
established in the municipal seat of the state of Villahermosa, Centro, Tabasco.
It has its address at 400 Ignacio Allende Street, Centro Delegación Uno,
Villahermosa, Tabasco, CP 86751 Tel. and Fax 01 913 33 21381 21383 21394
21847, Email: luis.figueroa01@cfe.gob.mx
CFE
Ignacio Allende 400, Centro Delegación Uno,
Villahermosa, TAB, Mexico
THEORETICAL FOUNDATION
3.1.- INFORMATION SYSTEMS
Accuracy
Completeness
Economicity
Trust
Relevance
Level of details
Chance
Verifiability
3.2.1.-Basic terminology
A TABLE or data file is a connected set of information of the same type; For
example, in a library database, one table will consist of information related to all
the books in the library, another table will contain information about readers, etc.
Rumbaugh J.; Blana M.; Premerlani, W, (2001:37), in his work “Modeling and
object-oriented design” describes a model as “an abstraction of something, the
objective of which is to understand it before building it. Since models omit non-
essential details, it is easier to manipulate them than to manipulate the original
entity.
“DEVELOPMENT AND IMPLEMENTATION OF A WEB PORTAL FOR MONITORING THE DETERMINATION OF
VALUES AND OBJECTIVES (DEVO)”
Federal Electricity Commission (CFE)
18
Catherine M. R. (2009:70) In his work “Databases” he describes the Data
Model as: “A collection of tools that usually include a type of diagram and
vocabulary especially to describe the structure of the database. A data model
provides a description of the structure of the database, including the data,
relationships within the data, constraints on the data, and sometimes semantics
or meaning of the data.”
3.2.3.-Data dictionary
The dictionary will save the details and descriptions of all these elements.
The function of the data dictionary is to store the data and when an analyst
requires it, he or she will be able to access and know how many characters a
given piece of data covers or in some cases what other names they receive in
different parts of the system, or where it is used, they will find the answers in a
Appropriately developed data dictionary.
It refers that among the different types of database managers, we can find the
following:
• Programming languages.
• Class libraries.
• Assembly technology.
• Development environment.
• C#. It is a new language born with the .NET platform itself and is also
known as Visual C#.NET. As can be deduced from its name, its syntax is similar
to that of the C language; In addition, it has great similarities with other object-
oriented programming languages, such as C++ and Java, which makes it the
most used language in creating .NET applications. C# will be the language that
we use in the examples and applications presented in this book, so we will
dedicate the following three chapters to its study, focusing on aspects related to
Class Libraries: The .NET platform includes more than 5000 classes to help
programmers develop all types of programs. These classes are grouped into
libraries and all of them are incorporated into the .NET execution environment.
These libraries are common for all the languages supported by the platform, that
is, there is no version of the library for C#, another for VB.NET, etc., but rather
the same set of classes can be used by any of the languages. . Each of the
platform libraries is compiled into a dll-type assembly.
The use of this system provides two great advantages when developing
applications. On the one hand there is compatibility between languages, since,
regardless of the language with which the application has been coded, the result
of the compilation will also be MSIL, allowing interaction between applications
It can be run on any operating system that has the .NET runtime environment.
All platform class libraries are compiled into .dll assemblies.
3.3.2._THE .NET FRAMEWORK
The .NET Framework constitutes the fundamental core of .NET by providing the
platform for the development and execution of applications.
It is a software layer that is between the application and the operating system,
and can be considered an extension of this. In fact, although it is distributed
independently, the latest versions of Microsoft operating systems, such as
Windows 2003 Server, already incorporate the .NET Framework.
During the execution of the applications, the .NET Framework translates the
intermediate code in which the compilation has been carried out into machine
code, in addition to providing all the classes necessary for the execution of the
application. This allows the applications to be independent of the operating
system in which they are going to be executed, so a program that is compiled on
one machine can be executed on a different one just by transporting the .exe on
the destination machine.
Client layer : This is the layer with which the user of the application interacts. It
mainly performs two functions. On the one hand, it is responsible for capturing
the user data with which the application operates and sending it to it. For
example, in a search engine-type application, the data capture function would
consist of requesting the user for the search keyword.
The second function performed by this layer is to present the results generated
by the application to the user. Returning again to the case of the search engine,
the client layer should be in charge of displaying the records with the addresses
of the pages associated with the search topic.
Through so-called Web pages, browsers request data from the user
through the screen and present results on the screen.
Browsers, and in general any web client, communicate with the intermediate
layer using a protocol known as HTTP. Using this protocol, the browser sends
the data provided by the user to the intermediate layer for the execution of the
application and the latter in turn uses it to send the information that it must
present on the screen to the browser.
Once the request is processed, the server sends an HTTP response to the
client. In the header of the response, the server sends control information to the
browser, including in the body of the response the data that the client must
present on the screen, formatted in HTML or in the appropriate presentation
language so that it can interpret them.
4.1.-INFORMATION COLLECTION
A discussion was held with the people in charge of the commercial process, and
the head of the IT department at the zone level, for the necessary explanation
for the preparation ( See Annex A ) of each of the indices that comprise the
DEVO both at the zone level and agency level.
The analysis of the information from the calculation of each of the indices,
collected in the previous process, was carried out. The purpose of this activity is
to be able to interpret the operations that have to be implemented in a web
system development to be able to provide a solution to each of them. needs, as
well as providing better performance in reporting. Based on the analysis, it was
determined what would be the best way to develop the web system
The design of the use cases necessary for the correct functioning of the web
system was carried out.
The interaction of the zone module with the administrator consists of the
following actions: Add, Modify, Consult. Eliminate which give absolute control
over said module. It will also serve to delimit which Agencies belong to each of
the zones, because one zone can have many agencies.
The interaction of the agency module with the administrator consists of the
following actions: Add, Modify, Consult. Eliminate which give absolute control
over said module.
The interaction of the index module with the administrator and the commercial
agent consists of the following actions: Add, Modify, Consult. Eliminate which
give absolute control over said module. It will also serve to delimit which indices
belong to each of the agencies, because an agency can have many indices and
they can be different according to the area to which each agency belongs.
The interaction of the index data module with the administrator and the
commercial agent consists of the following actions: Add, Modify, Consult.
Eliminate which give absolute control over said module. The interaction of this
module with the office worker will only allow you to add and consult data from
the same. It will also be used to take the data that will feed the process graphs.
Add: Allows you to enter index data into the system.
Modify: Allows you to change the specific index data that is stored in the
system.
Consult: Provides the information that is stored in a specific index, which
was previously added.
Delete: Allows you to delete the data of a particular record that was
previously added.
The interaction of the index module with the administrator and the commercial
agent consists of the following actions: Add, Modify, Consult, Delete which give
absolute control over said module. It will also serve to delimit which Users
belong to each of the agencies, because an agency can have many users.
The interaction of the goals module with the administrator and the commercial
agent consists of the following actions: Add, Modify, Consult. Eliminate which
give absolute control over said module. The interaction of this module with the
office worker will only allow you to add and consult data from the same. It will
also serve to take the data with which the indices will be compared to generate
the graphs.
Add: Allows you to enter the value of the goal into the system.
Modify: Allows you to change the value of a specific goal that is stored in
the system.
Consult: Provides the information that is stored for a specific goal, which
has been previously added.
Delete: Allows you to delete the data of a particular record that has been
added previously.
The interaction of the index module with the administrator and the commercial
agent consists of the following actions: Add, Modify, Consult, Delete which give
absolute control over said module. It will also serve to delimit which processes
belong to each of the agencies, because an agency can have many processes.
The previous figure shows how the database that will be used in the system for
storing all the information necessary in each of the necessary activities is
modeled.
This page will allow the user to access according to the role assigned to them
and only registered users will be able to access it so they can have better
control over the web portal.
This page will allow you to navigate through the modules that make up the web
system, as well as only enabling the options that each of the different roles that
exist for the system are allowed to perform.
Fig. 4.4 D Page that will allow you to enter division data
This page will allow you to add the data that is necessary to be able to load the
necessary data to be able to generate the DEVO reports since they are
necessary for the details thereof, this will contain the following buttons such as
new, search, save, update and delete all Windows will have the same design
except for the page for loading index values, which will be in a massive way
because the data is in a file that will be read and stored automatically.
This page will allow you to select the file necessary to load the index values, as
well as process the necessary information and semi-autonomously save the
information when the user presses the browse button to select the file, and the
load button to start. and completion of the task.
This page will allow you to view the values of each of the indices by agency, as
well as which of them did not meet the goal established for the established
month of analysis.
In this activity, the coding of the web system will be carried out for its correct
operation, such as programming the navigation menu, the action buttons and
processes that allow the desired results for the report as well as the desired
graphs. The programming will be carried out on the visual studio 2010
development platform, with the Asp.net language assisted by the visual
basic.net language.
4.6.-UNIT TEST
This activity will consist of performing routine tests on each of the modules
according to their development to verify their correct functioning. These tests
consist of how, in the case of the save button, you actually enter the data
previously typed by the user into the data manager. (SQLserver) for storage.
This activity will consist of delimiting each field to a certain number of characters
that only allow valid characters for each of them. This activity will be carried out
on each of the pages.
4.8.-TEST DEVELOPMENT
In this activity, the manual will be created that will allow users to ask any
questions regarding the operation of the web portal, thus visualizing the possible
actions that it will allow them.
5.1.-INFORMATION COLLECTION
During the development of this activity, the formulas and steps to calculate each
of the indices were obtained, as well as the way in which each of them is
calculated. ( See Annex A. )
During this activity, the result was that the company loses a lot of man's time in
the preparation of its report, determining that this process can become semi-
automatic by creating a web system to save time poorly invested in this activity
to the use of this in other activities that can help be a more productive company.
During this section, the results obtained were the creation of eight modules that
allow the correct relationship of hierarchies within the CFE business structure.
5.4.-SYSTEM SCREENS
In most windows there are the New, Search, Save, Update and Delete buttons.
The search, new and save buttons are enabled for all roles assigned to the
system, but the update and delete buttons will only be activated for the users
The index upload screen is the one that allows you to bulk add index values by
simply selecting the file and pressing the upload file button.
The DEVO screen presents the values already calculated by processes and by
agencies.
Imports System.Data.SqlClient
Imports System.Runtime.InteropServices
Public Class ClsConectaBD
#Region "Variables"
Dim strCad As String = "user id=commission; pwd=cfe; Data
Source=127.0.0.1; Initial Catalog=workprogram"
#EndRegion
#Region "Methods"
Public Function ConnBD() As SqlConnection
Dim Conn As SqlConnection
Conn = New SqlConnection (strCad)
If Conn.State = Data. ConnectionState .Closed Then 'If closed
Conn.Open() ' Open it
End If
Return Conn
End Function
#EndRegion
End Class
Code fragment to obtain data in a general or specific way from the database
It will have another project called business, this project will also contain class
files. It is a class library type project and allows you to reuse code to establish
what types of SQL queries you want to execute. These queries will only change
because of the name of the tables, the name of the fields as well as their
number, but the structure is the same for each of the cases, said query can be
prepared in the simplest way permitted or even as complex as permitted.
Example of business code for the SQL statements that will be used for the split
page operation.
Imports System.Data
Public Class ClsDivision
#Region "Variables"
Dim DataAccess As New DataAccess. ClsDataAccess
#EndRegion
This function allows you to enter data into the divisions table
This function allows you to consult all the data that exists in a specific table
This function allows you to search for a specific record in a specific table
“DEVELOPMENT AND IMPLEMENTATION OF A WEB PORTAL FOR MONITORING THE DETERMINATION OF
VALUES AND OBJECTIVES (DEVO)”
Federal Electricity Commission (CFE)
52
Public Function SearchSpecName( ByVal key As String ) As DataTable
Dim dtx As DataTable = New DataTable
dtx = AccData.GetData( "Select * From tbl_division Where division_key='" &
key & " '" )
Return dtx
End Function
#EndRegion
End Class
The web pages are made up of a programming language called visual basic.net,
an HTML markup language and Cascading Style Sheets (Css) that allow you to
manipulate the properties of each of the components made in HTML.
Fragment of code that allows the data contained in a file to be loaded into a
system component called detatable for manipulation and processing.
Imports System.IO
Imports System.Data
Imports System.Data.OleDb
Public Module utilities
Public Enum FlatFileType
Delimited
Fixed
End Enum
da.Fill(dt)
End Using
End Using
The unit tests consisted of checking each of the actions established for the web
pages, in one of which the following error can be found.
This error appears when the name of any of the fields in the table to be queried
is misspelled. This error was corrected by comparing each of the fields created
in the database and the field names written in the query used.
Error loading empty fields. This error arises when data is omitted in a text field
and it is necessary to convert it into a numerical value. This error was solved
with the implementation of the following code
End if
This code ensures that the text box (txtkey) is not an empty field, otherwise a
message will be sent saying “The division key has not been entered.”
The results obtained during this stage were satisfactory due to the validation of
these characteristics, the system can work without errors when creating the
connections and saving the required data.
Fig 5.8 Sample screen where the test of adding a new user is done.
The results of this section were satisfactory when verifying the correct
functioning of the system in each of the characteristics that comprise the
system.
The user manual shows the activities that can be carried out in the web system (
See Annex B )
The initial objective set out in the project was to carry out and Implementation of
a Web System for the Monitoring of Determination of Values and Objectives
(DEVO) in CFE Villahermosa Zone. In general, each system, regardless of its
area of application, reflects that there are needs in the management of
information, as well as the automation of processes to facilitate the services and
work performance of each of its collaborators.
According to the results obtained from the system, it can be concluded that it
meets the general objective of this study. Since the project was created and
implemented in a satisfactory manner for the company, it was completely
satisfied with the work carried out.
Below are some important points that should be taken into account when using
the web system:
4. Perform a manual follow-up and compare it with the one provided with the
system to verify its correct operation.
5. Keep the server active so that end users can use the system at any time.
If the need arises to maintain the server, provide a message that the
server is under maintenance to avoid any displeasure with users.
PÉREZ, López César (2008) MySQL for Windows and Linux. Alfaomega
Publishing House, Mexico City
Introduction
The DEVO web system is a web-based system, this system was developed to
facilitate the development of the activity of creating the monthly report since it
was a very tedious activity for the people who are in charge of carrying out this
activity, which is why it was I make this system.
The system will allow you to create the hierarchy structure that exists in the
company based on the division section, zone, agency, users, indexes and goals
because each agency, which is the lowest level of the company's structure
hierarchy, can vary its indicators. and goals.
Access screen
To access the system already installed on one of the servers, click the start
button and select the browser (Internet Explorer) installed on the computer and
write the following in the address bar :
10.18.80.83/devo/acceso.aspx and pressing the enter button will direct you to
the following screen.
If the data entered is incorrect, the fields will be cleared, that is, the same page
will be displayed requesting the input data. Otherwise, our system will go to the
following screen.
Division Page
Allows you to
prepare everything
to insert a new
record and enable
the save button
Allows you to delete a specific
record, it is enabled when you
perform a search and it exists
Displays data for a
specific desired division
DEVO Page
This page shows the results obtained per month by each of the agencies, in
each of the indices that belong to it, the report is based on the set of agencies
that form the same area.