public lot Insert_lot_select(int ID) { lot = lot.Select(ID); Insert_product_id_txt.Text = Convert.ToString(lot.product_id); Insert_manufactured_date_txt.Text = Convert.ToString(lot.manufactured_date); Insert_expiration_date_txt.Text = Convert.ToString(lot.expiration_date); Insert_manufacture_name_txt.Text = Convert.ToString(lot.manufacture_name); return(lot); }
public lot Insert_lot_select(int ID) { lot = lot.Select(ID); Insert_product_id_txt.Text = Convert.ToString(lot.product_id); Insert_manufactured_date_txt.Text = Convert.ToString(lot.manufactured_date); Insert_expiration_date_txt.Text = Convert.ToString(lot.expiration_date); Insert_manufacture_name_txt.Text = Convert.ToString(lot.manufacture_name); return lot; }
public lot lot_insert() { lot.product_id = Convert.ToInt32(Insert_product_id_txt.Text); lot.manufactured_date = Convert.ToDateTime(Insert_manufactured_date_txt.Text); lot.expiration_date = Convert.ToDateTime(Insert_expiration_date_txt.Text); lot.manufacture_name = Insert_manufacture_name_txt.Text; lot = lot.Insert(lot); Insert_lot_GridView.DataBind(); Update_lot_GridView.DataBind(); Delete_lot_GridView.DataBind(); return(lot); }
public lot lot_insert() { lot.product_id = Convert.ToInt32(Insert_product_id_txt.Text); lot.manufactured_date = Convert.ToDateTime(Insert_manufactured_date_txt.Text); lot.expiration_date = Convert.ToDateTime(Insert_expiration_date_txt.Text); lot.manufacture_name = Insert_manufacture_name_txt.Text; lot = lot.Insert(lot); Insert_lot_GridView.DataBind(); Update_lot_GridView.DataBind(); Delete_lot_GridView.DataBind(); return lot; }
public lot lot_update(int ID) { lot = lot.Select(ID); lot.lot_id = Convert.ToInt32(Update_lot_id_txt.Text); lot.product_id = Convert.ToInt32(Update_product_id_txt.Text); lot.manufactured_date = Convert.ToDateTime(Update_manufactured_date_txt.Text); lot.expiration_date = Convert.ToDateTime(Update_expiration_date_txt.Text); lot.manufacture_name = Update_manufacture_name_txt.Text; lot.Update(lot); Insert_lot_GridView.DataBind(); Update_lot_GridView.DataBind(); Delete_lot_GridView.DataBind(); return(lot); }
protected void INSERT(object sender, EventArgs e) { lot = lot_insert(); }
protected void Insert_Select_Record(object sender, EventArgs e) { lot = Insert_lot_select(Convert.ToInt32(Insert_lot_GridView.SelectedValue)); }
protected void Delete_Select_Record(object sender, EventArgs e) { lot = Delete_lot_select(Convert.ToInt32(Delete_lot_GridView.SelectedValue)); }
protected void UPDATE(object sender, EventArgs e) { lot = lot_update(Convert.ToInt32(Update_lot_GridView.SelectedValue)); }
public lot lot_update(int ID) { lot = lot.Select(ID); lot.lot_id = Convert.ToInt32(Update_lot_id_txt.Text); lot.product_id = Convert.ToInt32(Update_product_id_txt.Text); lot.manufactured_date = Convert.ToDateTime(Update_manufactured_date_txt.Text); lot.expiration_date = Convert.ToDateTime(Update_expiration_date_txt.Text); lot.manufacture_name = Update_manufacture_name_txt.Text; lot.Update(lot); Insert_lot_GridView.DataBind(); Update_lot_GridView.DataBind(); Delete_lot_GridView.DataBind(); return lot; }
protected void Update_Select_Record(object sender, EventArgs e) { lot = Update_lot_select(Convert.ToInt32(Update_lot_GridView.SelectedValue)); }