Ejemplo n.º 1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmCustomerMainEntry fCustomer = new frmCustomerMainEntry((int)Constant.Mode.Insert, 0);
         fCustomer.ShowInTaskbar = false;
         fCustomer.ShowDialog();
         LoadList();
         LoadFollowUpList();
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Customer", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Ejemplo n.º 2
0
 private void btnNewCustomer_Click(object sender, EventArgs e)
 {
     try
     {
         //GUI.Lead.frmLeadEntry fLead = new GUI.Lead.frmLeadEntry((int)Constant.Mode.Insert, 0);
         GUI.CustomerMain.frmCustomerMainEntry fcust = new GUI.CustomerMain.frmCustomerMainEntry((int)Constant.Mode.Insert, 0);
         fcust.ShowInTaskbar = false;
         fcust.ShowDialog();
         LoadList();
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Customer", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Ejemplo n.º 3
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvInquiry.CurrentRow != null)
         {
             SetSortedColumns();
             frmCustomerMainEntry fCustomer = new frmCustomerMainEntry((int)Constant.Mode.Delete, (Int64)dgvInquiry.CurrentRow.Cells["LeadId"].Value);
             fCustomer.ShowDialog();
             setDefaultGridRecords(sender, e);
             LoadFollowUpList();
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Customer-List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }