コード例 #1
0
ファイル: frmDeactiveRecord.cs プロジェクト: ewin66/HIS
        public void m_mthSetForm(frmHRPBaseForm p_objBaseForm)
        {
            m_objBaseForm = null;

            for (int i = 0; i < m_cboFormType.GetItemsCount(); i++)
            {
                clsDeactiveFormInfo objFormInfo = (clsDeactiveFormInfo)m_cboFormType.GetItem(i);

                if (objFormInfo.m_intFormID == p_objBaseForm.m_IntFormID)
                {
                    m_cboFormType.SelectedIndex = i;
                    m_objBaseForm = p_objBaseForm;
                    break;
                }
            }

            m_cboFormType.Enabled = false;

            m_mthSearch();
        }
コード例 #2
0
ファイル: frmCommonUse.cs プロジェクト: ewin66/HIS
 private void m_cboCommonUseType_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     m_blnIsAddNew            = true;
     m_txtCommonUseValue.Text = "";
     m_lsvCommonUseValue.Items.Clear();
     if (m_cboCommonUseType.GetItemsCount() == 0)
     {
         return;
     }
     clsCommonUseValue[] objclsCommonUseValue = null;
     if (m_cboCommonUseType.SelectedItem != null)
     {
         m_objDomain.m_lngGetAllCommonUseValue(((clsPublicIDAndName)(m_cboCommonUseType.SelectedItem)).m_strID, out objclsCommonUseValue);
     }
     if (objclsCommonUseValue != null)
     {
         for (int i = 0; i < objclsCommonUseValue.Length; i++)
         {
             ListViewItem lviNew = m_lsvCommonUseValue.Items.Add(objclsCommonUseValue[i].m_strTypeID);
             lviNew.SubItems.Add(objclsCommonUseValue[i].m_strCommonUseValue);
         }
     }
     clsPublicFunction.s_mthChangeListViewLastColumnWidth(m_lsvCommonUseValue, 11);
 }