// 공지사항 대한 구성설정 public void Set_ElementInfo(Infos_Notice _notice) { //newsType = _type; infos_notice = _notice; ctime = infos_notice.ctime; Set_NewsType(_notice); Apply_element(newsType); // element 의 어느 토글키 소속인지 알도록 설정 Set_ToggleType(newsType); }
void Applydata_Notices(List <object> lstData) { for (int i = 0; i < lstData.Count; i++) { List <object> _lstNotice = (List <object>)lstData[i]; Infos_Notice _infos_notice = new Infos_Notice(); for (int j = 0; j < _lstNotice.Count; j++) { if (j == 0) { _infos_notice.NotiIdx = Convert.ToByte(_lstNotice[j]); } else if (j == 1) { _infos_notice.NotiTitle = Convert.ToString(_lstNotice[j]); } else if (j == 2) { _infos_notice.NotiText = Convert.ToString(_lstNotice[j]); } else if (j == 3) { _infos_notice.ctime = Check_returnTime(_lstNotice[j]); } else if (j == 4) { _infos_notice.Noticetime = Check_returnTime(_lstNotice[j]); } else if (j == 5) { _infos_notice.LggCd = Convert.ToByte(_lstNotice[j]); } } Infos_Notices[_infos_notice.NotiIdx] = _infos_notice; } }
void Set_NewsType(Infos_Notice _notice) { newsType = NEWSTYPE.INFORM; }