コード例 #1
0
ファイル: DocTypeManagement.xaml.cs プロジェクト: jjg0519/OA
 void BumfClient_GetDocTypeInfosCompleted(object sender, GetDocTypeInfosCompletedEventArgs e)
 {
     //if (e.Result != null)
     //{
     //    SelectBox = Utility.FindChildControl<CheckBox>(DaGr, "SelectAll");
     //    List<T_OA_SENDDOCTYPE> infos = new List<T_OA_SENDDOCTYPE>(e.Result);
     //    dpGrid.PageSize = 20;
     //    PagedCollectionView pager = new PagedCollectionView(infos);
     //    DaGr.ItemsSource = pager;
     //    //DaGr.ItemsSource = infos;
     //}
 }
コード例 #2
0
        void SendDocClient_GetDocTypeInfosCompleted(object sender, GetDocTypeInfosCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    this.cbxdoctype.Items.Clear();
                    T_OA_SENDDOCTYPE doctype = new T_OA_SENDDOCTYPE();
                    doctype.SENDDOCTYPE = "请选择";
                    e.Result.Insert(0, doctype);

                    this.cbxdoctype.ItemsSource       = e.Result;
                    this.cbxdoctype.DisplayMemberPath = "SENDDOCTYPE";
                    this.cbxdoctype.SelectedIndex     = 0;
                }
            }
        }
コード例 #3
0
ファイル: DocTypeManagement.xaml.cs プロジェクト: JuRogn/OA
 void BumfClient_GetDocTypeInfosCompleted(object sender, GetDocTypeInfosCompletedEventArgs e)
 {
     //if (e.Result != null)
     //{
     //    SelectBox = Utility.FindChildControl<CheckBox>(DaGr, "SelectAll");
     //    List<T_OA_SENDDOCTYPE> infos = new List<T_OA_SENDDOCTYPE>(e.Result);
     //    dpGrid.PageSize = 20;
     //    PagedCollectionView pager = new PagedCollectionView(infos);
     //    DaGr.ItemsSource = pager;
     //    //DaGr.ItemsSource = infos;
     //}
 }
コード例 #4
0
        void SendDocClient_GetDocTypeInfosCompleted(object sender, GetDocTypeInfosCompletedEventArgs e)
        {
            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    this.cbxdoctype.Items.Clear();
                    T_OA_SENDDOCTYPE doctype = new T_OA_SENDDOCTYPE();
                    doctype.SENDDOCTYPE = "请选择";
                    e.Result.Insert(0, doctype);

                    this.cbxdoctype.ItemsSource = e.Result;
                    this.cbxdoctype.DisplayMemberPath = "SENDDOCTYPE";
                    this.cbxdoctype.SelectedIndex = 0;
                    
                }
            }
        }
コード例 #5
0
ファイル: CompanyDocForm.xaml.cs プロジェクト: JuRogn/OA
        void SendDocClient_GetDocTypeInfosCompleted(object sender, GetDocTypeInfosCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Result != null)
            {
               // this.cbxDocType.ItemsSource = e.Result;
                if (action == FormTypes.Edit || action == FormTypes.New || action == FormTypes.Resubmit)//如果为修改,新建,重新提交才隐藏,因为查看要看到原来的数据
                {
                    this.cbxDocType.ItemsSource = this.HideSendType(e.Result);
                }
                else
                {
                    this.cbxDocType.ItemsSource = e.Result;
                }
                this.cbxDocType.DisplayMemberPath = "SENDDOCTYPE";

                if (SelectDocType.SENDDOCTYPE != null)
                {
                    foreach (var item in cbxDocType.Items)
                    {
                        T_OA_SENDDOCTYPE dict = item as T_OA_SENDDOCTYPE;
                        if (dict != null)
                        {
                            if (dict.SENDDOCTYPE == SelectDocType.SENDDOCTYPE)
                            {

                                cbxDocType.SelectedItem = item;
                                break;
                            }
                        }
                    }

                }
                //else
                //{
                //    cbxDocType.SelectedIndex = 0;
                //}

            }
            //RefreshUI(RefreshedTypes.ProgressBar);
        }