Exemplo n.º 1
0
 private void textBoxX1_TextChanged(object sender, EventArgs e)
 {
     textBox68.Text = textBoxX1.Text;
     textBox7.Text  = textBoxX1.Text;
     highlighter2.FocusHighlightColor = DevComponents.DotNetBar.Validator.eHighlightColor.Red;
     highlighter2.SetHighlightOnFocus(textBoxX1, true);
     if (!string.IsNullOrEmpty(textBoxX1.Text.Trim()))
     {
         foreach (Control control in this.Controls)
         {
             control.Enabled = true;
         }
         M_SpecificInformation m_SpecificInformation = b_GetMethod.GetM_SpecificInformation(textBoxX1.Text);
         M_SpecificInformationPaddingDataToControl(m_SpecificInformation);
     }
     else
     {
         LockControl();
         ToastNotification.CustomGlowColor = Color.FromArgb(48, 32, 22);
         ToastNotification.Show(this, "请输入随工单序号!!!", BLL.B_GetMethod.ReadImageFile(@"../../Images/Error.png"), 3000, eToastGlowColor.Red, eToastPosition.MiddleCenter);
     }
 }
Exemplo n.º 2
0
        public void SetSpecificInformationParameter(string keyword)
        {
            M_SpecificInformation m_SpecificInformation = b_GetMethod.GetM_SpecificInformation(keyword);

            if (m_SpecificInformation == null)
            {
                return;
            }
            textBox3.Text         = m_SpecificInformation.workOrderNumberOne;
            textBox4.Text         = m_SpecificInformation.workOrderNumberTow;
            dateTimePicker1.Value = m_SpecificInformation.deliveryDate;
            dateTimePicker2.Value = m_SpecificInformation.orderDate;
            textBox1.Text         = m_SpecificInformation.contractNumber;
            textBox2.Text         = m_SpecificInformation.specificationNumber;
            textBox7.Text         = m_SpecificInformation.tbleNumber;

            textBox22.Text = m_SpecificInformation.LD_One;
            textBox16.Text = m_SpecificInformation.LD_Tow;
            textBox15.Text = m_SpecificInformation.LD_Three;

            textBox19.Text = m_SpecificInformation.PT_One;
            textBox14.Text = m_SpecificInformation.PT_Tow;
            textBox13.Text = m_SpecificInformation.PT_Three;

            textBox21.Text = m_SpecificInformation.monoblockOne;
            textBox12.Text = m_SpecificInformation.monoblockTow;
            textBox11.Text = m_SpecificInformation.monoblockThree;

            textBox18.Text = m_SpecificInformation.zeroFilterChipOne;
            textBox34.Text = m_SpecificInformation.zeroFilterChipTow;
            textBox33.Text = m_SpecificInformation.zeroFilterChipThree;

            textBox20.Text = m_SpecificInformation.fortyFiveFilterChipOne;
            textBox10.Text = m_SpecificInformation.fortyFiveFilterChipTow;
            textBox9.Text  = m_SpecificInformation.fortyFiveFilterChipThree;

            textBox17.Text = m_SpecificInformation.interfaceModuleOne;
            textBox32.Text = m_SpecificInformation.interfaceModuleTow;
            textBox31.Text = m_SpecificInformation.interfaceModuleThree;

            textBox78.Text = m_SpecificInformation.equipmentNumberOne;
            textBox77.Text = m_SpecificInformation.equipmentNumberTow;
            textBox76.Text = m_SpecificInformation.equipmentNumberThree;
            textBox75.Text = m_SpecificInformation.equipmentNumberFour;

            textBox74.Text = m_SpecificInformation.uploadQuantity.ToString();
            textBox73.Text = m_SpecificInformation.uploadTime.ToString();
            textBox72.Text = m_SpecificInformation.unqualifiedQuantity.ToString();
            textBox71.Text = m_SpecificInformation.consoleOneFirstText.ToString();
            textBox70.Text = m_SpecificInformation.consoleOneLastText;
            textBox69.Text = m_SpecificInformation.consoleTowFirstText.ToString();
            textBox68.Text = m_SpecificInformation.consoleTowLastText;
            textBox67.Text = m_SpecificInformation.consoleThreeFirstText.ToString();
            textBox66.Text = m_SpecificInformation.consoleThreeLastText;
            textBox65.Text = m_SpecificInformation.consoleFourFirstText.ToString();
            textBox64.Text = m_SpecificInformation.consoleFourLastText;
            textBox63.Text = m_SpecificInformation.dataEntryStaffFirstText.ToString();
            textBox62.Text = m_SpecificInformation.dataEntryStaffLastText;

            textBox61.Text = m_SpecificInformation.filterChipError.ToString();
            textBox55.Text = m_SpecificInformation.weldError.ToString();
            textBox60.Text = m_SpecificInformation.LDError.ToString();
            textBox38.Text = m_SpecificInformation.exceed.ToString();
            textBox59.Text = m_SpecificInformation.pressure.ToString();
            textBox37.Text = m_SpecificInformation.LD_Threshold.ToString();
            textBox58.Text = m_SpecificInformation.markingError.ToString();
            textBox57.Text = m_SpecificInformation.monoblockError.ToString();
            textBox56.Text = m_SpecificInformation.slugError.ToString();
            textBox36.Text = m_SpecificInformation.theOther;
            textBox35.Text = m_SpecificInformation.theQuantity.ToString();

            textBox23.Text = m_SpecificInformation.serialNumberOne;
            textBox24.Text = m_SpecificInformation.serialNumberTow;
            textBox25.Text = m_SpecificInformation.serialNumberThree;
            textBox28.Text = m_SpecificInformation.CASE_One;
            textBox27.Text = m_SpecificInformation.CASE_Tow;
            textBox26.Text = m_SpecificInformation.CASE_Three;
            textBox39.Text = m_SpecificInformation.LD_AddOne;
            textBox30.Text = m_SpecificInformation.LD_AddTow;
            textBox29.Text = m_SpecificInformation.LD_AddThree;
            textBox42.Text = m_SpecificInformation.LD_AddFour;
            textBox41.Text = m_SpecificInformation.LD_AddFive;
            textBox40.Text = m_SpecificInformation.LD_AddSix;
            textBox51.Text = m_SpecificInformation.LD_MinusOne;
            textBox50.Text = m_SpecificInformation.LD_MinusTow;
            textBox49.Text = m_SpecificInformation.LD_MinusThree;
            textBox48.Text = m_SpecificInformation.rangeOne;
            textBox47.Text = m_SpecificInformation.rangeTow;
            textBox46.Text = m_SpecificInformation.rangeThree;
            textBox45.Text = m_SpecificInformation.concaveCnvexOne;
            textBox44.Text = m_SpecificInformation.concaveCnvexTow;
            textBox43.Text = m_SpecificInformation.concaveCnvexThree;
            textBox54.Text = m_SpecificInformation.slugFocal;
            textBox53.Text = m_SpecificInformation.inspectionPersonal;
            textBox52.Text = m_SpecificInformation.checker;
            textBox8.Text  = m_SpecificInformation.remarks;
        }