コード例 #1
0
        public void GetContenInfo()
        {
            //if (ClsContenInfo.ContenTable ==null && ClsContenInfo.ContenTable.Length<=0)
            //    return;
            DataTable dt = T_Sysset.GetConten(UcContents.Modulename);

            if (dt == null || dt.Rows.Count <= 0)
            {
                return;
            }
            DataRow dr = dt.Rows[0];

            ContenCoList.Clear();
            ContenTable   = dr["ContenTable"].ToString();
            ContenLie     = dr["ContenLie"].ToString();
            ContenWith    = dr["ContenWith"].ToString();
            ContenTxtwith = dr["ContentxtWith"].ToString();
            ContenTitle   = dr["ContenTitle"].ToString();
            ContenPages   = dr["ContenPages"].ToString();
            ContenCol     = dr["ContenCol"].ToString();
            if (ContenCol.Length > 0)
            {
                string[] col = ContenCol.Split(';');
                for (int i = 0; i < col.Length; i++)
                {
                    ContenCoList.Add(col[i]);
                }
            }
            PagesWz = ContenCoList.IndexOf(ContenPages);
            TitleWz = ContenCoList.IndexOf(ContenTitle);
            LoadModulels();
        }