Esempio n. 1
0
        void MeetingInfoClient_MeetingInfoAddCompleted(object sender, MeetingInfoAddCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result == "")
                {
                    AddMeetingContentInfo();
                    //与会人员是在知道自己纳入会员后上传附件
                    AddMeetingStaffInfo();
                    checkRoomIsUsing();

                    AddMeetingStaffInfo();
                    if (AuditType) //添加并提交审核
                    {
                        SumbitFlow();
                        SaveAuditType = true;
                        AuditType     = false;
                    }
                    else
                    {
                        MessageBox.Show("添加会议信息成功!");
                        this.Close();
                        this.ReloadDataEvent();
                    }
                }
                else
                {
                    MessageBox.Show("添加会议信息" + e.Result.ToString());
                }
            }
            else
            {
                MessageBox.Show("输入添加时遇到错误,请与管理员联系");
            }
        }
Esempio n. 2
0
        void MeetingInfoClient_MeetingInfoAddCompleted(object sender, MeetingInfoAddCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            try
            {
                if (e.Error == null)
                {
                    if (e.Result == "")
                    {

                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"));
                        if (GlobalFunction.IsSaveAndClose(refreshType))
                        {
                            RefreshUI(refreshType);
                        }
                        else
                        {
                            ActionType = FormTypes.Edit;
                            EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
                            entBrowser.FormType = FormTypes.Edit;
                            RefreshUI(RefreshedTypes.AuditInfo);
                            RefreshUI(RefreshedTypes.All);
                        }
                                                
                    }
                    else
                    {
                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result));
                    }
                }
                else
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message);
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString());
            }
        }
Esempio n. 3
0
        void MeetingInfoClient_MeetingInfoAddCompleted(object sender, MeetingInfoAddCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result == "")
                {
                    
                    AddMeetingContentInfo();
                    //与会人员是在知道自己纳入会员后上传附件
                    AddMeetingStaffInfo();
                    checkRoomIsUsing();
                    
                    AddMeetingStaffInfo();
                    if (AuditType) //添加并提交审核
                    {
                        SumbitFlow();
                        SaveAuditType = true;
                        AuditType = false;
                    }
                    else
                    {
                        MessageBox.Show("添加会议信息成功!");
                        this.Close();
                        this.ReloadDataEvent();
                    }
                    
                    
                }
                else
                {
                    MessageBox.Show("添加会议信息"+e.Result.ToString());

                }
            }
            else
            {
                MessageBox.Show("输入添加时遇到错误,请与管理员联系");
            }
        }