Exemplo n.º 1
0
        private void m_mthFillCat()
        {
            clsCharegeItemCat_VO[] objResult;
            long lngRes = objSvc.m_mthFindCat(out objResult);

            m_objViewer.m_cmbType.Items.Clear();
            if ((lngRes > 0) && (objResult != null))
            {
                for (int i1 = 0; i1 < objResult.Length; i1++)
                {
                    if (this.m_objViewer.strPopedom == "")
                    {
                        m_objViewer.m_cmbType.Item.Add(objResult[i1].m_strItemCatName, objResult[i1].m_strItemCatID);
                    }
                    else
                    {
                        if (m_mthAddPopedom(objResult[i1].m_strItemCatID.Trim()))
                        {
                            m_objViewer.Name += i1.ToString();
                            m_objViewer.m_cmbType.Item.Add(objResult[i1].m_strItemCatName, objResult[i1].m_strItemCatID);
                        }
                    }
                }
            }
            if (m_objViewer.m_cmbType.Items.Count > 0)
            {
                m_objViewer.m_cmbType.SelectedIndex = 0;
            }
        }