public void Show(string classId, string masterRef) { currentClassId.Text = classId; currentMasterRef.Text = masterRef; Ext.Net.ParameterCollection col = new Ext.Net.ParameterCollection(); col.Add(new Ext.Net.Parameter() { Name = "ClassId", Value = classId }); col.Add(new Ext.Net.Parameter() { Name = "PrimaryKey", Value = masterRef }); //transactionLogStore.Reload(col); TimeVariationHistoryStore.Reload(col); TimeVariationHistoryWindow.Show(); }
protected void TimeVariationHistory_RefreshData(object sender, StoreReadDataEventArgs e) { List <Ext.Net.Parameter> l = e.Parameters.ToList <Ext.Net.Parameter>(); TimeVariationHistoryListRequest req = new TimeVariationHistoryListRequest(); req.classId = l[0].Value; req.masterRef = l[1].Value; req.userId = "0"; req.type = "0"; ListResponse <TimeVariationHistory> resp = _systemService.ChildGetAll <TimeVariationHistory>(req); if (!resp.Success) { Common.errorMessage(resp); return; } resp.Items.ForEach(x => x.data = x.data.Replace("{", string.Empty).Replace("\",", string.Empty).Replace(",", Environment.NewLine)); TimeVariationHistoryStore.DataSource = resp.Items; TimeVariationHistoryStore.DataBind(); }