2
jhz
2022-09-01 4fc8ed6e9749869833ac07f00904955961cd6e70
WorkM/Á÷ת¿¨¹ÜÀí/MES_StationOutBill.cs
@@ -473,7 +473,7 @@
        //单据完整性判断          æœªå®Œæˆ
        private bool Sub_AllowSave()
        {
        {
            //判断该用户名是否有该工站权限
            //if (BillNew.CheckCenterIDByUser(DBUtility.ClsPub.isLong(txtHCenterID.Tag)) == false)
            //{
@@ -523,6 +523,49 @@
            //        return false;
            //    }
            //}
            //模穴号控制
            //if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "13000001197")
            //{
            //    string HMXH = "";
            //    string HZM = "";
            //    HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text);
            //    HZM = HMXH.Substring(0, 1);
            //    if (HZM != "G")
            //    {
            //        MessageBox.Show("模穴号错误第一位请重新输入G");
            //        return false;
            //    }
            //}
            if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "3.01.0207" && DBUtility.ClsPub.isStrNull(txtHProcID.Text) == "成品检验")
            {
                string HMXH = "";
                string HZM = "";
                HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text);
                HZM = HMXH.Substring(0, 1);
                if (HZM != "G")
                {
                    MessageBox.Show("模穴号错误第一位请重新输入G");
                    return false;
                }
            }
            if (DBUtility.ClsPub.isStrNull(txtHMaterID.Text) == "3.01.0268" && DBUtility.ClsPub.isStrNull(txtHProcID.Text) == "成品检验")
            {
                string HMXH = "";
                string HZM = "";
                HMXH = DBUtility.ClsPub.isStrNull(txtHMouldNum.Text);
                HZM = HMXH.Substring(0, 1);
                if (HZM != "X")
                {
                    MessageBox.Show("模穴号错误第一位请重新输入X");
                    return false;
                }
            }
            //必输项目是否为空
            if (DBUtility.ClsPub.isLong(lngBillKey) <= 0)
@@ -576,11 +619,11 @@
                MessageBox.Show("操作员没有选择!", "提示");
                return false;
            }
            if (DBUtility.ClsPub.isLong(txtHQCCheckID.Tag) == 0)
            {
                MessageBox.Show("检验员没有选择!", "提示");
                return false;
            }
            //if (DBUtility.ClsPub.isLong(txtHQCCheckID.Tag) == 0)
            //{
            //    MessageBox.Show("检验员没有选择!", "提示");
            //    return false;
            //}
            if (DBUtility.ClsPub.isLong(txtHSourceID.Tag) == 0)
            {
                MessageBox.Show("生产资源没有选择!", "提示");