private void toolStripButton1_Click(object sender, EventArgs e) { this.soViewControl1.rfqId = this.rfqId; try { this.soViewControl1.SoSave(); } catch (Exception ex) { logger.Error(ex.StackTrace); MessageBox.Show("Save So Error"); return; } AmbleClient.RfqGui.RfqManager.RfqMgr rfqMgr = new RfqGui.RfqManager.RfqMgr(); if (UserInfo.UserId == soViewControl1.GetAssignedSaleID()) { rfqMgr.AddRfqHistory(rfqId, UserInfo.UserId, "Created an SO"); } else { rfqMgr.AddRfqHistory(rfqId, UserInfo.UserId, "Created an SO for " + new AmbleClient.Admin.AccountMgr.AccountMgr().GetNameById(soViewControl1.GetAssignedSaleID())); } this.Close(); }
private void toolStripButton1_Click(object sender, EventArgs e) { this.soViewControl1.rfqId = this.rfqId; try { this.soViewControl1.SoSave(); } catch (Exception ex) { Logger.Error(ex.Message); Logger.Error(ex.StackTrace); MessageBox.Show("Save So Error"); return; } AmbleClient.RfqGui.RfqManager.RfqMgr rfqMgr = new RfqGui.RfqManager.RfqMgr(); if (UserInfo.UserId == soViewControl1.GetAssignedSaleID()) { rfqMgr.AddRfqHistory(rfqId, UserInfo.UserId, "Created an SO"); } else { rfqMgr.AddRfqHistory(rfqId,UserInfo.UserId,"Created an SO for "+new AmbleClient.Admin.AccountMgr.AccountMgr().GetNameById(soViewControl1.GetAssignedSaleID())); } this.Close(); }