Exemplo n.º 1
0
        void Init()
        {
            combZd.Items.Clear();
            lsName.Clear();
            lsdata.Clear();
            DataTable dt = T_Sysset.GetInfoenterSql();

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

            table = dr["InfoTable"].ToString();
            strzd = dr["InfoCol"].ToString();
            if (strzd.Length > 0)
            {
                string[] a = strzd.Split(';');
                for (int i = 0; i < a.Length; i++)
                {
                    string b = a[i];
                    if (b.Trim().Length > 0)
                    {
                        combZd.Items.Add(b);
                    }
                }
                if (combZd.Items.Count > 0)
                {
                    combZd.SelectedIndex = 0;
                }
            }
            combtj.SelectedIndex = 0;
        }
Exemplo n.º 2
0
        private void GetinfoSql()
        {
            Lsinfo.Clear();
            DataTable dt = T_Sysset.GetInfoenterSql();

            if (dt == null || dt.Rows.Count <= 0)
            {
                return;
            }
            string str = dt.Rows[0][2].ToString();

            if (str.Trim().Length <= 0)
            {
                return;
            }
            string[] str1 = str.Split(';');
            for (int i = 0; i < str1.Length; i++)
            {
                str = str1[i];
                if (str.Trim().Length <= 0)
                {
                    continue;
                }
                Lsinfo.Add(str);
            }
        }