Esempio n. 1
0
        protected void RowSelect(object sender, DirectEventArgs e)
        {
            int    SoftID   = Convert.ToInt32(e.ExtraParams["SoftID"]);
            var    softinfo = biService.GetSoft(SoftID);
            string plats    = "";

            if (softinfo != null)
            {
                softType.SelectedItem.Value = ((int)softinfo.SoftType).ToString();
                SoftName.Text  = softinfo.Name;
                SoftOutID.Text = softinfo.OutID.ToString();
                SoftPID.Text   = softinfo.ID.ToString();
                softinfo.Platforms.ForEach((i) => { plats += i.ToString() + ","; });
                plats          = plats.TrimEnd(',');
                SortNumID.Text = softinfo.SortIndex.ToString();
                onlyinternalselect.SelectedIndex = softinfo.OnlyInternal ? 0 : 1;
                softareatype.Text = softinfo.SoftAreaType.ToString();
            }
            e.ExtraParamsResponse.Add(new Ext.Net.Parameter("plats", plats));
        }