Example #1
0
    protected void lstOrganization_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            List <ATTOrganizationCaseType> lstOrgCaseType = BLLOrganizationCaseType.GetOrgCaseType(int.Parse(lstOrganization.SelectedValue), null, "Y", 1, 1, 1, 1);

            lstCaseTypes.DataSource     = lstOrgCaseType;
            lstCaseTypes.DataTextField  = "CaseTypeName";
            lstCaseTypes.DataValueField = "CaseTypeID";
            lstCaseTypes.DataBind();

            List <ATTOrganizationUnit> OrgUnitList = BLLOrganizationUnit.GetOrganizationUnits(int.Parse(lstOrganization.SelectedValue), null);

            OrgUnitList.RemoveAll(delegate(ATTOrganizationUnit attOU)
            {
                return(attOU.UnitType != "C");
            });

            grdOrgUnits.DataSource = OrgUnitList;
            grdOrgUnits.DataBind();
        }
        catch (Exception ex)
        {
            lblStatusMessage.Text = ex.Message;
            programmaticModalPopup.Show();
        }
    }
Example #2
0
 void LoadCaseType()
 {
     try
     {
         List <ATTOrganizationCaseType> lstOrgCaseType = BLLOrganizationCaseType.GetOrgCaseType(int.Parse(DDLOrgWithChilds.SelectedValue), null, "Y", 1, 0, 0, 0);
         DDLCaseType.DataSource     = lstOrgCaseType;
         DDLCaseType.DataTextField  = "CaseTypeName";
         DDLCaseType.DataValueField = "CaseTypeID";
         DDLCaseType.DataBind();
     }
     catch (Exception ex)
     {
         lblStatusMessage.Text = ex.Message;
         programmaticModalPopup.Show();
     }
 }
    protected void lstOrganization_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            List <ATTOrganizationCaseType> OrgCaseTypeList = BLLOrganizationCaseType.GetOrgCaseType(int.Parse(lstOrganization.SelectedValue.ToString()), null, "Y", 0, 0, 0, 0);

            this.lstCaseType.DataSource     = OrgCaseTypeList;
            this.lstCaseType.DataTextField  = "CaseTypeName";
            this.lstCaseType.DataValueField = "CaseTypeID";
            this.lstCaseType.DataBind();
            ClearControls();
        }
        catch (Exception ex)
        {
            this.lblStatusMessage.Text = ex.Message;
            this.programmaticModalPopup.Show();
        }
    }