コード例 #1
0
 /// <summary>
 /// form load
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InspectionProcessListForm_Load(object sender, EventArgs e)
 {
     Ok_btn.Enabled = false;
     LoadCombo();
     ItemCode_txt.Select();
     // GridBind(new InspectionProcessVo());
     this.Activate();
 }
コード例 #2
0
 /// <summary>
 /// form loading
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ItemForm_Load(object sender, EventArgs e)
 {
     if (!this.DesignMode)
     {
         Update_btn.Enabled = Delete_btn.Enabled = false;
         ItemCode_txt.Select();
     }
 }
コード例 #3
0
 /// <summary>
 /// form load
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InspectionFormatMasterForm_Load(object sender, EventArgs e)
 {
     Ok_btn.Enabled = false;
     LoadCombo();
     ItemCode_txt.Select();
     //   GridBind(new InspectionFormatVo());
     //this.Activate();
 }
コード例 #4
0
 /// <summary>
 /// event to clear the controls of search criteria
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Clear_btn_Click(object sender, EventArgs e)
 {
     InspectionFormatCode_txt.Text = string.Empty;
     InspectionFormatName_txt.Text = string.Empty;
     //ItemId_cmb.SelectedIndex = LineId_cmb.SelectedIndex = -1;
     LineId_cmb.SelectedIndex = -1;
     InspectionFormatDetails_dgv.DataSource = null;
     //ItemId_cmb.Select();
     sapItemSearchVo   = null;
     ItemCode_txt.Text = string.Empty;
     ItemCode_txt.Select();
     Process_btn.Enabled = Update_btn.Enabled = Delete_btn.Enabled = false;
 }
コード例 #5
0
 /// <summary>
 /// form load
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InspectionFormatMasterForm_Load(object sender, EventArgs e)
 {
     if (DesignMode)
     {
         return;
     }
     Process_btn.Enabled = Update_btn.Enabled = Delete_btn.Enabled = false;
     StartProgress(Properties.Resources.mmci00009);
     LoadCombo();
     CompleteProgress();
     //ItemId_cmb.Select();
     ItemCode_txt.Select();
 }
コード例 #6
0
ファイル: ItemCodeSearchForm.cs プロジェクト: D-Khoa/MyGit
        /// <summary>
        /// Form load
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ItemCodeSearchForm_Load(object sender, EventArgs e)
        {
            //if(sapItemSearchVo != null && sapItemSearchVo.GetList() != null && sapItemSearchVo.GetList().Count > 0)
            //{
            //    sapItemSearchVo.GetList().ForEach(v => v.SapItemName = v.SapItemName.Replace(v.SapItemCode + " - ", ""));

            //    Item_dgv.AutoGenerateColumns = false;

            //    BindingSource buildingSource = new BindingSource(sapItemSearchVo.GetList(), null);
            //    Item_dgv.DataSource = buildingSource;

            //    Item_dgv.ClearSelection();

            //    grdCellChecked(true);
            //}

            ItemCode_txt.Select();
        }
コード例 #7
0
        /// <summary>
        /// Checks mandatory fields
        /// </summary>
        /// <returns></returns>
        protected bool CheckMandatory()
        {
            //if (ItemId_cmb.Text == string.Empty || ItemId_cmb.SelectedIndex < 0)
            //{
            //    messageData = new MessageData("mmce00002", Properties.Resources.mmce00002, ItemId_lbl.Text);
            //    popUpMessage.Warning(messageData, Text);

            //    ItemId_cmb.Focus();

            //    return false;
            //}

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

                ItemCode_txt.Select();

                return(false);
            }

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

                LineId_cmb.Focus();

                return(false);
            }

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

                InspectionFormatName_txt.Focus();

                return(false);
            }

            return(true);
        }
コード例 #8
0
        /// <summary>
        /// form load, loads item data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void AddItemForm_Load(object sender, EventArgs e)
        {
            if (!this.DesignMode)
            {
                ItemCode_txt.Select();

                LoadUnityType();

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

                    ItemCode_txt.Enabled = false;

                    ItemName_txt.Select();

                    var resourceMngr = new ResourceManager(this.GetType());
                    this.Text = resourceMngr.GetString("UpdateForm");
                }
            }
        }
コード例 #9
0
        /// <summary>
        /// load screen
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InspectionFormatMasterForm_Load(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }
            LoadCombo();
            //ItemId_cmb.Select();
            ItemCode_txt.Select();

            if (updateData != null && updateData.InspectionFormatIdCopy > 0)
            {
                InspectionFormatId = updateData.InspectionFormatIdCopy;

                CopyFormat_txt.Text = updateData.InspectionFormatName;
            }

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

                //ItemId_cmb.Enabled = false;
                ItemSearch_btn.Enabled = false;

                LineId_cmb.Enabled = false;

                CopyFormat_btn.Enabled = false;

                InspectionFormatName_txt.Select();

                ItemCode_txt.Enabled = false;

                CopyFormat_txt.Enabled = false;
            }
            this.Activate();
        }
コード例 #10
0
ファイル: ItemSearchForm.cs プロジェクト: D-Khoa/MyGit
 /// <summary>
 /// Loads Mold form
 /// Fill item combobox
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ItemSearchForm_Load(object sender, EventArgs e)
 {
     ItemCode_txt.Select();
     Ok_btn.Enabled = false;
 }