Compare commits
No commits in common. "dcc8817988d0876b2028ef7829b6b3d5d243a2b9" and "602427b96488c528c9628c7101d2102067a1867b" have entirely different histories.
dcc8817988
...
602427b964
|
@ -29,4 +29,3 @@
|
||||||
/SGGL/FineUIPro.Web/web.config
|
/SGGL/FineUIPro.Web/web.config
|
||||||
/SGGL/FineUIPro.Web/ErrLog.txt
|
/SGGL/FineUIPro.Web/ErrLog.txt
|
||||||
/SGGL/FineUIPro.Web/FileUpload/TestRun/DriverSub/DriverSub/2024-02
|
/SGGL/FineUIPro.Web/FileUpload/TestRun/DriverSub/DriverSub/2024-02
|
||||||
/SGGL/FineUIPro.Web/FileUpload/TestRun/DriverRun
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
alter table DriverRun_DriverRunPlan add UsedDays int null
|
|
||||||
GO
|
|
|
@ -1,20 +1,16 @@
|
||||||
using BLL;
|
using Newtonsoft.Json.Linq;
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
|
||||||
using System.Data.OleDb;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Web.SessionState;
|
using System.Web.SessionState;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace FineUIPro.Web.AttachFile
|
namespace FineUIPro.Web.AttachFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// fileupload 的摘要说明
|
/// fileupload 的摘要说明
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class fileupload : PageBase, IHttpHandler, IRequiresSessionState
|
public class fileupload : IHttpHandler, IRequiresSessionState
|
||||||
{
|
{
|
||||||
private void ResponseError(HttpContext context)
|
private void ResponseError(HttpContext context)
|
||||||
{
|
{
|
||||||
|
@ -55,10 +51,7 @@ namespace FineUIPro.Web.AttachFile
|
||||||
// 文件名保存的服务器路径
|
// 文件名保存的服务器路径
|
||||||
string savedFileName = GetSavedFileName(fileName);
|
string savedFileName = GetSavedFileName(fileName);
|
||||||
postedFile.SaveAs(context.Server.MapPath("~/" + attachPath + "/" + savedFileName));
|
postedFile.SaveAs(context.Server.MapPath("~/" + attachPath + "/" + savedFileName));
|
||||||
if (owner.Contains("DriverRunPlanK"))
|
|
||||||
{
|
|
||||||
ImportXlsToData(context.Server.MapPath("~/" + attachPath + "/" + savedFileName));
|
|
||||||
}
|
|
||||||
string shortFileName = GetFileName(fileName);
|
string shortFileName = GetFileName(fileName);
|
||||||
string fileType = GetFileType(fileName);
|
string fileType = GetFileType(fileName);
|
||||||
if (!allowExtensions.Contains("." + fileType))
|
if (!allowExtensions.Contains("." + fileType))
|
||||||
|
@ -146,108 +139,5 @@ namespace FineUIPro.Web.AttachFile
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 读Excel提取数据
|
|
||||||
/// <summary>
|
|
||||||
/// 从Excel提取数据--》Dataset
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filename">Excel文件路径名</param>
|
|
||||||
private void ImportXlsToData(string fileName)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
string oleDBConnString = String.Empty;
|
|
||||||
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
|
||||||
oleDBConnString += "Data Source=";
|
|
||||||
oleDBConnString += fileName;
|
|
||||||
oleDBConnString += ";Extended Properties=Excel 8.0;";
|
|
||||||
OleDbConnection oleDBConn = null;
|
|
||||||
OleDbDataAdapter oleAdMaster = null;
|
|
||||||
DataTable m_tableName = new DataTable();
|
|
||||||
DataSet ds = new DataSet();
|
|
||||||
|
|
||||||
oleDBConn = new OleDbConnection(oleDBConnString);
|
|
||||||
oleDBConn.Open();
|
|
||||||
m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
|
|
||||||
|
|
||||||
if (m_tableName != null && m_tableName.Rows.Count > 0)
|
|
||||||
{
|
|
||||||
|
|
||||||
m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim();
|
|
||||||
|
|
||||||
}
|
|
||||||
string sqlMaster;
|
|
||||||
sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]";
|
|
||||||
oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn);
|
|
||||||
oleAdMaster.Fill(ds, "m_tableName");
|
|
||||||
oleAdMaster.Dispose();
|
|
||||||
oleDBConn.Close();
|
|
||||||
oleDBConn.Dispose();
|
|
||||||
|
|
||||||
AddDatasetToSQL(ds.Tables[0], 35);
|
|
||||||
}
|
|
||||||
catch (Exception exc)
|
|
||||||
{
|
|
||||||
//return null;
|
|
||||||
// return dt;
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 将Dataset的数据导入数据库
|
|
||||||
/// <summary>
|
|
||||||
/// 将Dataset的数据导入数据库
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pds">数据集</param>
|
|
||||||
/// <param name="Cols">数据集行数</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
private bool AddDatasetToSQL(DataTable pds, int Cols)
|
|
||||||
{
|
|
||||||
string result = string.Empty;
|
|
||||||
int ic, ir;
|
|
||||||
ic = pds.Columns.Count;
|
|
||||||
if (ic < Cols)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ir = pds.Rows.Count;
|
|
||||||
if (pds != null && ir > 0)
|
|
||||||
{
|
|
||||||
var driverRunPlan = (from x in Funs.DB.DriverRun_DriverRunPlan
|
|
||||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
|
||||||
select x).FirstOrDefault();
|
|
||||||
int usedDays = 0;
|
|
||||||
if (driverRunPlan != null)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < ir; i++)
|
|
||||||
{
|
|
||||||
string row34 = pds.Rows[i][34].ToString().Trim();
|
|
||||||
if (!string.IsNullOrEmpty(row34))
|
|
||||||
{
|
|
||||||
usedDays += Funs.GetNewIntOrZero(row34);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (driverRunPlan.UsedDays == null)
|
|
||||||
{
|
|
||||||
driverRunPlan.UsedDays = usedDays;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
driverRunPlan.UsedDays += usedDays;
|
|
||||||
}
|
|
||||||
Funs.DB.SubmitChanges();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,8 +2,6 @@
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
|
||||||
using System.Data.OleDb;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
@ -558,10 +556,6 @@ namespace FineUIPro.Web.AttachFile
|
||||||
{
|
{
|
||||||
attachUrl = item.Value<string>("folder") + savedName;
|
attachUrl = item.Value<string>("folder") + savedName;
|
||||||
}
|
}
|
||||||
if (this.AttachPath.Contains("DriverRunPlanK"))
|
|
||||||
{
|
|
||||||
ImportXlsToData(Server.MapPath("~/" + attachUrl));
|
|
||||||
}
|
|
||||||
File.Delete(Server.MapPath("~/" + attachUrl));
|
File.Delete(Server.MapPath("~/" + attachUrl));
|
||||||
BLL.LogService.AddSys_Log(this.CurrUser, "删除附件!", null, this.MenuId, BLL.Const.BtnDelete);
|
BLL.LogService.AddSys_Log(this.CurrUser, "删除附件!", null, this.MenuId, BLL.Const.BtnDelete);
|
||||||
}
|
}
|
||||||
|
@ -575,102 +569,6 @@ namespace FineUIPro.Web.AttachFile
|
||||||
}
|
}
|
||||||
Session[sessionName] = source;
|
Session[sessionName] = source;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region 读Excel提取数据
|
|
||||||
/// <summary>
|
|
||||||
/// 从Excel提取数据--》Dataset
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filename">Excel文件路径名</param>
|
|
||||||
private void ImportXlsToData(string fileName)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
string oleDBConnString = String.Empty;
|
|
||||||
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
|
||||||
oleDBConnString += "Data Source=";
|
|
||||||
oleDBConnString += fileName;
|
|
||||||
oleDBConnString += ";Extended Properties=Excel 8.0;";
|
|
||||||
OleDbConnection oleDBConn = null;
|
|
||||||
OleDbDataAdapter oleAdMaster = null;
|
|
||||||
DataTable m_tableName = new DataTable();
|
|
||||||
DataSet ds = new DataSet();
|
|
||||||
|
|
||||||
oleDBConn = new OleDbConnection(oleDBConnString);
|
|
||||||
oleDBConn.Open();
|
|
||||||
m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
|
|
||||||
|
|
||||||
if (m_tableName != null && m_tableName.Rows.Count > 0)
|
|
||||||
{
|
|
||||||
|
|
||||||
m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim();
|
|
||||||
|
|
||||||
}
|
|
||||||
string sqlMaster;
|
|
||||||
sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]";
|
|
||||||
oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn);
|
|
||||||
oleAdMaster.Fill(ds, "m_tableName");
|
|
||||||
oleAdMaster.Dispose();
|
|
||||||
oleDBConn.Close();
|
|
||||||
oleDBConn.Dispose();
|
|
||||||
|
|
||||||
AddDatasetToSQL(ds.Tables[0], 35);
|
|
||||||
}
|
|
||||||
catch (Exception exc)
|
|
||||||
{
|
|
||||||
//return null;
|
|
||||||
// return dt;
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 将Dataset的数据导入数据库
|
|
||||||
/// <summary>
|
|
||||||
/// 将Dataset的数据导入数据库
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="pds">数据集</param>
|
|
||||||
/// <param name="Cols">数据集行数</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
private bool AddDatasetToSQL(DataTable pds, int Cols)
|
|
||||||
{
|
|
||||||
string result = string.Empty;
|
|
||||||
int ic, ir;
|
|
||||||
ic = pds.Columns.Count;
|
|
||||||
if (ic < Cols)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ir = pds.Rows.Count;
|
|
||||||
if (pds != null && ir > 0)
|
|
||||||
{
|
|
||||||
var driverRunPlan = (from x in Funs.DB.DriverRun_DriverRunPlan
|
|
||||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
|
||||||
select x).FirstOrDefault();
|
|
||||||
int usedDays = 0;
|
|
||||||
if (driverRunPlan != null)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < ir; i++)
|
|
||||||
{
|
|
||||||
string row34 = pds.Rows[i][34].ToString().Trim();
|
|
||||||
if (!string.IsNullOrEmpty(row34))
|
|
||||||
{
|
|
||||||
usedDays += Funs.GetNewIntOrZero(row34);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
driverRunPlan.UsedDays -= usedDays;
|
|
||||||
Funs.DB.SubmitChanges();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 保存按钮事件
|
#region 保存按钮事件
|
||||||
|
@ -887,7 +785,7 @@ namespace FineUIPro.Web.AttachFile
|
||||||
if (isSupportType)
|
if (isSupportType)
|
||||||
{
|
{
|
||||||
url = url.Replace(Funs.RootPath, "");
|
url = url.Replace(Funs.RootPath, "");
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditing.aspx?fileUrl={0}&&editorMode={1}", url, editorMode, "编辑 -")));
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditing.aspx?fileUrl={0}&&editorMode={1}", url,editorMode, "编辑 -")));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -534,103 +534,3 @@ IP地址:::1
|
||||||
|
|
||||||
出错时间:02/06/2024 14:24:27
|
出错时间:02/06/2024 14:24:27
|
||||||
|
|
||||||
|
|
||||||
错误信息开始=====>
|
|
||||||
错误类型:ArgumentException
|
|
||||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
|
||||||
参数名: via
|
|
||||||
错误堆栈:
|
|
||||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
|
||||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
|
||||||
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2180
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
|
|
||||||
|
|
||||||
错误信息开始=====>
|
|
||||||
错误类型:ArgumentException
|
|
||||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
|
||||||
参数名: via
|
|
||||||
错误堆栈:
|
|
||||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
|
||||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
|
||||||
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2045
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
|
|
||||||
|
|
||||||
错误信息开始=====>
|
|
||||||
错误类型:ArgumentException
|
|
||||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
|
||||||
参数名: via
|
|
||||||
错误堆栈:
|
|
||||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
|
||||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
|
||||||
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1941
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
|
|
||||||
|
|
||||||
错误信息开始=====>
|
|
||||||
错误类型:ArgumentException
|
|
||||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
|
||||||
参数名: via
|
|
||||||
错误堆栈:
|
|
||||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
|
||||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
|
||||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
|
||||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
|
||||||
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1883
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
出错时间:02/21/2024 13:01:51
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -6154,7 +6154,6 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AttachFile\fileupload.ashx.cs">
|
<Compile Include="AttachFile\fileupload.ashx.cs">
|
||||||
<DependentUpon>fileupload.ashx</DependentUpon>
|
<DependentUpon>fileupload.ashx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="AttachFile\Look.aspx.cs">
|
<Compile Include="AttachFile\Look.aspx.cs">
|
||||||
<DependentUpon>Look.aspx</DependentUpon>
|
<DependentUpon>Look.aspx</DependentUpon>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form id="form1" runat="server">
|
<form id="form1" runat="server">
|
||||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
|
<f:PageManager ID="PageManager1" runat="server" />
|
||||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
|
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
|
||||||
<Items>
|
<Items>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||||
<Items>
|
<Items>
|
||||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车保运计划" EnableCollapse="true" ForceFit="true"
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车保运计划" EnableCollapse="true"
|
||||||
runat="server" BoxFlex="1" DataKeyNames="DriverRunPlanId" AllowCellEditing="true" ClicksToEdit="2" DataIDField="DriverRunPlanId" AllowSorting="true" SortField="Code"
|
runat="server" BoxFlex="1" DataKeyNames="DriverRunPlanId" AllowCellEditing="true" ClicksToEdit="2" DataIDField="DriverRunPlanId" AllowSorting="true" SortField="Code"
|
||||||
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||||
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" OnRowDoubleClick="Grid1_RowDoubleClick">
|
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||||
|
@ -44,22 +44,16 @@
|
||||||
FieldType="String" HeaderText="预估保运人数" HeaderTextAlign="Center" Width="220px">
|
FieldType="String" HeaderText="预估保运人数" HeaderTextAlign="Center" Width="220px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="GuaranteedOperationPeriod" DataField="GuaranteedOperationPeriod"
|
<f:RenderField ColumnID="GuaranteedOperationPeriod" DataField="GuaranteedOperationPeriod"
|
||||||
FieldType="String" HeaderText="保运工期(月)" HeaderTextAlign="Center" Width="180px">
|
FieldType="String" HeaderText="保运工期(月)" HeaderTextAlign="Center" Width="220px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="TotalGuaranteedOperationDays" DataField="TotalGuaranteedOperationDays"
|
<f:RenderField ColumnID="TotalGuaranteedOperationDays" DataField="TotalGuaranteedOperationDays"
|
||||||
FieldType="String" HeaderText="总保运人工日" HeaderTextAlign="Center" Width="180px">
|
FieldType="String" HeaderText="总保运人工日" HeaderTextAlign="Center" Width="220px">
|
||||||
</f:RenderField>
|
|
||||||
<f:RenderField ColumnID="UsedDays" DataField="UsedDays"
|
|
||||||
FieldType="String" HeaderText="已用保运工日" HeaderTextAlign="Center" Width="180px">
|
|
||||||
</f:RenderField>
|
|
||||||
<f:RenderField ColumnID="LeaveDays" DataField="LeaveDays"
|
|
||||||
FieldType="String" HeaderText="剩余保运工日" HeaderTextAlign="Center" Width="180px">
|
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Remark" DataField="Remark"
|
<f:RenderField ColumnID="Remark" DataField="Remark"
|
||||||
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" Width="120px">
|
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" Width="120px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<%--<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
|
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
|
||||||
TextAlign="Center" ToolTip="附件查看" Icon="Find" />--%>
|
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
|
||||||
</Columns>
|
</Columns>
|
||||||
<Listeners>
|
<Listeners>
|
||||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
|
|
@ -39,8 +39,6 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
||||||
driverRun.GuaranteedOperationPeriod,
|
driverRun.GuaranteedOperationPeriod,
|
||||||
driverRun.TotalGuaranteedOperationDays,
|
driverRun.TotalGuaranteedOperationDays,
|
||||||
(CASE WHEN driverRun.IsAcceptInvite=1 THEN '是' ELSE '否' END) AS IsAcceptInvite,
|
(CASE WHEN driverRun.IsAcceptInvite=1 THEN '是' ELSE '否' END) AS IsAcceptInvite,
|
||||||
isnull(driverRun.UsedDays,0) as UsedDays,
|
|
||||||
isnull(driverRun.TotalGuaranteedOperationDays,0)-isnull(driverRun.UsedDays,0) as LeaveDays,
|
|
||||||
driverRun.AttachUrl,
|
driverRun.AttachUrl,
|
||||||
driverRun.Remark,
|
driverRun.Remark,
|
||||||
Unit.UnitName AS UnitName"
|
Unit.UnitName AS UnitName"
|
||||||
|
|
|
@ -58,50 +58,9 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnAttach_Click(object sender, EventArgs e)
|
protected void btnAttach_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.drpUnitId.SelectedValue == BLL.Const._Null)
|
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("请选择单位名称!", MessageBoxIcon.Warning);
|
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
||||||
return;
|
|
||||||
}
|
|
||||||
string id = Request.Params["id"];
|
|
||||||
Model.DriverRun_DriverRunPlan newData = new Model.DriverRun_DriverRunPlan();
|
|
||||||
newData.Code = this.txtCode.Text.Trim();
|
|
||||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
|
||||||
{
|
|
||||||
newData.UnitId = this.drpUnitId.SelectedValue;
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(this.drpUnitWorkIds.SelectedValue))
|
|
||||||
{
|
|
||||||
newData.InstallationId = GetStringByArray(this.drpUnitWorkIds.SelectedValueArray);
|
|
||||||
string unitWorkNames = string.Empty;
|
|
||||||
foreach (var item in this.drpUnitWorkIds.SelectedValueArray)
|
|
||||||
{
|
|
||||||
var unitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(item);
|
|
||||||
if (unitWork != null)
|
|
||||||
{
|
|
||||||
unitWorkNames += unitWork.UnitWorkName + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(unitWorkNames))
|
|
||||||
{
|
|
||||||
newData.InstallationNames = unitWorkNames.Substring(0, unitWorkNames.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
newData.EstimatedInsuredPersonNum = Funs.GetNewInt(this.txtEstimatedInsuredPersonNum.Text.Trim());
|
|
||||||
newData.GuaranteedOperationPeriod = Funs.GetNewInt(this.txtGuaranteedOperationPeriod.Text.Trim());
|
|
||||||
newData.TotalGuaranteedOperationDays = Funs.GetNewInt(this.txtTotalGuaranteedOperationDays.Text.Trim());
|
|
||||||
newData.Remark = this.txtRemark.Text.Trim();
|
|
||||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
|
||||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
|
||||||
{
|
|
||||||
newData.DriverRunPlanId = this.hdId.Text;
|
|
||||||
BLL.DriverRunPlanService.UpdateDriverRunPlan(newData);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
newData.DriverRunPlanId = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
|
||||||
this.hdId.Text = newData.DriverRunPlanId;
|
|
||||||
BLL.DriverRunPlanService.AddDriverRunPlan(newData);
|
|
||||||
}
|
}
|
||||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverRun/DriverRunPlan&menuId={1}", this.hdId.Text, BLL.Const.DriverRunPlanMenuId)));
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverRun/DriverRunPlan&menuId={1}", this.hdId.Text, BLL.Const.DriverRunPlanMenuId)));
|
||||||
}
|
}
|
||||||
|
@ -113,52 +72,11 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnAttachK_Click(object sender, EventArgs e)
|
protected void btnAttachK_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.drpUnitId.SelectedValue == BLL.Const._Null)
|
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||||
{
|
{
|
||||||
Alert.ShowInTop("请选择单位名称!", MessageBoxIcon.Warning);
|
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
string id = Request.Params["id"];
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverRun/DriverRunPlan&menuId={1}", this.hdId.Text+"K", BLL.Const.DriverRunPlanMenuId)));
|
||||||
Model.DriverRun_DriverRunPlan newData = new Model.DriverRun_DriverRunPlan();
|
|
||||||
newData.Code = this.txtCode.Text.Trim();
|
|
||||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
|
||||||
{
|
|
||||||
newData.UnitId = this.drpUnitId.SelectedValue;
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(this.drpUnitWorkIds.SelectedValue))
|
|
||||||
{
|
|
||||||
newData.InstallationId = GetStringByArray(this.drpUnitWorkIds.SelectedValueArray);
|
|
||||||
string unitWorkNames = string.Empty;
|
|
||||||
foreach (var item in this.drpUnitWorkIds.SelectedValueArray)
|
|
||||||
{
|
|
||||||
var unitWork = BLL.UnitWorkService.getUnitWorkByUnitWorkId(item);
|
|
||||||
if (unitWork != null)
|
|
||||||
{
|
|
||||||
unitWorkNames += unitWork.UnitWorkName + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(unitWorkNames))
|
|
||||||
{
|
|
||||||
newData.InstallationNames = unitWorkNames.Substring(0, unitWorkNames.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
newData.EstimatedInsuredPersonNum = Funs.GetNewInt(this.txtEstimatedInsuredPersonNum.Text.Trim());
|
|
||||||
newData.GuaranteedOperationPeriod = Funs.GetNewInt(this.txtGuaranteedOperationPeriod.Text.Trim());
|
|
||||||
newData.TotalGuaranteedOperationDays = Funs.GetNewInt(this.txtTotalGuaranteedOperationDays.Text.Trim());
|
|
||||||
newData.Remark = this.txtRemark.Text.Trim();
|
|
||||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
|
||||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
|
||||||
{
|
|
||||||
newData.DriverRunPlanId = this.hdId.Text;
|
|
||||||
BLL.DriverRunPlanService.UpdateDriverRunPlan(newData);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
newData.DriverRunPlanId = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
|
||||||
this.hdId.Text = newData.DriverRunPlanId;
|
|
||||||
BLL.DriverRunPlanService.AddDriverRunPlan(newData);
|
|
||||||
}
|
|
||||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverRun/DriverRunPlanK&menuId={1}", this.hdId.Text + "K", BLL.Const.DriverRunPlanMenuId)));
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -241,15 +159,22 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
||||||
newData.TotalGuaranteedOperationDays = Funs.GetNewInt(this.txtTotalGuaranteedOperationDays.Text.Trim());
|
newData.TotalGuaranteedOperationDays = Funs.GetNewInt(this.txtTotalGuaranteedOperationDays.Text.Trim());
|
||||||
newData.Remark = this.txtRemark.Text.Trim();
|
newData.Remark = this.txtRemark.Text.Trim();
|
||||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
newData.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
if (!string.IsNullOrEmpty(id))
|
||||||
{
|
{
|
||||||
newData.DriverRunPlanId = this.hdId.Text;
|
newData.DriverRunPlanId = id;
|
||||||
BLL.DriverRunPlanService.UpdateDriverRunPlan(newData);
|
BLL.DriverRunPlanService.UpdateDriverRunPlan(newData);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
newData.DriverRunPlanId = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
if (!string.IsNullOrEmpty(this.hdId.Text))
|
||||||
this.hdId.Text = newData.DriverRunPlanId;
|
{
|
||||||
|
newData.DriverRunPlanId = this.hdId.Text.Trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newData.DriverRunPlanId = SQLHelper.GetNewID(typeof(Model.DriverRun_DriverRunPlan));
|
||||||
|
this.hdId.Text = newData.DriverRunPlanId;
|
||||||
|
}
|
||||||
BLL.DriverRunPlanService.AddDriverRunPlan(newData);
|
BLL.DriverRunPlanService.AddDriverRunPlan(newData);
|
||||||
}
|
}
|
||||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
|
1114
SGGL/Model/Model.cs
1114
SGGL/Model/Model.cs
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue