GAD Final Microproject
GAD Final Microproject
GAD Final Microproject
MICROPROJECT
On
Submitted By
Patil Harsh Dnyaneshwar
Enrollment No: 2200300081 Class: CM4
DEPARTMENT OF COMPUTERTECHNOLOGY
Padmashri Dr. Vitthalrao Vikhe Patil Institute of Technology and
Engineering (Polytechnic) Pravaranagar-413736.
(2023-2024)
Padmashri Dr. Vitthalrao Vikhe Patil Institute of Technology and
Engineering (Polytechnic) Pravaranagar-413736
CERTIFICATE
This is to certify that
Place: Loni
Date:
Micro Project Evaluation Sheet
a)Practical Outcomes:
Prepare a menu driven application to maintain Academic Record of Students from multiple streams
Able to plan and perform expriments and Practices With its Result.
1.0 Rationale
In this micro project we study different module of student record system. We study
functions of specified topic. We also study to apply different GUI forms. Also apply same
VB.NET concept like form controls, events. We also study vb.net coding in project.
First, we create group as per teacher guide. Then we select project title for our
project. Then in next week all team members discussed on topic store management
system.In successive week we all team member discussed about to make micro project
report
Introduction:
Features of Project
This application is used to show the stock remaining and details about the
sales and purchase. It gives the details about the stock on daily based and
weekly based. The details components are described below:
Login page: As application starts the login page appears. Admin login is
determined by the username and password that has all the authority to add,
update and delete the stock of the organization as per the requirement.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace InventoryManagementSystem
{
public partial class frmLogin : Form
{
public frmLogin()
{
InitializeComponent();
}
}
this.Hide();
SqlDataAdapter da = new
SqlDataAdapter(clsGlobalFunction.temp_text, clsGlobalFunction.cn);
DataSet ds = new DataSet();
da.Fill(ds, "table0");
txtFiscalYear.Items.Clear();
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
txtFiscalYear.Items.Add(ds.Tables[0].Rows[i]["fyear"].ToString());
txtFiscalYear.Text =
ds.Tables[0].Rows[i]["fyear"].ToString();
}
}
catch { }
}
}
}
SaveFileDialog saveBACKUP = new SaveFileDialog();
try
{
DialogResult Dr;
saveBACKUP.Filter = "File format (*.bak)|*.bak";
saveBACKUP.FileName = "INVENTORY ( BACKUP ) " +
DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-" +
DateTime.Now.Day.ToString();
Dr = saveBACKUP.ShowDialog();
if (Dr == DialogResult.OK)
{
string s = null;
s = saveBACKUP.FileName;
SqlCommand cmd = new SqlCommand("Backup database " +
clsGlobalFunction.DatabaseName + " to disk='" + s + "' WITH STATS",
clsGlobalFunction.cnMaster);
cmd.ExecuteNonQuery();
clsGlobalFunction.MessageBoxDisplay("Sucussfully Created
Backup !!!");
}
}
ca{
clsGlobalFunction.MessageBoxDisplay(ex.Message);
}
try
{
cmd.CommandText = "Alter Database " +
clsGlobalFunction.DatabaseName + " SET SINGLE_USER With ROLLBACK IMMEDIATE";
cmd.ExecuteNonQuery();
cmd.CommandText = "RESTORE DATABASE " +
clsGlobalFunction.DatabaseName + " FROM DISK = '" + s + "' WITH REPLACE";
cmd.ExecuteNonQuery();
cmd.CommandText = "Alter Database " +
clsGlobalFunction.DatabaseName + " SET MULTI_USER";
cmd.ExecuteNonQuery();
clsGlobalFunction.MessageBoxDisplay("Sucussfully
Created Restored.Application is Restarted !!!");
Application.Restart();
}
catch (Exception ex)
{clsGlobalFunction.MessageBoxDisplay(ex.Message); }