Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     util   = new Utilerias();
     mpMenu = (System.Web.UI.WebControls.Menu)Master.FindControl("ChildrenMenu");
     mpMenu.MenuItemClick += new MenuEventHandler(menuReporte_MenuItemClick);
     try
     {
         if (!Page.IsPostBack)
         {
             wndRequerimiento.NavigateUrl = "Mobile/Requerimiento.aspx?ex=" + Request.QueryString["ex"] + "&mod=" +
                                            Master.Page.Request.Url.Segments[
                 Master.Page.Request.Url.Segments.Length - 1];
             MenuSelected(Request.QueryString["mod"]);
             var ex = new DS.SAI.Business.ExchangeManager();
             gvExchange.DataSource = ex.GetExchangePDF(string.Empty, string.Empty, string.Empty, dtOpR1.SelectedDate,
                                                       dtOpR2.SelectedDate);
             gvExchange.DataBind();
         }
     }
     catch (ArgumentNullException ex)
     {
         Alert.Denegado(this.Page);
     }
     catch (Exception ex)
     {
         //Response.Redirect("Services/Logout.ashx");
     }
 }
Beispiel #2
0
    private void Busqueda()
    {
        var ex = new DS.SAI.Business.ExchangeManager();

        gvExchange.DataSource = ex.GetExchangePDF(txtOpPreFolio.Text, txtOpFolio.Text,
                                                  cbActivate.Checked ? ddlClient.SelectedValue : string.Empty,
                                                  dtOpR1.SelectedDate, dtOpR1.SelectedDate);
        gvExchange.DataBind();
    }
Beispiel #3
0
        public PDFManager(int iExchange, string serverPath)
        {
            ServerPath = serverPath;
            ex         = new ExchangeCompositeType();
            adct       = new affectationDocumentsCompositeType();
            var em = new ExchangeManager();

            ex = em.getExchangeById(iExchange);
            var adm = new AffectationDocumentsManager();

            adct = adm.GetAffectationDocumentsByIdExchange(iExchange);
            var objAutorization = new TaskAutorizationManager();

            dtAutorization = objAutorization.GetAll(iExchange);
            var objPartList = new PartListExchangeManager();

            lPartList = new List <PartListExchangeCompositeType>();
            lPartList = objPartList.getAllPartListExchange(iExchange);
            lockClose = true;
        }