Exemplo n.º 1
0
        private void barTaskTracing_ItemClick(object sender, XtraBars.ItemClickEventArgs e)
        {
            int     handle   = 0;
            DataRow drhandle = this.tileView1.GetDataRow(handle);

            if (this.xtraTabControl1.SelectedTabPage == this.xtraTabPage1)
            {
                handle   = this.tileView1.FocusedRowHandle;
                drhandle = this.tileView1.GetDataRow(handle);
                new Frm我创建的任务预览(
                    CustomAppointmentService.getById(drhandle["task_id"].ToString())
                    , drhandle["emp_id"].ToString()
                    , true
                    ).ShowDialog();
            }
            if (this.xtraTabControl1.SelectedTabPage == this.xtraTabPage2)
            {
                handle   = this.gridView2.FocusedRowHandle;
                drhandle = this.gridView2.GetDataRow(handle);
                new Frm我指派的任务预览(
                    this
                    , CustomAppointmentService.getById(drhandle["task_id"].ToString())
                    , drhandle["delegate_id"].ToString()
                    ).ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            int               handle            = this.gridView1.FocusedRowHandle;
            DataRow           drhandle          = this.gridView1.GetDataRow(handle);
            CustomAppointment customAppointment = CustomAppointmentService.getById(drhandle["task_id"].ToString());

            new Frm我创建的任务预览(customAppointment, customAppointment.OwnerId, false).ShowDialog();
        }
Exemplo n.º 3
0
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            int     handle   = this.tileView1.FocusedRowHandle;
            DataRow drhandle = this.tileView1.GetDataRow(handle);

            new Frm我创建的任务预览(
                CustomAppointmentService.getById(drhandle["task_id"].ToString())
                , drhandle["emp_id"].ToString()
                , true
                ).ShowDialog();
        }
Exemplo n.º 4
0
        private void barButtonItem1_ItemClick(object sender, XtraBars.ItemClickEventArgs e)
        {
            int     handle   = 0;
            DataRow drhandle = this.gridView1.GetDataRow(handle);

            handle   = this.gridView1.FocusedRowHandle;
            drhandle = this.gridView1.GetDataRow(handle);

            new Frm我创建的任务预览(
                CustomAppointmentService.getById(drhandle["task_id"].ToString())
                , drhandle["emp_id"].ToString()
                , true
                ).ShowDialog();
        }