コード例 #1
0
ファイル: ToDo.cs プロジェクト: vinay1988/Ang6API
        /// <summary>
        /// GetListForMailMessage
        /// Calls [usp_selectAll_ToDo_for_MailMessage]
        /// </summary>
        public static List <ToDo> GetListForMailMessage(System.Int32?mailMessageNo)
        {
            List <ToDoDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.ToDo.GetListForMailMessage(mailMessageNo);

            if (lstDetails == null)
            {
                return(new List <ToDo>());
            }
            else
            {
                List <ToDo> lst = new List <ToDo>();
                foreach (ToDoDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.ToDo obj = new Rebound.GlobalTrader.BLL.ToDo();
                    obj.LoginName               = objDetails.LoginName;
                    obj.ToDoId                  = objDetails.ToDoId;
                    obj.LoginNo                 = objDetails.LoginNo;
                    obj.Subject                 = objDetails.Subject;
                    obj.DateAdded               = objDetails.DateAdded;
                    obj.DueDate                 = objDetails.DueDate;
                    obj.ToDoText                = objDetails.ToDoText;
                    obj.Priority                = objDetails.Priority;
                    obj.IsComplete              = objDetails.IsComplete;
                    obj.ReminderDate            = objDetails.ReminderDate;
                    obj.ReminderText            = objDetails.ReminderText;
                    obj.CompanyNo               = objDetails.CompanyNo;
                    obj.ReminderHasBeenNotified = objDetails.ReminderHasBeenNotified;
                    obj.RelatedMailMessageNo    = objDetails.RelatedMailMessageNo;
                    obj.UpdatedBy               = objDetails.UpdatedBy;
                    obj.DLUP = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
コード例 #2
0
ファイル: ToDo.cs プロジェクト: vinay1988/Ang6API
        /// <summary>
        /// GetListAlertForLogin
        /// Calls [usp_selectAll_ToDo_Alert_for_Login]
        /// </summary>
        public static List <ToDo> GetListAlertForLogin(System.Int32?loginNo, System.DateTime?now)
        {
            List <ToDoDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.ToDo.GetListAlertForLogin(loginNo, now);

            if (lstDetails == null)
            {
                return(new List <ToDo>());
            }
            else
            {
                List <ToDo> lst = new List <ToDo>();
                foreach (ToDoDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.ToDo obj = new Rebound.GlobalTrader.BLL.ToDo();
                    obj.ToDoId       = objDetails.ToDoId;
                    obj.ReminderText = objDetails.ReminderText;
                    obj.DueDate      = objDetails.DueDate;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }