private static void clearTunnelTypeOfHChuan(int tunnelHChuanID) { TunnelHChuanEntity tunnelHChuanEntity = selectTunnelHChuan(tunnelHChuanID); if (tunnelHChuanEntity != null) { TunnelInfoBLL.clearTunnelType(tunnelHChuanEntity.TunnelID1); TunnelInfoBLL.clearTunnelType(tunnelHChuanEntity.TunnelID2); } }
public static void clearTunnelTypeOfHC(int tunnelHCID) { TunnelHCEntity tunnelHCEntity = selectTunnelHC(tunnelHCID); if (tunnelHCEntity != null) { TunnelInfoBLL.clearTunnelType(tunnelHCEntity.TunnelID_ZY); TunnelInfoBLL.clearTunnelType(tunnelHCEntity.TunnelID_FY); TunnelInfoBLL.clearTunnelType(tunnelHCEntity.TunnelID_KQY); } }
private void listBox_Browse_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { int index = listBox_Browse.IndexFromPoint(e.Location); if (index >= 0) { listBox_Browse.SelectedIndex = index; listBox_Browse.Items.RemoveAt(index); //实体赋值 if (this.Text == Const_GM.TUNNEL_HC_CHANGE) { string[] sArray = new string[10]; string strTunnelID = ""; if ((tmpTunnelHCEntity.TunnelID != "") && (tmpTunnelHCEntity.TunnelID != null)) { sArray = tmpTunnelHCEntity.TunnelID.Split(','); } int iIndex = 0; foreach (string i in sArray) { if (index != iIndex) { if ((strTunnelID != "") && (strTunnelID != null)) { strTunnelID += ","; } strTunnelID += i; //巷道实体赋值,用于下次巷道选择 tunnelEntity.TunnelID = Convert.ToInt16(i); tunnelEntity = TunnelInfoBLL.selectTunnelInfoByTunnelID(tunnelEntity.TunnelID); } else { int iTunnelID = Convert.ToInt16(i); TunnelInfoBLL.clearTunnelType(iTunnelID); } iIndex += 1; } tmpTunnelHCEntity.TunnelID = strTunnelID; } if (this.Text == Const_GM.TUNNEL_HC_ADD) { string[] sArray = new string[10]; string strTunnelID = ""; if ((tunnelHCEntity.TunnelID != "") && (tunnelHCEntity.TunnelID != null)) { sArray = tunnelHCEntity.TunnelID.Split(','); } int iIndex = 0; foreach (string i in sArray) { if (index != iIndex) { if ((strTunnelID != "") && (strTunnelID != null)) { strTunnelID += ","; } strTunnelID += i; //巷道实体赋值,用于下次巷道选择 tunnelEntity.TunnelID = Convert.ToInt16(i); tunnelEntity = TunnelInfoBLL.selectTunnelInfoByTunnelID(tunnelEntity.TunnelID); } iIndex += 1; } tunnelHCEntity.TunnelID = strTunnelID; } } } }