コード例 #1
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataTable getHousesNeedConnectToClient(int?agentID = null)
        {
            clsDBconnection db = new clsDBconnection();

            return(db.ExecReader("select * from houses h where " + (agentID != null ? "employee = " + agentID + " and " : "") +
                                 " not exists (select * from clients where type <> 3 and id = h.client)"));
        }
コード例 #2
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataTable getHousesForSales(int?agentID)
        {
            clsDBconnection db = new clsDBconnection();

            return(db.ExecReader("select * from houses h where " + (agentID != null ? "employee = " + agentID + " and " : "") +
                                 " status = 3 and not exists (select * from sales where house = h.id)"));
        }
コード例 #3
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataRow getClient(int clientID)
        {
            clsDBconnection db  = new clsDBconnection();
            DataTable       tmp = db.ExecReader("select * from clients where type <> 3 and id = " + clientID);

            if (tmp.Rows.Count != 0)
            {
                return(tmp.Rows[0]);
            }
            return(null);
        }
コード例 #4
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataTable getClientsNeedConnectToHouse()
        {
            clsDBconnection db = new clsDBconnection();

            return(db.ExecReader("select * from clients c where type <> 3"));
        }
コード例 #5
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataTable getEmployees()
        {
            clsDBconnection db = new clsDBconnection();

            return(db.ExecReader("select * from employees"));
        }
コード例 #6
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataTable getMessages()
        {
            clsDBconnection db = new clsDBconnection();

            return(db.ExecReader("select * from messages"));
        }
コード例 #7
0
ファイル: clsRemaxData.cs プロジェクト: imovila/Remax
        public DataTable getMessages(int agentID)
        {
            clsDBconnection db = new clsDBconnection();

            return(db.ExecReader("select * from messages where employee = " + agentID));
        }