| | |
| | | using Yw; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraLayout; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | | |
| | |
| | | public partial class IBoxFormLog : DocumentPage |
| | | { |
| | | |
| | | private string startCode = "[&start&]"; |
| | | private string endCode = "[&end&]"; |
| | | private string paramCode = "[¶m&]"; |
| | | private string getlogCode = "getlog"; |
| | | private string clearlogCode = "clearlog"; |
| | | |
| | | public IBoxFormLog() |
| | | { |
| | | this.PageTitle.Caption = "日志管理"; |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public void HideButton() |
| | | { |
| | | //simpleButton1.Visible = simpleButton2.Visible = false; |
| | | layoutControlItem2.Visibility = layoutControlItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | } |
| | | |
| | | private void EboxFormLog_Load(object sender, EventArgs e) |
| | |
| | | LogResult = "" |
| | | }; |
| | | |
| | | SendText(startCode + getlogCode + paramCode + JsonHelper.Object2Json(m) + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.getlogCode + IBoxHelper.paramCode + JsonHelper.Object2Json(m) + IBoxHelper.endCode); |
| | | } |
| | | |
| | | public void SetData() |
| | |
| | | |
| | | private void simpleButton1_Click(object sender, EventArgs e) |
| | | { |
| | | Search(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询 |
| | | /// </summary> |
| | | public void Search() |
| | | { |
| | | //查询 |
| | | var m = new GetCalcValueModel() |
| | | { |
| | |
| | | LogEvent = imageComboBoxEdit1.EditValue?.ToString() |
| | | }; |
| | | |
| | | SendText(startCode + getlogCode + paramCode + JsonHelper.Object2Json(m) + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.getlogCode + IBoxHelper.paramCode + JsonHelper.Object2Json(m) + IBoxHelper.endCode); |
| | | } |
| | | |
| | | private void simpleButton2_Click(object sender, EventArgs e) |
| | | { |
| | | Clear(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 清空 |
| | | /// </summary> |
| | | public void Clear() |
| | | { |
| | | //清空 |
| | | this.Invoke(new Action(() => |
| | |
| | | eboxLogViewModelBindingSource.DataSource = null; |
| | | this.gridView1.RefreshData(); |
| | | })); |
| | | SendText(startCode + clearlogCode + paramCode + endCode); |
| | | SendText(IBoxHelper.startCode + IBoxHelper.clearlogCode + IBoxHelper.paramCode + IBoxHelper.endCode); |
| | | } |
| | | |
| | | private void gridView1_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e) |