//煤层管理 private void mniMCGL_ItemClick(object sender, ItemClickEventArgs e) { var commonManagementForm = new CommonManagement(5, 0); if (DialogResult.OK == commonManagementForm.ShowDialog()) { } }
public void CreateRegisty(string paccion, string ptipo, string phora) { var commonManager = new CommonManagement(); Common common = new Common() { Action = paccion, Type = ptipo, Date = phora }; commonManager.Create(common); }
/// <summary> /// 煤层信息添加管理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAddCoalSeams_Click(object sender, EventArgs e) { var commonManagementForm = new CommonManagement(5, 0); if (DialogResult.OK == commonManagementForm.ShowDialog()) { // 绑定煤层名称信息 DataBindUtil.LoadCoalSeamsName(cboCoalSeams); } }
public IHttpActionResult Get() { var commonManager = new CommonManagement(); apiResponse = new ApiResponse(); List <Common> commons = commonManager.RetrieveAll(); apiResponse.Data = commons; return(Ok(apiResponse)); }
/// <summary> /// 水平名称Button /// </summary> /// <params name="sender"></params> /// <params name="e"></params> 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.id); } else { Alert.AlertMsg("请先选择所在矿井名称!"); } }
//煤层管理 private void mniMCGL_ItemClick(object sender, ItemClickEventArgs e) { var commonManagementForm = new CommonManagement(5, 0); if (DialogResult.OK == commonManagementForm.ShowDialog()) { } }
/// <summary> /// 矿井名称Button /// </summary> /// <params name="sender"></params> /// <params name="e"></params> private void btnMineName_Click(object sender, EventArgs e) { var commonManagement = new CommonManagement(1, 999); if (DialogResult.OK == commonManagement.ShowDialog()) { } DataBindUtil.LoadMineName(lstMineName); }
/// <summary> /// 工作面名称Button /// </summary> /// <params name="sender"></params> /// <params name="e"></params> 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.id); } else { Alert.AlertMsg("请先选择所在采区名称!"); } }
/// <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("请先选择所在采区名称!"); } }
/// <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("请先选择所在水平名称!"); } }
/// <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(); } }
/// <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("请先选择所在矿井名称!"); } }