SVN r1032
SVN-Revision: r1032
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Lskj.Notice
|
|||||||
private Icon blank = Resources.blank;
|
private Icon blank = Resources.blank;
|
||||||
private Icon striped = Resources.logo;
|
private Icon striped = Resources.logo;
|
||||||
private bool mouseinform = false;
|
private bool mouseinform = false;
|
||||||
|
private bool runForm = false;
|
||||||
|
|
||||||
private int LastRowCount;//上一次记录的行数
|
private int LastRowCount;//上一次记录的行数
|
||||||
private bool FirstEntry = true;//是否是第一次进入
|
private bool FirstEntry = true;//是否是第一次进入
|
||||||
@@ -249,7 +250,6 @@ namespace Lskj.Notice
|
|||||||
IForm form = FormHelper.LoadDllForm(dllName, args);
|
IForm form = FormHelper.LoadDllForm(dllName, args);
|
||||||
if (dllName.Equals("miniblink.dll")) form.SubForm.WindowState = FormWindowState.Maximized;
|
if (dllName.Equals("miniblink.dll")) form.SubForm.WindowState = FormWindowState.Maximized;
|
||||||
if (dllName.Equals("lskj.pubmoduledetail.dll") || dllName.Equals("lskj.pubbill.dll")) form.SubForm.WindowState = FormWindowState.Maximized;//默认全部最大化
|
if (dllName.Equals("lskj.pubmoduledetail.dll") || dllName.Equals("lskj.pubbill.dll")) form.SubForm.WindowState = FormWindowState.Maximized;//默认全部最大化
|
||||||
|
|
||||||
DialogResult result = form.SubForm.ShowDialog();
|
DialogResult result = form.SubForm.ShowDialog();
|
||||||
if (result != DialogResult.OK && ("1".Equals(rowItem["messid"] + "") || "2".Equals(rowItem["messid"] + "")))
|
if (result != DialogResult.OK && ("1".Equals(rowItem["messid"] + "") || "2".Equals(rowItem["messid"] + "")))
|
||||||
{
|
{
|
||||||
@@ -265,7 +265,7 @@ namespace Lskj.Notice
|
|||||||
this.gridControlEx.DataSource = data;
|
this.gridControlEx.DataSource = data;
|
||||||
this.Text = "您有" + rowCount + "条任务需要处理(提示:双击即可处理).";
|
this.Text = "您有" + rowCount + "条任务需要处理(提示:双击即可处理).";
|
||||||
}
|
}
|
||||||
|
form.SubForm.Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -370,7 +370,7 @@ namespace Lskj.Notice
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!mouseinform)
|
if (!mouseinform && !runForm)
|
||||||
{
|
{
|
||||||
this.ReloadGridData();
|
this.ReloadGridData();
|
||||||
}
|
}
|
||||||
@@ -394,6 +394,7 @@ namespace Lskj.Notice
|
|||||||
/// <param name="e">The <see cref="DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs"/> instance containing the event data.</param>
|
/// <param name="e">The <see cref="DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs"/> instance containing the event data.</param>
|
||||||
void OnGridViewDoubleClick(object sender, EventArgs e)
|
void OnGridViewDoubleClick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
runForm = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DataRow rowItem = this.gridView.GetFocusedDataRow();
|
DataRow rowItem = this.gridView.GetFocusedDataRow();
|
||||||
@@ -439,6 +440,7 @@ namespace Lskj.Notice
|
|||||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||||
MessageUtil.Show(Message);
|
MessageUtil.Show(Message);
|
||||||
}
|
}
|
||||||
|
runForm = false;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>说明:最小化到托盘</para>
|
/// <para>说明:最小化到托盘</para>
|
||||||
|
|||||||
@@ -99,29 +99,4 @@ namespace Lskj.Notice
|
|||||||
class SingleApplication
|
class SingleApplication
|
||||||
{
|
{
|
||||||
[DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
|
[DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
|
||||||
private static extern IntPtr OpenMutex(uint dwDesiredAccess, int bInheritHandle, string lpName);
|
private static extern IntPtr OpenMutex(
|
||||||
[DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
|
|
||||||
private static extern IntPtr CreateMutex(IntPtr lpMutexAttributes, int bInitialOwner, string lpName);
|
|
||||||
|
|
||||||
public static bool IsRunning(string appID)
|
|
||||||
{
|
|
||||||
bool running = false;
|
|
||||||
if (OpenMutex(0x1F0001, 0, appID) == IntPtr.Zero)
|
|
||||||
{
|
|
||||||
CreateMutex(IntPtr.Zero, 0, appID);
|
|
||||||
running = true;
|
|
||||||
}
|
|
||||||
return running;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal sealed class DemoApp : CefApp
|
|
||||||
{
|
|
||||||
protected override void OnBeforeCommandLineProcessing(string processType, CefCommandLine commandLine)
|
|
||||||
{
|
|
||||||
commandLine.AppendSwitch("ppapi-flash-version", "28.0.0.137");
|
|
||||||
commandLine.AppendSwitch("ppapi-flash-path", @"D:\测试\LSERP\Debug\pepflashplayer.dll");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user