Example #1
0
        public IHttpActionResult AttTrnFill(int mfg, int dept, string date, string shift, string floor)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            AttTrn cls = new AttTrn();

            cls.MFGUNIT   = mfg;
            cls.DEPT_CODE = dept;
            cls.Att_Date  = Ope.DTDBDate(date.ToString());
            cls.SHIFT     = shift;
            cls.FlorNo    = floor;
            _eTexServices.AttTrnFill(cls);

            if (_eTexServices.DS == null)
            {
                return(NotFound());
            }
            return(Ok(_eTexServices.DS));
        }
Example #2
0
        public IHttpActionResult View(int mfg = 0, int ycode = 0, string status = "", string fdate = "", string tdate = "")
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            clsSaleOrder cls = new clsSaleOrder();

            cls.MfgUnit        = mfg;
            cls.YCode          = ycode;
            cls.ViewStrStsType = status;
            cls.F_DATE         = Ope.DTDBDate(fdate);
            cls.T_DATE         = Ope.DTDBDate(tdate);

            mSaleOrd.SaleOrderView(cls);

            if (mSaleOrd.DS_VIEW == null)
            {
                return(NotFound());
            }
            return(Ok(mSaleOrd.DS_VIEW));
        }