Exemple #1
0
        private void tsbCloseOffer_Click(object sender, EventArgs e)
        {
            OfferItems      item  = offerItemsList[tabControl1.SelectedIndex];
            BuyerOfferItems bItem = item as BuyerOfferItems;

            bItem.UpdateOfferState((int)OfferState.Closed);
        }
Exemple #2
0
        private void tsbRoute_Click(object sender, EventArgs e)
        {
            OfferItems item = offerItemsList[tabControl1.SelectedIndex];

            if (DialogResult.Yes == MessageBox.Show("Route the Offer?", "", MessageBoxButtons.YesNo))
            {
                BuyerOfferItems bItem = item as BuyerOfferItems;
                bItem.UpdateOfferState((int)OfferState.Routed);
            }
        }
Exemple #3
0
        private void tsbRoute_Click(object sender, EventArgs e)
        {
            OfferItems item = offerItemsList[tabControl1.SelectedIndex];

            if (DialogResult.Yes == MessageBox.Show("Route the Offer?", "", MessageBoxButtons.YesNo))
            {
                BuyerOfferItems bItem = item as BuyerOfferItems;
                bItem.UpdateOfferState((int)OfferState.Routed);
                this.tsbRoute.Enabled = false;
                OfferMgr.OfferMgr.SendOfferRouteEmail(bItem.GetOfferId());
            }
            this.DialogResult = DialogResult.Yes;
        }
Exemple #4
0
 private void tsbUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         OfferItems      item  = offerItemsList[tabControl1.SelectedIndex];
         BuyerOfferItems bItem = item as BuyerOfferItems;
         bItem.UpdateItems();
     }
     catch (Exception ex)
     {
         Logger.Error(ex.Message);
         Logger.Error(ex.StackTrace);
         MessageBox.Show("Update offer error");
     }
 }