예제 #1
0
파일: Batch.cs 프로젝트: Strongc/sencond
        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);
        }
예제 #2
0
파일: Batch.cs 프로젝트: Strongc/sencond
        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;
        }