Exemplo n.º 1
0
        public DocumentManageView(DocumentMangMode mode)
        {
            InitializeComponent();
            _wsClient = new WcfClient <ISDMService>();
            if (mode == DocumentMangMode.CanUpLoad)
            {
                stplUpView.Visibility = Visibility.Visible;

                delColum.Visible = true;
            }
            else
            {
                stplUpView.Visibility = Visibility.Collapsed;
                delColum.Visible      = false;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 新建文档管理弹窗
        /// </summary>
        /// <param name="beLongFunction">所属模块</param>
        /// <param name="functionPKNO">所属模块PKNO</param>
        /// <param name="Istate">文档状态 0:普通文档 1:封面</param>
        /// <param name="groupNo">分组编号</param>
        /// <param name="mode">是否可读可写</param>
        public static void NewDocumentManage(string beLongFunction, string functionPKNO, string groupNo, int Istate, DocumentMangMode mode)
        {
            DXWindow           window             = new DXWindow();
            DocumentManageView documentManageView = new DocumentManageView(mode);

            documentManageView.BelongFunction = beLongFunction;
            documentManageView.FunctionPKNO   = functionPKNO;
            documentManageView.GroupNo        = groupNo;

            //documentManageView.IsRead = mode;
            documentManageView.BindGridView();
            documentManageView.Istate    = Istate;
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.Content = documentManageView;
            window.ShowDialog();
        }