Example #1
0
 private void tsbQuote_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Set The RFQ Status to Quoted?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
     {
         if (rfqMgr.ChangeRfqState(RfqStatesEnum.Quoted, rfqId))
         {
             rfqMgr.AddRfqHistory(rfqId, UserInfo.UserId, "Quoted the RFQ");
             GuiOpAccordingToRfqState(RfqStatesEnum.Quoted);
         }
         else
         {
             MessageBox.Show("Quote the RFQ Fail");
         }
     }
 }
Example #2
0
 private void tsbRoute_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Route the RFQ?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
     {
         if (RfqMgr.ChangeRfqState(RfqStatesEnum.Routed, rfqId))
         {
             RfqMgr.AddRfqHistory(rfqId, UserInfo.UserId, "Routed the RFQ");
             GuiOpAccordingToRfqState(RfqStatesEnum.Routed);
             SendRfqRouteEmail();
             this.Close();
         }
         else
         {
             MessageBox.Show("Route the RFQ Fail");
         }
     }
 }
Example #3
0
 private void tsbCloseRfq_Click(object sender, EventArgs e)
 {
     if (rfqItems1.cbCloseReason.SelectedIndex == -1)
     {
         MessageBox.Show("Please Select a Reason for Closing the RFQ");
         rfqItems1.cbCloseReason.Focus();
     }
     else
     {
         if (MessageBox.Show("Set The RFQ Status to Closed?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
         {
             rfqItems1.UpdateInfo(rfqId);
             RfqMgr.ChangeRfqState(RfqStatesEnum.Closed, rfqId);
             RfqMgr.AddRfqHistory(rfqId, UserInfo.UserId, "Closed the RFQ");
             GuiOpAccordingToRfqState(RfqStatesEnum.Closed);
             this.Close();
         }
     }
 }