Ejemplo n.º 1
0
        /// <summary>
        /// 矿井名称选择事件
        /// </summary>
        /// <params name="sender"></params>
        /// <params name="e"></params>
        private void lstMineName_MouseUp(object sender, MouseEventArgs e)
        {
            // 矿井编号
            int iMineId = Convert.ToInt32(this.lstMineName.SelectedValue);

            _iMineId = iMineId;

            // 获取水平信息
            DataBindUtil.LoadHorizontalName(lstHorizontalName, iMineId);
        }
Ejemplo n.º 2
0
        private void lstMineName_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (lstMineName.SelectedItems.Count <= 0)
            {
                return;
            }
            var mine = (Mine)lstMineName.SelectedItem;

            DataBindUtil.LoadHorizontalName(lstHorizontalName, mine.MineId);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 加载水平信息
        /// </summary>
        private void loadHorizontalName()
        {
            this.lstHorizontalName.DataSource  = null;
            this.lstMiningAreaName.DataSource  = null;
            this.lstWorkingFaceName.DataSource = null;

            if (this.lstMineName.SelectedItems.Count > 0)
            {
                //MessageBox.Show("矿井编号:" + this.lstMineName.SelectedValue.ToString());

                // 矿井编号
                int iMineId = Convert.ToInt32(this.lstMineName.SelectedValue);
                _iMineId = iMineId;

                DataBindUtil.LoadHorizontalName(lstHorizontalName, iMineId);
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 水平名称Button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnHorizontalName_Click(object sender, EventArgs e)
 {
     if (lstMineName.SelectedItems.Count > 0)
     {
         var commonManagement = new CommonManagement(2, Convert.ToInt32(lstMineName.SelectedValue));
         if (DialogResult.OK == commonManagement.ShowDialog())
         {
         }
         if (lstMineName.SelectedItems.Count <= 0)
         {
             return;
         }
         var mine = (Mine)lstMineName.SelectedItem;
         DataBindUtil.LoadHorizontalName(lstHorizontalName, mine.MineId);
     }
     else
     {
         Alert.alert("请先选择所在矿井名称!");
     }
 }