
仓库温控系统(Winform版)
仓库温控系统
愚公搬代码
《头衔》:华为云特约编辑,华为云云享专家,华为开发者专家,华为产品云测专家,CSDN博客专家,CSDN商业化专家,阿里云专家博主,阿里云签约作者,腾讯云优秀博主,腾讯云内容共创官,掘金优秀博主,亚马逊技领云博主,51CTO博客专家等。
《近期荣誉》:2022年度博客之星TOP2,2023年度博客之星TOP2,2022年华为云十佳博主,2023年华为云十佳博主,2024年华为云十佳博主等。
《博客内容》:.NET、Java、Python、Go、Node、前端、IOS、Android、鸿蒙、Linux、物联网、网络安全、大数据、人工智能、U3D游戏、小程序等相关领域知识。
展开
-
(更新时间)2021年5月21日 仓库温控系统(Winform) 20 PanelPage面板自适应
private void panelPage_SizeChanged(object sender, EventArgs e) { foreach(Control c in panelPage.Controls) { Form f = c as Form; f.WindowState = FormWindowState.Normal; f.SuspendLayout(); f.Size = panelPage.Size;原创 2021-05-21 23:03:49 · 51767 阅读 · 0 评论 -
(更新时间)2021年5月21日 仓库温控系统(Winform) 19 窗体拖动功能实现
Point point = new Point(); bool isMove = false; private void panelTop_MouseDown(object sender, MouseEventArgs e) { point = e.Location;//按住的点 isMove = true; } private void panelTop_MouseMove(object sender, MouseEventArgs e) { if(e.Button==Mou原创 2021-05-21 13:38:52 · 51611 阅读 · 1 评论 -
(更新时间)2021年5月21日 仓库温控系统(Winform) 18 封装Panel中显示Form页方法
public static class FormUtility { //静态类中的静态方法---扩展方法 //检查一个Form是否已打开 public static bool CheckOpenForm(string frmName) { bool bl = false; foreach (Form f in Application.OpenForms) { if (f.Name == frmName)原创 2021-05-21 09:01:05 · 51593 阅读 · 0 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 17 定时器的使用
System.Timers.Timer timer = null; private void InitStatusInfo() { string uName = this.Tag.ToString(); lblLoginUser.Text = uName; //时间 动态时间条--- 计时器 (Timers.Timer) lblLoginTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); timer原创 2021-05-20 23:43:22 · 51503 阅读 · 1 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 16 扩展控件-PageButton
[DefaultEvent("Click")] public partial class UPageButton : UserControl { public UPageButton() { InitializeComponent(); } /// <summary> /// 按钮文本 /// </summary> public string BtnText { get { return原创 2021-05-20 21:50:30 · 51246 阅读 · 1 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 15 扩展控件-IconButton
public partial class UIconButton : Button { public UIconButton() { InitializeComponent(); //尺寸 字体 字号 FlatStyle FlatAppearance ForeColor this.Size = new Size(30, 30); this.Font = new Font("Webdings", 10.8F);原创 2021-05-20 21:46:49 · 51021 阅读 · 0 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 14 扩展控件-MenuButton
[DefaultEvent("Click")] public partial class UMenuButton : UserControl { public UMenuButton() { InitializeComponent(); } /// <summary> /// 按钮图标 /// </summary> public Image BtnImg { get { return p原创 2021-05-20 21:41:38 · 51406 阅读 · 2 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 13 登录页面退出确认框处理
private void FrmLogin_FormClosing(object sender, FormClosingEventArgs e) { if (MsgBoxHelper.MsgBoxConfirm("退出系统", "您确定要退出系统吗?") == DialogResult.Yes) { Application.ExitThread(); } else e.Cancel = true; } ...原创 2021-05-20 17:21:38 · 51786 阅读 · 2 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 12 消息框的封装
public class MsgBoxHelper { /// <summary> /// 消息提示框 成功 /// </summary> /// <param name="titile"></param> /// <param name="Msg"></param> /// <returns></returns> public static Dialog原创 2021-05-20 17:18:47 · 51140 阅读 · 0 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 11 扩展控件-CircleButton
public partial class UCircleButton : Button { public UCircleButton() { InitializeComponent(); } private const int WM_PAINT = 0xF; private Color bgColor = Color.Gray;原创 2021-05-20 16:10:03 · 51251 阅读 · 2 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 10 扩展控件-panel
public partial class UPanel : Panel { private const int WM_PAINT = 0xF; public UPanel() { InitializeComponent(); } private Color bgColor = Color.Gray; /// <summary> /// 背景色(渐变色原创 2021-05-20 14:44:48 · 51463 阅读 · 1 评论 -
(更新时间)2021年5月20日 仓库温控系统(Winform) 09 DAL层搭建
一:查询相关类 public class BQuery<T> { #region 查询 /// <summary> /// 按条件查询获取实体信息(单个) /// </summary> /// <param name="strWhere"></param> /// <param name="strCols"></param>原创 2021-05-20 13:17:53 · 51470 阅读 · 0 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 08 数据库操作相关帮助类SqlHelper
public class SqlHelper { /// <summary> /// 连接字符串 /// </summary> private static readonly string connStr = ConfigurationManager.ConnectionStrings["connStr"].ConnectionString; /// <summary> /// 增、删、改的通用方法 /// 执行Sq原创 2021-05-19 22:04:21 · 51440 阅读 · 0 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 07 动态生成sql语句CreateSql
//生成sql语句的通用类 public class CreateSql { /// <summary> /// 生成Insert语句 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="t"></param> /// <param name="col原创 2021-05-19 21:51:11 · 51427 阅读 · 1 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 06 DataRow/DataTable/SqlDataReader和实体类相互转换DbConvert
/// <summary> /// 类型转换处理---DataRow/DataTable/SqlDataReader T/List<T> /// </summary> public class DbConvert { /// <summary> /// 将DataRow转换成实体 /// </summary> /// <typeparam name="T"></typeparam>原创 2021-05-19 21:20:16 · 51554 阅读 · 0 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 05 获取类属性静态方法PropertyHelper
public class PropertyHelper { /// <summary> /// 返回指定类型的指定列名的属性数组 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="cols"></param> /// <returns></returns> public原创 2021-05-19 21:14:16 · 51524 阅读 · 0 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 04 获取特性值的扩展方法AttributeHelper
public static class AttributeHelper { /// <summary> /// 获取映射表名 /// </summary> /// <param name="type"></param> /// <returns></returns> public static string GetTName(this Type type) { st原创 2021-05-19 21:04:55 · 51621 阅读 · 0 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 03 Model层搭建
原创 2021-05-19 18:29:07 · 51570 阅读 · 0 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 02 架构设计
原创 2021-05-19 17:32:24 · 51459 阅读 · 1 评论 -
(更新时间)2021年5月19日 仓库温控系统(Winform) 01 数据库设计
一:数据库全部表 二:相关表结构设计原创 2021-05-19 17:31:20 · 51534 阅读 · 5 评论