Пример #1
0
 public Vendor_Products_shipments Vendor_Products_shipments_update(int ID)
 {
     Vendor_Products_shipments                      = Vendor_Products_shipments.Select(ID);
     Vendor_Products_shipments.PO_Order_no          = Convert.ToInt32(Update_PO_Order_no_txt.Text);
     Vendor_Products_shipments.ShipmentID           = Convert.ToInt32(Update_ShipmentID_txt.Text);
     Vendor_Products_shipments.VendorID             = Convert.ToInt32(Update_VendorID_txt.Text);
     Vendor_Products_shipments.ProductID            = Convert.ToInt32(Update_ProductID_txt.Text);
     Vendor_Products_shipments.Expect_Delivery_Date = Convert.ToDateTime(Update_Expect_Delivery_Date_txt.Text);
     Vendor_Products_shipments.orderdate            = Convert.ToDateTime(Update_orderdate_txt.Text);
     Vendor_Products_shipments.quantity             = Convert.ToInt32(Update_quantity_txt.Text);
     Vendor_Products_shipments.OtherInfo            = Update_OtherInfo_txt.Text;
     Vendor_Products_shipments.DateReceived         = Convert.ToDateTime(Update_DateReceived_txt.Text);
     Vendor_Products_shipments.AmountReceived       = Convert.ToInt32(Update_AmountReceived_txt.Text);
     Vendor_Products_shipments.Update(Vendor_Products_shipments);
     Insert_Vendor_Products_shipments_GridView.DataBind();
     Update_Vendor_Products_shipments_GridView.DataBind();
     Delete_Vendor_Products_shipments_GridView.DataBind();
     return(Vendor_Products_shipments);
 }
 public Vendor_Products_shipments Vendor_Products_shipments_update(int ID)
 {
     Vendor_Products_shipments = Vendor_Products_shipments.Select(ID);
     Vendor_Products_shipments.PO_Order_no = Convert.ToInt32(Update_PO_Order_no_txt.Text);
     Vendor_Products_shipments.ShipmentID = Convert.ToInt32(Update_ShipmentID_txt.Text);
     Vendor_Products_shipments.VendorID = Convert.ToInt32(Update_VendorID_txt.Text);
     Vendor_Products_shipments.ProductID = Convert.ToInt32(Update_ProductID_txt.Text);
     Vendor_Products_shipments.Expect_Delivery_Date = Convert.ToDateTime(Update_Expect_Delivery_Date_txt.Text);
     Vendor_Products_shipments.orderdate = Convert.ToDateTime(Update_orderdate_txt.Text);
     Vendor_Products_shipments.quantity = Convert.ToInt32(Update_quantity_txt.Text);
     Vendor_Products_shipments.OtherInfo = Update_OtherInfo_txt.Text;
     Vendor_Products_shipments.DateReceived = Convert.ToDateTime(Update_DateReceived_txt.Text);
     Vendor_Products_shipments.AmountReceived = Convert.ToInt32(Update_AmountReceived_txt.Text);
     Vendor_Products_shipments.Update(Vendor_Products_shipments);
     Insert_Vendor_Products_shipments_GridView.DataBind();
     Update_Vendor_Products_shipments_GridView.DataBind();
     Delete_Vendor_Products_shipments_GridView.DataBind();
     return Vendor_Products_shipments;
 }