예제 #1
0
        /// <summary>
        /// selects user record for updation and show user form
        /// </summary>
        private void UpdateWorkContentType()
        {
            int selectedrowindex = ProdutionWorkContentType_dgv.SelectedCells[0].RowIndex;

            ProdutionWorkContentTypeVo vo = (ProdutionWorkContentTypeVo)ProdutionWorkContentType_dgv.Rows[selectedrowindex].DataBoundItem;

            AddProdutionWorkContentTypeForm addform = new AddProdutionWorkContentTypeForm();

            addform.vo = vo;

            if (addform.ShowDialog() == DialogResult.OK)
            {
                messageData = new MessageData("mmci00002", Properties.Resources.mmci00002, null);
                logger.Info(messageData);
                popUpMessage.Information(messageData, Text);

                GridBind();
            }
            else if (addform.IntSuccess == 0)
            {
                messageData = new MessageData("mmci00007", Properties.Resources.mmci00007, null);
                logger.Info(messageData);
                popUpMessage.Information(messageData, Text);
                GridBind();
            }
        }
        private void Add_btn_Click(object sender, EventArgs e)
        {
            AddProdutionWorkContentTypeForm newAddForm = new AddProdutionWorkContentTypeForm();

            newAddForm.vo = new ProdutionWorkContentTypeVo();
            if (newAddForm.ShowDialog() == DialogResult.OK)
            {
                GridBind();
            }
        }
예제 #3
0
        private void Add_btn_Click(object sender, EventArgs e)
        {
            AddProdutionWorkContentTypeForm newAddForm = new AddProdutionWorkContentTypeForm();

            newAddForm.vo = new ProdutionWorkContentTypeVo();
            if (newAddForm.ShowDialog() == DialogResult.OK)
            {
                messageData = new MessageData("mmci00001", Properties.Resources.mmci00001, null);
                logger.Info(messageData);
                popUpMessage.Information(messageData, Text);

                GridBind();
            }
        }