Beispiel #1
0
        // if any chnages, do the mobile.
        public bool UpdateProductAndStatus(string dcrDate, string autoApproval, string dcrFlag, string dcrStatus, string commonRemarks, string isSubmit)
        {
            try
            {
                string result  = string.Empty;
                bool   flag    = false;
                string dcrCode = _objCurr.GetDCRCode(dcrDate);

                // This function update product qty and change the status in to the DCR Master.
                // Then update the calc fields and customer master month count based on privilege.
                result = _objSP.UpdateProductAndStatus(dcrDate, autoApproval, dcrFlag);

                // update common remarks remarks
                if (result == "SUCCESS")
                {
                    BL_DCRStockiestExpense _objDCRBL = new BL_DCRStockiestExpense();
                    if (commonRemarks != "")
                    {
                        flag = _objDCRBL.UpdateDCRCommonRemarks(_objCurr.GetCompanyCode(), dcrCode, dcrFlag, dcrStatus, commonRemarks, isSubmit.ToString(), "1");
                    }
                    else
                    {
                        flag = _objDCRBL.UpdateDCRCommonRemarks(_objCurr.GetCompanyCode(), dcrCode, dcrFlag, dcrStatus, commonRemarks, isSubmit.ToString(), "0");
                    }
                }
                return(flag);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }