Exemplo n.º 1
0
 protected void odsOfficeMaster_Updated(object sender, ObjectDataSourceStatusEventArgs e)
 {
     MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[0]);
     GvOfficeMaster.DataBind();
     if (e.Exception == null)
     {
         ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success);
     }
     else
     {
         ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error);
     }
 }
Exemplo n.º 2
0
 protected void BtnAddNew_Click(object sender, EventArgs e)
 {
     MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[1]);
     FvOfficeMaster.ChangeMode(FormViewMode.Insert);
     FvOfficeMaster.DataBind();
 }
Exemplo n.º 3
0
 protected void btnCancel_Click1(object sender, EventArgs e)
 {
     MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[0]);
 }
Exemplo n.º 4
0
 protected void GvOfficeMaster_SelectedIndexChanged(object sender, EventArgs e)
 {
     MvOfficeMaster.SetActiveView(MvOfficeMaster.Views[1]);
     FvOfficeMaster.ChangeMode(FormViewMode.Edit);
 }