private string[] GetLastFocusFieldDetails() { string[] ReturnArray = new string[2]; Site SiteMaster = this.Master as Site; string Details = string.Empty; if (SiteMaster != null) { Details = SiteMaster.GetLastFocusField(); } else { SiteNewPage SiteNewPageMaster = this.Master as SiteNewPage; if (SiteNewPageMaster != null) { Details = SiteNewPageMaster.GetLastFocusField(); } } if (string.IsNullOrEmpty(Details)) { Details = ":"; // Force return of an array with two empty strings } ReturnArray = Details.Split(':'); return(ReturnArray); }
protected new void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); PrintOptions Options = new PrintOptions(); Options.Indirect = true; Options.Fit = true; Site SiteMaster = this.Master as Site; if (SiteMaster != null) { SiteMaster.printOptions = Options; ((Site)this.Master).OnClearFields += new EventHandler(ClearFields); } else { SiteNewPage SiteNewPageMaster = this.Master as SiteNewPage; if (SiteNewPageMaster != null) { SiteNewPageMaster.printOptions = Options; } } string GRN = Request.QueryString["GRN"]; ITroposQuery grdORDERLINERECEIPTS_Query = new Populate_grdORDERLINERECEIPTS(UserContext, GRN); DataTable grd_data_table = Helpers.TroposQuery(grdORDERLINERECEIPTS_Query, UserContext); grdORDERLINERECEIPTS.DataSource = grd_data_table; grdORDERLINERECEIPTS.DataBind(); }
protected new void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); PrintOptions Options = new PrintOptions(); Options.Indirect = true; Options.Fit = true; Site SiteMaster = this.Master as Site; if (SiteMaster != null) { SiteMaster.printOptions = Options; ((Site)this.Master).OnClearFields += new EventHandler(ClearFields); } else { SiteNewPage SiteNewPageMaster = this.Master as SiteNewPage; if (SiteNewPageMaster != null) { SiteNewPageMaster.printOptions = Options; } } string RejectNoteNo = Request.QueryString["RejectNote"]; ITroposQuery grdREJECTNOTEINFORMATION_Query = new Populate_grdREJECTNOTEINFORMATION(UserContext, RejectNoteNo); DataTable grd_data_table = Helpers.TroposQuery(grdREJECTNOTEINFORMATION_Query, UserContext); grdREJECTNOTEINFORMATION.DataSource = grd_data_table; grdREJECTNOTEINFORMATION.DataBind(); }
private void PopupTxn(string action, bool autoExec, Dictionary <string, string> fields) { MenuItemFactory mif = new MenuItemFactory(); AbstractMenuItem mi = mif.ItemForContentCode(this.UserContext, action); if (Page.Master is Site) { Site Master = (Site)Page.Master; Master.LaunchMenuItem(mi, action, string.Empty, true, false, false, autoExec, fields); } else { SiteNewPage Master = (SiteNewPage)Page.Master; Master.LaunchMenuItem(mi, action, string.Empty, true, false, false, autoExec, fields); } }
protected new void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); PrintOptions Options = new PrintOptions(); Options.Indirect = true; Options.Fit = true; Site SiteMaster = this.Master as Site; if (SiteMaster != null) { SiteMaster.printOptions = Options; ((Site)this.Master).OnClearFields += new EventHandler(ClearFields); } else { SiteNewPage SiteNewPageMaster = this.Master as SiteNewPage; if (SiteNewPageMaster != null) { SiteNewPageMaster.printOptions = Options; } } TransAlert.Visible = false; if (!IsPostBack) { try { UpdateGoodsInTable(); } catch { grdGOODSIN.Visible = false; } } }