Exemplo n.º 1
0
 //初始化页面
 private void IniPageData()
 {
     m_commonFacade = new CommonDataFacade(CPApplication.Current.CurrentPage);
     m_queryRequest = new SOThirdPartSOSearchFilter();
     this.SearchCondition.DataContext = m_queryRequest;
     BindComboBoxData();
 }
Exemplo n.º 2
0
        private void InitData()
        {
            queryVM = new SalesStatisticsReportQueryVM();
            financialReportFacade = new FinancialReportFacade(this);
            var commonFacade = new CommonDataFacade(this);

            commonFacade.GetStockList(true, (obj, args) =>
            {
                queryVM.WarehouseNumberOption = new ObservableCollection <WarehouseNumberOption>();
                queryVM.WarehouseNumberOption.Insert(0, new WarehouseNumberOption {
                    Code = "-999", Name = ResCommonEnum.Enum_All, IsChecked = true
                });
                args.Result.ForEach(item =>
                {
                    if (item.StockID != null)
                    {
                        queryVM.WarehouseNumberOption.Add(new WarehouseNumberOption {
                            Code = item.SysNo.ToString(), Name = item.StockName, IsChecked = true
                        });
                    }
                });

                gridQueryBuilder.DataContext = lastQueryVM = queryVM;
                queryVM.WarehouseNumberOption.ForEach(option => option.PropertyChanged += OnStockCheck);
                SetStockNameText();
            });

            queryVM.SOStatusListOptions.ForEach(option => option.PropertyChanged += OnSOStatusCheck);
            SetSOStatusText();
        }
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            facade       = new ReportFacade(this);
            commonFacade = new CommonDataFacade(this);
            queryVM      = new OutBoundNotReturnQueryVM();
            string getQueryParams = Request.Param;

            //Victor Added ,接收PO查询页面传过来的查询条件参数:
            if (!string.IsNullOrEmpty(getQueryParams))
            {
                string[] getParamList = getQueryParams.Split('|');
                queryVM.SendDays    = getQueryParams.Split('|')[0].Trim();
                queryVM.HasResponse = getQueryParams.Split('|')[1].Trim() == "1" ? true : false;
                if (getParamList.Length > 2)
                {
                    queryVM.VendorSysNo = getQueryParams.Split('|')[2].Trim();
                }
                this.QueryFilter.DataContext = queryVM;
                Button_Search_Click(null, null);
            }
            else
            {
                this.QueryFilter.DataContext = queryVM;
            }
        }
Exemplo n.º 4
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            facade        = new RegisterFacade(this);
            commonFacade  = new CommonDataFacade(this);
            contactFacade = new CustomerContactFacade(this);

            string no = Request.Param;

            if (!string.IsNullOrEmpty(no))
            {
                int.TryParse(no, out sysNo);
            }
            else
            {
                this.DataContext = new RegisterVM();
            }
            GetRefundPayTypes();
            GetInspectionResultTypes();
            GetVendorRepairResultTypes();
            GetStocks();
            LoadRegister();

            this.ucRMATrackingInfo.BindData(sysNo);

            this.ucRevertInfo.Page = this;
        }
Exemplo n.º 5
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     m_commonFacade           = new CommonDataFacade(this);
     m_facade                 = new SOPendingFacade(this);
     spConditions.DataContext = m_query = new SOPendingQueryFilter();
     IniPageData();
 }
Exemplo n.º 6
0
        // Executes when the user navigates to this page.
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            m_commonDataFacade            = new CommonDataFacade(CPApplication.Current.CurrentPage);
            this.SeachBuilder.DataContext = m_queryRequest = new SOOutStock4FinanceQueryFilter();
            BindComboBoxData();
        }
Exemplo n.º 7
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     commFacade = new CommonDataFacade(this);
     facade     = new PrePayFacade(this);
     InitVM();
     this.DataContext = viewModel;
     base.OnPageLoad(sender, e);
 }
Exemplo n.º 8
0
 //初始化页面
 private void IniPageData()
 {
     this.dtpShippedOutTimeTo.SelectedDateTime = DateTime.Now;
     m_commonFacade = new CommonDataFacade(CPApplication.Current.CurrentPage);
     m_queryRequest = new SOPackageCoverSearchFilter();
     this.SearchCondition.DataContext = m_queryRequest;
     BindComboBoxData();
 }
Exemplo n.º 9
0
 void SOProcesser_Loaded(object sender, RoutedEventArgs e)
 {
     CommonDataFacade     = new CommonDataFacade(Page);
     SOInternalMemoFacade = new Facades.SOInternalMemoFacade(Page);
     SOQueryFacade        = new SOQueryFacade(Page);
     SOFacade             = new SOFacade(Page);
     LoadPage();
 }
Exemplo n.º 10
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     viewModel        = new CustomerQueryReqVM();
     commonFacade     = new CommonDataFacade(this);
     this.DataContext = viewModel;
     InitContral();
 }
Exemplo n.º 11
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            m_facade     = new SOComplainFacade(this);
            m_commFacade = new CommonDataFacade(this);
            BindData();

            btnSave.Visibility = AuthKeyControlMgr.GetVisibilityByRight(AuthKeyConst.SO_Complain_ComplainFull);
        }
Exemplo n.º 12
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     queryVM      = new RMAInventoryQueryVM();
     facade       = new ReportFacade(this);
     commonFacade = new CommonDataFacade(this);
     LoadComboBoxData();
     this.QueryFilter.DataContext = queryVM;
     base.OnPageLoad(sender, e);
 }
Exemplo n.º 13
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     m_commonFacade           = new CommonDataFacade(this);
     m_Facade                 = new SOInterceptFacade(this);
     m_QueryFacde             = new SOQueryFacade(this);
     spConditions.DataContext = m_QueryFilter = new SOInterceptQueryFilter();
     IniPageData();
 }
Exemplo n.º 14
0
        public void Init()
        {
            CommonDataFacade facade = new CommonDataFacade(this);

            AppSettingHelper.GetSetting("Customer", "AvtarImageBasePath", (obj, args) =>
            {
                viewModel.AvtarImgBasePath = args.Result;
            });
        }
Exemplo n.º 15
0
        private void AuditRefundQuery_Loaded(object sender, RoutedEventArgs e)
        {
            Loaded -= new RoutedEventHandler(AuditRefundQuery_Loaded);

            InitData();
            auditRefundFacade = new AuditRefundFacade(this);
            otherFacade       = new OtherDomainDataFacade(this);
            commonFacade      = new CommonDataFacade(this);
            LoadComboBoxData();
        }
Exemplo n.º 16
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     commFacade = new CommonDataFacade(this);
     facade     = new RefundRequestFacade(this);
     InitVM();
     this.DataContext = viewModel;
     base.OnPageLoad(sender, e);
     CheckRights();
     this.SeachBuilder.KeyDown += new KeyEventHandler(SeachBuilder_KeyDown);
 }
Exemplo n.º 17
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     commFacade = new CommonDataFacade(this);
     facade     = new ShipTypeSMSQueryFacade(this);
     InitVM();
     this.DataContext    = viewModel;
     viewModel.ChannelID = "0";
     base.OnPageLoad(sender, e);
     CheckRights();
 }
Exemplo n.º 18
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            this.Grid.DataContext = viewModel = new CustomerGiftQueryVM();
            _facade        = new CustomerGiftFacade(this);
            _facadeChannel = new CommonDataFacade(this);

            //绑定状态ComboBox
            this.cmbCustomerGiftStatus.ItemsSource = EnumConverter.GetKeyValuePairs <CustomerGiftStatus>(EnumConverter.EnumAppendItemType.All);
            CheckRights();
        }
Exemplo n.º 19
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            facade = new PayableFacade(this);
            VerifyPermission();
            commonFacade = new CommonDataFacade(this);
            LoadComboBoxData();

            queryVM = new PayableQueryVM();
            this.QueryBuilder.DataContext = lastQueryVM = queryVM;
            base.OnPageLoad(sender, e);
            SetControlStatus();
            cmbOrderType.SelectedIndex = 0;
        }
Exemplo n.º 20
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     commFacade       = new CommonDataFacade(this);
     fpCheckFacade    = new FPCheckFacade(this);
     this.DataContext = viewModel;
     base.OnPageLoad(sender, e);
     cbChannelSysNo.SelectedIndex = 0;
     gridFPMaster.Bind();
     if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Customer_FPCheck_Save))
     {
         this.ButtonSave.IsEnabled = false;
     }
 }
Exemplo n.º 21
0
        void UCStockSearch_Loaded(object sender, RoutedEventArgs e)
        {
            CommonDataFacade _facadeCommon = new CommonDataFacade(CPApplication.Current.CurrentPage);

            _facadeCommon.GetWebChannelList(true, (s, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                this.cmbWebChannelList.ItemsSource   = args.Result;
                this.cmbWebChannelList.SelectedIndex = 0;
            });
        }
Exemplo n.º 22
0
        private void LoadComboBoxData()
        {
            CommonDataFacade commonFacade = new CommonDataFacade(this);

            // 绑定分仓列表
            commonFacade.GetStockList(true, (obj, args) =>
            {
                this.queryVM.StockList = args.Result;
            });
            // 绑定配送日期范围
            CodeNamePairHelper.GetList(ConstValue.DomainName_Common, ConstValue.Key_TimeRange, CodeNamePairAppendItemType.Custom_All, (obj, args) =>
            {
                this.queryVM.DeliveryTimeRangeList = args.Result;
            });
            cmbChannel.SelectedIndex = 0;
        }
Exemplo n.º 23
0
        public override void OnPageLoad(object sender, System.EventArgs e)
        {
            base.OnPageLoad(sender, e);

            this.FilterVM = new RefundQueryReqVM();

            facade       = new RefundFacade(this);
            commonFacade = new CommonDataFacade(this);
            commonFacade.GetStockList(true, (obj, args) =>
            {
                this.FilterVM.Stocks = args.Result;

                this.ucFilter.DataContext = this.FilterVM;
            });
            SetAccessControl();
        }
Exemplo n.º 24
0
        // Executes when the user navigates to this page.
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            m_facade           = new SOComplainFacade(this);
            m_commonDataFacade = new CommonDataFacade(CPApplication.Current.CurrentPage);
            this.SearchCondition.DataContext = m_queryRequest = new ComplainQueryFilter();
            BindComboBoxData();

            #region 权限控件显示

            btnNew.Visibility          = AuthKeyControlMgr.GetVisibilityByRight(AuthKeyConst.SO_Complain_ComplainFull);
            btnAssign.Visibility       = AuthKeyControlMgr.GetVisibilityByRight(AuthKeyConst.SO_Complain_AssignComplainCase);
            btnCancelAssign.Visibility = AuthKeyControlMgr.GetVisibilityByRight(AuthKeyConst.SO_Complain_RecallAssignedComplainCase);

            #endregion
        }
        private void LoadComboBoxData()
        {
            CodeNamePairHelper.GetList("Customer", "DistributionServiceType", CodeNamePairAppendItemType.Select, (obj, args) =>
            {
                this.Combox_DTServiceType.ItemsSource   = args.Result;
                this.Combox_DTServiceType.SelectedIndex = 0;
            });
            CommonDataFacade commonDataFacade = new CommonDataFacade(this);

            commonDataFacade.GetShippingTypeList(true, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                this.Combox_ServiceObject.ItemsSource   = args.Result;
                this.Combox_ServiceObject.SelectedIndex = 0;
            });
        }
Exemplo n.º 26
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     queryVM      = new RegisterQueryVM();
     facade       = new RegisterFacade(this);
     commonFacade = new CommonDataFacade(this);
     LoadComboBoxData();
     this.QueryFilter.DataContext = queryVM;
     base.OnPageLoad(sender, e);
     if (!string.IsNullOrEmpty(this.Request.Param))
     {
         int ProductSysNo;
         if (int.TryParse(this.Request.QueryString["ProductSysNo"], out ProductSysNo))
         {
             queryVM.ProductSysNo = ProductSysNo;
             queryVM.ProductID    = this.Request.QueryString["ProductID"];
             this.DataGrid_ResultList.Bind();
         }
     }
 }
Exemplo n.º 27
0
        private void LoadListBoxData()
        {
            CommonDataFacade          commonDataFacade = new CommonDataFacade(this);
            OrderCheckItemQueryFilter queryFilter      = new OrderCheckItemQueryFilter();

            queryFilter.PagingInfo = new PagingInfo
            {
                PageSize  = int.MaxValue,
                PageIndex = 0,
                SortBy    = ""
            };
            queryFilter.ReferenceType = "ST";
            queryFilter.CompanyCode   = CPApplication.Current.CompanyCode;
            OrderCheckItemFacade facade = new OrderCheckItemFacade(this);

            facade.QueryOrderCheckItem(queryFilter, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                rightList = DynamicConverter <OrderCheckItemVM> .ConvertToVMList(args.Result.Rows);
                rightList = FindAll(rightList, x => x.SysNo.HasValue);

                ListBox_SelectedShippingTypeList.ItemsSource = rightList;

                commonDataFacade.GetShippingTypeList(true, (obj2, args2) =>
                {
                    leftList = args2.Result;
                    leftList = FindAll(leftList, x => x.SysNo.HasValue);

                    if (rightList != null && leftList != null)
                    {
                        foreach (OrderCheckItemVM p in rightList)
                        {
                            leftList.Remove(leftList.Where(x => x.SysNo.ToString() == p.ReferenceContent).FirstOrDefault());
                        }
                    }
                    ListBox_ShippingTypeList.ItemsSource = leftList;
                });
            });
        }
Exemplo n.º 28
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            this.FilterVM = new RequestQueryReqVM();
            facade        = new CommonDataFacade(this);
            requestFacade = new RequestFacade(this);

            requestFacade.GetAllReceiveUsers((obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                var list = args.Result;
                list.Insert(0, new BizEntity.Common.UserInfo {
                    SysNo = null, UserName = ResCommonEnum.Enum_All
                });
                this.FilterVM.ReceiveUsers = args.Result;

                requestFacade.GetAllConfirmUsers((obj1, args1) =>
                {
                    if (args1.FaultsHandle())
                    {
                        return;
                    }
                    var confirmlist = args1.Result;
                    confirmlist.Insert(0, new BizEntity.Common.UserInfo {
                        SysNo = null, UserName = ResCommonEnum.Enum_All
                    });
                    this.FilterVM.ConfirmUsers = args1.Result;

                    this.ucFilter.DataContext = this.FilterVM;
                    FilterVM.Status           = RMARequestStatus.WaitingAudit;
                });
            });


            SetAccessControl();
        }
Exemplo n.º 29
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            facade       = new RequestFacade(this);
            commonFacade = new CommonDataFacade(this);

            string no = Request.Param;

            if (!string.IsNullOrEmpty(no))
            {
                int.TryParse(no, out sysNo);
            }
            else
            {
                this.DataContext = new RequestVM();
            }

            LoadStocks();

            LoadRequest();
        }
Exemplo n.º 30
0
        private void StockSearch_Loaded(object sender, RoutedEventArgs e)
        {
            CommonDataFacade _facadeCommon = new CommonDataFacade(CPApplication.Current.CurrentPage);

            _facadeCommon.GetStockList(false, (_, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }

                var dataSource = EntityConverter <StockInfo, StockCheckBoxVM> .Convert(args.Result, (s, v) =>
                {
                    v.StockSysNo = s.SysNo.ToString();
                });
                if (dataSource != null)
                {
                    dataSource.ForEach(w => w.IsChecked = m_StockSysNoList.Contains(w.StockSysNo));
                }
                this.StockList.ItemsSource = dataSource;
            });
        }