本文整理汇总了C#中Cliente.buscarClientePorRazonSocial方法的典型用法代码示例。如果您正苦于以下问题:C# Cliente.buscarClientePorRazonSocial方法的具体用法?C# Cliente.buscarClientePorRazonSocial怎么用?C# Cliente.buscarClientePorRazonSocial使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cliente
的用法示例。
在下文中一共展示了Cliente.buscarClientePorRazonSocial方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
Cliente c = new Cliente();
razonSocial = Request.QueryString.Get("m");
GridView1.DataSource = c.buscarClientePorRazonSocial(razonSocial);
GridView1.DataBind();
DataTable direccionCompleta = c.obtenerDireccionCliente(razonSocial);
lblCalle.Value = direccionCompleta.Rows[0][0].ToString().Trim();
lblMunicipio.Value = direccionCompleta.Rows[0][1].ToString().Trim();
lblEstado.Value = direccionCompleta.Rows[0][2].ToString().Trim();
lblPais.Value = direccionCompleta.Rows[0][3].ToString().Trim();
// Ejempo: Esta direccion si existe
// string script = "initialize('Paul Linder - San borja','San borja','Lima','Peru');";
// string script = "initialize('Calle los halcones 124 - SAN ISIDRO','SAN ISIDRO','Lima','Peru');";
string script = "initialize('" + lblCalle.Value + "','" + lblMunicipio.Value + "','" + lblEstado.Value + "','" + lblPais.Value + "');";
string src = "http://maps.googleapis.com/maps/api/js?sensor=false";
this.ClientScript.RegisterClientScriptResource(this.GetType(), src);
this.ClientScript.RegisterStartupScript(this.GetType(), "ini", script,true);
comentarios(razonSocial);
txtComentario.Attributes.Add("OnFocus", "LimpiarTexto(this);");
//txtComentario.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + btnComentar.UniqueID + "').click();return false;}} else {return true}; ");
}