protected void Page_Load(object sender, EventArgs e) { const string METHOD_NAME = "Page_Load"; try { Common.AppHelper.HideWarning((HtmlGenericControl)Master.FindControl("divWarning")); txtFromSHID.Attributes.Add("onkeypress", "CheckFromEnterKey(event);"); txtToSHID.Attributes.Add("onkeypress", "CheckToEnterKey(event);"); btnTransferDelete.Attributes.Add("onclick", "confirm('Are you sure you want to delete this transfer? Press Ok to continue or Cancel to abort.');"); btnCustomOk.Attributes.Add("onclick", "copyCustomSelection();"); locPDF.Text = ""; if (Globals.IsUserPermissionReadOnly((RolePrincipal)User)) { btnTransferAdd.Enabled = false; btnTransferUpdate.Enabled = false; btnTransferDelete.Enabled = false; } if (!Page.IsPostBack) { BeetDataDomain.FillCropYear(ddlCropYear, DateTime.Now.Year.ToString()); ResetFromSHID(); ResetToSHID(); DoCropYearChange(); } } catch (System.Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); ((PrimaryTemplate)Page.Master).ShowWarning(ex); } }
protected void Page_Load(object sender, EventArgs e) { const string METHOD_NAME = "Page_Load"; try { Common.AppHelper.HideWarning((HtmlGenericControl)Master.FindControl("divWarning")); Common.AppHelper.HideWarning(addrWarning); txtSHID.Attributes.Add("onkeypress", "CheckEnterKey(event);"); btnDeleteDeduction.Attributes.Add("onclick", "confirm('Are you sure you want to delete this Member Equity Deduction?');"); //BBS TEST ONLY !!!! //_paymentDate = _paymentDate.AddYears(-1); if (!Page.IsPostBack) { BeetDataDomain.FillCropYear(ddlCropYear, DateTime.Now.Year.ToString()); //WSCField.FillCropYear(ddlCropYear, DateTime.Now.Year.ToString()); MySHID = ""; FillGridEqDeduction("0", 0); FillGridEqPayment("0", _paymentDate); FillEquityDeductionList(); } } catch (System.Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); ((PrimaryTemplate)Page.Master).ShowWarning(ex, "Unable to load page correctly at this time.", addrWarning); } }
protected void Page_Load(object sender, EventArgs e) { const string METHOD_NAME = "Page_Load"; try { Common.AppHelper.HideWarning((HtmlGenericControl)Master.FindControl("divWarning")); Common.AppHelper.HideWarning(addrWarning); txtSHID.Attributes.Add("onkeypress", "CheckEnterKey(event);"); if (!Page.IsPostBack) { BeetDataDomain.FillCropYear(ddlCropYear, DateTime.Now.Year.ToString()); MySHID = ""; btnCustomPct.Text = OVERRIDE_OFF; txtOverPlantPercentage.ReadOnly = true; txtOverPlantPercentage.CssClass = "highlightRO"; BeetDataDomain.FillFactory(ddlFactoryOverPlant); FillOverPlantAcceptance(); } } catch (System.Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); ((PrimaryTemplate)Page.Master).ShowWarning(ex, "Unable to load page correctly at this time.", addrWarning); } }
private void FillControls() { const string METHOD_NAME = "FillControls"; try { BeetDataDomain.FillCropYear(ddlCropYear, DateTime.Now.Year.ToString()); FillStations(); } catch (Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); throw (wex); } }
protected void Page_Load(object sender, EventArgs e) { const string METHOD_NAME = "Page_Load"; try { Common.AppHelper.HideWarning((HtmlGenericControl)Master.FindControl("divWarning")); btnPost.Attributes.Add("onclick", "confirm('This will permanently change all Undecided members to No, and cannot be undone. Do you want to continue?');"); if (!Page.IsPostBack) { BeetDataDomain.FillCropYear(ddlCropYear, DateTime.Now.Year.ToString()); FillFactoryGrid(); } } catch (System.Exception ex) { Common.CException wex = new Common.CException(MOD_NAME + METHOD_NAME, ex); ((PrimaryTemplate)Page.Master).ShowWarning(ex); } }