Ejemplo n.º 1
0
    public DateTime GetDateTime(int WallID)
    {
        TableOpreatorClass oTable = new TableOpreatorClass();

        DateTime returnValue = Convert.ToDateTime(oTable.GetValueFromTable(WallID, "DateTime", "Wall"));

        return(returnValue);
    }
Ejemplo n.º 2
0
    public int GetPublicationListID(int WallID)
    {
        TableOpreatorClass oTable = new TableOpreatorClass();

        int returnValue = Convert.ToInt32(oTable.GetValueFromTable(WallID, "PublicationListID", "Wall"));

        return(returnValue);
    }
Ejemplo n.º 3
0
    public object GetPeopleValue(int PeopleID, String ValueName)
    {
        TableOpreatorClass tempObj = new TableOpreatorClass();

        object returnValue = null;

        returnValue = tempObj.GetValueFromTable(PeopleID, ValueName, "Peoples");

        return(returnValue);
    }
Ejemplo n.º 4
0
    /// <summary>
    /// returns -1, if publication list of wall is not exist))
    /// </summary>
    /// <param name="WallID"></param>
    /// <returns></returns>
    public int GetPublicationList_ID_ofWall(int WallID)
    {
        TableOpreatorClass oTable = new TableOpreatorClass();
        object             ID     = oTable.GetValueFromTable(WallID, "PublicationListID", "Wall");

        if (ID == null)
        {
            return(-1);
        }
        int returnValue = Convert.ToInt32(ID);

        return(returnValue);
    }
Ejemplo n.º 5
0
    public List <int> GetPublicationIDs(int publicationListID)
    {
        List <int> returnValue = new List <int>();

        TableOpreatorClass oTable = new TableOpreatorClass();
        bool flag = true;

        while (flag)
        {
            object id = oTable.GetValueFromTable(publicationListID, "PublicationID", "PublicationList");
            if (id == null)
            {
                flag = false;
                continue;
            }
            int ID = Convert.ToInt32(id);
            returnValue.Add(ID);
        }

        return(returnValue);
    }