示例#1
0
        private void InitData(List <SYS_COUNTER> data)
        {
            var list     = DaoQueueserial.FindList();
            var halllist = DaoHall.FindList();

            if (null != data)
            {
                foreach (var item in data)
                {
                    item.Hall = halllist.FirstOrDefault(obj => obj.HALL_NO == item.HALL_NO);
                    item.PRI1_BUSI_SER_NAM = InitBusiSer(item.PRI1_BUSI_SER, list);
                    item.PRI2_BUSI_SER_NAM = InitBusiSer(item.PRI2_BUSI_SER, list);
                    item.PRI3_BUSI_SER_NAM = InitBusiSer(item.PRI3_BUSI_SER, list);
                    item.PRI4_BUSI_SER_NAM = InitBusiSer(item.PRI4_BUSI_SER, list);
                    item.PRI5_BUSI_SER_NAM = InitBusiSer(item.PRI5_BUSI_SER, list);
                }
            }
        }
示例#2
0
 private void LoadSelect()
 {
     ViewData["Q_SYSNOLIST"] = new SelectList(DaoHall.FindList(), "HALL_NO", "HALL_NAM");
     ViewData["QUSERIAL"]    = new SelectList(DaoQueueserial.FindList(), "Q_SERIALID", "Q_SERIALNAME");
 }