/// <summary> /// TGSs the refresh. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <returns></returns> protected void TgsRefresh(object sender, StoreRefreshDataEventArgs e) { DataTable data = tgsPproperty.GetEndStationInfo(this.CmdKskkid.SelectedItem.Value); StoreEndStation.DataSource = data; StoreEndStation.DataBind(); }
public void BindEndkk(string endKk) { try { if (Session["dataTable"] != null) { DataTable table = (DataTable)Session["dataTable"]; System.Data.DataView dv = new System.Data.DataView(table); dv.RowFilter = "col1=" + endKk; StoreEndStation.DataSource = dv; StoreEndStation.DataBind(); } } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("PeccancyAreaSetting.aspx-BindEndkk", ex.Message + ";" + ex.StackTrace, "BindEndkk has an exception"); } }
protected void ButResetClick(object sender, DirectEventArgs e) { try { CmdKskkid.Reset(); CmdJskkid.Reset(); DataTable table = new DataTable(); table.Columns.Add("col2", typeof(String)); table.Columns.Add("col11", typeof(String)); StoreEndStation.DataSource = table; StoreEndStation.DataBind(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("PeccancyAreaSetting.aspx-ButResetClick", ex.Message + ";" + ex.StackTrace, "ButResetClick has an exception"); } }