| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using CoreFS.CA06;
- using Core.StlMes.Client.ZGMil.Entity;
- namespace Core.StlMes.Client.ZGMil.ResultConrtrol
- {
- public partial class colShowShiftGroup : UserControl
- {
- private OpeBase ob;
- public OpeBase Ob
- {
- get { return ob; }
- set { ob = value; }
- }
- private string shift;
- public string Shift
- {
- get { return shift; }
- set { shift = value; }
- }
- private string group;
- public string Group
- {
- get { return group; }
- set { group = value; }
- }
- public colShowShiftGroup()
- {
- InitializeComponent();
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- //DateTime SeverTime = NativeMethod.GetSeverTime(ob);
- //lblDate.Text = SeverTime.ToString("yyyy年MM月dd日 HH:mm:ss");
-
- }
- public void ShowShift()
- {
- string ShiftText = "";
- string GroupText = "";
- switch (shift)
- {
- case "1":
- ShiftText = "早";
- break;
- case "2":
- ShiftText = "中";
- break;
- case "3":
- ShiftText = "夜";
- break;
- }
- switch (group)
- {
- case "1":
- GroupText = "甲";
- break;
- case "2":
- GroupText = "乙";
- break;
- case "3":
- GroupText = "丙";
- break;
- case "4":
- GroupText = "丁";
- break;
- }
- lblShift.Text = ShiftText;
- lblGroup.Text = GroupText;
- }
- }
- }
|