Exemplo n.º 1
0
 protected void btnNew_Click(object sender, EventArgs e)
 {
     ((IGRSS_Default)this.Master).HideStatusMessage();
     MvDocumentMaster.SetActiveView(MvDocumentMaster.Views[1]);
     FvDocumentMaster.ChangeMode(FormViewMode.Insert);
     ((TextBox)FvDocumentMaster.FindControl("txtNameIns")).Text        = "";
     ((TextBox)FvDocumentMaster.FindControl("txtDescriptionIns")).Text = "";
 }
Exemplo n.º 2
0
 protected void odsDocumentMasterById_Updated(object sender, ObjectDataSourceStatusEventArgs e)
 {
     MvDocumentMaster.SetActiveView(MvDocumentMaster.Views[0]);
     GvDocumentMasters.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);
     }
 }
Exemplo n.º 3
0
 protected void GvDocumentMasters_SelectedIndexChanged(object sender, EventArgs e)
 {
     MvDocumentMaster.SetActiveView(MvDocumentMaster.Views[1]);
     FvDocumentMaster.ChangeMode(FormViewMode.Edit);
 }
Exemplo n.º 4
0
 protected void btnCancel_Click1(object sender, EventArgs e)
 {
     MvDocumentMaster.SetActiveView(MvDocumentMaster.Views[0]);
     GvDocumentMasters.DataBind();
 }