SVN r378
SVN-Revision: r378
This commit is contained in:
@@ -123,7 +123,7 @@ namespace Lskj.Notice
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
DBConfig.Instance.ReadConfig();
|
DBConfig.Instance.ReadConfig();
|
||||||
DBConfig.Instance.CreateConnection();
|
DBConfig.Instance.CreateConnection(DBConfig.Instance.Connection);
|
||||||
|
|
||||||
ERPInfo.Instance.UserId = DBConfig.Instance.NoticeUserID;
|
ERPInfo.Instance.UserId = DBConfig.Instance.NoticeUserID;
|
||||||
ERPInfo.Instance.UserName = DBConfig.Instance.NoticeUserName;
|
ERPInfo.Instance.UserName = DBConfig.Instance.NoticeUserName;
|
||||||
@@ -257,6 +257,7 @@ namespace Lskj.Notice
|
|||||||
//{
|
//{
|
||||||
// NoticeImpl.UpdRemindField(rowItem, dllName);
|
// NoticeImpl.UpdRemindField(rowItem, dllName);
|
||||||
//}
|
//}
|
||||||
|
//return;
|
||||||
NoticeImpl.UpeNoticeData(rowItem, isCustomNotice);
|
NoticeImpl.UpeNoticeData(rowItem, isCustomNotice);
|
||||||
string sqlStr = string.Empty;
|
string sqlStr = string.Empty;
|
||||||
DataTable data = NoticeImpl.GetNoticeData2(ERPInfo.Instance.UserId,out sqlStr);
|
DataTable data = NoticeImpl.GetNoticeData2(ERPInfo.Instance.UserId,out sqlStr);
|
||||||
@@ -750,31 +751,4 @@ namespace Lskj.Notice
|
|||||||
/// <para>修改备注:</para>
|
/// <para>修改备注:</para>
|
||||||
/// <para>版本:1.0</para>
|
/// <para>版本:1.0</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void SetDelphiDllParams()
|
private v
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
StringBuilder sb1 = new StringBuilder();
|
|
||||||
sb1.Append(ERPInfo.Instance.UserName);
|
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
|
||||||
sb2.Append(ERPInfo.Instance.WindowName);
|
|
||||||
|
|
||||||
StringBuilder sb3 = new StringBuilder();
|
|
||||||
sb3.Append(ERPInfo.Instance.SkinName);
|
|
||||||
|
|
||||||
//给delphi库设置参数(用户id、子系统id、操作员名称、计算机名称)
|
|
||||||
DelphiHelper.Delphi_SetParams(Convert.ToInt32(ERPInfo.Instance.UserId), Convert.ToInt32(ERPInfo.Instance.SubSysId), sb1, sb2, sb3);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
||||||
MessageUtil.Show(Message, ex.Message);
|
|
||||||
LogHelper.Instance.WriteError(ex);
|
|
||||||
//LogUtil.WriteError("设置delphi参数错误", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user