public ActionResult QuickEditSave(QuotationQuickEditModel model)
        {
            bool isSuccess = false;

            try
            {
                if (model.quotationID.HasValue)
                {
                    recsys_quotation quotation = this._db.recsys_quotation.FirstOrDefault(q => q.id == model.quotationID.Value);
                    if (quotation != null)
                    {

                        //# alter confirm date
                        quotation.confirm_date = DateChecking(model.confirmDate);
                        //# alter ACQ Number
                        quotation.number = model.acqNumber;
                        this._db.SaveChanges();

                        isSuccess = true;
                    }
                }
            }
            catch (OptimisticConcurrencyException)
            {
                //# log down
            }

            return Json(new { bIsSuccessful = isSuccess });
        }
        public ActionResult QuickEditForm(int? id)
        {
            QuotationQuickEditModel model = new QuotationQuickEditModel();

            if (id.HasValue)
            {
                recsys_quotation quotation = this._db.recsys_quotation.FirstOrDefault(q => q.id == id.Value);

                //# ui logic
                if (quotation != null)
                {
                    model.quotationID = quotation.id;
                    model.acqNumber = quotation.number;
                    if (quotation.confirm_date.HasValue)
                    {
                        if (quotation.confirm_date.Value == new DateTime(1900, 1, 1))
                            model.confirmDate = null;
                        else model.confirmDate = quotation.confirm_date.Value.ToString("dd-MM-yyyy");
                    }
                }
            }

            return this.PartialView(model);
        }