Exemple #1
0
        private void btnChooseEIMS_Click(object sender, RoutedEventArgs e)
        {
            //设置返点信息:
            if (!this.newVM.VendorInfo.SysNo.HasValue)
            {
                Window.Alert(ResConsignNew.ErrorMsg_ReturnPoints);
                return;
            }
            ConsignSettlementEIMSView eimsView = new ConsignSettlementEIMSView(newVM);

            eimsView.Dialog = Window.ShowDialog(ResConsignNew.InfoMsg_PointSearchTitle, eimsView, (obj, args) =>
            {
                if (args.DialogResult == DialogResultType.OK && args.Data != null)
                {
                    ConsignSettlementEIMSInfo info = args.Data as ConsignSettlementEIMSInfo;
                    if (null != info)
                    {
                        this.newVM.EIMSInfo.ReturnPointName    = info.ReturnPointName;
                        this.newVM.EIMSInfo.ReturnPointSysNo   = info.ReturnPointSysNo;
                        this.newVM.EIMSInfo.RemnantReturnPoint = info.RemnantReturnPoint;
                        this.newVM.PM_ReturnPointSysNo         = info.ReturnPointSysNo;
                        //this.txtReturnPointName.Text = info.ReturnPointName;
                        //this.txtReturnPointSysNo.Text = info.ReturnPointSysNo.Value.ToString();
                        //this.txtRemainReturnPoint.Text = info.RemnantReturnPoint.Value.ToString();
                    }
                }
            }, new Size(700, 500));
        }
        private void btnChooseReturnPoint_Click(object sender, RoutedEventArgs e)
        {
            ConsignSettlementEIMSInfo getSelectedItem = this.EIMSQueryResultGrid.SelectedItem as ConsignSettlementEIMSInfo;

            if (null == getSelectedItem)
            {
                CurrentWindow.Alert(ResConsignMaintain.InfoMsg_ChooseOneReturnPoint);
                return;
            }
            Dialog.ResultArgs.Data         = getSelectedItem;
            Dialog.ResultArgs.DialogResult = DialogResultType.OK;
            Dialog.Close(true);
        }