Ejemplo n.º 1
0
        public PartyMemberPage()
        {
            InitializeComponent();
            _gpTreeData = (TreeViewData)gpTree.DataContext;

            CmbModel model = cmbSex.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);

            model = cmbAgeRange.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsAgeRange);

            model = cmbDyType.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsDyType);

            btnSearch.Click += (o, e) =>
            {
                Search();
            };
            btnAll.Click += (o, e) =>
            {
                Search(true);
            };
        }
Ejemplo n.º 2
0
        public FirstSecretaryPage()
        {
            InitializeComponent();

            CmbModel model = cmbSex.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbAgeRange.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsAgeRange);

            model = cmbNation.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsNation);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);

            model = cmbType.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsDysjType);

            _gpTreeData = (TreeViewData)gpTree.DataContext;

            btnSearch.Click += (o, e) =>
            {
                Search();
            };

            btnAll.Click += (o, e) =>
            {
                Search(true);
            };
        }
Ejemplo n.º 3
0
        public CollegeStuOfficerPage()
        {
            InitializeComponent();

            CmbModel model = cmbSex.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbNation.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsNation);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);

            _gpTreeData = (TreeViewData)gpTree.DataContext;

            btnSearch.Click += (o, e) =>
            {
                Search();
            };
            btnAll.Click += (o, e) =>
            {
                Search(true);
            };
        }
Ejemplo n.º 4
0
        public EvaluateScorePage()
        {
            InitializeComponent();

            CmbModel model = cmbSeason.DataContext as CmbModel;

            model.Bind(EvaluationContext.seasons);

            model = cmbMonth.DataContext as CmbModel;
            model.Bind(EvaluationContext.months);
        }
Ejemplo n.º 5
0
        public EvaluateProjectPage()
        {
            InitializeComponent();

            _gpTreeData = (TreeViewData)gpTree.DataContext;
            _model      = this.DataContext as EvaluateProject;

            CmbModel m = cmbPartyType.DataContext as CmbModel;

            m.Bind(SysContext.CmbItemsPartyType);
            m = cmbTimeType.DataContext as CmbModel;
            m.Bind(SysContext.CmbItemsTimeType);
        }
Ejemplo n.º 6
0
        public TaskDispatchPage()
        {
            InitializeComponent();

            CmbModel model = cmbTaskPriority.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.task_priority);

            model = cmbTaskState.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.task_state);

            model = cmbTaskCompleteState.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.task_complete_state);
        }
Ejemplo n.º 7
0
        private DetailNoticeWindow()
        {
            InitializeComponent();


            CmbModel model = cmbNoticeType.DataContext as CmbModel;

            model.Bind(DailyContext.notice_types);

            model = cmbNoticeUrgency.DataContext as CmbModel;
            model.Bind(DailyContext.notice_urgency);

            model = cmbNoticeNeedReply.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsYesNo);
        }
        public DetailFirstSecretaryWindow()
        {
            InitializeComponent();


            CmbModel model = cmbSex.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbNation.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsNation);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);

            ctlImg.ImgFile = "pack://application:,,,/Biz.PartyBuilding.YS.Client;component/Resources/第一书记.jpg";
        }
        private DetailVillageCadresWindow()
        {
            InitializeComponent();


            CmbModel model = cmbSex.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbNation.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsNation);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);

            ctlImg.ImgFile = "pack://application:,,,/Biz.PartyBuilding.YS.Client;component/Resources/村干部.jpg";
        }
Ejemplo n.º 10
0
        public PartyActRecordPage()
        {
            InitializeComponent();

            CmbModel model = cmbActType.DataContext as CmbModel;

            model.Bind(DailyContext.party_act_types);
        }
Ejemplo n.º 11
0
        public InfoReleasePage()
        {
            InitializeComponent();

            CmbModel model = cmbInfoState.DataContext as CmbModel;

            model.Bind(DailyContext.notice_state);
        }
Ejemplo n.º 12
0
        private DetailTaskWindow()
        {
            InitializeComponent();

            _model = this.DataContext as TaskModel;

            CmbModel md = cmbPriority.DataContext as CmbModel;

            md.Bind(DailyContext.notice_urgency);
        }
Ejemplo n.º 13
0
        public TaskReceivePage()
        {
            InitializeComponent();

            CmbModel model = cmbTaskPriority.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.task_priority);

            model = cmbTaskCompleteState.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.task_complete_state);

            btnAll.Click += (o, e) =>
            {
                Search();
            };
            btnSearch.Click += (o, e) =>
            {
                Search(false);
            };
        }
Ejemplo n.º 14
0
        private DetailOrg2NewWindow()
        {
            InitializeComponent();


            CmbModel model = cmbIsEstablish.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsYesNo);

            model = cmbEstablishType.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsEstablishType);

            model = cmbHasActPlace.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsYesNo);

            model = cmbSex.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);
        }
Ejemplo n.º 15
0
        public DetailPartyMemWindow()
        {
            InitializeComponent();


            CmbModel model = cmbType.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsDyType);

            model = cmbSex.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsSex);

            model = cmbNation.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsNation);

            model = cmbDnzw.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsDnzw);

            model = cmbXL.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsXL);

            model = cmbNowGzgw.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsNowGzgw);

            ctlImg.ImgFile = "pack://application:,,,/Biz.PartyBuilding.YS.Client;component/Resources/党员.jpg";
        }
Ejemplo n.º 16
0
        /// <summary>
        /// 设置ComboBox数据源(解析枚举)
        /// </summary>
        /// <param name="cmb">ComboBox控件</param>
        /// <param name="dictType">枚举类型</param>
        /// <param name="selectedTypeCode">设置要选中的子项</param>
        /// <param name="setSelect">是否设置选中项</param>
        /// <param name="needBlankItem">是否需要一个空项</param>
        public static void SetEnumCmbSource <TEnum>(ComboBox cmb, string selectedTypeCode = "", bool setSelect = true, bool needBlankItem = false)
        {
            if (cmb == null)
            {
                return;
            }

            var      dicts = GetEnumCmbSource <TEnum>();
            CmbModel model = new CmbModel();

            model.Bind(dicts, selectedTypeCode, setSelect, needBlankItem);
            cmb.DataContext = model;
        }
Ejemplo n.º 17
0
        public ActivityPlacePage()
        {
            InitializeComponent();

            _gpTreeData = (TreeViewData)gpTree.DataContext;

            CmbModel model = cmbFloorArea.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsAreaRange);
            model = cmbCourtyardArea.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsAreaRange);

            btnSearch.Click += (o, e) =>
            {
                GetAreas(false);
            };

            btnAll.Click += (o, e) =>
            {
                GetAreas();
            };
        }
Ejemplo n.º 18
0
        public Org2NewPage()
        {
            InitializeComponent();

            CmbModel model = cmbIsEstablish.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsYesNo);

            model = cmbEstablishType.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsEstablishType);

            model = cmbHasActPlace.DataContext as CmbModel;
            model.Bind(PartyBuildingContext.CmbItemsYesNo);

            btnSearch.Click += (o, e) =>
            {
                SearchCmd.Execute(null);
            };

            btnAll.Click += (o, e) =>
            {
                dg.ItemsSource = PartyBuildingContext.org2news;
            };
        }
Ejemplo n.º 19
0
        public PartyMemDuesPage()
        {
            InitializeComponent();

            _gpTreeData = (TreeViewData)gpTree.DataContext;

            CmbModel model = cmbDfScale.DataContext as CmbModel;

            model.Bind(PartyBuildingContext.CmbItemsDfZxbz);


            btnAll.Click += (o, e) =>
            {
                Search(true);
            };

            btnSearch.Click += (o, e) =>
            {
                Search();
            };
        }
Ejemplo n.º 20
0
        public NoticePage()
        {
            InitializeComponent();

            CmbModel model = cmbNoticePriority_Sent.DataContext as CmbModel;

            model.Bind(DailyContext.notice_urgency);

            model = cmbNoticeState_Sent.DataContext as CmbModel;
            model.Bind(DailyContext.notice_state);

            model = cmbNoticeType_Sent.DataContext as CmbModel;
            model.Bind(DailyContext.notice_types);

            model = cmbNoticePriority_Rec.DataContext as CmbModel;
            model.Bind(DailyContext.notice_urgency);

            model = cmbNoticeType_Rec.DataContext as CmbModel;
            model.Bind(DailyContext.notice_types);

            model = cmbNotice_IsReplied.DataContext as CmbModel;
            model.Bind(DailyContext.CmbItemsYesNo);
        }