private void 转关箱预排车_Load(object sender, EventArgs e)
        {
            m_全部监管车辆及作业现状Grid = base.AssociateBoundGrid(pnl全部监管车辆及作业现状, "车队级调度_转关箱预排车_监管车辆及作业状况") as DataUnboundGrid;
            m_待排转关箱任务区Grid    = base.AssociateBoundGrid(pnl待排转关箱任务区, "车队级调度_转关箱预排车_待排转关箱任务") as DataUnboundGrid;
            m_暂存计划区Grid       = base.AssociateArchiveGrid(pnl暂存计划区, "车队级调度_转关箱预排车_暂存计划区") as ArchiveUnboundGrid;

            m_全部监管车辆及作业现状Grid.ChangeControlPositionAccordColumn(label1, "第1天");

            m_全部监管车辆及作业现状Grid.DataRowTemplate.Cells["后续作业计划"].DoubleClick += new EventHandler(转关箱预排车_DoubleClick);
            m_待排转关箱任务区Grid.DataRowTemplate.Cells["提单号"].DoubleClick       += new EventHandler(转关箱预排车_DoubleClick);

            m_全部监管车辆及作业现状Grid.EnableDragDrop = true;
            m_待排转关箱任务区Grid.EnableDragDrop    = true;
            m_全部监管车辆及作业现状Grid.GridDragOver  += new System.Windows.Forms.DragEventHandler(m_全部监管车辆及作业现状Grid_GridDragOver);
            m_全部监管车辆及作业现状Grid.GridDragDrop  += new System.Windows.Forms.DragEventHandler(m_全部监管车辆及作业现状Grid_GridDragDrop);
            m_全部监管车辆及作业现状Grid.GridDragStart += new EventHandler <GridDataGragEventArgs>(m_待排转关箱任务区Grid_GridDragStart);
            m_待排转关箱任务区Grid.GridDragOver     += new System.Windows.Forms.DragEventHandler(m_全部监管车辆及作业现状Grid_GridDragOver);
            m_待排转关箱任务区Grid.GridDragDrop     += new System.Windows.Forms.DragEventHandler(m_全部监管车辆及作业现状Grid_GridDragDrop);
            m_待排转关箱任务区Grid.GridDragStart    += new EventHandler <GridDataGragEventArgs>(m_待排转关箱任务区Grid_GridDragStart);

            m_暂存计划区Grid.DisplayManager.PositionChanged += new EventHandler(DisplayManager_PositionChanged);

            Helper.SetGridDefault(this, m_暂存计划区Grid);
            Helper.SetGridDefault(this, m_全部监管车辆及作业现状Grid);
        }
Exemple #2
0
        private void 任务预备案_Load(object sender, EventArgs e)
        {
            m_rightGrid = base.AssociateArchiveGrid(pnl待确认区, "任务备案_任务预备案") as ArchiveUnboundGrid;
            var cm = m_rightGrid.ControlManager;

            m_cm  = m_rightGrid.ControlManager as IWindowControlManager;
            m_cmT = m_cm as IWindowControlManager <任务>;

            MyTemplateForm.AddControl(pnl备案明细窗体, new 备案明细窗体(cm, m_gridName));
            cm.DisplayManager.DataControls["装货地编号"].SelectedDataValueChanged += new EventHandler(任务预备案_SelectedDataValueChanged);
            cm.DisplayManager.DataControls["卸货地编号"].SelectedDataValueChanged += new EventHandler(任务预备案_SelectedDataValueChanged);

            cm.StateControls.Add(new StateControl(btn预录入发送, false));
            cm.StateControls.Add(new StateControl(btn暂存待确认, false));
            cm.StateControls.Add(new StateControl(btn删除, StateType.View));
            cm.StateControls.Add(new StateControl(btn新增任务, true));
            cm.StateControls.Add(new StateControl(btn修改, StateType.View));
            cm.StateControls.Add(new StateControl(btn文件导入, true));

            cm.DisplayManager.PositionChanged  += new EventHandler(DisplayManager_PositionChanged);
            cm.DisplayManager.PositionChanging += new CancelEventHandler(DisplayManager_PositionChanging);

            //MyTemplateForm.RestrictToUserAccess(m_cm.DisplayManager.SearchManager, "备案主管");

            Helper.SetGridDefault(this, m_rightGrid);

            cm.DisplayManager.SearchManager.LoadData();
        }
Exemple #3
0
        private void 备案确认情况查询_Load(object sender, EventArgs e)
        {
            m_信息区Grid = base.AssociateArchiveGrid(pnl信息区, "查询统计_备案确认情况查询") as ArchiveUnboundGrid;
            m_信息区Grid.DataRowTemplate.Cells["预录入号"].DoubleClick += new EventHandler(备案确认情况查询_DoubleClick);

            m_信息区Grid.ChangeControlPositionAccordColumn(lbl反馈区, "任务号");

            Helper.SetGridDefault(this, m_信息区Grid);
        }
        private void 任务正式备案_Load(object sender, EventArgs e)
        {
            m_rightGrid = base.AssociateArchiveGrid(pnl任务预备案信息区, m_gridName) as ArchiveUnboundGrid;

            m_cm = m_rightGrid.ControlManager as IWindowControlManager;
            m_rightGrid.DataRowTemplate.Cells["预录入号"].DoubleClick += new EventHandler(任务正式备案_DoubleClick);
            m_rightGrid.DataRowTemplate.Cells["确认"].DoubleClick   += new EventHandler(任务正式备案_DoubleClick);
            m_rightGrid.DataRowTemplate.Cells["拒绝"].DoubleClick   += new EventHandler(任务正式备案_DoubleClick);

            m_rightGrid.ChangeControlPositionAccordColumn(lbl备案确认区, "确认");
            m_rightGrid.ChangeControlPositionAccordColumn(btn批量确认, "确认");

            Helper.SetGridDefault(this, m_rightGrid);

            m_cm.DisplayManager.SearchManager.LoadData();
        }
Exemple #5
0
        private void 任务正式备案二_Load(object sender, EventArgs e)
        {
            m_rightGrid = base.AssociateArchiveGrid(pnl请求区, "任务备案_任务正式备案二") as ArchiveUnboundGrid;
            m_cm        = m_rightGrid.ControlManager as IWindowControlManager;
            m_cmT       = m_cm as IWindowControlManager <任务>;

            MyTemplateForm.AddControl(pnl备案明细窗体, new 备案明细窗体(m_cm, m_gridName));
            base.AssociateDataControls(new System.Windows.Forms.Control[] { pnl任务号 }, m_cm.DisplayManager, m_gridName);

            m_cm.StateControls.Add(new StateControl(btn修改, StateType.View));
            m_cm.StateControls.Add(new StateControl(btn拒绝, StateType.View));
            m_cm.StateControls.Add(new StateControl(btn放弃, false));
            m_cm.StateControls.Add(new StateControl(btn备案确认, StateType.View | StateType.Add | StateType.Edit));

            m_cm.StateControls.Add(new StateControl(btn网上委托导入, true));

            m_cm.DisplayManager.PositionChanged  += new EventHandler(DisplayManager_PositionChanged);
            m_cm.DisplayManager.PositionChanging += new CancelEventHandler(DisplayManager_PositionChanging);

            Helper.SetGridDefault(this, m_rightGrid);

            m_cm.DisplayManager.SearchManager.LoadData();
        }
 private void 车辆报停启用登记_Load(object sender, EventArgs e)
 {
     m_信息区Grid = base.AssociateArchiveGrid(pnl信息区, "车队级调度_车辆报停启用") as ArchiveUnboundGrid;
     Helper.SetGridDefault(this, m_信息区Grid);
 }