Esempio n. 1
0
        /// <summary>
        /// Checks mandatory fields
        /// </summary>
        /// <returns></returns>
        private bool CheckMandatory()
        {
            if (Process_lst.SelectedValue == null || Process_lst.SelectedValue.ToString() == string.Empty)
            {
                messageData = new MessageData("mmce00002", Properties.Resources.mmce00002, Process_lbl.Text);
                popUpMessage.Warning(messageData, Text);
                Process_lst.Focus();
                return(false);
            }

            if (StockLocation_chlst.Items != null && StockLocation_chlst.Items.Count > 0 && StockLocation_chlst.CheckedItems.Count > 1)
            {
                messageData = new MessageData("mmce00016", Properties.Resources.mmce00016, Process_lbl.Text);
                popUpMessage.Warning(messageData, Text);
                StockLocation_chlst.Focus();
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// load the screen
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ProcessWorkLineForm_Load(object sender, EventArgs e)
        {
            LoadProcessListBox();

            Process_lst.ClearSelected();
        }