public Mobile_Product Insert_Mobile_Product_select(int ID) { Mobile_Product = Mobile_Product.Select(ID); Insert_Mobile_Unit_id_txt.Text = Convert.ToString(Mobile_Product.Mobile_Unit_id); Insert_Product_id_txt.Text = Convert.ToString(Mobile_Product.Product_id); Insert_Case_id_txt.Text = Convert.ToString(Mobile_Product.Case_id); Insert_Lot_id_txt.Text = Convert.ToString(Mobile_Product.Lot_id); Insert_Min_inv_txt.Text = Convert.ToString(Mobile_Product.Min_inv); Insert_Quantity_txt.Text = Convert.ToString(Mobile_Product.Quantity); Insert_Experiation_Date_txt.Text = Convert.ToString(Mobile_Product.Experiation_Date); return(Mobile_Product); }
public Mobile_Product Insert_Mobile_Product_select(int ID) { Mobile_Product = Mobile_Product.Select(ID); Insert_Mobile_Unit_id_txt.Text = Convert.ToString(Mobile_Product.Mobile_Unit_id); Insert_Product_id_txt.Text = Convert.ToString(Mobile_Product.Product_id); Insert_Case_id_txt.Text = Convert.ToString(Mobile_Product.Case_id); Insert_Lot_id_txt.Text = Convert.ToString(Mobile_Product.Lot_id); Insert_Min_inv_txt.Text = Convert.ToString(Mobile_Product.Min_inv); Insert_Quantity_txt.Text = Convert.ToString(Mobile_Product.Quantity); Insert_Experiation_Date_txt.Text = Convert.ToString(Mobile_Product.Experiation_Date); return Mobile_Product; }
public Mobile_Product Mobile_Product_insert() { Mobile_Product.Mobile_Unit_id = Convert.ToInt32(Insert_Mobile_Unit_id_txt.Text); Mobile_Product.Product_id = Convert.ToInt32(Insert_Product_id_txt.Text); Mobile_Product.Case_id = Convert.ToInt32(Insert_Case_id_txt.Text); Mobile_Product.Lot_id = Convert.ToInt32(Insert_Lot_id_txt.Text); Mobile_Product.Min_inv = Convert.ToInt32(Insert_Min_inv_txt.Text); Mobile_Product.Quantity = Convert.ToInt32(Insert_Quantity_txt.Text); Mobile_Product.Experiation_Date = Convert.ToDateTime(Insert_Experiation_Date_txt.Text); Mobile_Product = Mobile_Product.Insert(Mobile_Product); Insert_Mobile_Product_GridView.DataBind(); Update_Mobile_Product_GridView.DataBind(); Delete_Mobile_Product_GridView.DataBind(); return(Mobile_Product); }
protected void INSERT(object sender, EventArgs e) { Mobile_Product = Mobile_Product_insert(); }
protected void Insert_Select_Record(object sender, EventArgs e) { Mobile_Product = Insert_Mobile_Product_select(Convert.ToInt32(Insert_Mobile_Product_GridView.SelectedValue)); }
protected void UPDATE(object sender, EventArgs e) { Mobile_Product = Mobile_Product_update(Convert.ToInt32(Update_Mobile_Product_GridView.SelectedValue)); }
public Mobile_Product Mobile_Product_insert() { Mobile_Product.Mobile_Unit_id = Convert.ToInt32(Insert_Mobile_Unit_id_txt.Text); Mobile_Product.Product_id = Convert.ToInt32(Insert_Product_id_txt.Text); Mobile_Product.Case_id = Convert.ToInt32(Insert_Case_id_txt.Text); Mobile_Product.Lot_id = Convert.ToInt32(Insert_Lot_id_txt.Text); Mobile_Product.Min_inv = Convert.ToInt32(Insert_Min_inv_txt.Text); Mobile_Product.Quantity = Convert.ToInt32(Insert_Quantity_txt.Text); Mobile_Product.Experiation_Date = Convert.ToDateTime(Insert_Experiation_Date_txt.Text); Mobile_Product = Mobile_Product.Insert(Mobile_Product); Insert_Mobile_Product_GridView.DataBind(); Update_Mobile_Product_GridView.DataBind(); Delete_Mobile_Product_GridView.DataBind(); return Mobile_Product; }
protected void Update_Select_Record(object sender, EventArgs e) { Mobile_Product = Update_Mobile_Product_select(Convert.ToInt32(Update_Mobile_Product_GridView.SelectedValue)); }