예제 #1
0
    protected void imgPFPdf_Click(object sender, ImageClickEventArgs e)
    {
        ImageButton btndetails = sender as ImageButton;
        GridViewRow gvrow      = (GridViewRow)btndetails.NamingContainer;
        //   int PFInvId = Convert.ToInt32(gvPFInvoiceList.DataKeys[gvrow.RowIndex].Value.ToString());
        string PFInvId = gvPFInvoiceList.DataKeys[gvrow.RowIndex].Value.ToString();
        // Response.Redirect("ProformaInvoicePdf.aspx?id=" + PFInvId);
        string url     = "ProformaInvoicePdf.aspx?id=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(PFInvId, true));
        string fullURL = "window.open('" + url + "', '_blank');";

        ScriptManager.RegisterStartupScript(this, typeof(string), "_blank", fullURL, true);
    }
예제 #2
0
    protected void gvReceiptList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string receiptId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Receipt")
        {
            Response.Redirect("ReceiptTypes.aspx?ReceiptId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(receiptId, true)));
        }
        if (e.CommandName == "Delete Receipt")
        {
            DeleteReceipt(Convert.ToInt32(receiptId));
            BindReceiptType();
        }
    }
예제 #3
0
    protected void gvTemplateCategoryList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string Id = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Template")
        {
            Response.Redirect("TemplateCategory.aspx?Id=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(Id, true)));
        }
        if (e.CommandName == "Delete Template")
        {
            deleteTemplateCategoryDetails(Convert.ToInt32(Id));
            BindTemplateCategoryDetails();
        }
    }
예제 #4
0
    protected void gvCitiesList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string CityId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit City")
        {
            Response.Redirect("CitiesMaster.aspx?Id=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(CityId, true)));
        }
        if (e.CommandName == "Delete City")
        {
            DeleteCities(Convert.ToInt32(CityId));
            BindCitiesList();
        }
    }
예제 #5
0
    protected void gvConLogList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string logId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Log")
        {
            Response.Redirect("ContactLog.aspx?LogId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(logId, true)));
        }
        if (e.CommandName == "Delete Log")
        {
            DeleteLog(Convert.ToInt32(logId));
            BindContactLog();
        }
    }
예제 #6
0
    protected void gvConNoteList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string NoteId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Note")
        {
            Response.Redirect("ContactNote.aspx?NotePadId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(NoteId, true)));
        }
        if (e.CommandName == "Delete Note")
        {
            DeleteContactNote(Convert.ToInt32(NoteId));
            BindContactNote();
        }
    }
예제 #7
0
    protected void gvAirportList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string airportId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Air")
        {
            Response.Redirect("Airports.aspx?AirportId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(airportId, true)));
        }
        if (e.CommandName == "Delete Air")
        {
            DeleteAirport(Convert.ToInt32(airportId));
            BindAirportList();
        }
    }
예제 #8
0
    protected void gvContinentsList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string ContId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Continents Details")
        {
            Response.Redirect("Continents.aspx?ContinentId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(ContId, true)));
        }
        else if (e.CommandName == "Delete Continents Details")
        {
            DeleteContinent(Convert.ToInt32(ContId));
            BindContinentDetails();
        }
    }
예제 #9
0
    protected void gvBookList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string BookingId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Booking Details")
        {
            // int BookingId = Convert.ToInt32(e.CommandArgument);
            Response.Redirect("BookingSource.aspx?BookId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(BookingId, true)));
        }
        if (e.CommandName == "Delete Booking Details")
        {
            // int BookingId = Convert.ToInt32(e.CommandArgument);
            deleteBookingDetails(Convert.ToInt32(BookingId));
            BindBookingDetails();
        }
    }
예제 #10
0
    protected void gvBankAccountList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string BankAccId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Bank Details")
        {
            //int BankAccId = Convert.ToInt32(e.CommandArgument);
            Response.Redirect("BankAccount.aspx?BankAcId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(BankAccId, true)));
        }
        if (e.CommandName == "Delete Bank Details")
        {
            //int BankAccId = Convert.ToInt32(e.CommandArgument);
            deleteBankAccDetails(Convert.ToInt32(BankAccId));
            BindBankAccDetails();
        }
    }
예제 #11
0
    protected void gvCommTypeList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string commId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Commission Type Details")
        {
            // int commId = Convert.ToInt32(e.CommandArgument);
            Response.Redirect("CommissionType.aspx?ComId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(commId, true)));
        }
        if (e.CommandName == "Delete Commission Type Details")
        {
            // int commId = Convert.ToInt32(e.CommandArgument);
            DeleteCommissionTypeDetails(Convert.ToInt32(commId));
            BindCommissionTypeDetails();
        }
    }
예제 #12
0
    protected void gvVatList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string id = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Vat Details")
        {
            // int VatId = Convert.ToInt32(e.CommandArgument);
            Response.Redirect("VatType.aspx?VatId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(id, true)));
        }
        if (e.CommandName == "Delete Vat Details")
        {
            int VatId = Convert.ToInt32(e.CommandArgument);
            deleteBankAccDetails(VatId);
            BindVatDetails();
        }
    }
    protected void gvForeignCurrencyList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string Id = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Currency Details")
        {
            // int Id = Convert.ToInt32(e.CommandArgument);
            Response.Redirect("ForeignCurrency.aspx?Id=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(Id, true)));
        }
        if (e.CommandName == "Delete Currency Details")
        {
            //int Id = Convert.ToInt32(e.CommandArgument);
            deleteCurrencyDetails(Convert.ToInt32(Id));
            BindCurrencyDetails();
        }
    }
예제 #14
0
    protected void gvStateList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string StateId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit State Details")
        {
            // int StateId = Convert.ToInt32(e.CommandArgument);
            Response.Redirect("State.aspx?StateId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(StateId, true)));
        }
        if (e.CommandName == "Delete State Details")
        {
            // int StateId = Convert.ToInt32(e.CommandArgument);
            deleteStateDetails(Convert.ToInt32(StateId));
            BindStateDetails();
        }
    }
예제 #15
0
    protected void gvClientsList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string ClientId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Client Details")
        {
            Response.Redirect("Clients.aspx?ClientId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(ClientId, true)));
        }
        else if (e.CommandName == "Delete Client Details")
        {
            DeleteClientsDetails(Convert.ToInt32(ClientId));
            BindClientDetails();
        }

        else if (e.CommandName == "Edit CreditCard Details")
        {
            hf_ClientId.Value = ClientId;
            BindRptCreditCardDetails(rpCreditCard, Convert.ToInt32(ClientId));
            mpCreditCard.Show();
        }
    }
예제 #16
0
    protected void gvSupChoiceList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string ChoiceId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Choice")
        {
            Response.Redirect("SupplierChoice.aspx?SupplierChoiceId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(ChoiceId, true)));
        }
        if (e.CommandName == "Delete Choice")
        {
            DeleteSuppChoice(Convert.ToInt32(ChoiceId));
            BindSuppChoice();
        }
    }
예제 #17
0
    protected void gvCashBookList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string cashBookId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Cash")
        {
            Response.Redirect("CashBookType.aspx?CashBookId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(cashBookId, true)));
        }
        if (e.CommandName == "Delete Cash")
        {
            DeleteCashBook(Convert.ToInt32(cashBookId));
            BindCashBook();
        }
    }
예제 #18
0
    protected void gvCreditCardList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string CreditId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Credit")
        {
            Response.Redirect("CreditCardType.aspx?CreditCardId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(CreditId, true)));
        }
        if (e.CommandName == "Delete Credit")
        {
            DeleteCreditCard(Convert.ToInt32(CreditId));
            BindCreditCard();
        }
    }
    protected void gvDestinationsList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string DestId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit Destination Details")
        {
            Response.Redirect("BookingDestinations.aspx?BookDestId=" + HttpUtility.UrlEncode(_objBOUtiltiy.Encrypts(DestId, true)));
        }
        else if (e.CommandName == "Delete Destination Details")
        {
            DeleteDestinationDetails(Convert.ToInt32(DestId));
            BindDestinationDetails();
        }
    }
예제 #20
0
    protected void gvLandSupplierList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string LsupplierId = e.CommandArgument.ToString();

        if (e.CommandName == "Edit LSupplier")
        {
            Response.Redirect("LandSuppliers.aspx?LSupplierId=" + HttpUtility.UrlEncode(_BOUtility.Encrypts(LsupplierId, true)));
        }

        if (e.CommandName == "Delete LSupplier")
        {
            DeleteLSupplier(Convert.ToInt32(LsupplierId));
            BindLandSupplierList();
        }
    }