Browse Source

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 8 years ago
parent
commit
ccc22b156d

+ 49 - 26
UAS-MES/FunctionCode/Make/Make_Decompose.Designer.cs

@@ -37,8 +37,9 @@
             this.label5 = new System.Windows.Forms.Label();
             this.LabelDataGridView = new System.Windows.Forms.DataGridView();
             this.pr_name = new System.Windows.Forms.Label();
+            this.change = new System.Windows.Forms.RadioButton();
+            this.nochange = new System.Windows.Forms.RadioButton();
             this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -60,9 +61,9 @@
             this.Decompose = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.sn_code = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.OperateResult = new UAS_MES.CustomControl.RichText.RichTextAutoBottom();
+            this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.Choose2 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.cm_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.pr_detail = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.mb_bgcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -111,7 +112,7 @@
             // 
             this.label3.AutoSize = true;
             this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label3.Location = new System.Drawing.Point(361, 66);
+            this.label3.Location = new System.Drawing.Point(315, 66);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(74, 21);
             this.label3.TabIndex = 179;
@@ -121,7 +122,7 @@
             // 
             this.label4.AutoSize = true;
             this.label4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label4.Location = new System.Drawing.Point(361, 18);
+            this.label4.Location = new System.Drawing.Point(315, 18);
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(58, 21);
             this.label4.TabIndex = 180;
@@ -144,7 +145,6 @@
             this.LabelDataGridView.BackgroundColor = System.Drawing.SystemColors.ButtonFace;
             this.LabelDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Choose,
-            this.Choose2,
             this.cm_id,
             this.pr_detail,
             this.mb_bgcode,
@@ -169,11 +169,33 @@
             // 
             this.pr_name.AutoSize = true;
             this.pr_name.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.pr_name.Location = new System.Drawing.Point(459, 66);
+            this.pr_name.Location = new System.Drawing.Point(413, 66);
             this.pr_name.Name = "pr_name";
             this.pr_name.Size = new System.Drawing.Size(0, 21);
             this.pr_name.TabIndex = 192;
             // 
+            // change
+            // 
+            this.change.AutoSize = true;
+            this.change.Location = new System.Drawing.Point(731, 80);
+            this.change.Name = "change";
+            this.change.Size = new System.Drawing.Size(71, 16);
+            this.change.TabIndex = 193;
+            this.change.TabStop = true;
+            this.change.Text = "拆解更换";
+            this.change.UseVisualStyleBackColor = true;
+            // 
+            // nochange
+            // 
+            this.nochange.AutoSize = true;
+            this.nochange.Location = new System.Drawing.Point(731, 57);
+            this.nochange.Name = "nochange";
+            this.nochange.Size = new System.Drawing.Size(47, 16);
+            this.nochange.TabIndex = 194;
+            this.nochange.TabStop = true;
+            this.nochange.Text = "拆解";
+            this.nochange.UseVisualStyleBackColor = true;
+            // 
             // dataGridViewCheckBoxColumn1
             // 
             this.dataGridViewCheckBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
@@ -183,21 +205,15 @@
             this.dataGridViewCheckBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
             this.dataGridViewCheckBoxColumn1.Width = 60;
             // 
-            // dataGridViewCheckBoxColumn2
-            // 
-            this.dataGridViewCheckBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.dataGridViewCheckBoxColumn2.HeaderText = "拆解";
-            this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2";
-            this.dataGridViewCheckBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.dataGridViewCheckBoxColumn2.Width = 40;
-            // 
             // dataGridViewTextBoxColumn1
             // 
+            this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.dataGridViewTextBoxColumn1.DataPropertyName = "cm_id";
             this.dataGridViewTextBoxColumn1.HeaderText = "cm_id";
+            this.dataGridViewTextBoxColumn1.MinimumWidth = 40;
             this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
             this.dataGridViewTextBoxColumn1.Visible = false;
-            this.dataGridViewTextBoxColumn1.Width = 5;
+            this.dataGridViewTextBoxColumn1.Width = 40;
             // 
             // dataGridViewTextBoxColumn2
             // 
@@ -256,6 +272,7 @@
             this.dataGridViewTextBoxColumn7.MinimumWidth = 100;
             this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
             this.dataGridViewTextBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn7.Width = 300;
             // 
             // dataGridViewTextBoxColumn8
             // 
@@ -329,7 +346,7 @@
             this.ms_makecode.AutoSize = true;
             this.ms_makecode.CutLength = null;
             this.ms_makecode.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ms_makecode.Location = new System.Drawing.Point(459, 18);
+            this.ms_makecode.Location = new System.Drawing.Point(413, 18);
             this.ms_makecode.MaximumSize = new System.Drawing.Size(150, 0);
             this.ms_makecode.Name = "ms_makecode";
             this.ms_makecode.Size = new System.Drawing.Size(0, 21);
@@ -402,6 +419,14 @@
             this.OperateResult.TabIndex = 172;
             this.OperateResult.Text = "";
             // 
+            // dataGridViewCheckBoxColumn2
+            // 
+            this.dataGridViewCheckBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.dataGridViewCheckBoxColumn2.HeaderText = "拆解";
+            this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2";
+            this.dataGridViewCheckBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.dataGridViewCheckBoxColumn2.Width = 40;
+            // 
             // dataGridViewTextBoxColumn11
             // 
             this.dataGridViewTextBoxColumn11.DataPropertyName = "cm_sncode";
@@ -412,25 +437,20 @@
             // Choose
             // 
             this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.Choose.HeaderText = "拆解更换";
+            this.Choose.HeaderText = "勾选";
             this.Choose.MinimumWidth = 80;
             this.Choose.Name = "Choose";
             this.Choose.Width = 80;
             // 
-            // Choose2
-            // 
-            this.Choose2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.Choose2.HeaderText = "拆解";
-            this.Choose2.Name = "Choose2";
-            this.Choose2.Width = 40;
-            // 
             // cm_id
             // 
+            this.cm_id.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.cm_id.DataPropertyName = "cm_id";
             this.cm_id.HeaderText = "cm_id";
+            this.cm_id.MinimumWidth = 40;
             this.cm_id.Name = "cm_id";
             this.cm_id.Visible = false;
-            this.cm_id.Width = 5;
+            this.cm_id.Width = 40;
             // 
             // pr_detail
             // 
@@ -517,6 +537,8 @@
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(928, 573);
+            this.Controls.Add(this.nochange);
+            this.Controls.Add(this.change);
             this.Controls.Add(this.pr_name);
             this.Controls.Add(this.ms_wccode);
             this.Controls.Add(this.ms_craftname);
@@ -581,8 +603,9 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
         private System.Windows.Forms.Label pr_name;
+        private System.Windows.Forms.RadioButton change;
+        private System.Windows.Forms.RadioButton nochange;
         private System.Windows.Forms.DataGridViewCheckBoxColumn Choose;
-        private System.Windows.Forms.DataGridViewCheckBoxColumn Choose2;
         private System.Windows.Forms.DataGridViewTextBoxColumn cm_id;
         private System.Windows.Forms.DataGridViewTextBoxColumn pr_detail;
         private System.Windows.Forms.DataGridViewTextBoxColumn mb_bgcode;

+ 51 - 64
UAS-MES/FunctionCode/Make/Make_Decompose.cs

@@ -62,7 +62,7 @@ namespace UAS_MES.Make
             {
                 sql.Clear();
                 sql.Append("select max(ms_id) from makeserial where ms_sncode ='" + sn_code.Text + "' or ms_sncode = (select  max(SN)");
-                sql.Append(" from  makesnrelation left join makeserial on ms_makecode=makecode where beforesn='"+ sn_code.Text + "')");
+                sql.Append(" from  makesnrelation left join makeserial on ms_makecode=makecode where beforesn='" + sn_code.Text + "')");
                 dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                 ms_id = dt.Rows[0][0].ToString();
                 sncode_1 = sn_code.Text;
@@ -149,35 +149,7 @@ namespace UAS_MES.Make
         {
             if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
             {
-                if (LabelDataGridView.Columns[e.ColumnIndex].HeaderText == "拆解更换")
-                {
-                    if (LabelDataGridView.Rows[e.RowIndex].Cells["Choose2"].Value != null)
-                    {
-                        if (!(Boolean)LabelDataGridView.Rows[e.RowIndex].Cells["Choose2"].Value)
-                        {
-                            LabelDataGridView.Rows[e.RowIndex].Cells["Choose2"].Value = true;
-                        }
-                        if ((Boolean)LabelDataGridView.Rows[e.RowIndex].Cells["Choose2"].Value)
-                        {
-                            LabelDataGridView.Rows[e.RowIndex].Cells["Choose2"].Value = false;
-                        }
-                    }
-                }
-                else if (LabelDataGridView.Columns[e.ColumnIndex].HeaderText == "拆解")
-                {
-                    if (LabelDataGridView.Rows[e.RowIndex].Cells["Choose"].Value != null)
-                    {
-                        if (!(Boolean)LabelDataGridView.Rows[e.RowIndex].Cells["Choose"].Value)
-                        {
-                            LabelDataGridView.Rows[e.RowIndex].Cells["Choose"].Value = true;
-                        }
-                        if ((Boolean)LabelDataGridView.Rows[e.RowIndex].Cells["Choose"].Value)
-                        {
-                            LabelDataGridView.Rows[e.RowIndex].Cells["Choose"].Value = false;
-                        }
-                    }
-                }
-                else if (LabelDataGridView.Columns[e.ColumnIndex].Name == "AddBad")
+                if (LabelDataGridView.Columns[e.ColumnIndex].Name == "AddBad")
                 {
                     if (ms_sncode.Text == "" || ms_makecode.Text == "")
                     {
@@ -228,7 +200,7 @@ namespace UAS_MES.Make
             {
                 if (LabelDataGridView.Rows[i].Cells["Choose"].Value != null)
                 {
-                    if ((Boolean)LabelDataGridView.Rows[i].Cells["Choose"].Value == true && (LabelDataGridView.Rows[i].Cells["mb_badcode"].Value == null || LabelDataGridView.Rows[i].Cells["New_BarCode"].Value == null))
+                    if ((Boolean)LabelDataGridView.Rows[i].Cells["Choose"].Value == true && change.Checked && (LabelDataGridView.Rows[i].Cells["mb_badcode"].Value == null || LabelDataGridView.Rows[i].Cells["New_BarCode"].Value == null))
                     {
                         OperateResult.AppendText("第" + (i + 1) + "行没有采集不良代码或新批号\n", Color.Red);
                         return;
@@ -238,11 +210,11 @@ namespace UAS_MES.Make
 
             for (int i = 0; i < LabelDataGridView.Rows.Count; i++)
             {
-                if (LabelDataGridView.Rows[i].Cells["Choose2"].Value != null || LabelDataGridView.Rows[i].Cells["Choose"].Value != null)
+                if (LabelDataGridView.Rows[i].Cells["Choose"].Value != null)
                 {
-                    if (LabelDataGridView.Rows[i].Cells["Choose"].Value != null)
+                    if ((Boolean)LabelDataGridView.Rows[i].Cells["Choose"].Value == true)
                     {
-                        if ((Boolean)LabelDataGridView.Rows[i].Cells["Choose"].Value == true)
+                        if (change.Checked)
                         {
                             dtbar = new DataTable();
                             sql.Clear();
@@ -266,20 +238,26 @@ namespace UAS_MES.Make
                                     return;
                                 }
                             }
-                            else {
-                                OperateResult.AppendText(">>序列号"+ms_sncode.Text+"途程未维护工序BOM\n", Color.Red);
+                            else
+                            {
+                                OperateResult.AppendText(">>序列号" + ms_sncode.Text + "途程未维护工序BOM\n", Color.Red);
                                 return;
                             }
 
                             //获取物料生产类型属性
+                            //sql.Clear();
+                            //sql.Append("select cm_soncode,cm_barcode, pr_manutype from craftmaterial left join product on cm_soncode=pr_code where cm_id ='" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "'");
+                            //dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
+                            //string pr_manutype = dt.Rows[0]["pr_manutype"].ToString();       
+                            //判断生产信息
                             sql.Clear();
-                            sql.Append("select cm_soncode,cm_barcode, pr_manutype from craftmaterial left join product on cm_soncode=pr_code where cm_id ='" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "'");
+                            sql.Append("select ms_id,ms_sncode,cm_barcode from craftmaterial left join makeserial on cm_barcode = ms_sncode and cm_soncode = ms_prodcode where cm_id = '" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "' and cm_materialtype ='1' and ms_id>'0' and ms_nextmacode = '" + ms_makecode.Text + "'");
                             dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
-                            string pr_manutype = dt.Rows[0]["pr_manutype"].ToString();
                             //制造件
-                            if (pr_manutype == "MAKE")
+                            if (dt.Rows.Count > 0)
                             {
                                 string makecode = (String)dh.getFieldDataByCondition("makeserial", "ms_makecode", "ms_sncode = '" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "' and ms_prodcode = '" + LabelDataGridView.Rows[i].Cells["cm_soncode"].Value + "'");
+                                string mss_id = dt.Rows[0]["ms_id"].ToString();
                                 ////MakeBad表插入物料批号不良信息
                                 sql.Clear();
                                 sql.Append(" insert into makebad (mb_id, mb_inman,mb_indate,mb_stepcode,mb_sourcecode, mb_bgcode,mb_mscode,mb_sncode, mb_badcode, mb_makecode)");
@@ -288,7 +266,7 @@ namespace UAS_MES.Make
                                 dh.BatchInsert(sql.GetString(), new string[] { "bg_code", "bc_code" }, bgcode, bccode);
                                 //更新子件序列号为待维修                               
                                 sql.Clear();
-                                sql.Append("update makeserial set ms_status=3 ,ms_badtimes = ms_badtimes+1 where ms_sncode='" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "' and ms_prodcode='" + LabelDataGridView.Rows[i].Cells["cm_soncode"].Value + "'");
+                                sql.Append("update makeserial set ms_status=3 ,ms_badtimes = ms_badtimes+1,ms_nextmacode = '' where ms_id='" + mss_id + "' ");
                                 dh.ExecuteSql(sql.GetString(), "update");
                             }
                             //采购件,则将不良信息插入不良零件表中MAKEBADRSPART
@@ -296,7 +274,7 @@ namespace UAS_MES.Make
                             {
                                 sql.Clear();
                                 sql.Append("insert into  MAKEBADRSPART(mbp_id,mbp_indate,mbp_inman,mbp_sncode, mbp_badcode, mbp_part, mbp_makecode, mbp_sccode,mbp_barcode)values");
-                                sql.Append("(MAKEBADRSPART_seq.nextval, sysdate, '" + User.UserCode + "','" + ms_sncode.Text + "',:bc_code,'" + LabelDataGridView.Rows[i].Cells["cm_soncode"].Value + "','" + ms_makecode.Text + "','" + User.UserSourceCode + "','"+ LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "')");
+                                sql.Append("(MAKEBADRSPART_seq.nextval, sysdate, '" + User.UserCode + "','" + ms_sncode.Text + "',:bc_code,'" + LabelDataGridView.Rows[i].Cells["cm_soncode"].Value + "','" + ms_makecode.Text + "','" + User.UserSourceCode + "','" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "')");
                                 dh.BatchInsert(sql.GetString(), new string[] { "bc_code" }, bccode);
                             }
 
@@ -321,32 +299,41 @@ namespace UAS_MES.Make
                             decompose = true;
                             LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, "物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "拆解换料", "拆解换料成功", ms_sncode.Text, "");
                         }
-                    }
-                    else if ((Boolean)LabelDataGridView.Rows[i].Cells["Choose2"].Value == true)
-                    {
-                        //craftmaterial解除相应物料绑定
-                        sql.Clear();
-                        sql.Append("update craftmaterial set cm_status=-1,cm_dropman='" + User.UserName + "',");
-                        sql.Append("cm_dropdate =sysdate,cm_dropstep='" + User.CurrentStepName + "',");
-                        sql.Append("cm_dropsccode='" + User.CurrentStepCode + "' where cm_id='" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "'");
-                        dh.ExecuteSql(sql.GetString(), "update");
-                        OperateResult.AppendText("物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "拆解成功\n", Color.Green);
-                        decompose = true;
-                        LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, "物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "拆解", "拆解成功", ms_sncode.Text, "");
+                        else if (nochange.Checked)
+                        {
+                            //craftmaterial解除相应物料绑定
+                            sql.Clear();
+                            sql.Append("update craftmaterial set cm_status=-1,cm_dropman='" + User.UserName + "',");
+                            sql.Append("cm_dropdate =sysdate,cm_dropstep='" + User.CurrentStepName + "',");
+                            sql.Append("cm_dropsccode='" + User.CurrentStepCode + "' where cm_id='" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "'");
+                            dh.ExecuteSql(sql.GetString(), "update");
+
+                            //更新序列号信息
+                            sql.Clear();
+                            sql.Append("update makeserial set ms_nextmacode = '' where ms_sncode = (select cm_barcode from craftmaterial where cm_id = '" + LabelDataGridView.Rows[i].Cells["cm_id"].Value + "' and CM_MATERIALTYPE = '1') and ms_nextmacode='" + ms_makecode.Text + "'");
+                            dh.ExecuteSql(sql.GetString(), "update");
+                            OperateResult.AppendText("物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "拆解成功\n", Color.Green);
+                            decompose = true;
+                            LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, "物料" + LabelDataGridView.Rows[i].Cells["cm_barcode"].Value + "拆解", "拆解成功", ms_sncode.Text, "");
+                        }
+                        else {
+                            OperateResult.AppendText(">>>没有选择拆解方式\n",Color.Red);
+                            return;
+                        }
                     }
                 }
+                }
+                if (decompose)
+                {
+                    count++;
+                    deccount.Text = count + "";
+                    LoadData(sncode_1, sender, new KeyEventArgs(Keys.Enter));
+                }
+                else
+                {
+                    OperateResult.AppendText("没有选择拆解项\n", Color.Red);
+                }
             }
-            if (decompose)
-            {
-                count++;
-                deccount.Text = count + "";
-                LoadData(sncode_1, sender, new KeyEventArgs(Keys.Enter));
-            }
-            else
-            {
-                OperateResult.AppendText("没有选择拆解项\n", Color.Red);
-            }
-        }
 
         private void LabelDataGridView_Sorted(object sender, EventArgs e)
         {

+ 0 - 3
UAS-MES/FunctionCode/Make/Make_Decompose.resx

@@ -117,9 +117,6 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="Choose2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <metadata name="cm_id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>