예제 #1
0
        void ProcessFromRequest(eEditMode editMode)
        {
            switch (editMode)
            {
            case eEditMode.新增:
                CurrEditMode = editMode;
                ClearFromControls();
                HelperUtil.ControlReadOnly(pnlMain, false);

                dbi_Sequence.Value = commonDAO.GetCameraSort();
                break;

            case eEditMode.修改:
                CurrEditMode = editMode;
                InitObjectInfo();
                HelperUtil.ControlReadOnly(pnlMain, false);
                break;

            case eEditMode.查看:
                CurrEditMode = editMode;
                InitObjectInfo();
                HelperUtil.ControlReadOnly(pnlMain, true);
                break;

            case eEditMode.除:
                CurrEditMode = editMode;
                DelTreeNode();
                ClearFromControls();
                HelperUtil.ControlReadOnly(pnlMain, true);
                break;
            }
        }