Esempio n. 1
0
 protected void BtnDeleting_Click(object sender, EventArgs e)
 {
     try
     {
         R2CoreTransportationAndLoadNotificationStandardLoadCapacitorLoadStructure NSS = UCGetInformation(false);
         if (NSS.nEstelamId != 0)
         {
             R2CoreTransportationAndLoadNotificationMClassLoadCapacitorLoadManipulationManagement.LoadCapacitorLoadDeleting(NSS.nEstelamId);
             UCRefreshInformation();
             UCInformationChangedEvent?.Invoke(this, new EventArgs());
         }
     }
     catch (Exception ex)
     { Response.Write("<script>alert('" + ex.Message + "')</script>"); }
 }
Esempio n. 2
0
 protected void BtnRegistering_Click(object sender, EventArgs e)
 {
     try
     {
         R2CoreTransportationAndLoadNotificationStandardLoadCapacitorLoadStructure NSS = UCGetInformation(true);
         if (NSS.nEstelamId != 0)
         {
             R2CoreTransportationAndLoadNotificationMClassLoadCapacitorLoadManipulationManagement.LoadCapacitorLoadEditing(NSS);
         }
         else
         {
             long mynEstelamId = R2CoreTransportationAndLoadNotificationMClassLoadCapacitorLoadManipulationManagement.LoadCapacitorLoadRegistering(NSS);
             UCViewInformation(R2CoreTransportationAndLoadNotificationMClassLoadCapacitorLoadManagement.GetNSSLoadCapacitorLoad(mynEstelamId));
         }
         UCInformationChangedEvent?.Invoke(this, new EventArgs());
     }
     catch (Exception ex)
     { Response.Write("<script>alert('" + ex.Message + "')</script>"); }
 }