예제 #1
0
        private void simpleButton_add_Click(object sender, EventArgs e)
        {
            RichTextEditorForm richTextEditorForm = new RichTextEditorForm(disposePlanService);

            richTextEditorForm.ShowDialog();
            initData(formatWhere());
        }
예제 #2
0
        private void simpleButton_view_Click(object sender, EventArgs e)
        {
            if (gridView.SelectedRowsCount != 1)
            {
                MessageBox.Show("请选择一条记录!", "警告");
                return;
            }
            //获取选中的行的行号
            int[]              rowNums            = gridView.GetSelectedRows();
            DataTable          dt                 = (DataTable)gridControl.DataSource;
            RichTextEditorForm richTextEditorForm = new RichTextEditorForm(Int32.Parse(dt.Rows[rowNums[0]][CommonText.ID_COLUMN].ToString()), dt.Rows[rowNums[0]][CommonText.TITLE_COLOMUN].ToString(), disposePlanService, true);

            richTextEditorForm.ShowDialog();
        }
예제 #3
0
        private List <GateRecord> abnormalList = new List <GateRecord>();//检测异常人员集

        public void addAbnormalList(GateRecordResponse gateRecordResponse)
        {
            int gate_id = gateRecordResponse.gate_record.gate_id;

            gateRecordResponse.gate_record.unnormal_type_name = zhuhai.util.AbnormalType.getAllAbnormalTypeNames()[gateRecordResponse.gate_record.unnormal_type + 1];
            gateRecordResponse.gate_record.gate_mode_name     = zhuhai.util.GateWorkState.getAllGateWorkStateNames()[gateRecordResponse.gate_record.gate_mode];
            abnormalList.Insert(0, gateRecordResponse.gate_record);
            //超过显示的数量则删除最后一条记录
            if (abnormalList.Count > AppConfig.personNo)
            {
                abnormalList.RemoveAt(abnormalList.Count - 1);
            }
            gridControl_abnormal.DataSource = abnormalList;
            gridControl_abnormal.RefreshDataSource();

            if (!this.IsDisposed)
            {
                System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(this.channelBlinkThread), gate_id);
                ICustomsCMS server = XmlRpcInstance.getInstance();


                if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.Temperatare && MessageBox.Show("检查到温度异常记录,是否切换到温度异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "温度异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
                else if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.Nuclear && MessageBox.Show("检查到核素异常记录,是否切换到核素异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "核素异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
                else if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.TemperatareNuclear && MessageBox.Show("检查到温度核素异常记录,是否切换到温度核素异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "温度核素异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
                else if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.Shenbao && MessageBox.Show("检查到申报异常记录,是否切换到申报异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "申报异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
            }
        }
예제 #4
0
 private void simpleButton_add_Click(object sender, EventArgs e)
 {
     RichTextEditorForm richTextEditorForm = new RichTextEditorForm(workRuleService);
     richTextEditorForm.ShowDialog();
     initData(formatWhere());
 }
예제 #5
0
 private void simpleButton_view_Click(object sender, EventArgs e)
 {
     if (gridView.SelectedRowsCount != 1)
     {
         MessageBox.Show("请选择一条记录!", "警告");
         return;
     }
     //获取选中的行的行号
     int[] rowNums = gridView.GetSelectedRows();
     DataTable dt = (DataTable)gridControl.DataSource;
     RichTextEditorForm richTextEditorForm = new RichTextEditorForm(Int32.Parse(dt.Rows[rowNums[0]][CommonText.ID_COLUMN].ToString()),dt.Rows[rowNums[0]][CommonText.TITLE_COLOMUN].ToString(), workRuleService, true);
     richTextEditorForm.ShowDialog();
 }
예제 #6
0
        public void addAbnormalList(GateRecordResponse gateRecordResponse)
        {
            int gate_id = gateRecordResponse.gate_record.gate_id;
            gateRecordResponse.gate_record.unnormal_type_name = zhuhai.util.AbnormalType.getAllAbnormalTypeNames()[gateRecordResponse.gate_record.unnormal_type + 1];
            gateRecordResponse.gate_record.gate_mode_name = zhuhai.util.GateWorkState.getAllGateWorkStateNames()[gateRecordResponse.gate_record.gate_mode];
            abnormalList.Insert(0, gateRecordResponse.gate_record);
            //超过显示的数量则删除最后一条记录
            if (abnormalList.Count > AppConfig.personNo)
            {
                abnormalList.RemoveAt(abnormalList.Count - 1);
            }
            gridControl_abnormal.DataSource = abnormalList;
            gridControl_abnormal.RefreshDataSource();

            if (!this.IsDisposed)
            {

                System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(this.channelBlinkThread), gate_id);
                ICustomsCMS server = XmlRpcInstance.getInstance();

                if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.Temperatare && MessageBox.Show("检查到温度异常记录,是否切换到温度异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "温度异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
                else if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.Nuclear && MessageBox.Show("检查到核素异常记录,是否切换到核素异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "核素异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
                else if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.TemperatareNuclear && MessageBox.Show("检查到温度核素异常记录,是否切换到温度核素异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "温度核素异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }
                else if (gateRecordResponse.gate_record.unnormal_type == (int)zhuhai.xmlrpc.AbnormalType.Shenbao && MessageBox.Show("检查到申报异常记录,是否切换到申报异常预案中?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    RichTextEditorForm richTextEditorForm = new RichTextEditorForm(0, "申报异常", DisposePlanService.getInstance(), true);
                    richTextEditorForm.ShowDialog();
                }

            }
        }
예제 #7
0
 private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     //初始一个图文RichTextEditorForm,以防止启动太慢
     RichTextEditorForm form = new RichTextEditorForm(null);
 }
예제 #8
0
 private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     //初始一个图文RichTextEditorForm,以防止启动太慢
     RichTextEditorForm form = new RichTextEditorForm(null);
 }