lu
2024-11-14 a0a61a0ae191ef17124b0bc00557de4f3f383c6a
细节
已修改4个文件
171 ■■■■ 文件已修改
DevApp/Gs.DevApp/App.config 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/BasicData/Frm_Supplier.Designer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQmCheckitemDt.Designer.cs 115 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQmCheckitemDt.cs 51 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/App.config
@@ -28,8 +28,8 @@
        </assemblyBinding>
    </runtime>
    <appSettings>
        <!--<add key="WebApiUrl" value="http://localhost:5263/" />-->
        <add key="WebApiUrl" value="http://192.168.1.145:81/" />
         <add key="WebApiUrl" value="http://localhost:5263/" />
        <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />-->
        <add key="LogPath" value="logs" />
        <add key="ProductName" value="广深科技 G-MES V2.0" />
        <add key="PageSize" value="50" />
DevApp/Gs.DevApp/DevFrm/BasicData/Frm_Supplier.Designer.cs
@@ -550,6 +550,7 @@
            this.gv_id.Name = "gv_id";
            this.gv_id.OptionsColumn.AllowEdit = false;
            this.gv_id.Tag = "query_a.id";
            this.gv_id.UnboundDataType = typeof(string);
            this.gv_id.Visible = true;
            this.gv_id.VisibleIndex = 1;
            this.gv_id.Width = 60;
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQmCheckitemDt.Designer.cs
@@ -29,6 +29,11 @@
        /// </summary>
        private void InitializeComponent()
        {
            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions3 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject9 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject10 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject11 = new DevExpress.Utils.SerializableAppearanceObject();
            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject12 = new DevExpress.Utils.SerializableAppearanceObject();
            this.gvMx1pid = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gvMx1facLevel = new DevExpress.XtraGrid.Columns.GridColumn();
            this.rptJSSP = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox();
@@ -50,7 +55,9 @@
            this.gcMx1 = new DevExpress.XtraGrid.GridControl();
            this.gvMx1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.sampleSizeName = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gvMxDel = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit();
            this.lb_tname = new DevExpress.XtraEditors.LabelControl();
            this.txt_itemNo = new DevExpress.XtraEditors.TextEdit();
            this.lb_isenabled = new DevExpress.XtraEditors.LabelControl();
@@ -113,6 +120,7 @@
            this.tabMxPage1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_itemNo.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_fversion.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_ftwoCheckdate.Properties)).BeginInit();
@@ -141,7 +149,7 @@
            // 
            this.gvMx1pid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1pid.AppearanceCell.Options.UseFont = true;
            this.gvMx1pid.Caption = "pid ";
            this.gvMx1pid.Caption = "pid";
            this.gvMx1pid.FieldName = "pid";
            this.gvMx1pid.MinWidth = 50;
            this.gvMx1pid.Name = "gvMx1pid";
@@ -152,7 +160,7 @@
            // 
            this.gvMx1facLevel.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1facLevel.AppearanceCell.Options.UseFont = true;
            this.gvMx1facLevel.Caption = "接收水平 ";
            this.gvMx1facLevel.Caption = "接收水平";
            this.gvMx1facLevel.ColumnEdit = this.rptJSSP;
            this.gvMx1facLevel.FieldName = "facLevel";
            this.gvMx1facLevel.MinWidth = 150;
@@ -174,9 +182,9 @@
            // 
            this.gvMx1fstand.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1fstand.AppearanceCell.Options.UseFont = true;
            this.gvMx1fstand.Caption = "标准值 ";
            this.gvMx1fstand.Caption = "标准值";
            this.gvMx1fstand.FieldName = "fstand";
            this.gvMx1fstand.MinWidth = 150;
            this.gvMx1fstand.MinWidth = 60;
            this.gvMx1fstand.Name = "gvMx1fstand";
            this.gvMx1fstand.Tag = "query_a.FSTAND";
            this.gvMx1fstand.Visible = true;
@@ -187,7 +195,7 @@
            // 
            this.gvMx1fcheckLevel.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1fcheckLevel.AppearanceCell.Options.UseFont = true;
            this.gvMx1fcheckLevel.Caption = "检验水平 ";
            this.gvMx1fcheckLevel.Caption = "检验水平";
            this.gvMx1fcheckLevel.ColumnEdit = this.rptJYSP;
            this.gvMx1fcheckLevel.FieldName = "fcheckLevel";
            this.gvMx1fcheckLevel.MinWidth = 200;
@@ -211,18 +219,18 @@
            this.gvMx1fdownAllow.AppearanceCell.Options.UseFont = true;
            this.gvMx1fdownAllow.Caption = "下限";
            this.gvMx1fdownAllow.FieldName = "fdownAllow";
            this.gvMx1fdownAllow.MinWidth = 150;
            this.gvMx1fdownAllow.MinWidth = 60;
            this.gvMx1fdownAllow.Name = "gvMx1fdownAllow";
            this.gvMx1fdownAllow.Tag = "query_a.FDOWN_ALLOW";
            this.gvMx1fdownAllow.Visible = true;
            this.gvMx1fdownAllow.VisibleIndex = 11;
            this.gvMx1fdownAllow.Width = 150;
            this.gvMx1fdownAllow.Width = 60;
            // 
            // gvMx1fcheckTool
            // 
            this.gvMx1fcheckTool.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1fcheckTool.AppearanceCell.Options.UseFont = true;
            this.gvMx1fcheckTool.Caption = "检验工具 ";
            this.gvMx1fcheckTool.Caption = "检验工具";
            this.gvMx1fcheckTool.ColumnEdit = this.rptJYGJ;
            this.gvMx1fcheckTool.FieldName = "fcheckTool";
            this.gvMx1fcheckTool.MinWidth = 150;
@@ -244,9 +252,9 @@
            // 
            this.gvMx1sampleSizeNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1sampleSizeNo.AppearanceCell.Options.UseFont = true;
            this.gvMx1sampleSizeNo.Caption = "检验标准编码 ";
            this.gvMx1sampleSizeNo.Caption = "检验标准名称";
            this.gvMx1sampleSizeNo.ColumnEdit = this.rptJYBZ;
            this.gvMx1sampleSizeNo.FieldName = "sampleSizeNo";
            this.gvMx1sampleSizeNo.FieldName = "sampleSizeName";
            this.gvMx1sampleSizeNo.MinWidth = 150;
            this.gvMx1sampleSizeNo.Name = "gvMx1sampleSizeNo";
            this.gvMx1sampleSizeNo.Tag = "query_a.SAMPLE_SIZE_NO";
@@ -267,7 +275,7 @@
            // 
            this.gvMx1fcheckItem.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1fcheckItem.AppearanceCell.Options.UseFont = true;
            this.gvMx1fcheckItem.Caption = "检验项目 ";
            this.gvMx1fcheckItem.Caption = "检验项目";
            this.gvMx1fcheckItem.ColumnEdit = this.rptJYXM;
            this.gvMx1fcheckItem.FieldName = "fcheckItem";
            this.gvMx1fcheckItem.MinWidth = 150;
@@ -291,18 +299,18 @@
            this.gvMx1fupAllow.AppearanceCell.Options.UseFont = true;
            this.gvMx1fupAllow.Caption = "上限";
            this.gvMx1fupAllow.FieldName = "fupAllow";
            this.gvMx1fupAllow.MinWidth = 150;
            this.gvMx1fupAllow.MinWidth = 60;
            this.gvMx1fupAllow.Name = "gvMx1fupAllow";
            this.gvMx1fupAllow.Tag = "query_a.FUP_ALLOW";
            this.gvMx1fupAllow.Visible = true;
            this.gvMx1fupAllow.VisibleIndex = 9;
            this.gvMx1fupAllow.Width = 150;
            this.gvMx1fupAllow.Width = 60;
            // 
            // gvMx1forder
            // 
            this.gvMx1forder.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1forder.AppearanceCell.Options.UseFont = true;
            this.gvMx1forder.Caption = "顺序 ";
            this.gvMx1forder.Caption = "顺序";
            this.gvMx1forder.FieldName = "forder";
            this.gvMx1forder.MinWidth = 50;
            this.gvMx1forder.Name = "gvMx1forder";
@@ -328,7 +336,7 @@
            // 
            this.gvMx1guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F);
            this.gvMx1guid.AppearanceCell.Options.UseFont = true;
            this.gvMx1guid.Caption = "guid ";
            this.gvMx1guid.Caption = "guid";
            this.gvMx1guid.FieldName = "guid";
            this.gvMx1guid.MinWidth = 50;
            this.gvMx1guid.Name = "gvMx1guid";
@@ -339,7 +347,7 @@
            // 
            this.tabMxPage1.Controls.Add(this.gcMx1);
            this.tabMxPage1.Name = "tabMxPage1";
            this.tabMxPage1.Size = new System.Drawing.Size(1124, 371);
            this.tabMxPage1.Size = new System.Drawing.Size(1073, 371);
            this.tabMxPage1.Text = "明细1";
            // 
            // gcMx1
@@ -353,8 +361,9 @@
            this.rptJYGJ,
            this.rptJYBZ,
            this.rptJSSP,
            this.rptJYSP});
            this.gcMx1.Size = new System.Drawing.Size(1124, 371);
            this.rptJYSP,
            this.repositoryItemButtonEdit1});
            this.gcMx1.Size = new System.Drawing.Size(1073, 371);
            this.gcMx1.TabIndex = 0;
            this.gcMx1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gvMx1});
@@ -370,12 +379,13 @@
            this.gvMx1memo,
            this.gvMx1fcheckTool,
            this.gvMx1sampleSizeNo,
            this.gridColumn6,
            this.sampleSizeName,
            this.gvMx1fcheckLevel,
            this.gvMx1facLevel,
            this.gvMx1fupAllow,
            this.gvMx1fstand,
            this.gvMx1fdownAllow});
            this.gvMx1fdownAllow,
            this.gvMxDel});
            this.gvMx1.GridControl = this.gcMx1;
            this.gvMx1.Name = "gvMx1";
            this.gvMx1.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True;
@@ -393,15 +403,37 @@
            this.gridColumn5.VisibleIndex = 2;
            this.gridColumn5.Width = 150;
            // 
            // gridColumn6
            // sampleSizeName
            // 
            this.gridColumn6.Caption = "检验标准名称";
            this.gridColumn6.FieldName = "sampleSizeName";
            this.gridColumn6.MinWidth = 150;
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 6;
            this.gridColumn6.Width = 150;
            this.sampleSizeName.Caption = "检验标准编码";
            this.sampleSizeName.FieldName = "sampleSizeNo";
            this.sampleSizeName.MinWidth = 150;
            this.sampleSizeName.Name = "sampleSizeName";
            this.sampleSizeName.OptionsColumn.ReadOnly = true;
            this.sampleSizeName.Visible = true;
            this.sampleSizeName.VisibleIndex = 6;
            this.sampleSizeName.Width = 150;
            //
            // gvMxDel
            //
            this.gvMxDel.Caption = "移除";
            this.gvMxDel.ColumnEdit = this.repositoryItemButtonEdit1;
            this.gvMxDel.MinWidth = 50;
            this.gvMxDel.Name = "gvMxDel";
            this.gvMxDel.Visible = true;
            this.gvMxDel.VisibleIndex = 12;
            this.gvMxDel.Width = 50;
            //
            // repositoryItemButtonEdit1
            //
            this.repositoryItemButtonEdit1.AutoHeight = false;
            editorButtonImageOptions3.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16;
            editorButtonImageOptions3.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter;
            this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "移除", -1, true, true, false, editorButtonImageOptions3, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject9, serializableAppearanceObject10, serializableAppearanceObject11, serializableAppearanceObject12, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
            this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1";
            this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor;
            this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick);
            // 
            // lb_tname
            // 
@@ -716,7 +748,7 @@
            this.toolBarMenu1.Location = new System.Drawing.Point(0, 0);
            this.toolBarMenu1.Name = "toolBarMenu1";
            this.toolBarMenu1.rptParameter = null;
            this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80);
            this.toolBarMenu1.Size = new System.Drawing.Size(1077, 80);
            this.toolBarMenu1.TabIndex = 0;
            this.toolBarMenu1.xlsInService = null;
            this.toolBarMenu1.xlsOutParameter = null;
@@ -728,7 +760,7 @@
            this.gcMain.Location = new System.Drawing.Point(0, 0);
            this.gcMain.MainView = this.gridView1;
            this.gcMain.Name = "gcMain";
            this.gcMain.Size = new System.Drawing.Size(1126, 531);
            this.gcMain.Size = new System.Drawing.Size(1075, 531);
            this.gcMain.TabIndex = 1;
            this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gridView1});
@@ -832,7 +864,7 @@
            this.xtraTabControl1.Location = new System.Drawing.Point(0, 80);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
            this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602);
            this.xtraTabControl1.Size = new System.Drawing.Size(1077, 602);
            this.xtraTabControl1.TabIndex = 3;
            this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
            this.xtraTabPage1,
@@ -843,7 +875,7 @@
            this.xtraTabPage1.Controls.Add(this.gcMain);
            this.xtraTabPage1.Controls.Add(this.pageBar1);
            this.xtraTabPage1.Name = "xtraTabPage1";
            this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570);
            this.xtraTabPage1.Size = new System.Drawing.Size(1075, 570);
            this.xtraTabPage1.Text = "数据查询";
            // 
            // pageBar1
@@ -855,7 +887,7 @@
            this.pageBar1.Name = "pageBar1";
            this.pageBar1.RecordCount = 0;
            this.pageBar1.RowsCount = 50;
            this.pageBar1.Size = new System.Drawing.Size(1126, 39);
            this.pageBar1.Size = new System.Drawing.Size(1075, 39);
            this.pageBar1.TabIndex = 3;
            this.pageBar1.TotalPages = 0;
            // 
@@ -865,7 +897,7 @@
            this.xtraTabPage2.Controls.Add(this.panel1);
            this.xtraTabPage2.Name = "xtraTabPage2";
            this.xtraTabPage2.PageEnabled = false;
            this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570);
            this.xtraTabPage2.Size = new System.Drawing.Size(1075, 570);
            this.xtraTabPage2.Text = "数据编辑";
            // 
            // tabMx
@@ -874,7 +906,7 @@
            this.tabMx.Location = new System.Drawing.Point(0, 167);
            this.tabMx.Name = "tabMx";
            this.tabMx.SelectedTabPage = this.tabMxPage1;
            this.tabMx.Size = new System.Drawing.Size(1126, 403);
            this.tabMx.Size = new System.Drawing.Size(1075, 403);
            this.tabMx.TabIndex = 2;
            this.tabMx.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
            this.tabMxPage1});
@@ -916,7 +948,7 @@
            this.panel1.Font = new System.Drawing.Font("Tahoma", 10F);
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(1126, 167);
            this.panel1.Size = new System.Drawing.Size(1075, 167);
            this.panel1.TabIndex = 1;
            // 
            // btnSelect
@@ -941,11 +973,13 @@
            // 
            // txt_ItemId
            // 
            this.txt_ItemId.IsReadly = false;
            this.txt_ItemId.KeyFile = "";
            this.txt_ItemId.Location = new System.Drawing.Point(85, 14);
            this.txt_ItemId.Name = "txt_ItemId";
            this.txt_ItemId.Size = new System.Drawing.Size(262, 33);
            this.txt_ItemId.TabIndex = 380;
            this.txt_ItemId.Tag = "no";
            // 
            // txt_isenabled
            // 
@@ -1035,7 +1069,7 @@
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1128, 682);
            this.ClientSize = new System.Drawing.Size(1077, 682);
            this.Controls.Add(this.xtraTabControl1);
            this.Controls.Add(this.toolBarMenu1);
            this.Name = "Frm_MesQmCheckitemDt";
@@ -1047,6 +1081,7 @@
            this.tabMxPage1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemButtonEdit1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_itemNo.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_fversion.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_ftwoCheckdate.Properties)).EndInit();
@@ -1144,7 +1179,7 @@
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn5;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn6;
        private DevExpress.XtraGrid.Columns.GridColumn sampleSizeName;
        private DevExpress.XtraEditors.LabelControl labelCreateDate;
        private DevExpress.XtraEditors.TextEdit txt_createDate;
        private DevExpress.XtraEditors.LabelControl labelUserName;
@@ -1163,5 +1198,7 @@
        private DevExpress.XtraEditors.Repository.RepositoryItemComboBox rptJYSP;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
        private DevExpress.XtraGrid.Columns.GridColumn gvMxDel;
        private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1;
    }
}
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQmCheckitemDt.cs
@@ -6,7 +6,6 @@
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Grid;
using Gs.DevApp.DevFrm.QC.Models;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
@@ -574,6 +573,7 @@
                foreach (DataRow dr in dt.Rows)
                {
                    rptJYBZ.Items.Add((new CboItemEntity(dr["SampleSizeNo"].ToString(), dr["SampleSizeName"].ToString())));
                    //rptJYBZ.Items.Add((new CboItemEntity(dr["SampleSizeNo"].ToString(), dr["SampleSizeName"].ToString())));
                    //string ddddd = dr["SampleSizeName"].ToString();
                }
            }
@@ -632,20 +632,55 @@
            ComboBoxEdit comboBox = sender as ComboBoxEdit;
            if (comboBox != null)
            {
                GridView myView = (gcMx1.MainView as GridView);
                int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle);
                CboItemEntity _itm = comboBox.EditValue as CboItemEntity;
                string _val = _itm.Value.ToString();
                string _txt = _itm.Text.ToString();
                gvMx1.CloseEditor();
                gvMx1.UpdateCurrentRow();
                GridView myView = (gcMx1.MainView as GridView);
                int dataIndex = myView.GetDataSourceRowIndex(myView.FocusedRowHandle);
                myView.SetRowCellValue(dataIndex, "sampleSizeNo", _val);
                myView.SetRowCellValue(dataIndex, "sampleSizeName", _txt);
                gvMx1.SetRowCellValue(dataIndex, "sampleSizeNo", _val);
                gvMx1.SetRowCellValue(dataIndex, "sampleSizeName", _txt);
            }
        }
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            gvMx1.CloseEditor();
            gvMx1.UpdateCurrentRow();
            var rowhandle = gvMx1.FocusedRowHandle;
            if (rowhandle < 0)
                return;
            if (e.Button.Index == 0)
            {
                var dr = gvMx1.GetDataRow(rowhandle);
                var mxGuid = dr["guid"].ToString();
                if (!MsgHelper.AskQuestion("你选择了1条数据,确定删除吗?"))
                    return;
                if (string.IsNullOrEmpty(mxGuid))
                {
                    gvMx1.DeleteRow(rowhandle);
                    return;
                }
                var strJson = "";
                var lst = new List<string>();
                lst.Add(mxGuid);
                try
                {
                    strJson = UtilityHelper.HttpPost("",
                        _webServiceName + "DeleteModelMx",
                        JsonConvert.SerializeObject(lst));
                    var _rtn = UtilityHelper.ReturnToDynamic(strJson);
                    if (_rtn.rtnCode > 0) getModel(lbGuid.Text, true, 1);
                    MsgHelper.Warning("提示:" + _rtn.rtnMsg);
                }
                catch (Exception ex)
                {
                    MsgHelper.Warning("提示:" + ex.Message);
                }
            }
        }
        #endregion
    }
}