Ejemplo n.º 1
0
 string StrMeetingInfoid = "";//会议申请ID
 public MyMeetingDetailInfo(V_MyMeetingInfosManagement objVMeeting)
 {
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(MyMeetingDetailInfo_Loaded);
     ShowMeetingInfos(objVMeeting);
     StrMeetingInfoid = objVMeeting.OAMeetingInfoT.MEETINGINFOID;
 }
Ejemplo n.º 2
0
 string StrMeetingInfoid = "";//会议申请ID
 public MyMeetingDetailInfo(V_MyMeetingInfosManagement objVMeeting)
 {
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(MyMeetingDetailInfo_Loaded);
     ShowMeetingInfos(objVMeeting);
     StrMeetingInfoid = objVMeeting.OAMeetingInfoT.MEETINGINFOID;
 }
Ejemplo n.º 3
0
        private void DaGr_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            V_MyMeetingInfosManagement Employ = (V_MyMeetingInfosManagement)e.Row.DataContext;
            CheckBox mychkBox = DaGr.Columns[0].GetCellContent(e.Row).FindName("myChkBox") as CheckBox;

            mychkBox.Tag = Employ;
        }
Ejemplo n.º 4
0
        void ShowMeetingInfos(V_MyMeetingInfosManagement objV)
        {
            tblTitle.Text             = Utility.GetResourceStr("MEETINGDETAIL");
            this.tblMeetingTitle.Text = objV.OAMeetingInfoT.MEETINGTITLE;
            if (!string.IsNullOrEmpty(objV.meetingroom.LOCATION) && !string.IsNullOrEmpty(objV.meetingroom.MEETINGROOMNAME))
            {
                this.tblMeetingRoom.Text = "[" + objV.meetingroom.LOCATION + "]" + " " + objV.meetingroom.MEETINGROOMNAME;
            }
            else
            {
                this.tblMeetingRoom.Text = objV.meetingroom.MEETINGROOMNAME;
            }
            this.tblStartTime.Text     = Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortTimeString();
            this.tblEndTime.Text       = Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortTimeString();
            this.tblMeetingMember.Text = objV.OAMeetingInfoT.COUNT.ToString();
            //tblMeetingContent.RichTextBoxContext = objV.OAMeetingInfoT.CONTENT;
            if (!string.IsNullOrEmpty(objV.OAMeetingContentT.CONTENT))
            {
                this.tblMyMeetingContent.Text = objV.OAMeetingContentT.CONTENT;
            }
            else
            {
                this.tblMyMeetingContent.Text = "还没有上传会议内容";
            }
            //this.tblMyAccessory.Text = objV.OAMeetingStaffT.FILENAME;
            //this.tblMyMeetingContent.RichTextBoxContext = objV.OAMeetingContentT.CONTENT;

            MeetingContentID = objV.OAMeetingContentT.MEETINGCONTENTID;
        }
Ejemplo n.º 5
0
 void ShowMeetingInfos(V_MyMeetingInfosManagement objV)
 {
     tblTitle.Text = Utility.GetResourceStr("MEETINGDETAIL"); 
     this.tblMeetingTitle.Text = objV.OAMeetingInfoT.MEETINGTITLE;
     if (!string.IsNullOrEmpty(objV.meetingroom.LOCATION) && !string.IsNullOrEmpty(objV.meetingroom.MEETINGROOMNAME))
     {
         this.tblMeetingRoom.Text = "[" + objV.meetingroom.LOCATION + "]" + " " + objV.meetingroom.MEETINGROOMNAME;
     }
     else
     {
         this.tblMeetingRoom.Text = objV.meetingroom.MEETINGROOMNAME;
     }
     this.tblStartTime.Text = Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortTimeString();
     this.tblEndTime.Text = Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortTimeString();
     this.tblMeetingMember.Text = objV.OAMeetingInfoT.COUNT.ToString();                        
     //tblMeetingContent.RichTextBoxContext = objV.OAMeetingInfoT.CONTENT;
     if (!string.IsNullOrEmpty(objV.OAMeetingContentT.CONTENT))
     {
         this.tblMyMeetingContent.Text = objV.OAMeetingContentT.CONTENT;
     }
     else
     {
         this.tblMyMeetingContent.Text = "还没有上传会议内容";
     }
     //this.tblMyAccessory.Text = objV.OAMeetingStaffT.FILENAME;
     //this.tblMyMeetingContent.RichTextBoxContext = objV.OAMeetingContentT.CONTENT;
     
     MeetingContentID=objV.OAMeetingContentT.MEETINGCONTENTID;
 }
Ejemplo n.º 6
0
        private void DaGr_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            V_MyMeetingInfosManagement MeetingV = (V_MyMeetingInfosManagement)e.Row.DataContext;

            //CheckBox mychkBox = DaGr.Columns[0].GetCellContent(e.Row).FindName("myChkBox") as CheckBox;
            SetRowLogo(DaGr, e.Row, "T_OA_MEETINGINFO");

            //mychkBox.Tag = MeetingV;
            Button ConfirmMeetingBtn = DaGr.Columns[8].GetCellContent(e.Row).FindName("JoinMeetingBtn") as Button;
            Button FinishBtn         = DaGr.Columns[8].GetCellContent(e.Row).FindName("FinishContentBtn") as Button;

            ConfirmMeetingBtn.Tag = MeetingV;
            FinishBtn.Tag         = MeetingV;
            string Strflag = MeetingV.OAMeetingStaffT.CONFIRMFLAG;

            if (Strflag == "1" || Strflag == "2")
            {
                ConfirmMeetingBtn.Visibility = Visibility.Collapsed;
                FinishBtn.Visibility         = Visibility.Visible;
            }
            else
            {
                if (Strflag == "3")
                {
                    FinishBtn.Visibility         = Visibility.Collapsed;
                    ConfirmMeetingBtn.Visibility = Visibility.Collapsed;
                }
                else//Strflag == "0"
                {
                    FinishBtn.Visibility         = Visibility.Collapsed;
                    ConfirmMeetingBtn.Visibility = Visibility.Visible;
                }
            }
        }
Ejemplo n.º 7
0
        private void GetMeetingInfoByInfo(V_MyMeetingInfosManagement MeetingInfoT)
        {
            loadbar.Start();
            if (MeetingInfoT != null)
            {
                tmpMeetingInfo = MeetingInfoT.OAMeetingInfoT;
                //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.OAMeetingInfoT.MEETINGTITLE;
                tbxMeetingContent.RichTextBoxContext = MeetingInfoT.OAMeetingInfoT.CONTENT;
                dpStartDate.Text      = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.STARTTIME).ToShortDateString();
                dpEndDate.Text        = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.ENDTIME).ToShortDateString();
                txtTel.Text           = MeetingInfoT.OAMeetingInfoT.TEL;
                PostsObject.Text      = MeetingInfoT.OAMeetingInfoT.DEPARTNAME;
                strStartTime          = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.STARTTIME).ToShortTimeString();
                tpStartTime.Value     = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.STARTTIME);
                tpEndTime.Value       = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.ENDTIME);
                strEndTime            = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.ENDTIME).ToShortTimeString();
                tbxHostMembers.Text   = MeetingInfoT.OAMeetingInfoT.HOSTNAME;
                StrHostID             = MeetingInfoT.OAMeetingInfoT.HOSTID;
                tbxRecordMembers.Text = MeetingInfoT.OAMeetingInfoT.RECORDUSERNAME;
                StrRecordID           = MeetingInfoT.OAMeetingInfoT.RECORDUSERID;
                combox_MeetingRoomSelectSource();
                combox_SelectSource();
            }
        }
Ejemplo n.º 8
0
 void DaGr_CurrentCellChanged(object sender, EventArgs e)
 {
     DataGrid grid = sender as DataGrid;
     if (grid.SelectedItem != null)
     {
         Mymeetinginfo = (V_MyMeetingInfosManagement)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体     
     }
 }
Ejemplo n.º 9
0
        void DaGr_CurrentCellChanged(object sender, EventArgs e)
        {
            DataGrid grid = sender as DataGrid;

            if (grid.SelectedItem != null)
            {
                Myemcmeeting = (V_MyMeetingInfosManagement)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体
            }
        }
Ejemplo n.º 10
0
        private void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (DaGr.SelectedItems.Count == 0)
            {
                return;
            }

            SelectMeeting = DaGr.SelectedItems[0] as V_MyMeetingInfosManagement;
        }
Ejemplo n.º 11
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;
 }
Ejemplo n.º 12
0
 string StrMeetingInfoid                       = "";//会议申请ID
 public MyMeetingDetailInfoForm(V_MyMeetingInfosManagement objVMeeting)
 {
     InitializeComponent();
     ctrFile.SystemName = "OA";
     ctrFile.ModelName  = "MeetingApp";
     ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed);
     ShowMeetingInfos(objVMeeting);
     StrMeetingInfoid = objVMeeting.OAMeetingInfoT.MEETINGINFOID;
     this.Loaded     += new RoutedEventHandler(MyMeetingDetailInfoForm_Loaded);
 }
Ejemplo n.º 13
0
 string StrMeetingInfoid = "";//会议申请ID
 public MyMeetingDetailInfoForm(V_MyMeetingInfosManagement objVMeeting)
 {
     InitializeComponent();
     ctrFile.SystemName = "OA";
     ctrFile.ModelName = "MeetingApp";
     ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed);
     ShowMeetingInfos(objVMeeting);
     StrMeetingInfoid = objVMeeting.OAMeetingInfoT.MEETINGINFOID;
     this.Loaded += new RoutedEventHandler(MyMeetingDetailInfoForm_Loaded);
 }
Ejemplo n.º 14
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;
 }
Ejemplo n.º 15
0
        private void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataGrid grid = sender as DataGrid;

            if (grid.SelectedItems.Count == 0)
            {
                return;
            }

            if (grid.SelectedItems.Count > 0)
            {
                Mymeetinginfo = (V_MyMeetingInfosManagement)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体
            }
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 18
0
 private void GetMeetingInfo(V_MyMeetingInfosManagement objV)
 {
     //this.tbldepartment.Text = objV.me
     this.tblend.Text    = Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortTimeString();
     this.tblstart.Text  = Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortTimeString();
     this.tbltel.Text    = objV.OAMeetingInfoT.TEL;
     this.tbltitle.Text  = objV.OAMeetingInfoT.MEETINGTITLE;
     this.tblroom.Text   = objV.meetingroom.MEETINGROOMNAME;
     this.tbltype.Text   = objV.meetingtype.MEETINGTYPE;
     this.tblRecord.Text = objV.OAMeetingInfoT.RECORDUSERNAME;
     this.tblhost.Text   = objV.OAMeetingInfoT.HOSTNAME;
     this.tblContent.HideControls();//屏蔽富文本框的头部
     tblContent.RichTextBoxContext = objV.OAMeetingInfoT.CONTENT;
     this.tbldepartment.Text       = objV.OAMeetingInfoT.DEPARTNAME;
 }
Ejemplo n.º 19
0
        private void FinishContentBtn_Click(object sender, RoutedEventArgs e)
        {
            Button ConfirmBtn = sender as Button;
            V_MyMeetingInfosManagement MeetingV = ConfirmBtn.Tag as V_MyMeetingInfosManagement;

            T_OA_MEETINGCONTENT contentT = new T_OA_MEETINGCONTENT();

            contentT = MeetingV.OAMeetingContentT;
            AddMeetingContentForm AddWin  = new AddMeetingContentForm(contentT);
            EntityBrowser         browser = new EntityBrowser(AddWin);

            browser.MinWidth         = 380;
            browser.MinHeight        = 480;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Ejemplo n.º 20
0
 void ShowMeetingInfos(V_MyMeetingInfosManagement objV)
 {
     this.tblMeetingTitle.Text = objV.OAMeetingInfoT.MEETINGTITLE;
     //this.tblMeetingRoom.Text = objV.OAMeetingInfoT.MEETINGROOMNAME;
     this.tblStartTime.Text = Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortDateString() + " "+ Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortTimeString();
     this.tblEndTime.Text = Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortTimeString();
     this.tblMeetingMember.Text = objV.OAMeetingInfoT.COUNT.ToString();
     //this.tblMeetingContent.Text = HttpUtility.HtmlDecode( objV.OAMeetingInfoT.CONTENT);
     this.tblCheckState.Text = this.GetMeetingCheckState(objV.OAMeetingInfoT.CHECKSTATE);
     this.tblIsCancel.Text = this.GetMeetingCancel( objV.OAMeetingInfoT.ISCANCEL);
     this.tblMyMeetingContent.Text = HttpUtility.HtmlDecode(objV.OAMeetingContentT.CONTENT);
     this.tblMyAccessory.Text = objV.OAMeetingStaffT.FILENAME;
     this.tblMycontentTime.Text = objV.OAMeetingContentT.UPDATEDATE.ToString();
     this.tblMyaccessoryTime.Text = objV.OAMeetingStaffT.UPDATEDATE.ToString();
     //this.tblMyMeetingContent
 }
Ejemplo n.º 21
0
 void ShowMeetingInfos(V_MyMeetingInfosManagement objV)
 {
     this.tblMeetingTitle.Text = objV.OAMeetingInfoT.MEETINGTITLE;
     //this.tblMeetingRoom.Text = objV.OAMeetingInfoT.MEETINGROOMNAME;
     this.tblStartTime.Text     = Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortTimeString();
     this.tblEndTime.Text       = Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortTimeString();
     this.tblMeetingMember.Text = objV.OAMeetingInfoT.COUNT.ToString();
     //this.tblMeetingContent.Text = HttpUtility.HtmlDecode( objV.OAMeetingInfoT.CONTENT);
     this.tblCheckState.Text       = this.GetMeetingCheckState(objV.OAMeetingInfoT.CHECKSTATE);
     this.tblIsCancel.Text         = this.GetMeetingCancel(objV.OAMeetingInfoT.ISCANCEL);
     this.tblMyMeetingContent.Text = HttpUtility.HtmlDecode(objV.OAMeetingContentT.CONTENT);
     this.tblMyAccessory.Text      = objV.OAMeetingStaffT.FILENAME;
     this.tblMycontentTime.Text    = objV.OAMeetingContentT.UPDATEDATE.ToString();
     this.tblMyaccessoryTime.Text  = objV.OAMeetingStaffT.UPDATEDATE.ToString();
     //this.tblMyMeetingContent
 }
Ejemplo n.º 22
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            V_MyMeetingInfosManagement VMeetingStaff = new V_MyMeetingInfosManagement();

            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)
                        {
                            VMeetingStaff = cb1.Tag as V_MyMeetingInfosManagement;
                            break;
                        }
                    }
                }
            }
            if (VMeetingStaff.OAMeetingStaffT == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }
            else
            {
                if (SelectMeeting.OAMeetingStaffT.ISOK == "1" || SelectMeeting.OAMeetingStaffT.ISOK == "2")
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("ISOKNOTCONFIRMAGAIN"));
                    return;
                }
                else
                {
                    EmceeMemberMeetingForm AddWin  = new EmceeMemberMeetingForm(tmpMeetingInfoT, VMeetingStaff, tmpRoom);
                    EntityBrowser          browser = new EntityBrowser(AddWin);
                    browser.MinHeight        = 650;
                    browser.MinWidth         = 600;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                    browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });

                    //T_OA_MEETINGSTAFF staff = new T_OA_MEETINGSTAFF();
                    //staff = SelectMeeting.OAMeetingStaffT;
                    //staff.ISOK = "2";////确认不通过
                    //MeetingClient.MeetingStaffUpdateInfosCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingClient_MeetingStaffUpdateInfosCompleted);
                    //MeetingClient.MeetingStaffUpdateInfosAsync(staff);
                }
            }
        }
Ejemplo n.º 23
0
        private void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            //DaGr.SelectedItems[0].IsNotNull

            if (DaGr.SelectedItems.Count == 0)
            {
                return;
            }

            SelectMeeting = DaGr.SelectedItems[0] as V_MyMeetingInfosManagement;
            DataGrid grid = sender as DataGrid;

            if (grid.SelectedItem != null)
            {
                Myemcmeeting = (V_MyMeetingInfosManagement)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体
            }
        }
Ejemplo n.º 24
0
        private void JoinMeetingBtn_Click(object sender, RoutedEventArgs e)
        {
            Button ConfirmBtn = sender as Button;

            V_MyMeetingInfosManagement MeetingV = ConfirmBtn.Tag as V_MyMeetingInfosManagement;
            T_OA_MEETINGSTAFF          StaffT   = new T_OA_MEETINGSTAFF();

            StaffT = MeetingV.OAMeetingStaffT;
            DateTime DtNow   = System.DateTime.Now;
            DateTime DtStart = Convert.ToDateTime(MeetingV.OAMeetingInfoT.STARTTIME);

            if (DtStart >= Convert.ToDateTime(MeetingV.OAMeetingInfoT.ENDTIME))
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NOWGREATEENDNOTJOIN"));
                return;
            }
            if (DtNow >= DtStart)
            {
                //确认时间超过或等于会议开始时间
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NOWGREATESTARTNOJOIN"));
                return;
            }
            else
            {
                string Result = "";
                SMT.SaaS.FrameworkUI.ChildWidow.ComfirmWindow com = new SMT.SaaS.FrameworkUI.ChildWidow.ComfirmWindow();
                com.OnSelectionBoxClosed += (obj, result) =>
                {
                    try
                    {
                        FrmConfirmJoinMeeting form    = new FrmConfirmJoinMeeting(MeetingV);
                        EntityBrowser         browser = new EntityBrowser(form);
                        browser.MinHeight        = 570;
                        browser.MinWidth         = 580;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                        browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result1) => { }, true);
                    }
                    catch (Exception ex)
                    {
                        //com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), SMT.SaaS.FrameworkUI.ChildWidow.ComfirmWindow.titlename, Result);
                    }
                };
                com.SelectionBox(Utility.GetResourceStr("JOINMEETINGCONFIRM"), Utility.GetResourceStr("JOINMEETINGCONFIRM"), SMT.SaaS.FrameworkUI.ChildWidow.ComfirmWindow.titlename, Result);
            }
        }
Ejemplo n.º 25
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();
 }
Ejemplo n.º 26
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();
 }
Ejemplo n.º 27
0
        public FrmConfirmJoinMeeting(V_MyMeetingInfosManagement MeetingT)
        {
            InitializeComponent();

            //this.GetTimeHour();

            PARENT.Children.Add(loadbar);
            issuanceExtOrgObj = new List <SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>();
            SetEnabled();
            GetMeetingInfoByInfo(MeetingT);
            tmpstaff = MeetingT.OAMeetingStaffT;
            GetMeetingStaffInfo(MeetingT.OAMeetingInfoT);

            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);
            personclient.GetEmployeeDetailByParasCompleted += new EventHandler <GetEmployeeDetailByParasCompletedEventArgs>(personclient_GetEmployeeDetailByParasCompleted);
            MeetingClient.MeetingStaffUpdateInfosCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(MeetingStaffClient_MeetingStaffUpdateInfosCompleted);
        }
Ejemplo n.º 28
0
 void AddWin_ReloadDataEvent()
 {
     Mymeetinginfo = null;
     LoadMeetingInfos();
 }
Ejemplo n.º 29
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            V_MyMeetingInfosManagement VMeetingStaff = new V_MyMeetingInfosManagement();
            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)
                        {
                            VMeetingStaff = cb1.Tag as V_MyMeetingInfosManagement;
                            break;
                        }
                    }
                }

            }
            if (VMeetingStaff.OAMeetingStaffT == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }
            else
            {
                if (SelectMeeting.OAMeetingStaffT.ISOK == "1" || SelectMeeting.OAMeetingStaffT.ISOK == "2")
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("ISOKNOTCONFIRMAGAIN"));
                    return;
                }
                else
                {
                    EmceeMemberMeetingForm AddWin = new EmceeMemberMeetingForm(tmpMeetingInfoT, VMeetingStaff, tmpRoom);
                    EntityBrowser browser = new EntityBrowser(AddWin);
                    browser.MinHeight = 650;
                    browser.MinWidth = 600;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });

                    //T_OA_MEETINGSTAFF staff = new T_OA_MEETINGSTAFF();
                    //staff = SelectMeeting.OAMeetingStaffT;
                    //staff.ISOK = "2";////确认不通过
                    //MeetingClient.MeetingStaffUpdateInfosCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingClient_MeetingStaffUpdateInfosCompleted);
                    //MeetingClient.MeetingStaffUpdateInfosAsync(staff);

                }


            }
        }
Ejemplo n.º 30
0
 private void GetMeetingInfoByInfo(V_MyMeetingInfosManagement MeetingInfoT)
 {
     loadbar.Start();
     if (MeetingInfoT != null)
     {
         tmpMeetingInfo = MeetingInfoT.OAMeetingInfoT;
         //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.OAMeetingInfoT.MEETINGTITLE;
         tbxMeetingContent.RichTextBoxContext = MeetingInfoT.OAMeetingInfoT.CONTENT;
         dpStartDate.Text = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.STARTTIME).ToShortDateString();
         dpEndDate.Text = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.ENDTIME).ToShortDateString();
         txtTel.Text = MeetingInfoT.OAMeetingInfoT.TEL;
         PostsObject.Text = MeetingInfoT.OAMeetingInfoT.DEPARTNAME;
         strStartTime = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.STARTTIME).ToShortTimeString();
         tpStartTime.Value = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.STARTTIME);
         tpEndTime.Value = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.ENDTIME);
         strEndTime = Convert.ToDateTime(MeetingInfoT.OAMeetingInfoT.ENDTIME).ToShortTimeString();
         tbxHostMembers.Text = MeetingInfoT.OAMeetingInfoT.HOSTNAME;
         StrHostID = MeetingInfoT.OAMeetingInfoT.HOSTID;
         tbxRecordMembers.Text = MeetingInfoT.OAMeetingInfoT.RECORDUSERNAME;
         StrRecordID = MeetingInfoT.OAMeetingInfoT.RECORDUSERID;
         combox_MeetingRoomSelectSource();
         combox_SelectSource();
         
     }
     
 }
Ejemplo n.º 31
0
 private void GetMeetingInfo(V_MyMeetingInfosManagement objV)
 {
     //this.tbldepartment.Text = objV.me
     this.tblend.Text = Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.ENDTIME).ToShortTimeString();
     this.tblstart.Text = Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortDateString() + " " + Convert.ToDateTime(objV.OAMeetingInfoT.STARTTIME).ToShortTimeString();
     this.tbltel.Text = objV.OAMeetingInfoT.TEL;
     this.tbltitle.Text = objV.OAMeetingInfoT.MEETINGTITLE;
     this.tblroom.Text = objV.meetingroom.MEETINGROOMNAME;
     this.tbltype.Text = objV.meetingtype.MEETINGTYPE;
     this.tblRecord.Text = objV.OAMeetingInfoT.RECORDUSERNAME;
     this.tblhost.Text = objV.OAMeetingInfoT.HOSTNAME;
     this.tblContent.HideControls();//屏蔽富文本框的头部
     tblContent.RichTextBoxContext = objV.OAMeetingInfoT.CONTENT;
     this.tbldepartment.Text = objV.OAMeetingInfoT.DEPARTNAME;
 }
Ejemplo n.º 32
0
 public FrmConfirmJoinMeeting(V_MyMeetingInfosManagement MeetingT)
 {
     InitializeComponent();
     
     //this.GetTimeHour();
     
     PARENT.Children.Add(loadbar);
     issuanceExtOrgObj = new List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>();
     SetEnabled();
     GetMeetingInfoByInfo(MeetingT);
     tmpstaff = MeetingT.OAMeetingStaffT;
     GetMeetingStaffInfo(MeetingT.OAMeetingInfoT);
     
     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);            
     personclient.GetEmployeeDetailByParasCompleted += new EventHandler<GetEmployeeDetailByParasCompletedEventArgs>(personclient_GetEmployeeDetailByParasCompleted);
     MeetingClient.MeetingStaffUpdateInfosCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(MeetingStaffClient_MeetingStaffUpdateInfosCompleted);
 }
Ejemplo n.º 33
0
 private void AddWin_ReloadDataEvent()
 {
     Myemcmeeting = null;
     LoadMeetingInfos();
 }
Ejemplo n.º 34
0
 void AddWin_ReloadDataEvent()
 {
     Mymeetinginfo = null;
     LoadMeetingInfos();
 }
Ejemplo n.º 35
0
 private void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     DataGrid grid = sender as DataGrid;
     if (grid.SelectedItems.Count == 0)
         return;
     
     if (grid.SelectedItems.Count > 0 )
     {
         Mymeetinginfo = (V_MyMeetingInfosManagement)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体     
     }
     
 }
Ejemplo n.º 36
0
        private void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (DaGr.SelectedItems.Count == 0)
                return;

            SelectMeeting = DaGr.SelectedItems[0] as V_MyMeetingInfosManagement;
        }