Exemple #1
0
 private void btn_Quantity_Click(object sender, EventArgs e)
 {
     try
     {
         if (textBox_Item_No.Text != "")
         {
             if (textBox_Stores_No.Text == "")
             {
                 MessageBox.Show("يرجى تحديد المستودع لإظهار الكمية المتواجدة لهذه المادة");
                 return;
             }
             Grid_Qauntity.SCR_Destruction_Bond = true;
             Grid_Qauntity grid_Qauntity = new Grid_Qauntity();
             grid_Qauntity.ShowDialog();
             Grid_Qauntity.SCR_Destruction_Bond = false;
         }
         else
         {
             MessageBox.Show("يرجى تحديد المادة لإظهار الكمية");
         }
     }
     catch (Exception ee)
     {
         con.Close();
         MessageBox.Show("يرجى تصوير الخطأ ومراجعة مدير النظام ، شكرا" + ee.Message, "ERROR 1023 Destruction_Bond", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemple #2
0
 private void btn_Quantity2_Click(object sender, EventArgs e)
 {
     try
     {
         if (textBox_Item_No.Text != string.Empty)
         {
             Grid_Qauntity.SCR_Out_Bond = true;
             Grid_Qauntity grid_Qauntity = new Grid_Qauntity();
             grid_Qauntity.ShowDialog();
             Grid_Qauntity.SCR_Out_Bond = false;
         }
         else
         {
             MessageBox.Show("يرجى تحديد المادة لإظهار الكمية");
         }
     }
     catch (Exception ee)
     {
         con.Close();
         MessageBox.Show("يرجى تصوير الخطأ ومراجعة مدير النظام ، شكرا" + ee.Message, "ERROR 1024 Out_Bond", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }