/// <summary> /// 将实体类中的内容输出到页面上 /// </summary> /// <param name="yjentity"></param> void EntityToPage(YongJieCarWork yjentity) { txt_id.Text = yjentity.id; txt_basic_number.Text = yjentity.basic_number; txt_basic_invalid_show.Text = yjentity.basic_invalid_show; txt_basic_invalid_audit.Text = yjentity.basic_invalid_audit; txt_basic_time.Text = yjentity.basic_time; txt_basic_user.Text = yjentity.basic_user; txt_basic_userEmpid.Text = yjentity.basic_userEmpid; txt_basic_remark.Text = yjentity.basic_remark; txt_business_time.Text = yjentity.business_time; txt_business_user.Text = yjentity.business_user; txt_business_userEmpid.Text = yjentity.business_userEmpid; txt_business_userPhone.Text = yjentity.business_userPhone; txt_business_department.Text = yjentity.business_department; txt_business_cause.Text = yjentity.business_cause; txt_business_address.Text = yjentity.business_address; txt_business_starttime.Text = yjentity.business_starttime; txt_business_startKM.Text = yjentity.business_startKM; txt_business_endtime.Text = yjentity.business_endtime; txt_business_endKM.Text = yjentity.business_endKM; txt_business_driverUser.Text = yjentity.business_driverUser; txt_business_driverUserEmpid.Text = yjentity.business_driverUserEmpid; txt_business_driverUserPhone.Text = yjentity.business_driverUserPhone; txt_business_car.Text = yjentity.business_car; txt_business_carID.Text = yjentity.business_carID; txt_business_workKM.Text = yjentity.business_workKM; txt_business_overtimeKM.Text = yjentity.business_overtimeKM; txt_business_mealAllowance.Text = yjentity.business_mealAllowance; txt_business_byCarUser.Text = yjentity.business_byCarUser; txt_business_byCarUserEmpid.Text = yjentity.business_byCarUserEmpid; txt_business_byCarUserPhoneNumber.Text = yjentity.business_byCarUserPhoneNumber; }
/// <summary> /// 将页面上的内容存储到实体类 /// </summary> YongJieCarWork EntityToPage() { YongJieCarWork yjentity = new YongJieCarWork(); yjentity.id = txt_id.Text; yjentity.basic_number = txt_basic_number.Text; yjentity.basic_invalid_show = txt_basic_invalid_show.Text; yjentity.basic_invalid_audit = txt_basic_invalid_audit.Text; yjentity.basic_time = txt_basic_time.Text; yjentity.basic_user = txt_basic_user.Text; yjentity.basic_userEmpid = txt_basic_userEmpid.Text; yjentity.basic_remark = txt_basic_remark.Text; yjentity.business_time = txt_business_time.Text; yjentity.business_user = txt_business_user.Text; yjentity.business_userEmpid = txt_business_userEmpid.Text; yjentity.business_userPhone = txt_business_userPhone.Text; yjentity.business_department = txt_business_department.Text; yjentity.business_cause = txt_business_cause.Text; yjentity.business_address = txt_business_address.Text; yjentity.business_starttime = txt_business_starttime.Text; yjentity.business_startKM = txt_business_startKM.Text; yjentity.business_endtime = txt_business_endtime.Text; yjentity.business_endKM = txt_business_endKM.Text; yjentity.business_driverUser = txt_business_driverUser.Text; yjentity.business_driverUserEmpid = txt_business_driverUserEmpid.Text; yjentity.business_driverUserPhone = txt_business_driverUserPhone.Text; yjentity.business_car = txt_business_car.Text; yjentity.business_carID = txt_business_carID.Text; yjentity.business_workKM = txt_business_workKM.Text; yjentity.business_overtimeKM = txt_business_overtimeKM.Text; yjentity.business_mealAllowance = txt_business_mealAllowance.Text; yjentity.business_byCarUser = txt_business_byCarUser.Text; yjentity.business_byCarUserEmpid = txt_business_byCarUserEmpid.Text; yjentity.business_byCarUserPhoneNumber = txt_business_byCarUserPhoneNumber.Text; return(yjentity); }