Exemple #1
0
        /// <summary>
        /// 根据父类别的选中项加载子类别下拉框数据
        /// 王冀 2012-11-9
        /// </summary>
        private void InitlookUpEditChild()
        {
            try
            {
                DataTable dt = m_SqlManager.GetReductionChild();

                if (lookUpEditParents.EditValue.ToString().Trim() != "")
                {
                    dt = ToDataTable(dt.Select("ccode='" + lookUpEditParents.EditValue.ToString() + "'"));
                }

                lookUpEditChild.Properties.DataSource    = dt;
                lookUpEditChild.Properties.ValueMember   = "ID";
                lookUpEditChild.Properties.DisplayMember = "NAME";
                lookUpEditChild.Properties.NullText      = "";
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }