Example #1
0
        void AddMeetingContentInfo()
        {
            //string StrContent = "";//会议材料内容
            string StrTemplateName = ""; //模板名称

            if (cbxMeetingTypeTemplate.SelectedIndex > 0)
            {
                //StrTemplateName = this.cbxMeetingTypeTemplate.SelectedItem.ToString();
                T_OA_MEETINGTEMPLATE TemplateT = this.cbxMeetingTypeTemplate.SelectedItem as T_OA_MEETINGTEMPLATE;
                StrTemplateName = TemplateT.TEMPLATENAME;
                //tmpTemplateContent = TemplateT.CONTENT;
            }

            if (tmpMeetingMember != null)
            {
                foreach (var MeetingMember in tmpMeetingMember)
                {
                    T_OA_MEETINGCONTENT ContentT = new T_OA_MEETINGCONTENT();
                    ContentT.MEETINGCONTENTID = System.Guid.NewGuid().ToString();
                    ContentT.MEETINGINFOID    = tmpMeetingInfo.MEETINGINFOID;
                    ContentT.MEETINGUSERID    = MeetingMember.ObjectID;
                    ContentT.CREATEDATE       = Convert.ToDateTime(tmpMeetingInfo.CREATEDATE);
                    ContentT.CREATEUSERID     = tmpMeetingInfo.CREATEUSERID;
                    ContentT.UPDATEDATE       = tmpMeetingInfo.UPDATEDATE;
                    ContentT.UPDATEUSERID     = tmpMeetingInfo.UPDATEUSERID;
                    ContentT.CONTENT          = tmpTemplateContent;

                    ContentT.CREATECOMPANYID    = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                    ContentT.CREATEUSERNAME     = Common.CurrentLoginUserInfo.EmployeeName;
                    ContentT.CREATEUSERID       = Common.CurrentLoginUserInfo.EmployeeID;
                    ContentT.CREATEDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                    ContentT.CREATEPOSTID       = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
                    ContentT.OWNERCOMPANYID     = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                    ContentT.OWNERDEPARTMENTID  = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                    ContentT.OWNERNAME          = Common.CurrentLoginUserInfo.EmployeeName;
                    ContentT.OWNERPOSTID        = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
                    ContentT.OWNERID            = Common.CurrentLoginUserInfo.EmployeeID;

                    MeetingContentList.Add(ContentT);
                }
            }

            MeetingClient.BatchAddMeetingContentInfosCompleted += new EventHandler <BatchAddMeetingContentInfosCompletedEventArgs>(MeetingContentClient_BatchAddMeetingContentInfosCompleted);
            MeetingClient.BatchAddMeetingContentInfosAsync(MeetingContentList);
        }