Exemplo n.º 1
0
 private void OnContactChanged(object source, ContactEventArgs e)
 {
     //Event handler for contact changed
     if (this.mIssue != null)
     {
         this.mIssue.ContactID = e.Contact.ID;
         CustomerProxy.UpdateIssue(this.mIssue);
         if (this.IssueChanged != null)
         {
             this.IssueChanged(this.mIssue, EventArgs.Empty);
         }
     }
 }
Exemplo n.º 2
0
 private void OnFindPRONumber(object sender, EventArgs e)
 {
     //Event handler for change in selected company
     try {
         dlgDeliveries dlg = new dlgDeliveries(this.mIssue.CompanyID, Convert.ToInt32(this.mIssue.StoreNumber), this.dtpFrom.Value, this.dtpTo.Value);
         dlg.Font = this.Font;
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             this.mIssue.ContactID    = Convert.ToInt32(this.ctlContact.SelectedValue);
             this.mIssue.OFD1FromDate = this.dtpFrom.Value;
             this.mIssue.OFD1ToDate   = this.dtpTo.Value;
             this.mIssue.PROID        = dlg.PROID;
             CustomerProxy.UpdateIssue(this.mIssue);
             showDeliveryInfo(true);
         }
     }
     catch (Exception ex) { reportError(new ControlException("Unexpected error while determining delivery information in the IssueInspector control.", ex)); }
 }
Exemplo n.º 3
0
 public void Save()
 {
     CustomerProxy.UpdateIssue(this.mIssue);
 }