2023-04-24
This commit is contained in:
@@ -13,7 +13,8 @@ namespace FineUIPro.Web.AttachFile
|
|||||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
|
|
||||||
var url = Request.Params["fileUrl"];
|
var url = Request.Params["fileUrl"];
|
||||||
var Baseurl = "https://view.officeapps.live.com/op/embed.aspx?src=";
|
// var Baseurl = "https://view.officeapps.live.com/op/embed.aspx?src=";
|
||||||
|
var Baseurl = "https://view.xdocin.com/view?src=";
|
||||||
var Fileurl = Funs.SGGLUrl + url.Replace(Funs.RootPath, "");
|
var Fileurl = Funs.SGGLUrl + url.Replace(Funs.RootPath, "");
|
||||||
var newurl = "";
|
var newurl = "";
|
||||||
var FiletExtension = Path.GetExtension(url);
|
var FiletExtension = Path.GetExtension(url);
|
||||||
|
|||||||
Binary file not shown.
@@ -177,9 +177,13 @@
|
|||||||
<f:Panel ID="Panel17" Layout="Column" ShowHeader="false" ShowBorder="false" runat="server">
|
<f:Panel ID="Panel17" Layout="Column" ShowHeader="false" ShowBorder="false" runat="server">
|
||||||
<Items>
|
<Items>
|
||||||
<f:Label runat="server" ID="Label" Text=" " LabelAlign="Right" Width="140px"></f:Label>
|
<f:Label runat="server" ID="Label" Text=" " LabelAlign="Right" Width="140px"></f:Label>
|
||||||
<f:Button ID="btnAttachUrl" Text="上传合同文件" ToolTip="附件" Icon="TableCell" runat="server"
|
<f:Button ID="btnAttachUrl" Text="合同签字盖章扫描版文件" ToolTip="附件" Icon="TableCell" runat="server"
|
||||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
|
<f:Button ID="btnAttachUrl_1" Text="合同评审及审批表" ToolTip="附件" Icon="TableCell" runat="server"
|
||||||
|
OnClick="btnAttachUrl_1_Click" ValidateForms="SimpleForm1">
|
||||||
|
</f:Button>
|
||||||
|
|
||||||
</Items>
|
</Items>
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
</Items>
|
</Items>
|
||||||
@@ -187,10 +191,6 @@
|
|||||||
|
|
||||||
|
|
||||||
</Rows>
|
</Rows>
|
||||||
<Toolbars>
|
|
||||||
<f:Toolbar ID="Toolbar5" Position="Bottom" ToolbarAlign="Right" runat="server">
|
|
||||||
</f:Toolbar>
|
|
||||||
</Toolbars>
|
|
||||||
</f:Form>
|
</f:Form>
|
||||||
|
|
||||||
</Items>
|
</Items>
|
||||||
|
|||||||
@@ -153,7 +153,14 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
}
|
}
|
||||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ContractStandingBook&menuId={1}", this.ContractId, BLL.Const.ContractStandingBookMenuId)));
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ContractStandingBook&menuId={1}", this.ContractId, BLL.Const.ContractStandingBookMenuId)));
|
||||||
}
|
}
|
||||||
|
protected void btnAttachUrl_1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(ContractId))
|
||||||
|
{
|
||||||
|
ContractId = Guid.NewGuid().ToString();
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ContractStandingBook&menuId={1}", this.ContractId+"-1", BLL.Const.ContractStandingBookMenuId)));
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected void btnSave_Click(object sender, EventArgs e)
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
@@ -254,7 +261,12 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
{
|
{
|
||||||
if (!BLL.AttachFileService.Getfile(ContractId , BLL.Const.ContractStandingBookMenuId))
|
if (!BLL.AttachFileService.Getfile(ContractId , BLL.Const.ContractStandingBookMenuId))
|
||||||
{
|
{
|
||||||
ShowNotify("未上传合同文件,无法提交!", MessageBoxIcon.Warning);
|
ShowNotify("未上传合同签字盖章扫描版文件,无法提交!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!BLL.AttachFileService.Getfile(this.ContractId + "-1", BLL.Const.ContractStandingBookMenuId))
|
||||||
|
{
|
||||||
|
ShowNotify("未上传合同评审及审批表,无法提交!", MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Save(Const.BtnSubmit);
|
Save(Const.BtnSubmit);
|
||||||
|
|||||||
@@ -411,13 +411,13 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
protected global::FineUIPro.Button btnAttachUrl;
|
protected global::FineUIPro.Button btnAttachUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toolbar5 控件。
|
/// btnAttachUrl_1 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Toolbar Toolbar5;
|
protected global::FineUIPro.Button btnAttachUrl_1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toolbar2 控件。
|
/// Toolbar2 控件。
|
||||||
|
|||||||
Reference in New Issue
Block a user