This commit is contained in:
parent
59f3f48b55
commit
bdae153c1e
|
@ -31,3 +31,4 @@ bin-release/
|
||||||
/HJGL_DS/FineUIPro.Web/FileUpload/FaceRecognition
|
/HJGL_DS/FineUIPro.Web/FileUpload/FaceRecognition
|
||||||
/HJGL_DS/WebAPI/.vs
|
/HJGL_DS/WebAPI/.vs
|
||||||
/HJGL_DS/FineUIPro.Web/FileUpload/WeldMat/StockIn
|
/HJGL_DS/FineUIPro.Web/FileUpload/WeldMat/StockIn
|
||||||
|
/HJGL_DS/FineUIPro.Web/FileUpload/Common/WelderManage
|
||||||
|
|
|
@ -190,11 +190,26 @@ namespace FineUIPro.Web.AttachFile
|
||||||
info = new FileInfo(url);
|
info = new FileInfo(url);
|
||||||
}
|
}
|
||||||
if (Path.GetExtension(savedName) == ".gif" || Path.GetExtension(savedName) == ".jpg" || Path.GetExtension(savedName) == ".jpeg" || Path.GetExtension(savedName) == ".bmp" || Path.GetExtension(savedName) == ".png")
|
if (Path.GetExtension(savedName) == ".gif" || Path.GetExtension(savedName) == ".jpg" || Path.GetExtension(savedName) == ".jpeg" || Path.GetExtension(savedName) == ".bmp" || Path.GetExtension(savedName) == ".png")
|
||||||
|
{
|
||||||
|
if (AttachPath.Contains("FileUpload/Common/WelderManage")) //焊工复印件下载文件
|
||||||
|
{
|
||||||
|
string fileName = Path.GetFileName(url);
|
||||||
|
long fileSize = info.Length;
|
||||||
|
System.Web.HttpContext.Current.Response.Clear();
|
||||||
|
System.Web.HttpContext.Current.Response.ContentType = "application/x-zip-compressed";
|
||||||
|
System.Web.HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||||
|
System.Web.HttpContext.Current.Response.AddHeader("Content-Length", fileSize.ToString());
|
||||||
|
System.Web.HttpContext.Current.Response.TransmitFile(url, 0, fileSize);
|
||||||
|
System.Web.HttpContext.Current.Response.Flush();
|
||||||
|
System.Web.HttpContext.Current.Response.Close();
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
string httpUrl = Funs.HJGLUrl + AttachPath + "\\" + savedName;
|
string httpUrl = Funs.HJGLUrl + AttachPath + "\\" + savedName;
|
||||||
httpUrl = httpUrl.Replace('\\', '/');
|
httpUrl = httpUrl.Replace('\\', '/');
|
||||||
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script type='text/javascript'>window.open('" + httpUrl + "');</script>");
|
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script type='text/javascript'>window.open('" + httpUrl + "');</script>");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string fileName = Path.GetFileName(url);
|
string fileName = Path.GetFileName(url);
|
||||||
|
|
|
@ -115,3 +115,41 @@ IP地址:::1
|
||||||
|
|
||||||
出错时间:08/04/2025 15:24:06
|
出错时间:08/04/2025 15:24:06
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:SqlException
|
||||||
|
错误信息:在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL Network Interfaces, error: 26 - 定位指定的服务器/实例时出错)
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
|
||||||
|
在 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
|
||||||
|
在 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
|
||||||
|
在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
|
||||||
|
在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
|
||||||
|
在 System.Data.SqlClient.SqlConnection.Open()
|
||||||
|
在 System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user)
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe()
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode()
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||||
|
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
|
||||||
|
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
|
||||||
|
在 BLL.Sys_UserService.UserLogOn(String account, String password, Boolean rememberMe, Page page) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\BLL\Common\SysManage\Sys_UserService.cs:行号 39
|
||||||
|
在 FineUIPro.Web.Login.btnLogin_Click(Object sender, EventArgs e)
|
||||||
|
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||||
|
在 (Button , EventArgs )
|
||||||
|
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||||
|
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||||
|
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||||
|
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||||
|
出错时间:08/07/2025 10:39:13
|
||||||
|
出错文件:http://localhost:64304/Login.aspx
|
||||||
|
IP地址:::1
|
||||||
|
|
||||||
|
出错时间:08/07/2025 10:39:13
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!--连接字符串-->
|
<!--连接字符串-->
|
||||||
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||||
<!--系统名称-->
|
<!--系统名称-->
|
||||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||||
|
|
|
@ -84,6 +84,9 @@
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
|
<f:LinkButton ID="UploadAttach2" runat="server" Label="证件复印件" Text="上传和查看" OnClick="btnAttachUrl2_Click"
|
||||||
|
LabelAlign="Right">
|
||||||
|
</f:LinkButton>
|
||||||
<f:FileUpload ID="filePhoto" runat="server" ButtonText="上传电子签名" ButtonOnly="true"
|
<f:FileUpload ID="filePhoto" runat="server" ButtonText="上传电子签名" ButtonOnly="true"
|
||||||
AutoPostBack="true" OnFileSelected="filePhoto_FileSelected">
|
AutoPostBack="true" OnFileSelected="filePhoto_FileSelected">
|
||||||
</f:FileUpload>
|
</f:FileUpload>
|
||||||
|
@ -134,7 +137,7 @@
|
||||||
EnableMaximize="true" EnableResize="true" Title="弹出框" CloseAction="HidePostBack"
|
EnableMaximize="true" EnableResize="true" Title="弹出框" CloseAction="HidePostBack"
|
||||||
EnableIFrame="true">
|
EnableIFrame="true">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
<f:Window ID="Window2" Title="指纹登记" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
<f:Window ID="Window2" Title="附件上传" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="600px"
|
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="600px"
|
||||||
Height="640px">
|
Height="640px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
|
|
|
@ -590,5 +590,20 @@
|
||||||
PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("~/RLSB/WelderTrain.aspx?identityCard={0}", identityCard), "人脸训练", 1260, 680));
|
PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("~/RLSB/WelderTrain.aspx?identityCard={0}", identityCard), "人脸训练", 1260, 680));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 证件复印件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnAttachUrl2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string edit = "0"; // 表示能打开附件上传窗口,但不能上传附件
|
||||||
|
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PersonManageMenuId, Const.BtnSave))
|
||||||
|
{
|
||||||
|
edit = "1";
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Common/WelderManage&menuId={1}&edit={2}", this.WED_ID + "F", Const.HJGL_PersonManageMenuId, edit)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,12 +7,10 @@
|
||||||
// </自动生成>
|
// </自动生成>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace FineUIPro.Web.common.WelderManage
|
namespace FineUIPro.Web.common.WelderManage {
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public partial class WelderSave
|
public partial class WelderSave {
|
||||||
{
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Style1 控件。
|
/// Style1 控件。
|
||||||
|
@ -185,6 +183,15 @@ namespace FineUIPro.Web.common.WelderManage
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextArea txtRemark;
|
protected global::FineUIPro.TextArea txtRemark;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// UploadAttach2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.LinkButton UploadAttach2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// filePhoto 控件。
|
/// filePhoto 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue