Final Year Report - DAIRY MANAGEMENT INFORMATION SYSTEM
Final Year Report - DAIRY MANAGEMENT INFORMATION SYSTEM
(IADCS)
DAIRY MANAGEMENT INFORMATIOM SYSTEM DONE BY: SOLOMON GAI AYUEN Reg No: 00100472
IADCS
August 2011
i
DECLARATION
I Mr. Solomon Gai Ayuen hereby declare that to the best of my knowledge, this work is original and has never been presented or submitted for any academic award in any University or Institution as a whole or in part except where specifically acknowledged. The contents of this project may be made available for academic purpose within ICT/KIST or NCC Education center as KIST Library and may be photocopied or lent to other similar libraries.
Signed by
ii
CERTIFICATE
This is to certify that the project work entitled Dairy Management Information System is a record of the original work done by Mr. Solomon Gai Ayuen Reg No:00100474 in partial fulfillment of the requirements for the award of International Advance Diploma at NCC UK under ICT/Kigali Institute of Science and Technology(KIST), during the academic year 2011.
Signature:
Mr. /Miss /
Supervisor
Mr. GASANA JEROME
iii
DEDICATION
To the almighty God the Father, The Son and The Holy spirit for all the grace during my studies. To my parents and brothers Elijah Mabior Bol, Chagai Bol Yout for all their support in terms of finance, advice, cares, several to mention but a few. To my Mother, brothers and sisters for all their support. To all my friends and classmates at KIST/ NCC Education. By Solomon Gai Ayuen
iv
ACKNOWLEDGEMENT
I special thanks to the Almighty God who protected me until now and from whom Wisdom and knowledge comes. I heartedly give greatly thanks to the Government of Rwanda and Government of South Sudan for their cooperation to give me this opportunity which accorded me the financial support and oriented me to KIST. I cannot forget to thanks KIST administration and the whole KIST community for their uncountable support during those years. I would also like to thanks our supervisor GASANA JEROME for his guidance and support during my project research. Special thanks also to Elijah Mabior for all his support and Chagai Bol for his unspeakable support. Not forgettable as my parents, friends that have been so close during our studies. I give special thanks to my classmates who we have collaborated with since we started at KIST to NCC as lecturer Extraordinary appreciation gone to all lecturers but first to ANIL KUMAR and The late NSENGIYUMVA BAPTIST follow by ANICET KAYUMBA, ALPHONES NYANDW, KRADUSENGE MARTIN AND MADAM RITA ZIMURINDA FRANOIS under GASANA JEROME, Through his RITC administration and madam INES, for the quality of programs they have provide to me, lastly I kindly express my gratitude to all my classmates and colleagues for their partnership.
Table of Contents
DECLARATION ........................................................................................................................ i C E R T I F I C A T E ............................................................................................................... iii DEDICATION .......................................................................................................................... iv ACKNOWLEDGEMENT ...........................................................................................................v INTRODUCTION ......................................................................................................................1 ANALYSIS OF THE CURRENT SYSTEM ...............................................................................2 DRAWBACK OF CURRENT SYSTEM ....................................................................................3 ANALYSIS OF PROPOSED SYSTEM ......................................................................................4 BENEFIT OF THE NEW SYSTEM ...........................................................................................5 DATA FLOW DIAGRAM FOR SUGGESTED SYSTEM..........................................................8 SUMMARISED DATA FLOW DIAGRAM ...............................................................................9 DATABASE RELATIONSHIP DIAGRAM ............................................................................. 13 SAMPLE OF THE FORMS ...................................................................................................... 14 IMPLEMENTATION AND TESTING THE DOCUMENTS ................................................... 24 DIARY MANUAL FOR INSTALLATION .............................................................................. 26 Conclusion ................................................................................................................................ 27 Recommendation ...................................................................................................................... 28 Electronic References ................................................................................................................ 30 References on Books ................................................................................................................. 30 Appendix Abbreviations............................................................................................................ 30
vi
INTRODUCTION
The Dairy management information system is for enterprise application in Rwanda-Nyamirambo Dairy shop management technology system. It will be working alone on this project and plan to have it completed by end of December 2011. I am flexible to all suggestions you may have to improve my project, and I promise to keep in touch with you about its status. I hope to hear from you about the approval of my project proposal. Through review and the use of C#, SQL Server 2005. This software has helped to enables us to input customers records to view and save on this system will compile and keep personal records relevant to the database, record data for each customer.
2. Location Details
2.1. Location ID: These fields display the identity of location. 2.2. Area Name: These fields display the Area name of location. 2.3. Street: These fields display the Street identity of location. 2.4. Address: These fields display the Address of location. 2.5. Telephone: These fields display the Telephone of location. 2.6. Search Buttons: this field displaying searching information
3. Building Details
3.1. 3.2. 3.3. 3.4. 3.5. 3.6. 3.7. Building ID: These fields display the identity of Building. Area Name: These fields display the Area name identity of Building Street: These fields display the Street identity of Building Telephone: These fields display the Telephone of Building Address: These fields display the Address of Building Search Buttons: this field displaying searching information Navigation Buttons: display next and pervious information etc.
4. Milk Details
4.1. 4.2. 4.3. 4.4. 4.5. Milk ID: These fields display the identity of Milk. Specification: These fields display the specification of Milk. Product Name: These fields display the product name identity. Milking Date: These fields display the production date of Milk. Expire Date: These fields displays expire date identity of Milk.
5
Unit Price: These fields display the price of Milk. Quantity: These fields display the quantity of Milk. Product Name: This field displays the production name etc.
5. Customer Details
5.1. 5.2. 5.3. 5.4. 5.5. 5.6. 5.7. 5.8. 5.9. 5.10. 5.11. Customer ID: These fields display the identity of Customer. First Name: These fields display the name of Customer Sex: These fields display the sex of Customer. Age: These fields display the age of Customer. Address: These fields display the address of Customer. Search Buttons: this field displaying searching information. Navigation Buttons: display next and pervious information. Save Buttons: adding information to database Update Buttons: this field is for editing to the database Delete Buttons: This field is removing the data from database Exit Buttons: This field is for logging off the form.
6. Employee Details
6.1. 6.2. 6.3. 6.4. 6.5. 6.6. 6.7. 6.8. Employee ID: This fields display the identity of Employee. First Name: This fields display the identity of Employee. Position: This fields display the post of Employee. Title: This fields display the title of Employee. Sex: This fields display the sex of Employee. Age: This fields display the age of Employee. Address: This fields display the address of Employee. Search Buttons: this field displaying searching.
7. Supplier Details
7.1. 7.2. 7.3. 7.4. 7.5. 7.6. 7.7. 7.8. 7.9. 7.10. Supplier ID: This fields display the identity of Supplier. First Name: This fields display the name of Supplier. Product Name: This fields display the product name of milk. Milking Date: This fields display the production date of milk. Unit Price: This fields display the unit price of milk. Quantity: This fields display the quantity of milk. Expire Date: This fields display expire date of milk. Telephone: This fields display the telephone of Supplier. Address: This fields display the address of Supplier. Search Buttons: this field displaying searching
CustomerInformatin
10
II.
Customer send request to the Dairy management system Dairy management System Respond to their customer request Customer provide their information to the Dairy management system And details are store in database
K- Dairy management System display the list of his suppliers L- Supplier provide his details to the Dairy management system M- Dairy management System registers the record of his customer suppliers N- Supplier has the Dairy management system to supplier with milk
11
A- The milk quantity are on system display B- milk are registered on Dairy management system C- Milksupplier provide his details to Dairy management System D- Dairy management system display record of his Milksupplier
12
13
The MDI form, which demonstrate all files and as when you click on the task bar Menus on the MDI form below it will display the following file contains. as (Multiple document interface)
This is the report which is display above all tables. Supplier Details This form allow you to see the output or the results of your entry as the prove that data is surely save in the database as the same information entered is also seen in the database as showed below
15
namespace DairyShop { public partial class FrmSupplier : Form { bool ver; private SqlConnection ocon; public SqlConnection fcon { set { ocon = value; } get { return (ocon); } } public CurrencyManager ns; public DataView dv; public FrmSupplier() { InitializeComponent(); } private void FrmSupplier_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'dairyShopDataSet11.Supplier' table. You can move, or remove it, as needed. this.supplierTableAdapter.Fill(this.dairyShopDataSet11.Supplier); try { ocon.Close(); ocon.Open(); string c = "select * from Supplier"; SqlDataAdapter da1 = new SqlDataAdapter(c, ocon); DataSet ds1 = new DataSet(); da1.Fill(ds1, "Supplier"); dv = new DataView(ds1.Tables["Supplier"]); dataGridView1.DataSource = dv; ns = (CurrencyManager)BindingContext[dv]; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnSave_Click(object sender, EventArgs e) { try { ocon.Close(); ocon.Open();
16
string com = "exec dbo.ADDSupplier'" + textBox1.Text + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + textBox8.Text + "','" + textBox9.Text + "','" + textBox10.Text + "'"; SqlCommand cmd = new SqlCommand(com, ocon); cmd.ExecuteNonQuery(); cmd.Dispose(); FrmSupplier_Load(sender, e); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; textBox7.Text = ""; textBox8.Text = ""; textBox9.Text = ""; textBox10.Text = ""; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnUpdate_Click(object sender, EventArgs e) { try { string com = "exec updateSupplier'" + textBox1.Text + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + textBox8.Text + "','" + textBox9.Text + "','" + textBox10.Text + "'"; SqlCommand cmd = new SqlCommand(com, ocon); cmd.ExecuteNonQuery(); cmd.Dispose(); FrmSupplier_Load(sender, e); MessageBox.Show(" DATA UPDATE "); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; textBox7.Text = ""; textBox8.Text = ""; textBox9.Text = ""; textBox10.Text = ""; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnDelete_Click(object sender, EventArgs e) { try
17
{ ocon.Close(); ocon.Open(); string a = "exec DelSupplier'" + comboBox1.SelectedValue + "'"; SqlCommand cmd = new SqlCommand(a, ocon); cmd.ExecuteNonQuery(); cmd.Dispose(); FrmSupplier_Load(sender, e); MessageBox.Show(" DATA DELETED "); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; textBox4.Text = ""; textBox5.Text = ""; textBox6.Text = ""; textBox7.Text = ""; textBox8.Text = ""; textBox9.Text = ""; textBox10.Text = ""; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnExit_Click(object sender, EventArgs e) { try { if (MessageBox.Show("are you sure ?", "closing a Form...", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) this.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnSearch_Click(object sender, EventArgs e) { if (comboBox1.Text != "") { string c = "select * from Supplier where SupplierID='" + comboBox1.SelectedValue + "'"; SqlDataAdapter da = new SqlDataAdapter(c, ocon); DataSet ds = new DataSet(); da.Fill(ds, " Supplier"); DataView dv = new DataView(ds.Tables[" Supplier"]); DataTable dt = ds.Tables[" Supplier"]; if (dt.Rows.Count == 0) { MessageBox.Show("record loosed"); textBox1.Focus(); } else {
18
textBox1.DataBindings.Add("text", dv, "SupplierID"); textBox2.DataBindings.Add("text", dv, "FirstName"); textBox3.DataBindings.Add("text", dv, "LastName"); textBox4.DataBindings.Add("text", dv, "ProductName"); textBox5.DataBindings.Add("text", dv, "MilkingDate"); textBox6.DataBindings.Add("text", dv, "UnitPrice"); textBox7.DataBindings.Add("text", dv, "Quantity"); textBox8.DataBindings.Add("text", dv, "ExpireDate"); textBox9.DataBindings.Add("text", dv, "Telephone"); textBox10.DataBindings.Add("text", dv, "Address"); textBox1.DataBindings.Clear(); textBox2.DataBindings.Clear(); textBox3.DataBindings.Clear(); textBox4.DataBindings.Clear(); textBox5.DataBindings.Clear(); textBox6.DataBindings.Clear(); textBox7.DataBindings.Clear(); textBox8.DataBindings.Clear(); textBox9.DataBindings.Clear(); textBox10.DataBindings.Clear(); } } } private void btnBack_Click(object sender, EventArgs e) { try { ocon.Close(); ocon.Open(); if (ver) { string c = "select * from Branch"; SqlDataAdapter da1 = new SqlDataAdapter(c, ocon); DataSet ds1 = new DataSet(); da1.Fill(ds1, "Branch"); DataView dv = new DataView(ds1.Tables["Branch"]); dataGridView1.DataSource = dv; // textBox1.DataBindings.Add("text", dv, "SupplierID"); textBox2.DataBindings.Add("text", dv, "FirstName"); textBox3.DataBindings.Add("text", dv, "LastName"); textBox4.DataBindings.Add("text", dv, "ProductName"); textBox5.DataBindings.Add("text", dv, "MilkingDate"); textBox6.DataBindings.Add("text", dv, "UnitPrice"); textBox7.DataBindings.Add("text", dv, "Quantity"); textBox8.DataBindings.Add("text", dv, "ExpireDate"); textBox9.DataBindings.Add("text", dv, "Telephone"); textBox10.DataBindings.Add("text", dv, "Address"); textBox1.DataBindings.Clear(); textBox2.DataBindings.Clear(); textBox3.DataBindings.Clear();
19
textBox4.DataBindings.Clear(); textBox5.DataBindings.Clear(); textBox6.DataBindings.Clear(); textBox7.DataBindings.Clear(); textBox8.DataBindings.Clear(); textBox9.DataBindings.Clear(); textBox10.DataBindings.Clear(); ns = (CurrencyManager)BindingContext[dv]; ver = false; } ns.Position = 0; textBox11.Text = " saved " System.Convert.ToString(ns.Position + 1) + " to " System.Convert.ToString(ns.Count); MessageBox.Show("THIS IS THE FIRST RECORD IN DATABASE"); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnBack2_Click(object sender, EventArgs e) { try { ocon.Close(); ocon.Open(); if (ver) { string c = "select * from Supplier"; SqlDataAdapter da1 = new SqlDataAdapter(c, ocon); DataSet ds1 = new DataSet(); da1.Fill(ds1, "Supplier"); DataView dv = new DataView(ds1.Tables["Supplier"]); dataGridView1.DataSource = dv; // textBox1.DataBindings.Add("text", dv, "SupplierID"); textBox2.DataBindings.Add("text", dv, "FirstName"); textBox3.DataBindings.Add("text", dv, "LastName"); textBox4.DataBindings.Add("text", dv, "ProductName"); textBox5.DataBindings.Add("text", dv, "MilkingDate"); textBox6.DataBindings.Add("text", dv, "UnitPrice"); textBox7.DataBindings.Add("text", dv, "Quantity"); textBox8.DataBindings.Add("text", dv, "ExpireDate"); textBox9.DataBindings.Add("text", dv, "Telephone"); textBox10.DataBindings.Add("text", dv, "Address"); textBox1.DataBindings.Clear(); textBox2.DataBindings.Clear(); textBox3.DataBindings.Clear(); textBox4.DataBindings.Clear(); textBox5.DataBindings.Clear(); textBox6.DataBindings.Clear(); textBox7.DataBindings.Clear(); + +
20
textBox8.DataBindings.Clear(); textBox9.DataBindings.Clear(); textBox10.DataBindings.Clear(); ns = (CurrencyManager)BindingContext[dv]; ver = false; } ns.Position = ns.Position - 1; textBox11.Text = " saved " System.Convert.ToString(ns.Position + 1) + " to " System.Convert.ToString(ns.Count); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnNext_Click(object sender, EventArgs e) { try { ocon.Close(); ocon.Open(); if (ver) { string c = "select * from Supplier"; SqlDataAdapter da1 = new SqlDataAdapter(c, ocon); DataSet ds1 = new DataSet(); da1.Fill(ds1, "Supplier"); DataView dv = new DataView(ds1.Tables["Supplier"]); dataGridView1.DataSource = dv; // textBox1.DataBindings.Add("text", dv, "SupplierID"); textBox2.DataBindings.Add("text", dv, "FirstName"); textBox3.DataBindings.Add("text", dv, "LastName"); textBox4.DataBindings.Add("text", dv, "ProductName"); textBox5.DataBindings.Add("text", dv, "MilkingDate"); textBox6.DataBindings.Add("text", dv, "UnitPrice"); textBox7.DataBindings.Add("text", dv, "Quantity"); textBox8.DataBindings.Add("text", dv, "ExpireDate"); textBox9.DataBindings.Add("text", dv, "Telephone"); textBox10.DataBindings.Add("text", dv, "Address"); textBox1.DataBindings.Clear(); textBox2.DataBindings.Clear(); textBox3.DataBindings.Clear(); textBox4.DataBindings.Clear(); textBox5.DataBindings.Clear(); textBox6.DataBindings.Clear(); textBox7.DataBindings.Clear(); textBox8.DataBindings.Clear(); textBox9.DataBindings.Clear(); textBox10.DataBindings.Clear(); ns = (CurrencyManager)BindingContext[dv]; ver = false; + +
21
} ns.Position = ns.Count - 1; textBox11.Text = " saved " System.Convert.ToString(ns.Position + 1) + " to " System.Convert.ToString(ns.Count); MessageBox.Show("THIS IS THE LAST RECORD IN DATABASE"); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } } private void btnNext2_Click(object sender, EventArgs e) { try { ocon.Close(); ocon.Open(); if (ver) { string c = "select * from Supplier"; SqlDataAdapter da1 = new SqlDataAdapter(c, ocon); DataSet ds1 = new DataSet(); da1.Fill(ds1, "Supplier"); DataView dv = new DataView(ds1.Tables["Supplier"]); dataGridView1.DataSource = dv; // textBox1.DataBindings.Add("text", dv, "SupplierID"); textBox2.DataBindings.Add("text", dv, "FirstName"); textBox3.DataBindings.Add("text", dv, "LastName"); textBox4.DataBindings.Add("text", dv, "ProductName"); textBox5.DataBindings.Add("text", dv, "MilkingDate"); textBox6.DataBindings.Add("text", dv, "UnitPrice"); textBox7.DataBindings.Add("text", dv, "Quantity"); textBox8.DataBindings.Add("text", dv, "ExpireDate"); textBox9.DataBindings.Add("text", dv, "Telephone"); textBox10.DataBindings.Add("text", dv, "Address"); textBox1.DataBindings.Clear(); textBox2.DataBindings.Clear(); textBox3.DataBindings.Clear(); textBox4.DataBindings.Clear(); textBox5.DataBindings.Clear(); textBox6.DataBindings.Clear(); textBox7.DataBindings.Clear(); textBox8.DataBindings.Clear(); textBox9.DataBindings.Clear(); textBox10.DataBindings.Clear(); ns = (CurrencyManager)BindingContext[dv]; ver = false; } ns.Position = ns.Position + 1; textBox11.Text = " System.Convert.ToString(ns.Position + 1) System.Convert.ToString(ns.Count); saved " " to "
+ +
+ +
22
Customer testing for identified interface on the form below, which show when you want to detected something it show like in the middle displayed on the interface
23
Server 2005
Form
S QL 2
Received save command Return a message
Server
Font end
Back end
Output of Report menu Using the report menu, a user will be able to display the all list of a particular suppliers details
24
25
26
Conclusion
The Dairy organization information system has been developed for aim of Dairy enterprise people or to manage their daily basis or any business activities that is taking place in their dairy routine, the system comprises of the programming languages VB.Net and SQL server 2005 in process of store data in tables which has been created on SQL server. In term of the pervious old system do use papers on writing information in those paper, but per now we had get the new technology that has come to assist us and make thing easily for Dairy organization to make their record on database procedure as saving data on it and therefore, the should use for memory use in future as for report in monthly or as daily report to make think easy.
27
Recommendation
Its good for SQL 2005 that offer accurate connectivity structures to connects all the tables in the database with their programmability storage procedures to the interfaces arrangements that are created in vb.net atmosphere, as once you debug this system applications will form and create opportunities that offer users to enter their record on form provide to save directly to the database storage system. Only the user make use data entry any details needed information to be store in the database e.g. Table are as follow Salary, supplier and customer as they are all details for the tables, All business users can save their important information, if they are in needing contains information easily they can search close, update and delete if there is new income or new employee or as business has daily basis information to enter in the database form. Therefore is also navigation buttons which assist users to sightsee their database to give user opportunity for going back, next and view previous data. This application is mainly programmed in VB.NET to assist Dairy management information system, it make their activities easy to store data in their daily basis as far as it were too hard for them in the old system whereby the use hard paper physical which doesnt have security for their data as these application come in now it will atomically process their the main dairy business activities make easy even in form of physical security will be hard to harm as they will be having different storage in many branches whereby the saving data in case of in security matters. I recommended that the entire programmers can use VB.NET, SQL database for their security.
28
Response It will be my pleasure to have your highly orientation if you can commented on what I had gone through these opportunity which will assist our organization to use this application for their own future use to counterpart in their business activities concern. Delights your apprehension will be kindly send to work done project [email protected], [email protected] for the encounter information on the above mentioned mail.
29
Electronic References
i. http://www.aspfree.com/c/a/VB.NET/How-to-Design-a-Windows-FormsApplication/
References on Books
1. C# Book by Jeff Ferguson 2. C.J. Date, 6th edition 1995, an introduction to database system, Addison Wesley Inc .USA p. 13 3. Advance Visual Basic Book edition 2008 NCC Education IADCS 4. Abraham Silberschatz, 4th edition 2002, Database system concepts, New York, NY 10020, India.
Appendix Abbreviations
IADCS NCC SQL DBMS VB CD XP GB VGA RAM KIST ICT International Advance Diploma Computer Studies National Computing Centre
Structured Query Language Database management system
Visual Basic Copy Disk Window operating system or Extreme Programming Giga Bite Video Graphics Array
Random-access memory
30