示例#1
0
        private void btnMultiple_Click(object sender, EventArgs e)
        {
            try
            {
                if (objBatchActivity.BatchActID != 0)
                {
                    if (objSections.SectionID != 0)
                    {
                        frmMultipleLabour objForm = new frmMultipleLabour(objBatchActivity, (int)objSections.SectionID);
                        objForm.ShowDialog(this);

                        Load_BatchLabourDetails();
                    }
                    else
                    {
                        MessageBox.Show(this, "Please Select a Section Before Entering Labour", "Warning", MessageBoxButtons.OK);
                    }
                }
                else
                {
                    MessageBox.Show(this, "Please Select a Packing Batch  Before Entering Labour", "Warning", MessageBoxButtons.OK);
                }
            }
            catch (Exception)
            {
                MessageBox.Show(this, "Error occured while loading Labour Details", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
示例#2
0
        private void btnMultiple_Click(object sender, EventArgs e)
        {
            try
            {
                frmMultipleLabour objForm = new frmMultipleLabour(objBatchActivity, Convert.ToInt32(cmbSection.SelectedValue));
                objForm.ShowDialog(this);

                Load_LabourDetails();
            }
            catch (Exception)
            {
                MessageBox.Show(this, "Error occured while loading Labour Details", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }