SVN r1051
SVN-Revision: r1051
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Lskj.PubAdd
|
|||||||
private void OnFrmMainActivated(object sender, EventArgs e)
|
private void OnFrmMainActivated(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//新增时输入焦点
|
//新增时输入焦点
|
||||||
if (string.IsNullOrEmpty(this.ModuleAddControl.PrimaryValue))
|
if (string.IsNullOrEmpty(this.ModuleAddControl.PrimaryValue)&& ModuleAddControl.ControlObj!=null)
|
||||||
{
|
{
|
||||||
ControlModel controlModel = ModuleAddControl.ControlObj.ControlModels.Where(n => n.Location.X != 0 || n.Location.Y != 0).OrderBy(n => n.TabOrder).FirstOrDefault();
|
ControlModel controlModel = ModuleAddControl.ControlObj.ControlModels.Where(n => n.Location.X != 0 || n.Location.Y != 0).OrderBy(n => n.TabOrder).FirstOrDefault();
|
||||||
if (controlModel != null)
|
if (controlModel != null)
|
||||||
@@ -721,4 +721,33 @@ namespace Lskj.PubAdd
|
|||||||
/// <para>修改日期:</para>
|
/// <para>修改日期:</para>
|
||||||
/// <para>修改备注:</para>
|
/// <para>修改备注:</para>
|
||||||
/// <para>版本:1.0</para>
|
/// <para>版本:1.0</para>
|
||||||
/// </
|
/// </summary>
|
||||||
|
/// <param name="sender">The source of the event.</param>
|
||||||
|
/// <param name="e">The <see cref="FormClosingEventArgs"/> instance containing the event data.</param>
|
||||||
|
protected void OnFormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (this.ModuleAddControl != null && this.ModuleAddControl.IsCard)
|
||||||
|
{
|
||||||
|
this.ModuleAddControl.CloseIDCardThread();
|
||||||
|
}
|
||||||
|
this.DialogResult = DialogResult.OK;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||||
|
MessageUtil.Show(Message, ex.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected override CreateParams CreateParams
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
CreateParams cp = base.CreateParams;
|
||||||
|
cp.ExStyle |= 0x02000000;
|
||||||
|
return cp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user