Exemple #1
0
 /// <summary>
 /// 加载父类别下拉框数据
 /// </summary>
 private void InitlookUpEditParents()
 {
     try
     {
         DataTable dt = m_SqlManager.GetReductionParents();
         lookUpEditParents.Properties.DataSource    = dt;
         lookUpEditParents.Properties.ValueMember   = "ID";
         lookUpEditParents.Properties.DisplayMember = "NAME";
         lookUpEditParents.Properties.NullText      = "";
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemple #2
0
 /// <summary>
 /// 加载父类别下拉框数据
 /// 王冀 2012-11-9
 /// </summary>
 private void InitlookUpEditParents()
 {
     try
     {
         DataTable dt = m_SqlManager.GetReductionParents();
         lookUpEditParents.Properties.DataSource    = dt;
         lookUpEditParents.Properties.ValueMember   = "ID";
         lookUpEditParents.Properties.DisplayMember = "NAME";
         lookUpEditParents.Properties.NullText      = "";
     }
     catch (Exception ex)
     {
         DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
     }
 }