예제 #1
0
        private void PostSelect()
        {
            PostSelectDialog dlg = new PostSelectDialog();

            if (dlg.ShowDialog())
            {
                Model.CurDepartment    = dlg.SelectedOpp.Department;
                Model.CurOperatingPost = dlg.SelectedOpp;
            }
        }
예제 #2
0
        private void ShowOppSelectDialog()
        {
            if (SelectedPlan == null)
            {
                return;
            }
            PostSelectDialog dlg = new PostSelectDialog();

            if (SelectedPlan.Department != null)
            {
                dlg.IsDpFilterEditable = false;
                dlg.DpFilter           = SelectedPlan.Department;
            }
            if (dlg.ShowDialog())
            {
                SelectedPlan.OperatingPost = dlg.SelectedOpp;
            }
        }
예제 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.w = ((HRManagerClient.PostSelectDialog)(target));
                return;

            case 2:

            #line 40 "..\..\..\Content\PostSelectDialog - 复制.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SelectDp_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 43 "..\..\..\Content\PostSelectDialog - 复制.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ClearSelectedDp_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 58 "..\..\..\Content\PostSelectDialog - 复制.xaml"
                ((System.Windows.Controls.ListView)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListView_MouseDoubleClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }