|
|
@@ -193,27 +193,27 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
int ScreenWidth = Screen.GetWorkingArea(pt).Width;
|
|
|
//如果分辨率大的设置的字体对应的变大
|
|
|
- if (ScreenWidth > 1366)
|
|
|
- {
|
|
|
- foreach (Control ctl in Controls)
|
|
|
- {
|
|
|
- if (ctl is CheckBox || ctl is Label || ctl is RadioButton)
|
|
|
- {
|
|
|
- ctl.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
- }
|
|
|
- if (ctl is GroupBoxWithBorder)
|
|
|
- {
|
|
|
- GroupBoxWithBorder gb = ctl as GroupBoxWithBorder;
|
|
|
- for (int i = 0; i < gb.Controls.Count; i++)
|
|
|
- {
|
|
|
- if (gb.Controls[i] is CheckBox || gb.Controls[i] is Label || gb.Controls[i] is RadioButton)
|
|
|
- {
|
|
|
- gb.Controls[i].Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //if (ScreenWidth > 1366)
|
|
|
+ //{
|
|
|
+ // foreach (Control ctl in Controls)
|
|
|
+ // {
|
|
|
+ // if (ctl is CheckBox || ctl is Label || ctl is RadioButton)
|
|
|
+ // {
|
|
|
+ // ctl.Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ // }
|
|
|
+ // if (ctl is GroupBoxWithBorder)
|
|
|
+ // {
|
|
|
+ // GroupBoxWithBorder gb = ctl as GroupBoxWithBorder;
|
|
|
+ // for (int i = 0; i < gb.Controls.Count; i++)
|
|
|
+ // {
|
|
|
+ // if (gb.Controls[i] is CheckBox || gb.Controls[i] is Label || gb.Controls[i] is RadioButton)
|
|
|
+ // {
|
|
|
+ // gb.Controls[i].Font = new Font("微软雅黑", 10.5F, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
//设置获取当前屏幕大小自动全屏但是保留任务栏
|
|
|
Rectangle ScreenArea = Screen.GetWorkingArea(this);
|
|
|
Top = 0;
|
|
|
@@ -1236,6 +1236,7 @@ namespace UAS_LabelMachine
|
|
|
SingleDoc.Save();
|
|
|
SingleDoc.Printer.SwitchTo(SingleLabelPrinter.Text);
|
|
|
SingleDoc.PrintDocument();
|
|
|
+ dh.ExecuteSql("update prodiobarcode set pib_printdate=sysdate where pib_id=:pib_id","select",pib_id);
|
|
|
//勾选为已打印
|
|
|
LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
|
|
|
}
|