Exemplo n.º 1
0
 private void fillCuenta()
 {
     try
     {
         ControlsMng.fillClienteGrupo(ddl_cuenta);
         ddl_cuenta.Items.Add(new ListItem("--TODAS--", "0"));
     }
     catch
     {
         throw;
     }
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs args)
        {
            try
            {
                if (!IsPostBack)
                {
                    hfAction.Value = Request["Action"];

                    ControlsMng.fillDocumento(chkbxlstDocumento);
                    ControlsMng.fillClienteGrupo(ddlGrupo);
                    ControlsMng.fillClienteCopias(lstCopias);
                    //ControlsMng.fillDocumento(ddlDocPrincipal);
                    ddlDocPrincipal.Items.Add(new ListItem("Sin documento principal", "0"));

                    ddlGrupo.Items.Add(new ListItem("Sin Grupo", "0"));
                    ControlsMng.fillCuentaTipo(ddlCuentaTipo);
                    lstCCOp = new List <Cliente_copia_operacion>();
                    switch (hfAction.Value)
                    {
                    case "Udt":
                        hfId.Value = Request["Key"];
                        fillForm();
                        break;

                    case "Ist": break;

                    default:
                        Response.Redirect("frmClienteLst.aspx");
                        break;
                    }
                }
            }
            catch (Exception e)
            {
                ((MstCasc)this.Master).setError = e.Message;
            }
        }