private void btnCustomerLOV_Click(object sender, EventArgs e) { NameValueCollection para1 = new NameValueCollection(); _CompId = CurrentCompany.CompId; para1.Add("@i_CompId", CurrentCompany.CompId.ToString()); frmCustomerLOV fLOV = new frmCustomerLOV(CurrentCompany.CompId, "usp_Customer_LOV_PaymentReturn", para1); fLOV.isFromCustomerPayment = true; fLOV.ShowDialog(); txtCustomerName.Text = fLOV.CustomerName; IsCustomer = fLOV.IsCustomer; _CustomerID = fLOV.CustomerID; _AccountID = fLOV.AccountID; if (_CustomerID > 0) { LoadSIList(); } else { dgvCustomerPaymentDetail.DataSource = null; } }
private void btnCustomerLOV_Click(object sender, EventArgs e) { frmCustomerLOV fLOV = new frmCustomerLOV("usp_Customer_Lov", null); fLOV.ShowDialog(); txtCustomerName.Text = fLOV.CustomerName; _CustomerID = fLOV.CustomerID; if (_CustomerID > 0) { LoadSIList(); } else { dgvCustomerPaymentDetail.DataSource = null; } }
private void btnLeadLOV_Click(object sender, EventArgs e) { NameValueCollection para1 = new NameValueCollection(); _CompId = CurrentCompany.CompId; para1.Add("@i_CompId", CurrentCompany.CompId.ToString()); frmCustomerLOV fLOV = new frmCustomerLOV(CurrentCompany.CompId, "usp_Customer_Lead_LOV", null); fLOV.Text = "List Of Customer"; fLOV.ShowDialog(); //txtLeadNo.Text = fLOV.CustomerCode; // txtLeaddate.Text = fLOV.LeadDate.ToShortDateString(); txtCustomerName.Text = fLOV.CustomerName; txtEmail.Text = fLOV.Email; txtPhone.Text = fLOV.Phone1; txtContactPerson.Text = fLOV.ContactPerson; txtAddress1.Text = fLOV.Address; _AccountID = fLOV.AccountID; //_LeadID = fLOV.CustomerID; }