Ejemplo n.º 1
0
        public ShinyohMenu(string OCD, string version)
        {
            InitializeComponent();
            SetDesignerFunction();
            lblVersion.Text = version;
            OPCD            = OCD;
            var dt = dtMenu = loginbl.D_MenuMessageSelect(OCD);

            if (dt.Rows.Count == 0)
            {
                return;
                // login
            }
            else
            {
                lblLoginDate.Text    = DateTime.Now.ToString("yyyy/MM/dd");
                lblOperatorName.Text = dt.Rows[0]["StaffName"].ToString();
                Hostname             = System.Net.Dns.GetHostName();
            }
        }