public void Shipment_delete(int ID) { Shipment.Delete(ID); Insert_Shipment_GridView.DataBind(); Update_Shipment_GridView.DataBind(); Delete_Shipment_GridView.DataBind(); }
public Shipment Shipment_insert() { Shipment.WarehouseID = Convert.ToInt32(Insert_WarehouseID_txt.Text); Shipment.Tracking_Num = Insert_Tracking_Num_txt.Text; Shipment.Ship_Method = Insert_Ship_Method_txt.Text; Shipment.Other = Insert_Other_txt.Text; Shipment.OrderRecByID = Convert.ToInt32(Insert_OrderRecByID_txt.Text); Shipment.FullOrderReceived = Insert_FullOrderReceived_txt.Text; Shipment = Shipment.Insert(Shipment); Insert_Shipment_GridView.DataBind(); Update_Shipment_GridView.DataBind(); Delete_Shipment_GridView.DataBind(); return(Shipment); }
public Shipment Shipment_update(int ID) { Shipment = Shipment.Select(ID); Shipment.ShipmentID = Convert.ToInt32(Update_ShipmentID_txt.Text); Shipment.WarehouseID = Convert.ToInt32(Update_WarehouseID_txt.Text); Shipment.Tracking_Num = Update_Tracking_Num_txt.Text; Shipment.Ship_Method = Update_Ship_Method_txt.Text; Shipment.Other = Update_Other_txt.Text; Shipment.OrderRecByID = Convert.ToInt32(Update_OrderRecByID_txt.Text); Shipment.FullOrderReceived = Update_FullOrderReceived_txt.Text; Shipment.Update(Shipment); Insert_Shipment_GridView.DataBind(); Update_Shipment_GridView.DataBind(); Delete_Shipment_GridView.DataBind(); return(Shipment); }