Beispiel #1
0
 public int MeetingInfoUpdateByForm(T_OA_MEETINGINFO obj, List <T_OA_MEETINGSTAFF> meetingstaffObj, List <T_OA_MEETINGCONTENT> ContentObj, T_OA_MEETINGMESSAGE meetingmessageObj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.UpdateMeetingInfo(obj, meetingstaffObj, ContentObj, meetingmessageObj));
     }
 }
Beispiel #2
0
 public bool MeetingInfoDel(string StrMeetingInfoID)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.DeleteMeetingInfo(StrMeetingInfoID));
     }
 }
Beispiel #3
0
 //批量删除
 public bool MeetingInfoBatchDel(string[] StrMeetingInfoIDs)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.BatchDeleteMeetingInfo(StrMeetingInfoIDs));
     }
 }
Beispiel #4
0
 public int MeetingInfoUpdate(T_OA_MEETINGINFO obj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.UpdateMeetingInfo(obj));
     }
 }
Beispiel #5
0
 //获取会议通知信息
 public T_OA_MEETINGMESSAGE GetMeetingMessageByID(string MessageID)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.GetMeetingMessageByID(MessageID));
     }
 }
Beispiel #6
0
 public T_OA_MEETINGINFO GetMeetingInfoSingleInfoById(string StrMeetingInfoId)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.GetMeetingInfoById(StrMeetingInfoId));
     }
 }
Beispiel #7
0
 public int UpdateMeetingNoticeInfo(T_OA_MEETINGINFO info, T_OA_MEETINGMESSAGE message)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.UpdateMeetingNoticeInfo(info, message));
     }
 }
Beispiel #8
0
 public V_MeetingInfo GetMeetingNoticeByNoticeID(string NoticeId)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.GetMeetingNoticeByNoticeID(NoticeId));
     }
 }
Beispiel #9
0
 //添加
 public string MeetingInfoAdd(T_OA_MEETINGINFO obj, List <T_OA_MEETINGSTAFF> meetingstaffObj, List <T_OA_MEETINGCONTENT> ContentObj, T_OA_MEETINGMESSAGE meetingmessageObj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.AddMeetingInfo(obj, meetingstaffObj, ContentObj, meetingmessageObj));
     }
 }
Beispiel #10
0
 private bool IsExistMeetingInfoByAdd(string StrTitle, string StrMeetingType, string StrRoom, string StrCreatUser, DateTime startdt, DateTime enddt)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.GetMeetingInfoByAdd(StrTitle, StrMeetingType, StrRoom, StrCreatUser, startdt, enddt));
         //return MeetingInfoBLL.GetMeetingTemplateByTemplateNameAndType(StrMeetingType, StrTemplateName);
     }
 }
Beispiel #11
0
 public List <T_OA_MEETINGINFO> GetMeetintInfosListByTitleTimeSearch(string StrTitle, string StrDepartment, string StrType, string StrContent, DateTime DtStart, DateTime DtEnd, string StrCheckState)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         IQueryable <T_OA_MEETINGINFO> MeetingInfoList = MeetingInfoBLL.GetMeetingInfosListByTitleTimeSearch(StrTitle, StrType, StrDepartment, DtStart, DtEnd, StrContent, StrCheckState);
         if (MeetingInfoList == null)
         {
             return(null);
         }
         else
         {
             return(MeetingInfoList.ToList());
         }
     }
 }
Beispiel #12
0
 ///获取员工主持的会议
 public List <V_MyMeetingInfosManagement> GetMyEmceeMeetingInfosManagement(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string StrUserID)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         IQueryable <V_MyMeetingInfosManagement> MyMeetingInfosList = MeetingInfoBLL.GeMemberEmceeMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref pageCount, StrUserID);
         if (MyMeetingInfosList != null)
         {
             return(MyMeetingInfosList.ToList());
         }
         else
         {
             return(null);
         }
     }
 }
Beispiel #13
0
 public List <V_MeetingInfo> GetMeetingInfoListByFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         IQueryable <V_MeetingInfo> MeetingInfoList = null;
         if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取用户的提交借阅信息
         {
             if (checkState == ((int)CheckStates.ALL).ToString())
             {
                 MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID);
             }
             else
             {
                 MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID);
             }
         }
         else                    //通过工作流获取用户要审批的借阅信息
         {
             ServiceClient             workFlowWS = new ServiceClient();
             V_MeetingInfo             a          = new V_MeetingInfo();
             FLOW_FLOWRECORDDETAIL_T   flowInfo   = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作
             FLOW_FLOWRECORDDETAIL_T[] flowList   = workFlowWS.GetFlowInfo("", "", "", "0", "MeetingInfo", loginUserInfo.companyID, loginUserInfo.userID);
             if (flowList == null)
             {
                 return(null);
             }
             List <V_FlowAPP> flowAppList = new List <V_FlowAPP>();
             for (int i = 0; i < flowList.Length; i++)
             {
                 V_FlowAPP App = new V_FlowAPP();
                 App.Guid         = flowList[i].FLOWRECORDDETAILID;
                 App.FormID       = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID;
                 App.EditUserID   = flowList[i].EDITUSERID;
                 App.EditUserName = flowList[i].EDITUSERNAME;
                 flowAppList.Add(App);
             }
             checkState      = ((int)CheckStates.Approving).ToString();
             MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID);
         }
         return(MeetingInfoList != null?MeetingInfoList.ToList() : null);
     }
 }
Beispiel #14
0
        public int SubmitFlow(T_OA_MEETINGINFO obj, FLOW_FLOWRECORDDETAIL_T flowRecordInfo, string toUserId)
        {
            using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
            {
                MeetingInfoBLL.BeginTransaction();

                int nRet = MeetingInfoBLL.UpdateMeetingInfo(obj);
                if (nRet != 1)
                {
                    MeetingInfoBLL.RollbackTransaction();
                    return(-1);
                }
                //if (workFlowWS.StartFlow(flowRecordInfo, "", toUserId, "Add") != "OK")
                //{
                //    MeetingInfoBLL.RollbackTransaction();
                //    return -1;
                //}
                MeetingInfoBLL.CommitTransaction();
                return(1);
            }
        }
Beispiel #15
0
 //添加        
 public string MeetingInfoAdd(T_OA_MEETINGINFO obj,List<T_OA_MEETINGSTAFF> meetingstaffObj,List<T_OA_MEETINGCONTENT> ContentObj,T_OA_MEETINGMESSAGE meetingmessageObj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.AddMeetingInfo(obj, meetingstaffObj, ContentObj, meetingmessageObj);
     }
     
 }
Beispiel #16
0
 public int MeetingInfoUpdateByForm(T_OA_MEETINGINFO obj, List<T_OA_MEETINGSTAFF> meetingstaffObj, List<T_OA_MEETINGCONTENT> ContentObj, T_OA_MEETINGMESSAGE meetingmessageObj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.UpdateMeetingInfo(obj, meetingstaffObj, ContentObj, meetingmessageObj);
     }
 }
Beispiel #17
0
        public bool MeetingInfoDel(string StrMeetingInfoID)
        {
            using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
            {
                return MeetingInfoBLL.DeleteMeetingInfo(StrMeetingInfoID);
            }

        }
Beispiel #18
0
 //批量删除
 public bool MeetingInfoBatchDel(string[] StrMeetingInfoIDs)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.BatchDeleteMeetingInfo(StrMeetingInfoIDs);
     }
 }
Beispiel #19
0
 public int MeetingInfoUpdate(T_OA_MEETINGINFO obj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.UpdateMeetingInfo(obj);
     }
     
 }
Beispiel #20
0
 //获取会议通知信息
 public T_OA_MEETINGMESSAGE GetMeetingMessageByID(string MessageID)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.GetMeetingMessageByID(MessageID);
     }
 }
Beispiel #21
0
 public T_OA_MEETINGINFO GetMeetingInfoSingleInfoById(string StrMeetingInfoId)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.GetMeetingInfoById(StrMeetingInfoId);
     }
 }
Beispiel #22
0
 ///获取员工主持的会议
 public List<V_MyMeetingInfosManagement> GetMyEmceeMeetingInfosManagement(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string StrUserID)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         IQueryable<V_MyMeetingInfosManagement> MyMeetingInfosList = MeetingInfoBLL.GeMemberEmceeMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref pageCount, StrUserID);
         if (MyMeetingInfosList != null)
         {
             return MyMeetingInfosList.ToList();
         }
         else
         {
             return null;
         }
     }
 }
Beispiel #23
0
 public List<T_OA_MEETINGINFO> GetMeetintInfosListByTitleTimeSearch(string StrTitle, string StrDepartment, string StrType, string StrContent, DateTime DtStart, DateTime DtEnd, string StrCheckState)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         IQueryable<T_OA_MEETINGINFO> MeetingInfoList = MeetingInfoBLL.GetMeetingInfosListByTitleTimeSearch(StrTitle, StrType, StrDepartment, DtStart, DtEnd, StrContent, StrCheckState);
         if (MeetingInfoList == null)
         {
             return null;
         }
         else
         {
             return MeetingInfoList.ToList();
         }
     }
 }
Beispiel #24
0
 public int UpdateMeetingNoticeInfo(T_OA_MEETINGINFO info, T_OA_MEETINGMESSAGE message)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.UpdateMeetingNoticeInfo(info, message);
     }
 }
Beispiel #25
0
 public V_MeetingInfo GetMeetingNoticeByNoticeID(string NoticeId)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.GetMeetingNoticeByNoticeID(NoticeId);
     }
 }
Beispiel #26
0
        public List<V_MeetingInfo> GetMeetingInfoListByFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
            {
                IQueryable<V_MeetingInfo> MeetingInfoList = null;
                if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取用户的提交借阅信息
                {
                    if (checkState == ((int)CheckStates.ALL).ToString())
                    {
                        MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID);
                    }
                    else
                    {
                        MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID);
                    }
                }
                else                    //通过工作流获取用户要审批的借阅信息
                {
                    ServiceClient workFlowWS = new ServiceClient();
                    V_MeetingInfo a = new V_MeetingInfo();
                    SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T flowInfo = new SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T();   //审核人 操作              
                    SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "MeetingInfo", loginUserInfo.companyID, loginUserInfo.userID);
                    if (flowList == null)
                    {
                        return null;
                    }
                    List<V_FlowAPP> flowAppList = new List<V_FlowAPP>();
                    for (int i = 0; i < flowList.Length; i++)
                    {

                        V_FlowAPP App = new V_FlowAPP();
                        App.Guid = flowList[i].FLOWRECORDDETAILID;
                        App.FormID = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID;
                        App.EditUserID = flowList[i].EDITUSERID;
                        App.EditUserName = flowList[i].EDITUSERNAME;
                        flowAppList.Add(App);
                    }
                    checkState = ((int)CheckStates.Approving).ToString();
                    MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID);
                }
                return MeetingInfoList != null ? MeetingInfoList.ToList() : null;
            }
        }
Beispiel #27
0
        public int SubmitFlow(T_OA_MEETINGINFO obj, SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T flowRecordInfo, string toUserId)
        {
            using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
            {
                MeetingInfoBLL.BeginTransaction();

                int nRet = MeetingInfoBLL.UpdateMeetingInfo(obj);
                if (nRet != 1)
                {
                    MeetingInfoBLL.RollbackTransaction();
                    return -1;
                }
                //if (workFlowWS.StartFlow(flowRecordInfo, "", toUserId, "Add") != "OK")
                //{
                //    MeetingInfoBLL.RollbackTransaction();
                //    return -1;
                //}
                MeetingInfoBLL.CommitTransaction();
                return 1;
            }
        }
Beispiel #28
0
        private bool IsExistMeetingInfoByAdd(string StrTitle, string StrMeetingType, string StrRoom, string StrCreatUser, DateTime startdt, DateTime enddt)
        {
            using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
            {
                return MeetingInfoBLL.GetMeetingInfoByAdd(StrTitle, StrMeetingType, StrRoom, StrCreatUser, startdt, enddt);
                //return MeetingInfoBLL.GetMeetingTemplateByTemplateNameAndType(StrMeetingType, StrTemplateName);
            }

        }