Exemple #1
0
        //void load_CK()
        //{
        //    txtIR.config.toolbar = new object[]
        //    {
        //        new object[] { "Bold", "Italic", "-", "NumberedList", "BulletedList","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"},
        //        new object[] {"Styles", "Format", "FontSize"  }
        //    };
        //    txtFR.config.toolbar = new object[]
        //    {
        //        new object[] { "Bold", "Italic", "-", "NumberedList", "BulletedList","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"},
        //        new object[] {"Styles", "Format", "FontSize"  }
        //    };
        //}
        void load(string id)
        {
            DataTable dt = new DataTable();

            dt = cldao.SelectDetailLossExtent(id);
            if (dt.Rows.Count > 0)
            {
                DataRow dr   = dt.Rows[0];
                string  text = dr[0].ToString();
                if (text != "")
                {
                    txtIR.Text = dr[0].ToString();
                }
                string text1 = dr[1].ToString();
                if (text1 != "")
                {
                    txtFR.Text = dr[1].ToString();
                }
            }
        }