void ApprovalForm_aud_Loaded(object sender, RoutedEventArgs e)
        {
            InitEvent();

            if (!string.IsNullOrEmpty(approvalid))
            {
                publicClient.GetContentAsync(approvalid);
            }
            InitFormType();

            //先取消提交方式,订阅新的提交保存功能 luojie
        }
        private void GetDocTypeTemplateDetailInfo(T_OA_SENDDOCTEMPLATE TypeTemplateObj)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (TypeTemplateObj != null)
            {
                tmpDocTypeTemplateT        = TypeTemplateObj;
                this.txtTemplateTitle.Text = TypeTemplateObj.SENDDOCTITLE;
                this.txtTemplateName.Text  = TypeTemplateObj.TEMPLATENAME;

                //txtContent.RichTextBoxContext = TypeTemplateObj.CONTENT;
                publicClient.GetContentAsync(TypeTemplateObj.SENDDOCTEMPLATEID);
                tmpStrcbxDocType             = TypeTemplateObj.SENDDOCTYPE;
                tmpStrcbxGrade               = TypeTemplateObj.GRADED;
                tmpStrcbxProritity           = TypeTemplateObj.PRIORITIES;
                this.cbxDocType.SelectedItem = TypeTemplateObj.SENDDOCTYPE;
                //this.cbxGrade.SelectedItem = TypeTemplateObj.GRADED;
                //this.cbxProritity.SelectedItem = TypeTemplateObj.PRIORITIES;

                if (!string.IsNullOrEmpty(TypeTemplateObj.GRADED.ToString()))
                {
                    foreach (T_SYS_DICTIONARY Region in cbxGrade.Items)
                    {
                        if (Region.DICTIONARYNAME == tmpStrcbxGrade)
                        {
                            cbxGrade.SelectedItem = Region;
                            break;
                        }
                    }
                }
                if (!string.IsNullOrEmpty(TypeTemplateObj.PRIORITIES.ToString()))
                {
                    foreach (T_SYS_DICTIONARY Region in cbxProritity.Items)
                    {
                        if (Region.DICTIONARYNAME == tmpStrcbxProritity)
                        {
                            cbxProritity.SelectedItem = Region;
                            break;
                        }
                    }
                }
            }
        }
Exemple #3
0
        void MeetingType_GetMeetingTypeSingleInfoByIdCompleted(object sender, GetMeetingTypeSingleInfoByIdCompletedEventArgs e)
        {
            T_OA_MEETINGTYPE TypeTable = e.Result;

            if (TypeTable != null)
            {
                if (!string.IsNullOrEmpty(TypeTable.MEETINGTYPE))
                {
                    tbxMeetingType.Text = TypeTable.MEETINGTYPE;
                }
                if (!string.IsNullOrEmpty(TypeTable.REMARK))
                {
                    tbxDemo.Text = TypeTable.REMARK;
                }
                //TypeT = TypeTable;
                tmpTypeT = TypeTable;
                if (!string.IsNullOrEmpty(TypeTable.CONVENERNAME))
                {
                    this.txtConvener.Text = TypeTable.CONVENERNAME;
                }
                StrConverID            = TypeTable.CONVENER;
                this.txtCycle.Text     = TypeTable.CYCLE.ToString();
                this.txtRemindDay.Text = TypeTable.REMINDDAY.ToString();
                //txtContent.RichTextBoxContext = TypeTable.CONTENT;
                publicClient.GetContentAsync(TypeTable.MEETINGTYPEID);
                if (TypeTable.ISAUTO == "1")
                {
                    this.rbtIsAutoyes.IsChecked = true;
                }
                else
                {
                    this.rbtIsAutono.IsChecked = true;
                    this.LayoutRoot.RowDefinitions[2].Height = new GridLength(0);
                }
            }
        }
Exemple #4
0
        //private SmtOACommonOfficeClient SendDocClient = new SmtOACommonOfficeClient();

        void SendDocClient_GetSendDocSingleInfoByIdCompleted(object sender, GetSendDocSingleInfoByIdCompletedEventArgs e)
        {
            loadbar.Stop();
            //RefreshUI(RefreshedTypes.HideProgressBar);//停止进度圈
            if (!e.Cancelled)
            {
                if (e.Error == null)
                {
                    if (e.Result != null)
                    {
                        senddoc = e.Result;
                        publicClient.GetContentAsync(senddoc.SENDDOCID);
                        this.tbltitle.Text = string.IsNullOrEmpty(senddoc.SENDDOCTITLE) ? "":senddoc.SENDDOCTITLE;
                        this.tblsend.Text  = string.IsNullOrEmpty(senddoc.SEND) ? "":senddoc.SEND;
                        this.tblcopy.Text  = string.IsNullOrEmpty(senddoc.CC) ? "":senddoc.CC;
                        //tblcontent.Document = senddoc.CONTENT;
                        //this.tbldepartment.Text = senddoc.DEPARTID;
                        SelectDocType = senddoc.T_OA_SENDDOCTYPE;
                        if (SelectDocType != null)
                        {
                            this.tbldoctype.Text = SelectDocType.SENDDOCTYPE;
                        }
                        this.tblprioritity.Text = string.IsNullOrEmpty(senddoc.PRIORITIES) ? "":senddoc.PRIORITIES;
                        this.tblgrade.Text      = string.IsNullOrEmpty(senddoc.GRADED) ? "":senddoc.GRADED;
                        tblKeyWord.Text         = string.IsNullOrEmpty(senddoc.KEYWORDS) ? "":senddoc.KEYWORDS;
                        if (string.IsNullOrEmpty(DocNum))
                        {
                            this.tblnum.Text = senddoc.NUM;
                        }
                        else
                        {
                            this.tblnum.Text = DocNum;
                        }
                        this.tblcontenttitle.Text = senddoc.SENDDOCTITLE;

                        GetDepartmentName(senddoc.DEPARTID);
                        string StrState = "";
                        string StrSave  = "";
                        tmpStrcbxGrade     = senddoc.GRADED;
                        tmpStrcbxProritity = senddoc.PRIORITIES;
                        //if (!ctrFile._files.HasAccessory)
                        //{
                        //    SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 16);
                        //}
                        if (senddoc.ISREDDOC == "0")
                        {
                            SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 6);
                            SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 7);
                            SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 8);
                        }
                        if (senddoc.CREATEDATE != null)
                        {
                            //tbladddate.Text = System.Convert.ToDateTime(senddoc.PUBLISHDATE).ToShortDateString() + " " + System.Convert.ToDateTime(senddoc.PUBLISHDATE).ToShortTimeString();
                            tbladddate.Text = System.Convert.ToDateTime(senddoc.CREATEDATE).ToShortDateString() + " " + System.Convert.ToDateTime(senddoc.CREATEDATE).ToShortTimeString();
                        }
                        if (string.IsNullOrEmpty(DocPublishDate))
                        {
                            this.tblPublishDate.Text = DocPublishDate;
                        }
                        else
                        {
                            if (senddoc.PUBLISHDATE != null)
                            {
                                this.tblPublishDate.Text = System.Convert.ToDateTime(senddoc.PUBLISHDATE).ToLongDateString() + "印发";
                                //StrPublish = dt.ToString("yyyymmdd");
                            }
                        }
                        if (senddoc.ISDISTRIBUTE == "1")
                        {
                            this.tblStatus.Text = "已发布";
                        }
                        else
                        {
                            this.tblStatus.Text = "未发布";
                        }
                        if (!string.IsNullOrEmpty(senddoc.OWNERNAME))
                        {
                            tbladduser.Text = senddoc.OWNERNAME;
                        }

                        //ctrFile.IsEnabled = false;
                    }
                }
                else
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.ToString());
                    return;
                }
            }
        }