示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             WcLoadCapacitorLoadsCollectionSummaryIntelligently.WcViewInformation();
         }
         WcLoadCapacitorLoadsCollectionSummaryIntelligently.WcLoadCapacitorLoadSelectedEvent += WcLoadCapacitorLoadsCollectionSummaryIntelligently_WcLoadCapacitorLoadSelectedEvent;
         GridViewLoadCapacitorLoadLoadPermissionsIssued.SelectedIndexChanged += GridViewLoadCapacitorLoadLoadPermissionsIssued_SelectedIndexChanged;
     }
     catch (Exception ex)
     { Page.ClientScript.RegisterStartupScript(GetType(), "WcViewAlert", "WcViewAlert('1','" + MethodBase.GetCurrentMethod().ReflectedType.FullName + "." + MethodBase.GetCurrentMethod().Name + "." + ex.Message + "');", true); }
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         WcLoadCapacitorLoadsCollectionSummaryIntelligently.WcCurrentListType = LoadCapacitorLoadsListType.Sedimented;
         WcLoadCapacitorLoadsCollectionSummaryIntelligently.WcLoadCapacitorLoadSelectedEvent += WcLoadCapacitorLoadsCollectionSummaryIntelligently_WcLoadCapacitorLoadSelectedEvent;
         if (!IsPostBack)
         {
             WcLoadCapacitorLoadsCollectionSummaryIntelligently.WcViewInformation();
         }
         BtnLoadAllocation.Click    += BtnLoadAllocation_Click;
         BtnNewLoadAllocation.Click += BtnNewLoadAllocation_Click;
     }
     catch (Exception ex)
     { Page.ClientScript.RegisterStartupScript(GetType(), "WcViewAlert", "WcViewAlert('1','" + MethodBase.GetCurrentMethod().ReflectedType.FullName + "." + MethodBase.GetCurrentMethod().Name + "." + ex.Message + "');", true); }
 }