Ejemplo n.º 1
0
        public SettledProductsQuery(int?settleSysNo, int?stockSysNo, string stockID, int?vendorSysNo, string vendorName, List <ConsignSettlementItemInfoVM> itemVM)
        {
            InitializeComponent();
            queryVM        = new ConsignQueryVM();
            listProductsVM = new List <ConsignSettlementItemInfoVM>();
            OldItemVM      = new List <ConsignSettlementItemInfoVM>();

            this.SettleSysNo         = settleSysNo;
            queryVM.StockSysNo       = stockSysNo;
            queryVM.VendorSysNo      = vendorSysNo;
            queryVM.VendorName       = vendorName;
            OldItemVM                = itemVM;
            this.txtVendorName.Text  = vendorName;
            this.txtVendorSysNo.Text = vendorSysNo.Value.ToString();
            this.Loaded             += new RoutedEventHandler(SettledProductsQuery_Loaded);
        }
Ejemplo n.º 2
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            queryVM       = new ConsignQueryVM();
            serviceFacade = new ConsignSettlementFacade(this);
            queryFilter   = new ConsignSettleQueryFilter()
            {
                PageInfo = new QueryFilter.Common.PagingInfo()
            };

            LoadComboBoxData();
            this.DataContext = queryVM;
            base.OnPageLoad(sender, e);
            SetAccessControl();

            //if (this.Request.Param != null && this.Request.Param != string.Empty)
            //{
            //    queryFilter.VendorSysNo = int.Parse(this.Request.Param);
            //    btnSearch_Click(null, null);
            //}
        }