Ejemplo n.º 1
0
    /// <summary>
    /// override
    /// US:838
    /// load control
    /// </summary>
    /// <param name="lEditMode"></param>
    /// <returns></returns>
    public override CStatus LoadControl(k_EDIT_MODE lEditMode)
    {
        //load the checklist status dropdown list
        CStatus status = CSTAT.LoadChecklistStateDDL(BaseMstr.BaseData, ddlChecklistStatus);

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

        //load the service ddl
        status = LoadServiceDDL();
        if (!status.Status)
        {
            return(status);
        }

        //set the clinic date range to today
        if (String.IsNullOrEmpty(txtApptFromDate.Text))
        {
            DateTime dtNow = DateTime.Now;

            calApptFromDate.SelectedDate = dtNow;
            txtApptFromDate.Text         = CDataUtils.GetDateAsString(dtNow);

            calApptToDate.SelectedDate = dtNow;
            txtApptToDate.Text         = CDataUtils.GetDateAsString(dtNow);
        }

        return(new CStatus());
    }
Ejemplo n.º 2
0
    //   protected override void Render(HtmlTextWriter output)
    //   {
    //       btnUpdateCLVersion.Enabled = EnableVersionUpdate;
    //
    //       //render the control
    //       base.RenderChildren(output);
    //  }

    /// <summary>
    /// US:894
    /// US:892
    /// page load
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        //enable the apply new version button based on the cached version
        //btnUpdateCLVersion.Enabled = EnableVersionUpdate;

        //pass basemaster and mpe to the checklist selector
        ucChecklistSelector.BaseMstr = Master;
        ucChecklistSelector.MPE      = mpeChecklistSelector;

        //pass basemaster and mpe to the Single Patient Editor
        ucSinglePatientPopup.BaseMstr = Master;
        ucSinglePatientPopup.MPE      = mpeSinglePatientEditor;

        ucCancelProcessing.BaseMstr = Master;
        ucCancelProcessing.MPE      = mpeCancelProcessing;

        RegisterJavaScript();

        if (!IsPostBack)
        {
            Master.PageTitle = "Multi Patient";
            LoadServiceDDL();

            CSTATData StatData = new CSTATData(Master.BaseData);
            DataSet   ds       = null;
            CStatus   status   = StatData.GetStateDS(out ds);
            if (!status.Status)
            {
                Master.ShowStatusInfo(status);
                return;
            }

            States = ds.Tables[0];

            status = CSTAT.LoadChecklistStateDDL(
                Master.BaseData,
                ddlChecklistStatus);
            if (!status.Status)
            {
                Master.ShowStatusInfo(status);
                return;
            }

            gvMultiPatientView.DataSource = null;
            gvMultiPatientView.DataBind();
        }

        ucUpdateChecklistVersion.BaseMstr = Master;
        ucUpdateChecklistVersion.MPE      = mpeUpdateChecklistVersion;
    }
Ejemplo n.º 3
0
    /// <summary>
    /// method
    /// loads the selected patient's checklists in the checklist drop down list
    /// </summary>
    /// <returns></returns>
    protected CStatus LoadDDLs()
    {
        CPatientChecklist pcl    = new CPatientChecklist();
        CStatus           status = pcl.LoadPatientChecklists(BaseMstr, PatientID, ddlPatChecklist);

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

        status = CSTAT.LoadChecklistStateDDL(BaseMstr.BaseData, ddlChecklistState);
        if (!status.Status)
        {
            return(status);
        }

        return(new CStatus());
    }