Live Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale ChemistLive Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale Chemist
Live Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale Chemist
Live Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale Chemist
Live Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale Chemist

Medicine Expiry Dates for a Wholesale Chemist - Live Project based Training in Advanced JAVA

Following coding has been done by Manvir Singh, who has received training from our company. We are very particular about minute things like naming conventions, proper releasing of heap allocated handles and memory, and also about the use of OOPS programming constructs like enums, const, static qualifiers. Our trainees exhibit all these features in their code. A high quality code always keeps a developer ahead of others. We can cite hundreds of instances where students trained by us have received appreciation letters from their employers. This is possible because of the overall development of a trainee not as a coder but also as a skilled organiser. You too can join us and benefit from our training methodology.

About Manvir Singh

Manvir SinghHis areas of interest are .NET Development for Desktop Apps, C++, JAVA Web Development, PHP Scripting, Software Training, SQL Server Database, Web Designing, Web Development in ASP.NET, etc., He likes Surfing Net,Talking. And this what he has to say about himself: I am Manvir Singh pursuing B.Tech from Rayat Institute of Information Technology . I have knowledge about HTML, Web Designing, PHP, ASP.NET, C++, Java. . He has been trained at Hoven where he learnt to write serious, professional level code.

Synopsis

This code is used for Medical Management system. It creates a form that contains medicine information. It consists of various fields like medicine name, its manufacturing date, expiry date and the name of disease for which the medicine is used.It uses a database at the back end to store the information about various diseases and the recommended medicines for it along with their manufacturing and expiry dates.

Language

C# with Desktop

Database

Microsoft SQL Server

IDE

Microsoft Visual Web Developer Express

Video on this Code

Framework Classes

DataSet, SqlConnection, SqlDataAdapter, SqlCommand, Page, RequiredFieldValidator, TextBox, Calender, DropDownList, CustomValidator, ValidationSummary. Namespaces used are System.Web, System,Web,UI, System.Data.SqlClient, System.Web.UI.WebControls

Code Sample

using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Medical_Managment_System
{
    public partial class Default : System.Web.UI.Page
    {
        private DataSet Getdisease()
        {
            using (SqlConnection con = new SqlConnection(CMedical.ConnString))
            {
                con.Open();
                using (SqlDataAdapter da =
                    new SqlDataAdapter("SELECT disease FROM tbldisease " +
                        " WHERE disease <> 'Cold'", con))
                {
                    DataSet ds = new DataSet();
                    da.Fill(ds);
                    return ds;
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataSet ds = Getdisease();
                ddlDisease.DataSource = ds;
                ddlDisease.DataValueField = "disease";
                ddlDisease.DataBind();
            }

        }

        protected void cvMfDate_ServerValidate(object source, ServerValidateEventArgs args)
        {
            args.IsValid = calMfDate.SelectedDate > DateTime.Now;
        }

        protected void cvExDate_ServerValidate(object source, ServerValidateEventArgs args)
        {
            args.IsValid = calExDate.SelectedDate > DateTime.Now;
        }

        protected void lnkMedicine_Click(object sender, EventArgs e)
        {
            lblMessage.Text = "";
            if (Page.IsValid)
            {
                String strINSERTQuery = String.Format(
                    " INSERT INTO tblMedical(medicineName,mfDate,exDate,disease) " +
                    " VALUES('{0}','{1:dd-MMM-yyyy}','{1:dd-MMM-yyyy}','{3}')",
                    txtMedicineName.Text,
                    calMfDate.SelectedDate,
                    calExDate.SelectedDate,
                    ddlDisease.SelectedValue);
                using (SqlConnection con = new SqlConnection(CMedical.ConnString))
                {
                    con.Open();
                    using (SqlCommand cmd = con.CreateCommand())
                    {
                        cmd.CommandText = strINSERTQuery;
                        try
                        {
                            cmd.ExecuteNonQuery();
                            lblMessage.Text = "Data Saved!";

                        }
                        catch (System.Exception ex)
                        {
                            lblMessage.Text = "Operation Failed:" + ex.Message;
                            return;
                        }
                    }
                }
            }
        }
    }
}

User Reviews

Live Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale Chemist Reviewed by Harleen on. Best Trainings, Best Trainers. Rating: 4.96. My experience was very good with Hoven. I am impressed by teaching style of Hoven, the way, they teach and the technique used by Hoven, is not used by any other institute. After joining Hoven, my programming skills became very good.
Harleen Singh

Useful Links

Six Month Industrial Training - Saving Time | Six Month Industrial Training - Syllabus | Six Month Industrial Training - Types | Six Month Industrial Training in DOTNET in Chandigarh | Six Month Industrial Training in JAVA in Chandigarh | Free Six Month Industrial Training in Chandigarh | Six Month Industrial Training in Chandigarh | .NET Training in Chandigarh | Companies Providing 6 Months Industrial Training in Chandigarh | Training for 6 Months in Chandigarh | Java Company in Chandigarh | Best Institute for Java in Chandigarh | Java Training in Chandigarh | Industrial Training in JAVA in Chandigarh | Industrial Training in Android in Chandigarh | PHP Training in Chandigarh | Six Month Industrial Training in PHP in Chandigarh | Six Months Industrial Training in PHP in Chandigarh | Industrial Training in PHP | Best PHP Training in Chandigarh | PHP Training Chandigarh | PHP Training in Chandigarh Mohali | Industrial Training in Chandigarh for 6 Months | Industrial Training in Chandigarh for Six Months | Industrial Training in Chandigarh for Six Months, Six Weeks | Industrial Training | Industrial Training in Chandigarh in MNCs | Summer Training Chandigarh | 6 Months Industrial Training in Chandigarh for Free | 6 Weeks Industrial Training in Chandigarh | 6 Month Industrial Training in Chandigarh | Industrial Training in Chandigarh IT Park | Industrial Training in Chandigarh | Free Industrial Training for MCA in Chandigarh | Six Week C++ Training by Professionals in Kharar | Hoven's Youtube Channel
Average Attendee Evaluation*
5 Stars:
 
72%
4 Stars:
 
26%
3 Stars:
 
2%
2 Stars:
 
0%
1 Star:
 
0%

I am Hoven Trained

Live Project based Training in Advanced JAVA-Medicine Expiry Dates for a Wholesale ChemistHoven gives me the talent of making software myself. I remember the day when i had completed my first prooject in C++.I got loads of knowlege from hoven.
Anjali Kareer,
Tech Mahindra
*Last one year
Hoven's Video Tutorials
Using NetBeans with MySQL

>> More Video Tutorials by Hoven

Find us on Google+