コード例 #1
0
        public List <proc_rpt_DashboardDetailResult> GetDashboardDetailData(DateTime reportStart,
                                                                            DateTime reportEnd,
                                                                            string executiveID,
                                                                            int?businessTypeID,
                                                                            int?classificationID,
                                                                            string source,
                                                                            string anzsic,
                                                                            string actionSet,
                                                                            string resultSet,
                                                                            string opportunities)
        {
            bizMessage biz = new bizMessage();

            try
            {
                if (businessTypeID == 0)
                {
                    businessTypeID = null;
                }
                if (classificationID == 0)
                {
                    classificationID = null;
                }
                if (source == "")
                {
                    source = null;
                }
                if (anzsic == "")
                {
                    anzsic = null;
                }
                enGageDataContext db = new enGageDataContext();
                return(db.proc_rpt_DashboardDetail(reportStart, reportEnd, executiveID, businessTypeID, classificationID, source, anzsic, actionSet, resultSet, opportunities).ToList());
            }
            catch (Exception ex)
            {
                this.MSGS.AddMessage(biz.GetMessageText("Exception"), Enums.enMsgType.Err);
                bizLog.InsertExceptionLog(ex);
                return(null);
            }
        }