public void GetVendorData(string strVendor) { if (strVendor != "") { MaintainPurchaseOrder bco = new MaintainPurchaseOrder(ConntionDB); ParameterList.Clear(); ParameterList.Add(strVendor); DataTable Dt = bco.GetVendorDataByVendorNo(ParameterList); if (Dt.Rows.Count > 0) { tbxContactUser.Text = Dt.Rows[0]["BUSINESS_CONTACT"].ToString(); SLP_Area.Text = Dt.Rows[0]["INV_TEL_AREA"].ToString(); SLP_Tel.Text = Dt.Rows[0]["INV_TEL"].ToString(); } else { tbxContactUser.Text = ""; SLP_Area.Text = ""; SLP_Tel.Text = ""; } } else { tbxContactUser.Text = ""; SLP_Area.Text = ""; SLP_Tel.Text = ""; } }