private void frmInvokeTemplateByICD10_VisibleChanged(object sender, System.EventArgs e) { int intIcdCount = 0; int intTemplateByICDCount = 0; if (m_blnIsAutoShow) { intIcdCount = m_cboCategoryId.GetItemsCount(); intTemplateByICDCount = m_lsvAssistantDiagnoseItem.Items.Count; if (intIcdCount <= 0) { this.Close(); return; } if (intTemplateByICDCount <= 0) { this.Close(); return; } if (intIcdCount == 1 && intTemplateByICDCount == 1) { m_lsvAssistantDiagnoseItem.Items[0].Selected = true; m_cmdOK_Click(null, null); } } }
private void m_mthGetCategoryName() { if (m_ojbIcdValue != null) { for (int i = 0; i <= m_ojbIcdValue.Length - 1; i++) { m_cboCategory.AddItem(m_ojbIcdValue[i].ICD10_Name); m_cboCategoryId.AddItem(m_ojbIcdValue[i].ICD10_ID); } if (m_cboCategory.GetItemsCount() > 0) { m_cboCategory.SelectedIndex = 0; } } }
protected override void m_mthSetTestBaseDept(com.digitalwave.Utility.clsTestContentMaker p_objContentMaker) { m_cboToDept.SelectedIndex = p_objContentMaker.m_intNextSelectIndex(m_cboToDept, m_cboToDept.GetItemsCount() - 1); }