Пример #1
0
        /// <summary>
        /// 获得下游信息
        /// </summary>
        /// <param name="fk_id"></param>
        /// <param name="db_id"></param>
        /// <returns></returns>
        public ConnectorRelation GetDownConnector(int fk_id, int upBuyerId, int db_id)
        {
            DataTable         dt     = DbAccess.GetDataTable(string.Format(CommandConstant.GetDownConnectorBySellerId, fk_id, db_id, upBuyerId));
            ConnectorRelation entity = new ConnectorRelation();

            if (dt != null && dt.Rows.Count > 0)
            {
                entity.SetValues(dt.Rows[0]);
            }
            return(entity);
        }
Пример #2
0
        /// <summary>
        /// 获取上游信息
        /// </summary>
        /// <param name="connectId"></param>
        /// <returns></returns>
        public ConnectorRelation GetUpConnector(int connectId)
        {
            DataTable         dt     = DbAccess.GetDataTable(string.Format(CommandConstant.GetUpConnectorById, connectId));
            ConnectorRelation entity = new ConnectorRelation();

            if (dt != null && dt.Rows.Count > 0)
            {
                entity.SetValues(dt.Rows[0]);
            }
            return(entity);
        }