Ejemplo n.º 1
0
 void cmdPreviewFile_Click(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e)
 {
     if (this.grdData.CurrentRow != null && this.grdData.CurrentRow.RowType == Janus.Windows.GridEX.RowType.Record)
     {
         XStandFilesInfo model  = this.grdFiles.CurrentRow.DataRow as XStandFilesInfo;
         string          mainId = model.RID;
         XFilePreviewTool.Preview(mainId);
     }
 }
Ejemplo n.º 2
0
        void cmdPreview_Click(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e)
        {
            if (this.tvTask.SelectedNode != null)
            {
                XTaskFilesInfo model = this.tvTask.SelectedNode.Tag as XTaskFilesInfo;

                string mainId = model.RID;

                XFilePreviewTool.Preview(mainId);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 预览附件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void cmdPreviewAttach_Click(object sender, Janus.Windows.UI.CommandBars.CommandEventArgs e)
        {
            if (this.grdTaskAttach.CurrentRow != null &&
                this.grdTaskAttach.CurrentRow.RowType != Janus.Windows.GridEX.RowType.Record)
            {
                XMessageBox.ShowError("请选择要预览附件的记录!");
                return;
            }

            XTaskAttachmentInfo model = this.grdTaskAttach.CurrentRow.DataRow as XTaskAttachmentInfo;
            string mainId             = model.RID;

            XFilePreviewTool.Preview(mainId);
        }
Ejemplo n.º 4
0
 private void btnPreview_Click(object sender, EventArgs e)
 {
     XFilePreviewTool.Preview(this.m_PrimaryKeyId);
 }