Пример #1
0
        private void BindUpdateCavityData()
        {
            int selectedrowindex = AccountLocationDetails_dgv.SelectedCells[0].RowIndex;

            AccountLocationVo vo = (AccountLocationVo)AccountLocationDetails_dgv.Rows[selectedrowindex].DataBoundItem;

            Form.Account_WhForm.AccountLocationForm.AddAccountLocationForm addform = new Form.Account_WhForm.AccountLocationForm.AddAccountLocationForm();
            addform.vo = vo;
            addform.ShowDialog();
            if (addform.IntSuccess > 0)
            {
                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();
            }
        }
Пример #2
0
 private void Add_btn_Click(object sender, EventArgs e)
 {
     Form.Account_WhForm.AccountLocationForm.AddAccountLocationForm acclForm = new Form.Account_WhForm.AccountLocationForm.AddAccountLocationForm();
     acclForm.vo = new AccountLocationVo();
     if (acclForm.ShowDialog() == DialogResult.OK)
     {
         GridBind();
     }
 }