Ejemplo n.º 1
0
    protected void FeeoptionCheck()
    {
        waivertab.Visible = false;
        switch (Feeoption.SelectedValue)
        {
        case "0":
            Initiationgrid.Visible = false;
            break;

        case "1":
            Initiationgrid.Visible = true;
            Initiationgrid.Rebind();
            break;

        case "2":
            Initiationgrid.Visible = true;
            Initiationgrid.Rebind();
            break;

        case "3":
            waivertab.Visible      = true;
            Initiationgrid.Visible = false;
            break;
        }
    }
Ejemplo n.º 2
0
    protected void Feeoption_SelectedIndexChanged(object sender, EventArgs e)
    {
        Repository.Members.UpdateInitiationType(Feeoption.SelectedValue.ToString(), Session["Mid"].ToString());
        Repository.Members.NoFee(Session["Mid"].ToString());
        waivertab.Visible = false;
        switch (Feeoption.SelectedValue)
        {
        case "0":
            Initiationgrid.Visible = false;
            break;

        case "1":
            Initiationgrid.Visible = true;
            Repository.Members.FullFee(Session["Mid"].ToString());
            Initiationgrid.Rebind();
            break;

        case "2":
            Initiationgrid.Visible = true;
            Initiationgrid.Rebind();
            break;

        case "3":
            waivertab.Visible      = true;
            Initiationgrid.Visible = false;
            break;
        }
    }
Ejemplo n.º 3
0
    protected void Initiationgrid_DeleteCommand(object sender, GridCommandEventArgs e)
    {
        GridDataItem DeletedItem = (GridDataItem)e.Item;

        string ReferenceID = (DeletedItem["Sno"].Controls[1] as Label).Text;

        Repository.Struct.SpResultset resultset = Repository.Members.DeletePartialFee(ReferenceID);
        if (resultset.Isresult)
        {
            Initiationgrid.Rebind();
        }
    }
Ejemplo n.º 4
0
    protected void Initiationgrid_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        GridDataItem updatedItem = (GridDataItem)e.Item;

        string ReferenceID = (updatedItem["Sno"].Controls[1] as Label).Text;
        string Date        = (updatedItem["Date"].Controls[1] as RadDatePicker).SelectedDate.ToString();
        string Amount      = (updatedItem["Amount"].Controls[1] as RadNumericTextBox).Text;

        Repository.Struct.SpResultset resultset = Repository.Members.UpdatePartialFee(ReferenceID, Amount, Date);
        if (resultset.Isresult)
        {
            Initiationgrid.Rebind();
        }
    }
Ejemplo n.º 5
0
    protected void Initiationgrid_InsertCommand(object source, GridCommandEventArgs e)
    {
        GridDataInsertItem insertedItem = (GridDataInsertItem)e.Item;
        string             ReferenceID  = (insertedItem["Sno"].Controls[3] as Label).Text;
        string             Date         = (insertedItem["Date"].Controls[1] as RadDatePicker).SelectedDate.ToString();
        string             Amount       = (insertedItem["Amount"].Controls[1] as RadNumericTextBox).Text;

        switch (Feeoption.SelectedValue)
        {
        case "1":
            Repository.Members.InsertFullFee(ReferenceID, Date);
            Initiationgrid.Rebind();
            break;

        case "2":
            Repository.Struct.SpResultset resultset = Repository.Members.InsertPartialFee(ReferenceID, Amount, Date);
            if (resultset.Isresult)
            {
                Initiationgrid.Rebind();
                e.Item.OwnerTableView.IsItemInserted = false;
            }
            break;
        }
    }