Example #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            settleQueryVM = new SettleQueryVM();

            settleFacade = new SettleFacade(this);

            queryRequest = new ECCentral.QueryFilter.PO.SettleQueryFilter();

            BindComboBoxData();
            this.DataContext = settleQueryVM;
            SetAccessControl();
        }
Example #2
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            if (ValidationManager.Validate(this.StackPanelCondition))
            {
                int sysno = 0;
                if (!string.IsNullOrEmpty(settleQueryVM.SettleSysNo) && !int.TryParse(settleQueryVM.SettleSysNo, out sysno))
                {
                    Window.Alert("结算单编号输入有误");
                    settleQueryVM.SettleSysNo = string.Empty;
                    return;
                }

                if (int.TryParse(settleQueryVM.SettleSysNo, out sysno) && sysno <= 0)
                {
                    Window.Alert("结算单编号输入有误");
                    settleQueryVM.SettleSysNo = string.Empty;
                    return;
                }

                this.queryRequest = EntityConverter <SettleQueryVM, ECCentral.QueryFilter.PO.SettleQueryFilter> .Convert(settleQueryVM);

                QueryResultGrid.Bind();
            }
        }