public static List<DATA> FromDefList ( List<EDITITEMDEF> lstDef )
        {
            List<DATA> lstData = new List<DATA>();

            foreach ( EDITITEMDEF def in lstDef )
            {
                DATA data = new DATA();

                data.Caption = def.Caption.ToUpper();
                data.Def = def.strComBin;

                lstData.Add( data );
            }

            return lstData;
        }
        public void AddItems( DATA data ) 
        {
            EDITITEMDEF Def = GetItemDef( data );

            //隐藏字段不添加到列表上
            //if( ! Def.bCanShow )
            if ( ! AllowShow( Def ) )
                return;

            ListViewItem li = new ListViewItem( data.Caption );
            li.SubItems.Add( data.Value );
            li.Tag = data;

            //
            SetValCellColor( li, Def );

            Items.Add(li);
        }
        public static int Compare ( DATA t1, DATA t2 )
        {
            EDITITEMDEF def1 = new EDITITEMDEF();
            EDITITEMDEF def2 = new EDITITEMDEF();
            
            def1.strComBin = t1.Def;
            def2.strComBin = t2.Def;


            if ( def1.OrderNo > def2.OrderNo )
                return 1;
            else if ( def1.OrderNo < def2.OrderNo )
                return -1;

            return 0;
        }
        protected EDITITEMDEF GetItemDef( DATA data )
        {
            EDITITEMDEF ItemDef = new EDITITEMDEF();
            
            ItemDef.Set_ByCombin( data.Def );

            return ItemDef;
        }