Ejemplo n.º 1
0
        public string SetDCRUnapprove(string dcrDate, string unapprovealReason, string flag, string calcFieldStatus)
        {
            string companyCode = _objCurrentInfo.GetCompanyCode();
            string userName    = _objCurrentInfo.GetUserName();
            string userCode    = _objCurrentInfo.GetUserCode();
            string dcrCode     = _objCurrentInfo.GetDCRCode(dcrDate);

            calcFieldStatus = calcFieldStatus.ToUpper() == "APPLIED" ? "1" : "2";
            string result = string.Empty;

            result = _objSPData.CheckTheDCRCanbeUnapprove(companyCode, userCode, dcrCode, flag);
            if (result == "SUCCESS")
            {
                result = _objSPData.SetDCRUnapprove(companyCode, userCode, userName, dcrDate, dcrCode, flag, unapprovealReason, calcFieldStatus);
            }
            return(result);
        }