Esempio n. 1
0
        protected virtual void lnkDetailDetails_Click(object sender, CommandEventArgs e)
        {
            NameValueCollection query = new NameValueCollection();
            DataListObject      list  = this.obj.DetailList;

            list.CurrentRow = int.Parse(e.CommandArgument.ToString());
            list.SelectRow(list.CurrentRow);
            query.Add("SalesOrderDetailId", this.obj.DetailList.SalesOrderDetailIdProperty.EditStringValue);
            query.Add(QuerySource, "lnkDetailDetails");
            NavigateTo(uclSalesOrderDetailView, query, ModePopup);
        }
Esempio n. 2
0
        public virtual void lnkDetailDetails_Command(IView tgtView, IView curView, int row)
        {
            NameValueCollection query    = lnkDetailDetails_Params(row);
            ViewModel           tgtModel = ServiceProvider.GetService <SalesOrderDetailViewModel>();

            if (NavigateTo(tgtModel, tgtView, query, this, curView))
            {
                DataListObject list = this.obj.DetailList;
                if (list != null)
                {
                    list.SelectRow(row);
                }
            }
        }