Example #1
0
        public ResponseResult UpdateMixedQty(string serialno, string mixedno, decimal mixQty)
        {
            response = new ResponseResult();

            using (MixedBLL mixedBll = new MixedBLL())
            {
                response = mixedBll.UpdateMixedQty(serialno, mixedno, mixQty);
            }

            return(response);
        }
Example #2
0
        public ResponseResult StartMixing(decimal percen, int noOfBag, string userid)
        {
            response = new ResponseResult();

            using (MixedBLL mixedBll = new MixedBLL())
            {
                response = mixedBll.StartMixing(percen, noOfBag, userid);
            }

            return(response);
        }
Example #3
0
        public ResponseResult ScanMixingLabel(string serialno, string mixedno, string mtlCode, string userid)
        {
            response = new ResponseResult();

            if (!string.IsNullOrEmpty(mtlCode))
            {
                var replacements = new Dictionary <string, string>()
                {
                    { "(plus)", "+" },
                    { "(percen)", "%" }
                };

                var regex = new Regex(String.Join("|", replacements.Keys.Select(k => Regex.Escape(k))));
                mtlCode = regex.Replace(mtlCode, m => replacements[m.Value]);
            }

            using (MixedBLL mixedBll = new MixedBLL())
            {
                response = mixedBll.ScanMixingLabel(serialno, mixedno, mtlCode, userid);
            }

            return(response);
        }