lu
2024-11-27 db99fcbc8ce2de42ed4c9f06a3df6b23fc07e9b4
DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesWorkshop.cs
@@ -33,6 +33,10 @@
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            gcMain.MouseDoubleClick += GcMain_MouseDoubleClick;
            gridView1.FocusedRowChanged += (s, e) =>
            {
                UtilityHelper.SetCheckIco(s, picCheckBox, this, "checkStatus", "");
            };
            getPageList(1, UtilityHelper.GetPageSize());
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            gridView1.CustomDrawRowIndicator += (s, e) =>
@@ -107,7 +111,7 @@
            toolBarMenu1.guidKey = "";
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_name, gridView1);
                lbGuid, txt_name, gridView1, "workshopNo");
            toolBarMenu1.guidKey = rowGuid;
        }
@@ -121,7 +125,7 @@
            toolBarMenu1.guidKey = "";
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_name, gridView1);
                lbGuid, txt_name, gridView1, "workshopNo");
            toolBarMenu1.guidKey = rowGuid;
        }
@@ -144,7 +148,7 @@
        {
            string rowGuid = "", rowName = "";
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_name, gridView1);
                lbGuid, txt_name, gridView1, "workshopNo");
            if (string.IsNullOrEmpty(rowGuid))
            {
                MsgHelper.Warning("请先选择你要操作的行!");
@@ -183,8 +187,10 @@
        /// <param name="e"></param>
        private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e)
        {
            UtilityHelper.JumpToTab(xtraTabControl1, 0);
            getPageList(1, UtilityHelper.GetPageSize());
            if (xtraTabControl1.SelectedTabPageIndex == 1)
                getModel(lbGuid.Text.Trim(), false, 999);
            else
                getPageList(1, UtilityHelper.GetPageSize());
        }
        /// <summary>
@@ -252,7 +258,7 @@
                if (row != null)
                    lst.Add(new
                    {
                        guid = row["guid"].ToString(),
                        guid = UtilityHelper.ToGuid(row["guid"].ToString()),
                        lineNo = row["lineNo"].ToString(),
                        name = row["name"].ToString(),
                        remark = row["remark"].ToString(),
@@ -262,7 +268,7 @@
            var _obj = new
            {
                guid = lbGuid.Text.Trim(), //主建
                guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建
                workshopNo = txt_workshopNo.Text.Trim(),
                name = txt_name.Text.Trim(),
                remark = txt_remark.Text.Trim(),
@@ -393,6 +399,8 @@
        private void repositoryItemButtonEdit1_ButtonClick(object sender,
            ButtonPressedEventArgs e)
        {
            gvMx1.CloseEditor();
            gvMx1.UpdateCurrentRow();
            var rowhandle = gvMx1.FocusedRowHandle;
            if (rowhandle < 0)
                return;