예제 #1
0
    protected void BindDDL()
    {
        dt = doDBAccess.toSelect(getSqlStr.getRoleType(), loginEmpno);
        if (dt.Rows.Count > 0)
        {
            dt = MgrRoleMaintainer.getRoleType(dt.Rows[0]["roletype"].ToString());
            ddl_group.DataSource     = dt;
            ddl_group.DataTextField  = "subCname";
            ddl_group.DataValueField = "subType";
            ddl_group.DataBind();
        }
        ddl_group.Items.Insert(0, new ListItem("全部群組", ""));

        ds = common.GetOrgBasicData("");
        ddl_org.DataSource     = ds;
        ddl_org.DataTextField  = "org_abbr_chnm2";
        ddl_org.DataValueField = "org_orgcd";
        ddl_org.DataBind();
        ddl_org.Items.Insert(0, new ListItem("請選擇", ""));
    }