Example #1
0
 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;
 }
Example #3
0
 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;
 }
Example #5
0
 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);
 }
Example #6
0
 protected void INSERT(object sender, EventArgs e)
 {
     lot = lot_insert();
 }
Example #7
0
 protected void Insert_Select_Record(object sender, EventArgs e)
 {
     lot = Insert_lot_select(Convert.ToInt32(Insert_lot_GridView.SelectedValue));
 }
Example #8
0
 protected void Delete_Select_Record(object sender, EventArgs e)
 {
     lot = Delete_lot_select(Convert.ToInt32(Delete_lot_GridView.SelectedValue));
 }
Example #9
0
 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));
 }
 protected void UPDATE(object sender, EventArgs e)
 {
     lot = lot_update(Convert.ToInt32(Update_lot_GridView.SelectedValue));
 }
 protected void Insert_Select_Record(object sender, EventArgs e)
 {
     lot = Insert_lot_select(Convert.ToInt32(Insert_lot_GridView.SelectedValue));
 }
 protected void INSERT(object sender, EventArgs e)
 {
     lot = lot_insert();
 }