Exemple #1
0
        private void btni_abnormalInput_Click(object sender, EventArgs e)
        {
            if (!(UsersHelp.systemAdimin || UsersHelp.abnormal_Defective_product_entry))
            {
                MessageBox.Show("抱歉,您没有使用该功能的权限");
                return;
            }

            AbnormalIput Ai = new AbnormalIput();

            Ai.ShowDialog();
        }
Exemple #2
0
        //修改
        private void btni_modify_Click(object sender, EventArgs e)
        {
            if (!(UsersHelp.systemAdimin || UsersHelp.abnormal_Modify))
            {
                MessageBox.Show("抱歉,您没有使用该功能的权限");
                return;
            }

            if (dataGridViewX1.Rows.Count > 0)
            {
                List <PAbnormalInput> list = new List <PAbnormalInput>();
                list.Add(DataList[this.dataGridViewX1.CurrentRow.Index]);
                DateTime     endTime   = new DateTime(dti_end.Value.Year, dti_end.Value.Month, dti_end.Value.Day, 23, 59, 59);
                DateTime     beginTime = new DateTime(dti_begin.Value.Year, dti_begin.Value.Month, dti_begin.Value.Day, 00, 00, 00);
                AbnormalIput ai        = new AbnormalIput("modify");
                ai.Update1(beginTime, endTime, list);
                ai.ShowDialog();
            }
        }