示例#1
0
        private void barButtonItem提报工时_ItemClick(object sender, ItemClickEventArgs e)
        {
            string cno = "", cname = "", cfrom = "", shift = "", begin_date = "", end_date = "", begin_time = "", end_time = "", begin_apply = "", end_apply = "", dept = "", rest_hours = "", hours = "", normal_hours = "", overtime_hours = "", reason = "", status = "", ng_type = "", s_begin = "", s_end = "", s_rest_hours = "", s_overtime_rest_hours = "", overtime_begin = "";

            TempEmpAttQuery.GetInfo(ref cno, ref cname, ref dept, ref cfrom, ref shift, ref begin_date, ref end_date, ref begin_time, ref end_time, ref begin_apply, ref end_apply, ref rest_hours, ref hours, ref normal_hours, ref overtime_hours, ref reason, ref status, ref ng_type, ref s_begin, ref s_end, ref s_rest_hours, ref s_overtime_rest_hours, ref overtime_begin);
            bool right = TempEmpAttQuery.SubmitRight();

            if (right)
            {
                if (cno != "")
                {
                    if (begin_time != "" && end_time != "")
                    {
                        TempEmpAttUpdate Frm = new TempEmpAttUpdate();
                        Frm.TopLevel = false;
                        Frm.Parent   = this;
                        Frm.Show();
                        Frm.BringToFront();
                    }
                    else
                    {
                        MessageBox.Show("打卡记录不完整,请异常提报!");
                    }
                }
                else
                {
                    MessageBox.Show("没有选中要提报的打卡记录!");
                }
            }
            else
            {
                MessageBox.Show("没有权限!");
            }
        }
示例#2
0
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool right = CheckRight();

            if (right)
            {
                TempEmpAttUpdate Frm = new TempEmpAttUpdate();
                Frm.Text     = "异常提报";
                Frm.TopLevel = false;
                Frm.Parent   = this;
                Frm.Show();
                Frm.BringToFront();
            }
            else
            {
                MessageBox.Show("没有异常提报的权限!");
            }
        }