private void fmComeGoNew_Load(object sender, EventArgs e)
 {
     ChangeLanguage(Employee.TheLanguageCode);
     this.ActiveControl = edtTextID;
     if (Employee.TheEmployeeNo != "")
     {
         tbNummer.Text = Employee.TheEmployeeNo;
         if (Employee.TheWorkingWorkCenter == "")
         {
             Employee.TheWorkingWorkCenter = Employee.TheDefaultWorkCenter;
         }
         tbWorkshift.Text = Employee.TheWorkingWorkCenter + " " + mt.ReturnWorkCenterName(Employee.TheWorkingWorkCenter);
         tbName.Text      = Employee.TheFirstName + " " + Employee.TheLastName;
         if (Employee.TheAbsenceCode != "")
         {
             lblTimeGroup.Text = mt.ReadResFile(this.Name.ToString() + "lblTimeGroup");
             tbTimeGroup.Text  = Employee.TheAbsenceCode + " " + mt.ReturAbsenceName(Employee.TheAbsenceCode);
         }
         else
         {
             tbTimeGroup.Text = Employee.TheTimeGroupCode;
         }
         lblHeaderText.Text = mt.ReadResFile(this.Name.ToString() + "LeadText01");
         edtTextID.Text     = mt.ReadResFile(this.Name.ToString() + "Confirm01");
         Globals.TheGlobalStep++;
     }
     else
     {
         edtTextID.Text = "";
         MessageBox.Show(mt.ReadResFile(this.Name.ToString() + "Error01"));
         timer1.Start();
     }
 }
Beispiel #2
0
 private void fmProductionReg_Load(object sender, EventArgs e)
 {
     ChangeLanguage(Employee.TheLanguageCode);
     lblHeaderText.Text = mt.ReadResFile(this.Name.ToString() + "lblHeaderText");
     edtTextID.Text     = mt.ReadResFile(this.Name.ToString() + "Confirm01");
     tbNummer.Text      = Employee.TheEmployeeNo;
     tbFirstName.Text   = Employee.TheFirstName;
     tbLastName.Text    = Employee.TheLastName;
     if (Employee.TheWorkingWorkCenter == "")
     {
         Employee.TheWorkingWorkCenter = Employee.TheDefaultWorkCenter;
     }
     tbWorkCenter.Text  = Employee.TheWorkingWorkCenter + " " + mt.ReturnWorkCenterName(Employee.TheWorkingWorkCenter);;
     this.ActiveControl = edtTextID;
     Globals.TheGlobalStep++;
 }