예제 #1
0
 protected void odsDepartmentMasterById_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
 {
     MvDepartmentMaster.SetActiveView(MvDepartmentMaster.Views[0]);
     GvDepartmentMaster.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);
     }
 }
예제 #2
0
 protected void btnCancel_Click1(object sender, EventArgs e)
 {
     MvVendorMaster.SetActiveView(MvVendorMaster.Views[0]);
     GvDepartmentMaster.DataBind();
 }
예제 #3
0
 protected void OdsVendorMaster_Updated(object sender, ObjectDataSourceStatusEventArgs e)
 {
     MvVendorMaster.SetActiveView(MvVendorMaster.Views[0]);
     GvDepartmentMaster.DataBind();
 }