当前位置: 首页>>代码示例>>C#>>正文


C# ServiceReference1.Service1Client.get_Deuda_x_Cliente方法代码示例

本文整理汇总了C#中ServiceReference1.Service1Client.get_Deuda_x_Cliente方法的典型用法代码示例。如果您正苦于以下问题:C# ServiceReference1.Service1Client.get_Deuda_x_Cliente方法的具体用法?C# ServiceReference1.Service1Client.get_Deuda_x_Cliente怎么用?C# ServiceReference1.Service1Client.get_Deuda_x_Cliente使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ServiceReference1.Service1Client的用法示例。


在下文中一共展示了ServiceReference1.Service1Client.get_Deuda_x_Cliente方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Consulta_Deudor_x_Dni_SinDatos

 public void Consulta_Deudor_x_Dni_SinDatos()
 {
     DataTable dt_tmp;
     ServiceReference1.Service1Client x = new ServiceReference1.Service1Client();
     dt_tmp = x.get_Deuda_x_Cliente("00055");
     Assert.AreEqual(0, dt_tmp.Rows.Count);
     x.Close();
 }
开发者ID:pacoyx,项目名称:wscobranzasoft,代码行数:8,代码来源:UnitTest1.cs

示例2: btn_Consultar_Click

        protected void btn_Consultar_Click(object sender, EventArgs e)
        {
            if (txt_dni.Text.Trim().Length == 0)
            {
                lbl_aviso.Text = "Ingrese el Dni del cliente";

                txt_iddeuda.Text = string.Empty;
                txt_cartera.Text = string.Empty;
                txt_nro_cta.Text = string.Empty;
                txt_conyuge.Text = string.Empty;
                txt_situ_deudor.Text = string.Empty;
                txt_aval.Text = string.Empty;
                txt_grupo.Text = string.Empty;
                txt_titular.Text = string.Empty;
                txt_est_judi.Text = string.Empty;
                txt_situ_deuda.Text = string.Empty;
                txt_cliente.Text = string.Empty;
                txt_fec_mod.Text = string.Empty;
                txt_calificacion.Text = string.Empty;
                txt_deuda_total.Text = string.Empty;

                return;
            }

            DataTable dt_tmp;
            DataTable dt_cliente;
            ServiceReference1.Service1Client x = new ServiceReference1.Service1Client();
            dt_tmp = x.get_Deuda_x_Cliente(txt_dni.Text.Trim());
            dt_cliente = x.get_Datos_Cliente(txt_dni.Text.Trim());

            lbl_mensaje.Text = "";

            if (dt_cliente.Rows.Count > 0)
            {

                lbl_mensaje.Text = "Cliente : "+dt_cliente.Rows[0]["NOMBRES"].ToString() + " " + dt_cliente.Rows[0]["APELLIDOS"].ToString();
            }

            if (dt_tmp.Rows.Count > 0)
            {
                DataRow fila = dt_tmp.Rows[0];

                txt_iddeuda.Text = fila["ID_DEUDA"].ToString();
                txt_cartera.Text = fila["IDCARTERA"].ToString();
                txt_nro_cta.Text = fila["NRO_CTA"].ToString();
                txt_conyuge.Text = fila["CONYUGE"].ToString();
                txt_situ_deudor.Text = fila["SITU_DEUDOR"].ToString();
                txt_aval.Text = fila["AVAL"].ToString();
                txt_grupo.Text = fila["GRUPO"].ToString();
                txt_titular.Text = fila["TITULAR"].ToString();
                txt_est_judi.Text = fila["EST_JUDI"].ToString();
                txt_situ_deuda.Text = fila["SITU_DEUDA"].ToString();
                txt_cliente.Text = fila["IDCLIENTE"].ToString();
                txt_fec_mod.Text = fila["FEC_MOD"].ToString();
                txt_calificacion.Text = fila["CALIFICACION"].ToString();
                txt_deuda_total.Text = fila["DEUDA_TOTAL"].ToString();
                lbl_aviso.Text = "";

            }
            else
            {
                txt_iddeuda.Text = string.Empty;
                txt_cartera.Text = string.Empty;
                txt_nro_cta.Text = string.Empty;
                txt_conyuge.Text = string.Empty;
                txt_situ_deudor.Text = string.Empty;
                txt_aval.Text = string.Empty;
                txt_grupo.Text = string.Empty;
                txt_titular.Text = string.Empty;
                txt_est_judi.Text = string.Empty;
                txt_situ_deuda.Text = string.Empty;
                txt_cliente.Text = string.Empty;
                txt_fec_mod.Text = string.Empty;
                txt_calificacion.Text = string.Empty;
                txt_deuda_total.Text = string.Empty;

                lbl_mensaje.Text = "No se encontraron datos.";
            }

            x.Close();

            gv_Detalle.DataSource = null;
            gv_Detalle.DataBind();
        }
开发者ID:pacoyx,项目名称:wscobranzasoft,代码行数:84,代码来源:CO_MA_Deudor.aspx.cs


注:本文中的ServiceReference1.Service1Client.get_Deuda_x_Cliente方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。