コード例 #1
0
        public JsonResult SendData(string StaffNumber)
        {
            StaffChange staffChange = new StaffChange();
            var itemStaff = (from p in db.Staffs
                             where StaffNumber == p.StaffNumber
                            select p).FirstOrDefault();
            //赋值
            staffChange.Name = itemStaff.Name;
            staffChange.Gender = itemStaff.Gender;
            staffChange.Department = itemStaff.Department;
            staffChange.WorkType = itemStaff.WorkType;
            staffChange.Position = itemStaff.Position;
            staffChange.IdentificationType = itemStaff.IdentificationType;
            staffChange.Nationality = itemStaff.Nationality;
            staffChange.IdentificationNumber = itemStaff.IdentificationNumber;
            staffChange.Entrydate = itemStaff.Entrydate;
            staffChange.ClassOrder = itemStaff.ClassOrder;
            staffChange.JobState = itemStaff.JobState;
            staffChange.AbnormalChange = itemStaff.AbnormalChange;
            staffChange.FreeCard = itemStaff.FreeCard;
            staffChange.WorkProperty = itemStaff.WorkProperty;
            staffChange.ApplyOvertimeSwitch = itemStaff.ApplyOvertimeSwitch;
            staffChange.Source = itemStaff.Source;
            staffChange.QualifyingPeriodFull = itemStaff.QualifyingPeriodFull;
            staffChange.MaritalStatus = itemStaff.MaritalStatus;
            staffChange.BirthDate = itemStaff.BirthDate;
            staffChange.NativePlace = itemStaff.NativePlace;
            staffChange.HealthCondition = itemStaff.HealthCondition;
            staffChange.Nation = itemStaff.Nation;
            staffChange.Address = itemStaff.Address;
            staffChange.VisaOffice = itemStaff.VisaOffice;
            staffChange.HomeTelNumber = itemStaff.HomeTelNumber;
            staffChange.EducationBackground = itemStaff.EducationBackground;
            staffChange.GraduationSchool = itemStaff.GraduationSchool;
            staffChange.SchoolMajor = itemStaff.SchoolMajor;
            staffChange.Degree = itemStaff.Degree;
            staffChange.Introducer = itemStaff.Introducer;
            staffChange.IndividualTelNumber = itemStaff.IndividualTelNumber;
            staffChange.BankCardNumber = itemStaff.BankCardNumber;
            staffChange.UrgencyContactMan = itemStaff.UrgencyContactMan;
            staffChange.UrgencyContactAddress = itemStaff.UrgencyContactAddress;
            staffChange.UrgencyContactPhoneNumber = itemStaff.UrgencyContactPhoneNumber;
            staffChange.InBlacklist = itemStaff.InBlacklist;
            staffChange.PhysicalCardNumber = itemStaff.PhysicalCardNumber;
               //staffChange.AuditStatus = itemStaff.AuditStatus;
            staffChange.LeaveDate = itemStaff.LeaveDate;
            staffChange.LeaveType = itemStaff.LeaveType;
            staffChange.LeaveReason = itemStaff.LeaveReason;
            staffChange.EffectiveDate = null;

            return Json(staffChange);
        }
コード例 #2
0
 public JsonResult SendBillTypeNumber(string BillTypeNumber)
 {
     StaffChange staffChange = new StaffChange();
     var item = (from p in db.BillProperties where BillTypeNumber == p.Type select p).FirstOrDefault();
     string str = Generate.GenerateBillNumber(BillTypeNumber, this.ConnectionString);
     staffChange.BillNumber = str;
     staffChange.BillTypeName = item.TypeName;
     return Json(staffChange);
 }
コード例 #3
0
        public JsonResult SendBillTypeNumber(string BillTypeNumber)
        {
            StaffChange staffChange = new StaffChange();
            var item = (from p in db.BillProperties where BillTypeNumber == p.Type select p).FirstOrDefault();

            staffChange.BillTypeName = item.TypeName;
            return Json(staffChange);
        }