Ejemplo n.º 1
0
        private bool DataValidation_Spec(out string strBatchNo, out string strOrderNo, out string strSpec, out string strLength)
        {
            bool Success = false;

            strBatchNo = "";
            strOrderNo = "";
            strSpec    = "";
            strLength  = "";

            if (GetLastBatchInfo(out strBatchNo, out strOrderNo, out strSpec, out strLength))
            {
                Success = true;
            }

            frmSetSpec frm = new frmSetSpec(_PRODUCELINE, _CODETYPE, Success, strBatchNo, strOrderNo, strSpec, strLength);

            frm.Location = CommonMethod.SetChildWindowLocation(frm.Size);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                strBatchNo = frm.BATCHNO;
                strOrderNo = frm.ORDERNO;
                strSpec    = frm.SPEC;
                strLength  = frm.LEN;
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        private bool DataValidation_Spec(out string strBatchNo, out string strOrderNo, out string strSpec, out string strLength)
        {
            bool Success = false;

            strBatchNo = "";
            strOrderNo = "";
            strSpec = "";
            strLength = "";

            if (GetLastBatchInfo(out strBatchNo, out strOrderNo, out strSpec, out strLength))
            {
                Success = true;
            }

            frmSetSpec frm = new frmSetSpec(_PRODUCELINE, _CODETYPE, Success, strBatchNo, strOrderNo, strSpec, strLength);
            frm.Location = CommonMethod.SetChildWindowLocation(frm.Size);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                strBatchNo = frm.BATCHNO;
                strOrderNo = frm.ORDERNO;
                strSpec = frm.SPEC;
                strLength = frm.LEN;
                return true;
            }

            return false;
        }