예제 #1
0
        /// <summary>
        /// 矿井名称Button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnMineName_Click(object sender, EventArgs e)
        {
            var commonManagement = new CommonManagement(1, 999);

            if (DialogResult.OK == commonManagement.ShowDialog())
            {
            }
            DataBindUtil.LoadMineName(lstMineName);
        }
예제 #2
0
        /// <summary>
        /// 矿井名称Button
        /// </summary>
        /// <params name="sender"></params>
        /// <params name="e"></params>
        private void btnMineName_Click(object sender, EventArgs e)
        {
            CommonManagement commonManagement = new CommonManagement(1, 999);

            if (DialogResult.OK == commonManagement.ShowDialog())
            {
                // 绑定矿井信息
                loadMineName();
            }
        }
예제 #3
0
 /// <summary>
 /// 工作面名称Button
 /// </summary>
 /// <params name="sender"></params>
 /// <params name="e"></params>
 private void btnWorkingFaceName_Click(object sender, EventArgs e)
 {
     if (this.lstMiningAreaName.SelectedItems.Count > 0)
     {
         CommonManagement commonManagement = new CommonManagement(4, _iMiningAreaId);
         if (DialogResult.OK == commonManagement.ShowDialog())
         {
             // 绑定工作面信息
             loadWorkingFaceName();
         }
     }
     else
     {
         Alert.AlertMsg("请先选择所在采区名称!");
     }
 }
예제 #4
0
 /// <summary>
 /// 采区名称Button
 /// </summary>
 /// <params name="sender"></params>
 /// <params name="e"></params>
 private void btnMiningAreaName_Click(object sender, EventArgs e)
 {
     if (this.lstHorizontalName.SelectedItems.Count > 0)
     {
         CommonManagement commonManagement = new CommonManagement(3, _iHorizontalId);
         if (DialogResult.OK == commonManagement.ShowDialog())
         {
             // 绑定采区信息
             loadMiningAreaName();
         }
     }
     else
     {
         Alert.AlertMsg("请先选择所在水平名称!");
     }
 }
예제 #5
0
 /// <summary>
 /// 水平名称Button
 /// </summary>
 /// <params name="sender"></params>
 /// <params name="e"></params>
 private void btnHorizontalName_Click(object sender, EventArgs e)
 {
     if (this.lstMineName.SelectedItems.Count > 0)
     {
         CommonManagement commonManagement = new CommonManagement(2, _iMineId);
         if (DialogResult.OK == commonManagement.ShowDialog())
         {
             // 绑定水平信息
             loadHorizontalName();
         }
     }
     else
     {
         Alert.AlertMsg("请先选择所在矿井名称!");
     }
 }
예제 #6
0
 /// <summary>
 /// 采区名称Button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnMiningAreaName_Click(object sender, EventArgs e)
 {
     if (lstHorizontalName.SelectedItems.Count > 0)
     {
         var commonManagement = new CommonManagement(3, Convert.ToInt32(lstHorizontalName.SelectedValue));
         if (DialogResult.OK == commonManagement.ShowDialog())
         {
         }
         if (lstHorizontalName.SelectedItems.Count <= 0)
         {
             return;
         }
         var horizontal = (Horizontal)lstHorizontalName.SelectedItem;
         DataBindUtil.LoadMiningAreaName(lstMiningAreaName, horizontal.HorizontalId);
     }
     else
     {
         Alert.alert("请先选择所在水平名称!");
     }
 }
예제 #7
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("请先选择所在矿井名称!");
     }
 }
예제 #8
0
 /// <summary>
 /// 工作面名称Button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnWorkingFaceName_Click(object sender, EventArgs e)
 {
     if (lstMiningAreaName.SelectedItems.Count > 0)
     {
         var commonManagement = new CommonManagement(4, Convert.ToInt32(lstMiningAreaName.SelectedValue));
         if (DialogResult.OK == commonManagement.ShowDialog())
         {
         }
         if (lstMiningAreaName.SelectedItems.Count <= 0)
         {
             return;
         }
         var miningArea = (MiningArea)lstMiningAreaName.SelectedItem;
         DataBindUtil.LoadWorkingFaceName(lstWorkingFaceName, miningArea.MiningAreaId);
     }
     else
     {
         Alert.alert("请先选择所在采区名称!");
     }
 }