提交单据管理和修改密码功能
This commit is contained in:
@@ -293,6 +293,27 @@ namespace Lskj.Business.Impl
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 记录修改后的密码
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="afterPass"></param>
|
||||
/// <returns></returns>
|
||||
public static bool RecordPassword(string afterPass,string text)
|
||||
{
|
||||
try
|
||||
{
|
||||
//加密密码
|
||||
afterPass = AESUtil.Encrypt(afterPass);
|
||||
LogUtil.WriteDebug("", text, afterPass, "");
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Text;
|
||||
using System.Data.SqlClient;
|
||||
using Lskj.Util;
|
||||
using Lskj.Model;
|
||||
using Lskj.Core;
|
||||
|
||||
namespace Lskj.Business.Impl
|
||||
{
|
||||
@@ -202,6 +203,26 @@ namespace Lskj.Business.Impl
|
||||
public static bool SaveRoleOperDate(string OperId, string OperName, string departemnt, string readdate, string editdate)
|
||||
{
|
||||
string sqlValue = string.Format(" if exists (select * from p_systemRoleOperSetTab s where s.operatorid='{0}' and roleId='0' ) update p_systemRoleOperSetTab set ReadPurview='{4}',EditPurview='{5}' where operatorid = '{0}' and roleId='0' ELSE insert into p_systemRoleOperSetTab (roleId,roleOperatorId,operatorid,operatorname,operatedate,department,ReadPurview,EditPurview) values ('0','{0}','{0}','{1}','{2}','{3}','{4}','{5}')", OperId, OperName, DateTime.Now, departemnt, readdate, editdate);
|
||||
|
||||
if (SqlHelper.ConnectionType == ConnectionType.DmServer)
|
||||
{
|
||||
string dmOperId = (OperId ?? string.Empty).Replace("'", "''");
|
||||
string dmOperName = (OperName ?? string.Empty).Replace("'", "''");
|
||||
string dmDepartment = (departemnt ?? string.Empty).Replace("'", "''");
|
||||
string dmReadDate = (readdate ?? string.Empty).Replace("'", "''");
|
||||
string dmEditDate = (editdate ?? string.Empty).Replace("'", "''");
|
||||
|
||||
sqlValue = string.Format(@"
|
||||
MERGE INTO p_systemRoleOperSetTab t
|
||||
USING (SELECT '{0}' operatorid, '0' roleId FROM DUAL) s
|
||||
ON (t.operatorid = s.operatorid AND t.roleId = s.roleId)
|
||||
WHEN MATCHED THEN
|
||||
UPDATE SET ReadPurview = '{3}', EditPurview = '{4}'
|
||||
WHEN NOT MATCHED THEN
|
||||
INSERT (roleId, roleOperatorId, operatorid, operatorname, operatedate, department, ReadPurview, EditPurview)
|
||||
VALUES ('0', '{0}', '{0}', '{1}', SYSDATE, '{2}', '{3}', '{4}')",
|
||||
dmOperId, dmOperName, dmDepartment, dmReadDate, dmEditDate);
|
||||
}
|
||||
return ExecSqlValue(sqlValue) > 0;
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ using System.Xml;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Core;
|
||||
using Lskj.Model;
|
||||
using Lskj.Data;
|
||||
|
||||
namespace Lskj.Business
|
||||
{
|
||||
@@ -330,6 +331,11 @@ namespace Lskj.Business
|
||||
Instance.LoginUsername = item.Table.Columns.Contains("LoginUsername") && !string.IsNullOrEmpty(item["LoginUsername"] + "") ? item["LoginUsername"] + "" : "";
|
||||
Instance.MainLeftShowMode = item.Table.Columns.Contains("MainLeftShowMode") && !string.IsNullOrEmpty(item["MainLeftShowMode"] + "") ? item["MainLeftShowMode"] + "" : "";
|
||||
Instance.DeadlockPrompt = item.Table.Columns.Contains("DeadlockPrompt") && !string.IsNullOrEmpty(item["DeadlockPrompt"] + "") ? item["DeadlockPrompt"] + "" : "";
|
||||
Instance.SpecialAttachmentBrowser = item.Table.Columns.Contains("SpecialAttachmentBrowser") && !string.IsNullOrEmpty(item["SpecialAttachmentBrowser"] + "") ? "1".Equals(item["SpecialAttachmentBrowser"] + "") : false;
|
||||
if (Instance.SpecialAttachmentBrowser)
|
||||
{
|
||||
ResourceDynamic.PubBrower = System.Environment.OSVersion.Version.Major == 5 && (System.Environment.OSVersion.Version.Minor == 1 || System.Environment.OSVersion.Version.Minor == 2) ? "Lskj.PubBrowerXp.dll" : "Lskj.PubBrower2.dll";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 高拍仪AccessKey
|
||||
@@ -1154,6 +1160,10 @@ namespace Lskj.Business
|
||||
/// 死锁提示
|
||||
/// </summary>
|
||||
public string DeadlockPrompt;
|
||||
/// <summary>
|
||||
/// 附件浏览器自带逻辑
|
||||
/// </summary>
|
||||
public bool SpecialAttachmentBrowser;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user