Esempio n. 1
0
        /// <summary>
        /// 绑定选择类型枚举
        /// </summary>
        public static void BindCLSList(LookUpEdit p_DrpID, bool p_ShowBlank)
        {
            p_DrpID.Properties.ShowHeader = false;
            p_DrpID.Properties.ShowFooter = false;
            FCommon.LookupEditColAdd(p_DrpID, new int[4] {
                0, 75, 75, 100
            }, new string[4] {
                "ID", "CLSA", "CLSB", "CLSDESC"
            }, new string[4] {
                "", "", "", ""
            }, new bool[4] {
                false, false, false, true
            });
            string    sql = "SELECT ID,CLSA,CLSB,CLSDESC FROM Data_CLSList";
            DataTable dt  = SysUtils.Fill(sql);

            FCommon.LoadDropLookUP(p_DrpID, dt, "CLSDESC", "ID", p_ShowBlank);
        }
Esempio n. 2
0
        /// <summary>
        /// 绑定FastReport下拉列表
        /// </summary>
        /// <param name="?"></param>
        /// <param name="FormListAID"></param>
        public void BindFastReportList(LookUpEdit p_box, int p_WinListID)
        {
            string sql = string.Empty;

            sql += " SELECT ID,ReportName FROM Data_ReportManage WHERE WinListID=" + p_WinListID;
            DataTable dt = SysUtils.Fill(sql);

            FCommon.LookupEditColAdd(p_box, new int[1] {
                50
            }, new string[1] {
                "ReportName"
            }, new string[1] {
                ""
            }, new bool[1] {
                true
            });
            FCommon.LoadDropLookUP(p_box, dt, "ReportName", "ID", false);
            if (dt.Rows.Count != 0)
            {
                p_box.EditValue = SysConvert.ToInt32(dt.Rows[0]["ID"]);
            }
        }