示例#1
0
        public IList<Core.Business.INSTRFEE> GetAllINSTRFEE()
        {
            IList<Core.Business.INSTRFEE> iNSTRFEElist = new List<Core.Business.INSTRFEE>();
            SqlServerUtility sql = new SqlServerUtility();

            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectINSTRFEEsAll");

            if (reader != null)
            {
                while (reader.Read())
                {
                    Core.Business.INSTRFEE iNSTRFEE = new Core.Business.INSTRFEE();

                    if (!reader.IsDBNull(0)) iNSTRFEE.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) iNSTRFEE.InstruId = reader.GetGuid(1);
                    if (!reader.IsDBNull(2)) iNSTRFEE.FEEITEM = reader.GetString(2);
                    if (!reader.IsDBNull(3)) iNSTRFEE.FEECLASS = reader.GetString(3);
                    if (!reader.IsDBNull(4)) iNSTRFEE.FEESTANDARD = reader.GetString(4);
                    if (!reader.IsDBNull(5)) iNSTRFEE.REMARK = reader.GetString(5);
                    if (!reader.IsDBNull(6)) iNSTRFEE.WRITEDATE = reader.GetDateTime(6);
                    if (!reader.IsDBNull(7)) iNSTRFEE.UPDATEDATE = reader.GetDateTime(7);

                    iNSTRFEE.MarkOld();
                    iNSTRFEElist.Add(iNSTRFEE);
                }
                reader.Close();
            }
            return iNSTRFEElist;
        }
示例#2
0
        public IList<CY.CSTS.Core.Business.INSTRFEE> GetINSTRFEEDynamic(string whereCondition, string orderByExpression)
        {
            if (string.IsNullOrEmpty(whereCondition))
            {
                return this.GetAllINSTRFEE();
            }

            IList<Core.Business.INSTRFEE> iNSTRFEElist = new List<Core.Business.INSTRFEE>();
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@WhereCondition", SqlDbType.NVarChar, whereCondition);
            sql.AddParameter("@OrderByExpression", SqlDbType.NVarChar, orderByExpression);
            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectINSTRFEEsDynamic");

            if (reader != null)
            {
                while (reader.Read())
                {
                    Core.Business.INSTRFEE iNSTRFEE = new Core.Business.INSTRFEE();

                    if (!reader.IsDBNull(0)) iNSTRFEE.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) iNSTRFEE.InstruId = reader.GetGuid(1);
                    if (!reader.IsDBNull(2)) iNSTRFEE.FEEITEM = reader.GetString(2);
                    if (!reader.IsDBNull(3)) iNSTRFEE.FEECLASS = reader.GetString(3);
                    if (!reader.IsDBNull(4)) iNSTRFEE.FEESTANDARD = reader.GetString(4);
                    if (!reader.IsDBNull(5)) iNSTRFEE.REMARK = reader.GetString(5);
                    if (!reader.IsDBNull(6)) iNSTRFEE.WRITEDATE = reader.GetDateTime(6);
                    if (!reader.IsDBNull(7)) iNSTRFEE.UPDATEDATE = reader.GetDateTime(7);

                    iNSTRFEE.MarkOld();
                    iNSTRFEElist.Add(iNSTRFEE);
                }
                reader.Close();
            }
            return iNSTRFEElist;
        }
示例#3
0
        public IEnumerable<INSTRFEE> GetFrees(Guid instrumentId)
        {
            if (instrumentId == Guid.Empty)
                return null;

            IList<Core.Business.INSTRFEE> iNSTRFEElist = new List<Core.Business.INSTRFEE>();

            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@id", SqlDbType.UniqueIdentifier, instrumentId);

            SqlDataReader reader = sql.ExecuteSqlReader(Sql_GetInstrumentFree);

            if (reader != null)
            {
                while (reader.Read())
                {
                    Core.Business.INSTRFEE iNSTRFEE = new Core.Business.INSTRFEE();

                    if (!reader.IsDBNull(0)) iNSTRFEE.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) iNSTRFEE.InstruId = reader.GetGuid(1);
                    if (!reader.IsDBNull(2)) iNSTRFEE.FEEITEM = reader.GetString(2);
                    if (!reader.IsDBNull(3)) iNSTRFEE.FEECLASS = reader.GetString(3);
                    if (!reader.IsDBNull(4)) iNSTRFEE.FEESTANDARD = reader.GetString(4);
                    if (!reader.IsDBNull(5)) iNSTRFEE.REMARK = reader.GetString(5);
                    if (!reader.IsDBNull(6)) iNSTRFEE.WRITEDATE = reader.GetDateTime(6);
                    if (!reader.IsDBNull(7)) iNSTRFEE.UPDATEDATE = reader.GetDateTime(7);

                    iNSTRFEE.MarkOld();
                    iNSTRFEElist.Add(iNSTRFEE);
                }
                reader.Close();
            }
            return iNSTRFEElist;
        }