public CancelMeetingForm(FormTypes action, V_MeetingInfo MeetingT) { InitializeComponent(); SetEnabled(); //this.GetTimeHour(); ActionType = action; PARENT.Children.Add(loadbar); issuanceExtOrgObj = new List <SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>(); GetMeetingInfoByInfo(MeetingT); GetMeetingStaffInfo(MeetingT.meetinginfo); GetMeetingMessageInfo(MeetingT.meetinginfo); MeetingClient.MeetingInfoUpdateCompleted += new EventHandler <MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted); 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.UpdateMeetingNoticeInfoCompleted += new EventHandler <UpdateMeetingNoticeInfoCompletedEventArgs>(MeetingClient_UpdateMeetingNoticeInfoCompleted); }
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(); } }
void DaGr_CurrentCellChanged(object sender, EventArgs e) { DataGrid grid = sender as DataGrid; if (grid.SelectedItem != null) { Meetinginfo = (V_MeetingInfo)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体 } }
private void btnNew_Click(object sender, RoutedEventArgs e) { //T_OA_MEETINGINFO info = new T_OA_MEETINGINFO(); V_MeetingInfo MeetingInfoT = new V_MeetingInfo(); MeetingForm form = new MeetingForm(FormTypes.New, MeetingInfoT); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 580; browser.MinWidth = 800; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true); }
public MeetingMangementDetailInfo(V_MeetingInfo obj) { InitializeComponent(); tmpMeetingInfoT = obj.meetinginfo; GetMeetingStaffInfo(obj.meetinginfo); ShowMeetingDetailInfos(); ShowMeetingUploadContent(); //回去与会人员会议内容 ShowMeetingStaffInfos(); //获取与会人员附件信息 ShowMeetingChangeInfos(); //会议时间变更 ShowMeetingRoomTimeChangeInfos(); //获取会议室使用时间变更 }
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); }
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); }
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); } }
void btnSumbitAudit_Click(object sender, RoutedEventArgs e) { V_MeetingInfo MeetingInfoT = new V_MeetingInfo(); if (DaGr.ItemsSource != null) { foreach (object obj in DaGr.ItemsSource) { if (DaGr.Columns[0].GetCellContent(obj) != null) { CheckBox cb1 = DaGr.Columns[0].GetCellContent(obj).FindName("myChkBox") as CheckBox; //cb为 if (cb1.IsChecked == true) { //MeetingInfoId = cb1.Tag.ToString(); MeetingInfoT = cb1.Tag as V_MeetingInfo; break; } } } } if (MeetingInfoT.meetinginfo != null) { if (MeetingInfoT.meetinginfo.CHECKSTATE == "2") { //MessageBox.Show("信息已经审核通过,不能修改"); Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr(""), Utility.GetResourceStr("")); } else { if (checkState == "0") //未提交的审核 { //SumbitFlow(audit, tmpInfoT); } } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON")); } }
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); }
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); }
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(); }
public CancelMeetingForm(FormTypes action, V_MeetingInfo MeetingT) { InitializeComponent(); SetEnabled(); //this.GetTimeHour(); ActionType = action; PARENT.Children.Add(loadbar); issuanceExtOrgObj = new List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>(); GetMeetingInfoByInfo(MeetingT); GetMeetingStaffInfo(MeetingT.meetinginfo); GetMeetingMessageInfo(MeetingT.meetinginfo); MeetingClient.MeetingInfoUpdateCompleted += new EventHandler<MeetingInfoUpdateCompletedEventArgs>(MeetingInfoClient_MeetingInfoUpdateCompleted); 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.UpdateMeetingNoticeInfoCompleted += new EventHandler<UpdateMeetingNoticeInfoCompletedEventArgs>(MeetingClient_UpdateMeetingNoticeInfoCompleted); }
//刷新 private void browser_ReloadDataEvent() { Meetinginfo = null; LoadMeetingInfos(); }
private void btnNew_Click(object sender, RoutedEventArgs e) { //T_OA_MEETINGINFO info = new T_OA_MEETINGINFO(); V_MeetingInfo MeetingInfoT = new V_MeetingInfo(); MeetingForm form = new MeetingForm(FormTypes.New, MeetingInfoT); EntityBrowser browser = new EntityBrowser(form); browser.MinHeight = 580; browser.MinWidth = 800; browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent); browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { },true); }
public MeetingForm(FormTypes action, V_MeetingInfo MeetingT) { InitializeComponent(); this.meetingT = MeetingT; ActionType = action; this.Loaded+=new RoutedEventHandler(MeetingForm_Loaded); }