void PurchaseOrderEIMSInvoiceList_Loaded(object sender, RoutedEventArgs e)
 {
     this.Loaded  -= PurchaseOrderEIMSInvoiceList_Loaded;
     queryFilter   = new PurchaseOrderQueryFilter();
     serviceFacade = new PurchaseOrderFacade(CurrentPage);
     LoadAvailableEIMSList();
 }
Beispiel #2
0
 void SettledProductsRuleMaintain_Loaded(object sender, RoutedEventArgs e)
 {
     this.Loaded     -= new RoutedEventHandler(SettledProductsRuleMaintain_Loaded);
     serviceFacade    = new ConsignSettlementRulesFacade(CPApplication.Current.CurrentPage);
     poFacade         = new PurchaseOrderFacade(CPApplication.Current.CurrentPage);
     this.DataContext = editVM;
     ShowActionButtons();
 }
Beispiel #3
0
 public SettledProductsRuleNew()
 {
     InitializeComponent();
     viewVM        = new ConsignSettlementRulesInfoVM();
     serviceFacade = new ConsignSettlementRulesFacade(CPApplication.Current.CurrentPage);
     poFacade      = new PurchaseOrderFacade(CPApplication.Current.CurrentPage);
     this.ucProduct.ProductSelected += new EventHandler <Basic.Components.UserControls.ProductPicker.ProductSelectedEventArgs>(ucProduct_ProductSelected);
     this.Loaded += new RoutedEventHandler(SettledProductsRuleNew_Loaded);
 }
 void PurchaseOrderStatisticsQuery_Loaded(object sender, RoutedEventArgs e)
 {
     this.Loaded -= new RoutedEventHandler(PurchaseOrderStatisticsQuery_Loaded);
     this.facade  = new PurchaseOrderFacade(CPApplication.Current.CurrentPage);
     if (null != filter)
     {
         QueryResultGrid.Bind();
     }
 }
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     this.serviceFacade = new PurchaseOrderFacade(this);
     filter             = new PurchaseOrderQueryFilter();
     if (!string.IsNullOrEmpty(this.Request.Param))
     {
         string[] paramsArray = this.Request.Param.Split('|');
         queryVM.ProductSysNo = paramsArray[0];
         if (paramsArray.Length > 1)
         {
             queryVM.ProductID = paramsArray[1];
         }
         btnSearch_Click(null, null);
     }
     this.DataContext = queryVM;
 }
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            queryVM       = new ConsignSettlementRulesQueryVM();
            serviceFacade = new ConsignSettlementRulesFacade(this);
            poFacade      = new PurchaseOrderFacade(this);
            queryFilter   = new SettleRuleQueryFilter();

            InitializeComboBoxData();
            this.DataContext = queryVM;

            if (!string.IsNullOrEmpty(this.Request.Param))
            {
                //如果有传入的getSettleName参数:
                string getSettleName = this.Request.Param;
                queryVM.SettleRuleName = getSettleName;
                btnSearch_Click(null, null);
            }
        }
        public override void OnPageLoad(object sender, EventArgs e)
        {
            queryVM       = new PurchaseOrderQueryVM();
            serviceFacade = new PurchaseOrderFacade(this);
            vendorFacade  = new VendorFacade(this);

            queryFilter = new PurchaseOrderQueryFilter()
            {
                PageInfo = new QueryFilter.Common.PagingInfo()
            };
            queryRMAFilter = new PurchaseOrderQueryFilter()
            {
                PageInfo = new QueryFilter.Common.PagingInfo()
            };


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

            if (null != this.Request.QueryString)
            {
                if (this.Request.QueryString.Keys.Contains("ProductSysNo"))
                {
                    queryVM.ProductSysNo = this.Request.QueryString["ProductSysNo"];
                }
                if (this.Request.QueryString.Keys.Contains("QueryStatus"))
                {
                    queryVM.StatusList = this.Request.QueryString["QueryStatus"];
                }
                if (this.Request.QueryString.Keys.Contains("POSysNo"))
                {
                    POSysNo = this.Request.QueryString["POSysNo"];
                    queryVM.POSysNoExtention = POSysNo;
                }
                btnSearch_Click(null, null);
            }
            SetAccessControl();
        }
Beispiel #8
0
 void PurchaseOrderCheckReasonDetail_Loaded(object sender, RoutedEventArgs e)
 {
     this.Loaded  -= PurchaseOrderCheckReasonDetail_Loaded;
     serviceFacade = new PurchaseOrderFacade(CurrentPage);
     LoadCheckReasonMemo();
 }
Beispiel #9
0
 void PurchaseOrderEIMSRuleQuery_Loaded(object sender, RoutedEventArgs e)
 {
     this.Loaded       -= PurchaseOrderEIMSRuleQuery_Loaded;
     this.serviceFacade = new PurchaseOrderFacade(CurrentPage);
     LoadEIMSInfo();
 }
 void PurchaseOrderBatchInfoList_Loaded(object sender, RoutedEventArgs e)
 {
     this.Loaded  -= PurchaseOrderBatchInfoList_Loaded;
     serviceFacade = new PurchaseOrderFacade(CurrentPage);
     this.gridBatchNumberInfoList.Bind();
 }