Exemple #1
0
        private void 实时监控异常处理_Load(object sender, EventArgs e)
        {
            AssociateDataControls(new Control[] { pnl异常情况, pnl处理时间, pnl处理结果 },
                                  m_cm.DisplayManager, "实时监控_车辆作业_异常处理");
            m_cm.AllowInsert = true;
            m_cm.AddNew();

            车辆作业 clzy = m_clzy;

            using (IRepository rep = ServiceProvider.GetService <IRepositoryFactory>().GenerateRepository <车辆作业>())
            {
                rep.Initialize(clzy.最新作业状态, clzy);
            }

            m_cm.DisplayManager.DataControls["异常情况"].ReadOnly          = true;
            m_cm.DisplayManager.DataControls["异常情况"].SelectedDataValue = clzy.最新作业状态.异常情况;

            m_cm.DisplayManager.DataControls["处理时间"].SelectedDataValue = DateTime.Now;

            m_dao.处理作业异常(m_clzy, null, null, true);
        }