bug
lu
2 天以前 851629329b2829b133bcdc56b0a75803f9c48b65
bug
已修改4个文件
90 ■■■■ 文件已修改
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.Designer.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.Designer.cs
@@ -1133,7 +1133,7 @@
            this.gvMxDel.MinWidth = 50;
            this.gvMxDel.Name = "gvMxDel";
            this.gvMxDel.Visible = true;
            this.gvMxDel.VisibleIndex = 14;
            this.gvMxDel.VisibleIndex = 13;
            this.gvMxDel.Width = 100;
            // 
            // repositoryItemButtonEdit1
@@ -1176,8 +1176,6 @@
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.Tag = "edit";
            this.gridColumn9.UnboundDataType = typeof(bool);
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 12;
            this.gridColumn9.Width = 94;
            // 
            // repositoryItemCheckEdit1
@@ -1194,7 +1192,7 @@
            this.gridColumn10.Name = "gridColumn10";
            this.gridColumn10.Tag = "edit";
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 13;
            this.gridColumn10.VisibleIndex = 12;
            this.gridColumn10.Width = 94;
            // 
            // rptGroup
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -53,11 +53,6 @@
            {
                gvMx1.Columns["stationName"].Visible = false;
            }
            //如果是ipqc首检,显示认证
            if (strType != QcSeason.ipqc首检.ToString())
            {
                gvMx1.Columns["isRzxx"].Visible = false;
            }
            //新行初始值
            this.gvMx1.InitNewRow += (s, e) =>
        {
@@ -319,7 +314,7 @@
                        }
                        if (string.IsNullOrEmpty(row["ypsl"].ToString()))
                        {
                            MsgHelper.ShowError("样品数量平不能为空!");
                            MsgHelper.ShowError("样品数量不能为空!");
                            return;
                        }
                        string _Fstand = row["Fstand"].ToString();
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.Designer.cs
@@ -91,6 +91,7 @@
            this.txt_checkDate = new DevExpress.XtraEditors.TextEdit();
            this.txt_guid = new DevExpress.XtraEditors.TextEdit();
            this.txt_paperBillNo = new DevExpress.XtraEditors.TextEdit();
            this.txt_isSrm = new DevExpress.XtraEditors.CheckEdit();
            this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
@@ -107,6 +108,7 @@
            this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
            this.tabMx = new DevExpress.XtraTab.XtraTabControl();
            this.tabMxPage1 = new DevExpress.XtraTab.XtraTabPage();
            this.gcMx1 = new DevExpress.XtraGrid.GridControl();
@@ -149,8 +151,6 @@
            this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.picCheckBox = new System.Windows.Forms.PictureBox();
            this.tips = new DevExpress.Utils.ToolTipController(this.components);
            this.txt_isSrm = new DevExpress.XtraEditors.CheckEdit();
            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
            this.xtraTabControl1.SuspendLayout();
            this.xtraTabPage1.SuspendLayout();
@@ -181,6 +181,7 @@
            ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_guid.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_paperBillNo.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_isSrm.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
@@ -197,6 +198,7 @@
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tabMx)).BeginInit();
            this.tabMx.SuspendLayout();
            this.tabMxPage1.SuspendLayout();
@@ -206,8 +208,6 @@
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.rptHistory)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_isSrm.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
            this.SuspendLayout();
            // 
            // toolBarMenu1
@@ -676,6 +676,16 @@
            this.txt_paperBillNo.StyleController = this.layoutMx1;
            this.txt_paperBillNo.TabIndex = 467;
            // 
            // txt_isSrm
            //
            this.txt_isSrm.Location = new System.Drawing.Point(920, 108);
            this.txt_isSrm.Name = "txt_isSrm";
            this.txt_isSrm.Properties.Caption = "SRM标识";
            this.txt_isSrm.Size = new System.Drawing.Size(299, 24);
            this.txt_isSrm.StyleController = this.layoutMx1;
            this.txt_isSrm.TabIndex = 468;
            this.txt_isSrm.Tag = "readOnly";
            //
            // layoutControlItem18
            // 
            this.layoutControlItem18.Control = this.lbGuid;
@@ -889,6 +899,17 @@
            this.layoutControlItem4.Size = new System.Drawing.Size(303, 32);
            this.layoutControlItem4.Text = "送货单号";
            this.layoutControlItem4.TextSize = new System.Drawing.Size(75, 18);
            //
            // layoutControlItem6
            //
            this.layoutControlItem6.Control = this.txt_isSrm;
            this.layoutControlItem6.Location = new System.Drawing.Point(908, 96);
            this.layoutControlItem6.Name = "layoutControlItem6";
            this.layoutControlItem6.OptionsTableLayoutItem.ColumnIndex = 3;
            this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 3;
            this.layoutControlItem6.Size = new System.Drawing.Size(303, 33);
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem6.TextVisible = false;
            // 
            // tabMx
            // 
@@ -1386,27 +1407,6 @@
            this.picCheckBox.TabStop = false;
            this.picCheckBox.Visible = false;
            // 
            // txt_isSrm
            //
            this.txt_isSrm.Location = new System.Drawing.Point(920, 108);
            this.txt_isSrm.Name = "txt_isSrm";
            this.txt_isSrm.Properties.Caption = "SRM标识";
            this.txt_isSrm.Size = new System.Drawing.Size(299, 24);
            this.txt_isSrm.StyleController = this.layoutMx1;
            this.txt_isSrm.TabIndex = 468;
            this.txt_isSrm.Tag = "readOnly";
            //
            // layoutControlItem6
            //
            this.layoutControlItem6.Control = this.txt_isSrm;
            this.layoutControlItem6.Location = new System.Drawing.Point(908, 96);
            this.layoutControlItem6.Name = "layoutControlItem6";
            this.layoutControlItem6.OptionsTableLayoutItem.ColumnIndex = 3;
            this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 3;
            this.layoutControlItem6.Size = new System.Drawing.Size(303, 33);
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem6.TextVisible = false;
            //
            // Frm_MesInvItemArn
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
@@ -1447,6 +1447,7 @@
            ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_guid.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_paperBillNo.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_isSrm.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
@@ -1463,6 +1464,7 @@
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tabMx)).EndInit();
            this.tabMx.ResumeLayout(false);
            this.tabMxPage1.ResumeLayout(false);
@@ -1472,8 +1474,6 @@
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.rptHistory)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_isSrm.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
            this.ResumeLayout(false);
        }
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -304,12 +304,16 @@
            if (xtraTabControl1.SelectedTabPageIndex == 1)
            {
                getModel(rowGuid);
                ////如果是srm,禁用
                setSrm();
            }
            else
            {
                List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                gvList.Add(gvMx1);
                UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList);
                ////如果是srm,禁用
                setSrm();
            }
        }
@@ -328,7 +332,8 @@
            Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
            //增加时,默认组织
            string deftOrg = UtilityHelper.GetFirstOrg(txt_receiveOrgId);
            setSrm(false);
            txt_isSrm.Checked = false;
            setSrm();
        }
        /// <summary>
@@ -514,14 +519,7 @@
                    {
                        UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
                    }
                    //如果是srm,禁用
                    if (txt_isSrm.Checked)
                    {
                        setSrm(true);
                    }
                    else {
                        setSrm(false);
                    }
                }
                else
                {
@@ -683,7 +681,9 @@
            frm.ShowDialog();
        }
        private void setSrm(bool isSrm) {
        private void setSrm()
        {
            bool isSrm = (txt_isSrm.Checked);
            if (isSrm == true)
            {
                gvMx1quantity.OptionsColumn.ReadOnly = true;
@@ -693,7 +693,8 @@
                txt_suppId.Enabled = false;
                btnSelect.Enabled = false;
            }
            else {
            else
            {
                gvMx1quantity.OptionsColumn.ReadOnly = false;
                txt_paperBillNo.ReadOnly = false;
                txt_isSrm.Checked = false;