Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
yscom authored and yscom committed May 17, 2024
1 parent 5c05a85 commit 704dd31
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion YMES.FX.Forms/BaseContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using YMES.FX.MainForm.Base;

namespace YMES.FX.MainForm
{
Expand Down Expand Up @@ -55,7 +56,20 @@ public BaseContainer()
{
InitializeComponent();
}

#region <<BaseFrom Control
/// <summary>
/// Write Message in StatusBar
/// </summary>
/// <param name="msgType">Type of Message</param>
/// <param name="msg">Message</param>
/// <param name="callMethodName">Called Method Name</param>
/// <param name="beep">use the Alram Horn</param>
/// <param name="logWrite">Trace the Log data</param>
public void StatusBarMsg(Common.MsgTypeEnum msgType, string msg, string callMethodName = "", bool beep = false, bool logWrite = true)
{
PBaseFrm.StatusBarMsg(msgType, msg, callMethodName, beep, logWrite);
}
#endregion
#region <<DBHelper
public DataTable ExcuteQuery(string query, Dictionary<string, string> param)
{
Expand Down
2 changes: 1 addition & 1 deletion YMES.Logics/MES/TagPrint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void AfterBaseFormLoad(EventArgs e)
DataTable dt = ExcuteQuery("SELECT sysdate DAT FROM DUAL", null);
if (dt.Rows.Count > 0)
{
this.PBaseFrm.StatusBarMsg(FX.MainForm.Base.Common.MsgTypeEnum.Alarm, "Data Count : " + dt.Rows.Count.ToString());
StatusBarMsg(FX.MainForm.Base.Common.MsgTypeEnum.Alarm, "Data Count : " + dt.Rows.Count.ToString());
}
}

Expand Down

0 comments on commit 704dd31

Please sign in to comment.