public requestor_Order requestor_Order_insert() { Random random = new Random(); requestor_Order.Requestor_ID = requestor.RequestorID; requestor_Order.EncounterID = encounter.encounter_id; requestor_Order.OrderPriority = Convert.ToInt32(DDL_Priority_Lvl.SelectedValue); requestor_Order.OrderNum = random.Next(0, 100000000); requestor_Order.ShipToAddressID = address.address_id; requestor_Order.OrderDeliveryType = "Shipping"; requestor_Order.OrderPickUpDate = Convert.ToDateTime(9 / 9 / 9);//null requestor_Order = requestor_Order.Insert(requestor_Order); return(requestor_Order); }
public requestor_Order requestor_Order_insert() { requestor_Order.Requestor_ID = Convert.ToInt32(Insert_Requestor_ID_txt.Text); requestor_Order.EncounterID = Convert.ToInt32(Insert_EncounterID_txt.Text); requestor_Order.OrderPriority = Convert.ToInt32(Insert_OrderPriority_txt.Text); requestor_Order.OrderNum = Convert.ToInt32(Insert_OrderNum_txt.Text); requestor_Order.ShipToAddressID = Convert.ToInt32(Insert_ShipToAddressID_txt.Text); requestor_Order.OrderDeliveryType = Insert_OrderDeliveryType_txt.Text; requestor_Order.OrderPickUpDate = Convert.ToDateTime(Insert_OrderPickUpDate_txt.Text); requestor_Order = requestor_Order.Insert(requestor_Order); Insert_requestor_Order_GridView.DataBind(); Update_requestor_Order_GridView.DataBind(); Delete_requestor_Order_GridView.DataBind(); return(requestor_Order); }