Beispiel #1
0
		protected void Page_Load(object sender, EventArgs e)
		{
            usu = new UsuarioBC().GetUsuario((string)(Session["usrname"]));
            
			if (!IsPostBack)

			{
                 FuncionGlobal.comboclientesbyusuario((string)(Session["usrname"]), dl_cliente);
                 FuncionGlobal.combosucursalbyclienteandUsuario(dl_sucursal, Convert.ToInt16(this.dl_cliente.SelectedValue), (string)(Session["usrname"]));
				this.txt_desde.Text = DateTime.Today.ToShortDateString();
				this.txt_hasta.Text = DateTime.Today.ToShortDateString();
				this.cal_desde.FirstDayOfWeek = FirstDayOfWeek.Monday;
				this.cal_hasta.FirstDayOfWeek = FirstDayOfWeek.Monday;

                FuncionGlobal.comboCodigo_TAGactivos(this.dl_tag_disponibles, 0);
                FuncionGlobal.comboCodigo_TAG(this.dl_Codigo_TAG);
                string count = "0";

                //count = this.dl_tag_disponibles.DataTextField.Count();
                //count = this.dl_tag_disponibles.DataMember.Count();
                count = this.dl_tag_disponibles.Items.Count.ToString();

                this.lbl_stock_tag.Text = count;

				this.Crear_DataTable();
			}
		}
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Datosvendedor.OnClickDireccion    += new wucBotonEventHandler(Datosvendedor_OnClickDireccion);
            this.Datosvendedor.OnClickTelefono     += new wucBotonEventHandler(Datosvendedor_OnClickTelefono);
            this.Datosvendedor.OnClickCorreo       += new wucBotonEventHandler(Datosvendedor_OnClickCorreo);
            this.Datosvendedor.OnClickParticipante += new wucBotonEventHandler(Datosvendedor_OnClickParticipante);


            id_solicitud   = Convert.ToInt32(FuncionGlobal.FuctionDesEncriptar(Request.QueryString["id_solicitud"].ToString()));
            id_cliente     = Convert.ToInt16(FuncionGlobal.FuctionDesEncriptar(Request.QueryString["id_cliente"].ToString()));
            tipo_operacion = Request.QueryString["tipo_operacion"].ToString();

            if (!IsPostBack)
            {
                cambiar_titulo();
                FuncionGlobal.comboclientesbyusuario((string)(Session["usrname"]), this.dl_cliente);
                this.dl_cliente.SelectedValue = id_cliente.ToString();
                FuncionGlobal.combosucursalbyclienteandUsuario(this.dl_sucursal_origen, Convert.ToInt16(this.dl_cliente.SelectedValue), (string)(Session["usrname"]));

                FuncionGlobal.combotipovehiculo(this.dl_tipo_vehiculo);
                FuncionGlobal.combomarcavehiculo(this.dl_marca);


                if (tipo_operacion.Trim() == "ctag" || tipo_operacion.Trim() == "dtag")
                {
                    this.Label1.Text           = "Codigo TAG";
                    this.txt_interno.Visible   = false;
                    this.dl_Codigo_TAG.Visible = true;
                    FuncionGlobal.comboCodigo_TAGactivos(this.dl_Codigo_TAG, id_solicitud);
                }

                if (id_solicitud != 0)
                {
                    busca_operacion();
                }
            }
        }