You are on page 1of 109

INTRODUCTION

A Cable Distribution System is a software which allows to cable distributer to provide cable connection for any consumer, through this s/w the cable distributer can work frequently and easily to handle consumers in own Network for a long time. This software automatically calculates total connection and indicates the total price including channels record and consumer details. This s/w reduces the page work and also saves the more precious time. Now days in such a busy schedule, distribution of disc cable has become hectic task the administrator should be able to add and update records and related information such as channel, consumer and distributed salaries of its own employees. The consumer should be able to register him/herself with the cable distribution system, enter personal profile information (name, address, and credit card information and make happy. Cable Distribution system is software, which allows channel distributer to accept orders for multiple channels by consumer. This software has many special features which provide our customer a convenient way to communicate and provide frequently bill of each month.

Cable Distribution System

AIM OF PROJECT

The scope of the pro!ect is the system on which the software is installed, i.e. the pro!ect is developed as a desktop application, and it will work for a particular "isc #able "istribution #enter.

NEED OF PROJECT
The purpose of developing #able "istribution management system is to computeri$ed the tradition way of taking disc purpose for managing this software is to generate the report automatically at the end of the session or in the between of the session

OPERATING SYSTEM
Cable Distribution System 2

%indows &' is an operating system used to develop this pro!ect. %indows, in computer science is a common or (street) name for *icrosoft %indows, a graphical user interface environment that runs on *+,"os computers. %indows provide a standard interface based on drop,down menus, screen windows and pointing device such as mouse. 'rograms must be specially designed to take advantage of these features. %indows &' is a family of -.,bit processor and operating system produced by *icrosoft for use on personal computers, including home and business desktops, notebook computers and media centers. The name &' stands for e/perience. %indows &' is the successor to both %indows .000 'rofessional and %indows *1, and is the first consumer oriented operating system produced by *icrosoft. 2t was first released on .3 4ctober .005. 2t is succeeded by %indows 6ista. The most common editions of the operating system are %indows &' home edition, which is targeted at home users and &' professional, which offers additional features such as support for %indows +erver domains and two physical processors, and is targeted at power users, business and enterprise clients. %indows &' *edia #enter 1dition has additional multimedia features enhancing the ability to record and watch T6 shows, view "6" movies, and listen to music.

INTODUCTION OF SQL SERVER

Cable Distribution System

+78 server 9.0 represents one of *icrosoft:s ma!or investments and strategic components along with the window NT version called windows .000 as a definite attempt to enter the market of corporate application. The new +78 server is a completely new version that breaks the links with the original product:s source code based on +ybase +78 severs. 6ersion 9:s interface brought many innovations and ease of use incorporating at the same time sophisticated tools for the power user. %ith this product *icrosoft intends to approach and gain an important market share in the data warehousing mobile computer and e,commerce sectors. 481 "; substitutes the "; library as an internal interface for all of +78 server:s internal operations allowing the use of heterogeneous queries that use the +78 server:s processor to run the queries made to the server store engine. The product is now much easier to operate due to the changes in the interface and the e/tensive use of wi$ards to perform many administrative tasks. +calability is one of its strengths which make it competitive with the main products of the corporate market. The product database was designed to run on systems ranging from a notebook running %indows <3 to multiprocessing machines running application of terabytes in clusters. +78 server 9 is a relational database designed to support applications with client/server architecture in which the database is resident in a central computer called a server with information shared by several users that run applications in their local computers or clients.

FEASIBILITY STUDY

Cable Distribution System

=easibility study is a study to e/amine the viability of taking on a pro!ect. A feasibility study takes place during the pro!ect initiation phase and is made before significant e/penses are engaged. 2t typically includes technical, economical and operational aspects. The conclusion will determine if the production decision can be made and is used for financial arrangements. An important outcome of the preliminary investigation phase is the determination of the fact that the system under consideration is feasible and it meets the efficiency criterion, the workability standards and also the user:s needs. The main goal of feasibility study is to solve the problem but to achieve the scope of the system. 2n the feasibility study is to serve as the decision document, it must answer three questions> 5. 2f there is a new ? better way to do the !ob that will benefit the user. .. %hat are the cost ? savings of the alternatives@ -. %hat is recommended@

TECHNICAL FEASIBILITY: - Technical feasibility centers on e/isting


computer system i.e. hardware and software and to what e/tend it can support the proposed addition. 2t consists of two things i.e. practical and reasonable solution. Proposed technical and practical support: - it looks for hardware and software feasibility of the department and the outcome i.e. the solution fulfills the needs of the department and also weather the minimum hardware and software requirements are available to the department. The solution will be appropriate because the proposed outcome will overcome the present drawbacks.

OPERATIONAL FEASIBILITY: - 2t will include analysis of skill and


labor requirements needed to implement the system. =or the system to be
Cable Distribution System 5

operationally feasible, the department should run preliminary training classes for its users and employs to make the employs familiar with the system.2t is very clear that the new automated system will work more efficiently and faster. +o the users will certainly accept it, and also if they are being actively involved in the development of the new system. "ue to this fact they will know the system well and will be happy to use a new improved system. +o our system is operationally feasible. After the feasibility study has been done and it is found to be feasible, the management will approve the pro!ect.

ECONOMIC FEASIBILITY: - 1conomic analysis is the most frequently


method for evaluating the effectiveness of a candidate system. *ore commonly known as cost/benefits analysis, the procedure is to determine the benefits ? savings that are e/pected from a candidate system. 2t is based on giving answers to some questions like>, Aow soon benefits be e/pected@ %hat risks are involved, if the system is implemented@ etc. 2f the answers to the above questions are found to positive, the system is ready for implementation.

Cable Distribution System

HARDWARE REQUIREMENT
Technology Used:8anguage>,6;.N1T ;ackend>,*+,Access System Requirement:*inimum BA*>,.3C *; Aard "isk>,D0 E; 'rocessor>,2ntel 'entium D 4perating +ystem>,%indows &' +ervice 'ack. Overview:Attendance *anagement +ystem basically has two main modules for proper functioning F =irst module is admin which has right for creating space for new batch. Any entry of new faculty, Gpdating in +ub!ect if necessary and sending notice. F +econd module is handled by the user which can be a =aulty or an operator. Gser has a right of making daily Attendance, generating report.

Cable Distribution System

LANGUAGE USED
Introduction To .Net Frame orm The *icrosoft .Net =ramework is a platform that provides tools and technologies you need to build Networked Applications as well as "istributed %eb +ervices and %eb Applications. The .Net =ramework provides the necessary compile time and run,time foundation to build and run any language that conforms to the #ommon 8anguage +pecification (#8+ .The main two components of .Net =ramework are #ommon 8anguage Buntime (#8B and .Net =ramework #lass 8ibrary (=#8 . The #ommon 8anguage Buntime (#8B is the runtime environment of the .Net =ramework that e/ecutes and manages all running code like a 6irtual *achine. The .Net =ramework #lass 8ibrary (=#8 is a huge collection of language,independent and type,safe reusable classes. The .Net =ramework #lass 8ibraries (=#8 is arranged into a logical grouping according to their functionality and usability is called Namespaces. 2n the following sections describes how to .Net =ramework manages the code in compile time and run time.

Cable Distribution System

!rchitecture o .Net Framewor" #ommon $anguage Runtime The #ommon 8anguage Buntime (#8B is an 1/ecution 1nvironment. 2t works as a layer between 4perating +ystems and the applications written in .Net languages that conforms to the #ommon 8anguage +pecification (#8+ . The main function of #ommon 8anguage Buntime (#8B is to convert the *anaged #ode into native code and then e/ecute the 'rogram. The *anaged #ode compiled only when it needed, that is it converts the appropriate instructions when each function is called. The #ommon 8anguage Buntime (#8B Hs Iust 2n time (I2T compilation converts 2ntermediate 8anguage (*+28 to native code on demand at application run time. "uring the e/ecution of the program ,the #ommon 8anguage Buntime (#8B manages memory, Thread e/ecution, Earbage #ollection (E# , 1/ception Aandling, #ommon Type +ystem (#T+ , code safety verifications, and other system services. The #8B (#ommon 8anguage Buntime defines the #ommon Type +ystem (#T+ , which is a standard type system used by all .Net languages. That means all .N1T programming languages uses the same representation for common "ata Types , so #ommon 8anguage Buntime (#8B is a language,independent runtime environment. The #ommon 8anguage Buntime (#8B environment is also referred to as a managed environment, because during the e/ecution of a program it also controls the interaction with the 4perating +ystem. 2n the coming section you can see what are the main functions of #ommon 8anguage Buntime (#8B .

Cable Distribution System

#ommon $anguage S%eci ication #ommon 8anguage +pecification (#8+ is a set of basic language features that .Net 8anguages needed to develop Applications and +ervices , which are compatible with the .Net =ramework. %hen there is a situation to communicate 4b!ects written in different .Net #omplaint languages , those ob!ects must e/pose the features that are common to all the languages . #ommon 8anguage +pecification (#8+ ensures complete interoperability among applications, regardless of the language used to create the application. #ommon 8anguage +pecification (#8+ defines a subset of #ommon Type +ystem (#T+ . #ommon Type +ystem (#T+ describes a set of types that can use different .Net languages have in common, which ensure that ob!ects written in different languages can interact with each other. *ost of the members defined by types in the .N1T =ramework #lass 8ibrary (=#8 are #ommon 8anguage +pecification (#8+ compliant Types. *oreover #ommon 8anguage +pecification (#8+ standardi$ed by 1#*A.

#ommon Ty%e System #ommon Type +ystem (#T+ describes a set of types that can be used in different .Net languages in common. That is, the #ommon Type +ystem (#T+ ensure that ob!ects written in different .Net languages can interact with each other. =or #ommunicating between programs written in any .N1T complaint language, the types have to be compatible on the basic level. These types can be 6alue Types or Beference Types. The 6alue Types are passed by values and stored in the stack. The Beference Types are passed by references and stored in the heap. #ommon Type +ystem (#T+ provides base set of "ata Types which is responsible for cross language integration. The #ommon 8anguage Buntime (#8B can load and e/ecute the source code written in any .Net lan ua e! only i" t#e ty$e is described in t#e Common %y$e System &C%S' .(ost o" t#e members de"ined by ty$es in t#e .N)% *ramewor+ Class ,ibrary &*C,' are Common ,an ua e S$eci"ication &C,S' com$liant %y$es.

Cable Distribution System

1-

&icroso t Intermediate $anguage *+28 stands for *icrosoft 2ntermediate 8anguage. %e can call it as 2ntermediate 8anguage (28 or #ommon 2ntermediate 8anguage (#28 . "uring the compile time, the compiler convert the source code into *icrosoft 2ntermediate 8anguage (*+28 .*icrosoft 2ntermediate 8anguage (*+28 is a #'G,independent set of instructions that can be efficiently converted to the native code. "uring the runtime the #ommon 8anguage Buntime (#8B Hs Iust 2n time (I2T compiler converts the *icrosoft 2ntermediate 8anguage (*+28 code into native code to the 4perating +ystem. %hen a compiler produces *icrosoft 2ntermediate 8anguage (*+28 , it also produces *etadata. The *icrosoft 2ntermediate 8anguage (*+28 and *etadata are contained in a portable e/ecutable ('1 file. *icrosoft 2ntermediate 8anguage (*+28 includes instructions for loading, storing, initiali$ing, and calling methods on ob!ects, as well as instructions for arithmetic and logical operations, control flow, direct memory access, e/ception handling, and other operations

'ust In Time #om%iler The .Net languages, which is conforms to the #ommon 8anguage +pecification (#8+ , uses its corresponding runtime to run the application on different 4perating +ystems. "uring the code e/ecution time, the *anaged #ode compiled only when it is needed, that is it converts the appropriate instructions to the native code for e/ecution !ust before when each function is called. This process is called Iust 2n time (I2T compilation, also known as "ynamic Translation. %ith the help of Iust 2n time #ompiler (I2T the #ommon 8anguage Buntime (#8B doing these tasks. The #ommon 8anguage Buntime (#8B provides various Iust 2n Time compilers (I2T and each works on a different architecture depending on 4perating +ystem. That is why the same *icrosoft 2ntermediate 8anguage (*+28 can be e/ecuted on different 4perating +ystems without rewrite the source code. Iust 2n time (I2T compilation preserves memory and save time during application initiali$ation. Iust 2n time (I2T compilation is used to run
Cable Distribution System 11

at high speed, after an initial phase of slow interpretation. Iust 2n time #ompiler (I2T code generally offers far better performance than interpreters. Net Framewor" #lass $i(rary )F#$* The .Net =ramework class library (=#8 provides the core functionality of .Net =ramework architecture. The .Net =ramework #lass 8ibrary (=#8 includes a huge collection of reusable classes, interfaces, and value types that e/pedite and optimi$e the development process and provide access to system functionality. The .Net =ramework class library (=#8 organi$ed in a hierarchical tree structure and it is divided into Namespaces. Namespaces is a logical grouping of types for the purpose of identification. =ramework class library (=#8 provides the consistent base types that are used across all .N1T enabled languages. The #lasses are accessed by namespaces, which reside within Assemblies. The +ystem Namespace is the root for types in the .N1T =ramework. The .Net =ramework class library (=#8 classes are managed classes that provide access to +ystem +ervices. The .Net =ramework class library (=#8 classes are ob!ect oriented and easy to use in program developments. *oreover, third,party components can integrate with the classes in the .N1T =ramework.

.Net !ssem(ly *icrosoft .Net Assembly is a logical unit of codeJ it contains code that the #ommon 8anguage Buntime (#8B e/ecutes. Assembly is really a collection of types and resource information that are built to work together and form a logical unit of functionality. "uring the compile time *etadata is created! wit# (icroso"t .ntermediate ,an ua e &(S.,'! and stored in a "ile called a (ani"est . /ot# (etadata and (icroso"t .ntermediate ,an ua e &(S.,' to et#er wra$$ed in a 0ortable )1ecutable &0)' "ile. (ani"est contains in"ormation about itsel". %#is in"ormation is called 2ssembly *anifest, it contains information about the members, types, references and all the other data that the runtime needs for e/ecution.
Cable Distribution System 12

1very Assembly you create contains one or more program files and a *anifest. There are two types: program files> 'rocess Assemblies (1&1 and 8ibrary Assemblies ("88 . 1ach Assembly can have only one entry point (that is, "ll*ain, %in *ain, or *ain . %e can create two types of Assembly, 'rivate Assembly and shared Assembly. A private Assembly is used only by a single application, and usually it is stored in that applicationHs install directory. A shared Assembly is one that can be referenced by more than one application. 2f multiple applications need to access an Assembly, we should add the Assembly to the Elobal Assembly #ache (EA# .

+ow to &icroso t .Net Framewor" *icrosoft .Net 8anguages +ource #ode is compiled into *icrosoft 2ntermediate 8anguage (*+28 . *+28 we can call it as 2ntermediate 8anguage (28 or #ommon 2ntermediate 8anguage (#28 . *icrosoft 2ntermediate 8anguage (*+28 is a #'G independent set of instructions that can be converted to the native code. *etadata also created in the course of compile time with *icrosoft 2ntermediate 8anguage (*+28 and stored it with the compiled code. *etadata is completely self,describing. *etadata is stored in a file called *anifest, and it contains information about the members, types, references and all the other data that the #ommon 8anguage Buntime (#8B needs for e/ecution. The #ommon 8anguage Buntime (#8B uses metadata to locate and load classes, generate native code, provide security, and e/ecute *anaged #ode. ;oth *icrosoft 2ntermediate 8anguage (*+28 and *etadata assembled together is known as 'ortable 1/ecutable ('1 file. 'ortable 1/ecutable ('1 is supposed to be portable across all -.,bit operating systems by *icrosoft .Net =ramework. "uring the runtime the #ommon 8anguage Buntime (#8B Hs Iust 2n Time (I2T compiler converts the *icrosoft 2ntermediate 8anguage (*+28 code into native code to the 4perating +ystem. The native code is 4perating +ystem independent and this code is known as *anaged #ode , that is, the languageHs functionality is managed by the .N1T =ramework . The #ommon 8anguage Buntime (#8B provides various Iust 2n Time (I2T compilers, and each works on a different architecture depends on 4perating +ystems,
Cable Distribution System 13

that means the same *icrosoft 2ntermediate 8anguage (*+28 can be e/ecuted on different 4perating +ystems. 2n the following section you can see how #ommon 8anguage Buntime (#8B functions.

Cable Distribution System

14

"escription of 6isual ;asic.N1T 6 i s u a l ; a s i c . N 1 T i s a * i c r o s o f t , cr e a t e d o b ! e c t , or i e n t e d ' r o gr a m m i n g l a n g u a g e w h i c h i n c o r p o r a t e s f e a t ur e s o f * i c r o s o f t H s . N 1 T = r a m e w o r k a n d % e b + er v i c e s , s u c h a s + 4 A , w h i c h w e r e originally developed using &*8. 6isual ;asic.N1T, which thought would be a KsequelK to 6isual ;asic C.0, has a totally different language core. There is no b a c k w a r d n o r f or w a r d c o m p a t i b i l i t y b e t w e e n 6 i s u a l ; a s i c C . 0 pro!ects and code and 6isual ;asic.N1T pro!ects and code. 6isual ; a s i c . N 1 T i s a l a n g u a g e d e s i g n e d t o c r e a t e . N1 T a p p l i c a t i o n s , %indows or %eb applications, and %eb +ervices. (1/cept for short %indows applications, these are topics beyond a first s e m e s t e r p r o gr a m m i n g c l a s s . O(,ect-Oriented -rogramming. OOT h e d e v e l o p e r s o f t h e l a n g u a g e i n c o r p o r a t e d o b ! e c t , or i e n t e d p r o gr a m m i n g ( 4 4' features such as inheritance, method overloading, organi$ed e/ception handling, and free threading to m a k e 6 i s u a l ; a s i c a p o w e r f u l o b ! e c t , or i e n t e d p r o gr a m m i n g language. ('rior versions were e/tensible from the very beginning. T h e n e w e r o b! e c t , o r i e n t e d p r o gr a m m i n g ( 4 4 ' features of 6isual ;asic.N1T are not usually covered in a first s e m e s t e r p r o gr a m m i n g c l a s s . /ra%hical User Inter ace. /UI %ith 6isual ;asic.N1T an 1mployee can drag ob!ects from t h e T o o l b o / i n t o t h e % or k a r e a , s p e c i f y t h e 'r o p e r t i e s a n d behavior of each ob!ect and thereby create business applications w h i l e l e a r n i n g t h e p r o gr a m m i n g p r i n c i p l e s t a u g h t d u r i n g m o s t s h o r t 2 n t r o d u c t i o n t o 6 i s u a l ; a s i c . N 1 T p r o gr a m m i n g c o u r s e s . T h e
Cable Distribution System 15

1mployee will not have to deal with trying to program the user interface using code. 0indows !-I There is abstraction of the hardware, meaning that a p r o gr a m m e r o f 6 i s u a l ; a s i c . N 1 T d o e s n o t h a v e t o k n o w a b o u t t h e i n n e r w o r k i n g s o f t h e h ar d w a r e b e c a u s e % i n d o w s h a n d l e s t h e functionality of the hardware, provides generic routines ( % i n d o w s A' 2 , o r A p p l i c a t i o n 'r o g r a m m i n g 2 n t e r f a c e to c o m m u n i c a t e w i t h h ar d w a r e dr i v e r s p r o v i d e d b y h ar d w a r e manufacturers. +istory o 1isual 2asic

;efore 6isual ;asic> # and #LL were used to create %indows applications and this was a complicated process. 5 < < 5 , * i c r o s o f t r e l e a s e d 6 i s u a l ; a s i c 5 . 0 J ' r o gr a m m e r s could KdrawK upon their own Gser 2nterface. ;usiness p r o b l e m s c o u l d b e s o l v e d w i t h t h e q u i c k l y cr e a t e d a p p l i c a t i o n . # o d e w a s wr i t t e n b y t h e p r o g r a m m er t o r e a c t t o user events (how a user responded to ob!ects on the Gser 2nterface . N o v 5 < < . , 6 i s u a l ; a s i c . > 2 n c l u d e d a 'r o f e s s i o n a l 1 d i t i o n , * " 2 = o r m s , 4 " ; # , a n d o b ! e c t v ar i a b l e s . I u n e 5 < < - , 6 i s u a l ; a s i c - > 1 n a b l e d t h e b u i l d i n g of d a t a b a s e a p p l i c a t i o n s w i t h " a t a A c c e s s 4 b ! e c t s ( " A 4 J 48 1 Automation and the Iet (Access 1ngine . 4ct 5<<C , 6isual ;asic D> 2ntroduced classes, 4&#Hs, and a l l o w e d pr o g r a m m er s t o c r e a t e t h e i r o w n a d d, i n s . April 5<<9 , 6isual ;asic 3> 'rogrammers could target features of %indows <3. Added a compiler and the ability f or a pr o g r a m m e r t o c r e a t e A c t i v e & # o n t r o l s .
16

Cable Distribution System

4ct 5<<M , 6isual ;asic C> 2ntroduced Active& "ata 4b!ects (A"4 to manipulate data, create data sources. This was to h e l p pr o g r a m m e r s u s e A c t i v e + er v e r ' a g e s t o a c c e s s d a t a b a s e o b ! e c t s . ( 6 ; C w a s i n c l u d e d w i t h 6 i s u a l +t u d i o C.0 =eb .00. , 6isual ;asic.N1T %hat is 6isual ;asic.N1T@ , 6isual ;asic.N1T .00- (and 6isual +tudio .00, 6isual ;asic.N1T .003 (and 6isual +tudio .003

12.N3T 4ata Ty%es 4!T!T5-3 in a programming language describes that what type of data a variable can hold. %hen we declare a variable, we have to tell the compiler about what type of the data the variable can hold or which data type the variable belongs to. Synta6: "im 6ariable Name as "ata Type 1aria(le Name: the variable we declare for hold the values. 4ata Ty%e: The type of data that the variable can hold 12.N3T sam%le: Dim count As Integer Count: is the variable name Integer: is the data type The above e/ample shows, declare a variable HcountH for holding integer values. 2n the variable count we can hold the integer values in
Cable Distribution System 17

The range of ,.,5D9,DM-,CDM to L.,5D9,DM-,CD9. The following are the some of commonly using data types in vb.net. 2oolean 2oolean variables are stored 5C bit numbers and it can hold only True or false. V !"#$ %untime type: System! oolean V !"#$ declaration: dim chec& as oolean V !"#$ Initiali'ation: chec& ( )alse V !"#$ de)ault initiali'ation value: )alse Integer Integer variables are stored signed -. bit integer values in the range of ,.,5D9,DM-,CDM to L.,5D9,DM-,CD9 V !"#$ %untime type: System!Int*+ V !"#$ declaration: dim count as Integer V !"#$ Initiali'ation: count ( ,-V !"#$ de)ault initiali'ation value: String String variables are stored any number of alphabetic, numerical, and special characters. 2ts range from 0 to appro/imately . billion Gnicode characters. V !"#$ %untime type: System! String V !"#$ declaration: Dim str As String V !"#$ Initiali'ation: str ( .String $est. V !"#$ de)ault initiali'ation value: "othing 2n 6isual;asic.Net we can convert a data type in two ways. Im%licit #onversion and 36%licit conversion. Also we can convert a type value to a reference and
Cable Distribution System 18

reference value to a type value. These are called 2o6ing and un2o6ing. ;o/ing referes value type to reference type and unbo/ing, reference type of value type.

Cable Distribution System

19

Entity Relati n!"i# Dia$%a& 'E(R(D)

C#annel3na me

C#annel3 id

,an ua e

Channe l
*re4uenc y Com$any3n ame

5ate

Cable Distribution System

2-

Nam e

Customer 3id

%ransaction3 no

2mou nt

Contect3 no

Custome r

Connectio n3no

5e6enue

2ddress

%otal3 rate %otal3c#a nnel

Customert3na me

Date

Cable Distribution System

21

Cable Distribution System

22

7ender *at#er3na me 7ender


)m$loyee3 name

)m$loyee 3id

Contect 3no

2ddre ss

(obile3 no 8oin3da te 2ddr ess

)m$loy ee

)m$loy ee3id

Salary

Sala ry

9uali"icat ion

Sala ry

Da te

:ea r (ont #

TABLE STRUCTURE
Cable Distribution System 23

C"annel
Column Name
C#annel3id C#annel3name ,an ua e "re4uency Com$any3nam e rate

Data Type
.nt 6arc#ar 6arc#ar nc#ar 6arc#ar int

Siz e
4.55254.-

Cable Distribution System

24

C*!t &e%

Column Name
Customer3id Name Contect3no 2ddress Connection3no %otal3c#annel %otal3rate

Data Type
numeric ;arc#ar numeric N6arc#ar Numeric ;arc#ar Numeric

Size
6!518!518!518!-

Cable Distribution System

25

E&#l yee
Column Name
)m$loyee3id )m$loyee3name *at#er3name 7ender (obile3no 8oin3date 2ddress 9uali"ication Salary

Data Type
int C#ar C#ar C#ar Numeric ;arc#ar ;arc#ar ;arc#ar Numeric

Size
4 22118!55518!-

Re+en*e

Cable Distribution System

26

Column Name
%ransaction3no Connection3no C3name Date 2mount

Data Type
numeric numeric c#ar ;arc#ar numeric

Size
18!18!2518!-

Sala%y
Column Name
)m$loyee3id
Cable Distribution System

Data Type
Numeric

Size
18!27

)m$loyee3name 7ender Contect3no Date (ont# :ear Salary 2ddress

;arc#ar ;arc#ar Numeric ;arc#ar .nt .nt Numeric ;arc#ar

5518!54 4 18!5-

Data,a!e De!i$n

Cable Distribution System

28

Cable Distribution System

29

S/S$#0 D#SI1"S A system is a way of thinking about organi$ations and their problems. 2t also involves a set of techniques that helps in solving problems. +ystem analysis and design focus on systems, processes, and technology. +ystem analysis and design are keyed to the life cycle. , Becognition of need for change. =easibility study. Analysis of the present system. "esign of a candidate system. Testing and implementation of the system. 'ost,implementation. %ecognition o) "eed: 4ne must know what the problem is before it can be solved. The idea for change originates in the environment or from within the firm. 4nce the problem is verified, an initial investigation is conducted to determine whether change is feasible. 2easibility Study: 2t is a procedure that identifies, describes, and evaluates candidate systems and selects the best system for the !ob. Three key considerations are involved in the feasibility analysis> , #conomic )easibility: 1conomic analysis is the most frequently used method for evaluating the effectiveness of a candidate system. The procedure is to determine the benefits and savings that are e/pected from a candidate system and compare them with costs. 2f benefits outweigh costs, then the decision is made to design and implement the system.

$echnical )easibility:
Cable Distribution System 3-

Technical feasibility centers on the e/isting computer system (hardware, software, etc. and to what e/tent it can support the proposed addition. ehavioral )easibility: 'eople are inherently resistant to change, and computers have been known to facilitate change. 2t is common knowledge that computer installations have something to do with turnover, transfers, retraining, and changes in employee !ob status. Therefore, it is understandable that the introduction of a candidate system requires special efforts to educate, sell, and train the staff on new ways of conducting business. Steps in )easibility analysis: =easibility analysis involves eight steps> =orm a pro!ect team and appoint a pro!ect leader 'repare system flowcharts. 1numerate potential candidate systems. "escribe and identify characteristics of candidate systems. "etermine and evaluate performance and cost effectiveness of each candidate system. %eight system performance and cost data. +elect the best candidate system. 'repare and report final pro!ect directive to management.

Cable Distribution System

31

DATA FLOW DIGRAM


Star t ,o in "o (D .

No :es

C#anne l

Connecti on
8oin

)m$loye e
0ay

:es

No %ransacti on
Custom er

5e$or t

2dd (odi" y S#ow Delet e

8oin <$dat e S#ow Custome r


,ea6e

<$date Detail

Salary

)m$loye e C#anne /ill Salary

8un+

)1it

Cable Distribution System

32

O*t#*t - #% .e/t
L $in S/%een

Cable Distribution System

33

M0i Win0 1

Cable Distribution System

34

C"annel A00 Win0 1

C"annel M 0i-y Win0 1


Cable Distribution System 35

C"annel S" 1 Win0 1


Cable Distribution System 36

C"annel Delete Win0 1

Cable Distribution System

37

C*!t &e% A00 Win0 1

Cable Distribution System

38

C*!t &e% M 0i-y Win0 1

Cable Distribution System

39

C*!t &e% S" 1 Win0 1

Cable Distribution System

4-

C*!t &e% Delete Win0 1

Cable Distribution System

41

E&#l yee A00 Win0 1

Cable Distribution System

42

E&#l yee M 0i-y Win0 1

Cable Distribution System

43

E&#l yee S" 1 Win0 1

Cable Distribution System

44

E&#l yee Delete Win0 1

Cable Distribution System

45

Cable Distribution System

46

T%an!a/ti n Bill Win0 1

T%an!a/ti n Sala%y Win0 1


Cable Distribution System 47

C*!t &e% Re# %t Win0 1


Cable Distribution System 48

E&#l yee Re# %t Win0 1

Cable Distribution System

49

C"annel Re# %t Win0 1

Cable Distribution System

5-

Bill Re# %t Win0 1

Cable Distribution System

51

Cable Distribution System

52

Sala%y Re# %t Win0 1

Cable Distribution System

53

A, *t U! Win0 1

Cable Distribution System

54

C 0in$ - P% .e/t
Wel/ &e 1in0 1
Public Class passw Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' (e)tBo)1.(e)t * +pari+ And (e)tBo),.(e)t * +password+ (-en Pro#ressBar1."nabled * (rue (imer1."nabled * (rue (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)1..ocus($ /s#Bo)(+welcome+! /s#Bo)Style.&n'ormation$ mdiparent_'orm.S-ow($ /e.%ide($ "lse /s#Bo)(+sorry invalid password+$ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)1..ocus($ "nd &' "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub (imer1_(ick(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles (imer1.(ick Pro#ressBar1.Visible * (rue &' Pro#ressBar1.Value 0 111 (-en Pro#ressBar1.Value 2* 1 "lse
Cable Distribution System 55

(imer1."nabled * .alse "nd &' "nd Sub "nd Class

Cable Distribution System

56

MDI 1in0 1
Public Class mdiparent_'orm Private Sub C-annel(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles C-annel(oolStrip/enu&tem.Click c-annel_add./diParent * /e c-annel_add.S-ow($ "nd Sub Private Sub Customer(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Customer(oolStrip/enu&tem.Click c-annel_delete./diParent * /e c-annel_delete.S-ow($ "nd Sub Private Sub S-ow(oolStrip/enu&tem_Click_1(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles S-ow(oolStrip/enu&tem.Click c-annel_s-ow./diParent * /e c-annel_s-ow.S-ow($ "nd Sub Private Sub /odi'y(oolStrip/enu&tem3_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /odi'y(oolStrip/enu&tem3.Click c-annel_modi'y./diParent * /e c-annel_modi'y.S-ow($ "nd Sub Private Sub 4oin(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 4oin(oolStrip/enu&tem.Click customer_add./diParent * /e customer_add.S-ow($ "nd Sub Private Sub 5pdate(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 5pdate(oolStrip/enu&tem.Click customer_modi'y./diParent * /e customer_modi'y.S-ow($ "nd Sub
Cable Distribution System 57

Private Sub S-owCustomer(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles S-owCustomer(oolStrip/enu&tem.Click customer_s-ow./diParent * /e customer_s-ow.S-ow($ "nd Sub Private Sub 6eleav(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 6eleav(oolStrip/enu&tem.Click customer_del./diParent * /e customer_del.S-ow($ "nd Sub Private Sub 4oin(oolStrip/enu&tem1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 4oin(oolStrip/enu&tem1.Click emp_add./diParent * /e emp_add.S-ow($ "nd Sub Private Sub 7etail(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 7etail(oolStrip/enu&tem.Click emp_s-ow./diParent * /e emp_s-ow.S-ow($ "nd Sub Private Sub 4unk(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 4unk(oolStrip/enu&tem.Click emp_delete./diParent * /e emp_delete.S-ow($ "nd Sub Private Sub 7elet(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 7elet(oolStrip/enu&tem.Click emp_modi'y./diParent * /e emp_modi'y.S-ow($ "nd Sub Private Sub Bill(oolStrip/enu&tem1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Bill(oolStrip/enu&tem1.Click
Cable Distribution System 58

bill_pay./diParent * /e bill_pay.S-ow($ "nd Sub Private Sub Cascad(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Cascad(oolStrip/enu&tem.Click /e.8ayout/di(/di8ayout.Cascade$ "nd Sub Private Sub (ile(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles (ile(oolStrip/enu&tem.Click /e.8ayout/di(/di8ayout.(ileVertical$ "nd Sub Private Sub Customer(oolStrip/enu&tem1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Customer(oolStrip/enu&tem1.Click cusatomer_report./diParent * /e cusatomer_report.S-ow($ "nd Sub Private Sub C-annel(oolStrip/enu&tem1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles C-annel(oolStrip/enu&tem1.Click c-annel_report./diParent * /e c-annel_report.S-ow($ "nd Sub Private Sub .ont(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ &' .ont7ialo#1.S-ow7ialo# * 9indows..orms.7ialo#6esult.O: (-en "nd &' "nd Sub Private Sub ;ew(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub Cut(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub %elp(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles %elp(oolStrip/enu&tem.Click
Cable Distribution System 59

"nd Sub Private Sub "mploy(oolStrip/enu&tem1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles "mploy(oolStrip/enu&tem1.Click employ_report./diParent * /e employ_report.S-ow($ "nd Sub Private Sub Copy(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub Paste(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub 7elete(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub 5ndo(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub 6edu(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub Select(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub 7elete(oolStrip/enu&tem1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ "nd Sub Private Sub Bill(oolStrip/enu&tem,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Bill(oolStrip/enu&tem,.Click rev_crystal./diParent * /e rev_crystal.S-ow($ "nd Sub Private Sub Payl(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Payl(oolStrip/enu&tem.Click "nd Sub
Cable Distribution System 6-

Private Sub Payment(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Payment(oolStrip/enu&tem.Click salary./diParent * /e salary.S-ow($ "nd Sub Private Sub "mploy(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles "mploy(oolStrip/enu&tem.Click "nd Sub Private Sub Salary(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Salary(oolStrip/enu&tem.Click salary_repo./diParent * /e salary_repo.S-ow($ "nd Sub Private Sub About(oolStrip/enu&tem_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles About(oolStrip/enu&tem.Click About./diParent * /e About.S-ow($ "nd Sub "nd Class

C"annel A00 Win0 1


Public Class c-annel_add 7im r! i As &nte#er 7im c! na! la! co! 'r As Strin# Public Sub 're($ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++
Cable Distribution System 61

(e)tBo)<.(e)t * ++ (e)tBo)=.(e)t * ++ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' /asked(e)tBo)1.(e)t * ++ Or (e)tBo)1.(e)t * ++ Or (e)tBo),.(e)t * ++ Or (e)tBo)3.(e)t * ++ Or (e)tBo)<.(e)t * ++ Or (e)tBo)=.(e)t * ++ (-en /s#Bo)(+please 'ill 'ull in'ormation+! /s#Bo)Style.&n'ormation! +alert+$ "lse op($ c * /asked(e)tBo)1.(e)t na * (e)tBo)1.(e)t la * (e)tBo),.(e)t 'r * Val((e)tBo)3.(e)t$ co * (e)tBo)<.(e)t r * Val((e)tBo)=.(e)t$ &' /s#Bo)(+do you want to add t-is c-annel >+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +insert into c-annel values(+ @ c @ +!A+ @ na @ +A!A+ @ la @ +A!+ @ 'r @ +!A+ @ co @ +A!+ @ r @ +$+ comm.")ecute;onBuery($ conn.Close($ /s#Bo)(+add c-annel success'ully+$ 're($ "nd &' "nd &' op($ comm.Command(e)t * +select ma)(c-annel_id$'rom c-annel+ i * comm.")ecuteScalar i 2* 1 /asked(e)tBo)1.(e)t * i clo($ "nd Sub

Cable Distribution System

62

Private Sub c-annel_add_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad op($ comm.Command(e)t * +select ma)(c-annel_id$'rom c-annel+ i * comm.")ecuteScalar i 2* 1 /asked(e)tBo)1.(e)t * i clo($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub 8abel1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 8abel1.Click "nd Sub "nd Class

C"annel M 0i-y Win0 1


Public Class c-annel_modi'y 7im id! re As &nte#er 7im na! 'r! cm! la As Strin# 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo)1.(e)t * ++
Cable Distribution System 63

(e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ (e)tBo)=.(e)t * ++ (e)tBo)1..ocus($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' (e)tBo),.(e)t * ++ Or (e)tBo)=.(e)t * ++ Or (e)tBo)1.(e)t * ++ Or (e)tBo)3.(e)t * ++ Or (e)tBo)<.(e)t * ++ Or ComboBo)1.(e)t * ++ (-en /s#Bo)(+please select id+! /s#Bo)Style.&n'ormation$ re'($ "lse id * ComboBo)1.(e)t na * (e)tBo)1.(e)t la * (e)tBo),.(e)t 'r * (e)tBo)3.(e)t cm * (e)tBo)<.(e)t re * (e)tBo)=.(e)t op($ &' /s#Bo)(+7o you want to modi'y t-is record+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +update c-annel set c-annel_;ame* A+ @ (e)tBo)1.(e)t @ +A! lan#ua#e* A+ @ (e)tBo),.(e)t @ +A! 'reCuency* A+ @ (e)tBo)3.(e)t @ +A! company_name* A+ @ (e)tBo)<.(e)t @ +A! rate* + @ (e)tBo)=.(e)t @ + w-ere c-annel_id*+ @ Val(ComboBo)1.(e)t$ @ ++ comm.")ecute;onBuery($ clo($ /s#Bo)(+data modi'y success'ully+$ re'($
Cable Distribution System 64

"nd &' "nd &' "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * +select D 'rom c-annel w-ere c-annel_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+c-annel_id+$ (e)tBo)1.(e)t * r.&tem(+c-annel_name+$ (e)tBo),.(e)t * r.&tem(+lan#ua#e+$ (e)tBo)3.(e)t * r.&tem(+'reCuency+$ (e)tBo)<.(e)t * r.&tem(+company_name+$ (e)tBo)=.(e)t * r.&tem(+rate+$ "nd 9-ile clo($ "nd Sub Private Sub c-annel_modi'y_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad op($ comm.Command(e)t * +select c-annel_id 'rom c-annel+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub "nd Class

Cable Distribution System

65

C"annel S" 1 Win0 1


Public Class c-annel_s-ow 7im r As System.7ata.SClClient.SCl7ata6eader

7im c! na! la! co! 'r As Strin# Public Sub 're($ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ (e)tBo)=.(e)t * ++ "nd Sub Public Sub l_id($ ComboBo)1.&tems.Clear($ op($ comm.Command(e)t * +select c-annel_id 'rom c-annel+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' ComboBo)1.(e)t * ++ (-en /s#Bo)(+Please select id+! /s#Bo)Style.&n'ormation$ "lse op($ comm.Command(e)t * +select D 'rom c-annel w-ere c-annel_id*+ @ Val(ComboBo)1.(e)t$ @ ++r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+c-annel_id+$ (e)tBo)1.(e)t * r.&tem(+c-annel_name+$ (e)tBo),.(e)t * r.&tem(+lan#ua#e+$
Cable Distribution System 66

7im i As &nte#er

(e)tBo)3.(e)t * r.&tem(+'reCuency+$ (e)tBo)<.(e)t * r.&tem(+company_name+$ (e)tBo)=.(e)t * r.&tem(+rate+$ "nd 9-ile clo($ "nd &' "nd Sub Private Sub c-annel_s-ow_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad l_id($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed "nd Sub "nd Class

Cable Distribution System

67

C"annel Delete Win0 1


Public Class c-annel_delete 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub 're($ ComboBo)1.(e)t * ++ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ (e)tBo)=.(e)t * ++ "nd Sub Public Sub l_id($ ComboBo)1.&tems.Clear($ op($ comm.Command(e)t * +select c-annel_id 'rom c-annel+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub Button1_Click_1(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' (e)tBo)1.(e)t * ++ Or (e)tBo),.(e)t * ++ Or (e)tBo)3.(e)t * ++ Or (e)tBo)<.(e)t * ++ Or (e)tBo)=.(e)t * ++ (-en
Cable Distribution System 68

/s#Bo)(+please 'ill t-e record+! /s#Bo)Style.&n'ormation$ 're($ "lse op($ &' /s#Bo)(+do you want to delete t-is c-annel >+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +delete 'rom c-annel w-ere c-annel_id*+ @ Val(ComboBo)1.(e)t$ @ ++ comm.")ecute;onBuery($ /s#Bo)(+delete success'ully+$ "nd &' clo($ 're($ "nd &' l_id($ "nd Sub Private Sub c-anel_del_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad l_id($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * (+select D 'rom c-annel w-ere c-annel_id *+ @ Val(ComboBo)1.(e)t$ @ ++$ r * comm.")ecute6eader 9-ile r.6ead
Cable Distribution System 69

ComboBo)1.(e)t * r.&tem(+c-annel_id+$ (e)tBo)1.(e)t * r.&tem(+c-annel_name+$ (e)tBo),.(e)t * r.&tem(+lan#ua#e+$ (e)tBo)3.(e)t * r.&tem(+'reCuency+$ (e)tBo)<.(e)t * r.&tem(+company_name+$ (e)tBo)=.(e)t * r.&tem(+rate+$ "nd 9-ile clo($ ComboBo)1.(e)t * ++ "nd Sub Private Sub EroupBo)1_"nter(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles EroupBo)1."nter "nd Sub "nd Class

/*!t &e% A00 Win0 1


Public Class customer_add 7im id! co! mr! tc! cn As 7ouble 7im ci! cc As &nte#er 7im na! adr As Strin#
Cable Distribution System 7-

Public Sub load_id($ op($ comm.Command(e)t * +select /a)(customer_id$ 'rom customer+ ci * comm.")ecuteScalar ci 2* 1 (e)tBo)1.(e)t * ci clo($ "nd Sub Public Sub lod_con($ op($ comm.Command(e)t * +select /a)(connection_no$ 'rom customer+ cc * comm.")ecuteScalar cc 2* 1 (e)tBo)3.(e)t * cc clo($ "nd Sub Public Sub re'($ (e)tBo)1.(e)t * ++ /asked(e)tBo)1.(e)t * ++ (e)tBo)3.(e)t * ++ /asked(e)tBo)3.(e)t * ++ /asked(e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub O:_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles O:.Click &' (e)tBo),.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ Or (e)tBo)3.(e)t * ++ Or /asked(e)tBo)3.(e)t * ++ Or 6ic-(e)tBo)1.(e)t * ++ Or /asked(e)tBo)<.(e)t * ++ (-en /s#Bo)(+please 'ill t-e 'orm +$ re'($ "lse id * Val((e)tBo)1.(e)t$ na * (e)tBo),.(e)t co * /asked(e)tBo)1.(e)t cn * (e)tBo)3.(e)t mr * /asked(e)tBo)3.(e)t
Cable Distribution System 71

tc * /asked(e)tBo)<.(e)t adr * 6ic-(e)tBo)1.(e)t op($ &' /s#Bo)(+7o you want to save t-is record+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +insert into customer values(+ @ id @ +!A+ @ na @ +A!+ @ cn @ +!A+ @ adr @ +A!+ @ co @ +!+ @ tc @ +!+ @ mr @ +$+ comm.")ecute;onBuery($ clo($ /s#Bo)(+data store success'ully+$ "nd &' re'($ load_id($ "nd &' "nd Sub Private Sub Button<_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button<.Click Close($ "nd Sub Private Sub customer_add_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad load_id($ lod_con($ "nd Sub Private Sub (e)tBo)1_(e)tC-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles (e)tBo)1.(e)tC-an#ed "nd Sub Private Sub 8abel<_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles 8abel<.Click "nd Sub "nd Class

Cable Distribution System

72

Cable Distribution System

73

C*!t &e% M 0i-y Win0 1


Public Class customer_modi'y 7im id! cn! co! tc! tr As 7ouble 7im na! ad As Strin# 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub re'($ ComboBo)1.(e)t * ++ /asked(e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ (e)tBo),.(e)t * ++ ComboBo)1..ocus($ "nd Sub Private Sub customer_modi'y_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad op($ comm.Command(e)t * +select customer_id 'rom customer+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Private Sub O:_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles O:.Click &' (e)tBo),.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ Or /asked(e)tBo),.(e)t * ++ Or /asked(e)tBo)3.(e)t * ++ Or 6ic-(e)tBo)1.(e)t * ++ Or /asked(e)tBo)<.(e)t * ++ (-en /s#Bo)(+please select id+$ re'($ "lse id * Val(ComboBo)1.(e)t$ na * (e)tBo),.(e)t
Cable Distribution System 74

co * /asked(e)tBo)1.(e)t cn * /asked(e)tBo),.(e)t tc * /asked(e)tBo)3.(e)t tr * /asked(e)tBo)<.(e)t ad * 6ic-(e)tBo)1.(e)t op($ &' /s#Bo)(+7o you want to modi'y t-is record >+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +update customer set Customer_id* + @ ComboBo)1.(e)t @ +! ;ame* A+ @ (e)tBo),.(e)t @ +A! contect_no* + @ /asked(e)tBo)1.(e)t @ +! Address* A+ @ 6ic-(e)tBo)1.(e)t @ +A! connection_no* + @ /asked(e)tBo),.(e)t @ +! total_c-annels* + @ /asked(e)tBo)3.(e)t @ +! total_rate* + @ /asked(e)tBo)<.(e)t @ + w-ere Customer_id*+ @ Val(ComboBo)1.(e)t$ @ ++ comm.")ecute;onBuery($ clo($ /s#Bo)(+data modi'y success'ully+$ "nd &' re'($ "nd &' "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * +select D 'rom customer w-ere customer_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+customer_id+$ (e)tBo),.(e)t * r.&tem(+name+$ /asked(e)tBo)1.(e)t * r.&tem(+contect_no+$ 6ic-(e)tBo)1.(e)t * r.&tem(+address+$ /asked(e)tBo),.(e)t * r.&tem(+connection_no+$ /asked(e)tBo)3.(e)t * r.&tem(+total_c-annels+$ /asked(e)tBo)<.(e)t * r.&tem(+total_rate+$
Cable Distribution System 75

"nd 9-ile clo($ "nd Sub Private Sub Button<_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button<.Click Close($ "nd Sub "nd Class

Cable Distribution System

76

C*!t &e% S" 1 Win0 1


Public Class customer_s-ow 7im id! co! cn! mr! tc As 7ouble 7im ci As &nte#er 7im na! adr As Strin# 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub load_id($ op($ comm.Command(e)t * +select customer_id 'rom customer+ r * comm.")ecute6eader ComboBo)1.&tems.Clear($ 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo),.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ /asked(e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub Button<_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button<.Click Close($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed re'($ "nd Sub

Cable Distribution System

77

Private Sub customer_s-ow_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad load_id($ "nd Sub Private Sub O:_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles O:.Click &' ComboBo)1.(e)t * ++ (-en /s#Bo)(+Please select id+$ "lse op($ comm.Command(e)t * +select D 'rom customer w-ere customer_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+customer_id+$ (e)tBo),.(e)t * r.&tem(+name+$ /asked(e)tBo)1.(e)t * r.&tem(+contect_no+$ 6ic-(e)tBo)1.(e)t * r.&tem(+address+$ /asked(e)tBo),.(e)t * r.&tem(+connection_no+$ /asked(e)tBo)3.(e)t * r.&tem(+total_c-annels+$ /asked(e)tBo)<.(e)t * r.&tem(+total_rate+$ "nd 9-ile clo($ "nd &' "nd Sub "nd Class

Cable Distribution System

78

C*!t &e% Delete Win0 1


Public Class customer_del 7im id! co! cn! mr! tc As 7ouble 7im ci As &nte#er 7im na! adr As Strin# 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub load_id($ op($ comm.Command(e)t * +select customer_id 'rom customer+ r * comm.")ecute6eader ComboBo)1.&tems.Clear($ 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo),.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ /asked(e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub Button<_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button<.Click Close($ "nd Sub Private Sub O:_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles O:.Click &' (e)tBo),.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ Or /asked(e)tBo),.(e)t * ++ Or /asked(e)tBo)3.(e)t * ++ Or 6ic-(e)tBo)1.(e)t * ++ Or /asked(e)tBo)<.(e)t * ++ (-en
Cable Distribution System 79

/s#Bo)(+please select id+! /s#Bo)Style.&n'ormation$ re'($ "lse op($ &' /s#Bo)(+7o you want to delete record+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +delete 'rom customer w-ere Customer_id* + @ Val(ComboBo)1.(e)t$ @ ++ comm.")ecute;onBuery($ clo($ /s#Bo)(+data delete success'ully+$ "nd &' re'($ load_id($ "nd &' load_id($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * +select D 'rom customer w-ere customer_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+customer_id+$ (e)tBo),.(e)t * r.&tem(+name+$ /asked(e)tBo)1.(e)t * r.&tem(+contect_no+$ 6ic-(e)tBo)1.(e)t * r.&tem(+address+$ /asked(e)tBo),.(e)t * r.&tem(+connection_no+$ /asked(e)tBo)3.(e)t * r.&tem(+total_c-annels+$ /asked(e)tBo)<.(e)t * r.&tem(+total_rate+$ "nd 9-ile clo($ "nd Sub
Cable Distribution System 8-

Private Sub customer_del_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad load_id($ "nd Sub "nd Class

Cable Distribution System

81

E&#l yee A00 Win0 1


Public Class emp_add 7im e_id! mo_no! ci As &nte#er 7im e_na! Cu! sa! aa! _da! '_na! #e As Strin# Public Sub load_id($ op($ comm.Command(e)t * +select ma)(employee_id$ 'rom emp+ ci * comm.")ecuteScalar ci 2* 1 (e)tBo)1.(e)t * ci clo($ "nd Sub Public Sub re'($ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' (e)tBo)<.(e)t * ++ Or (e)tBo),.(e)t * ++ Or (e)tBo),.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ Or /asked(e)tBo),.(e)t * ++ Or /asked(e)tBo)3.(e)t * ++ Or 6ic-(e)tBo)1.(e)t * ++ Or (e)tBo)3.(e)t * ++ (-en /s#Bo)(+please 'ill t-e 'orm +! /s#Bo)Style.&n'ormation$ re'($ "lse &' 6adioButton1.C-ecked * (rue (-en #e * 6adioButton1.(e)t "lse #e * 6adioButton,.(e)t
Cable Distribution System 82

"nd &' e_id * Val((e)tBo)1.(e)t$ e_na * (e)tBo),.(e)t '_na * (e)tBo)3.(e)t mo_no * /asked(e)tBo)1.(e)t _da * /asked(e)tBo),.(e)t aa * 6ic-(e)tBo)1.(e)t Cu * (e)tBo)<.(e)t sa * Val(/asked(e)tBo)3.(e)t$ op($ &' /s#Bo)(+7o you want to save t-is record+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +insert into emp values(A+ @ e_id @ +A!A+ @ e_na @ +A!A+ @ '_na @ +A!A+ @ #e @ +A!+ @ mo_no @ +!A+ @ _da @ +A!A+ @ aa @ +A!A+ @ Cu @ +A!+ @ sa @ +$+ comm.")ecute;onBuery($ clo($ /s#Bo)(+data store success'ully+$ "nd &' re'($ load_id($ "nd &' "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub emp_add_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad load_id($ 6adioButton1.C-ecked * (rue "nd Sub "nd Class

E&#l yee M 0i-y Win0 1


Public Class emp_modi'y
Cable Distribution System 83

7im r As System.7ata.SClClient.SCl7ata6eader 7im e_id! mo_no! sa As &nte#er 7im e_na! '_na! #e! _da! aa! Cu As Strin# Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub emp_modi'y_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad op($ comm.Command(e)t * +select employee_id 'rom emp+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Private Sub Button1_Click_1(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' (e)tBo)<.(e)t * ++ Or (e)tBo),.(e)t * ++ Or (e)tBo),.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ Or /asked(e)tBo),.(e)t * ++ Or /asked(e)tBo)3.(e)t * ++ Or 6ic-(e)tBo)1.(e)t * ++ Or (e)tBo)3.(e)t * ++ (-en /s#Bo)(+please select t-e id+$ re'($ "lse op($
Cable Distribution System 84

&' /s#Bo)(+7o you want to save t-is record+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +update emp set employee_name*A+ @ (e)tBo),.(e)t @ +A! 'at-er_name*A+ @ (e)tBo)3.(e)t @ +A! #ender*A+ @ (e)tBo)1.(e)t @ +A! mobile_no*+ @ /asked(e)tBo)1.(e)t @ +! oin_date* A+ @ /asked(e)tBo),.(e)t @ +A! address* A+ @ 6ic-(e)tBo)1.(e)t @ +A!Cuali'ication*A+ @ (e)tBo)<.(e)t @ +A!salary*+ @ /asked(e)tBo)1.(e)t @ + w-ere employe_id*+ @ Val(ComboBo)1.(e)t$ @ ++ comm.")ecute;onBuery($ clo($ /s#Bo)(+data modi'y success'ully+$ "nd &' re'($ "nd &' "nd Sub Private Sub Button,_Click_1(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed_1(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * +select D 'rom emp w-ere employee_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+employee_id+$ (e)tBo),.(e)t * r.&tem(+employee_name+$ (e)tBo)3.(e)t * r.&tem(+'at-er_name+$ (e)tBo)1.(e)t * r.&tem(+#ender+$ /asked(e)tBo)1.(e)t * r.&tem(+mobile_no+$ /asked(e)tBo),.(e)t * r.&tem(+ oin_date+$ 6ic-(e)tBo)1.(e)t * r.&tem(+address+$ (e)tBo)<.(e)t * r.&tem(+Cuali'ication+$ /asked(e)tBo)3.(e)t * r.&tem(+salary+$ "nd 9-ile
Cable Distribution System 85

clo($ "nd Sub "nd Class

Cable Distribution System

86

E&#l yee S" 1 Win0 1


Public Class emp_s-ow 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' ComboBo)1.(e)t * ++ (-en /s#Bo)(+Please select id+$ "lse op($ comm.Command(e)t * +select D 'rom emp w-ere employee_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+employee_id+$ (e)tBo),.(e)t * r.&tem(+employee_name+$ (e)tBo)3.(e)t * r.&tem(+'at-er_name+$ (e)tBo)1.(e)t * r.&tem(+#ender+$ /asked(e)tBo)1.(e)t * r.&tem(+mobile_no+$
Cable Distribution System 87

/asked(e)tBo),.(e)t * r.&tem(+ oin_date+$ 6ic-(e)tBo)1.(e)t * r.&tem(+address+$ (e)tBo)<.(e)t * r.&tem(+Cuali'ication+$ /asked(e)tBo)3.(e)t * r.&tem(+salary+$ "nd 9-ile clo($ "nd &' "nd Sub Private Sub emp_s-ow_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad op($ comm.Command(e)t * +select employee_id 'rom emp+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed re'($ "nd Sub "nd Class

Cable Distribution System

88

E&#l yee Delete Win0 1


Public Class emp_delete 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub lo_id($ op($ comm.Command(e)t * +select employee_id 'rom emp+ r * comm.")ecute6eader ComboBo)1.&tems.Clear($ 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ /asked(e)tBo)1.(e)t * ++ /asked(e)tBo),.(e)t * ++ /asked(e)tBo)3.(e)t * ++ (e)tBo)<.(e)t * ++ 6ic-(e)tBo)1.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' (e)tBo)<.(e)t * ++ Or (e)tBo),.(e)t * ++ Or (e)tBo),.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ Or /asked(e)tBo),.(e)t * ++ Or /asked(e)tBo)3.(e)t * ++ Or 6ic-(e)tBo)1.(e)t * ++ Or (e)tBo)3.(e)t * ++ (-en /s#Bo)(+please select t-e id+! /s#Bo)Style.&n'ormation$ re'($ "lse op($
Cable Distribution System 89

&' /s#Bo)(+7o you want to delete record+! /s#Bo)Style.?es;o$ * /s#Bo)6esult.?es (-en comm.Command(e)t * +7elete 'rom emp w-ere employee_id* + @ Val(ComboBo)1.(e)t$ @ ++ comm.")ecute;onBuery($ clo($ /s#Bo)(+data delete success'ully+$ "nd &' re'($ "nd &' lo_id($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * +select D 'rom emp w-ere employee_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.(e)t * r.&tem(+employee_id+$ (e)tBo),.(e)t * r.&tem(+employee_name+$ (e)tBo)3.(e)t * r.&tem(+'at-er_name+$ (e)tBo)1.(e)t * r.&tem(+#ender+$ /asked(e)tBo)1.(e)t * r.&tem(+mobile_no+$ /asked(e)tBo),.(e)t * r.&tem(+ oin_date+$ 6ic-(e)tBo)1.(e)t * r.&tem(+address+$ (e)tBo)<.(e)t * r.&tem(+Cuali'ication+$ /asked(e)tBo)3.(e)t * r.&tem(+salary+$ "nd 9-ile clo($ "nd Sub Private Sub emp_delete_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad op($ comm.Command(e)t * +select employee_id 'rom emp+ r * comm.")ecute6eader
Cable Distribution System 9-

9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click "nd Sub "nd Class

Cable Distribution System

91

Bill Ge%ati n
Public Class bill_pay 7im tn! cn! am! ci As &nte#er 7im nc! da As Strin# 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo)1.(e)t * ++ (e)tBo),.(e)t * ++ /asked(e)tBo)1.(e)t * ++ (e)tBo)1..ocus($ "nd Sub Public Sub load_id($ op($ comm.Command(e)t * +select /a)(transaction_no$ 'rom revanue+ ci * comm.")ecuteScalar ci 2* 1 (e)tBo)1.(e)t * ci clo($ "nd Sub Public Sub ld_id($ op($ comm.Command(e)t * +select connection_no 'rom customer+ r * comm.")ecute6eader 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Public Sub lld_id($ op($ comm.Command(e)t * +select ;ame 'rom customer w-ere connection_no*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead (e)tBo),.(e)t * r.&tem(+;ame+$.(oStrin# "nd 9-ile
Cable Distribution System 92

clo($ "nd Sub Private Sub Button1_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button1.Click &' ComboBo)1.(e)t * ++ Or 7ate(imePicker1.(e)t * ++ Or /asked(e)tBo)1.(e)t * ++ (-en /s#Bo)(+please 'ill t-e 'orm +! /s#Bo)Style.&n'ormation! +alert+$ re'($ "lse tn * (e)tBo)1.(e)t cn * ComboBo)1.(e)t nc * (e)tBo),.(e)t da * 7ate(imePicker1.Value.(oStrin# am * /asked(e)tBo)1.(e)t op($ /s#Bo)(+7o you want save t-is record >+! /s#Bo)Style.Buestion$ comm.Command(e)t * +insert into revanue values(+ @ tn @ +!+ @ cn @ +!A+ @ nc @ +A!A+ @ da @ +A!+ @ am @ +$+ comm.")ecute;onBuery($ clo($ /s#Bo)(+data store success'ully+$ /e.7ataEridView1.6e'res-($ /e.6evanue(ableAdapter..ill(/e.Cable7ataSet.revanue$ re'($ "nd &' load_id($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed
Cable Distribution System 93

op($ comm.Command(e)t * +select ;ame 'rom customer w-ere connection_no*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead (e)tBo),.(e)t * r.&tem(+name+$.(oStrin# "nd 9-ile clo($ "nd Sub Private Sub bill_pay_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad /e.6evanue(ableAdapter..ill(/e.Cable7ataSet.revanue$ load_id($ ld_id($ lld_id($ "nd Sub "nd Class

Cable Distribution System

94

Sala%y Gene%ate Win0 1


public Class salary 7im i! ci As &nte#er 7im s As 7ouble 7im #! d As Strin# 7im rr As &nte#er 7im r As System.7ata.SClClient.SCl7ata6eader Public Sub lod_id($ op($ comm.Command(e)t * +select employee_id 'rom salary+ r * comm.")ecute6eader ComboBo)1.&tems.Clear($ 9-ile r.6ead ComboBo)1.&tems.Add(r.&tem(1$$ "nd 9-ile clo($ "nd Sub Public Sub re'($ ComboBo)1.(e)t * ++ (e)tBo),.(e)t * ++ (e)tBo)<.(e)t * ++ (e)tBo),..ocus($ "nd Sub Private Sub Button,_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button,.Click Close($ "nd Sub Private Sub ComboBo)1_Selected&nde)C-an#ed(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles ComboBo)1.Selected&nde)C-an#ed op($ comm.Command(e)t * +select #ender!salary 'rom emp w-ere employee_id*+ @ Val(ComboBo)1.(e)t$ @ ++ r * comm.")ecute6eader 9-ile r.6ead
Cable Distribution System 95

(e)tBo),.(e)t * r.&tem(+#ender+$.(oStrin# "nd 9-ile clo($ "nd Sub Private Sub salary_8oad(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles /yBase.8oad lod_id($ "nd Sub Private Sub Button3_Click(ByVal sender As System.Ob ect! ByVal e As System."ventAr#s$ %andles Button3.Click 7im mont-! mm! yy As &nte#er mont- * ;ow./ontyy * ;ow.?ear /s#Bo)(mont- @ yy$ &' ComboBo)1.(e)t * ++ Or 7ate(imePicker1.(e)t * ++ Or (e)tBo)<.(e)t * ++ (-en /s#Bo)(+please 'ill t-e 'orm +! /s#Bo)Style.&n'ormation! +alert+$ re'($ "lse 7im cnt As &nte#er i * Val(ComboBo)1.(e)t$ # * (e)tBo),.(e)t d * 7ate(imePicker1.(e)t s * (e)tBo)<.(e)t op($ comm.Command(e)t * +select count(D$ 'rom salary w-ere employee_id*+ @ Val(ComboBo)1.(e)t$ @ + and mont-*+ @ mont- @ + and year*+ @ yy @ ++ cnt * comm.")ecuteScalar &' cnt * 1 (-en op($ comm.Command(e)t * +insert into salary values(+ @ i @ +!A+ @ # @ +A!A+ @ d @ +A!+ @ mont- @ +!+ @ yy @ +! + @ s @ +$+ comm.")ecute;onBuery($ /s#Bo)(+Salary Paid (o employee +$
Cable Distribution System 96

"lse /s#Bo)(+6Fc Already ")ist+$ "nd &' lod_id($ "nd &' conn.Close($ "nd Sub "nd Class

C"annel Re# %t Win0 1


&mports System.7ata.SClClient &mports System.7ata Public Class c-annel_report Public comm As ;ew SClCommand Public conn As ;ew SClConnection Public adp As ;ew SCl7ataAdapter Public ds As ;ew 7ataSet Public rp, As ;ew Crystal6eport, Private Sub c-annel_report_8oad(ByVal sender As Ob ect! ByVal e As System."ventAr#s$ %andles /e.8oad conn.ConnectionStrin# * +7ata Source*.GSB8"HP6"SSIAttac-7b.ilename*.JGso'twareGcable. md'I&nte#rated Security*(rueIConnect (imeout*31I5ser &nstance*(rue+ conn.Open($ comm.Connection * conn comm.Command(e)t * +select D 'rom c-annel+ adp.SelectCommand * comm adp..ill(ds! +c-annel+$ rp,.Set7ataSource(ds$ Crystal6eportViewer1.6eportSource * rp, conn.Close($ "nd Sub "nd Class

C*!t &e% Re# %t Win0 1


Cable Distribution System 97

&mports System.7ata.SClClient &mports System.7ata Public Class cusatomer_report Public comm As ;ew SClCommand Public conn As ;ew SClConnection Public adp As ;ew SCl7ataAdapter Public ds As ;ew 7ataSet 7im rp1 As ;ew Crystal6eport1 Private Sub cusatomer_report_8oad(ByVal sender As Ob ect! ByVal e As System."ventAr#s$ %andles /e.8oad conn.ConnectionStrin# * +7ata Source*.GSB8"HP6"SSIAttac-7b.ilename*.JGso'twareGcable. md'I&nte#rated Security*(rueIConnect (imeout*31I5ser &nstance*(rue+ conn.Open($ comm.Connection * conn comm.Command(e)t * +select D 'rom customer+ adp.SelectCommand * comm adp..ill(ds! +customer+$ rp1.Set7ataSource(ds$ Crystal6eportViewer1.6eportSource * rp1 conn.Close($ "nd Sub "nd Class

Cable Distribution System

98

E&#l yee Re# %t Win0 1


&mports System.7ata.SClClient &mports System.7ata Public Class employ_report Public comm As ;ew SClCommand Public conn As ;ew SClConnection Public adp As ;ew SCl7ataAdapter Public ds As ;ew 7ataSet 7im rp3 As ;ew Crystal6eport3 Private Sub employ_report_8oad(ByVal sender As Ob ect! ByVal e As System."ventAr#s$ %andles /e.8oad conn.ConnectionStrin# * +7ata Source*.GSB8"HP6"SSIAttac-7b.ilename*.JGso'twareGcable. md'I&nte#rated Security*(rueIConnect (imeout*31I5ser &nstance*(rue+ conn.Open($ comm.Connection * conn comm.Command(e)t * +select D 'rom emp+ adp.SelectCommand * comm adp..ill(ds! +emp+$ rp3.Set7ataSource(ds$ ri.6eportSource * rp3 conn.Close($ "nd Sub "nd Class

Bill Re# %t Win0 1


Cable Distribution System 99

&mports System.7ata.SClClient &mports System.7ata Public Class rev_crystal Public comm As ;ew SClCommand Public conn As ;ew SClConnection Public adp As ;ew SCl7ataAdapter Public ds As ;ew 7ataSet 7im rp< As ;ew Crystal6eport< Private Sub rev_crystal_8oad(ByVal sender As Ob ect! ByVal e As System."ventAr#s$ %andles /e.8oad conn.ConnectionStrin# * +7ata Source*.GSB8"HP6"SSIAttac-7b.ilename*.JGso'twareGcable. md'I&nte#rated Security*(rueIConnect (imeout*31I5ser &nstance*(rue+ conn.Open($ comm.Connection * conn comm.Command(e)t * +select D 'rom revanue+ adp.SelectCommand * comm adp..ill(ds! +revanue+$ rp<.Set7ataSource(ds$ Crystal6eportViewer1.6eportSource * rp< conn.Close($ "nd Sub "nd Class

Sala%y Re# %t Win0 1


&mports System.7ata.SClClient
Cable Distribution System 1--

&mports System.7ata Public Class salary_repo Public comm As ;ew SClCommand Public conn As ;ew SClConnection Public adp As ;ew SCl7ataAdapter Public ds As ;ew 7ataSet 7im rp= As ;ew Crystal6eport= Private Sub salary_repo_8oad(ByVal sender As Ob ect! ByVal e As System."ventAr#s$ %andles /e.8oad conn.ConnectionStrin# * +7ata Source*.GSB8"HP6"SSIAttac-7b.ilename*.JGso'twareGcable. md'I&nte#rated Security*(rueIConnect (imeout*31I5ser &nstance*(rue+ conn.Open($ comm.Connection * conn comm.Command(e)t * +select D 'rom salary+ adp.SelectCommand * comm adp..ill(ds! +salary+$ rp=.Set7ataSource(ds$ Crystal6eportViewer1.6eportSource * rp= conn.Close($ "nd Sub "nd Class

TESTING
They are unseeing two type of technology .+oftware testing methods are traditionally divided into white, and black,bo/ testing. These two approaches are
Cable Distribution System 1-1

used to describe the point of view that a test engineer takes when designing test cases. 0hite (o6 testing 0hite (o6 testing is when the tester has access to the internal data structures and algorithms including the code that implement these. Types of white bo/ testing The following types of white bo/ testing e/ist>

!-I testing (application programming interface , testing of the application using public and private A'2s #ode coverage , #reating tests to satisfy some criteria of code coverage (e.g., the test designer can create tests to cause all statements in the program to be e/ecuted at least once many part of code coverage statement coverage ,branch coverage path coverage . Fault in,ection methods , improving the coverage of a test by introducing faults to test code paths then test the application developer seed complier error after that e/ecute program. 2t also called error seeding

&utation testing: - 2t is type of random type of testing and code are used rougf methods. That is region it also called gourila, monkey testing .

Test coverage %hite bo/ testing methods can also be used to evaluate the completeness of a test suite that was created with black bo/ testing methods. This allows the software team to e/amine parts of a system that are rarely tested and ensures that the most important function points have been tested. Two common forms of code coverage are>

=unction coverage, which reports on functions e/ecuted


1-2

Cable Distribution System

+tatement coverage, which reports on the number of lines e/ecuted to complete the test

They both return a code coverage metric, measured as a percentage. 2lac" (o6 testing ;lack bo/ testing treats the software as a Kblack bo/KNwithout any knowledge of internal implementation. ;lack bo/ testing methods include> equivalence partitioning, boundary value analysis, all,pairs testing, fu$$ testing, model,based testing, e/ploratory testing and specification,based testing. S%eci ication-(ased testing> +pecification,based testing aims to test the functionality of software according to the applicable requirements. Thus, the tester inputs data into, and only sees the output from, the test ob!ect. This level of testing usually requires thorough test cases to be provided to the tester, who then can simply verify that for a given input, the output value (or behavior , either KisK or Kis notK the same as the e/pected value specified in the test case. +pecification,based testing is necessary, but it is insufficient to guard against certain risks. /rey (o6 testing Erey bo/ testing (American spelling> gray bo/ testing it is combination of white bo/ testing ? black bo/ testing involves having knowledge of internal data structures and algorithms for purposes of designing the test cases, but testing at the user, or black,bo/ level. *anipulating input data and formatting output do not qualify as grey bo/, because the input and output are clearly outside of the Kblack,bo/K that we are calling the system under test. This distinction is particularly important when conducting integration testing between two modules of code written by two different developers, where only the interfaces are e/posed for test. Aowever, modifying a data repository does qualify as grey bo/, as the user would not normally be able to change the data outside of the system under test. Erey bo/ testing may
Cable Distribution System 1-3

also include reverse engineering to determine, for instance, boundary values or error messages. $esting levels Tests are frequently grouped by where they are added in the software development process, or by the level of specificity of the test. System testing +ystem testing tests a completely integrated system to verify that it meets its requirements. System integration testing +ystem integration testing verifies that a system is integrated to any e/ternal or third,party systems defined in the system requirements. Regression testing Regression testing focuses on finding defects after a ma!or code change has occurred. +pecifically, it seeks to uncover software regressions, or old bugs that have come back. +uch regressions occur whenever software functionality that was previously working correctly stops working as intended. Typically, regressions occur as an unintended consequence of program changes, when the newly developed part of the software collides with the previously e/isting code. #ommon methods of regression testing include re,running previously run tests and checking whether previously fi/ed faults have re,emerged. The depth of testing depends on the phase in the release process and the risk of the added features. !cce%tance testing Acceptance testing can mean one of two things> 5. A smoke test is used as an acceptance test prior to introducing a new build to the main testing process, i.e. before integration or regression.
Cable Distribution System 1-4

.. Acceptance testing performed by the customer, often in their lab environment on their own hardware, is known as user acceptance testing (GAT . Acceptance testing may be performed as part of the hand,off process between any two phases of development. !l%ha testing Alpha testing is simulated or actual operational testing by potential users/customers or an independent test team at the developersH site. Alpha testing is often employed for off,the,shelf software as a form of internal acceptance testing, before the software goes to beta testing. 2eta testing ;eta testing comes after alpha testing and can be considered a form of e/ternal user acceptance testing. 6ersions of the software, known as beta versions, are released to a limited audience outside of the programming team. The software is released to groups of people so that further testing can ensure the product has few faults or bugs. +ometimes, beta versions are made available to the open public to increase the feedback field to a ma/imal number of future users. "on-)unctional testing +pecial methods e/ist to test non,functional aspects of software. 2n contrast to functional testing, which establishes the correct operation of the software (correct in that it matches the e/pected behavior defined in the design requirements , non,functional testing verifies that the software functions properly even when it receives invalid or une/pected inputs. +oftware fault in!ection, in the form of fu$$ing, is an e/ample of non, functional testing. Non,functional testing, especially for software, is designed to establish whether the device under test can tolerate invalid or une/pected inputs, thereby establishing the robustness of input validation routines as well as error,handling routines. 6arious commercial non, functional testing tools are linked from the software fault in!ection pageJ
Cable Distribution System 1-5

there are also numerous open,source and free software tools available that perform non,functional testing. So tware %er ormance testing and load testing 'erformance testing is e/ecuted to determine how fast a system or sub, system performs under a particular workload. 2t can also serve to validate and verify other quality attributes of the system, such as scalability, reliability and resource usage. 8oad testing is primarily concerned with testing that can continue to operate under a specific load, whether that be large quantities of data or a large number of users. This is generally referred to as software scalability. The related load testing activity of when performed as a non,functional activity is often referred to as endurance testing. Sta(ility testing +tability testing checks to see if the software can continuously function well in or above an acceptable period. This activity of non,functional software testing is often referred to as load (or endurance testing. Usability testing Gsability testing is needed to check if the user interface is easy to use and understand. 2t approach towards the use of the application. Security testing Security testin is essential "or so"tware t#at $rocesses con"idential data to $re6ent system intrusion by #ac+ers.

Cable Distribution System

1-6

Li&itati n!

7. This !%%lication Only !rrange !ny Small #a(le 4istri(ution. 8. 0e(s service and online Internet are not availa(le

C n/l*!i n
Cable Distribution System 1-7

0e have made our (est e ort to ul ill the assignment during o the %ro,ect wor". 2ut it needs a lot o time. management and %lanning to com%lete such %ro,ects.

Though we have made quite a ew develo%ments they are always %roviding or instituting on (etter alternatives. !lthough our system is ca%a(le enough to handle most o the unction associated with any 9 Disc cable dist ib!ti"n9. (ut still it requires a large amount o !mendment : develo%ment to co%e u% with the %ractical environment. In the ast changing demands. Other than this system many system can (e designed or satis ying similar requirement : many amendments can also (e done in this system to gather more in ormation.

R3F3R3N#3 #omplete Beference of 6isual ;asic.Net


1-8

Cable Distribution System

#omplete Beference of 6isual #O.Net ;lackbook of #O *+"N help www.dreamcode.com www.codepro!ect.com

Cable Distribution System

1-9

You might also like