private void SetCommentForBroleApplPair (System.Collections.Specialized.NameValueCollection P, HttpResponse httpResponse) { IFuncApplNotes engine = new IFuncApplNotes(HELPERS.NewOdbcConn()); string strIDcuredit = P["idcuredit"]; int i = 0; /* * P["FANtext"] * null * P["text"] * "BASIS" * P["idbrole"] * "218" * P["idappl"] * "77" * */ int idBRole = int.Parse(P["idbrole"]); int idAppl = int.Parse(P["idappl"]); int idcuredit; if (strIDcuredit == "") { idcuredit = engine.NewFuncApplNotes(idBRole, idAppl, P["text"]); } else { idcuredit = int.Parse(strIDcuredit); engine.SetFuncApplNotes(idcuredit, idAppl, P["text"], idBRole); } }
string sapviewmode = "I"; //interactive protected void Page_Load(object sender, EventArgs e) { try { idBR = int.Parse(Request.Params["idBR"]); } catch (Exception) { idBR = -432; } // Special viewing mode param added in May of 2010: // sapview=interactive or html // The default is the former sapviewmode = "I"; try { string mode = Request.Params["sapview"]; sapviewmode = mode.ToUpper().Substring(0, 1); } catch (Exception) { } if (PANEL_tcodelistingmode_HtmlTable != null) { switch (sapviewmode) { case "I": PANEL_tcodelistingmode_HtmlTable.Visible = false; break; case "H": PANEL_tcodelistingmode_interactive.Visible = false; break; } } IProcess engineProcess = new IProcess(HELPERS.NewOdbcConn()); ISubProcess engineSubProcess = new ISubProcess(HELPERS.NewOdbcConn()); IBusRole engineBR = new IBusRole(HELPERS.NewOdbcConn()); theBR = engineBR.GetBusRole(idBR); theSubProcess = engineSubProcess.GetSubProcess(theBR.SubProcessID); theProcess = engineProcess.GetProcess(theSubProcess.ProcessID); // Initialize dynamically-generated portions of the page if (PANELsapdesignnote != null) { IFuncApplNotes engine = new IFuncApplNotes(HELPERS.NewOdbcConn()); returnListFuncApplNotes[] returned = engine.ListFuncApplNotes (null, "\"REFapplication\" = ? AND \"BusRole\" = ?" /* SAP application is ID 57 */, new string[] { "57", idBR.ToString() }, ""); if (returned.Length == 0) { PANELsapdesignnote.Visible = false; } else { STATICTXTsapfuncappdesignnote.Text = returned[0].Comment; } } }