0% found this document useful (0 votes)
88 views16 pages

A Formal Usability Constraints Model For Watermarking of Outsourced Datasets

This document describes modules for authentication and data owner data grouping in a system for watermarking outsourced datasets. It includes descriptions and diagrams of the login and registration authentication modules and the data owner's ability to select datasets, find features, rank features, and group the datasets. It also provides code snippets in C# for implementing registration, login, updating records, and other functions. Database tables for registration, divisions, exams, and centers are listed, and screenshots of the system's home page, admin home, and other pages are shown.

Uploaded by

Mohamed Saleem
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views16 pages

A Formal Usability Constraints Model For Watermarking of Outsourced Datasets

This document describes modules for authentication and data owner data grouping in a system for watermarking outsourced datasets. It includes descriptions and diagrams of the login and registration authentication modules and the data owner's ability to select datasets, find features, rank features, and group the datasets. It also provides code snippets in C# for implementing registration, login, updating records, and other functions. Database tables for registration, divisions, exams, and centers are listed, and screenshots of the system's home page, admin home, and other pages are shown.

Uploaded by

Mohamed Saleem
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

A FORMAL USABILITY CONSTRAINTS MODEL FOR WATERMARKING OF OUTSOURCED DATASETS

Modules: Authentication Login. Register. Data Owner Data Grouping.

MODULE DESCRIPTION & DIAGRAMS 1.Authentication Login The user has to provide exact username and password which was provided at the time of registration, if login success means it will take up to main page else it will remain in the login page itself.

LOGIN

CHECK STATUS

Proceed To next stage Hierarchy

DB

Registration: If you are the new user going to login into the application then you have to register first by providing necessary details. After successful completion of sign up process, the user has to login into the application by providing username and exact password.

New User

Provide their Details to Register

DataBase

2. Data Owner Data Grouping

Data owner select the datasets from the large database. After selecting the datasets the data owner finds the features of the datasets. Based upon these features the data owner will rank this features. The data owner ranks the features after that he will group the datasets.

Data Owner

Select Dataset

Find out Features

Rank the Features

Grouping the Data

GIVEN INPUT AND EXPECTED OUTPUT:

1. Authentication: Login Input: Provide username and password to get permission for access. Output: Became authenticated person to request and process the request. Registration: Input: Provides the user personal details. Output: create the account for the corresponding user.

2. Data Owner Data Grouping Input: Provides the datasets and the features. Output: It will group the datas based upon the feature ranking.

Coding: Registration:
public partial class Divisions : System.Web.UI.Page { DAL.Division objdiv = new DAL.Division(); BAL.Divisionbal objbal = new BAL.Divisionbal(); protected void Page_Load(object sender, EventArgs e) { } public void Bind() { DataSet ds1 = objbal.viewd(); divgrid.DataSource = ds1; divgrid.DataBind(); } protected void btnadd_Click(object sender, EventArgs e) { bool status = objbal.divdet(txtcode.Text, txtname.Text, txtadd.Text); if (status) { Response.Write("<script>alert('hai')</script>");

txtadd.Text = ""; txtcode.Text = ""; txtname.Text = ""; } else { Response.Write("<script>alert('hai')</script>"); } }

Login.aspx:
public partial class Home : System.Web.UI.Page { DAL.Authentication objdal = new DAL.Authentication(); BAL.Authentication objbal = new BAL.Authentication(); protected void Page_Load(object sender, EventArgs e) { } protected void btnsignin_Click(object sender, EventArgs e) { if (txtuname.Text == "Admin" && txtpsw.Text == "Admin") { Response.Redirect("~/AdminTasks.aspx"); } else { bool status = objbal.adlogin(txtuname.Text, txtpsw.Text); if (status) { Response.Redirect("~/Divprocess.aspx"); } else { Console.WriteLine("<script>alert('Login Failed')</script>"); txtuname.Text = ""; txtpsw.Text = ""; } } } protected void btn_cancel_Click(object sender, EventArgs e) { Environment.Exit(0); } }

Division.aspx
public partial class Divisions : System.Web.UI.Page

{ DAL.Division objdiv = new DAL.Division(); BAL.Divisionbal objbal = new BAL.Divisionbal(); protected void Page_Load(object sender, EventArgs e) { } public void Bind() { DataSet ds1 = objbal.viewd(); divgrid.DataSource = ds1; divgrid.DataBind(); } protected void btnadd_Click(object sender, EventArgs e) { bool status = objbal.divdet(txtcode.Text, txtname.Text, txtadd.Text); if (status) { Response.Write("<script>alert('hai')</script>"); txtadd.Text = ""; txtcode.Text = ""; txtname.Text = ""; } else { Response.Write("<script>alert('hai')</script>"); } } protected void btnview_Click1(object sender, EventArgs e) { DataSet ds = objbal.viewd(); divgrid.DataSource = ds; divgrid.DataBind(); } protected void divgrid_RowCancellingEdit(object sender, GridViewCancelEditEventArgs e) { divgrid.EditIndex = -1; Bind(); } protected void divgrid_RowEditing(object sender, GridViewEditEventArgs e) { divgrid.EditIndex = e.NewEditIndex; Bind(); } protected void divgrid_RowUpdating(object sender, GridViewUpdateEventArgs e) { TextBox txt_divcode = (TextBox)divgrid.Rows[e.RowIndex].FindControl("txt_divcode"); TextBox txt_divname = (TextBox)divgrid.Rows[e.RowIndex].FindControl("txt_divname"); TextBox txt_address = (TextBox)divgrid.Rows[e.RowIndex].FindControl("txt_address"); objdiv.connect.Open();

SqlCommand cmd = new SqlCommand("update division set divcode='" + txt_divcode.Text + "',divname='" + txt_divname.Text + "',address='" + txt_address.Text + "' where divcode='" + txt_divcode.Text + "'", objdiv.connect); int result = cmd.ExecuteNonQuery(); objdiv.connect.Close(); if (result > 0) { Bind(); lbl_status.Visible = true; lbl_status.Text = "Updated Details Successfully"; } } }

AddExamDetails.aspx
public partial class AdminOnline : System.Web.UI.Page { DAL.Notify nobj = new DAL.Notify(); BAL.Notifybal objbal = new BAL.Notifybal(); BAL.resultbal objres = new BAL.resultbal(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bind(); } } public void bind() { DataSet ds = objbal.noty(); gv_notify.DataSource = ds; gv_notify.DataBind(); } protected void gv_notify_RowCancellingEdit(object sender, GridViewCancelEditEventArgs e) { gv_notify.EditIndex = -1; bind(); } protected void gv_notify_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("Add")) { TextBox txt_sno = (TextBox)gv_notify.FooterRow.FindControl("txt_sno"); TextBox txt_exam = (TextBox)gv_notify.FooterRow.FindControl("txt_exam"); TextBox txt_opDate = (TextBox)gv_notify.FooterRow.FindControl("txt_opDate"); TextBox txt_clDate = (TextBox)gv_notify.FooterRow.FindControl("txt_clDate"); TextBox txt_status = (TextBox)gv_notify.FooterRow.FindControl("txt_status"); nobj.con.Open(); SqlCommand cmd = new SqlCommand("sp_Examnotify", nobj.con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@Sno", SqlDbType.Int).Value = txt_sno.Text;

cmd.Parameters.AddWithValue("@ExamName", SqlDbType.VarChar).Value = txt_exam.Text; cmd.Parameters.AddWithValue("@opDate", SqlDbType.NVarChar).Value = txt_opDate.Text; cmd.Parameters.AddWithValue("@clDate", SqlDbType.NVarChar).Value = txt_clDate.Text; cmd.Parameters.AddWithValue("@status", SqlDbType.VarChar).Value = txt_status.Text; int result = cmd.ExecuteNonQuery(); if (result > 0) { bind(); lblmsg.Visible = true; lblmsg.Text = "Insert Details successfull"; } } } protected void gv_notify_RowEditing(object sender, GridViewEditEventArgs e) { gv_notify.EditIndex = e.NewEditIndex; bind(); } protected void gv_notify_RowUpdating(object sender, GridViewUpdateEventArgs e) { TextBox txt_sno = (TextBox)gv_notify.Rows[e.RowIndex].FindControl("txt_sno"); TextBox txt_exam = (TextBox)gv_notify.Rows[e.RowIndex].FindControl("txt_exam"); TextBox txt_opDate = (TextBox)gv_notify.Rows[e.RowIndex].FindControl("txt_opDate");

TextBox txt_clDate = (TextBox)gv_notify.Rows[e.RowIndex].FindControl("txt_clDate"); TextBox txt_status = (TextBox)gv_notify.Rows[e.RowIndex].FindControl("txt_status"); nobj.con.Open(); SqlCommand cmd = new SqlCommand("update notify set Sno='" + txt_sno.Text + "',ExamName='" + txt_exam.Text + "',OpeningDate='" +txt_opDate.Text + "',ClosingDate='" + txt_clDate.Text + "',status='" + txt_status.Text + "' where Sno='" + txt_sno.Text + "'", nobj.con); int result = cmd.ExecuteNonQuery(); nobj.con.Close(); if (result > 0) { bind(); lblmsg.Visible = true; lblmsg.Text = "Updated Details Successfully"; } } protected void btn_submit_Click(object sender, EventArgs e) { bool status = objres.addres(Convert.ToInt64(txt_regno.Text), Convert.ToInt16(txt_rollno.Text), txt_name.Text, Convert.ToInt16(txt_secmark.Text), Convert.ToInt16(txt_totmark.Text), txt_res.Text); if (status) { Console.WriteLine("<script>alert('Added Successfully')</script>"); }

else { Console.WriteLine("<script>alert('Not Added')</script>"); }

} }

DataBase Design and Structures: Register table:

Division table:

Exam table:

Centre table:

Screen Shots:

Home page:

Admin Home:

Add Division page:

Add Events:

Add Exam Details:

Add Question Paper:

Online Register Form:

You might also like