/// <summary>
        /// Checks mandatory fields
        /// </summary>
        /// <returns></returns>
        private bool CheckMandatory()
        {
            if (InspectionTestInstructionCode_txt.Text == string.Empty)
            {
                messageData = new MessageData("mmce00002", Properties.Resources.mmce00002, InspectionTestInstructionCode_lbl.Text);
                popUpMessage.Warning(messageData, Text);

                InspectionTestInstructionCode_txt.Focus();

                return(false);
            }

            if (InspectionTestInstructionText_txt.Text == string.Empty)
            {
                messageData = new MessageData("mmce00002", Properties.Resources.mmce00002, InspectionTestInstructionText_lbl.Text);
                popUpMessage.Warning(messageData, Text);

                InspectionTestInstructionText_txt.Focus();

                return(false);
            }

            if (InspectionItem_cmb.Text == string.Empty || InspectionItem_cmb.SelectedIndex < 0)
            {
                messageData = new MessageData("mmce00002", Properties.Resources.mmce00002, InspectionItem_lbl.Text);
                popUpMessage.Warning(messageData, Text);

                InspectionItem_cmb.Focus();

                return(false);
            }

            return(true);
        }
        /// <summary>
        /// load  the form with  combobox bind
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InspectionTestInstructionForm_Load(object sender, EventArgs e)
        {
            FormDatatableFromVo();

            ComboBind(InspectionItemId_cmb, inspectionitemDatatable, "Name", "Id");

            Update_btn.Enabled = Delete_btn.Enabled = Detail_btn.Enabled = false;

            InspectionTestInstructionCode_txt.Select();
        }
        /// <summary>
        /// clear the condition control values
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Clear_btn_Click(object sender, EventArgs e)
        {
            InspectionTestInstructionCode_txt.Text = string.Empty;

            InspectionTestInstructionText_txt.Text = string.Empty;

            InspectionItemId_cmb.SelectedIndex = -1;

            InspectionTestInstruction_dgv.DataSource = null;

            Update_btn.Enabled = Delete_btn.Enabled = Detail_btn.Enabled = false;

            InspectionTestInstructionCode_txt.Select();
        }
        /// <summary>
        /// form load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddInspectionProcessForm_Load(object sender, EventArgs e)
        {
            FormDatatableFromVo();

            ComboBind(InspectionItem_cmb, inspectionitemDatatable, "Name", "Id");

            InspectionTestInstructionCode_txt.Select();

            if (string.Equals(mode, CommonConstants.MODE_UPDATE))
            {
                LoadInspectionTestInstructionData(updateData);

                InspectionTestInstructionCode_txt.Enabled = false;

                InspectionTestInstructionText_txt.Select();
            }
        }