protected void UpdateTables()
    {
        DataTable dt = ContactAusDB.GetDataTable_ByEntityID(-1, this.EntityID);

        CreateTable(phAddresses, dt.Select("atg_contact_type_group_id=1"), 525, 500);
        CreateTable(phPhoneNums, dt.Select("atg_contact_type_group_id=2"), 450, 365);
        CreateTable(phBedrooms, dt.Select("atg_contact_type_group_id=3"), 450, 365);
        CreateTable(phEmails, dt.Select("atg_contact_type_group_id=4"), 450, 365);
        //this.CreateTableEmails   (dt.Select("ad_contact_type_id=27"));
    }
Пример #2
0
    protected string GetContactInfo(int EntityID, int indentPX, string showHideID)
    {
        string output = string.Empty;

        DataTable dt = ContactAusDB.GetDataTable_ByEntityID(-1, EntityID);

        output += GetContactDetail(dt.Select("atg_contact_type_group_id=1"));
        output += GetContactDetail(dt.Select("atg_contact_type_group_id=2"));
        output += GetContactDetail(dt.Select("atg_contact_type_group_id=4"));

        return(output == string.Empty ? "" : @"<table id='" + showHideID + @"' style=""margin-left:" + indentPX + @"px; display:none;"">" + output + "</table>");
    }