// 2017/07/14 Add Start #region フォロー対象部署オートコンプリート処理 /// <summary> /// フォロー対象部署オートコンプリート処理 /// </summary> /// <param name="FMC_mc">FMC/mc区分</param> /// <param name="kaihatu_id">開発符号</param> /// <param name="by_pu">BYPU区分</param> /// <param name="event_no">イベントNO</param> /// <returns>結果ステータス</returns> protected void getKaCodeData(String FMC_mc, String kaihatu_id, String by_pu, String event_no) { BuisinessLogic.BLFollowAnswer bLogic = new BuisinessLogic.BLFollowAnswer(); // AutoComplete の課コードリスト取得 kaCodeFollowData = bLogic.getKaCodeFollowDataList(FMC_mc, kaihatu_id, by_pu, event_no); string kaCodeInfo = ""; for (int i = 0; i < kaCodeFollowData.Rows.Count; i++) { if (i > 0) { kaCodeInfo += ",\n"; } kaCodeInfo += "{ label: '" + kaCodeFollowData.Rows[i]["KA_CODE"].ToString().Trim() + "', value: '" + kaCodeFollowData.Rows[i]["KA_CODE"].ToString().Trim() + "'}"; } ViewState["KaCodeInfo"] = kaCodeInfo; }
/// <summary> /// 画面表示データ取得処理 /// </summary> protected void DispDataGet() { BuisinessLogic.BLFollowAnswer bLogic = new BuisinessLogic.BLFollowAnswer(); gbFollowData = bLogic.GetFollowDataList(ViewState["FMC_mc"].ToString(), ViewState["KAIHATU_ID"].ToString(), ViewState["BY_PU"].ToString(), ViewState["EVENT_NO"].ToString(), hdKacode.Value); if (gbFollowData.Rows.Count > 0) { int pgsu = gbFollowData.Rows.Count / Def.DefFOLLOW_LINECNT; int amari = gbFollowData.Rows.Count % Def.DefFOLLOW_LINECNT; int curpage = int.Parse(hdPageNo.Value.ToString()); if (pgsu < 1) { pgsu = 1; } else { if (amari != 0) { pgsu++; } } if (pgsu - 1 < curpage) { pgsu = curpage - 1; hdPageNo.Value = pgsu.ToString(); } } else { hdPageNo.Value = "0"; } gbStartPage = int.Parse(hdPageNo.Value.ToString()); pnlFollowAnswer.Visible = true; }