客户端

main
@t2652009480 2 years ago
parent e08e2d6917
commit 55dc7162bd

@ -36,9 +36,9 @@ public class ApplicationServiceImpl extends ServiceImpl<ApplicationMapper, Appli
*/ */
@Override @Override
public Page<ApplicationVo> queryApplication(Integer page,Integer limit) { public Page<ApplicationVo> queryApplication(Integer page,Integer limit) {
Page page1=new Page(); Page<Application> page1=new Page<>();
page1.setCurrent(limit); page1.setCurrent(page);
page1.setSize(page); page1.setSize(limit);
//查询应用中心 //查询应用中心
QueryWrapper<Application> qwa=new QueryWrapper<>(); QueryWrapper<Application> qwa=new QueryWrapper<>();
Page<Application> applicationPage = applicationMapper.selectPage(page1,qwa); Page<Application> applicationPage = applicationMapper.selectPage(page1,qwa);

@ -0,0 +1,16 @@
package com.zhiyun.zhiyun03.client;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
/**
*
*/
public class ClientData {
public static final int CLIENT_LEFT_PANEL_WIDTH=160;
public static final int CLIENT_LEFT_PANEL_HEIGHT=650;
}

@ -0,0 +1,16 @@
package com.zhiyun.zhiyun03.client;
import javax.swing.*;
import java.awt.*;
/**
*
*/
public class ClientPanel extends JPanel {
public ClientPanel(){
super.setSize(1200,800);
}
}

@ -0,0 +1,6 @@
package com.zhiyun.zhiyun03.client;
import javax.swing.*;
public class ClientRightPanel extends JPanel {
}

@ -0,0 +1,44 @@
package com.zhiyun.zhiyun03.client.course;
import com.zhiyun.zhiyun03.application.entity.Directory;
import com.zhiyun.zhiyun03.application.service.ApplicationService;
import com.zhiyun.zhiyun03.application.service.impl.ApplicationServiceImpl;
import com.zhiyun.zhiyun03.client.ClientData;
import com.zhiyun.zhiyun03.course.mapper.CourseMapper;
import com.zhiyun.zhiyun03.course.service.CourseService;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.List;
public class CourseLeftPanel extends JPanel {
BufferedImage[] images=new BufferedImage[4];
public CourseLeftPanel(){
super.setSize(ClientData.CLIENT_LEFT_PANEL_WIDTH,ClientData.CLIENT_LEFT_PANEL_HEIGHT);
for (int i = 0; i < images.length; i++) {
try {
images[i]= ImageIO.read(new File("src/main/java/com/zhiyun/zhiyun03/client/course/images/directory/"+i+".jpg"));
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}
public void paint(Graphics g){
for (int i = 0; i < images.length; i++) {
g.drawImage(images[i],43,80+i*35,images[i].getWidth(),images[i].getHeight(),null);
}
g.drawString("经济学",57,80);
g.drawString("理学",57,115);
g.drawString("工学",57,150);
g.drawString("管理学",57,165);
}
}

@ -0,0 +1,6 @@
package com.zhiyun.zhiyun03.client.course;
import javax.swing.*;
public class CourseRightPanel extends JPanel {
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -19,7 +19,7 @@ spring:
druid: druid:
url: jdbc:mysql://localhost:3306/zhiyun?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai url: jdbc:mysql://localhost:3306/zhiyun?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: root username: root
password: root password: 123456

@ -421,19 +421,6 @@
</form> </form>
</script> </script>
<!--<script>-->
<!-- //Demo-->
<!-- layui.use('form', function(){-->
<!-- var form = layui.form;-->
<!-- //监听提交-->
<!-- form.on('submit(formDemo)', function(data){-->
<!-- //layer.msg(JSON.stringify(data.field));-->
<!-- //前端可以进行一些判断...-->
<!-- return true;//true表示走action访问后台false表示不走-->
<!-- });-->
<!-- });-->
<!--</script>-->
</body> </body>
<script> <script>

Loading…
Cancel
Save