Example #1
0
        /// <summary>
        /// 初始化评分类别下拉框
        /// add by ywk 2012年10月25日 11:19:51
        /// </summary>
        private void InitPointClass()
        {
            lookUpWindowCCNAME.SqlHelper = m_app.SqlHelper;

            SqlManger sqlManager = new SqlManger(m_app);
            DataTable DtParent   = sqlManager.GetParentClass();

            DtParent.Columns["CCODE"].Caption = "分类代码";
            DtParent.Columns["CNAME"].Caption = "分类名称";
            Dictionary <string, int> cols = new Dictionary <string, int>();

            cols.Add("CCODE", 50);
            cols.Add("CNAME", 100);
            SqlWordbook deptWordBook = new SqlWordbook("querybook", DtParent, "CCODE", "CNAME", cols);

            lookUpCCNAME.SqlWordbook = deptWordBook;
        }