Beispiel #1
0
        private void 返修ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (CureentCt == null)
            {
                return;
            }
            DoubleClickButton bt     = (DoubleClickButton)CureentCt;
            int             recordid = int.Parse(bt.Name);
            frmAddHourReser fdt      = new frmAddHourReser(recordid);

            if (fdt.ShowDialog() == DialogResult.OK)
            {
                刷新ToolStripMenuItem_Click(null, null);
            }
        }
Beispiel #2
0
 private void 返修ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CureentCt != null)
     {
         int recordid           = int.Parse(CureentCt.Name);
         DoubleClickButton bt   = (DoubleClickButton)CureentCt;
         string[]          strs = bt.ImageKey.Split(new Char[] { ',' });
         if (strs.Length > 1)
         {
             if (strs[1] == "完工" || strs[1] == "洗车")
             {
                 frmAddHourReser fdt = new frmAddHourReser(recordid);
                 if (fdt.ShowDialog() == DialogResult.OK)
                 {
                     刷新ToolStripMenuItem_Click(null, null);
                 }
             }
             else
             {
                 MessageBox.Show("只能在“完工”和“洗车”状态才能返修!");
             }
         }
     }
 }