Ejemplo n.º 1
0
 protected void btnNew_Click(object sender, EventArgs e)
 {
     ((IGRSS_Default)this.Master).HideStatusMessage();
     MvFeeMaster.SetActiveView(MvFeeMaster.Views[1]);
     FvFeeMaster.ChangeMode(FormViewMode.Insert);
     ((TextBox)FvFeeMaster.FindControl("txtDescriptionIns")).Text = "";
     ((TextBox)FvFeeMaster.FindControl("txtNameIns")).Text        = "";
     ((TextBox)FvFeeMaster.FindControl("txtAmountIns")).Text      = "";
 }
Ejemplo n.º 2
0
 protected void odsFeeMasterById_Updated(object sender, ObjectDataSourceStatusEventArgs e)
 {
     MvFeeMaster.SetActiveView(MvFeeMaster.Views[0]);
     GvFeeMaster.SelectedIndex = -1;
     GvFeeMaster.DataBind();
     if (e.Exception == null)
     {
         if (Equals(e.ReturnValue, true))
         {
             ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success);
         }
         else
         {
             ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, "Record already Exists!", MessageType.Error);
         }
     }
     else
     {
         ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error);
     }
 }
Ejemplo n.º 3
0
 protected void GvFeeMaster_SelectedIndexChanged(object sender, EventArgs e)
 {
     MvFeeMaster.SetActiveView(MvFeeMaster.Views[1]);
     FvFeeMaster.ChangeMode(FormViewMode.Edit);
 }
Ejemplo n.º 4
0
    protected void btnCancel_Click1(object sender, EventArgs e)
    {
        MvFeeMaster.SetActiveView(MvFeeMaster.Views[0]);

        GvFeeMaster.DataBind();
    }