protected void Page_Load(object sender, EventArgs e) { if (X.IsAjaxRequest) { return; } GridPanel1.Reload(); GridPanel2.Reload(); }
protected void HandleChangesTuDien(object sender, BeforeStoreChangedEventArgs e) { ChangeRecords <MathRule> mathRule = e.DataHandler.ObjectData <MathRule>(); XMLProcess xmlProcess = new XMLProcess(); foreach (var item in mathRule.Updated) { xmlProcess.UpdateTuDien(Server.MapPath(MathRuleXmlUrl), item); GridPanel2.UpdateCell(item.ColumnInDB, "MathStatus", "true"); if (Store3.UseIdConfirmation) { e.ConfirmationList.ConfirmRecord(item.ColumnInDB.ToString()); } hdfMathStatus.Text = hdfMathStatus.Text.Replace(item.ColumnInDB + ",", ""); } }
public void DoYes() { RowSelectionModel sm = this.GridPanel2.SelectionModel.Primary as RowSelectionModel; sm.SelectedRow.ToBuilder(); Hashtable hs = new Hashtable(); string Id = sm.SelectedRow.RecordID; int idx = sm.SelectedRow.RowIndex; hs.Add("codetype", Session["CodeId"] as string); hs.Add("oldcode", Id); if (systemManager.DelSysCode(hs) > 0) { Notice("信息提示", "删除成功"); GridPanel2.DeleteSelected(); } if (Session["CodeId"] != null) { GetData(Session["CodeId"] as string); } }