示例#1
0
        private void butSave_Click(object sender, EventArgs e)
        {
            int xyid = Convert.ToInt32(gArchSelect1.Archxystat);

            if (xyid >= 1)
            {
                MessageBox.Show("数据已校验完成无法进行修改!");
                return;
            }
            int arid = gArchSelect1.Archid;

            if (arid <= 0)
            {
                return;
            }
            int stat = Common.GetArchWorkState(arid);

            if (stat >= (int)T_ConFigure.ArchStat.质检完)
            {
                if (MessageBox.Show("此卷已质检完成,若强制修改补录信息系统将记录您的操作。", "强行修改信息", MessageBoxButtons.OKCancel,
                                    MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.OK)
                {
                    return;
                }
                Common.Writelog(arid, "强制修改质检的录入信息!");
            }
            ucInfo.SaveInfo(arid, entertag);
            ts         = Common.Getsx(arid, entertag);
            labsx.Text = string.Format("已录{0}手", ts);
            ucInfo.GetFocus();
        }
示例#2
0
        private void gArchSelect1_LineFocus(object sender, EventArgs e)
        {
            int arid = gArchSelect1.Archid;

            if (arid <= 0)
            {
                return;
            }
            if (ContenInfPar.Infobl)
            {
                ucInfo.GetFocus();
                return;
            }
            ucContents1.Focus();
        }