Example #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");
            }
        }
Example #2
0
 /// <summary>
 /// 查询监测点信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// <returns></returns>
 protected void TbutQueryClick(object sender, DirectEventArgs e)
 {
     try
     {
         StationDataBind(GetWhere());
         StoreBindStation.DataSource = new DataTable();
         StoreBindStation.DataSource = dtBind;
         StoreBindStation.DataBind();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("KeyRoadManager.aspx-TbutQueryClick", ex.Message + ";" + ex.StackTrace, "TbutQueryClick has an exception");
     }
 }
Example #3
0
        /// <summary>
        /// 部门树 节点 单击选中事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <returns></returns>
        protected void RowSelect(object sender, DirectEventArgs e)
        {
            try
            {
                RowSelectionModel sm = this.GridKeyRoad.SelectionModel.Primary as RowSelectionModel;
                sm.SelectedRows.Clear();
                string id = e.ExtraParams["id"];

                Session["DEPARTID"] = id;
                GetAllDlInfo(id);
                StoreStation.DataSource = new DataTable();     //清空绑定监测点
                StoreStation.DataBind();
                StoreBindStation.DataSource = new DataTable(); //清空点击关联监测点窗口中绑定的监测点
                StoreBindStation.DataBind();
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("KeyRoadManager.aspx-RowSelect", ex.Message + ";" + ex.StackTrace, "RowSelect has an exception");
            }
        }