예제 #1
0
    private string GetFirtIGID()
    {
        string s         = "";
        string condition = DataExtension.AndConditon(
            GroupsTSql.GetByApp(CodeApplications.Contact),
            GroupsTSql.GetByEnable("1"),
            GroupsTSql.GetByLevel("1"),
            GroupsTSql.GetByLang(lang)
            );
        DataTable dt = Groups.GetGroups("1", GroupsColumns.IgidColumn, condition, GroupsColumns.IgorderColumn);

        if (dt.Rows.Count > 0)
        {
            s = dt.Rows[0][GroupsColumns.IgidColumn].ToString();
        }
        return(s);
    }