lu
2024-12-12 5bb244513c2a80b1745c10229274183b6f8af934
DevApp/Gs.DevApp/DevFrm/Sys/Frm_PrintInfo.cs
@@ -6,6 +6,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Net;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -90,6 +91,7 @@
        private void ToolBarMenu1_btnEscClick(object sender, EventArgs e)
        {
            UtilityHelper.JumpToTab(xtraTabControl1, 0);
            getPageList(pageBar1.CurrentPage);
        }
        /// <summary>
@@ -100,7 +102,7 @@
        private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e)
        {
            string rowGuid = "", rowName = "";
           (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_printNo, gridView1);
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_printNo, gridView1);
            if (string.IsNullOrEmpty(rowGuid))
            {
                ToolBox.MsgHelper.Warning("请先选择你要操作的行!");
@@ -157,7 +159,7 @@
        private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e)
        {
            string rowGuid = "", rowName = "";
           (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_printNo, gridView1);
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_printNo, gridView1);
            if (string.IsNullOrEmpty(rowGuid))
            {
                ToolBox.MsgHelper.Warning("请先选择你要操作的行!");
@@ -194,21 +196,32 @@
            if (string.IsNullOrEmpty(txt_ip.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("IP不能为空!");
                txt_printNo.Focus();
                txt_ip.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txt_port.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("端口不能为空!");
                txt_printNo.Focus();
                txt_port.Focus();
                return;
            }
            try
            {
                IPAddress.Parse(txt_ip.Text);
            }
            catch
            {
                txt_ip.Text = "";
                MessageBox.Show("请输入正确的IP地址");
                txt_ip.Focus();
                return;
            }
            var _obj = new PrintInfo
            {
                Guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建
                PrintNo= txt_printNo.Text.Trim(),
                PrintNo = txt_printNo.Text.Trim(),
                Ip = txt_ip.Text.Trim(),
                Port= txt_port.Text.Trim(),
                Port = txt_port.Text.Trim(),
                Remark = txt_remark.Text.Trim(),
            };
            try
@@ -234,7 +247,7 @@
        /// </summary>
        /// <param name="curPage">第几页</param>
        /// <param name="pageSize">每页几条</param>
        private  void getPageList(int curPage)
        private void getPageList(int curPage)
        {
            var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
            var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.print_no",
@@ -242,7 +255,7 @@
            var json = JsonConvert.SerializeObject(pgq);
            try
            {
                var strReturn =  UtilityHelper.HttpPost("",
                var strReturn = UtilityHelper.HttpPost("",
                    _webServiceName + "GetListPage", json);
                var dd = UtilityHelper.ReturnToTablePage(strReturn);
                if (dd.rtnCode > 0)