Beispiel #1
0
 /// <summary>
 /// 显示参数类别列表
 /// </summary>
 private void mShowParaTypeView()
 {
     mParaCls.GetAllParaType();
     this.lvParaType.Items.Clear();
     foreach (DataRow row in dsParaConfig.TCONF_WORD.Rows)
     {
         ParaTypeItem pItem = new ParaTypeItem();
         pItem.TypeID     = row["SystemConfigGroupID"].ToString();
         pItem.TypeName   = row["ConfigGroupName"].ToString();
         pItem.TypeMemo   = row["Memo"].ToString();
         pItem.paraName1  = row["Information1"].ToString();
         pItem.paraName2  = row["Information2"].ToString();
         pItem.paraName3  = row["Information3"].ToString();
         pItem.ImageIndex = 0;
         lvParaType.Items.Add(pItem);
     }
 }
Beispiel #2
0
 private void ShowParaValue()
 {
     if (lvParaType.SelectedItems.Count > 0)
     {
         ParaTypeItem selItem = lvParaType.SelectedItems[0] as ParaTypeItem;
         if (selItem != null)
         {
             mstrCurrentTypeID = selItem.TypeID;
             if (selItem.paraName1.Trim() == "")
             {
                 colInformation1.Visible = false;
             }
             else
             {
                 colInformation1.Visible    = true;
                 colInformation1.HeaderText = selItem.paraName1;
             }
             if (selItem.paraName2.Trim() == "")
             {
                 colInformation2.Visible = false;
             }
             else
             {
                 colInformation2.Visible    = true;
                 colInformation2.HeaderText = selItem.paraName2;
             }
             if (selItem.paraName3.Trim() == "")
             {
                 colInformation3.Visible = false;
             }
             else
             {
                 colInformation3.Visible    = true;
                 colInformation3.HeaderText = selItem.paraName3;
             }
             mParaCls.GetParaValue(mstrCurrentTypeID);
         }
     }
     else
     {
     }
 }