Ejemplo n.º 1
0
 public IEnumerable <MVCModels.NoticeboardAgentMSGModel> GetAnnouncementForUser(string companyCode, string userCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetAnnouncementForUser(companyCode, userCode));
 }
Ejemplo n.º 2
0
 public IEnumerable <MVCModels.NoticeboardAgentMSGModel> GetPreviousAndNextAnnouncementCode(string companyCode, string userCode, string msgCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetPreviousAndNextAnnouncementCode(companyCode, userCode, msgCode));
 }
Ejemplo n.º 3
0
 public IEnumerable <MVCModels.MessagingModel> GetPreviousAndNextMsgCode(string companyCode, string userCode, string msgCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetPreviousAndNextMsgCode(companyCode, userCode, msgCode));
 }
Ejemplo n.º 4
0
 //
 //Notification
 public int GetUnreadAnnouncementCount(string companyCode, string userCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetUnreadAnnouncementCount(companyCode, userCode));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// get the child user details
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="userCode"></param>
 /// <returns>returns the list of child user details</returns>
 public IEnumerable <MVCModels.HiDoctor_Master.UserModel> GetChildUsers(string companyCode, string userCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetChildUsers(companyCode, userCode));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// get the selected msg details only header
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="userCode"></param>
 /// <returns>returns the selected msg content </returns>
 public IEnumerable <MVCModels.MessagingModel> GetSelectedMessageDetails(string companyCode, string msgCode, string user_Code)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetSelectedMessageDetails(companyCode, msgCode, user_Code));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// update attachemnt filepath
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="fileName"></param>
 /// <param name="columnName"></param>
 /// <param name="msgCode"></param>
 /// <returns></returns>
 public int UpdateAttachmentPath(string companyCode, string fileName, string columnName, string msgCode, string removedFile)
 {
     objMsg = new DALMessaging();
     return(objMsg.UpdateAttachmentPath(companyCode, fileName, columnName, msgCode, removedFile));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Get Entity code based on division
 /// </summary>
 /// <param name="companyCode"></param>
 /// <returns></returns>
 public List <MVCModels.DivisionBasedModel> GetEntityCodebyDivision(string companyCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetEntityCodebyDivision(companyCode));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Insert reply and forward mail details
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="lstMsgContent"></param>
 /// <param name="lstMsgUsers"></param>
 /// <returns>retuns the no of rows inserted </returns>
 public int InsertReplyOrForwardMail(string companyCode, List <MVCModels.MessagingModel> lstMsgContent, List <MVCModels.MessagingModel> lstMsgUsers)
 {
     objMsg = new DALMessaging();
     return(objMsg.InsertReplyOrForwardMail(companyCode, lstMsgContent, lstMsgUsers));
 }
Ejemplo n.º 10
0
        /// <summary>
        /// Get Msg code
        /// </summary>
        /// <param name="objName"></param>
        /// <returns></returns>

        public long GetSeqNumber(string objName)
        {
            objMsg = new DALMessaging();
            return(objMsg.GetSeqNumber(objName));
        }
Ejemplo n.º 11
0
 /// <summary>
 /// get unread and drafted count
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="userCode"></param>
 /// <returns>returns the unread and drafted count</returns>
 public DataSet GetMessageCount(string companyCode, string userCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetMessageCount(companyCode, userCode));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// insert the message
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="lstMsgContent"></param>
 /// <param name="lstMsgUsers"></param>
 /// <returns>returns the no of rows inserted</returns>
 public int InsertSendOrDraftMail(string companyCode, List <MVCModels.MessagingModel> lstMsgContent, List <MVCModels.MessagingModel> lstMsgUsers,
                                  string mode)
 {
     objMsg = new DALMessaging();
     return(objMsg.InsertSendOrDraftMail(companyCode, lstMsgContent, lstMsgUsers, mode));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// update the message status as read or unread
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="lstMsg"></param>
 /// <param name="isRead"></param>
 /// <returns>returns the no of rows affected </returns>
 public int UpdateMsgReadStatus(string companyCode, List <MVCModels.MessagingModel> lstMsg, string isRead)
 {
     objMsg = new DALMessaging();
     return(objMsg.UpdateMsgReadStatus(companyCode, lstMsg, isRead));
 }
Ejemplo n.º 14
0
 public int UpdateSentMsgStatus(string companyCode, List <MVCModels.MessagingModel> lstMsg, string msgStatus)
 {
     objMsg = new DALMessaging();
     return(objMsg.UpdateSentMsgStatus(companyCode, lstMsg, msgStatus));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// update the message
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="lstMsgContent"></param>
 /// <param name="lstMsgUsers"></param>
 /// <param name="msgCode"></param>
 /// <returns>returns the no of rows inserted</returns>
 public int UpdateDraftedMail(string companyCode, List <MVCModels.MessagingModel> lstMsgContent, List <MVCModels.MessagingModel> lstMsgUsers, string msgCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.UpdateDraftedMail(companyCode, lstMsgContent, lstMsgUsers, msgCode));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Get Active Division Names
 /// </summary>
 /// <param name="companyCode"></param>
 /// <returns></returns>
 public IEnumerable <MVCModels.MsdDivisionModel> GetDivisions(string companyCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetDivisions(companyCode));
 }
Ejemplo n.º 17
0
 /// <summary>
 /// get next or previous message details
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="msgCode"></param>
 /// <param name="mode"></param>
 /// <param name="userCode"></param>
 /// <param name="mailMode"></param>
 /// <returns></returns>
 public string GetPreviousOrNextMail(string companyCode, string msgCode, string mode, string userCode, string mailMode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetPreviousOrNextMail(companyCode, msgCode, mode, userCode, mailMode));
 }
Ejemplo n.º 18
0
 public string InsertOBOMapping(string companyCode, string userCode, string TypeName, List <MVCModels.HiDoctor_Master.UserModel> lstUserMappingDetails, string Created_By)
 {
     objMsg = new DALMessaging();
     return(objMsg.InsertOBOMapping(companyCode, userCode, TypeName, lstUserMappingDetails, Created_By));
 }
Ejemplo n.º 19
0
 public IEnumerable <MVCModels.MessagingModel> GetMessagesForUser(string companyCode, string userCode)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetMessagesForUser(companyCode, userCode));
 }
Ejemplo n.º 20
0
 /// <summary>
 /// get the message deleted content
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="userCode"></param>
 /// <param name="pageNumber"></param>
 /// <param name="pageSize"></param>
 /// <param name="totalPageCount"></param>
 /// <returns>returns the list of msg content </returns>
 public IEnumerable <MVCModels.MessagingModel> GetMsgDeletedContent(string companyCode, string userCode, int pageNumber, int pageSize,
                                                                    string searchWord, ref int totalPageCount)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetMsgDeletedContent(companyCode, userCode, pageNumber, pageSize, searchWord, ref totalPageCount));
 }
Ejemplo n.º 21
0
 /// <summary>
 /// get the selected msg details
 /// </summary>
 /// <param name="companyCode"></param>
 /// <param name="userCode"></param>
 /// <returns>returns the selected msg content </returns>
 public IEnumerable <MVCModels.MessagingModel> GetSelectedMsgDetails(string companyCode, string msgCode, string targetAddress)
 {
     objMsg = new DALMessaging();
     return(objMsg.GetSelectedMsgDetails(companyCode, msgCode, targetAddress));
 }