feat: 更新业务、控件及单据功能
This commit is contained in:
@@ -42,18 +42,18 @@ namespace Lskj.Business
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!BaseImpl.HasExistsColumn("P_LogTab", "IPAddress"))
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery("alter table P_LogTab add IPAddress varchar(500)");
|
||||
}
|
||||
if (!BaseImpl.HasExistsColumn("P_LogTab", "MacAddress"))
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery("alter table P_LogTab add MacAddress varchar(500)");
|
||||
}
|
||||
if (!BaseImpl.HasExistsColumn("P_LogTab", "ModuleId"))
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery("alter table P_LogTab add ModuleId varchar(500)");
|
||||
}
|
||||
//if (!BaseImpl.HasExistsColumn("P_LogTab", "IPAddress"))
|
||||
//{
|
||||
// SqlHelper.ExecuteNonQuery("alter table P_LogTab add IPAddress varchar(500)");
|
||||
//}
|
||||
//if (!BaseImpl.HasExistsColumn("P_LogTab", "MacAddress"))
|
||||
//{
|
||||
// SqlHelper.ExecuteNonQuery("alter table P_LogTab add MacAddress varchar(500)");
|
||||
//}
|
||||
//if (!BaseImpl.HasExistsColumn("P_LogTab", "ModuleId"))
|
||||
//{
|
||||
// SqlHelper.ExecuteNonQuery("alter table P_LogTab add ModuleId varchar(500)");
|
||||
//}
|
||||
|
||||
//string ModuleCode = string.Empty;
|
||||
//string ModuleId = string.Empty;
|
||||
@@ -108,14 +108,14 @@ namespace Lskj.Business
|
||||
string exmessage = Regex.Replace(ex.Message, "'", "''");
|
||||
|
||||
|
||||
if (!BaseImpl.HasExistsColumn("p_errlogtab", "IPAddress"))
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery("alter table p_errlogtab add IPAddress varchar(500)");
|
||||
}
|
||||
if (!BaseImpl.HasExistsColumn("p_errlogtab", "MacAddress"))
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery("alter table p_errlogtab add MacAddress varchar(500)");
|
||||
}
|
||||
//if (!BaseImpl.HasExistsColumn("p_errlogtab", "IPAddress"))
|
||||
//{
|
||||
// SqlHelper.ExecuteNonQuery("alter table p_errlogtab add IPAddress varchar(500)");
|
||||
//}
|
||||
//if (!BaseImpl.HasExistsColumn("p_errlogtab", "MacAddress"))
|
||||
//{
|
||||
// SqlHelper.ExecuteNonQuery("alter table p_errlogtab add MacAddress varchar(500)");
|
||||
//}
|
||||
|
||||
string sqlValue = string.Format("insert into p_errlogtab(Operatedate,Operator,Content,ErrMsg,Ws,IPAddress,MacAddress) values(getdate(),'{0}','{1}','{2}','{3}','{4}','{5}')",
|
||||
ERPInfo.Instance.UserName, content, exmessage + "\r\n" + ex.StackTrace, ERPInfo.Instance.WindowName, ERPInfo.Instance.LoginIPV4, ERPInfo.Instance.MacAddress);
|
||||
|
||||
Reference in New Issue
Block a user