コード例 #1
0
    /// <summary>
    /// method
    /// US:931
    /// rebinds the page's gridview and rechecks any checked items
    /// </summary>
    private void RebindAndCheck()
    {
        gvPatients.DataSource = ucPatientLookup.PatientDataTable;
        gvPatients.DataBind();

        CGridView.SetCheckedRows(
            gvPatients,
            PatientIDs,
            "chkSelect");
    }
コード例 #2
0
    /// <summary>
    /// method
    /// US:931
    /// rebinds the page's gridview and rechecks any checked items
    /// </summary>
    private void RebindAndCheck()
    {
        gvTS.DataSource = TemporalStates;
        gvTS.DataBind();

        CGridView.SetCheckedRows(
            gvTS,
            TemporalStateIDs,
            "chkSelect");
    }
コード例 #3
0
    /// <summary>
    /// method
    /// US:931
    /// rebinds the page's gridview and rechecks any checked items
    /// </summary>
    private void RebindAndCheck()
    {
        gvDS.DataSource = DecisionStates;
        gvDS.DataBind();

        CGridView.SetCheckedRows(
            gvDS,
            DecisionStateIDs,
            "chkSelect");
    }
コード例 #4
0
    /// <summary>
    /// method
    /// US:931
    /// rebinds the page's gridview and rechecks any checked items
    /// </summary>
    private void RebindAndCheck()
    {
        gvOS.DataSource = OutcomeStates;
        gvOS.DataBind();

        CGridView.SetCheckedRows(
            gvOS,
            OutcomeStateIDs,
            "chkSelect");
    }
コード例 #5
0
    /// <summary>
    /// method
    /// US:931
    /// rebinds the page's gridview and rechecks any checked items
    /// </summary>
    private void RebindAndCheck()
    {
        gvExistingCL.DataSource = PatientDataTable;
        gvExistingCL.DataBind();

        CGridView.SetCheckedRows(
            gvExistingCL,
            SelectedPatientIDs,
            "chkSelect");
    }
コード例 #6
0
    public override CStatus LoadControl(k_EDIT_MODE lEditMode)
    {
        EditMode = lEditMode;

        //get the data
        DataSet            ds     = null;
        CTemporalStateData tsd    = new CTemporalStateData(BaseMstr.BaseData);
        CStatus            status = tsd.GetTemporalStateDS((long)k_ACTIVE_ID.Active, out ds);

        if (!status.Status)
        {
            return(status);
        }

        TemporalStates  = ds.Tables[0];
        gvTS.DataSource = TemporalStates;
        gvTS.DataBind();

        //get the cli data and check the checkboxes
        CChecklistItemData itemData = new CChecklistItemData(BaseMstr.BaseData);
        DataSet            dsTS     = null;

        status = itemData.GetTemporalStateDS(ChecklistID, ChecklistItemID, out dsTS);
        if (!status.Status)
        {
            return(status);
        }

        string strTSIDs = ",";

        foreach (DataRow dr in dsTS.Tables[0].Rows)
        {
            strTSIDs += dr["ts_id"].ToString() + ",";
        }

        TemporalStateIDs = strTSIDs;
        CGridView.SetCheckedRows(
            gvTS,
            TemporalStateIDs,
            "chkSelect");

        return(new CStatus());
    }