Exemplo n.º 1
0
        /// <summary>
        /// 关联监测点窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <returns></returns>
        protected void btnAddStation_Click(object sender, DirectEventArgs e)
        {
            try
            {
                RowSelectionModel sm = this.GridKeyRoad.SelectionModel.Primary as RowSelectionModel;
                //string Id = HideRoad.Value as string;

                if (sm.SelectedRow != null)
                {
                    GridQueryStation.RemoveAll();
                    GridBindStation.RemoveAll();
                    StoreStationType.DataSource = tgsPproperty.GetStationTypeInfo();
                    StoreStationType.DataBind();
                    StoreBindStation.DataSource = new DataTable();
                    StoreBindStation.DataSource = dtBind;
                    StoreBindStation.DataBind();
                    TxtStationName.Reset();
                    CmbStationType.Reset();
                    StoreQueryStation.DataSource = new DataTable();
                    StoreQueryStation.DataBind();
                    Window4.Show();
                }
                else
                {
                    Notice(GetLangStr("KeyRoadManager48", "信息提示"), GetLangStr("KeyRoadManager49", "请选择道路信息!"));
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("KeyRoadManager.aspx-btnAddStation_Click", ex.Message + ";" + ex.StackTrace, "btnAddStation_Click has an exception");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 重置事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// <returns></returns>
 protected void ButResetClick(object sender, DirectEventArgs e)
 {
     TxtStationName.Reset();
     CmbStationType.Reset();
 }