lu
2025-03-31 37d32d9263f757072a6ff348ae5e99824fab4ef9
DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkProcesses.cs
@@ -99,7 +99,7 @@
        private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e)
        {
            string rowGuid = "", rowName = "";
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_hNo, gridView1,"hNo");
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_processNo, gridView1,"processNo");
            if (string.IsNullOrEmpty(rowGuid))
            {
                ToolBox.MsgHelper.Warning("请先选择你要操作的行!");
@@ -160,7 +160,7 @@
        private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e)
        {
            string rowGuid = "", rowName = "";
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_hNo, gridView1,"hNo");
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_processNo, gridView1,"processNo");
            if (string.IsNullOrEmpty(rowGuid))
            {
                ToolBox.MsgHelper.Warning("请先选择你要操作的行!");
@@ -173,7 +173,7 @@
            }
            else
            {
                UtilityHelper.ChangeEnableByControl(this.splitMx1.Controls, true);
                UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true);
            }
        }
        /// <summary>
@@ -196,23 +196,23 @@
        private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
        {
            toolBarMenu1.isSetBtn = false;
            if (string.IsNullOrEmpty(txt_hNo.Text.Trim()))
            if (string.IsNullOrEmpty(txt_processNo.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("编号不能为空!");
                txt_hNo.Focus();
                Gs.DevApp.ToolBox.MsgHelper.Warning("代码不能为空!");
                txt_processNo.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txt_name.Text.Trim()))
            if (string.IsNullOrEmpty(txt_processName.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("名称不能为空!");
                txt_name.Focus();
                txt_processName.Focus();
                return;
            }
            var _obj = new
            {
                guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建
                hNo = txt_hNo.Text.Trim(),
                name = txt_name.Text.Trim(),
                processNo = txt_processNo.Text.Trim(),
                processName = txt_processName.Text.Trim(),
                remark = txt_remark.Text.Trim(),
                isBack = txt_isBack.Checked ? 1 : 0,
                isStatus = txt_isStatus.Checked ? 1 : 0,
@@ -227,7 +227,8 @@
                {
                    lbGuid.Text = _rtn.rtnData;
                    toolBarMenu1.isSetBtn = true;
                    UtilityHelper.ChangeEnableByControl(this.splitMx1.Controls, false);
                    UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false);
                    toolBarMenu1.currentAction = "";
                }
            }
            catch (Exception ex)
@@ -244,7 +245,7 @@
        private void getPageList(int curPage)
        {
            var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
            var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.hNo",
            var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.processNo",
            "asc", "", _sbSqlWhere.ToString());
            var json = JsonConvert.SerializeObject(pgq);
            try
@@ -308,7 +309,7 @@
                {
                    dynamic dy = _rtn.rtnData;
                    lbGuid.Text = strGuid;
                    UtilityHelper.SetValueByObj(this.splitMx1.Controls, dy, isEdit);
                    UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit);
                }
                else
                    ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg);