Ejemplo n.º 1
0
    protected void AddLabOrderDataSource_Inserting(object sender, LinqDataSourceInsertEventArgs e)
    {
        var labOrder = (LabOrder)e.NewObject;

        // set the visit ID for the new lab order
        labOrder.VisitID = long.Parse(Request.QueryString["VisitID"]);

        // set the order date for the new lab order
        labOrder.Date = ((TemplateControls_DatePicker)AddLabOrderFormView.FindControl("DatePicker")).SelectedDate;
    }
Ejemplo n.º 2
0
    protected void AddLabOrderFormView_ItemInserting(object sender, FormViewInsertEventArgs e)
    {
        // set the visit ID for the new lab order
        e.Values["VisitID"] = long.Parse(Request.QueryString["VisitID"]);

        // set the order date for the new lab order
        e.Values["Date"] = ((TemplateControls_DatePicker)AddLabOrderFormView.FindControl("DatePicker")).SelectedDate;

        // set the doctor ID
        e.Values["DoctorID"] = ((DropDownList)AddLabOrderFormView.FindControl("DoctorsDropdownList")).SelectedValue;
    }