Esempio 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());
    }
    /// <summary>
    /// load gridview dropdown lists
    /// </summary>
    /// <param name="gvr"></param>
    protected CStatus LoadGridViewRowDDLs(GridViewRow gvr)
    {
        DropDownList ddlState = (DropDownList)gvr.FindControl("ddlState");

        if (ddlState == null)
        {
            return(new CStatus(false, k_STATUS_CODE.Failed, "TODO"));
        }

        return(CSTAT.LoadStateDDL(BaseMstr.BaseData, ddlState));
    }
    /// <summary>
    /// load the temporal state definition drop down
    /// </summary>
    /// <returns></returns>
    private CStatus LoadTSDefinitionDropDown()
    {
        if (ddlTSDefinition.Items.Count < 1)
        {
            CStatus status = CSTAT.LoadTSDefinitionDDL(BaseMstr.BaseData, ddlTSDefinition);
            if (!status.Status)
            {
                return(status);
            }
        }

        return(new CStatus());
    }
Esempio n. 4
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;
    }
    /// <summary>
    /// method
    /// loads the drop down list controls for a grid view row
    /// </summary>
    /// <param name="gvr"></param>
    protected void LoadGridViewRowDDLs(GridViewRow gvr)
    {
        DropDownList ddlUnit = (DropDownList)gvr.FindControl("ddlUnit");
        if (ddlUnit == null)
        {
            return;
        }

        CStatus status = CSTAT.LoadUnitDDL(BaseMstr.BaseData, ddlUnit);
        if (!status.Status)
        {
            ShowStatusInfo(status);
            return;
        }
    }
Esempio n. 6
0
    /// <summary>
    /// load dropdown lists
    /// </summary>
    protected void LoadItemDDLs()
    {
        CStatus status = CSTAT.LoadItemTypeDDL(BaseMstr.BaseData, ddlType);

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

        status = CItem.LoadItemGroupDDL(BaseMstr.BaseData, ddlGroup, k_ACTIVE_ID.Active);
        if (!status.Status)
        {
            ShowStatusInfo(status);
            return;
        }
    }
Esempio n. 7
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());
    }
            public CSTAT this[int index]
            {
                get
                {
                    switch (index)
                    {
                    case 0:
                        return(this.P1);

                    case 1:
                        return(this.P2);

                    case 2:
                        return(this.P3);

                    case 3:
                        return(this.P4);
                    }
                    throw new IndexOutOfRangeException();
                }
                set
                {
                    switch (index)
                    {
                    case 0:
                        this.P1 = value;
                        return;

                    case 1:
                        this.P2 = value;
                        return;

                    case 2:
                        this.P3 = value;
                        return;

                    case 3:
                        this.P4 = value;
                        return;
                    }
                    throw new IndexOutOfRangeException();
                }
            }
Esempio n. 9
0
    private CStatus LoadFilterDDLs()
    {
        CStatus status = CSTAT.LoadItemTypeDDL(BaseMstr.BaseData, ddlFilterType);

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

        status = CItem.LoadItemGroupDDL(BaseMstr.BaseData, ddlFilterByGroup);
        if (!status.Status)
        {
            ShowStatusInfo(status);
            return(status);
        }

        return(new CStatus());
    }
Esempio n. 10
0
            public CSTAT this[int index]
            {
                get
                {
                    switch (index)
                    {
                    case 0:
                        return(this.Drums);

                    case 1:
                        return(this.Guitar);

                    case 2:
                        return(this.Bass);
                    }
                    throw new IndexOutOfRangeException();
                }
                set
                {
                    switch (index)
                    {
                    case 0:
                        this.Drums = value;
                        return;

                    case 1:
                        this.Guitar = value;
                        return;

                    case 2:
                        this.Bass = value;
                        return;
                    }
                    throw new IndexOutOfRangeException();
                }
            }