Esempio n. 1
0
 protected void odsPostalDelivery_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
 {
     MvPostalDeliveryTypeLkp.SetActiveView(MvPostalDeliveryTypeLkp.Views[0]);
     GVPostalDeliveryTypeLkp.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);
     }
 }
Esempio n. 2
0
 protected void btnCancel_Click1(object sender, EventArgs e)
 {
     MvPostalDeliveryTypeLkp.SetActiveView(MvPostalDeliveryTypeLkp.Views[0]);
     GVPostalDeliveryTypeLkp.DataBind();
 }