ender, EventArgs e)
{. Close ();
} void dataGridView2_RowHeaderMouseClick (object sender, DataGridViewCellMouseEventArgs e)
{= 2; («так». CompareTo (dataGridView2 [3, e.RowIndex]. Value.ToString ()) == 0)
{
заменToolStripMenuItem.Visible=true;
спісатьToolStripMenuItem.Visible=true;
виходToolStripMenuItem.Visible=false;
} («так». CompareTo (dataGridView2 [4, e.RowIndex]. Value.ToString ()) == 0)
{
спісатьToolStripMenuItem.Visible=true;
заменToolStripMenuItem.Visible=false;
виходToolStripMenuItem.Visible=false;
} («так». CompareTo (dataGridView2 [5, e.RowIndex]. Value.ToString ()) == 0)
{
заменToolStripMenuItem.Visible=false;
спісатьToolStripMenuItem.Visible=false;
виходToolStripMenuItem.Visible=false;
} (D)
{
заменToolStripMenuItem.Visible=false;
спісатьToolStripMenuItem.Visible=true;
виходToolStripMenuItem.Visible=false;
} if («так». CompareTo (dataGridView2 [5, e.RowIndex]. Value.ToString ())!=0 && «». CompareTo (dataGridView2 [12 , e.RowIndex]. Value.ToString ())!=0)
{
спісатьToolStripMenuItem.Visible=true;
виходToolStripMenuItem.Visible=false;
} (D)
{
заменToolStripMenuItem.Visible=false;
спісатьToolStripMenuItem.Visible=true;
виходToolStripMenuItem.Visible=false;
} if («так». CompareTo (dataGridView2 [3, e.RowIndex]. Value.ToString ())!=0 && «». CompareTo (dataGridView2 [12 , e.RowIndex]. Value.ToString ()) == 0)
{
заменToolStripMenuItem.Visible=false;
виходToolStripMenuItem.Visible=true;
}=Convert.ToInt32 (dataGridView2 [0, e.RowIndex]. Value);
} void спісатьToolStripMenuItem_Click (object sender, EventArgs e)
{Comand=OC.CreateCommand (); tab=new DataTable ();. CommandText=«INSERT INTO " Writeoff " (" woCode " , " woDate " ) VALUES (0, (select to_date (SYSDATE, «dd-mm-rr») from dual)) »;. Load (Comand.ExecuteReader ());=new DataTable ();. CommandText =« UPDATE " Copy " SET " woCode " = (select max (" woCode " ) from " Writeoff " ) WHERE " Copy " . " cNumber " = (select to_number (« »+ cNumber + «») from dual) »;. Load (Comand.ExecuteReader ()); ();
} void заменToolStripMenuItem_Click (object sender, EventArgs e)
{Comand=OC.CreateCommand (); tab=new DataTable ();. CommandText=«INSERT INTO " Replacement " (" repCode " , " repDate " ) VALUES (0, (select to_date (SYSDATE, «dd-mm-rr») from dual)) »;. Load (Comand.ExecuteReader ());=new DataTable ();. CommandText =« UPDATE " Copy " SET " repCode " = (select max (" repCode " ) from " Replacement " ) WHERE " Copy " . " cNumber "...