Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                frmLeadEntry fCustomer = new frmLeadEntry((int)Constant.Mode.Insert, 0);
                fCustomer.ShowInTaskbar             = false;
                fCustomer.btnLeadLOV.Visible        = false;
                fCustomer.button1.Visible           = false;
                fCustomer.txtCustomerName.ReadOnly  = false;
                fCustomer.txtContactPerson.ReadOnly = false;
                fCustomer.txtAddress1.ReadOnly      = false;
                fCustomer.txtState.ReadOnly         = false;
                fCustomer.txtPincode.ReadOnly       = false;
                fCustomer.txtwebsite.ReadOnly       = false;
                fCustomer.txtPhone.ReadOnly         = false;
                fCustomer.txtMobile.ReadOnly        = false;
                fCustomer.txtEmail.ReadOnly         = false;
                fCustomer.txtEmail.ReadOnly         = false;
                fCustomer.cmbCity.Enabled           = true;
                fCustomer.cmbarea.Enabled           = true;


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