| | |
| | | <HintPath>..\OCX\Interop.gregn6Lib.dll</HintPath> |
| | | <EmbedInteropTypes>True</EmbedInteropTypes> |
| | | </Reference> |
| | | <Reference Include="Microsoft.VisualBasic" /> |
| | | <Reference Include="NPOI, Version=2.1.3.1, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>..\OCX\NPOI.dll</HintPath> |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using Microsoft.VisualBasic; |
| | | |
| | | namespace WarM.æ¡ç æå° |
| | | { |
| | |
| | | { |
| | | if (grdMain.SelectedRows != null && grdMain.SelectedRows.Count==1) |
| | | { |
| | | if (MessageBox.Show("ç¡®å®è¦å é¤ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | //if (MessageBox.Show("ç¡®å®è¦å é¤ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | //{ |
| | | // return; |
| | | //} |
| | | //if (MessageBox.Show("å é¤åå°ä¸å¯æ¢å¤ï¼ç¡®å®è¦ç»§ç»æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | //{ |
| | | // return; |
| | | //} |
| | | |
| | | string pwd = Interaction.InputBox("请è¾å
¥å¯ç ", "å é¤ç¡®è®¤ï¼", "", 100, 100); |
| | | |
| | | //ç¹å»åæ¶ |
| | | if(pwd == "") |
| | | { |
| | | return; |
| | | } |
| | | if (MessageBox.Show("å é¤åå°ä¸å¯æ¢å¤ï¼ç¡®å®è¦ç»§ç»æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel) |
| | | |
| | | if(pwd != "123456") |
| | | { |
| | | MessageBox.Show("å¯ç é误ï¼"); |
| | | return; |
| | | } |
| | | |
| | | Delete(); |
| | | } |
| | | else |