Exemplo n.º 1
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     if (listProv.SelectedIndex == -1)
     {
         MsgBox.Show(this, "Please select a provider first.");
         return;
     }
     NoteCur.ProcTime = strBTime.ToString();
     NoteCur.ProvNum  = _listProviders[listProv.SelectedIndex].ProvNum;
     NoteCur.Note     = textNote.Text;
     if (_isTp)
     {
         NoteCur.ProcStatus = ProcStat.TP;
     }
     else
     {
         NoteCur.ProcStatus = ProcStat.C;
     }
     if (IsNew)
     {
         ProcCodeNotes.Insert(NoteCur);
     }
     else
     {
         ProcCodeNotes.Update(NoteCur);
     }
     _hasChanged  = true;
     DialogResult = DialogResult.OK;
 }
Exemplo n.º 2
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     if (listProv.SelectedIndex == -1)
     {
         MsgBox.Show(this, "Please select a provider first.");
         return;
     }
     NoteCur.ProcTime = strBTime.ToString();
     NoteCur.ProvNum  = ProviderC.ListShort[listProv.SelectedIndex].ProvNum;
     NoteCur.Note     = textNote.Text;
     if (IsNew)
     {
         ProcCodeNotes.Insert(NoteCur);
     }
     else
     {
         ProcCodeNotes.Update(NoteCur);
     }
     DialogResult = DialogResult.OK;
 }