예제 #1
0
        private void GetBindList(string value)
        {
            try
            {
                ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
                DataSet     theDSList     = CustomManager.GetICDList();
                DataView    theDV         = new DataView(theDSList.Tables[3]);
                theDV.RowFilter = "CodeName IN( '" + value + "')";
                theDV.ToTable();

                DataSet theDS = CustomManager.GetICDData(Convert.ToInt32(theDV.ToTable().Rows[0][0]), 2);
                if (theDS.Tables[0].Rows.Count > 0)
                {
                    if (theDS.Tables[0].Rows[0][0] != DBNull.Value && theDS.Tables[2].Rows[0][0] != DBNull.Value && theDS.Tables[3].Rows[0][0] != DBNull.Value)
                    {
                        ViewState["ICDCodeId"] = theDS.Tables[0].Rows[0][0];
                        GetSelectedBindICDCodes(Convert.ToInt32(theDS.Tables[0].Rows[0][0]), 2, Convert.ToInt32(theDS.Tables[2].Rows[0][0]), Convert.ToInt32(theDS.Tables[3].Rows[0][0]));
                    }
                }
            }
            catch { }

            finally { }
        }
예제 #2
0
    private void GetTreeViewData()
    {
        int Id          = Convert.ToInt32(Request.QueryString["SelectedId"]);
        int DiseaseFlag = 0;

        if (Convert.ToString(Request.QueryString["TableName"]) == "HivDisease")
        {
            DiseaseFlag = 1;
        }
        else if (Convert.ToString(Request.QueryString["TableName"]) == "Symptom")
        {
            DiseaseFlag = 0;
        }
        ICustomList CustomManager = (ICustomList)ObjectFactory.CreateInstance("BusinessProcess.Administration.BCustomList, BusinessProcess.Administration");
        DataSet     theDS         = CustomManager.GetICDData(Id, DiseaseFlag);

        if (theDS.Tables[0].Rows.Count > 0)
        {
            if (theDS.Tables[0].Rows[0][0] != DBNull.Value && theDS.Tables[2].Rows[0][0] != DBNull.Value && theDS.Tables[3].Rows[0][0] != DBNull.Value)
            {
                ViewState["ICDCodeId"] = theDS.Tables[0].Rows[0][0];
                GetSelectedBindICDCodes(Convert.ToInt32(theDS.Tables[0].Rows[0][0]), 2, Convert.ToInt32(theDS.Tables[2].Rows[0][0]), Convert.ToInt32(theDS.Tables[3].Rows[0][0]));
            }
            else
            {
                BindList();
            }
            if (theDS.Tables[4].Rows.Count > 0)
            {
                if (theDS.Tables[4].Rows[0][0] != DBNull.Value)
                {
                    GetlnkModuleData(Id, DiseaseFlag, theDS.Tables[4]);
                }
            }
        }
    }