void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                T_OA_MEETINGTIMECHANGE MeetingTimeT = new T_OA_MEETINGTIMECHANGE();
                MeetingTimeT.MEETINGTIMECHANGEID = System.Guid.NewGuid().ToString();
                //MeetingTimeT.T_OA_MEETINGINFO = tmpMeetintInfoT;
                //MeetingTimeT.T_OA_MEETINGINFO.MEETINGINFOID = tmpMeetintInfoT.MEETINGINFOID;
                MeetingTimeT.MEETINGINFOID = tmpMeetintInfoT.MEETINGINFOID;

                MeetingTimeT.STARTTIME = Convert.ToDateTime(tmpMeetintInfoT.STARTTIME);
                MeetingTimeT.ENDTIME   = Convert.ToDateTime(tmpMeetintInfoT.ENDTIME);
                MeetingTimeT.REASON    = this.txtResult.Text.Trim().ToString();

                MeetingTimeT.CREATEDATE         = Convert.ToDateTime(tmpMeetintInfoT.CREATEDATE);
                MeetingTimeT.CREATEUSERID       = tmpMeetintInfoT.CREATEUSERID;
                MeetingTimeT.CREATECOMPANYID    = tmpMeetintInfoT.CREATECOMPANYID;
                MeetingTimeT.CREATEDEPARTMENTID = tmpMeetintInfoT.CREATECOMPANYID;
                MeetingTimeT.CREATEPOSTID       = tmpMeetintInfoT.CREATEPOSTID;
                MeetingTimeT.CREATEUSERNAME     = tmpMeetintInfoT.CREATEUSERNAME;

                MeetingTimeT.UPDATEDATE     = tmpMeetintInfoT.UPDATEDATE;
                MeetingTimeT.UPDATEUSERID   = tmpMeetintInfoT.UPDATEUSERID;
                MeetingTimeT.UPDATEUSERNAME = tmpMeetintInfoT.UPDATEUSERNAME;

                MeetingTimeT.OWNERCOMPANYID    = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                MeetingTimeT.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                MeetingTimeT.OWNERID           = Common.CurrentLoginUserInfo.EmployeeID;
                MeetingTimeT.OWNERNAME         = Common.CurrentLoginUserInfo.EmployeeName;
                MeetingTimeT.OWNERPOSTID       = Common.CurrentLoginUserInfo.UserPosts[0].PostID;

                MeetingClient.MeetingTimeChangeAddCompleted += new EventHandler <MeetingTimeChangeAddCompletedEventArgs>(MeetingTimeClient_MeetingTimeChangeAddCompleted);
                MeetingClient.MeetingTimeChangeAddAsync(MeetingTimeT);
            }
        }
 void MeetingClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         //MessageBox.Show("会议已取消");
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MEETINGCANCELEDSUCCESSED"));
         LoadMeetingInfos();
     }
 }
Exemple #3
0
 /// <summary>
 /// 针对审核的动作  审核时 只修改会议主表 其它不操作
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     try
     {
         if (!e.Cancelled)
         {
             if (e.Error == null)
             {
                 if (e.Result > 0)
                 {
                     if (e.UserState.ToString() == "Edit")
                     {
                         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED"));
                         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 if (e.UserState.ToString() == "Audit")
                     {
                         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"));
                     }
                     else if (e.UserState.ToString() == "Submit")
                     {
                         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"));
                     }
                     RefreshUI(RefreshedTypes.All);
                 }
             }//需要将修改记录添加到会议修改表中
             else
             {
                 Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), e.Error.Message.ToString());
             }
         }
         else
         {
             //MessageBox.Show(e.ToString());
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.ToString());
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }
Exemple #4
0
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            string bbb = "";

            if (!e.Cancelled)
            {
                if (e.Result == 1)
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "MEETINGADD"));
                    RefreshUI(refreshType);
                }
                //需要将修改记录添加到会议修改表中
            }
            else
            {
                //MessageBox.Show(e.ToString());
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.ToString());
            }
        }
Exemple #5
0
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                //MeetingTimeChangeManagementServiceClient MeetingTimeClient = new MeetingTimeChangeManagementServiceClient();
                T_OA_MEETINGTIMECHANGE MeetingTimeT = new T_OA_MEETINGTIMECHANGE();
                MeetingTimeT.MEETINGTIMECHANGEID = System.Guid.NewGuid().ToString();
                //MeetingTimeT.MEETINGINFOID = tmpMeetintInfoT.MEETINGINFOID;
                MeetingTimeT.STARTTIME    = Convert.ToDateTime(tmpMeetintInfoT.STARTTIME);
                MeetingTimeT.ENDTIME      = Convert.ToDateTime(tmpMeetintInfoT.ENDTIME);
                MeetingTimeT.CREATEDATE   = Convert.ToDateTime(tmpMeetintInfoT.CREATEDATE);
                MeetingTimeT.CREATEUSERID = tmpMeetintInfoT.CREATEUSERID;
                MeetingTimeT.UPDATEDATE   = tmpMeetintInfoT.UPDATEDATE;
                MeetingTimeT.UPDATEUSERID = tmpMeetintInfoT.UPDATEUSERID;
                MeetingTimeT.REASON       = this.txtResult.Text.Trim().ToString();

                MeetingClient.MeetingTimeChangeAddCompleted += new EventHandler <MeetingTimeChangeAddCompletedEventArgs>(MeetingTimeClient_MeetingTimeChangeAddCompleted);
                MeetingClient.MeetingTimeChangeAddAsync(MeetingTimeT);
            }
        }
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            if (e.Result == 1)
            {
                if (EditState == "")
                {
                }
                else
                {
                    //MessageBox.Show("取消申请成功");
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("CANCELSUCCESSED", "MEETING"));
                    //添加1条取消会议通知
                    //T_OA_MEETINGMESSAGE Message = new T_OA_MEETINGMESSAGE();
                    //Message.MEETINGMESSAGEID = System.Guid.NewGuid().ToString();
                    //Message.TITLE = Utility.GetResourceStr("CANCEL")+tmpInfoT.MEETINGTITLE+Utility.GetResourceStr("NOTICES");

                    this.LoadMeetingInfos();
                }
            }
        }
Exemple #7
0
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            string bbb = "";

            if (!e.Cancelled)
            {
                if (e.Result == 1)
                {
                    if (ActionType == Action.AUDIT)
                    {
                        MessageBox.Show("审核成功");
                        this.ReloadData();
                        this.Close();
                    }
                    if (AuditType)
                    {
                        SumbitFlow();
                        AuditType = false;
                    }
                    else
                    {
                        if (SaveAuditType)
                        {
                            MessageBox.Show("操作成功");
                        }
                        else
                        {
                            MessageBox.Show("会议信息修改成功!");
                        }

                        this.ReloadData();
                        this.Close();
                    }
                }
                //需要将修改记录添加到会议修改表中
            }
            else
            {
                MessageBox.Show(e.ToString());
            }
        }
Exemple #8
0
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            string bbb = "";
            if (!e.Cancelled)
            {
                if (e.Result == 1)
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "MEETINGADD"));
                    RefreshUI(refreshType);                    
                    
                }
                //需要将修改记录添加到会议修改表中

            }
            else
            {
                //MessageBox.Show(e.ToString());
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.ToString());
            }

        }
Exemple #9
0
        /// <summary>
        /// 针对审核的动作  审核时 只修改会议主表 其它不操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            try
            {
                if (!e.Cancelled)
                {
                    if (e.Error == null)
                    {
                        if (e.Result > 0)
                        {

                            if (e.UserState.ToString() == "Edit")
                            {
                                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED"));
                                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 if (e.UserState.ToString() == "Audit")
                            {
                                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"));
                            }
                            else if (e.UserState.ToString() == "Submit")
                            {
                                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"));
                            }
                            RefreshUI(RefreshedTypes.All);

                            
                        }
                    }//需要将修改记录添加到会议修改表中
                    else
                    {
                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), e.Error.Message.ToString());
                    }
                }
                else
                {
                    //MessageBox.Show(e.ToString());
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.ToString());
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString());
            }

        }
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {

                T_OA_MEETINGTIMECHANGE MeetingTimeT = new T_OA_MEETINGTIMECHANGE();
                MeetingTimeT.MEETINGTIMECHANGEID = System.Guid.NewGuid().ToString();
                //MeetingTimeT.T_OA_MEETINGINFO = tmpMeetintInfoT;
                //MeetingTimeT.T_OA_MEETINGINFO.MEETINGINFOID = tmpMeetintInfoT.MEETINGINFOID;
                MeetingTimeT.MEETINGINFOID = tmpMeetintInfoT.MEETINGINFOID;

                MeetingTimeT.STARTTIME = Convert.ToDateTime(tmpMeetintInfoT.STARTTIME);
                MeetingTimeT.ENDTIME = Convert.ToDateTime(tmpMeetintInfoT.ENDTIME);
                MeetingTimeT.REASON = this.txtResult.Text.Trim().ToString();

                MeetingTimeT.CREATEDATE = Convert.ToDateTime(tmpMeetintInfoT.CREATEDATE);
                MeetingTimeT.CREATEUSERID = tmpMeetintInfoT.CREATEUSERID;
                MeetingTimeT.CREATECOMPANYID = tmpMeetintInfoT.CREATECOMPANYID;
                MeetingTimeT.CREATEDEPARTMENTID = tmpMeetintInfoT.CREATECOMPANYID;
                MeetingTimeT.CREATEPOSTID = tmpMeetintInfoT.CREATEPOSTID;
                MeetingTimeT.CREATEUSERNAME = tmpMeetintInfoT.CREATEUSERNAME;

                MeetingTimeT.UPDATEDATE = tmpMeetintInfoT.UPDATEDATE;
                MeetingTimeT.UPDATEUSERID = tmpMeetintInfoT.UPDATEUSERID;
                MeetingTimeT.UPDATEUSERNAME = tmpMeetintInfoT.UPDATEUSERNAME;

                MeetingTimeT.OWNERCOMPANYID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                MeetingTimeT.OWNERDEPARTMENTID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                MeetingTimeT.OWNERID = Common.CurrentLoginUserInfo.EmployeeID;
                MeetingTimeT.OWNERNAME = Common.CurrentLoginUserInfo.EmployeeName;
                MeetingTimeT.OWNERPOSTID = Common.CurrentLoginUserInfo.UserPosts[0].PostID;

                MeetingClient.MeetingTimeChangeAddCompleted += new EventHandler<MeetingTimeChangeAddCompletedEventArgs>(MeetingTimeClient_MeetingTimeChangeAddCompleted);
                MeetingClient.MeetingTimeChangeAddAsync(MeetingTimeT);
            }
        }
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            if (e.Result == 1)
            {
                if (EditState == "")
                {
                    
                }
                else
                {
                    //MessageBox.Show("取消申请成功");
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("CANCELSUCCESSED","MEETING"));
                    //添加1条取消会议通知
                    //T_OA_MEETINGMESSAGE Message = new T_OA_MEETINGMESSAGE();
                    //Message.MEETINGMESSAGEID = System.Guid.NewGuid().ToString();
                    //Message.TITLE = Utility.GetResourceStr("CANCEL")+tmpInfoT.MEETINGTITLE+Utility.GetResourceStr("NOTICES");

                    this.LoadMeetingInfos();
                }
                
            }
                        

        }
 void MeetingClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
 {
     
     if (!e.Cancelled)
     {
         //MessageBox.Show("会议已取消");
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MEETINGCANCELEDSUCCESSED"));
         LoadMeetingInfos();
     }
 }
Exemple #13
0
        void MeetingInfoClient_MeetingInfoUpdateCompleted(object sender, MeetingInfoUpdateCompletedEventArgs e)
        {
            string bbb = "";
            if (!e.Cancelled)
            {
                if (e.Result == 1)
                {
                    if (ActionType == Action.AUDIT)
                    {
                        MessageBox.Show("审核成功");
                        this.ReloadData();
                        this.Close();
                    }
                    if (AuditType)
                    {
                        SumbitFlow();
                        AuditType = false;
                    }
                    else
                    {
                        if (SaveAuditType)
                        {
                            MessageBox.Show("操作成功");
                        }
                        else
                        {
                            MessageBox.Show("会议信息修改成功!");
                        }

                        this.ReloadData();
                        this.Close();
                    }
                }
                //需要将修改记录添加到会议修改表中

            }
            else
            {
                MessageBox.Show(e.ToString());
            }

        }