Exemplo n.º 1
0
    protected void ObjectDataSource_govtdoc_inserted(object sender, EventArgs e)
    {
        //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);
        //}

        GridView2.DataBind();

        mvgovtdoc.SetActiveView(mvgovtdoc.Views[0]);
        FvGovtDoc.ChangeMode(FormViewMode.ReadOnly);
    }
Exemplo n.º 2
0
 protected void Button_new_Click(object sender, EventArgs e)
 {
     mvgovtdoc.SetActiveView(mvgovtdoc.Views[1]);
     FvGovtDoc.ChangeMode(FormViewMode.ReadOnly);
 }