示例#1
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));
     }
 }
示例#2
0
        private void GetMeetingInfoByInfo(T_OA_MEETINGINFO MeetingInfoT)
        {
            if (MeetingInfoT != null)
            {
                tmpMeetingInfo = MeetingInfoT;
                //cbxMeetingType.SelectedItem = MeetingInfoT.MEETINGTYPE;
                //cbMeetingRoom.SelectedItem = MeetingInfoT.MEETINGROOMNAME;

                tbxCheckState.Text   = MeetingInfoT.CHECKSTATE;
                tbxCreateDate.Text   = MeetingInfoT.CHECKSTATE.ToString();
                tbxCreatUserID.Text  = MeetingInfoT.CREATEUSERID;
                tbxIsCancel.Text     = MeetingInfoT.ISCANCEL;
                tbxMeetingTitle.Text = MeetingInfoT.MEETINGTITLE;
                tbxMeetingContent.RichTextBoxContext = MeetingInfoT.CONTENT;
                dpStartDate.Text = Convert.ToDateTime(MeetingInfoT.STARTTIME).ToShortDateString();
                dpEndDate.Text   = Convert.ToDateTime(MeetingInfoT.ENDTIME).ToShortDateString();

                strStartTime = Convert.ToDateTime(MeetingInfoT.STARTTIME).ToShortTimeString();
                strEndTime   = Convert.ToDateTime(MeetingInfoT.ENDTIME).ToShortTimeString();
                //strMeetingType = MeetingInfoT.MEETINGTYPE;
                //strMeetingRoom = MeetingInfoT.MEETINGROOMNAME;
                this.tbxMeetingInfoID.Text = MeetingInfoT.MEETINGINFOID;
                GetTimeHour();
                //tpEndTime.SelectedItem = MeetingInfoT.ENDTIME.ToShortTimeString();
            }
        }
示例#3
0
 /// <summary>
 /// 获取参会人员
 /// </summary>
 /// <param name="MeetingT"></param>
 private void GetMeetingStaffInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {
         MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDAsync(MeetingT.MEETINGINFOID);
     }
 }
示例#4
0
 public int MeetingInfoUpdate(T_OA_MEETINGINFO obj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.UpdateMeetingInfo(obj));
     }
 }
示例#5
0
        private void GetMeetingInfoByInfo(V_MeetingInfo MeetingInfoT)
        {
            loadbar.Start();
            if (MeetingInfoT != null)
            {
                tmpMeetingInfo = MeetingInfoT.meetinginfo;
                //cbxMeetingType.SelectedItem = MeetingInfoT.MEETINGTYPE;
                //cbMeetingRoom.SelectedItem = MeetingInfoT.MEETINGROOMNAME;
                txtMeetingRoom.Text         = MeetingInfoT.meetingroom.MEETINGROOMNAME;
                txtMeetingRoom.SelectedItem = MeetingInfoT.meetingroom;
                SelectMeetingRoom           = MeetingInfoT.meetingroom;
                SelectMeetingType           = MeetingInfoT.meetingtype;

                tbxMeetingTitle.Text = MeetingInfoT.meetinginfo.MEETINGTITLE;
                tbxMeetingContent.RichTextBoxContext = MeetingInfoT.meetinginfo.CONTENT;
                dpStartDate.Text  = Convert.ToDateTime(MeetingInfoT.meetinginfo.STARTTIME).ToShortDateString();
                dpEndDate.Text    = Convert.ToDateTime(MeetingInfoT.meetinginfo.ENDTIME).ToShortDateString();
                txtTel.Text       = MeetingInfoT.meetinginfo.TEL;
                PostsObject.Text  = MeetingInfoT.meetinginfo.DEPARTNAME;
                strStartTime      = Convert.ToDateTime(MeetingInfoT.meetinginfo.STARTTIME).ToShortTimeString();
                tpStartTime.Value = MeetingInfoT.meetinginfo.STARTTIME;
                tpEndTime.Value   = MeetingInfoT.meetinginfo.ENDTIME;

                tbxHostMembers.Text = MeetingInfoT.meetinginfo.HOSTNAME;

                tbxRecordMembers.Text = MeetingInfoT.meetinginfo.RECORDUSERNAME;

                combox_MeetingRoomSelectSource();
                combox_SelectSource();
            }
        }
示例#6
0
 public int UpdateMeetingNoticeInfo(T_OA_MEETINGINFO info, T_OA_MEETINGMESSAGE message)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return(MeetingInfoBLL.UpdateMeetingNoticeInfo(info, message));
     }
 }
示例#7
0
 private void GetMeetingMessageInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {
         MeetingClient.GetMeetingMessageByIDAsync(MeetingT.MEETINGINFOID);
     }
 }
示例#8
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));
     }
 }
示例#9
0
 /// <summary>
 /// 获取参会人员
 /// </summary>
 /// <param name="MeetingT"></param>
 private void GetMeetingStaffInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {
         MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDCompleted += new EventHandler <GetAllMeetingStaffInfosByMeetingInfoIDCompletedEventArgs>(MeetingClient_GetAllMeetingStaffInfosByMeetingInfoIDCompleted);
         MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDAsync(MeetingT.MEETINGINFOID);
     }
 }
示例#10
0
 /// <summary>
 /// 获取 主持人和记录人
 /// </summary>
 /// <param name="MeetingT"></param>
 private void GetHostAndRecordStaffInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {
         StrHostStaffList.Add(MeetingT.HOSTID);
         StrRecordStaffList.Add(MeetingT.HOSTID);
     }
 }
示例#11
0
        private void MeetingAppBtn_Click(object sender, RoutedEventArgs e)
        {
            Button           AppBtn = sender as Button;
            T_OA_MEETINGINFO InfoT  = AppBtn.Tag as T_OA_MEETINGINFO;

            tmpInfoT         = InfoT;
            InfoT.CHECKSTATE = "0";
            MeetingClient.MeetingInfoUpdateCompleted += new EventHandler <MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
            MeetingClient.MeetingInfoUpdateAsync(InfoT);
        }
示例#12
0
 public EmceeMemberMeetingForm(T_OA_MEETINGINFO meetinginfo, V_MyMeetingInfosManagement objVMeeting, T_OA_MEETINGROOM RoomObj)
 {
     InitializeComponent();
     tmpStaff = objVMeeting.OAMeetingStaffT;
     //ctrFile.SystemName = "OA";
     //ctrFile.ModelName = "MeetingApp";
     //ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed);
     //ShowMeetingInfos(meetinginfo,objVMeeting,RoomObj);
     StrContentID = objVMeeting.OAMeetingContentT.MEETINGCONTENTID;
 }
示例#13
0
 public EmceeMemberMeetingForm(T_OA_MEETINGINFO meetinginfo,V_MyMeetingInfosManagement objVMeeting,T_OA_MEETINGROOM RoomObj)
 {
     InitializeComponent();
     tmpStaff = objVMeeting.OAMeetingStaffT;
     //ctrFile.SystemName = "OA";
     //ctrFile.ModelName = "MeetingApp";
     //ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed);
     //ShowMeetingInfos(meetinginfo,objVMeeting,RoomObj);
     StrContentID = objVMeeting.OAMeetingContentT.MEETINGCONTENTID;
 }
        public MeetingMangementDetailInfo(V_MeetingInfo obj)
        {
            InitializeComponent();

            tmpMeetingInfoT = obj.meetinginfo;
            GetMeetingStaffInfo(obj.meetinginfo);
            ShowMeetingDetailInfos();
            ShowMeetingUploadContent();       //回去与会人员会议内容
            ShowMeetingStaffInfos();          //获取与会人员附件信息
            ShowMeetingChangeInfos();         //会议时间变更
            ShowMeetingRoomTimeChangeInfos(); //获取会议室使用时间变更
        }
 public MeetingMangementDetailInfo(V_MeetingInfo obj)
 {
     InitializeComponent();
     
     tmpMeetingInfoT = obj.meetinginfo;
     GetMeetingStaffInfo(obj.meetinginfo);
     ShowMeetingDetailInfos();
     ShowMeetingUploadContent(); //回去与会人员会议内容
     ShowMeetingStaffInfos(); //获取与会人员附件信息
     ShowMeetingChangeInfos(); //会议时间变更
     ShowMeetingRoomTimeChangeInfos(); //获取会议室使用时间变更
     
 }
示例#16
0
 void ShowMeetingInfos(T_OA_MEETINGINFO meetinginfo, V_MyMeetingInfosManagement objV, T_OA_MEETINGROOM RoomObj)
 {
     tblTitle.Text = Utility.GetResourceStr("MEETINGDETAIL");
     this.tblMeetingTitle.Text = meetinginfo.MEETINGTITLE;
     this.tblMeetingRoom.Text =  RoomObj.MEETINGROOMNAME;
     this.tblStartTime.Text = Convert.ToDateTime(meetinginfo.STARTTIME).ToShortDateString() + " "+ Convert.ToDateTime(meetinginfo.STARTTIME).ToShortTimeString();
     this.tblEndTime.Text = Convert.ToDateTime(meetinginfo.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(meetinginfo.ENDTIME).ToShortTimeString();
     tblMeetingContent.RichTextBoxContext = meetinginfo.CONTENT;
     this.tblMyMeetingContent.Text = HttpUtility.HtmlDecode(objV.OAMeetingContentT.CONTENT);
     
     
     
     MeetingClient.UpdateMeetingStaffsByEmcceCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingClient_UpdateMeetingStaffsByEmcceCompleted);
 }
示例#17
0
        void ShowMeetingInfos(T_OA_MEETINGINFO meetinginfo, V_MyMeetingInfosManagement objV, T_OA_MEETINGROOM RoomObj)
        {
            tblTitle.Text                        = Utility.GetResourceStr("MEETINGDETAIL");
            this.tblMeetingTitle.Text            = meetinginfo.MEETINGTITLE;
            this.tblMeetingRoom.Text             = RoomObj.MEETINGROOMNAME;
            this.tblStartTime.Text               = Convert.ToDateTime(meetinginfo.STARTTIME).ToShortDateString() + " " + Convert.ToDateTime(meetinginfo.STARTTIME).ToShortTimeString();
            this.tblEndTime.Text                 = Convert.ToDateTime(meetinginfo.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(meetinginfo.ENDTIME).ToShortTimeString();
            tblMeetingContent.RichTextBoxContext = meetinginfo.CONTENT;
            this.tblMyMeetingContent.Text        = HttpUtility.HtmlDecode(objV.OAMeetingContentT.CONTENT);



            MeetingClient.UpdateMeetingStaffsByEmcceCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(MeetingClient_UpdateMeetingStaffsByEmcceCompleted);
        }
示例#18
0
 private void InitAudit(T_OA_MEETINGINFO MeetingInfo)
 {
     SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity;
     entity.ModelCode          = "MeetingInfo";
     entity.FormID             = MeetingInfo.MEETINGINFOID;
     entity.CreateCompanyID    = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
     entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
     entity.CreatePostID       = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
     entity.CreateUserID       = Common.CurrentLoginUserInfo.EmployeeID;
     entity.CreateUserName     = Common.CurrentLoginUserInfo.EmployeeName;
     entity.EditUserID         = Common.CurrentLoginUserInfo.EmployeeID;
     entity.EditUserName       = Common.CurrentLoginUserInfo.EmployeeName;
     audit.BindingData();
 }
示例#19
0
 private void btnDelete_Click(object sender, RoutedEventArgs e)
 {
     if (DaGr.SelectedItems.Count > 0)
     {
         string Result = "";
         DelInfosList = new ObservableCollection <string>();
         ComfirmWindow com = new ComfirmWindow();
         com.OnSelectionBoxClosed += (obj, result) =>
         {
             for (int i = 0; i < DaGr.SelectedItems.Count; i++)
             {
                 string           SenddocID  = "";
                 T_OA_MEETINGINFO tmpMeeting = (DaGr.SelectedItems[i] as V_MeetingInfo).meetinginfo;
                 SenddocID = tmpMeeting.MEETINGINFOID;
                 if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(tmpMeeting, "T_OA_MEETINGINFO", OperationType.Delete, Common.CurrentLoginUserInfo.EmployeeID))
                 {
                     if ((DaGr.SelectedItems[i] as V_MeetingInfo).meetinginfo.CHECKSTATE == "0" || (DaGr.SelectedItems[i] as V_MeetingInfo).meetinginfo.CHECKSTATE == "3")
                     {
                         if (!(DelInfosList.IndexOf(SenddocID) > -1))
                         {
                             DelInfosList.Add(SenddocID);
                         }
                     }
                 }
                 else
                 {
                     string StrTip = "您不能删除您选中的第" + (i + 1).ToString() + "条,标题为" + tmpMeeting.MEETINGTITLE + "的会议信息";
                     ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), StrTip, Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                     return;
                 }
             }
             if (DelInfosList.Count > 0)
             {
                 MeetingClient.MeetingInfoBatchDelAsync(DelInfosList);
             }
             else
             {
                 //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("SELECTITEMSNOTDELETE"));
                 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTITEMSNOTDELETE"),
                                                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             }
         };
         com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
     }
 }
示例#20
0
        public EditMeetingTime(T_OA_MEETINGINFO meetintInfoT)
        {
            InitializeComponent();

            this.GetTimeHour();

            this.ChildWinkow.Title        = "变更" + meetintInfoT.MEETINGTITLE + "会议时间";
            this.lblTitle.Content         = "变更" + meetintInfoT.MEETINGTITLE + "会议时间";
            this.DPStart.Text             = Convert.ToDateTime(meetintInfoT.STARTTIME).ToShortDateString();
            this.DPEnd.Text               = Convert.ToDateTime(meetintInfoT.ENDTIME).ToShortDateString();
            this.tpStartTime.SelectedItem = Convert.ToDateTime(meetintInfoT.STARTTIME).ToShortTimeString();
            this.tpEndTime.SelectedItem   = Convert.ToDateTime(meetintInfoT.ENDTIME).ToShortTimeString();

            tmpMeetintInfoT = meetintInfoT;
        }
示例#21
0
 public MeetingDetailForm(V_MeetingInfo obj)
 {
     InitializeComponent();
     tmpvmeeting = obj;
     tmpMeetingInfoT = obj.meetinginfo;
     GetMeetingStaffInfo(obj.meetinginfo);
     ShowMeetingDetailInfos(obj.meetingtype);
     tblMeetingContent.HideControls();
     ShowMeetingChangeInfos(); //会议时间变更
     ShowMeetingRoomTimeChangeInfos(); //获取会议室使用时间变更
     MeetingClient.GetMeetingContentInfosByMeetngInfoIDCompleted += new EventHandler<GetMeetingContentInfosByMeetngInfoIDCompletedEventArgs>(ContentClient_GetMeetingContentInfosByMeetngInfoIDCompleted);
     MeetingClient.MeetingInfoUpdateCompleted += new EventHandler<MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
     MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDCompleted += new EventHandler<GetAllMeetingStaffInfosByMeetingInfoIDCompletedEventArgs>(MeetingClient_GetAllMeetingStaffInfosByMeetingInfoIDCompleted);
     this.Loaded += new RoutedEventHandler(MeetingDetailForm_Loaded);
 }
示例#22
0
 public MeetingDetailForm(V_MeetingInfo obj)
 {
     InitializeComponent();
     tmpvmeeting     = obj;
     tmpMeetingInfoT = obj.meetinginfo;
     GetMeetingStaffInfo(obj.meetinginfo);
     ShowMeetingDetailInfos(obj.meetingtype);
     tblMeetingContent.HideControls();
     ShowMeetingChangeInfos();         //会议时间变更
     ShowMeetingRoomTimeChangeInfos(); //获取会议室使用时间变更
     MeetingClient.GetMeetingContentInfosByMeetngInfoIDCompleted += new EventHandler <GetMeetingContentInfosByMeetngInfoIDCompletedEventArgs>(ContentClient_GetMeetingContentInfosByMeetngInfoIDCompleted);
     MeetingClient.MeetingInfoUpdateCompleted += new EventHandler <MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
     MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDCompleted += new EventHandler <GetAllMeetingStaffInfosByMeetingInfoIDCompletedEventArgs>(MeetingClient_GetAllMeetingStaffInfosByMeetingInfoIDCompleted);
     this.Loaded += new RoutedEventHandler(MeetingDetailForm_Loaded);
 }
示例#23
0
 public EmceeMeetingForm(V_MyMeetingInfosManagement objV)
 {
     InitializeComponent();
     GetMeetingInfo(objV);
     //NewButton();
     tmpMeetingInfoT                  = new T_OA_MEETINGINFO();
     tmpMeetingInfoT                  = objV.OAMeetingInfoT;
     tmpRoom                          = objV.meetingroom;// 2010-08-03
     ToolBar.btnNew.Visibility        = Visibility.Collapsed;
     ToolBar.btnEdit.Visibility       = Visibility.Collapsed;
     ToolBar.btnDelete.Visibility     = Visibility.Collapsed;
     ToolBar.btnAudit.Visibility      = Visibility.Collapsed;
     ToolBar.stpCheckState.Visibility = Visibility.Collapsed;
     ToolBar.BtnView.Click           += new RoutedEventHandler(BtnView_Click);
     tmpmeeting                       = objV;
     DaGr.CurrentCellChanged         += new EventHandler <EventArgs>(DaGr_CurrentCellChanged);
     MeetingClient.GetMeetingStaffByMeetingInfoIdEmceeCompleted += new EventHandler <GetMeetingStaffByMeetingInfoIdEmceeCompletedEventArgs>(MeetingClient_GetMeetingStaffByMeetingInfoIdEmceeCompleted);
     LoadMeetingStaffInfos();
 }
示例#24
0
 public EmceeMeetingForm(V_MyMeetingInfosManagement objV)
 {
     InitializeComponent();
     GetMeetingInfo(objV);
     //NewButton();
     tmpMeetingInfoT = new T_OA_MEETINGINFO();
     tmpMeetingInfoT = objV.OAMeetingInfoT;
     tmpRoom = objV.meetingroom;// 2010-08-03
     ToolBar.btnNew.Visibility = Visibility.Collapsed;
     ToolBar.btnEdit.Visibility = Visibility.Collapsed;
     ToolBar.btnDelete.Visibility = Visibility.Collapsed;
     ToolBar.btnAudit.Visibility = Visibility.Collapsed;
     ToolBar.stpCheckState.Visibility = Visibility.Collapsed;
     ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click);
     tmpmeeting = objV;
     DaGr.CurrentCellChanged += new EventHandler<EventArgs>(DaGr_CurrentCellChanged);
     MeetingClient.GetMeetingStaffByMeetingInfoIdEmceeCompleted += new EventHandler<GetMeetingStaffByMeetingInfoIdEmceeCompletedEventArgs>(MeetingClient_GetMeetingStaffByMeetingInfoIdEmceeCompleted);
     LoadMeetingStaffInfos();
 }
示例#25
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);
            }
        }
示例#26
0
        public ChangeMeetingTimeForm(FormTypes action, V_MeetingInfo meetintInfoT)
        {
            InitializeComponent();
            actiontype = action;
            //this.GetTimeHour();

            tmpvmeeting = meetintInfoT;

            this.lblTitle.Content  = "变更" + meetintInfoT.meetinginfo.MEETINGTITLE + "会议时间";
            this.DPStart.Text      = Convert.ToDateTime(meetintInfoT.meetinginfo.STARTTIME).ToShortDateString();
            this.DPEnd.Text        = Convert.ToDateTime(meetintInfoT.meetinginfo.ENDTIME).ToShortDateString();
            this.tpStartTime.Value = meetintInfoT.meetinginfo.STARTTIME;
            this.tpEndTime.Value   = meetintInfoT.meetinginfo.ENDTIME;
            TmpDtStart             = Convert.ToDateTime(meetintInfoT.meetinginfo.STARTTIME);
            TmpDtEnd        = Convert.ToDateTime(meetintInfoT.meetinginfo.ENDTIME);
            tmpMeetintInfoT = meetintInfoT.meetinginfo;
            tmpMeetintInfoT.T_OA_MEETINGROOM = meetintInfoT.meetingroom;
            tmpMeetintInfoT.T_OA_MEETINGTYPE = meetintInfoT.meetingtype;
            this.txtMessageTel.Text          = meetintInfoT.meetinginfo.TEL;
            MeetingClient.UpdateMeetingNoticeInfoCompleted += new EventHandler <UpdateMeetingNoticeInfoCompletedEventArgs>(MeetingClient_UpdateMeetingNoticeInfoCompleted);
        }
示例#27
0
 void SendDocClient_GetMeetingInfoSingleInfoByIdCompleted(object sender, GetMeetingInfoSingleInfoByIdCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 T_OA_MEETINGINFO senddoc = new T_OA_MEETINGINFO();
                 senddoc = e.Result;
                 this.tblMeetingContent.RichTextBoxContext = senddoc.CONTENT;
                 tblMeetingContent.HideControls();
             }
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
             Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
     }
 }
示例#28
0
        public ChangeMeetingTimeForm(FormTypes action, V_MeetingInfo meetintInfoT)
        {
            InitializeComponent();
            actiontype = action;
            //this.GetTimeHour();

            tmpvmeeting = meetintInfoT;

            this.lblTitle.Content = "变更" + meetintInfoT.meetinginfo.MEETINGTITLE + "会议时间";
            this.DPStart.Text = Convert.ToDateTime(meetintInfoT.meetinginfo.STARTTIME).ToShortDateString();
            this.DPEnd.Text = Convert.ToDateTime(meetintInfoT.meetinginfo.ENDTIME).ToShortDateString();
            this.tpStartTime.Value = meetintInfoT.meetinginfo.STARTTIME;
            this.tpEndTime.Value = meetintInfoT.meetinginfo.ENDTIME;
            TmpDtStart = Convert.ToDateTime(meetintInfoT.meetinginfo.STARTTIME);
            TmpDtEnd = Convert.ToDateTime(meetintInfoT.meetinginfo.ENDTIME);
            tmpMeetintInfoT = meetintInfoT.meetinginfo;
            tmpMeetintInfoT.T_OA_MEETINGROOM = meetintInfoT.meetingroom;
            tmpMeetintInfoT.T_OA_MEETINGTYPE = meetintInfoT.meetingtype;
            this.txtMessageTel.Text = meetintInfoT.meetinginfo.TEL;
            MeetingClient.UpdateMeetingNoticeInfoCompleted += new EventHandler<UpdateMeetingNoticeInfoCompletedEventArgs>(MeetingClient_UpdateMeetingNoticeInfoCompleted);

        }
示例#29
0
 void SendDocClient_GetMeetingInfoSingleInfoByIdCompleted(object sender, GetMeetingInfoSingleInfoByIdCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 T_OA_MEETINGINFO senddoc = new T_OA_MEETINGINFO();
                 senddoc = e.Result;
                 this.tblMeetingContent.RichTextBoxContext = senddoc.CONTENT;
                 tblMeetingContent.HideControls();
             }
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
     }
 }
示例#30
0
        public AddMeeting(Action action, T_OA_MEETINGINFO MeetingT)
        {
            InitializeComponent();
            combox_MeetingRoomSelectSource();
            combox_SelectSource();
            this.GetTimeHour();
            ActionType = action;
            
            
            if (action == Action.Add)
            {
                
                this.dpStartDate.Text = System.DateTime.Now.ToShortDateString();
                this.dpEndDate.Text = System.DateTime.Now.ToShortDateString();
                this.tbltitle.Text = "添加会议信息";
                SVAudit.Visibility = Visibility.Collapsed;
            }
            if (action == Action.Edit)
            {                
                GetMeetingInfoByInfo(MeetingT);
                GetMeetingStaffInfo(MeetingT);
                this.tbltitle.Text = "修改会议信息";
            }
            if (action == Action.AUDIT)
            {
                this.btnAdd.Visibility = Visibility.Collapsed;
                this.btnAddToConfirm.Visibility = Visibility.Collapsed;                
                this.btnCancel.Visibility = Visibility.Collapsed;
                GetMeetingInfoByInfo(MeetingT);
                InitAudit(MeetingT);
                GetMeetingStaffInfo(MeetingT);
                this.tbltitle.Text = "审核会议信息";
            }

            audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
            MeetingClient.MeetingInfoAddCompleted += new EventHandler<MeetingInfoAddCompletedEventArgs>(MeetingInfoClient_MeetingInfoAddCompleted);
            MeetingClient.MeetingInfoUpdateCompleted += new EventHandler<MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
        }
示例#31
0
        public AddMeeting(Action action, T_OA_MEETINGINFO MeetingT)
        {
            InitializeComponent();
            combox_MeetingRoomSelectSource();
            combox_SelectSource();
            this.GetTimeHour();
            ActionType = action;


            if (action == Action.Add)
            {
                this.dpStartDate.Text = System.DateTime.Now.ToShortDateString();
                this.dpEndDate.Text   = System.DateTime.Now.ToShortDateString();
                this.tbltitle.Text    = "添加会议信息";
                SVAudit.Visibility    = Visibility.Collapsed;
            }
            if (action == Action.Edit)
            {
                GetMeetingInfoByInfo(MeetingT);
                GetMeetingStaffInfo(MeetingT);
                this.tbltitle.Text = "修改会议信息";
            }
            if (action == Action.AUDIT)
            {
                this.btnAdd.Visibility          = Visibility.Collapsed;
                this.btnAddToConfirm.Visibility = Visibility.Collapsed;
                this.btnCancel.Visibility       = Visibility.Collapsed;
                GetMeetingInfoByInfo(MeetingT);
                InitAudit(MeetingT);
                GetMeetingStaffInfo(MeetingT);
                this.tbltitle.Text = "审核会议信息";
            }

            audit.AuditCompleted += new EventHandler <SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
            MeetingClient.MeetingInfoAddCompleted    += new EventHandler <MeetingInfoAddCompletedEventArgs>(MeetingInfoClient_MeetingInfoAddCompleted);
            MeetingClient.MeetingInfoUpdateCompleted += new EventHandler <MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
        }
示例#32
0
 void MeetingClient_GetMeetingNoticeByNoticeIDCompleted(object sender, GetMeetingNoticeByNoticeIDCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result != null)
         {
             V_MeetingInfo    MeetingInfo = e.Result;
             T_OA_MEETINGINFO InfoT       = MeetingInfo.meetinginfo;
             this.tblDepartment.Text              = InfoT.DEPARTNAME;
             this.tblMeetingTitle.Text            = InfoT.MEETINGTITLE;
             tblMeetingContent.RichTextBoxContext = InfoT.CONTENT;
             this.tblHost.Text           = InfoT.HOSTNAME;
             this.tblRecorder.Text       = InfoT.RECORDUSERNAME;
             this.tblTel.Text            = InfoT.TEL;
             this.tblMeetingRoom.Text    = InfoT.T_OA_MEETINGROOM.MEETINGROOMNAME;
             this.tblMeetingType.Text    = InfoT.T_OA_MEETINGTYPE.MEETINGTYPE;
             this.tblmessagetitle.Text   = MeetingInfo.meetingmessage.TITLE;
             this.tblmessagecontent.Text = MeetingInfo.meetingmessage.CONTENT.ToString();
             this.tblmessagetel.Text     = MeetingInfo.meetingmessage.TEL;
             GetMeetingStaffInfo(InfoT);
         }
     }
     //throw new NotImplementedException();
 }
示例#33
0
 public int UpdateMeetingNoticeInfo(T_OA_MEETINGINFO info, T_OA_MEETINGMESSAGE message)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.UpdateMeetingNoticeInfo(info, message);
     }
 }
示例#34
0
        private void InitEvent()
        {
            //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted);
            MeetingClient.MeetingInfoAddCompleted += new EventHandler<MeetingInfoAddCompletedEventArgs>(MeetingInfoClient_MeetingInfoAddCompleted);
            MeetingClient.MeetingInfoUpdateCompleted += new EventHandler<MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
            MeetingClient.MeetingInfoUpdateByFormCompleted += new EventHandler<MeetingInfoUpdateByFormCompletedEventArgs>(MeetingClient_MeetingInfoUpdateByFormCompleted);
            MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDCompleted += new EventHandler<GetAllMeetingStaffInfosByMeetingInfoIDCompletedEventArgs>(MeetingClient_GetAllMeetingStaffInfosByMeetingInfoIDCompleted);
            MeetingClient.GetMeetingTypeNameInfosToComboxCompleted += new EventHandler<GetMeetingTypeNameInfosToComboxCompletedEventArgs>(typeClient_GetMeetingTypeNameInfosToComboxCompleted);
            
            MeetingClient.GetMeetingRoomTreeInfosByCompanyIDCompleted += new EventHandler<GetMeetingRoomTreeInfosByCompanyIDCompletedEventArgs>(MeetingClient_GetMeetingRoomTreeInfosByCompanyIDCompleted);
            personclient.GetEmployeeDetailByIDsCompleted += new EventHandler<GetEmployeeDetailByIDsCompletedEventArgs>(personclient_GetEmployeeDetailByIDsCompleted);
            MeetingClient.GetMeetingRoomTreeInfosByCompanyIDAsync(Common.CurrentLoginUserInfo.UserPosts[0].CompanyID);
            MeetingClient.GetMeetingMessageByIDCompleted += new EventHandler<GetMeetingMessageByIDCompletedEventArgs>(MeetingClient_GetMeetingMessageByIDCompleted);
            personclient.GetEmployeeDetailByParasCompleted += new EventHandler<GetEmployeeDetailByParasCompletedEventArgs>(personclient_GetEmployeeDetailByParasCompleted);
            MeetingClient.GetMeetingInfoSingleInfoByIdCompleted += new EventHandler<GetMeetingInfoSingleInfoByIdCompletedEventArgs>(MeetingClient_GetMeetingInfoSingleInfoByIdCompleted);
            //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing);
           // this.Loaded += new RoutedEventHandler(MeetingForm_Loaded);


            issuanceExtOrgObj = new List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>();
            RefreshUI(RefreshedTypes.ShowProgressBar);
            if (ActionType == FormTypes.New)
            {
                this.dpStartDate.Text = System.DateTime.Now.ToShortDateString();
                this.dpEndDate.Text = System.DateTime.Now.ToShortDateString();
                //SVAudit.Visibility = Visibility.Collapsed;
                //senddoctab.Items.IndexOf
                tmpMeetingInfo.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString();
                //tabitemaudit.Visibility = Visibility.Collapsed;
                this.tpStartTime.Value = System.DateTime.Now.AddMinutes(60);
                this.tpEndTime.Value = System.DateTime.Now.AddMinutes(90);

                combox_SelectSource();

            }
            if (ActionType == FormTypes.Edit || ActionType == FormTypes.Resubmit)
            {
                SelectChange = false;

                GetMeetingInfoByInfo(this.meetingT);
                GetMeetingStaffInfo(this.meetingT.meetinginfo);
                GetMeetingMessageInfo(this.meetingT.meetinginfo);
                tmpMeetingInfo = this.meetingT.meetinginfo;
                if (ActionType == FormTypes.Resubmit)
                    tmpMeetingInfo.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                //tabitemaudit.Visibility = Visibility.Collapsed;
            }
            if (ActionType == FormTypes.Audit || ActionType == FormTypes.Browse)
            {

                SetEnabled();
                //audit.XmlObject = DataObjectToXml<T_OA_MEETINGINFO>.ObjListToXml(tmpMeetingInfo, "OA"); 
                GetMeetingInfoByInfo(this.meetingT);
                //RefreshUI(RefreshedTypes.AuditInfo);
                //RefreshUI(RefreshedTypes.All);
                //InitAudit(MeetingT.meetinginfo);
                GetMeetingStaffInfo(this.meetingT.meetinginfo);
                GetMeetingMessageInfo(this.meetingT.meetinginfo);

            }

            if (ActionType == FormTypes.Audit)
            {
                SetEnabled();

                MeetingClient.GetMeetingInfoSingleInfoByIdAsync(this.strMeetingInfoID);

            }

        }
示例#35
0
 void MeetingClient_GetMeetingInfoSingleInfoByIdCompleted(object sender, GetMeetingInfoSingleInfoByIdCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 //GetMeetingInfoByInfo(e.Result);
                 tmpMeetingInfo = e.Result;
                 GetMeetingInfoByInfoAudit(e.Result);
                 RefreshUI(RefreshedTypes.AuditInfo);
                 RefreshUI(RefreshedTypes.All);
                 //InitAudit(e.Result);
                 GetMeetingStaffInfo(e.Result);
                 GetMeetingMessageInfo(e.Result);
                 //audit.XmlObject = DataObjectToXml<T_OA_MEETINGINFO>.ObjListToXml(tmpMeetingInfo, "OA"); 
             }
         }
     }
     //throw new NotImplementedException();
 }
示例#36
0
        private void MeetingAppBtn_Click(object sender, RoutedEventArgs e)
        {
            Button AppBtn = sender as Button;
            T_OA_MEETINGINFO InfoT = AppBtn.Tag as T_OA_MEETINGINFO;
            tmpInfoT = InfoT;
            InfoT.CHECKSTATE = "0";            
            MeetingClient.MeetingInfoUpdateCompleted += new EventHandler<MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
            MeetingClient.MeetingInfoUpdateAsync(InfoT);            

        }
示例#37
0
 private void GetMeetingInfoByInfo(V_MeetingInfo MeetingInfoT)
 {
     loadbar.Start();
     if (MeetingInfoT != null)
     {
         tmpMeetingInfo = MeetingInfoT.meetinginfo;
         //cbxMeetingType.SelectedItem = MeetingInfoT.MEETINGTYPE;
         //cbMeetingRoom.SelectedItem = MeetingInfoT.MEETINGROOMNAME;
         txtMeetingRoom.Text = MeetingInfoT.meetingroom.MEETINGROOMNAME;
         txtMeetingRoom.SelectedItem = MeetingInfoT.meetingroom;
         SelectMeetingRoom = MeetingInfoT.meetingroom;
         SelectMeetingType = MeetingInfoT.meetingtype;
         
         tbxMeetingTitle.Text = MeetingInfoT.meetinginfo.MEETINGTITLE;                
         tbxMeetingContent.RichTextBoxContext = MeetingInfoT.meetinginfo.CONTENT;
         dpStartDate.Text = Convert.ToDateTime(MeetingInfoT.meetinginfo.STARTTIME).ToShortDateString();
         dpEndDate.Text = Convert.ToDateTime(MeetingInfoT.meetinginfo.ENDTIME).ToShortDateString();
         txtTel.Text = MeetingInfoT.meetinginfo.TEL;
         PostsObject.Text = MeetingInfoT.meetinginfo.DEPARTNAME;
         strStartTime = Convert.ToDateTime(MeetingInfoT.meetinginfo.STARTTIME).ToShortTimeString();
         tpStartTime.Value = MeetingInfoT.meetinginfo.STARTTIME;
         tpEndTime.Value = MeetingInfoT.meetinginfo.ENDTIME;
         
         tbxHostMembers.Text = MeetingInfoT.meetinginfo.HOSTNAME;
         
         tbxRecordMembers.Text = MeetingInfoT.meetinginfo.RECORDUSERNAME;
         
         combox_MeetingRoomSelectSource();
         combox_SelectSource();
         
     }
     
 }
示例#38
0
 private void GetMeetingMessageInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {
         MeetingClient.GetMeetingMessageByIDAsync(MeetingT.MEETINGINFOID);
     }
 }
示例#39
0
 /// <summary>
 /// 获取参会人员
 /// </summary>
 /// <param name="MeetingT"></param>
 private void GetMeetingStaffInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {                
         MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDAsync(MeetingT.MEETINGINFOID);
     }
 }
示例#40
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            string StrResult    = "";   //变更原因
            string StrStartDt   = "";   //开始时间
            string StrStartTime = "";   //开始时:分
            string StrEndDt     = "";   //结束时间
            string StrEndTime   = "";   //结束时:分
            string StrError     = "";   //错误提示信息
            bool   blError      = true; //是否正确


            if (!string.IsNullOrEmpty(this.DPStart.Text.ToString()))
            {
                StrStartDt = this.DPStart.Text.ToString();
            }
            else
            {
                //MessageBox.Show("会议开始时间不能为空");
                StrError += "会议开始时间不能为空\n";
                blError   = false;
            }
            if (!string.IsNullOrEmpty(this.DPEnd.Text.ToString()))
            {
                StrEndDt = this.DPEnd.Text.ToString();
            }
            else
            {
                StrError += "会议结束时间不能为空\n";
                blError   = false;
                //return;
            }

            if (!string.IsNullOrEmpty(this.txtResult.Text.Trim().ToString()))
            {
                StrResult = HttpUtility.HtmlEncode(this.txtResult.Text.Trim().ToString());
            }
            else
            {
                StrError += "会议时间变更原因不能为空!\n";
                blError   = false;
            }
            if (!string.IsNullOrEmpty(this.tpStartTime.SelectedItem.ToString()))
            {
                StrStartTime = this.tpStartTime.SelectedItem.ToString();
            }
            if (!string.IsNullOrEmpty(this.tpEndTime.SelectedItem.ToString()))
            {
                StrEndTime = this.tpEndTime.SelectedItem.ToString();
            }


            DateTime DtStart = System.Convert.ToDateTime(StrStartDt + " " + StrStartTime);
            DateTime DtEnd   = System.Convert.ToDateTime(StrEndDt + " " + StrEndTime);

            if (DtStart >= DtEnd)
            {
                StrError += "会议开始时间必须小于结束时间!\n";
                blError   = false;
            }

            if (blError)
            {
                //MeetingInfoManagementServiceClient MeetingInfoClient = new MeetingInfoManagementServiceClient();
                T_OA_MEETINGINFO MeetingInfoT = new T_OA_MEETINGINFO();
                MeetingInfoT.MEETINGINFOID = tmpMeetintInfoT.MEETINGINFOID;
                //MeetingInfoT.MEETINGROOMNAME = tmpMeetintInfoT.MEETINGROOMNAME;
                MeetingInfoT.MEETINGTITLE = tmpMeetintInfoT.MEETINGTITLE;
                //MeetingInfoT.MEETINGTYPE = tmpMeetintInfoT.MEETINGTYPE;
                MeetingInfoT.ISCANCEL     = tmpMeetintInfoT.ISCANCEL;
                MeetingInfoT.CHECKSTATE   = tmpMeetintInfoT.CHECKSTATE;
                MeetingInfoT.DEPARTNAME   = tmpMeetintInfoT.DEPARTNAME;
                MeetingInfoT.STARTTIME    = DtStart;
                MeetingInfoT.ENDTIME      = DtEnd;
                MeetingInfoT.COUNT        = tmpMeetintInfoT.COUNT;
                MeetingInfoT.CONTENT      = tmpMeetintInfoT.CONTENT;
                MeetingInfoT.CREATEDATE   = tmpMeetintInfoT.CREATEDATE;
                MeetingInfoT.CREATEUSERID = tmpMeetintInfoT.CREATEUSERID;
                MeetingInfoT.UPDATEDATE   = System.DateTime.Now;
                MeetingInfoT.UPDATEUSERID = "1";//tmpMeetintInfoT.UPDATEUSERID;

                tmpMeetintInfoT = MeetingInfoT;

                //MeetingInfoClient.MeetingInfoUpdateCompleted +=new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
                MeetingClient.MeetingInfoUpdateCompleted += new EventHandler <MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted);
                MeetingClient.MeetingInfoUpdateAsync(MeetingInfoT);
            }
            else
            {
                MessageBox.Show(StrError);
            }
        }
示例#41
0
        private void GetMeetingInfoByInfo(T_OA_MEETINGINFO MeetingInfoT)
        {
            if (MeetingInfoT != null)
            {
                tmpMeetingInfo = MeetingInfoT;
                //cbxMeetingType.SelectedItem = MeetingInfoT.MEETINGTYPE;
                //cbMeetingRoom.SelectedItem = MeetingInfoT.MEETINGROOMNAME;
                
                tbxCheckState.Text = MeetingInfoT.CHECKSTATE;
                tbxCreateDate.Text = MeetingInfoT.CHECKSTATE.ToString();
                tbxCreatUserID.Text = MeetingInfoT.CREATEUSERID;
                tbxIsCancel.Text = MeetingInfoT.ISCANCEL;
                tbxMeetingTitle.Text = MeetingInfoT.MEETINGTITLE;
                tbxMeetingContent.RichTextBoxContext = MeetingInfoT.CONTENT;
                dpStartDate.Text = Convert.ToDateTime(MeetingInfoT.STARTTIME).ToShortDateString();
                dpEndDate.Text = Convert.ToDateTime(MeetingInfoT.ENDTIME).ToShortDateString();

                strStartTime = Convert.ToDateTime(MeetingInfoT.STARTTIME).ToShortTimeString();
                strEndTime = Convert.ToDateTime(MeetingInfoT.ENDTIME).ToShortTimeString();
                //strMeetingType = MeetingInfoT.MEETINGTYPE;
                //strMeetingRoom = MeetingInfoT.MEETINGROOMNAME;
                this.tbxMeetingInfoID.Text = MeetingInfoT.MEETINGINFOID;
                GetTimeHour();
                //tpEndTime.SelectedItem = MeetingInfoT.ENDTIME.ToShortTimeString();
            }
            
        }
示例#42
0
 public int MeetingInfoUpdate(T_OA_MEETINGINFO obj)
 {
     using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
     {
         return MeetingInfoBLL.UpdateMeetingInfo(obj);
     }
     
 }
示例#43
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);
     }
 }
示例#44
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);
     }
     
 }
示例#45
0
        private void GetMeetingInfoByInfoAudit(T_OA_MEETINGINFO MeetingInfoT)
        {
            
            if (MeetingInfoT != null)
            {
                tmpMeetingInfo = MeetingInfoT;
                //cbxMeetingType.SelectedItem = MeetingInfoT.MEETINGTYPE;
                //cbMeetingRoom.SelectedItem = MeetingInfoT.MEETINGROOMNAME;
                txtMeetingRoom.Text = MeetingInfoT.T_OA_MEETINGROOM.MEETINGROOMNAME;
                //txtMeetingRoom.SelectedItem = MeetingInfoT.meetingroom;
                SelectMeetingRoom = MeetingInfoT.T_OA_MEETINGROOM;
                SelectMeetingType = MeetingInfoT.T_OA_MEETINGTYPE;

                tbxMeetingTitle.Text = MeetingInfoT.MEETINGTITLE;                                
                tbxMeetingContent.RichTextBoxContext = MeetingInfoT.CONTENT;
                dpStartDate.Text = Convert.ToDateTime(MeetingInfoT.STARTTIME).ToShortDateString();
                dpEndDate.Text = Convert.ToDateTime(MeetingInfoT.ENDTIME).ToShortDateString();
                txtTel.Text = MeetingInfoT.TEL;
                PostsObject.Text = MeetingInfoT.DEPARTNAME;
                strStartTime = Convert.ToDateTime(MeetingInfoT.STARTTIME).ToShortTimeString();
                tpStartTime.Value = MeetingInfoT.STARTTIME;
                tpEndTime.Value = MeetingInfoT.ENDTIME;
                strEndTime = Convert.ToDateTime(MeetingInfoT.ENDTIME).ToShortTimeString();
                tbxHostMembers.Text = MeetingInfoT.HOSTNAME;
                StrHostID = MeetingInfoT.HOSTID;
                tbxRecordMembers.Text = MeetingInfoT.RECORDUSERNAME;
                StrRecordID = MeetingInfoT.RECORDUSERID;
                
                combox_SelectSource();

            }

        }
示例#46
0
 private void InitAudit(T_OA_MEETINGINFO MeetingInfo)
 {
     SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity;
     entity.ModelCode = "MeetingInfo";
     entity.FormID = MeetingInfo.MEETINGINFOID;
     entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
     entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
     entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID;
     entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID;
     entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName;
     entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID;
     entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName;
     audit.BindingData();
 }
示例#47
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;
            }
        }
示例#48
0
        /// <summary>
        /// 获取 主持人和记录人
        /// </summary>
        /// <param name="MeetingT"></param>
        private void GetHostAndRecordStaffInfo(T_OA_MEETINGINFO MeetingT)
        {
            if (MeetingT != null)
            {
                StrHostStaffList.Add(MeetingT.HOSTID);
                StrRecordStaffList.Add(MeetingT.HOSTID);
            }

        }
 /// <summary>
 /// 获取参会人员
 /// </summary>
 /// <param name="MeetingT"></param>
 private void GetMeetingStaffInfo(T_OA_MEETINGINFO MeetingT)
 {
     if (MeetingT != null)
     {
         MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDCompleted += new EventHandler<GetAllMeetingStaffInfosByMeetingInfoIDCompletedEventArgs>(MeetingClient_GetAllMeetingStaffInfosByMeetingInfoIDCompleted);
         MeetingClient.GetAllMeetingStaffInfosByMeetingInfoIDAsync(MeetingT.MEETINGINFOID);
     }
 }