Esempio n. 1
0
        //修改Header
        private void gridView1_RowUpdated(object sender, RowObjectEventArgs e)
        {
            SplashScreenManager.ShowDefaultWaitForm();
            RequestHeaderViewModel row = (RequestHeaderViewModel)this.gridView1.GetFocusedRow();

            _requestService.UpdateRequestHeader(row);
            SplashScreenManager.CloseDefaultWaitForm();
        }
        public async Task <RequestHeaderViewModel> FindAsync(int id)
        {
            var request = await requestRepo.GetFirstOrDefaultAsync(predicate : r => r.Id == id, include : r => r.Include(rr => rr.NewAffiliation).ThenInclude(x => x.CustomerProfile));

            RequestHeaderViewModel model = new RequestHeaderViewModel
            {
                aoCode          = "AO CODE",
                legalName       = request.NewAffiliation.CustomerProfile.legalName,
                ownership       = request.NewAffiliation.CustomerProfile.ownership,
                referenceNumber = request.TrackingNo,
                requestedDate   = request.CreatedDate.Value,
            };

            return(model);
        }
Esempio n. 3
0
        private void detailView_MasterRowExpanded(object sender, CustomMasterRowEventArgs e)
        {
            GridView gridView   = sender as GridView;
            GridView detailView = (GridView)gridView.GetDetailView(e.RowHandle, e.RelationIndex);

            if (detailView != null)
            {
                RequestHeaderViewModel model = (RequestHeaderViewModel)detailView.GetRow(e.RowHandle);

                detailView.OptionsBehavior.Editable = false;
                detailView.OptionsBehavior.ReadOnly = true;
            }

            SplashScreenManager.CloseDefaultWaitForm();
        }