Beispiel #1
0
    protected void BtnDivTableDeliveryAnt_Click(object sender, EventArgs e)
    {
        int Page;

        if (int.TryParse(HdnDivTableDeliveryPage.Value, out Page))
        {
            if (Page > 1)
            {
                Page--;
            }
        }
        if (Page == 1)
        {
            BtnDivTableDeliveryAnt.Visible = false;
        }
        HdnDivTableDeliveryPage.Value = (Page).ToString();
        PedDet.Get getitems = new PedDet.Get(Pedido.ID, true);
        var        cmp      = getitems.Items.Sum(iterator => iterator.CMPUN * iterator.CANT);
        var        cpro     = getitems.Items.Sum(iterator => iterator.CPROCUN * iterator.CANT);
        var        cmer     = getitems.Items.Sum(iterator => iterator.CMERMAUN * iterator.CANT);

        double[] KG = new double[getitems.Items.Count];
        int      i  = 0;

        foreach (var item in getitems.Items)
        {
            KG[i] = item.KGITM;
            i++;
        }

        CostodelDia.Get get = new CostodelDia.Get(Pedido, Page, true);

        FillDeliveryTable(get.Lista);
    }
Beispiel #2
0
    private void FillDivTableDeliveryMdl()
    {
        HdnDivTableDeliveryPage.Value = "1";
        CostodelDia.Get get = new CostodelDia.Get(Pedido, 1, true);

        FillDeliveryTable(get.Lista);
        BtnDivTableDeliveryAnt.Visible = false;
        FillModalDeliveryAddress();
    }
Beispiel #3
0
 protected void DDLMdlDeliveryCom_SelectedIndexChanged(object sender, EventArgs e)
 {
     CostodelDia.Get get = new CostodelDia.Get(Pedido, 1, true, DDLMdlDeliveryReg.SelectedValue, DDLMdlDeliveryCom.SelectedValue);
     FillDeliveryTable(get.Lista);
 }